Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
"offerCountry": "US",
"offerType": "LT_MQEZ_RB",
"offerType": "LT_MQGZ:3MEZ",
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
"lander": "https://www.paypal.com/ppclander",
"variables": {
Expand Down
4 changes: 4 additions & 0 deletions src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import longTermNQEQZ from './long_term_nq_eqz';
import longTermNQGTZ from './long_term_nq_gtz';
import longTermMultiEQZ from './long_term_multi_eqz';
import longTermMultiGTZ3MEZ from './long_term_multi_gtz_3mez';
import longTermMultiGTZ from './long_term_multi_gtz';
import longTermSingleEQZ from './long_term_single_eqz';
import longTermSingleGTZ from './long_term_single_gtz';
Expand All @@ -22,6 +23,9 @@ export default function getMutations(id, type) {
case 'LT_MQGZ':
case 'PLLT_MQ_GZ':
return longTermMultiGTZ[type];
case 'LT_MQGZ:3MEZ':
case 'PLLT_MQGZ:3MEZ':
return longTermMultiGTZ3MEZ[type];
case 'LT_SQEZ':
case 'PLLT_SQ_EZ':
return longTermSingleEQZ[type];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
import Logo from '../../../../message/logos';
import {
textWrap,
messageLogoWidth,
altNoWrap,
setLogoTop,
logo20x1,
xSmallFallback
} from '../../../../message/mediaQueries';
import { flexLogoMutations, textLogoMutations } from '../../../../message/logoMutations';

const flex = [
[
'default',
{
logo: Logo.PP_PAYPAL.WHITE,
headline: [
{
tag: 'xsmall'
},
{
tag: 'medium'
}
],
disclaimer: ['default'],
styles: []
}
],
[
'ratio:20x1',
{
styles: [logo20x1()]
}
],
[
'ratio:8x1',
{
headline: [
{
tag: 'xsmall'
},
{
tag: 'medium'
}
]
}
],
['color:white-no-border', { logo: Logo.PP_PAYPAL.COLOR }],
...flexLogoMutations
];

export default {
'layout:flex': flex,
'layout:text': [
[
'default',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium > span.br:first-child { white-space: normal; }
}`,
textWrap(textSize * 32, textSize, 'US'),
xSmallFallback(textSize * 16),
messageLogoWidth(false, textSize * 4, textSize * 1.25),
setLogoTop(textSize * 16)
],
logo: Logo.PP_PAYPAL.COLOR,
headline: [
{
tag: 'medium',
br: ['mo.']
},
{
tag: 'xsmall'
}
],
disclaimer: ['default']
})
],
[
'logo.type:primary && logo.position:right',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium { white-space: normal; }
}`,
xSmallFallback(textSize * 10.75),
setLogoTop(textSize * 28.75),
messageLogoWidth(textSize * 6, textSize * 4, textSize * 1.25)
]
})
],
[
'logo.type:primary && logo.position:top',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium { white-space: normal; }
}`,
xSmallFallback(textSize * 10.75),
messageLogoWidth(textSize * 6, textSize * 4, textSize * 1.25)
]
})
],
[
'logo.type:alternative',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 10.6}px) { .message__content { white-space: nowrap; }}`,
xSmallFallback(textSize * 11.5),
altNoWrap(textSize * 10.6),
textWrap(textSize * 32, textSize, 'US'),
messageLogoWidth(textSize * 1.75, textSize * 4, textSize * 1.25)
],
logo: Logo.PP_PAYPAL.COLOR[0]
})
],
[
'logo.type:none',
({ textSize }) => ({
styles: [xSmallFallback(textSize * 16)],
logo: false,
headline: [
{
tag: 'medium',
br: ['mo.', 'mo'],
replace: [
['APR.', 'APR'],
['mo.', 'mo']
]
},
{
tag: 'xsmall.2',
replace: [['later.', 'later']]
}
]
})
],
[
'logo.type:inline',
({ textSize }) => ({
styles: [xSmallFallback(textSize * 16), `.message__logo { width: ${textSize * 4}px }`],
logo: Logo.NO_PP_MONOGRAM.COLOR,
headline: [
{
tag: 'medium',
br: ['mo.', 'mo'],
replace: [
['APR.', 'APR'],
['mo.', 'mo']
]
},
{
tag: 'xsmall.2',
replace: [['later.', 'later']]
}
]
})
],
...textLogoMutations
]
};
2 changes: 2 additions & 0 deletions src/utils/miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export function getStandardProductOffer(offer) {
case 'LT_MQEZ':
case 'LT_MQEZ_RB':
case 'LT_MQGZ':
case 'LT_MQGZ:3MEZ':
case 'LT_SQEZ':
case 'LT_SQEZ_RB':
case 'LT_SQGZ':
Expand All @@ -230,6 +231,7 @@ export function getStandardProductOffer(offer) {
case 'PLLT_NQ_GZ':
case 'PLLT_MQ_EZ':
case 'PLLT_MQ_GZ':
case 'PLLT_MQ_GZ:3MEZ':
case 'PLLT_SQ_EZ':
case 'PLLT_SQ_GZ':
case OFFER.PAY_LATER_LONG_TERM:
Expand Down
Loading