@sezzle/sezzle-react-widget 2.0.0 → 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/README.md +31 -21
- package/dist/index.es.js +230 -209
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +231 -212
- package/dist/index.js.map +1 -1
- package/package.json +20 -24
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var React = _interopDefault(require('react'));
|
|
6
|
-
var PropTypes = _interopDefault(require('prop-types'));
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var PropTypes = require('prop-types');
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* This function will return the price string
|
|
@@ -17,7 +15,6 @@ function parsePriceString(price) {
|
|
|
17
15
|
if (isNumeric(price[i]) || price[i] === '.' || price[i] === ',') {
|
|
18
16
|
// Ignore actual sentence punctuation
|
|
19
17
|
if (i > 0 && price[i] === '.' && isAlphabet(price[i - 1])) continue;
|
|
20
|
-
|
|
21
18
|
formattedPrice += price[i];
|
|
22
19
|
}
|
|
23
20
|
}
|
|
@@ -48,128 +45,95 @@ function isNumeric(n) {
|
|
|
48
45
|
* @return boolean [if it's alphabet or not]
|
|
49
46
|
*/
|
|
50
47
|
function isAlphabet(n) {
|
|
51
|
-
return
|
|
52
|
-
|
|
48
|
+
return /^[a-zA-Z()]+$/.test(n);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* This is a helper function for formatting the language
|
|
53
|
+
* @return string
|
|
54
|
+
*/
|
|
55
|
+
function getLanguage() {
|
|
56
|
+
var _document$querySelect;
|
|
57
|
+
return (_document$querySelect = document.querySelector('html').lang) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.substring(0, 2).toLowerCase();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* This is a helper function for formatting the language
|
|
62
|
+
* @return string
|
|
63
|
+
*/
|
|
64
|
+
function getSupportedLanguage() {
|
|
65
|
+
var supportedLanguages = ['en', 'fr'];
|
|
66
|
+
var lang = getLanguage();
|
|
67
|
+
return supportedLanguages.indexOf(lang) > -1 ? lang : 'en';
|
|
53
68
|
}
|
|
54
69
|
|
|
55
70
|
function getFormattedPrice(price, numberOfPayments) {
|
|
56
71
|
var priceString = parsePriceString(price);
|
|
57
72
|
var priceReplacer = parsePrice(price);
|
|
58
|
-
|
|
59
73
|
var formatter = price.replace(priceString, '{price}');
|
|
60
|
-
|
|
61
74
|
var sezzleInstallmentPrice = (priceReplacer / numberOfPayments).toFixed(2);
|
|
62
|
-
|
|
63
75
|
var sezzleInstallmentFormattedPrice = formatter.replace('{price}', sezzleInstallmentPrice);
|
|
64
|
-
|
|
65
76
|
return sezzleInstallmentFormattedPrice;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
var modalEnglishHTML = "\n<style>@import url(\"https://fonts.googleapis.com/css?family=Comfortaa\");\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\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: Comfortaa, \"Helvetica Neue\", Helvetica, Arial, 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 8px;\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: 700;\n line-height: 30px;\n font-family: \"Comfortaa\";\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: 16px auto;\n font-family: \"Nunito Sans\";\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}\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: 14px;\n font-weight: 700;\n line-height: 16px;\n font-family: \"Comfortaa\";\n color: #000000;\n margin: 16px 0px 0px;\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 padding: 16px 8px;\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: 8px;\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: 8px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item :first-child {\n padding: 0px 6px;\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: 600;\n line-height: 20px;\n color: #8333D4;\n font-family: \"Nunito Sans\";\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: \"Nunito Sans\";\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: 8px;\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: \"Nunito Sans\";\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: \"Nunito Sans\";\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: \"Nunito sans\";\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header {\n font-family: \"Nunito Sans\";\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: \"Nunito Sans\";\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: 24px 0 0;\n border-top: 1px solid #e5e5e5;\n text-align: center;\n font-family: \"Nunito Sans\";\n}</style>\n<section class=\"sezzle-checkout-modal-lightbox close-sezzle-modal\" role=\"dialog\" aria-label=\"Sezzle Information\" lang=\"en\" style=\"display: none; max-height: 100%;\"><div id=\"sezzle-modal-container\" role=\"dialog\" aria-label=\"Sezzle Modal\" aria-description=\"Learn more about Sezzle\" class=\"sezzle-checkout-modal-hidden\"><div class=\"sezzle-modal sezzle-checkout-modal-hidden\"><div><button role=\"button\" aria-label=\"Close Sezzle Modal\" class=\"close-sezzle-modal\"></button></div><div class=\"sezzle-logo\" title=\"Sezzle\"></div><div id=\"sezzle-modal-core-content\" class=\"sezzle-modal-content\">\n <header class=\"sezzle-header\">Buy Now. Pay Later.</header>\n <p class=\"sezzle-row\">Select Sezzle as your payment method at checkout.</p>\n\n <div class=\"sezzle-four-pay\">\n <p class=\"sezzle-row\">Split your order into 4 or more!</p>\n <div class=\"sezzle-pie-area\">\n <div class=\"due-today\">\n <div class=\"payment-item\">\n <div title=\"pie at 25%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path 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\" fill=\"#8333D4\"></path>\n <path 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\" 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\">Today</span>\n </p>\n </div>\n </div>\n <div class=\"future-payments\">\n <div class=\"payment-item\">\n <div title=\"pie at 50%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" 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\" fill=\"#8333D4\"></path>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Week 2</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"pie at 75%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path 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\" fill=\"#8333D4\"></path>\n <path 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\" 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\">Week 4</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"pie at 100%\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path 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\" fill=\"#8333D4\"></path>\n </svg>\n </div>\n <p class=\"breakdown-row\">\n <span class=\"percentage\">25%</span>\n <span class=\"due\">Week 6</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"sezzle-features\">\n <p class=\"single-feature\">Build your credit with Sezzle*</p>\n <p class=\"single-feature\">Flexible payment options</p>\n <p class=\"single-feature\">Trusted by over 10 million consumers</p>\n </div>\n\n <p class=\"terms\">* Sezzle Up is a free credit reporting program shoppers can opt into to have payments reported to credit bureaus.</p>\n <p class=\"terms\">Subject to approval. First payment date and amount may fluctuate based on eligibility and time of merchant order completion.</p>\n </div></div></div>\n </section>\n\n";
|
|
69
|
-
|
|
70
|
-
var modalFrenchHTML = "\n<style>@import url(\"https://fonts.googleapis.com/css?family=Comfortaa\");\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\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: Comfortaa, \"Helvetica Neue\", Helvetica, Arial, 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 8px;\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: 700;\n line-height: 30px;\n font-family: \"Comfortaa\";\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: 16px auto;\n font-family: \"Nunito Sans\";\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}\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: 14px;\n font-weight: 700;\n line-height: 16px;\n font-family: \"Comfortaa\";\n color: #000000;\n margin: 16px 0px 0px;\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 padding: 16px 8px;\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: 8px;\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: 8px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item :first-child {\n padding: 0px 6px;\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: 600;\n line-height: 20px;\n color: #8333D4;\n font-family: \"Nunito Sans\";\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: \"Nunito Sans\";\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: 8px;\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: \"Nunito Sans\";\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: \"Nunito Sans\";\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: \"Nunito sans\";\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header {\n font-family: \"Nunito Sans\";\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: \"Nunito Sans\";\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: 24px 0 0;\n border-top: 1px solid #e5e5e5;\n text-align: center;\n font-family: \"Nunito Sans\";\n}</style>\n<section class=\"sezzle-checkout-modal-lightbox close-sezzle-modal\" role=\"dialog\" aria-label=\"Sezzle Information\" lang=\"en\" style=\"display: none; max-height: 100%;\"><div id=\"sezzle-modal-container\" role=\"dialog\" aria-label=\"Sezzle Modal\" aria-description=\"Learn more about Sezzle\" class=\"sezzle-checkout-modal-hidden\"><div class=\"sezzle-modal sezzle-checkout-modal-hidden\"><div><button role=\"button\" aria-label=\"Close Sezzle Modal\" class=\"close-sezzle-modal\"></button></div><div class=\"sezzle-logo\" title=\"Sezzle\"></div><div id=\"sezzle-modal-core-content\" class=\"sezzle-modal-content\">\n <header class=\"sezzle-header\">Acheter maintenant. Payer plus tard.</header>\n <p class=\"sezzle-row\">S\xE9lectionnez Sezzle comme mode de paiement lors du paiement.</p>\n\n <div class=\"sezzle-four-pay\">\n <p class=\"sezzle-row\">Divisez votre commande en 4 ou plus !</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 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path 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\" fill=\"#8333D4\"></path>\n <path 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\" 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 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" 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\" 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 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\" fill=\"#8333D4\" fill-opacity=\"0.05\"></path>\n <path 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\" fill=\"#8333D4\"></path>\n <path 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\" 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 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\" 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\n <div class=\"sezzle-features\">\n <p class=\"single-feature\">Construisez votre cr\xE9dit avec Sezzle*</p>\n <p class=\"single-feature\">Options de paiement flexibles</p>\n <p class=\"single-feature\">Reconnu par plus de 10 millions de consommateurs</p>\n </div>\n\n <p class=\"terms\">* Sezzle Up est un programme gratuit d'\xE9valuation du cr\xE9dit auquel les acheteurs peuvent opter pour que les paiements soient signal\xE9s aux bureaux de cr\xE9dit.</p>\n <p class=\"terms\">Soumis \xE0 l'approbation. La date et le montant du premier paiement peuvent varier en fonction de l'\xE9ligibilit\xE9 et de l'heure \xE0 laquelle la commande du marchand est termin\xE9e.</p>\n </div></div></div></section>\n";
|
|
71
|
-
|
|
72
|
-
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>';
|
|
73
|
-
|
|
74
|
-
var classCallCheck = function (instance, Constructor) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
96
|
-
}();
|
|
97
|
-
|
|
98
|
-
var _extends = Object.assign || function (target) {
|
|
99
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
100
|
-
var source = arguments[i];
|
|
101
|
-
|
|
102
|
-
for (var key in source) {
|
|
103
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
104
|
-
target[key] = source[key];
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return target;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
var inherits = function (subClass, superClass) {
|
|
113
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
114
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
118
|
-
constructor: {
|
|
119
|
-
value: subClass,
|
|
120
|
-
enumerable: false,
|
|
121
|
-
writable: true,
|
|
122
|
-
configurable: true
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
var possibleConstructorReturn = function (self, call) {
|
|
129
|
-
if (!self) {
|
|
130
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
var Modal = function (_React$Component) {
|
|
137
|
-
inherits(Modal, _React$Component);
|
|
138
|
-
|
|
79
|
+
var modalEnglishHTML = "\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</style>\n<section class=\"sezzle-checkout-modal-lightbox close-sezzle-modal\" role=\"dialog\" lang=\"en\"\n aria-label=\"Sezzle Information\" aria-description=\"Learn more about Sezzle\" style=\"display: block;\">\n <div id=\"sezzle-modal-container\" role=\"dialog\" aria-label=\"Sezzle Modal\" aria-description=\"Learn more about Sezzle\"\n class=\"sezzle-checkout-modal-hidden\">\n <div class=\"sezzle-modal sezzle-modal-color\">\n <div><button role=\"button\" aria-label=\"Close 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\">Buy Now. Pay Later.\n </header>\n <p class=\"sezzle-row\">\n Pay in 4 by selecting Sezzle at checkout.\n </p>\n <div class=\"sezzle-four-pay\">\n <p class=\"sezzle-row\">\n Flexible payment plans for your budget\n </p>\n <div class=\"sezzle-pie-area\">\n <div class=\"due-today\">\n <div class=\"payment-item\">\n <div title=\"pie at 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\">Today</span>\n </p>\n </div>\n </div>\n <div class=\"future-payments\">\n <div class=\"payment-item\">\n <div title=\"pie at 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\">Week 2</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"pie at 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\">Week 4</span>\n </p>\n </div>\n <div class=\"payment-item\">\n <div title=\"pie at 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\">Week 6</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"sezzle-features\">\n <p class=\"single-feature\">\n No credit check required\n </p>\n <p class=\"single-feature\">\n Instant credit decision\n </p>\n <p class=\"single-feature\">\n Opt in to free credit reporting\n </p>\n </div>\n <p class=\"terms\">Signing up for Sezzle will not impact your credit score. You may opt-in to our free credit\n reporting program, Sezzle Up, to have your payments reported to credit bureaus. Learn more about spending\n power <a href=\"https://sezzle.com/how-it-works\" target=\"_blank\">here</a>.</p>\n <p class=\"terms\">Subject to approval. <a href=\"https://www.sezzle.com/legal\" target=\"_blank\">Click here for\n complete terms.</a> First payment date and amount may fluctuate based on eligibility and time of merchant\n order completion.</p>\n </div>\n </div>\n </div>\n</section>\n\n";
|
|
80
|
+
|
|
81
|
+
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";
|
|
82
|
+
|
|
83
|
+
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>";
|
|
84
|
+
|
|
85
|
+
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>";
|
|
86
|
+
|
|
87
|
+
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); }
|
|
88
|
+
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; }
|
|
89
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
90
|
+
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
91
|
+
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$2(descriptor.key), descriptor); } }
|
|
92
|
+
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
93
|
+
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
94
|
+
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
95
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
96
|
+
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$2(self); }
|
|
97
|
+
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
98
|
+
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
99
|
+
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
100
|
+
function _defineProperty$2(obj, key, value) { key = _toPropertyKey$2(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
101
|
+
function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
|
|
102
|
+
function _toPrimitive$2(input, hint) { if (_typeof$2(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$2(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
103
|
+
var Modal = /*#__PURE__*/function (_React$Component) {
|
|
104
|
+
_inherits$2(Modal, _React$Component);
|
|
105
|
+
var _super = _createSuper$2(Modal);
|
|
139
106
|
function Modal(props) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
107
|
+
var _this;
|
|
108
|
+
_classCallCheck$2(this, Modal);
|
|
109
|
+
_this = _super.call(this, props);
|
|
110
|
+
_defineProperty$2(_assertThisInitialized$2(_this), "toggleModalVisibility", function (isModalVisible) {
|
|
111
|
+
if (isModalVisible !== _this.state.isModalVisible) {
|
|
112
|
+
_this.setState(_objectSpread$2(_objectSpread$2({}, _this.state), {}, {
|
|
113
|
+
isModalVisible: isModalVisible
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
_defineProperty$2(_assertThisInitialized$2(_this), "modalCloseHandler", function (event) {
|
|
149
118
|
_this.props.callbackModalClose(_this.props.modalType);
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
|
|
119
|
+
});
|
|
153
120
|
_this.state = {
|
|
154
|
-
modalElement: null
|
|
121
|
+
modalElement: null,
|
|
122
|
+
isModalVisible: false
|
|
155
123
|
};
|
|
156
124
|
return _this;
|
|
157
125
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
key: 'componentDidMount',
|
|
126
|
+
_createClass$2(Modal, [{
|
|
127
|
+
key: "componentDidMount",
|
|
161
128
|
value: function componentDidMount() {
|
|
162
129
|
var _this2 = this;
|
|
163
|
-
|
|
164
130
|
document.querySelector('html').appendChild(this.state.modalElement);
|
|
165
|
-
|
|
166
|
-
var sezzleModal = void 0;
|
|
131
|
+
var sezzleModal;
|
|
167
132
|
if (this.props.modalType === 'afterpay') {
|
|
168
133
|
sezzleModal = document.querySelector('.sezzle-ap-modal');
|
|
169
134
|
} else {
|
|
170
135
|
sezzleModal = document.querySelector('.sezzle-modal');
|
|
171
136
|
}
|
|
172
|
-
|
|
173
137
|
sezzleModal.addEventListener('click', function (event) {
|
|
174
138
|
return event.stopPropagation();
|
|
175
139
|
});
|
|
@@ -180,12 +144,12 @@ var Modal = function (_React$Component) {
|
|
|
180
144
|
});
|
|
181
145
|
}
|
|
182
146
|
}, {
|
|
183
|
-
key:
|
|
147
|
+
key: "componentDidUpdate",
|
|
184
148
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
185
149
|
this.toggleModalVisibility(this.props.toggleModalVisibility);
|
|
186
150
|
}
|
|
187
151
|
}, {
|
|
188
|
-
key:
|
|
152
|
+
key: "componentWillUnmount",
|
|
189
153
|
value: function componentWillUnmount() {
|
|
190
154
|
var modals = document.querySelector('html').getElementsByClassName('sezzle-checkout-modal-lightbox');
|
|
191
155
|
for (var i = 0; i < modals.length; i++) {
|
|
@@ -193,36 +157,35 @@ var Modal = function (_React$Component) {
|
|
|
193
157
|
}
|
|
194
158
|
}
|
|
195
159
|
}, {
|
|
196
|
-
key:
|
|
160
|
+
key: "render",
|
|
197
161
|
value: function render() {
|
|
198
162
|
return null;
|
|
199
163
|
}
|
|
200
164
|
}], [{
|
|
201
|
-
key:
|
|
165
|
+
key: "getDerivedStateFromProps",
|
|
202
166
|
value: function getDerivedStateFromProps(props, state) {
|
|
203
|
-
if (state.modalElement)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
modalElement
|
|
167
|
+
if (!state.modalElement) {
|
|
168
|
+
var modalElement = document.createElement('div');
|
|
169
|
+
var currentLang = getSupportedLanguage();
|
|
170
|
+
switch (props.modalType) {
|
|
171
|
+
case 'afterpay':
|
|
172
|
+
modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal sezzle-ap-modal';
|
|
173
|
+
modalElement.innerHTML = currentLang === 'fr' ? apModalFrenchHTML : apModalEnglishHTML;
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal';
|
|
177
|
+
modalElement.innerHTML = currentLang === 'fr' ? modalFrenchHTML : modalEnglishHTML;
|
|
178
|
+
}
|
|
179
|
+
state = _objectSpread$2(_objectSpread$2({}, state), {}, {
|
|
180
|
+
modalElement: modalElement
|
|
181
|
+
});
|
|
217
182
|
}
|
|
218
|
-
state =
|
|
183
|
+
state.modalElement.style.display = state.isModalVisible ? 'block' : 'none';
|
|
219
184
|
return state;
|
|
220
185
|
}
|
|
221
186
|
}]);
|
|
222
187
|
return Modal;
|
|
223
188
|
}(React.Component);
|
|
224
|
-
|
|
225
|
-
|
|
226
189
|
Modal.propTypes = {
|
|
227
190
|
toggleModalVisibility: PropTypes.bool,
|
|
228
191
|
modalType: PropTypes.string,
|
|
@@ -259,14 +222,29 @@ function styleInject(css, ref) {
|
|
|
259
222
|
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";
|
|
260
223
|
styleInject(css);
|
|
261
224
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
225
|
+
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); }
|
|
226
|
+
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; }
|
|
227
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
228
|
+
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
229
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
230
|
+
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor); } }
|
|
231
|
+
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
232
|
+
function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
233
|
+
function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
234
|
+
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
235
|
+
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
236
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
237
|
+
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$1(self); }
|
|
238
|
+
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
239
|
+
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
240
|
+
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
241
|
+
var SezzleWidgetText = /*#__PURE__*/function (_React$Component) {
|
|
242
|
+
_inherits$1(SezzleWidgetText, _React$Component);
|
|
243
|
+
var _super = _createSuper$1(SezzleWidgetText);
|
|
265
244
|
function SezzleWidgetText(props) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
245
|
+
var _this;
|
|
246
|
+
_classCallCheck$1(this, SezzleWidgetText);
|
|
247
|
+
_this = _super.call(this, props);
|
|
270
248
|
_this.state = {
|
|
271
249
|
config: _this.props.config,
|
|
272
250
|
sezzle: false,
|
|
@@ -275,78 +253,91 @@ var SezzleWidgetText = function (_React$Component) {
|
|
|
275
253
|
};
|
|
276
254
|
return _this;
|
|
277
255
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
key: 'renderSezzleWidgetText',
|
|
256
|
+
_createClass$1(SezzleWidgetText, [{
|
|
257
|
+
key: "renderSezzleWidgetText",
|
|
281
258
|
value: function renderSezzleWidgetText() {
|
|
282
259
|
var _this2 = this;
|
|
283
|
-
|
|
284
260
|
var numberOfPayments = 4;
|
|
285
261
|
var logoURLs = {
|
|
286
|
-
|
|
287
|
-
|
|
262
|
+
light: 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg',
|
|
263
|
+
dark: 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor_WhiteWM.svg',
|
|
288
264
|
'black-flat': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_BlackAlt.svg',
|
|
289
265
|
'white-flat': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_WhiteAlt.svg'
|
|
290
266
|
};
|
|
291
267
|
var template = {
|
|
292
|
-
en:
|
|
293
|
-
fr:
|
|
268
|
+
en: "or ".concat(numberOfPayments, " interest-free payments of %%price%% with %%logo%%%%afterpay%%%%min-price%% %%info%%"),
|
|
269
|
+
fr: "ou ".concat(numberOfPayments, " paiements de %%price%% sans int\xE9r\xEAts avec %%logo%%%%afterpay%%%%min-price%% %%info%%")
|
|
294
270
|
};
|
|
295
271
|
var clickHere = {
|
|
296
272
|
en: 'Click here to learn more about Sezzle',
|
|
297
|
-
fr: 'Cliquez pour en savoir plus sur Sezzle'
|
|
273
|
+
fr: 'Cliquez ici pour en savoir plus sur Sezzle'
|
|
298
274
|
};
|
|
299
275
|
var ordersOver = {
|
|
300
276
|
en: ' for orders over',
|
|
301
277
|
fr: ' pour les achats de plus de'
|
|
302
278
|
};
|
|
303
|
-
var language =
|
|
279
|
+
var language = getSupportedLanguage();
|
|
304
280
|
var subtemplates = [];
|
|
305
281
|
template[language].split('%%').forEach(function (subTemplate, index) {
|
|
306
282
|
switch (subTemplate) {
|
|
307
283
|
case 'price':
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
);
|
|
284
|
+
// eslint-disable-next-line no-case-declarations
|
|
285
|
+
var priceElement = /*#__PURE__*/React.createElement("span", {
|
|
286
|
+
className: "sezzle-payment-amount sezzle-button-text",
|
|
287
|
+
key: index
|
|
288
|
+
}, getFormattedPrice(_this2.state.config.price, numberOfPayments));
|
|
313
289
|
subtemplates.push(priceElement);
|
|
314
290
|
break;
|
|
315
291
|
case 'logo':
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
292
|
+
// eslint-disable-next-line no-case-declarations
|
|
293
|
+
var logoElement = /*#__PURE__*/React.createElement("img", {
|
|
294
|
+
alt: "Sezzle",
|
|
295
|
+
className: "sezzle-logo szl-".concat(_this2.state.config.theme === 'dark' || _this2.state.config.theme === 'white-flat' ? 'dark' : 'light', "-image"),
|
|
296
|
+
src: logoURLs[_this2.state.config.theme] || logoURLs.light,
|
|
297
|
+
style: {
|
|
298
|
+
transformOrigin: "top-".concat(_this2.state.config.alignment),
|
|
299
|
+
transform: "scale(".concat(_this2.state.config.logoSize, ")"),
|
|
300
|
+
cursor: 'pointer',
|
|
301
|
+
width: '74px',
|
|
302
|
+
height: '18px'
|
|
303
|
+
},
|
|
304
|
+
key: index,
|
|
305
|
+
onClick: function onClick() {
|
|
320
306
|
return _this2.openModal('sezzle');
|
|
321
|
-
}
|
|
307
|
+
}
|
|
308
|
+
});
|
|
322
309
|
subtemplates.push(logoElement);
|
|
323
310
|
break;
|
|
324
311
|
case 'info':
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
312
|
+
// eslint-disable-next-line no-case-declarations
|
|
313
|
+
var infoElement = /*#__PURE__*/React.createElement("div", {
|
|
314
|
+
"aria-label": "".concat(clickHere[language]),
|
|
315
|
+
className: "sezzle-info-icon",
|
|
316
|
+
key: index,
|
|
317
|
+
onClick: function onClick() {
|
|
318
|
+
return _this2.openModal('sezzle');
|
|
319
|
+
}
|
|
320
|
+
}, "\u24D8");
|
|
332
321
|
subtemplates.push(infoElement);
|
|
333
322
|
break;
|
|
334
323
|
case 'afterpay':
|
|
335
324
|
if (_this2.state.config.includeAPModal) {
|
|
336
|
-
subtemplates.push(language ===
|
|
337
|
-
var apLogo = React.createElement(
|
|
325
|
+
subtemplates.push(language === 'fr' ? ' ou ' : ' or ');
|
|
326
|
+
var apLogo = /*#__PURE__*/React.createElement("img", {
|
|
327
|
+
className: "sezzle-ap-logo ap-modal-info-link no-sezzle-info",
|
|
338
328
|
src: 'https://media.sezzle.com/sezzle-credit-website-assets/ap-badge-black-on-mint.svg',
|
|
339
329
|
onClick: function onClick() {
|
|
340
330
|
return _this2.openModal('afterpay');
|
|
341
|
-
},
|
|
342
|
-
|
|
331
|
+
},
|
|
332
|
+
key: index,
|
|
333
|
+
alt: "Afterpay"
|
|
343
334
|
});
|
|
344
335
|
subtemplates.push(apLogo);
|
|
345
336
|
}
|
|
346
337
|
break;
|
|
347
338
|
case 'min-price':
|
|
348
339
|
if (_this2.state.config.minPrice && !_this2.state.config.includeAPModal) {
|
|
349
|
-
subtemplates.push(ordersOver[language]
|
|
340
|
+
subtemplates.push("".concat(ordersOver[language], " $").concat(_this2.state.config.minPrice));
|
|
350
341
|
}
|
|
351
342
|
break;
|
|
352
343
|
default:
|
|
@@ -356,64 +347,95 @@ var SezzleWidgetText = function (_React$Component) {
|
|
|
356
347
|
return subtemplates;
|
|
357
348
|
}
|
|
358
349
|
}, {
|
|
359
|
-
key:
|
|
350
|
+
key: "openModal",
|
|
360
351
|
value: function openModal(modalType) {
|
|
361
|
-
modalType === 'afterpay' ? this.setState({
|
|
352
|
+
modalType === 'afterpay' ? this.setState({
|
|
353
|
+
afterpay: true
|
|
354
|
+
}) : this.setState({
|
|
355
|
+
sezzle: true
|
|
356
|
+
});
|
|
362
357
|
}
|
|
363
358
|
}, {
|
|
364
|
-
key:
|
|
359
|
+
key: "closeModal",
|
|
365
360
|
value: function closeModal(modalType) {
|
|
366
|
-
modalType === 'afterpay' ? this.setState({
|
|
361
|
+
modalType === 'afterpay' ? this.setState({
|
|
362
|
+
afterpay: false
|
|
363
|
+
}) : this.setState({
|
|
364
|
+
sezzle: false
|
|
365
|
+
});
|
|
367
366
|
}
|
|
368
367
|
}, {
|
|
369
|
-
key:
|
|
368
|
+
key: "render",
|
|
370
369
|
value: function render() {
|
|
371
370
|
var _this3 = this;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
)
|
|
371
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
372
|
+
className: "sezzle-shopify-info-button sezzle-".concat(this.state.config.merchantId || '')
|
|
373
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
374
|
+
"aria-haspopup": "dialog",
|
|
375
|
+
role: "button",
|
|
376
|
+
tabIndex: "0",
|
|
377
|
+
className: "sezzle-checkout-button-wrapper sezzle-modal-link sezzle-".concat(this.state.config.merchantId || '', " sezzle-").concat(this.state.config.alignment || 'auto'),
|
|
378
|
+
style: {
|
|
379
|
+
cursor: 'pointer'
|
|
380
|
+
}
|
|
381
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
382
|
+
className: "sezzle-button-text sezzle-".concat(this.state.config.alignment || 'auto', " szl-").concat(this.state.config.theme === 'dark' || this.state.config.theme === 'white-flat' ? 'dark' : 'light'),
|
|
383
|
+
style: {
|
|
384
|
+
fontWeight: this.state.config.fontWeight || 500,
|
|
385
|
+
fontFamily: this.state.config.fontFamily || 'inherit',
|
|
386
|
+
fontSize: (this.state.config.fontSize || 14) + 'px',
|
|
387
|
+
color: this.state.config.textColor || 'inherit'
|
|
388
|
+
}
|
|
389
|
+
}, this.renderSezzleWidgetText())), this.state.modalsToShow.map(function (modal, index) {
|
|
390
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
391
|
+
modalType: modal,
|
|
392
|
+
key: index,
|
|
393
|
+
toggleModalVisibility: _this3.state[modal],
|
|
394
|
+
callbackModalClose: function callbackModalClose(modal) {
|
|
395
|
+
return _this3.closeModal(modal);
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}));
|
|
391
399
|
}
|
|
392
400
|
}], [{
|
|
393
|
-
key:
|
|
401
|
+
key: "getDerivedStateFromProps",
|
|
394
402
|
value: function getDerivedStateFromProps(props, state) {
|
|
395
403
|
var config = props.config;
|
|
396
|
-
state =
|
|
397
|
-
|
|
404
|
+
state = _objectSpread$1(_objectSpread$1({}, state), {}, {
|
|
405
|
+
config: config
|
|
406
|
+
});
|
|
398
407
|
return state;
|
|
399
408
|
}
|
|
400
409
|
}]);
|
|
401
410
|
return SezzleWidgetText;
|
|
402
411
|
}(React.Component);
|
|
403
|
-
|
|
404
|
-
|
|
405
412
|
SezzleWidgetText.propTypes = {
|
|
406
413
|
config: PropTypes.object
|
|
407
414
|
};
|
|
408
415
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
416
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "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(o); }
|
|
417
|
+
function ownKeys(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; }
|
|
418
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
419
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
420
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
421
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
422
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
423
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
424
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
425
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
426
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
427
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
428
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
429
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
430
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
431
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
432
|
+
var SezzleWidgetWrapper = /*#__PURE__*/function (_React$Component) {
|
|
433
|
+
_inherits(SezzleWidgetWrapper, _React$Component);
|
|
434
|
+
var _super = _createSuper(SezzleWidgetWrapper);
|
|
412
435
|
function SezzleWidgetWrapper(props) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
436
|
+
var _this;
|
|
437
|
+
_classCallCheck(this, SezzleWidgetWrapper);
|
|
438
|
+
_this = _super.call(this, props);
|
|
417
439
|
_this.state = {
|
|
418
440
|
sezzleConfig: {
|
|
419
441
|
price: _this.props.price || 0,
|
|
@@ -432,34 +454,30 @@ var SezzleWidgetWrapper = function (_React$Component) {
|
|
|
432
454
|
};
|
|
433
455
|
return _this;
|
|
434
456
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
key: 'render',
|
|
457
|
+
_createClass(SezzleWidgetWrapper, [{
|
|
458
|
+
key: "render",
|
|
438
459
|
value: function render() {
|
|
439
|
-
return React.createElement(
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
React.createElement(SezzleWidgetText, { config: this.state.sezzleConfig })
|
|
443
|
-
);
|
|
460
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SezzleWidgetText, {
|
|
461
|
+
config: this.state.sezzleConfig
|
|
462
|
+
}));
|
|
444
463
|
}
|
|
445
464
|
}], [{
|
|
446
|
-
key:
|
|
465
|
+
key: "getDerivedStateFromProps",
|
|
447
466
|
value: function getDerivedStateFromProps(props, state) {
|
|
448
467
|
if (props.price !== state.sezzleConfig.price) {
|
|
449
468
|
var updateState = state;
|
|
450
469
|
updateState.sezzleConfig.price = props.price;
|
|
451
470
|
return updateState;
|
|
452
471
|
}
|
|
453
|
-
state =
|
|
454
|
-
|
|
455
|
-
|
|
472
|
+
state = _objectSpread({}, state);
|
|
473
|
+
if (props.includeAPModal && state.sezzleConfig.modalsToShow.indexOf('afterpay') === -1) {
|
|
474
|
+
state.sezzleConfig.modalsToShow.push('afterpay');
|
|
475
|
+
}
|
|
456
476
|
return state;
|
|
457
477
|
}
|
|
458
478
|
}]);
|
|
459
479
|
return SezzleWidgetWrapper;
|
|
460
480
|
}(React.Component);
|
|
461
|
-
|
|
462
|
-
|
|
463
481
|
SezzleWidgetWrapper.propTypes = {
|
|
464
482
|
price: PropTypes.string.isRequired,
|
|
465
483
|
merchantId: PropTypes.string.isRequired,
|
|
@@ -470,6 +488,7 @@ SezzleWidgetWrapper.propTypes = {
|
|
|
470
488
|
fontSize: PropTypes.number,
|
|
471
489
|
textColor: PropTypes.string,
|
|
472
490
|
logoSize: PropTypes.number,
|
|
491
|
+
minPrice: PropTypes.number,
|
|
473
492
|
includeAPModal: PropTypes.bool
|
|
474
493
|
};
|
|
475
494
|
|