@sezzle/sezzle-react-widget 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +29 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +29 -9
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/dist/index.es.js
CHANGED
|
@@ -46,6 +46,25 @@ function isAlphabet(n) {
|
|
|
46
46
|
return /^[a-zA-Z()]+$/.test(n);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* This is a helper function for formatting the language
|
|
51
|
+
* @return string
|
|
52
|
+
*/
|
|
53
|
+
function getLanguage() {
|
|
54
|
+
var _document$querySelect;
|
|
55
|
+
return (_document$querySelect = document.querySelector('html').lang) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.substring(0, 2).toLowerCase();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* This is a helper function for formatting the language
|
|
60
|
+
* @return string
|
|
61
|
+
*/
|
|
62
|
+
function getSupportedLanguage() {
|
|
63
|
+
var supportedLanguages = ['en', 'fr'];
|
|
64
|
+
var lang = getLanguage();
|
|
65
|
+
return supportedLanguages.indexOf(lang) > -1 ? lang : 'en';
|
|
66
|
+
}
|
|
67
|
+
|
|
49
68
|
function getFormattedPrice(price, numberOfPayments) {
|
|
50
69
|
var priceString = parsePriceString(price);
|
|
51
70
|
var priceReplacer = parsePrice(price);
|
|
@@ -59,7 +78,9 @@ var modalEnglishHTML = "\n<style>\n@import url('https://fonts.cdnfonts.com/css/s
|
|
|
59
78
|
|
|
60
79
|
var modalFrenchHTML = "\n<style>\n@import url('https://fonts.cdnfonts.com/css/satoshi');\n@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@600&display=swap');\n.sezzle-modal-open {\n position: fixed;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n}\n.sezzle-checkout-modal-hidden {\n width: 100%;\n height: 100%;\n -webkit-font-smoothing: antialiased;\n transition: all 0.4s ease;\n margin-top: 0;\n}\n@media screen and (min-width: 0px) and (max-width: 280px) {\n .sezzle-checkout-modal-hidden {\n display: none;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n box-shadow: 0 10px 20px rgba(5, 31, 52, 0.19), 0 6px 6px rgba(5, 31, 52, 0.2);\n height: auto;\n max-height: 90%;\n width: 343px;\n color: #000000;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n background-color: #fff;\n overflow: auto;\n padding: 20px 0;\n border-radius: 10px;\n box-sizing: border-box;\n}\n@media screen and (max-width: 374px) {\n .sezzle-checkout-modal-hidden .sezzle-modal {\n transform: scale(0.9) translate(-55%, -55%);\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 24px;\n height: 24px;\n opacity: 0.2;\n cursor: pointer;\n padding: 0;\n outline: 0;\n background: 0 0;\n border: none;\n box-shadow: none;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:hover {\n opacity: 1;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:focus {\n opacity: 0.5;\n}\n@media screen and (max-width: 600px) {\n .sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal {\n opacity: 0.8;\n }\n .sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:focus {\n opacity: 1;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal::before {\n position: absolute;\n left: 10px;\n content: \" \";\n top: 0;\n transform: rotate(45deg);\n background-color: #595959;\n width: 2px;\n height: 15px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal::after {\n position: absolute;\n left: 10px;\n content: \" \";\n top: 0;\n transform: rotate(-45deg);\n background-color: #595959;\n width: 2px;\n height: 15px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-logo {\n display: block;\n height: 24px;\n width: 98px;\n margin: 10px auto 0;\n background-image: url(https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg);\n background-repeat: no-repeat;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content {\n height: auto;\n text-align: center;\n padding: 0px 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-header {\n display: block;\n text-align: center;\n font-style: normal;\n font-size: 24px;\n font-weight: 600;\n line-height: 28px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n color: #000000;\n margin-top: 24px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-row {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 400;\n line-height: 20px;\n color: #000000;\n letter-spacing: -0.3px;\n margin: 8px auto 24px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: rgba(131, 51, 212, 0.05);\n border-radius: 16px;\n padding: 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-row {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 500;\n line-height: 20px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n color: #000000;\n margin: 0px 0px 12px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .due-today {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #FFFFFF;\n border: 1px solid #8333D4;\n border-radius: 8px;\n margin: 0px 4px;\n padding: 16px 0px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .due-today :first-child {\n padding: 0px 6px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .future-payments {\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #FFFFFF;\n border: 1px solid #8333D4;\n border-radius: 8px;\n margin: 0px 4px;\n padding: 0px 4px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .future-payments :first-child {\n padding: 0px 4px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item {\n padding: 16px 2px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0px;\n padding: 8px 0px 0px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row .percentage {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 500;\n line-height: 20px;\n color: #8333D4;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n align-items: center;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row .due {\n text-align: center;\n font-style: normal;\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n color: #5E5E5E;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-features {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-features .single-feature {\n text-align: center;\n font-style: normal;\n font-size: 17px;\n font-weight: 600;\n line-height: 22px;\n color: #000000;\n letter-spacing: -0.3px;\n margin: 8px auto;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo {\n font-size: 14px;\n color: #000000;\n}\n@media screen and (max-width: 600px) {\n .sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo {\n font-size: 12px;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo::first-letter {\n text-transform: capitalize;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a {\n color: #000000;\n text-decoration: underline;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a:visited {\n color: #037269;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a:hover {\n color: #af0fda;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .terms {\n text-align: center;\n font-style: normal;\n font-size: 11px;\n font-weight: 400;\n line-height: 13px;\n color: #5E5E5E;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal {\n background-image: none;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-logo {\n width: 98px;\n background-image: url(https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg);\n background-repeat: no-repeat;\n background-position: 50%;\n height: 24px;\n margin: 10px auto 20px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content {\n height: auto;\n width: auto;\n text-align: center;\n padding: 0px 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-header {\n font-size: 24px;\n line-height: 30px;\n margin: 10px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-row {\n font-size: 15px;\n line-height: 20px;\n margin: 8px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments {\n height: fit-content;\n margin: 20px auto;\n padding: 20px 0 0;\n border: 1px solid #e5e5e5;\n border-radius: 5px;\n max-width: 502px;\n display: block;\n flex-direction: column;\n align-items: center;\n padding: 0px;\n gap: 24px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header {\n font-family: Satoshi, \"Open Sans\", sans-serif;\n font-style: normal;\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n display: block;\n align-items: center;\n text-align: center;\n padding: 15px;\n letter-spacing: -0.3px;\n border-bottom: 1px solid #e5e5e5;\n color: #000000;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header span {\n font-size: 17px;\n line-height: 22px;\n font-weight: 700;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options {\n font-size: 12px;\n line-height: 14px;\n margin: 0px 20px 0;\n padding: 20px 0px;\n border-bottom: 1px solid #e5e5e5;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan {\n display: flex;\n justify-content: space-between;\n padding-bottom: 10px;\n font-size: 12px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .monthly-amount span {\n font-size: 17px;\n line-height: 22px;\n color: #8333D4;\n font-weight: 600;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .monthly-amount .per-month {\n font-size: 13px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .term-length {\n border-radius: 100px;\n background: rgba(41, 211, 162, 0.1);\n color: #00804A;\n padding: 2px 8px;\n font-size: 12px;\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details {\n display: flex;\n justify-content: space-between;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .adjusted-total {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .adjusted-total span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .interest-amount {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .interest-amount span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .sample-apr {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .sample-apr span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments:last-child {\n border: none;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .details {\n font-size: 17px;\n line-height: 22px;\n margin: 16px auto;\n font-weight: 600;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .terms {\n font-size: 11px;\n line-height: 13px;\n color: #5E5E5E;\n margin: 10px auto 0;\n padding: 12px 0 0;\n border-top: 1px solid #e5e5e5;\n text-align: center;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n\n</style>\n<section class=\"sezzle-checkout-modal-lightbox close-sezzle-modal\" role=\"dialog\" lang=\"fr\"\n aria-label=\"Informations Sezzle\" aria-description=\"En savoir plus sur Sezzle\" style=\"display: block;\">\n <div id=\"sezzle-modal-container\" role=\"dialog\" aria-label=\"Sezzle Modal\" aria-description=\"En savoir plus sur Sezzle\"\n class=\"sezzle-checkout-modal-hidden\">\n <div class=\"sezzle-modal sezzle-modal-color\">\n <div><button role=\"button\" aria-label=\"Fermer Sezzle modal.\" class=\"close-sezzle-modal\"></button></div>\n <div class=\"sezzle-logo\" title=\"Sezzle\"></div>\n <div id=\"sezzle-modal-core-content\" class=\"sezzle-modal-content\">\n <header class=\"sezzle-header\">Acheter maintenant. Payer plus tard.\n </header>\n <p class=\"sezzle-row\">\n Payez en 4 en s\xE9lectionnant Sezzle \xE0 la caisse.\n </p>\n <div class=\"sezzle-four-pay\">\n <p class=\"sezzle-row\">\n Plans de paiement flexibles pour votre budget\n </p>\n <div class=\"sezzle-pie-area\">\n <div class=\"due-today\">\n <div class=\"payment-item\">\n <div title=\"graphique circulaire \xE0 25%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM10 20C10 25.5228 14.4772 30 20 30C25.5228 30 30 25.5228 30 20C30 14.4772 25.5228 10 20 10C14.4772 10 10 14.4772 10 20Z\"\n fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path\n d=\"M20 -7.62939e-05C22.6264 -7.64088e-05 25.2272 0.51724 27.6537 1.52233C30.0802 2.52743 32.285 4.00062 34.1421 5.85779C35.9993 7.71496 37.4725 9.91974 38.4776 12.3463C39.4827 14.7728 40 17.3735 40 19.9999L30 19.9999C30 18.6867 29.7413 17.3863 29.2388 16.1731C28.7362 14.9598 27.9997 13.8574 27.0711 12.9289C26.1425 12.0003 25.0401 11.2637 23.8268 10.7611C22.6136 10.2586 21.3132 9.99992 20 9.99992L20 -7.62939e-05Z\"\n fill=\"#8333D4\"></path>\n <path\n d=\"M40 19.9999C40 22.7613 37.7614 24.9998 35 24.9998C32.2386 24.9998 30 22.7613 30 19.9999C30 17.2385 32.2386 14.9998 35 14.9998C37.7614 14.9998 40 17.2385 40 19.9999Z\"\n fill=\"#8333D4\"></path>\n <circle cx=\"35\" cy=\"20\" r=\"5\" fill=\"#8333D4\"></circle>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Aujourd'hui</span>\n </p>\n </div>\n </div>\n <div class=\"future-payments\">\n <div class=\"payment-item\">\n <div title=\"graphique circulaire \xE0 50%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM10 20C10 25.5228 14.4772 30 20 30C25.5228 30 30 25.5228 30 20C30 14.4772 25.5228 10 20 10C14.4772 10 10 14.4772 10 20Z\"\n fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M40 20C40 31.0457 31.0457 40 20 40C17.2386 40 15 37.7614 15 35C15 32.2386 17.2386 30 20 30C25.5228 30 30 25.5228 30 20C30 14.4772 25.5228 10 20 10V0C31.0457 0 40 8.9543 40 20Z\"\n fill=\"#8333D4\"></path>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Semaine 2</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"graphique circulaire \xE0 75%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM10 20C10 25.5228 14.4772 30 20 30C25.5228 30 30 25.5228 30 20C30 14.4772 25.5228 10 20 10C14.4772 10 10 14.4772 10 20Z\"\n fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path\n d=\"M20 -8.74228e-07C23.9556 -1.04713e-06 27.8224 1.17298 31.1114 3.37061C34.4004 5.56824 36.9638 8.69181 38.4776 12.3463C39.9913 16.0009 40.3874 20.0222 39.6157 23.9018C38.844 27.7814 36.9392 31.3451 34.1421 34.1421C31.3451 36.9392 27.7814 38.844 23.9018 39.6157C20.0222 40.3874 16.0009 39.9913 12.3463 38.4776C8.69181 36.9638 5.56824 34.4004 3.37061 31.1114C1.17298 27.8224 -7.48492e-07 23.9556 -8.74228e-07 20L10 20C10 21.9778 10.5865 23.9112 11.6853 25.5557C12.7841 27.2002 14.3459 28.4819 16.1732 29.2388C18.0004 29.9957 20.0111 30.1937 21.9509 29.8079C23.8907 29.422 25.6725 28.4696 27.0711 27.0711C28.4696 25.6725 29.422 23.8907 29.8079 21.9509C30.1937 20.0111 29.9957 18.0004 29.2388 16.1732C28.4819 14.3459 27.2002 12.7841 25.5557 11.6853C23.9112 10.5865 21.9778 10 20 10L20 -8.74228e-07Z\"\n fill=\"#8333D4\"></path>\n <path\n d=\"M10 20C10 22.7614 7.76142 25 5 25C2.23858 25 -8.74228e-07 22.7614 -8.74228e-07 20C-8.74228e-07 17.2386 2.23858 15 5 15C7.76142 15 10 17.2386 10 20Z\"\n fill=\"#8333D4\"></path>\n <circle cx=\"5\" cy=\"20\" r=\"5\" fill=\"#8333D4\"></circle>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Semaine 4</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"graphique circulaire \xE0 100%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM10 20C10 25.5228 14.4772 30 20 30C25.5228 30 30 25.5228 30 20C30 14.4772 25.5228 10 20 10C14.4772 10 10 14.4772 10 20Z\"\n fill=\"#8333D4\"></path>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Semaine 6</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"sezzle-features\">\n <p class=\"single-feature\">\n Aucune v\xE9rification de cr\xE9dit requise\n </p>\n <p class=\"single-feature\">\n D\xE9cision de cr\xE9dit instantan\xE9e\n </p>\n <p class=\"single-feature\">\n Optez pour le rapport de cr\xE9dit gratuite\n </p>\n </div>\n <p class=\"terms\">L'inscription \xE0 Sezzle n'aura aucune incidence sur votre pointage de cr\xE9dit. Vous pouvez\n accepter de participer \xE0 notre programme gratuit d'\xE9valuation du cr\xE9dit, Sezzle Up, afin que vos paiements\n soient signal\xE9s aux bureaux de cr\xE9dit. Pour en savoir plus sur le pouvoir d'achat, <a\n href=\"https://sezzle.com/how-it-works\" target=\"_blank\">cliquez ici.</a></p>\n <p class=\"terms\">Sous r\xE9serve d'approbation. <a href=\"https://www.sezzle.com/legal\" target=\"_blank\">Cliquez ici\n pour l'int\xE9gralit\xE9 des conditions.</a> La date et le montant du premier paiement peuvent varier en fonction\n de l'\xE9ligibilit\xE9 et de la date de finalisation de la commande aupr\xE8s du vendeu.</p>\n </div>\n </div>\n </div>\n</section>\n";
|
|
61
80
|
|
|
62
|
-
var apModalHTML = '<div id="afterpay-popup-wrapper" style="position: fixed; z-index: 2147483647; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: auto;"><div id="afterpay-popup-outer" style="display: flex; place-content: center; align-items: center; width: 100%; min-height: 100%; background-color: rgba(0, 0, 0, 0.8);"><div id="afterpay-popup-inner" style="position: relative; background-color: rgb(255, 255, 255);"><a href="https://www.afterpay.com/purchase-payment-agreement" target="_blank" style="display: block;"><img src="https://static.afterpay.com/us-popup-medium.png" srcset="https://static.afterpay.com/us-popup-medium.png 1x, https://static.afterpay.com/us-popup-medium@2x.png 2x" style="max-width: 597px; display: block; width: 100%;"></a><a href="#" style="position: absolute; right: 8px; top: 8px;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" width="32px" height="32px"><g id="surface1"><path style=" " d="M 16 3 C 8.832031 3 3 8.832031 3 16 C 3 23.167969 8.832031 29 16 29 C 23.167969 29 29 23.167969 29 16 C 29 8.832031 23.167969 3 16 3 Z M 16 5 C 22.085938 5 27 9.914063 27 16 C 27 22.085938 22.085938 27 16 27 C 9.914063 27 5 22.085938 5 16 C 5 9.914063 9.914063 5 16 5 Z M 12.21875 10.78125 L 10.78125 12.21875 L 14.5625 16 L 10.78125 19.78125 L 12.21875 21.21875 L 16 17.4375 L 19.78125 21.21875 L 21.21875 19.78125 L 17.4375 16 L 21.21875 12.21875 L 19.78125 10.78125 L 16 14.5625 Z "></path></g></svg></a></div></div></div>';
|
|
81
|
+
var apModalEnglishHTML = "<div id=\"afterpay-modal-component\">\n<style>\n .afterpay-modal-overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n visibility: hidden;\n transform: scale(1.1);\n transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;\n z-index: 999999999;\n }\n\n #afterpay-modal-component .visible {\n opacity: 1;\n visibility: visible;\n transform: scale(1);\n transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;\n }\n\n #afterpay-modal-component #afterpay-modal {\n background-color: #fff;\n color: #000;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 2px;\n width: 774px;\n max-width: 100vw;\n max-height: 100%;\n line-height: 1.1;\n display: block;\n overflow: auto;\n }\n\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 0px;\n max-width: 100%;\n width: 476px;\n }\n\n @media (min-width:473px) and (min-height:686px) {\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 12px;\n }\n }\n\n #afterpay-modal-component #afterpay-modal .afterpay-close-button {\n position: absolute;\n z-index: 3;\n background-color: transparent;\n min-width: 0;\n top: 18px;\n right: 18px;\n border: 0;\n cursor: pointer;\n }\n\n #afterpay-modal-component button {\n min-width: 80px;\n background-color: #848e97;\n border-color: #848e97;\n border-style: solid;\n border-radius: 2px;\n padding: 3px;\n color: white;\n cursor: pointer;\n display: none;\n }\n\n #afterpay-modal-component button:hover {\n background-color: #6c757d;\n border-color: #6c757d;\n }\n\n .afterpay-loading-indicator {\n display: block;\n background-color: transparent;\n width: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n\n .afterpay-loading-indicator::after {\n content: \" \";\n display: block;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n border: 5px solid #b2fce4;\n border-color: #b2fce4 transparent #b2fce4 transparent;\n animation: afterpay-loading-indicator 1.2s linear infinite;\n }\n\n @keyframes afterpay-loading-indicator {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .modal-content .error-container {\n padding: 25px;\n text-align: center;\n background-color: #b2fce4;\n opacity: 0;\n visibility: hidden;\n }\n\n .modal-content.error .error-container {\n opacity: 1;\n visibility: visible;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n }\n\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n #afterpay-modal-component #afterpay-modal {\n bottom: auto;\n }\n }\n</style>\n<div class=\"afterpay-modal-overlay visible\">\n <div class=\"afterpay-loading-indicator\" style=\"display: none;\"></div>\n <div id=\"afterpay-modal\" role=\"dialog\" tabindex=\"-1\" aria-modal=\"true\" aria-describedby=\"afterpay-modal-container\" aria-label=\"Afterpay\">\n <button class=\"afterpay-close-button\" id=\"afterpay-modal-close-button\" tabindex=\"1\" autofocus=\"false\" aria-label=\"Afterpay modal close button\" style=\"display: block;\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" width=\"20\" height=\"20\" viewBox=\"0 0 30 30\" aria-hidden=\"true\">\n <defs>\n <style>\n .a {\n fill: none;\n stroke: #808284;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px;\n }\n </style>\n </defs>\n <title>Afterpay modal close button</title>\n <line class=\"a\" x1=\"1\" y1=\"1\" x2=\"29\" y2=\"29\"></line>\n <line class=\"a\" x1=\"1\" y1=\"29\" x2=\"29\" y2=\"1\"></line>\n </svg>\n </button>\n <div class=\"modal-content\">\n <div id=\"afterpay-modal-container\" class=\"afterpay-modal-wrapper\">\n <div class=\"grid-container\">\n <div class=\"row-0\">\n <div class=\"afterpay-modal-logo\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 1150 222\" class=\"afterpay-logo-black\" aria-label=\"Afterpay logo\">\n <path d=\"M1132 45.3l-34.6-19.8-35.1-20.1a34.9 34.9 0 00-52.2 30.2V40c0 2.5 1.3 4.8 3.5 6l16.3 9.3a6.8 6.8 0 0010.1-6V38.9c0-5.3 5.7-8.6 10.3-6l32 18.4 31.9 18.3a6.9 6.9 0 010 11.9l-31.9 18.3-32 18.4a6.9 6.9 0 01-10.3-6v-5.3c0-26.8-29-43.6-52.2-30.2l-35.1 20-34.6 19.9a35 35 0 000 60.5l34.6 19.8 35.1 20a34.9 34.9 0 0052.2-30.1v-4.5c0-2.5-1.3-4.8-3.5-6l-16.3-9.3a6.8 6.8 0 00-10.1 5.9v10.7c0 5.3-5.7 8.6-10.3 6l-32-18.4-31.9-18.3a6.9 6.9 0 010-12l31.9-18.2 32-18.4a6.9 6.9 0 0110.3 6v5.3c0 26.8 29 43.6 52.2 30.2l35.1-20.1 34.6-19.8a35 35 0 000-60.5zm-227 6.6l-81 167.3h-33.6l30.3-62.5L773 51.9h34.5l30.6 70.2 33.4-70.2H905zM95.1 111.3c0-20-14.5-34-32.3-34s-32.3 14.3-32.3 34c0 19.5 14.5 34 32.3 34s32.3-14 32.3-34m.3 59.4v-15.4a47.6 47.6 0 01-37.5 17.3C25.3 172.6.6 146.5.6 111.3c0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H95.4zm171.2-26.4c-10.2 0-13.1-3.8-13.1-13.8V77.8h18.8v-26h-18.8v-29h-29.9v29H185V40.2c0-10 3.8-13.8 14.3-13.8h6.6v-23h-14.4c-24.7 0-36.4 8-36.4 32.8V52h-16.6v25.8h16.6v92.9H185v-93h38.6V136c0 24.2 9.3 34.7 33.5 34.7h15.4v-26.4h-5.9zM374 100.6c-2.1-15.4-14.7-24.7-29.5-24.7-14.7 0-26.9 9-29.9 24.7H374zM314.3 119a29.6 29.6 0 0030.7 27.6c12.6 0 22.3-6 28-15.4h30.7c-7.1 25.2-29.7 41.3-59.4 41.3a58.5 58.5 0 01-61.1-61.1A60 60 0 01345 49.7a59.5 59.5 0 0160.4 69.4h-91.1zm282.2-7.8a33 33 0 00-32.3-34c-17.8 0-32.3 14.3-32.3 34 0 19.5 14.5 34 32.3 34a32.9 32.9 0 0032.3-34m-94.1 107.9V51.9h29.2v15.4a47.2 47.2 0 0137.5-17.6c32.1 0 57.3 26.4 57.3 61.3s-25.7 61.5-58 61.5a46 46 0 01-35.9-16v62.6h-30.1zm229.3-108c0-20-14.5-34-32.3-34-17.8 0-32.3 14.4-32.3 34s14.5 34 32.3 34c17.8 0 32.3-14 32.3-34m.3 59.5v-15.4a47.6 47.6 0 01-37.5 17.3c-32.6 0-57.3-26.1-57.3-61.3 0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H732zM449.7 63.5s7.4-13.8 25.7-13.8c7.8 0 12.8 2.7 12.8 2.7v30.3s-11-6.8-21.1-5.4c-10.1 1.4-16.5 10.6-16.5 23v70.3h-30.2V51.9h29.2v11.6h.1z\"></path>\n </svg>\n </div>\n </div>\n <div class=\"row-1\">\n <h3 class=\"afterpay-modal-headline\">Shop now. <span>Pay later.</span>\n <div>Always interest-free.</div>\n </h3>\n </div>\n <div class=\"process-step-1 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 72\" class=\"process-icon shopping-cart\" aria-label=\"Step 1\">\n <path class=\"c1\" d=\"M26 55.47a27.28 27.28 0 01-4-3c-2.13-1.87-4.52-4.49-4.44-7.36a5 5 0 01.37-1.75 4.27 4.27 0 018.13.25 4.27 4.27 0 018.13-.25 5 5 0 01.37 1.75c.08 2.87-2.31 5.49-4.44 7.36a27.28 27.28 0 01-4 3\"></path>\n <path class=\"c1\" fill=\"#000\" d=\"M10.5 35V17a15.5 15.5 0 0131 0v18\"></path>\n <path class=\"c1\" transform=\"rotate(90 85.5 -4.5)\" d=\"M110.5 30.5h45.79a4.21 4.21 0 014.21 4.21v40.58a4.21 4.21 0 01-4.21 4.21H110.5v-49z\"></path>\n </svg>\n </div>\n <div class=\"process-step-1 process-subheading\">Add your favourites to cart</div>\n <div class=\"process-step-2 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon afterpay-desktop\" aria-label=\"Step 2\">\n <path class=\"c1\" d=\"M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.93V50.5h-69V5.43a3.93 3.93 0 013.93-3.93z\"></path>\n <path d=\"M54.75 17.52L50.3 15l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L31.7 37l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon afterpay-mobile\" aria-label=\"Step 2\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M1.49 10.5h49\"></path>\n <path class=\"c1\" d=\"M1.49 75.5h49\"></path>\n <path class=\"c1\" d=\"M21.49 6.5h9\"></path>\n <path d=\"M39.75 32.52L35.3 30l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L16.7 52l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n </svg>\n </div>\n <div class=\"process-step-2 process-subheading\">Select Afterpay at checkout</div>\n <div class=\"process-step-3 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon sign-up-desktop\" aria-label=\"Step 3\">\n <path class=\"c1\" d=\"M52.51 28.12l4.43 4.45L65.5 24\"></path>\n <circle class=\"c1\" cx=\"31\" cy=\"26\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"31\" cy=\"21.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M20.92 36.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.8M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.94V50.5h-69V5.45a3.93 3.93 0 013.93-3.93z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon sign-up-mobile\" aria-label=\"Step 3\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M21.46 58.06l4.43 4.45 8.55-8.58M1.5 10.5h48.99M1.5 75.5h48.99M21.5 6.5h9\"></path>\n <circle class=\"c1\" cx=\"26\" cy=\"34\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"26\" cy=\"29.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M15.93 44.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.79\"></path>\n </svg>\n </div>\n <div class=\"process-step-3 process-subheading\">Log into or create your Afterpay account, instant approval decision</div>\n <div class=\"process-step-4 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"14 7 79 79\" class=\"process-icon four-payments\" aria-label=\"Step 4\">\n <path class=\"c1\" d=\"M50,15.5A34.5,34.5,0,0,0,15.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M15.5,50A34.5,34.5,0,0,0,50,84.5V50Z\"></path>\n <path class=\"c1\" d=\"M50,84.5h0A34.5,34.5,0,0,0,84.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M57,8.5h0V43h34.5A34.5,34.5,0,0,0,57,8.5Z\"></path>\n </svg>\n </div>\n <div class=\"process-step-4 process-subheading\">Your purchase will be split into 4 payments, payable every 2 weeks</div>\n <div class=\"row-3\">\n <div class=\"disclaimer\">You must be of the age of majority in your province or territory, a resident of Canada, and meet additional eligibility criteria to qualify. Estimated payment amounts shown on product pages exclude taxes and shipping charges, which are added at checkout. Click <a href=\"https://www.afterpay.com/en-CA/instalment-agreement\" aria-label=\"Afterpay Terms (New Window)\" target=\"_blank\" rel=\"noopener\" class=\"disclaimer-link\" tabindex=\"1\">here</a> for complete terms. <br>\n <br>\n <span>\xA9 2020 Afterpay Canada</span>\n </div>\n </div>\n </div>\n </div>\n <style type=\"text/css\">\n body.afterpay-modal-body,\n html.afterpay-modal-html {\n height: 100%\n }\n\n body.afterpay-modal-body {\n margin: 0;\n background-color: #b2fce4\n }\n\n body.afterpay-modal-body.theme-white {\n background: #fff\n }\n\n :-moz-ui-invalid:not(output) {\n box-shadow: none\n }\n\n .afterpay-modal-wrapper {\n min-height: 100%;\n padding: 0 24px;\n background: #b2fce4\n }\n\n .afterpay-modal-wrapper.theme-white {\n background: #fff\n }\n\n .afterpay-modal-wrapper * {\n box-sizing: border-box;\n text-decoration: none;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n color: #000\n }\n\n .grid-container {\n display: grid;\n margin: 0 auto;\n max-width: 800px;\n text-align: center;\n font-size: 16px;\n grid-template-rows: auto;\n grid-template-columns: repeat(4, 25%);\n grid-template-areas: \"logo logo logo logo\"\"headline headline headline headline\"\"body-a body-b body-c body-d\"\"body-e body-f body-g body-h\"\"cbt-block cbt-block cbt-block cbt-block\"\"footer footer footer footer\"\n }\n\n .row-0 {\n grid-area: logo;\n padding-top: 45px\n }\n\n .row-1 {\n grid-area: headline;\n padding: 3% 0 8% 0\n }\n\n .process-step-1.process-icon-container {\n grid-area: body-a\n }\n\n .process-step-2.process-icon-container {\n grid-area: body-b\n }\n\n .process-step-3.process-icon-container {\n grid-area: body-c\n }\n\n .process-step-4.process-icon-container {\n grid-area: body-d\n }\n\n .process-step-1.process-subheading {\n grid-area: body-e\n }\n\n .process-step-2.process-subheading {\n grid-area: body-f\n }\n\n .process-step-3.process-subheading {\n grid-area: body-g\n }\n\n .process-step-4.process-subheading {\n grid-area: body-h\n }\n\n .row-3 {\n grid-area: footer\n }\n\n .grid-container>div {\n align-content: stretch\n }\n\n .afterpay-modal-logo svg {\n width: 100%;\n max-width: 275px;\n height: auto\n }\n\n h3.afterpay-modal-headline {\n margin: 0;\n font-size: 44px;\n font-weight: 600;\n line-height: 1.1\n }\n\n .process-icon-container {\n align-self: end\n }\n\n .process-icon-container svg {\n width: auto;\n height: auto;\n max-width: 110px;\n max-height: 95px\n }\n\n .process-icon-container svg .c1 {\n fill: none;\n stroke: #000;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px\n }\n\n .process-subheading {\n padding: 10% 3% 0 3%;\n font-weight: 600;\n line-height: 1.25\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: none\n }\n\n .row-3 {\n padding: 8% 0 40px 0\n }\n\n .disclaimer {\n font-size: 12px\n }\n\n .disclaimer-link {\n color: #000;\n text-decoration: underline\n }\n\n .disclaimer-link:active {\n color: #000\n }\n\n .afterpay-footer-example {\n margin-top: 1.875em;\n font-size: x-small;\n font-weight: 600\n }\n\n .afterpay-underline {\n text-decoration: underline\n }\n\n .afterpay-bold {\n font-weight: 700\n }\n\n .afterpay-reference-symbol {\n font-weight: 400;\n font-size: .5em;\n vertical-align: text-top\n }\n\n @media (max-width:768px) {\n .grid-container {\n max-width: 500px;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-b\"\"body-e body-f\"\"body-c body-d\"\"body-g body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-1 {\n padding: 3% 0 20px 0\n }\n\n .process-icon-container {\n padding: 24px 0 0 0\n }\n }\n\n @media (max-width:600px) {\n .afterpay-modal-wrapper {\n padding: 0\n }\n\n .grid-container {\n padding: 30px;\n text-align: left;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-e\"\"body-b body-f\"\"body-c body-g\"\"body-d body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-0 {\n padding-top: 0\n }\n\n .row-1 {\n padding: 20px 0 8% 0\n }\n\n h3.afterpay-modal-headline {\n font-size: 40px\n }\n\n svg.afterpay-desktop,\n svg.sign-up-desktop {\n display: none\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: block\n }\n\n .process-icon-container {\n align-self: start;\n padding: 12px 0\n }\n\n .process-icon-container svg {\n min-width: 30px;\n max-height: 65px\n }\n\n .process-subheading {\n padding: 6px 0 6px 12px;\n align-self: center\n }\n\n .row-3 {\n padding: 8% 0 20px 0\n }\n }\n\n @media (max-width:420px) {\n .afterpay-modal-logo svg {\n max-width: 200px\n }\n\n h3.afterpay-modal-headline {\n font-size: 36px\n }\n }\n\n @media (max-width:335px) {\n h3.afterpay-modal-headline {\n font-size: 32px\n }\n }\n\n @media (max-width:260px) {\n .grid-container {\n font-size: 14px\n }\n\n h3.afterpay-modal-headline {\n font-size: 28px\n }\n }\n </style>\n <style type=\"text/css\">\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n .afterpay-modal-wrapper .grid-container {\n display: -ms-grid;\n -ms-grid-rows: auto;\n -ms-grid-columns: (25%)[4];\n font-size: 14px\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 {\n -ms-grid-row: 1;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding-top: 0\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 .afterpay-modal-logo svg {\n height: 15vh\n }\n\n .afterpay-modal-wrapper .grid-container .row-1 {\n -ms-grid-row: 2;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 20px 0 45px 0\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 1\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 2\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 4;\n grid-area: body-d\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 1;\n grid-area: body-e\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 2;\n grid-area: body-f\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 4\n }\n\n .afterpay-modal-wrapper .grid-container .row-3 {\n -ms-grid-row: 5;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 80px 0 40px 0\n }\n }\n </style>\n <script id=\"post-events-to-parent\">\n ! function() {\n try {\n var t = window && window.parent;\n t && t !== window.self && \"function\" == typeof t.postMessage && (t.postMessage(\"Afterpay.ready\", \"*\"), document.addEventListener(\"keyup\", function(e) {\n e = e.key || e.keyCode;\n \"Escape\" !== e && \"Esc\" !== e && 27 !== e || t.postMessage(\"Afterpay.keyup.esc\", \"*\")\n }))\n } catch (e) {}\n }()\n </script>\n </div>\n </div>\n</div>\n</div>";
|
|
82
|
+
|
|
83
|
+
var apModalFrenchHTML = "<div id=\"afterpay-modal-component\">\n<style>\n .afterpay-modal-overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n visibility: hidden;\n transform: scale(1.1);\n transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;\n z-index: 999999999;\n }\n\n #afterpay-modal-component .visible {\n opacity: 1;\n visibility: visible;\n transform: scale(1);\n transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;\n }\n\n #afterpay-modal-component #afterpay-modal {\n background-color: #fff;\n color: #000;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 2px;\n width: 774px;\n max-width: 100vw;\n max-height: 100%;\n line-height: 1.1;\n display: block;\n overflow: auto;\n }\n\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 0px;\n max-width: 100%;\n width: 476px;\n }\n\n @media (min-width:473px) and (min-height:686px) {\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 12px;\n }\n }\n\n #afterpay-modal-component #afterpay-modal .afterpay-close-button {\n position: absolute;\n z-index: 3;\n background-color: transparent;\n min-width: 0;\n top: 18px;\n right: 18px;\n border: 0;\n cursor: pointer;\n }\n\n #afterpay-modal-component button {\n min-width: 80px;\n background-color: #848e97;\n border-color: #848e97;\n border-style: solid;\n border-radius: 2px;\n padding: 3px;\n color: white;\n cursor: pointer;\n display: none;\n }\n\n #afterpay-modal-component button:hover {\n background-color: #6c757d;\n border-color: #6c757d;\n }\n\n .afterpay-loading-indicator {\n display: block;\n background-color: transparent;\n width: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n\n .afterpay-loading-indicator::after {\n content: \" \";\n display: block;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n border: 5px solid #b2fce4;\n border-color: #b2fce4 transparent #b2fce4 transparent;\n animation: afterpay-loading-indicator 1.2s linear infinite;\n }\n\n @keyframes afterpay-loading-indicator {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .modal-content .error-container {\n padding: 25px;\n text-align: center;\n background-color: #b2fce4;\n opacity: 0;\n visibility: hidden;\n }\n\n .modal-content.error .error-container {\n opacity: 1;\n visibility: visible;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n }\n\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n #afterpay-modal-component #afterpay-modal {\n bottom: auto;\n }\n }\n</style>\n<div class=\"afterpay-modal-overlay visible\">\n <div class=\"afterpay-loading-indicator\" style=\"display: none;\"></div>\n <div id=\"afterpay-modal\" role=\"dialog\" tabindex=\"-1\" aria-modal=\"true\" aria-describedby=\"afterpay-modal-container\" aria-label=\"Afterpay\">\n <button class=\"afterpay-close-button\" id=\"afterpay-modal-close-button\" tabindex=\"1\" autofocus=\"false\" aria-label=\"Bouton de fermeture modal Afterpay\" style=\"display: block;\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" width=\"20\" height=\"20\" viewBox=\"0 0 30 30\" aria-hidden=\"true\">\n <defs>\n <style>\n .a {\n fill: none;\n stroke: #808284;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px;\n }\n </style>\n </defs>\n <title>Bouton de fermeture modal Afterpay</title>\n <line class=\"a\" x1=\"1\" y1=\"1\" x2=\"29\" y2=\"29\"></line>\n <line class=\"a\" x1=\"1\" y1=\"29\" x2=\"29\" y2=\"1\"></line>\n </svg>\n </button>\n <div class=\"modal-content\">\n <div id=\"afterpay-modal-container\" class=\"afterpay-modal-wrapper\">\n <div class=\"grid-container\">\n <div class=\"row-0\">\n <div class=\"afterpay-modal-logo\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 1150 222\" class=\"afterpay-logo-black\" aria-label=\"Afterpay logo\">\n <path d=\"M1132 45.3l-34.6-19.8-35.1-20.1a34.9 34.9 0 00-52.2 30.2V40c0 2.5 1.3 4.8 3.5 6l16.3 9.3a6.8 6.8 0 0010.1-6V38.9c0-5.3 5.7-8.6 10.3-6l32 18.4 31.9 18.3a6.9 6.9 0 010 11.9l-31.9 18.3-32 18.4a6.9 6.9 0 01-10.3-6v-5.3c0-26.8-29-43.6-52.2-30.2l-35.1 20-34.6 19.9a35 35 0 000 60.5l34.6 19.8 35.1 20a34.9 34.9 0 0052.2-30.1v-4.5c0-2.5-1.3-4.8-3.5-6l-16.3-9.3a6.8 6.8 0 00-10.1 5.9v10.7c0 5.3-5.7 8.6-10.3 6l-32-18.4-31.9-18.3a6.9 6.9 0 010-12l31.9-18.2 32-18.4a6.9 6.9 0 0110.3 6v5.3c0 26.8 29 43.6 52.2 30.2l35.1-20.1 34.6-19.8a35 35 0 000-60.5zm-227 6.6l-81 167.3h-33.6l30.3-62.5L773 51.9h34.5l30.6 70.2 33.4-70.2H905zM95.1 111.3c0-20-14.5-34-32.3-34s-32.3 14.3-32.3 34c0 19.5 14.5 34 32.3 34s32.3-14 32.3-34m.3 59.4v-15.4a47.6 47.6 0 01-37.5 17.3C25.3 172.6.6 146.5.6 111.3c0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H95.4zm171.2-26.4c-10.2 0-13.1-3.8-13.1-13.8V77.8h18.8v-26h-18.8v-29h-29.9v29H185V40.2c0-10 3.8-13.8 14.3-13.8h6.6v-23h-14.4c-24.7 0-36.4 8-36.4 32.8V52h-16.6v25.8h16.6v92.9H185v-93h38.6V136c0 24.2 9.3 34.7 33.5 34.7h15.4v-26.4h-5.9zM374 100.6c-2.1-15.4-14.7-24.7-29.5-24.7-14.7 0-26.9 9-29.9 24.7H374zM314.3 119a29.6 29.6 0 0030.7 27.6c12.6 0 22.3-6 28-15.4h30.7c-7.1 25.2-29.7 41.3-59.4 41.3a58.5 58.5 0 01-61.1-61.1A60 60 0 01345 49.7a59.5 59.5 0 0160.4 69.4h-91.1zm282.2-7.8a33 33 0 00-32.3-34c-17.8 0-32.3 14.3-32.3 34 0 19.5 14.5 34 32.3 34a32.9 32.9 0 0032.3-34m-94.1 107.9V51.9h29.2v15.4a47.2 47.2 0 0137.5-17.6c32.1 0 57.3 26.4 57.3 61.3s-25.7 61.5-58 61.5a46 46 0 01-35.9-16v62.6h-30.1zm229.3-108c0-20-14.5-34-32.3-34-17.8 0-32.3 14.4-32.3 34s14.5 34 32.3 34c17.8 0 32.3-14 32.3-34m.3 59.5v-15.4a47.6 47.6 0 01-37.5 17.3c-32.6 0-57.3-26.1-57.3-61.3 0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H732zM449.7 63.5s7.4-13.8 25.7-13.8c7.8 0 12.8 2.7 12.8 2.7v30.3s-11-6.8-21.1-5.4c-10.1 1.4-16.5 10.6-16.5 23v70.3h-30.2V51.9h29.2v11.6h.1z\"></path>\n </svg>\n </div>\n </div>\n <div class=\"row-1\">\n <h3 class=\"afterpay-modal-headline\">Magasinez maintenant. <span>Payez plus tard.</span>\n <div>Toujours sans int\xE9r\xEAts.</div>\n </h3>\n </div>\n <div class=\"process-step-1 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 72\" class=\"process-icon shopping-cart\" aria-label=\"Step 1\">\n <path class=\"c1\" d=\"M26 55.47a27.28 27.28 0 01-4-3c-2.13-1.87-4.52-4.49-4.44-7.36a5 5 0 01.37-1.75 4.27 4.27 0 018.13.25 4.27 4.27 0 018.13-.25 5 5 0 01.37 1.75c.08 2.87-2.31 5.49-4.44 7.36a27.28 27.28 0 01-4 3\"></path>\n <path class=\"c1\" fill=\"#000\" d=\"M10.5 35V17a15.5 15.5 0 0131 0v18\"></path>\n <path class=\"c1\" transform=\"rotate(90 85.5 -4.5)\" d=\"M110.5 30.5h45.79a4.21 4.21 0 014.21 4.21v40.58a4.21 4.21 0 01-4.21 4.21H110.5v-49z\"></path>\n </svg>\n </div>\n <div class=\"process-step-1 process-subheading\">Ajoutez votre liste de souhaits au panier.</div>\n <div class=\"process-step-2 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon afterpay-desktop\" aria-label=\"Step 2\">\n <path class=\"c1\" d=\"M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.93V50.5h-69V5.43a3.93 3.93 0 013.93-3.93z\"></path>\n <path d=\"M54.75 17.52L50.3 15l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L31.7 37l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon afterpay-mobile\" aria-label=\"Step 2\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M1.49 10.5h49\"></path>\n <path class=\"c1\" d=\"M1.49 75.5h49\"></path>\n <path class=\"c1\" d=\"M21.49 6.5h9\"></path>\n <path d=\"M39.75 32.52L35.3 30l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L16.7 52l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n </svg>\n </div>\n <div class=\"process-step-2 process-subheading\">S\xE9lectionnez Afterpay lors de l'achat.</div>\n <div class=\"process-step-3 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon sign-up-desktop\" aria-label=\"Step 3\">\n <path class=\"c1\" d=\"M52.51 28.12l4.43 4.45L65.5 24\"></path>\n <circle class=\"c1\" cx=\"31\" cy=\"26\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"31\" cy=\"21.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M20.92 36.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.8M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.94V50.5h-69V5.45a3.93 3.93 0 013.93-3.93z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon sign-up-mobile\" aria-label=\"Step 3\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M21.46 58.06l4.43 4.45 8.55-8.58M1.5 10.5h48.99M1.5 75.5h48.99M21.5 6.5h9\"></path>\n <circle class=\"c1\" cx=\"26\" cy=\"34\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"26\" cy=\"29.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M15.93 44.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.79\"></path>\n </svg>\n </div>\n <div class=\"process-step-3 process-subheading\">Connectez-vous ou cr\xE9er votre compte Afterpay, r\xE9ponse instantan\xE9e.</div>\n <div class=\"process-step-4 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"14 7 79 79\" class=\"process-icon four-payments\" aria-label=\"Step 4\">\n <path class=\"c1\" d=\"M50,15.5A34.5,34.5,0,0,0,15.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M15.5,50A34.5,34.5,0,0,0,50,84.5V50Z\"></path>\n <path class=\"c1\" d=\"M50,84.5h0A34.5,34.5,0,0,0,84.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M57,8.5h0V43h34.5A34.5,34.5,0,0,0,57,8.5Z\"></path>\n </svg>\n </div>\n <div class=\"process-step-4 process-subheading\">4 paiements \xE9chelonn\xE9s, toutes les 2 semaines.</div>\n <div class=\"row-3\">\n <div class=\"disclaimer\">Vous devez avoir l'\xE2ge de la majorit\xE9 \xE9tablie dans votre province ou territoire et \xEAtre un r\xE9sident du Canada. Des crit\xE8res d'\xE9ligibilit\xE9 suppl\xE9mentaires sont applicables. <br>\n <br>Les montants estim\xE9s figurant sur les pages de produits ne comprennent pas les taxes et les frais d'exp\xE9dition, qui sont ajout\xE9s lors du passage en caisse. Cliquez <a href=\"https://www.afterpay.com/fr-CA/instalment-agreement\" aria-label=\"Lire les mentions l\xE9gales de Afterpay (Nouvelle fen\xEAtre)\" target=\"_blank\" rel=\"noopener\" class=\"disclaimer-link\" tabindex=\"1\">ici</a> pour consulter les mentions l\xE9gales. <span>\xA9 2020 Afterpay Canada</span>\n </div>\n </div>\n </div>\n </div>\n <style type=\"text/css\">\n body.afterpay-modal-body,\n html.afterpay-modal-html {\n height: 100%\n }\n\n body.afterpay-modal-body {\n margin: 0;\n background-color: #b2fce4\n }\n\n body.afterpay-modal-body.theme-white {\n background: #fff\n }\n\n :-moz-ui-invalid:not(output) {\n box-shadow: none\n }\n\n .afterpay-modal-wrapper {\n min-height: 100%;\n padding: 0 24px;\n background: #b2fce4\n }\n\n .afterpay-modal-wrapper.theme-white {\n background: #fff\n }\n\n .afterpay-modal-wrapper * {\n box-sizing: border-box;\n text-decoration: none;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n color: #000\n }\n\n .grid-container {\n display: grid;\n margin: 0 auto;\n max-width: 800px;\n text-align: center;\n font-size: 16px;\n grid-template-rows: auto;\n grid-template-columns: repeat(4, 25%);\n grid-template-areas: \"logo logo logo logo\"\"headline headline headline headline\"\"body-a body-b body-c body-d\"\"body-e body-f body-g body-h\"\"cbt-block cbt-block cbt-block cbt-block\"\"footer footer footer footer\"\n }\n\n .row-0 {\n grid-area: logo;\n padding-top: 45px\n }\n\n .row-1 {\n grid-area: headline;\n padding: 3% 0 8% 0\n }\n\n .process-step-1.process-icon-container {\n grid-area: body-a\n }\n\n .process-step-2.process-icon-container {\n grid-area: body-b\n }\n\n .process-step-3.process-icon-container {\n grid-area: body-c\n }\n\n .process-step-4.process-icon-container {\n grid-area: body-d\n }\n\n .process-step-1.process-subheading {\n grid-area: body-e\n }\n\n .process-step-2.process-subheading {\n grid-area: body-f\n }\n\n .process-step-3.process-subheading {\n grid-area: body-g\n }\n\n .process-step-4.process-subheading {\n grid-area: body-h\n }\n\n .row-3 {\n grid-area: footer\n }\n\n .grid-container>div {\n align-content: stretch\n }\n\n .afterpay-modal-logo svg {\n width: 100%;\n max-width: 275px;\n height: auto\n }\n\n h3.afterpay-modal-headline {\n margin: 0;\n font-size: 44px;\n font-weight: 600;\n line-height: 1.1\n }\n\n .process-icon-container {\n align-self: end\n }\n\n .process-icon-container svg {\n width: auto;\n height: auto;\n max-width: 110px;\n max-height: 95px\n }\n\n .process-icon-container svg .c1 {\n fill: none;\n stroke: #000;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px\n }\n\n .process-subheading {\n padding: 10% 3% 0 3%;\n font-weight: 600;\n line-height: 1.25\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: none\n }\n\n .row-3 {\n padding: 8% 0 40px 0\n }\n\n .disclaimer {\n font-size: 12px\n }\n\n .disclaimer-link {\n color: #000;\n text-decoration: underline\n }\n\n .disclaimer-link:active {\n color: #000\n }\n\n .afterpay-footer-example {\n margin-top: 1.875em;\n font-size: x-small;\n font-weight: 600\n }\n\n .afterpay-underline {\n text-decoration: underline\n }\n\n .afterpay-bold {\n font-weight: 700\n }\n\n .afterpay-reference-symbol {\n font-weight: 400;\n font-size: .5em;\n vertical-align: text-top\n }\n\n .footer-terms {\n margin: 1.875em auto 0;\n font-size: x-small;\n color: #888d8d\n }\n\n .afterpay-footer-example {\n margin: inherit\n }\n\n @media (min-width:700px) {\n .process-step-4 .process-subheading {\n max-width: 170px\n }\n }\n\n @media (max-width:768px) {\n .grid-container {\n max-width: 500px;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-b\"\"body-e body-f\"\"body-c body-d\"\"body-g body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-1 {\n padding: 3% 0 20px 0\n }\n\n .process-icon-container {\n padding: 24px 0 0 0\n }\n }\n\n @media (max-width:600px) {\n .afterpay-modal-wrapper {\n padding: 0\n }\n\n .grid-container {\n padding: 30px;\n text-align: left;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-e\"\"body-b body-f\"\"body-c body-g\"\"body-d body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-0 {\n padding-top: 0\n }\n\n .row-1 {\n padding: 20px 0 8% 0\n }\n\n h3.afterpay-modal-headline {\n font-size: 40px\n }\n\n svg.afterpay-desktop,\n svg.sign-up-desktop {\n display: none\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: block\n }\n\n .process-icon-container {\n align-self: start;\n padding: 12px 0\n }\n\n h3.afterpay-modal-headline>p>span {\n padding: 2px 2px;\n display: table;\n text-align: center\n }\n\n .process-icon-container svg {\n max-height: 65px\n }\n\n .process-icon-container svg.four-payments {\n max-height: 55px\n }\n\n .process-subheading {\n padding: 6px 0 6px 5px;\n align-self: center\n }\n\n .row-3 {\n padding: 8% 0 20px 0\n }\n }\n\n @media (max-width:420px) {\n .afterpay-modal-logo svg {\n max-width: 200px\n }\n\n h3.afterpay-modal-headline {\n font-size: 36px\n }\n }\n\n @media (max-width:335px) {\n h3.afterpay-modal-headline {\n font-size: 32px\n }\n }\n\n @media (max-width:260px) {\n .grid-container {\n font-size: 14px\n }\n\n h3.afterpay-modal-headline {\n font-size: 28px\n }\n }\n </style>\n <style type=\"text/css\">\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n .afterpay-modal-wrapper .grid-container {\n display: -ms-grid;\n -ms-grid-rows: auto;\n -ms-grid-columns: (25%)[4];\n font-size: 14px\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 {\n -ms-grid-row: 1;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding-top: 0\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 .afterpay-modal-logo svg {\n height: 15vh\n }\n\n .afterpay-modal-wrapper .grid-container .row-1 {\n -ms-grid-row: 2;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 20px 0 45px 0\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 1\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 2\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 4;\n grid-area: body-d\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 1;\n grid-area: body-e\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 2;\n grid-area: body-f\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 4\n }\n\n .afterpay-modal-wrapper .grid-container .row-3 {\n -ms-grid-row: 5;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 80px 0 40px 0\n }\n }\n </style>\n <script id=\"post-events-to-parent\">\n ! function() {\n try {\n var t = window && window.parent;\n t && t !== window.self && \"function\" == typeof t.postMessage && (t.postMessage(\"Afterpay.ready\", \"*\"), document.addEventListener(\"keyup\", function(e) {\n e = e.key || e.keyCode;\n \"Escape\" !== e && \"Esc\" !== e && 27 !== e || t.postMessage(\"Afterpay.keyup.esc\", \"*\")\n }))\n } catch (e) {}\n }()\n </script>\n </div>\n </div>\n</div>\n</div>";
|
|
63
84
|
|
|
64
85
|
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
65
86
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -143,22 +164,21 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
143
164
|
value: function getDerivedStateFromProps(props, state) {
|
|
144
165
|
if (!state.modalElement) {
|
|
145
166
|
var modalElement = document.createElement('div');
|
|
167
|
+
var currentLang = getSupportedLanguage();
|
|
146
168
|
switch (props.modalType) {
|
|
147
169
|
case 'afterpay':
|
|
148
170
|
modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal sezzle-ap-modal';
|
|
149
|
-
modalElement.innerHTML =
|
|
171
|
+
modalElement.innerHTML = currentLang === 'fr' ? apModalFrenchHTML : apModalEnglishHTML;
|
|
150
172
|
break;
|
|
151
173
|
default:
|
|
152
174
|
modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal';
|
|
153
|
-
modalElement.innerHTML =
|
|
175
|
+
modalElement.innerHTML = currentLang === 'fr' ? modalFrenchHTML : modalEnglishHTML;
|
|
154
176
|
}
|
|
155
|
-
modalElement.style.display = state.isModalVisible ? 'block' : 'none';
|
|
156
177
|
state = _objectSpread$2(_objectSpread$2({}, state), {}, {
|
|
157
178
|
modalElement: modalElement
|
|
158
179
|
});
|
|
159
|
-
} else {
|
|
160
|
-
state.isModalVisible ? state.modalElement.style.display = 'block' : state.modalElement.style.display = 'none';
|
|
161
180
|
}
|
|
181
|
+
state.modalElement.style.display = state.isModalVisible ? 'block' : 'none';
|
|
162
182
|
return state;
|
|
163
183
|
}
|
|
164
184
|
}]);
|
|
@@ -197,8 +217,8 @@ function styleInject(css, ref) {
|
|
|
197
217
|
}
|
|
198
218
|
}
|
|
199
219
|
|
|
200
|
-
var
|
|
201
|
-
styleInject(
|
|
220
|
+
var css = ".sezzle-checkout-modal-lightbox * {\n\tvertical-align: baseline;\n\tbox-sizing: border-box;\n\tline-height: normal;\n }\n\n .sezzle-checkout-modal-lightbox {\n\tdisplay: none;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 99999998;\n\tbackground-color: rgba(5, 31, 52, 0.57);\n\twidth: 100vw;\n\theight: 100vh;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\tcolor: unset;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal-hidden {\n\ttransition: all 0.4s ease;\n\tmargin-top: 0;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -384px;\n\tmargin-left: -325px;\n\tz-index: 99999998;\n\tbackground-color: #fff;\n\tbox-shadow: 0 10px 20px rgba(5, 31, 52, 0.19), 0 6px 6px rgba(5, 31, 52, 0.2);\n\tborder-radius: 20px;\n\tcolor: #000;\n\tfont-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n\ttransition: all 0.4s ease;\n\twidth: 650px;\n }\n @media (max-width: 650px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\t position: relative;\n\t top: 0px;\n\t left: 0px;\n\t padding: 50px 20px;\n\t margin: 0;\n\t border-radius: 0;\n\t height: 100%;\n\t font-size: 15px;\n\t max-width: 100%;\n\t min-width: 320px;\n\t overflow: auto;\n\t}\n }\n @media (max-height: 767px) and (min-width: 651px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\t position: relative;\n\t top: 0px;\n\t left: 0px;\n\t margin: 20px auto;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h1 {\n\tfont-size: 18px;\n\ttext-align: center;\n\tmargin: 0 auto;\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal h1 .sezzle-checkout-modal h1 {\n\t font-size: 16px;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\tdisplay: block;\n\ttext-align: center;\n\ttext-transform: none;\n\tfont-size: 12pt;\n\tline-height: 25px;\n\tfont-weight: 300;\n\tbox-sizing: border-box;\n\tcolor: #7d8588;\n\tmargin: 5px 0 !important;\n\tletter-spacing: 0.25px;\n }\n @media (max-width: 768px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\t text-align: center;\n\t}\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\t font-size: 11pt;\n\t text-align: center;\n\t letter-spacing: 0.5px;\n\t line-height: 18px;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal p small {\n\tdisplay: block;\n\tbox-sizing: border-box;\n\tfont-size: 11pt;\n\topacity: 0.8;\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p small {\n\t font-size: 7.5pt;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal a {\n\tdisplay: block;\n\tmargin: 4px auto 0;\n\tcolor: #17ce6a;\n\tfont-size: 8pt;\n\tfont-weight: 500;\n\ttext-transform: lowercase;\n\ttext-align: left;\n\tletter-spacing: 0.25px;\n\ttext-decoration: none;\n\ttransition: 0.15s;\n\topacity: 0.65;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal a:hover {\n\ttransition: 0.1s;\n\topacity: 1;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 {\n\tfont-size: 18px;\n\ttext-align: center;\n\tmargin: 0 auto;\n\tcolor: unset;\n }\n @media (max-width: 768px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 {\n\t text-align: center;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 img {\n\tmargin: 0 4px;\n\tdisplay: inline-block;\n\theight: 30px !important;\n\twidth: auto;\n\tposition: relative;\n\ttop: 6px;\n\tvertical-align: initial;\n }\n\n .sezzle-shopify-info-button {\n\tdisplay: block;\n\toverflow: hidden;\n\tmargin: 0;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper {\n\tdisplay: block;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n\tcolor: inherit;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper:focus {\n\toutline: 5px auto;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-left {\n\ttext-align: left;\n\tfloat: left;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-center {\n\ttext-align: center;\n\tfloat: none;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-right {\n\ttext-align: right;\n\tfloat: right;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text {\n\twidth: unset;\n\tmargin: auto;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n\tword-wrap: normal;\n\tline-height: 18px;\n\tfont-size: 14px;\n\tfont-weight: 500;\n\tfont-family: inherit;\n\tcolor: inherit;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-left {\n\ttext-align: left;\n\tmargin: 0;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-center {\n\ttext-align: center;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-right {\n\tfloat: right;\n\ttext-align: right;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-payment-amount {\n\tzoom: 1;\n\tfloat: none;\n\tmargin: 0;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n\tfont-weight: 900;\n\tfont-size: 1.2em;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-logo {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\theight: 18px;\n\twidth: auto;\n\topacity: 1;\n\tfloat: none;\n\tmargin: 0;\n\tmargin-bottom: -3px;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-info-icon {\n\tdisplay: inline;\n\twidth: auto;\n\tmargin: 0;\n\tbox-shadow: none;\n\tborder: none;\n\tpadding: 0px 0px 0px 3px;\n\tbackground: none;\n\tvertical-align: baseline;\n\tline-height: initial;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tcursor: pointer;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-ap-logo {\n\theight: 45px;\n\tmargin: 0;\n\tborder: 0;\n\tpadding: 0;\n\tvertical-align: middle;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text button.ap-modal-info-link {\n\tdisplay: inline;\n\twidth: auto;\n\tmargin: 0;\n\tbox-shadow: none;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: middle;\n\tline-height: inherit;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tcursor: pointer;\n }\n\n .sezzle-hidden {\n\tdisplay: none;\n\tvisibility: hidden;\n }\n";
|
|
221
|
+
styleInject(css);
|
|
202
222
|
|
|
203
223
|
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
204
224
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -254,7 +274,7 @@ var SezzleWidgetText = /*#__PURE__*/function (_React$Component) {
|
|
|
254
274
|
en: ' for orders over',
|
|
255
275
|
fr: ' pour les achats de plus de'
|
|
256
276
|
};
|
|
257
|
-
var language =
|
|
277
|
+
var language = getSupportedLanguage();
|
|
258
278
|
var subtemplates = [];
|
|
259
279
|
template[language].split('%%').forEach(function (subTemplate, index) {
|
|
260
280
|
switch (subTemplate) {
|