@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/dist/index.es.js CHANGED
@@ -13,7 +13,6 @@ function parsePriceString(price) {
13
13
  if (isNumeric(price[i]) || price[i] === '.' || price[i] === ',') {
14
14
  // Ignore actual sentence punctuation
15
15
  if (i > 0 && price[i] === '.' && isAlphabet(price[i - 1])) continue;
16
-
17
16
  formattedPrice += price[i];
18
17
  }
19
18
  }
@@ -44,128 +43,95 @@ function isNumeric(n) {
44
43
  * @return boolean [if it's alphabet or not]
45
44
  */
46
45
  function isAlphabet(n) {
47
- return (/^[a-zA-Z()]+$/.test(n)
48
- );
46
+ return /^[a-zA-Z()]+$/.test(n);
47
+ }
48
+
49
+ /**
50
+ * This is a helper function for formatting the language
51
+ * @return string
52
+ */
53
+ function getLanguage() {
54
+ var _document$querySelect;
55
+ return (_document$querySelect = document.querySelector('html').lang) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.substring(0, 2).toLowerCase();
56
+ }
57
+
58
+ /**
59
+ * This is a helper function for formatting the language
60
+ * @return string
61
+ */
62
+ function getSupportedLanguage() {
63
+ var supportedLanguages = ['en', 'fr'];
64
+ var lang = getLanguage();
65
+ return supportedLanguages.indexOf(lang) > -1 ? lang : 'en';
49
66
  }
50
67
 
51
68
  function getFormattedPrice(price, numberOfPayments) {
52
69
  var priceString = parsePriceString(price);
53
70
  var priceReplacer = parsePrice(price);
54
-
55
71
  var formatter = price.replace(priceString, '{price}');
56
-
57
72
  var sezzleInstallmentPrice = (priceReplacer / numberOfPayments).toFixed(2);
58
-
59
73
  var sezzleInstallmentFormattedPrice = formatter.replace('{price}', sezzleInstallmentPrice);
60
-
61
74
  return sezzleInstallmentFormattedPrice;
62
75
  }
63
76
 
64
- 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&nbsp;Later.</header>\n <p class=\"sezzle-row\">Select Sezzle as your payment method at&nbsp;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&nbsp;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";
65
-
66
- 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&nbsp;plus&nbsp;tard.</header>\n <p class=\"sezzle-row\">S\xE9lectionnez Sezzle comme mode de paiement lors du&nbsp;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";
67
-
68
- 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>';
69
-
70
- var classCallCheck = function (instance, Constructor) {
71
- if (!(instance instanceof Constructor)) {
72
- throw new TypeError("Cannot call a class as a function");
73
- }
74
- };
75
-
76
- var createClass = function () {
77
- function defineProperties(target, props) {
78
- for (var i = 0; i < props.length; i++) {
79
- var descriptor = props[i];
80
- descriptor.enumerable = descriptor.enumerable || false;
81
- descriptor.configurable = true;
82
- if ("value" in descriptor) descriptor.writable = true;
83
- Object.defineProperty(target, descriptor.key, descriptor);
84
- }
85
- }
86
-
87
- return function (Constructor, protoProps, staticProps) {
88
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
89
- if (staticProps) defineProperties(Constructor, staticProps);
90
- return Constructor;
91
- };
92
- }();
93
-
94
- var _extends = Object.assign || function (target) {
95
- for (var i = 1; i < arguments.length; i++) {
96
- var source = arguments[i];
97
-
98
- for (var key in source) {
99
- if (Object.prototype.hasOwnProperty.call(source, key)) {
100
- target[key] = source[key];
101
- }
102
- }
103
- }
104
-
105
- return target;
106
- };
107
-
108
- var inherits = function (subClass, superClass) {
109
- if (typeof superClass !== "function" && superClass !== null) {
110
- throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
111
- }
112
-
113
- subClass.prototype = Object.create(superClass && superClass.prototype, {
114
- constructor: {
115
- value: subClass,
116
- enumerable: false,
117
- writable: true,
118
- configurable: true
119
- }
120
- });
121
- if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
122
- };
123
-
124
- var possibleConstructorReturn = function (self, call) {
125
- if (!self) {
126
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
127
- }
128
-
129
- return call && (typeof call === "object" || typeof call === "function") ? call : self;
130
- };
131
-
132
- var Modal = function (_React$Component) {
133
- inherits(Modal, _React$Component);
134
-
77
+ 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";
78
+
79
+ var modalFrenchHTML = "\n<style>\n@import url('https://fonts.cdnfonts.com/css/satoshi');\n@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@600&display=swap');\n.sezzle-modal-open {\n position: fixed;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n}\n.sezzle-checkout-modal-hidden {\n width: 100%;\n height: 100%;\n -webkit-font-smoothing: antialiased;\n transition: all 0.4s ease;\n margin-top: 0;\n}\n@media screen and (min-width: 0px) and (max-width: 280px) {\n .sezzle-checkout-modal-hidden {\n display: none;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n box-shadow: 0 10px 20px rgba(5, 31, 52, 0.19), 0 6px 6px rgba(5, 31, 52, 0.2);\n height: auto;\n max-height: 90%;\n width: 343px;\n color: #000000;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n background-color: #fff;\n overflow: auto;\n padding: 20px 0;\n border-radius: 10px;\n box-sizing: border-box;\n}\n@media screen and (max-width: 374px) {\n .sezzle-checkout-modal-hidden .sezzle-modal {\n transform: scale(0.9) translate(-55%, -55%);\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 24px;\n height: 24px;\n opacity: 0.2;\n cursor: pointer;\n padding: 0;\n outline: 0;\n background: 0 0;\n border: none;\n box-shadow: none;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:hover {\n opacity: 1;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:focus {\n opacity: 0.5;\n}\n@media screen and (max-width: 600px) {\n .sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal {\n opacity: 0.8;\n }\n .sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal:focus {\n opacity: 1;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal::before {\n position: absolute;\n left: 10px;\n content: \" \";\n top: 0;\n transform: rotate(45deg);\n background-color: #595959;\n width: 2px;\n height: 15px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal div button.close-sezzle-modal::after {\n position: absolute;\n left: 10px;\n content: \" \";\n top: 0;\n transform: rotate(-45deg);\n background-color: #595959;\n width: 2px;\n height: 15px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-logo {\n display: block;\n height: 24px;\n width: 98px;\n margin: 10px auto 0;\n background-image: url(https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg);\n background-repeat: no-repeat;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content {\n height: auto;\n text-align: center;\n padding: 0px 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-header {\n display: block;\n text-align: center;\n font-style: normal;\n font-size: 24px;\n font-weight: 600;\n line-height: 28px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n color: #000000;\n margin-top: 24px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-row {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 400;\n line-height: 20px;\n color: #000000;\n letter-spacing: -0.3px;\n margin: 8px auto 24px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: rgba(131, 51, 212, 0.05);\n border-radius: 16px;\n padding: 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-row {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 500;\n line-height: 20px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n color: #000000;\n margin: 0px 0px 12px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .due-today {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #FFFFFF;\n border: 1px solid #8333D4;\n border-radius: 8px;\n margin: 0px 4px;\n padding: 16px 0px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .due-today :first-child {\n padding: 0px 6px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .future-payments {\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #FFFFFF;\n border: 1px solid #8333D4;\n border-radius: 8px;\n margin: 0px 4px;\n padding: 0px 4px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .future-payments :first-child {\n padding: 0px 4px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item {\n padding: 16px 2px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0px;\n padding: 8px 0px 0px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row .percentage {\n text-align: center;\n font-style: normal;\n font-size: 15px;\n font-weight: 500;\n line-height: 20px;\n color: #8333D4;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n align-items: center;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-four-pay .sezzle-pie-area .payment-item .breakdown-row .due {\n text-align: center;\n font-style: normal;\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n color: #5E5E5E;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-features {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 16px;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .sezzle-features .single-feature {\n text-align: center;\n font-style: normal;\n font-size: 17px;\n font-weight: 600;\n line-height: 22px;\n color: #000000;\n letter-spacing: -0.3px;\n margin: 8px auto;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo {\n font-size: 14px;\n color: #000000;\n}\n@media screen and (max-width: 600px) {\n .sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo {\n font-size: 12px;\n }\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo::first-letter {\n text-transform: capitalize;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a {\n color: #000000;\n text-decoration: underline;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a:visited {\n color: #037269;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .promo a:hover {\n color: #af0fda;\n}\n.sezzle-checkout-modal-hidden .sezzle-modal .sezzle-modal-content .terms {\n text-align: center;\n font-style: normal;\n font-size: 11px;\n font-weight: 400;\n line-height: 13px;\n color: #5E5E5E;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal {\n background-image: none;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-logo {\n width: 98px;\n background-image: url(https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg);\n background-repeat: no-repeat;\n background-position: 50%;\n height: 24px;\n margin: 10px auto 20px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content {\n height: auto;\n width: auto;\n text-align: center;\n padding: 0px 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-header {\n font-size: 24px;\n line-height: 30px;\n margin: 10px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-row {\n font-size: 15px;\n line-height: 20px;\n margin: 8px auto;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments {\n height: fit-content;\n margin: 20px auto;\n padding: 20px 0 0;\n border: 1px solid #e5e5e5;\n border-radius: 5px;\n max-width: 502px;\n display: block;\n flex-direction: column;\n align-items: center;\n padding: 0px;\n gap: 24px;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header {\n font-family: Satoshi, \"Open Sans\", sans-serif;\n font-style: normal;\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n display: block;\n align-items: center;\n text-align: center;\n padding: 15px;\n letter-spacing: -0.3px;\n border-bottom: 1px solid #e5e5e5;\n color: #000000;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-header span {\n font-size: 17px;\n line-height: 22px;\n font-weight: 700;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options {\n font-size: 12px;\n line-height: 14px;\n margin: 0px 20px 0;\n padding: 20px 0px;\n border-bottom: 1px solid #e5e5e5;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan {\n display: flex;\n justify-content: space-between;\n padding-bottom: 10px;\n font-size: 12px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .monthly-amount span {\n font-size: 17px;\n line-height: 22px;\n color: #8333D4;\n font-weight: 600;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .monthly-amount .per-month {\n font-size: 13px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan .term-length {\n border-radius: 100px;\n background: rgba(41, 211, 162, 0.1);\n color: #00804A;\n padding: 2px 8px;\n font-size: 12px;\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details {\n display: flex;\n justify-content: space-between;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .adjusted-total {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .adjusted-total span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .interest-amount {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .interest-amount span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .sample-apr {\n color: #5E5E5E;\n font-size: 12px;\n width: fit-content;\n text-align: left;\n font-weight: 400;\n line-height: 16px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments .sezzle-lt-payment-options .plan-details .sample-apr span {\n display: block;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .sezzle-lt-payments:last-child {\n border: none;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .details {\n font-size: 17px;\n line-height: 22px;\n margin: 16px auto;\n font-weight: 600;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n letter-spacing: -0.3px;\n}\n.sezzle-checkout-modal-hidden.long-term .sezzle-modal .sezzle-modal-content .terms {\n font-size: 11px;\n line-height: 13px;\n color: #5E5E5E;\n margin: 10px auto 0;\n padding: 12px 0 0;\n border-top: 1px solid #e5e5e5;\n text-align: center;\n font-family: Satoshi, \"Open Sans\", sans-serif;\n}\n\n</style>\n<section class=\"sezzle-checkout-modal-lightbox close-sezzle-modal\" role=\"dialog\" lang=\"fr\"\n aria-label=\"Informations Sezzle\" aria-description=\"En savoir plus sur Sezzle\" style=\"display: block;\">\n <div id=\"sezzle-modal-container\" role=\"dialog\" aria-label=\"Sezzle Modal\" aria-description=\"En savoir plus sur Sezzle\"\n class=\"sezzle-checkout-modal-hidden\">\n <div class=\"sezzle-modal sezzle-modal-color\">\n <div><button role=\"button\" aria-label=\"Fermer Sezzle modal.\" class=\"close-sezzle-modal\"></button></div>\n <div class=\"sezzle-logo\" title=\"Sezzle\"></div>\n <div id=\"sezzle-modal-core-content\" class=\"sezzle-modal-content\">\n <header class=\"sezzle-header\">Acheter maintenant. Payer&nbsp;plus&nbsp;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&nbsp;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&nbsp;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";
80
+
81
+ var apModalEnglishHTML = "<div id=\"afterpay-modal-component\">\n<style>\n .afterpay-modal-overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n visibility: hidden;\n transform: scale(1.1);\n transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;\n z-index: 999999999;\n }\n\n #afterpay-modal-component .visible {\n opacity: 1;\n visibility: visible;\n transform: scale(1);\n transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;\n }\n\n #afterpay-modal-component #afterpay-modal {\n background-color: #fff;\n color: #000;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 2px;\n width: 774px;\n max-width: 100vw;\n max-height: 100%;\n line-height: 1.1;\n display: block;\n overflow: auto;\n }\n\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 0px;\n max-width: 100%;\n width: 476px;\n }\n\n @media (min-width:473px) and (min-height:686px) {\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 12px;\n }\n }\n\n #afterpay-modal-component #afterpay-modal .afterpay-close-button {\n position: absolute;\n z-index: 3;\n background-color: transparent;\n min-width: 0;\n top: 18px;\n right: 18px;\n border: 0;\n cursor: pointer;\n }\n\n #afterpay-modal-component button {\n min-width: 80px;\n background-color: #848e97;\n border-color: #848e97;\n border-style: solid;\n border-radius: 2px;\n padding: 3px;\n color: white;\n cursor: pointer;\n display: none;\n }\n\n #afterpay-modal-component button:hover {\n background-color: #6c757d;\n border-color: #6c757d;\n }\n\n .afterpay-loading-indicator {\n display: block;\n background-color: transparent;\n width: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n\n .afterpay-loading-indicator::after {\n content: \" \";\n display: block;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n border: 5px solid #b2fce4;\n border-color: #b2fce4 transparent #b2fce4 transparent;\n animation: afterpay-loading-indicator 1.2s linear infinite;\n }\n\n @keyframes afterpay-loading-indicator {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .modal-content .error-container {\n padding: 25px;\n text-align: center;\n background-color: #b2fce4;\n opacity: 0;\n visibility: hidden;\n }\n\n .modal-content.error .error-container {\n opacity: 1;\n visibility: visible;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n }\n\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n #afterpay-modal-component #afterpay-modal {\n bottom: auto;\n }\n }\n</style>\n<div class=\"afterpay-modal-overlay visible\">\n <div class=\"afterpay-loading-indicator\" style=\"display: none;\"></div>\n <div id=\"afterpay-modal\" role=\"dialog\" tabindex=\"-1\" aria-modal=\"true\" aria-describedby=\"afterpay-modal-container\" aria-label=\"Afterpay\">\n <button class=\"afterpay-close-button\" id=\"afterpay-modal-close-button\" tabindex=\"1\" autofocus=\"false\" aria-label=\"Afterpay modal close button\" style=\"display: block;\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" width=\"20\" height=\"20\" viewBox=\"0 0 30 30\" aria-hidden=\"true\">\n <defs>\n <style>\n .a {\n fill: none;\n stroke: #808284;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px;\n }\n </style>\n </defs>\n <title>Afterpay modal close button</title>\n <line class=\"a\" x1=\"1\" y1=\"1\" x2=\"29\" y2=\"29\"></line>\n <line class=\"a\" x1=\"1\" y1=\"29\" x2=\"29\" y2=\"1\"></line>\n </svg>\n </button>\n <div class=\"modal-content\">\n <div id=\"afterpay-modal-container\" class=\"afterpay-modal-wrapper\">\n <div class=\"grid-container\">\n <div class=\"row-0\">\n <div class=\"afterpay-modal-logo\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 1150 222\" class=\"afterpay-logo-black\" aria-label=\"Afterpay logo\">\n <path d=\"M1132 45.3l-34.6-19.8-35.1-20.1a34.9 34.9 0 00-52.2 30.2V40c0 2.5 1.3 4.8 3.5 6l16.3 9.3a6.8 6.8 0 0010.1-6V38.9c0-5.3 5.7-8.6 10.3-6l32 18.4 31.9 18.3a6.9 6.9 0 010 11.9l-31.9 18.3-32 18.4a6.9 6.9 0 01-10.3-6v-5.3c0-26.8-29-43.6-52.2-30.2l-35.1 20-34.6 19.9a35 35 0 000 60.5l34.6 19.8 35.1 20a34.9 34.9 0 0052.2-30.1v-4.5c0-2.5-1.3-4.8-3.5-6l-16.3-9.3a6.8 6.8 0 00-10.1 5.9v10.7c0 5.3-5.7 8.6-10.3 6l-32-18.4-31.9-18.3a6.9 6.9 0 010-12l31.9-18.2 32-18.4a6.9 6.9 0 0110.3 6v5.3c0 26.8 29 43.6 52.2 30.2l35.1-20.1 34.6-19.8a35 35 0 000-60.5zm-227 6.6l-81 167.3h-33.6l30.3-62.5L773 51.9h34.5l30.6 70.2 33.4-70.2H905zM95.1 111.3c0-20-14.5-34-32.3-34s-32.3 14.3-32.3 34c0 19.5 14.5 34 32.3 34s32.3-14 32.3-34m.3 59.4v-15.4a47.6 47.6 0 01-37.5 17.3C25.3 172.6.6 146.5.6 111.3c0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H95.4zm171.2-26.4c-10.2 0-13.1-3.8-13.1-13.8V77.8h18.8v-26h-18.8v-29h-29.9v29H185V40.2c0-10 3.8-13.8 14.3-13.8h6.6v-23h-14.4c-24.7 0-36.4 8-36.4 32.8V52h-16.6v25.8h16.6v92.9H185v-93h38.6V136c0 24.2 9.3 34.7 33.5 34.7h15.4v-26.4h-5.9zM374 100.6c-2.1-15.4-14.7-24.7-29.5-24.7-14.7 0-26.9 9-29.9 24.7H374zM314.3 119a29.6 29.6 0 0030.7 27.6c12.6 0 22.3-6 28-15.4h30.7c-7.1 25.2-29.7 41.3-59.4 41.3a58.5 58.5 0 01-61.1-61.1A60 60 0 01345 49.7a59.5 59.5 0 0160.4 69.4h-91.1zm282.2-7.8a33 33 0 00-32.3-34c-17.8 0-32.3 14.3-32.3 34 0 19.5 14.5 34 32.3 34a32.9 32.9 0 0032.3-34m-94.1 107.9V51.9h29.2v15.4a47.2 47.2 0 0137.5-17.6c32.1 0 57.3 26.4 57.3 61.3s-25.7 61.5-58 61.5a46 46 0 01-35.9-16v62.6h-30.1zm229.3-108c0-20-14.5-34-32.3-34-17.8 0-32.3 14.4-32.3 34s14.5 34 32.3 34c17.8 0 32.3-14 32.3-34m.3 59.5v-15.4a47.6 47.6 0 01-37.5 17.3c-32.6 0-57.3-26.1-57.3-61.3 0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H732zM449.7 63.5s7.4-13.8 25.7-13.8c7.8 0 12.8 2.7 12.8 2.7v30.3s-11-6.8-21.1-5.4c-10.1 1.4-16.5 10.6-16.5 23v70.3h-30.2V51.9h29.2v11.6h.1z\"></path>\n </svg>\n </div>\n </div>\n <div class=\"row-1\">\n <h3 class=\"afterpay-modal-headline\">Shop now. <span>Pay later.</span>\n <div>Always interest-free.</div>\n </h3>\n </div>\n <div class=\"process-step-1 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 72\" class=\"process-icon shopping-cart\" aria-label=\"Step 1\">\n <path class=\"c1\" d=\"M26 55.47a27.28 27.28 0 01-4-3c-2.13-1.87-4.52-4.49-4.44-7.36a5 5 0 01.37-1.75 4.27 4.27 0 018.13.25 4.27 4.27 0 018.13-.25 5 5 0 01.37 1.75c.08 2.87-2.31 5.49-4.44 7.36a27.28 27.28 0 01-4 3\"></path>\n <path class=\"c1\" fill=\"#000\" d=\"M10.5 35V17a15.5 15.5 0 0131 0v18\"></path>\n <path class=\"c1\" transform=\"rotate(90 85.5 -4.5)\" d=\"M110.5 30.5h45.79a4.21 4.21 0 014.21 4.21v40.58a4.21 4.21 0 01-4.21 4.21H110.5v-49z\"></path>\n </svg>\n </div>\n <div class=\"process-step-1 process-subheading\">Add your favourites to cart</div>\n <div class=\"process-step-2 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon afterpay-desktop\" aria-label=\"Step 2\">\n <path class=\"c1\" d=\"M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.93V50.5h-69V5.43a3.93 3.93 0 013.93-3.93z\"></path>\n <path d=\"M54.75 17.52L50.3 15l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L31.7 37l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon afterpay-mobile\" aria-label=\"Step 2\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M1.49 10.5h49\"></path>\n <path class=\"c1\" d=\"M1.49 75.5h49\"></path>\n <path class=\"c1\" d=\"M21.49 6.5h9\"></path>\n <path d=\"M39.75 32.52L35.3 30l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L16.7 52l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n </svg>\n </div>\n <div class=\"process-step-2 process-subheading\">Select Afterpay at checkout</div>\n <div class=\"process-step-3 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon sign-up-desktop\" aria-label=\"Step 3\">\n <path class=\"c1\" d=\"M52.51 28.12l4.43 4.45L65.5 24\"></path>\n <circle class=\"c1\" cx=\"31\" cy=\"26\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"31\" cy=\"21.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M20.92 36.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.8M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.94V50.5h-69V5.45a3.93 3.93 0 013.93-3.93z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon sign-up-mobile\" aria-label=\"Step 3\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M21.46 58.06l4.43 4.45 8.55-8.58M1.5 10.5h48.99M1.5 75.5h48.99M21.5 6.5h9\"></path>\n <circle class=\"c1\" cx=\"26\" cy=\"34\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"26\" cy=\"29.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M15.93 44.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.79\"></path>\n </svg>\n </div>\n <div class=\"process-step-3 process-subheading\">Log into or create your Afterpay account, instant approval decision</div>\n <div class=\"process-step-4 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"14 7 79 79\" class=\"process-icon four-payments\" aria-label=\"Step 4\">\n <path class=\"c1\" d=\"M50,15.5A34.5,34.5,0,0,0,15.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M15.5,50A34.5,34.5,0,0,0,50,84.5V50Z\"></path>\n <path class=\"c1\" d=\"M50,84.5h0A34.5,34.5,0,0,0,84.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M57,8.5h0V43h34.5A34.5,34.5,0,0,0,57,8.5Z\"></path>\n </svg>\n </div>\n <div class=\"process-step-4 process-subheading\">Your purchase will be split into 4 payments, payable every 2 weeks</div>\n <div class=\"row-3\">\n <div class=\"disclaimer\">You must be of the age of majority in your province or territory, a resident of Canada, and meet additional eligibility criteria to qualify. Estimated payment amounts shown on product pages exclude taxes and shipping charges, which are added at checkout. Click <a href=\"https://www.afterpay.com/en-CA/instalment-agreement\" aria-label=\"Afterpay Terms (New Window)\" target=\"_blank\" rel=\"noopener\" class=\"disclaimer-link\" tabindex=\"1\">here</a> for complete terms. <br>\n <br>\n <span>\xA9 2020 Afterpay Canada</span>\n </div>\n </div>\n </div>\n </div>\n <style type=\"text/css\">\n body.afterpay-modal-body,\n html.afterpay-modal-html {\n height: 100%\n }\n\n body.afterpay-modal-body {\n margin: 0;\n background-color: #b2fce4\n }\n\n body.afterpay-modal-body.theme-white {\n background: #fff\n }\n\n :-moz-ui-invalid:not(output) {\n box-shadow: none\n }\n\n .afterpay-modal-wrapper {\n min-height: 100%;\n padding: 0 24px;\n background: #b2fce4\n }\n\n .afterpay-modal-wrapper.theme-white {\n background: #fff\n }\n\n .afterpay-modal-wrapper * {\n box-sizing: border-box;\n text-decoration: none;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n color: #000\n }\n\n .grid-container {\n display: grid;\n margin: 0 auto;\n max-width: 800px;\n text-align: center;\n font-size: 16px;\n grid-template-rows: auto;\n grid-template-columns: repeat(4, 25%);\n grid-template-areas: \"logo logo logo logo\"\"headline headline headline headline\"\"body-a body-b body-c body-d\"\"body-e body-f body-g body-h\"\"cbt-block cbt-block cbt-block cbt-block\"\"footer footer footer footer\"\n }\n\n .row-0 {\n grid-area: logo;\n padding-top: 45px\n }\n\n .row-1 {\n grid-area: headline;\n padding: 3% 0 8% 0\n }\n\n .process-step-1.process-icon-container {\n grid-area: body-a\n }\n\n .process-step-2.process-icon-container {\n grid-area: body-b\n }\n\n .process-step-3.process-icon-container {\n grid-area: body-c\n }\n\n .process-step-4.process-icon-container {\n grid-area: body-d\n }\n\n .process-step-1.process-subheading {\n grid-area: body-e\n }\n\n .process-step-2.process-subheading {\n grid-area: body-f\n }\n\n .process-step-3.process-subheading {\n grid-area: body-g\n }\n\n .process-step-4.process-subheading {\n grid-area: body-h\n }\n\n .row-3 {\n grid-area: footer\n }\n\n .grid-container>div {\n align-content: stretch\n }\n\n .afterpay-modal-logo svg {\n width: 100%;\n max-width: 275px;\n height: auto\n }\n\n h3.afterpay-modal-headline {\n margin: 0;\n font-size: 44px;\n font-weight: 600;\n line-height: 1.1\n }\n\n .process-icon-container {\n align-self: end\n }\n\n .process-icon-container svg {\n width: auto;\n height: auto;\n max-width: 110px;\n max-height: 95px\n }\n\n .process-icon-container svg .c1 {\n fill: none;\n stroke: #000;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px\n }\n\n .process-subheading {\n padding: 10% 3% 0 3%;\n font-weight: 600;\n line-height: 1.25\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: none\n }\n\n .row-3 {\n padding: 8% 0 40px 0\n }\n\n .disclaimer {\n font-size: 12px\n }\n\n .disclaimer-link {\n color: #000;\n text-decoration: underline\n }\n\n .disclaimer-link:active {\n color: #000\n }\n\n .afterpay-footer-example {\n margin-top: 1.875em;\n font-size: x-small;\n font-weight: 600\n }\n\n .afterpay-underline {\n text-decoration: underline\n }\n\n .afterpay-bold {\n font-weight: 700\n }\n\n .afterpay-reference-symbol {\n font-weight: 400;\n font-size: .5em;\n vertical-align: text-top\n }\n\n @media (max-width:768px) {\n .grid-container {\n max-width: 500px;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-b\"\"body-e body-f\"\"body-c body-d\"\"body-g body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-1 {\n padding: 3% 0 20px 0\n }\n\n .process-icon-container {\n padding: 24px 0 0 0\n }\n }\n\n @media (max-width:600px) {\n .afterpay-modal-wrapper {\n padding: 0\n }\n\n .grid-container {\n padding: 30px;\n text-align: left;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-e\"\"body-b body-f\"\"body-c body-g\"\"body-d body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-0 {\n padding-top: 0\n }\n\n .row-1 {\n padding: 20px 0 8% 0\n }\n\n h3.afterpay-modal-headline {\n font-size: 40px\n }\n\n svg.afterpay-desktop,\n svg.sign-up-desktop {\n display: none\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: block\n }\n\n .process-icon-container {\n align-self: start;\n padding: 12px 0\n }\n\n .process-icon-container svg {\n min-width: 30px;\n max-height: 65px\n }\n\n .process-subheading {\n padding: 6px 0 6px 12px;\n align-self: center\n }\n\n .row-3 {\n padding: 8% 0 20px 0\n }\n }\n\n @media (max-width:420px) {\n .afterpay-modal-logo svg {\n max-width: 200px\n }\n\n h3.afterpay-modal-headline {\n font-size: 36px\n }\n }\n\n @media (max-width:335px) {\n h3.afterpay-modal-headline {\n font-size: 32px\n }\n }\n\n @media (max-width:260px) {\n .grid-container {\n font-size: 14px\n }\n\n h3.afterpay-modal-headline {\n font-size: 28px\n }\n }\n </style>\n <style type=\"text/css\">\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n .afterpay-modal-wrapper .grid-container {\n display: -ms-grid;\n -ms-grid-rows: auto;\n -ms-grid-columns: (25%)[4];\n font-size: 14px\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 {\n -ms-grid-row: 1;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding-top: 0\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 .afterpay-modal-logo svg {\n height: 15vh\n }\n\n .afterpay-modal-wrapper .grid-container .row-1 {\n -ms-grid-row: 2;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 20px 0 45px 0\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 1\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 2\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 4;\n grid-area: body-d\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 1;\n grid-area: body-e\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 2;\n grid-area: body-f\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 4\n }\n\n .afterpay-modal-wrapper .grid-container .row-3 {\n -ms-grid-row: 5;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 80px 0 40px 0\n }\n }\n </style>\n <script id=\"post-events-to-parent\">\n ! function() {\n try {\n var t = window && window.parent;\n t && t !== window.self && \"function\" == typeof t.postMessage && (t.postMessage(\"Afterpay.ready\", \"*\"), document.addEventListener(\"keyup\", function(e) {\n e = e.key || e.keyCode;\n \"Escape\" !== e && \"Esc\" !== e && 27 !== e || t.postMessage(\"Afterpay.keyup.esc\", \"*\")\n }))\n } catch (e) {}\n }()\n </script>\n </div>\n </div>\n</div>\n</div>";
82
+
83
+ var apModalFrenchHTML = "<div id=\"afterpay-modal-component\">\n<style>\n .afterpay-modal-overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n visibility: hidden;\n transform: scale(1.1);\n transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;\n z-index: 999999999;\n }\n\n #afterpay-modal-component .visible {\n opacity: 1;\n visibility: visible;\n transform: scale(1);\n transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;\n }\n\n #afterpay-modal-component #afterpay-modal {\n background-color: #fff;\n color: #000;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 2px;\n width: 774px;\n max-width: 100vw;\n max-height: 100%;\n line-height: 1.1;\n display: block;\n overflow: auto;\n }\n\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 0px;\n max-width: 100%;\n width: 476px;\n }\n\n @media (min-width:473px) and (min-height:686px) {\n #afterpay-modal-component #afterpay-modal.afterpay-modal-is-apr {\n border-radius: 12px;\n }\n }\n\n #afterpay-modal-component #afterpay-modal .afterpay-close-button {\n position: absolute;\n z-index: 3;\n background-color: transparent;\n min-width: 0;\n top: 18px;\n right: 18px;\n border: 0;\n cursor: pointer;\n }\n\n #afterpay-modal-component button {\n min-width: 80px;\n background-color: #848e97;\n border-color: #848e97;\n border-style: solid;\n border-radius: 2px;\n padding: 3px;\n color: white;\n cursor: pointer;\n display: none;\n }\n\n #afterpay-modal-component button:hover {\n background-color: #6c757d;\n border-color: #6c757d;\n }\n\n .afterpay-loading-indicator {\n display: block;\n background-color: transparent;\n width: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n\n .afterpay-loading-indicator::after {\n content: \" \";\n display: block;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n border: 5px solid #b2fce4;\n border-color: #b2fce4 transparent #b2fce4 transparent;\n animation: afterpay-loading-indicator 1.2s linear infinite;\n }\n\n @keyframes afterpay-loading-indicator {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .modal-content .error-container {\n padding: 25px;\n text-align: center;\n background-color: #b2fce4;\n opacity: 0;\n visibility: hidden;\n }\n\n .modal-content.error .error-container {\n opacity: 1;\n visibility: visible;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n }\n\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n #afterpay-modal-component #afterpay-modal {\n bottom: auto;\n }\n }\n</style>\n<div class=\"afterpay-modal-overlay visible\">\n <div class=\"afterpay-loading-indicator\" style=\"display: none;\"></div>\n <div id=\"afterpay-modal\" role=\"dialog\" tabindex=\"-1\" aria-modal=\"true\" aria-describedby=\"afterpay-modal-container\" aria-label=\"Afterpay\">\n <button class=\"afterpay-close-button\" id=\"afterpay-modal-close-button\" tabindex=\"1\" autofocus=\"false\" aria-label=\"Bouton de fermeture modal Afterpay\" style=\"display: block;\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" width=\"20\" height=\"20\" viewBox=\"0 0 30 30\" aria-hidden=\"true\">\n <defs>\n <style>\n .a {\n fill: none;\n stroke: #808284;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px;\n }\n </style>\n </defs>\n <title>Bouton de fermeture modal Afterpay</title>\n <line class=\"a\" x1=\"1\" y1=\"1\" x2=\"29\" y2=\"29\"></line>\n <line class=\"a\" x1=\"1\" y1=\"29\" x2=\"29\" y2=\"1\"></line>\n </svg>\n </button>\n <div class=\"modal-content\">\n <div id=\"afterpay-modal-container\" class=\"afterpay-modal-wrapper\">\n <div class=\"grid-container\">\n <div class=\"row-0\">\n <div class=\"afterpay-modal-logo\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 1150 222\" class=\"afterpay-logo-black\" aria-label=\"Afterpay logo\">\n <path d=\"M1132 45.3l-34.6-19.8-35.1-20.1a34.9 34.9 0 00-52.2 30.2V40c0 2.5 1.3 4.8 3.5 6l16.3 9.3a6.8 6.8 0 0010.1-6V38.9c0-5.3 5.7-8.6 10.3-6l32 18.4 31.9 18.3a6.9 6.9 0 010 11.9l-31.9 18.3-32 18.4a6.9 6.9 0 01-10.3-6v-5.3c0-26.8-29-43.6-52.2-30.2l-35.1 20-34.6 19.9a35 35 0 000 60.5l34.6 19.8 35.1 20a34.9 34.9 0 0052.2-30.1v-4.5c0-2.5-1.3-4.8-3.5-6l-16.3-9.3a6.8 6.8 0 00-10.1 5.9v10.7c0 5.3-5.7 8.6-10.3 6l-32-18.4-31.9-18.3a6.9 6.9 0 010-12l31.9-18.2 32-18.4a6.9 6.9 0 0110.3 6v5.3c0 26.8 29 43.6 52.2 30.2l35.1-20.1 34.6-19.8a35 35 0 000-60.5zm-227 6.6l-81 167.3h-33.6l30.3-62.5L773 51.9h34.5l30.6 70.2 33.4-70.2H905zM95.1 111.3c0-20-14.5-34-32.3-34s-32.3 14.3-32.3 34c0 19.5 14.5 34 32.3 34s32.3-14 32.3-34m.3 59.4v-15.4a47.6 47.6 0 01-37.5 17.3C25.3 172.6.6 146.5.6 111.3c0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H95.4zm171.2-26.4c-10.2 0-13.1-3.8-13.1-13.8V77.8h18.8v-26h-18.8v-29h-29.9v29H185V40.2c0-10 3.8-13.8 14.3-13.8h6.6v-23h-14.4c-24.7 0-36.4 8-36.4 32.8V52h-16.6v25.8h16.6v92.9H185v-93h38.6V136c0 24.2 9.3 34.7 33.5 34.7h15.4v-26.4h-5.9zM374 100.6c-2.1-15.4-14.7-24.7-29.5-24.7-14.7 0-26.9 9-29.9 24.7H374zM314.3 119a29.6 29.6 0 0030.7 27.6c12.6 0 22.3-6 28-15.4h30.7c-7.1 25.2-29.7 41.3-59.4 41.3a58.5 58.5 0 01-61.1-61.1A60 60 0 01345 49.7a59.5 59.5 0 0160.4 69.4h-91.1zm282.2-7.8a33 33 0 00-32.3-34c-17.8 0-32.3 14.3-32.3 34 0 19.5 14.5 34 32.3 34a32.9 32.9 0 0032.3-34m-94.1 107.9V51.9h29.2v15.4a47.2 47.2 0 0137.5-17.6c32.1 0 57.3 26.4 57.3 61.3s-25.7 61.5-58 61.5a46 46 0 01-35.9-16v62.6h-30.1zm229.3-108c0-20-14.5-34-32.3-34-17.8 0-32.3 14.4-32.3 34s14.5 34 32.3 34c17.8 0 32.3-14 32.3-34m.3 59.5v-15.4a47.6 47.6 0 01-37.5 17.3c-32.6 0-57.3-26.1-57.3-61.3 0-35 25.7-61.5 58-61.5 15.2 0 28 6.7 36.8 17v-15h29.2v118.9H732zM449.7 63.5s7.4-13.8 25.7-13.8c7.8 0 12.8 2.7 12.8 2.7v30.3s-11-6.8-21.1-5.4c-10.1 1.4-16.5 10.6-16.5 23v70.3h-30.2V51.9h29.2v11.6h.1z\"></path>\n </svg>\n </div>\n </div>\n <div class=\"row-1\">\n <h3 class=\"afterpay-modal-headline\">Magasinez maintenant. <span>Payez plus tard.</span>\n <div>Toujours sans int\xE9r\xEAts.</div>\n </h3>\n </div>\n <div class=\"process-step-1 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 72\" class=\"process-icon shopping-cart\" aria-label=\"Step 1\">\n <path class=\"c1\" d=\"M26 55.47a27.28 27.28 0 01-4-3c-2.13-1.87-4.52-4.49-4.44-7.36a5 5 0 01.37-1.75 4.27 4.27 0 018.13.25 4.27 4.27 0 018.13-.25 5 5 0 01.37 1.75c.08 2.87-2.31 5.49-4.44 7.36a27.28 27.28 0 01-4 3\"></path>\n <path class=\"c1\" fill=\"#000\" d=\"M10.5 35V17a15.5 15.5 0 0131 0v18\"></path>\n <path class=\"c1\" transform=\"rotate(90 85.5 -4.5)\" d=\"M110.5 30.5h45.79a4.21 4.21 0 014.21 4.21v40.58a4.21 4.21 0 01-4.21 4.21H110.5v-49z\"></path>\n </svg>\n </div>\n <div class=\"process-step-1 process-subheading\">Ajoutez votre liste de souhaits au panier.</div>\n <div class=\"process-step-2 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon afterpay-desktop\" aria-label=\"Step 2\">\n <path class=\"c1\" d=\"M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.93V50.5h-69V5.43a3.93 3.93 0 013.93-3.93z\"></path>\n <path d=\"M54.75 17.52L50.3 15l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L31.7 37l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon afterpay-mobile\" aria-label=\"Step 2\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M1.49 10.5h49\"></path>\n <path class=\"c1\" d=\"M1.49 75.5h49\"></path>\n <path class=\"c1\" d=\"M21.49 6.5h9\"></path>\n <path d=\"M39.75 32.52L35.3 30l-4.51-2.59a4.48 4.48 0 00-6.71 3.89v.58a.89.89 0 00.44.77l2.1 1.2a.86.86 0 001.3-.75v-1.41a.89.89 0 011.33-.77l4.12 2.37 4.11 2.36a.88.88 0 010 1.53l-4.11 2.36-4.12 2.36a.88.88 0 01-1.33-.76v-.69a4.48 4.48 0 00-6.71-3.89l-4.51 2.59-4.45 2.55a4.49 4.49 0 000 7.78L16.7 52l4.51 2.59a4.48 4.48 0 006.71-3.89v-.58a.88.88 0 00-.44-.77l-2.1-1.2a.86.86 0 00-1.3.75v1.38a.89.89 0 01-1.33.77l-4.12-2.37-4.11-2.36a.88.88 0 010-1.53l4.11-2.36 4.12-2.36a.88.88 0 011.33.76v.69a4.48 4.48 0 006.71 3.89l4.51-2.59 4.45-2.55a4.49 4.49 0 000-7.75z\"></path>\n </svg>\n </div>\n <div class=\"process-step-2 process-subheading\">S\xE9lectionnez Afterpay lors de l'achat.</div>\n <div class=\"process-step-3 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 82 56\" class=\"process-icon sign-up-desktop\" aria-label=\"Step 3\">\n <path class=\"c1\" d=\"M52.51 28.12l4.43 4.45L65.5 24\"></path>\n <circle class=\"c1\" cx=\"31\" cy=\"26\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"31\" cy=\"21.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M20.92 36.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.8M36.5 52.49h9\"></path>\n <path class=\"c1\" d=\"M10.43 1.5h61.14a3.93 3.93 0 013.93 3.94V50.5h-69V5.45a3.93 3.93 0 013.93-3.93z\"></path>\n <rect class=\"c1\" width=\"79\" height=\"4\" x=\"1.5\" y=\"50.49\" rx=\"2\"></rect>\n </svg>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"0 0 52 82\" class=\"process-icon sign-up-mobile\" aria-label=\"Step 3\">\n <rect class=\"c1\" width=\"79\" height=\"49\" x=\"86.5\" y=\"16.5\" rx=\"4.21\" transform=\"rotate(90 76 -9)\"></rect>\n <path class=\"c1\" d=\"M21.46 58.06l4.43 4.45 8.55-8.58M1.5 10.5h48.99M1.5 75.5h48.99M21.5 6.5h9\"></path>\n <circle class=\"c1\" cx=\"26\" cy=\"34\" r=\"14.5\"></circle>\n <circle class=\"c1\" cx=\"26\" cy=\"29.8\" r=\"6.09\"></circle>\n <path class=\"c1\" d=\"M15.93 44.42a8.43 8.43 0 018-5.8h4.2a8.45 8.45 0 018 5.79\"></path>\n </svg>\n </div>\n <div class=\"process-step-3 process-subheading\">Connectez-vous ou cr\xE9er votre compte Afterpay, r\xE9ponse instantan\xE9e.</div>\n <div class=\"process-step-4 process-icon-container\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" viewBox=\"14 7 79 79\" class=\"process-icon four-payments\" aria-label=\"Step 4\">\n <path class=\"c1\" d=\"M50,15.5A34.5,34.5,0,0,0,15.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M15.5,50A34.5,34.5,0,0,0,50,84.5V50Z\"></path>\n <path class=\"c1\" d=\"M50,84.5h0A34.5,34.5,0,0,0,84.5,50H50Z\"></path>\n <path class=\"c1\" d=\"M57,8.5h0V43h34.5A34.5,34.5,0,0,0,57,8.5Z\"></path>\n </svg>\n </div>\n <div class=\"process-step-4 process-subheading\">4 paiements \xE9chelonn\xE9s, toutes les 2 semaines.</div>\n <div class=\"row-3\">\n <div class=\"disclaimer\">Vous devez avoir l'\xE2ge de la majorit\xE9 \xE9tablie dans votre province ou territoire et \xEAtre un r\xE9sident du Canada. Des crit\xE8res d'\xE9ligibilit\xE9 suppl\xE9mentaires sont applicables. <br>\n <br>Les montants estim\xE9s figurant sur les pages de produits ne comprennent pas les taxes et les frais d'exp\xE9dition, qui sont ajout\xE9s lors du passage en caisse. Cliquez <a href=\"https://www.afterpay.com/fr-CA/instalment-agreement\" aria-label=\"Lire les mentions l\xE9gales de Afterpay (Nouvelle fen\xEAtre)\" target=\"_blank\" rel=\"noopener\" class=\"disclaimer-link\" tabindex=\"1\">ici</a> pour consulter les mentions l\xE9gales. <span>\xA9 2020 Afterpay Canada</span>\n </div>\n </div>\n </div>\n </div>\n <style type=\"text/css\">\n body.afterpay-modal-body,\n html.afterpay-modal-html {\n height: 100%\n }\n\n body.afterpay-modal-body {\n margin: 0;\n background-color: #b2fce4\n }\n\n body.afterpay-modal-body.theme-white {\n background: #fff\n }\n\n :-moz-ui-invalid:not(output) {\n box-shadow: none\n }\n\n .afterpay-modal-wrapper {\n min-height: 100%;\n padding: 0 24px;\n background: #b2fce4\n }\n\n .afterpay-modal-wrapper.theme-white {\n background: #fff\n }\n\n .afterpay-modal-wrapper * {\n box-sizing: border-box;\n text-decoration: none;\n font-family: 'Italian Plate No2 Expanded', sans-serif;\n color: #000\n }\n\n .grid-container {\n display: grid;\n margin: 0 auto;\n max-width: 800px;\n text-align: center;\n font-size: 16px;\n grid-template-rows: auto;\n grid-template-columns: repeat(4, 25%);\n grid-template-areas: \"logo logo logo logo\"\"headline headline headline headline\"\"body-a body-b body-c body-d\"\"body-e body-f body-g body-h\"\"cbt-block cbt-block cbt-block cbt-block\"\"footer footer footer footer\"\n }\n\n .row-0 {\n grid-area: logo;\n padding-top: 45px\n }\n\n .row-1 {\n grid-area: headline;\n padding: 3% 0 8% 0\n }\n\n .process-step-1.process-icon-container {\n grid-area: body-a\n }\n\n .process-step-2.process-icon-container {\n grid-area: body-b\n }\n\n .process-step-3.process-icon-container {\n grid-area: body-c\n }\n\n .process-step-4.process-icon-container {\n grid-area: body-d\n }\n\n .process-step-1.process-subheading {\n grid-area: body-e\n }\n\n .process-step-2.process-subheading {\n grid-area: body-f\n }\n\n .process-step-3.process-subheading {\n grid-area: body-g\n }\n\n .process-step-4.process-subheading {\n grid-area: body-h\n }\n\n .row-3 {\n grid-area: footer\n }\n\n .grid-container>div {\n align-content: stretch\n }\n\n .afterpay-modal-logo svg {\n width: 100%;\n max-width: 275px;\n height: auto\n }\n\n h3.afterpay-modal-headline {\n margin: 0;\n font-size: 44px;\n font-weight: 600;\n line-height: 1.1\n }\n\n .process-icon-container {\n align-self: end\n }\n\n .process-icon-container svg {\n width: auto;\n height: auto;\n max-width: 110px;\n max-height: 95px\n }\n\n .process-icon-container svg .c1 {\n fill: none;\n stroke: #000;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2px\n }\n\n .process-subheading {\n padding: 10% 3% 0 3%;\n font-weight: 600;\n line-height: 1.25\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: none\n }\n\n .row-3 {\n padding: 8% 0 40px 0\n }\n\n .disclaimer {\n font-size: 12px\n }\n\n .disclaimer-link {\n color: #000;\n text-decoration: underline\n }\n\n .disclaimer-link:active {\n color: #000\n }\n\n .afterpay-footer-example {\n margin-top: 1.875em;\n font-size: x-small;\n font-weight: 600\n }\n\n .afterpay-underline {\n text-decoration: underline\n }\n\n .afterpay-bold {\n font-weight: 700\n }\n\n .afterpay-reference-symbol {\n font-weight: 400;\n font-size: .5em;\n vertical-align: text-top\n }\n\n .footer-terms {\n margin: 1.875em auto 0;\n font-size: x-small;\n color: #888d8d\n }\n\n .afterpay-footer-example {\n margin: inherit\n }\n\n @media (min-width:700px) {\n .process-step-4 .process-subheading {\n max-width: 170px\n }\n }\n\n @media (max-width:768px) {\n .grid-container {\n max-width: 500px;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-b\"\"body-e body-f\"\"body-c body-d\"\"body-g body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-1 {\n padding: 3% 0 20px 0\n }\n\n .process-icon-container {\n padding: 24px 0 0 0\n }\n }\n\n @media (max-width:600px) {\n .afterpay-modal-wrapper {\n padding: 0\n }\n\n .grid-container {\n padding: 30px;\n text-align: left;\n grid-template-columns: auto;\n grid-template-areas: \"logo logo\"\"headline headline\"\"body-a body-e\"\"body-b body-f\"\"body-c body-g\"\"body-d body-h\"\"cbt-block cbt-block\"\"footer footer\"\n }\n\n .row-0 {\n padding-top: 0\n }\n\n .row-1 {\n padding: 20px 0 8% 0\n }\n\n h3.afterpay-modal-headline {\n font-size: 40px\n }\n\n svg.afterpay-desktop,\n svg.sign-up-desktop {\n display: none\n }\n\n svg.afterpay-mobile,\n svg.sign-up-mobile {\n display: block\n }\n\n .process-icon-container {\n align-self: start;\n padding: 12px 0\n }\n\n h3.afterpay-modal-headline>p>span {\n padding: 2px 2px;\n display: table;\n text-align: center\n }\n\n .process-icon-container svg {\n max-height: 65px\n }\n\n .process-icon-container svg.four-payments {\n max-height: 55px\n }\n\n .process-subheading {\n padding: 6px 0 6px 5px;\n align-self: center\n }\n\n .row-3 {\n padding: 8% 0 20px 0\n }\n }\n\n @media (max-width:420px) {\n .afterpay-modal-logo svg {\n max-width: 200px\n }\n\n h3.afterpay-modal-headline {\n font-size: 36px\n }\n }\n\n @media (max-width:335px) {\n h3.afterpay-modal-headline {\n font-size: 32px\n }\n }\n\n @media (max-width:260px) {\n .grid-container {\n font-size: 14px\n }\n\n h3.afterpay-modal-headline {\n font-size: 28px\n }\n }\n </style>\n <style type=\"text/css\">\n @media (-ms-high-contrast:none),\n (-ms-high-contrast:active) {\n .afterpay-modal-wrapper .grid-container {\n display: -ms-grid;\n -ms-grid-rows: auto;\n -ms-grid-columns: (25%)[4];\n font-size: 14px\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 {\n -ms-grid-row: 1;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding-top: 0\n }\n\n .afterpay-modal-wrapper .grid-container .row-0 .afterpay-modal-logo svg {\n height: 15vh\n }\n\n .afterpay-modal-wrapper .grid-container .row-1 {\n -ms-grid-row: 2;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 20px 0 45px 0\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 1\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 2\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-icon-container {\n -ms-grid-row: 3;\n -ms-grid-column: 4;\n grid-area: body-d\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-1.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 1;\n grid-area: body-e\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-2.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 2;\n grid-area: body-f\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-3.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 3\n }\n\n .afterpay-modal-wrapper .grid-container .process-step-4.process-subheading {\n -ms-grid-row: 4;\n -ms-grid-column: 4\n }\n\n .afterpay-modal-wrapper .grid-container .row-3 {\n -ms-grid-row: 5;\n -ms-grid-column: 1;\n -ms-grid-column-span: 4;\n padding: 80px 0 40px 0\n }\n }\n </style>\n <script id=\"post-events-to-parent\">\n ! function() {\n try {\n var t = window && window.parent;\n t && t !== window.self && \"function\" == typeof t.postMessage && (t.postMessage(\"Afterpay.ready\", \"*\"), document.addEventListener(\"keyup\", function(e) {\n e = e.key || e.keyCode;\n \"Escape\" !== e && \"Esc\" !== e && 27 !== e || t.postMessage(\"Afterpay.keyup.esc\", \"*\")\n }))\n } catch (e) {}\n }()\n </script>\n </div>\n </div>\n</div>\n</div>";
84
+
85
+ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
86
+ function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
87
+ 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; }
88
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
89
+ 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); } }
90
+ 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; }
91
+ 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); }
92
+ 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); }
93
+ 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); }; }
94
+ 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); }
95
+ function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
96
+ 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; } }
97
+ function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
98
+ 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; }
99
+ function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
100
+ 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); }
101
+ var Modal = /*#__PURE__*/function (_React$Component) {
102
+ _inherits$2(Modal, _React$Component);
103
+ var _super = _createSuper$2(Modal);
135
104
  function Modal(props) {
136
- classCallCheck(this, Modal);
137
-
138
- var _this = possibleConstructorReturn(this, (Modal.__proto__ || Object.getPrototypeOf(Modal)).call(this, props));
139
-
140
- _this.toggleModalVisibility = function (isModalVisible) {
141
- isModalVisible ? _this.setState({ modalElement: { style: { display: 'block' } } }) : _this.setState({ modalElement: { style: { display: 'none' } } });
142
- };
143
-
144
- _this.modalCloseHandler = function (event) {
105
+ var _this;
106
+ _classCallCheck$2(this, Modal);
107
+ _this = _super.call(this, props);
108
+ _defineProperty$2(_assertThisInitialized$2(_this), "toggleModalVisibility", function (isModalVisible) {
109
+ if (isModalVisible !== _this.state.isModalVisible) {
110
+ _this.setState(_objectSpread$2(_objectSpread$2({}, _this.state), {}, {
111
+ isModalVisible: isModalVisible
112
+ }));
113
+ }
114
+ });
115
+ _defineProperty$2(_assertThisInitialized$2(_this), "modalCloseHandler", function (event) {
145
116
  _this.props.callbackModalClose(_this.props.modalType);
146
- _this.setState({ modalElement: { style: { display: 'none' } } });
147
- };
148
-
117
+ });
149
118
  _this.state = {
150
- modalElement: null
119
+ modalElement: null,
120
+ isModalVisible: false
151
121
  };
152
122
  return _this;
153
123
  }
154
-
155
- createClass(Modal, [{
156
- key: 'componentDidMount',
124
+ _createClass$2(Modal, [{
125
+ key: "componentDidMount",
157
126
  value: function componentDidMount() {
158
127
  var _this2 = this;
159
-
160
128
  document.querySelector('html').appendChild(this.state.modalElement);
161
-
162
- var sezzleModal = void 0;
129
+ var sezzleModal;
163
130
  if (this.props.modalType === 'afterpay') {
164
131
  sezzleModal = document.querySelector('.sezzle-ap-modal');
165
132
  } else {
166
133
  sezzleModal = document.querySelector('.sezzle-modal');
167
134
  }
168
-
169
135
  sezzleModal.addEventListener('click', function (event) {
170
136
  return event.stopPropagation();
171
137
  });
@@ -176,12 +142,12 @@ var Modal = function (_React$Component) {
176
142
  });
177
143
  }
178
144
  }, {
179
- key: 'componentDidUpdate',
145
+ key: "componentDidUpdate",
180
146
  value: function componentDidUpdate(prevProps, prevState) {
181
147
  this.toggleModalVisibility(this.props.toggleModalVisibility);
182
148
  }
183
149
  }, {
184
- key: 'componentWillUnmount',
150
+ key: "componentWillUnmount",
185
151
  value: function componentWillUnmount() {
186
152
  var modals = document.querySelector('html').getElementsByClassName('sezzle-checkout-modal-lightbox');
187
153
  for (var i = 0; i < modals.length; i++) {
@@ -189,36 +155,35 @@ var Modal = function (_React$Component) {
189
155
  }
190
156
  }
191
157
  }, {
192
- key: 'render',
158
+ key: "render",
193
159
  value: function render() {
194
160
  return null;
195
161
  }
196
162
  }], [{
197
- key: 'getDerivedStateFromProps',
163
+ key: "getDerivedStateFromProps",
198
164
  value: function getDerivedStateFromProps(props, state) {
199
- if (state.modalElement) return state;
200
- var modalElement = void 0;
201
- switch (props.modalType) {
202
- case 'afterpay':
203
- modalElement = document.createElement('div');
204
- modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal sezzle-ap-modal';
205
- modalElement.innerHTML = apModalHTML;
206
- modalElement.style.display = 'none';
207
- break;
208
- default:
209
- modalElement = document.createElement('div');
210
- modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal';
211
- modalElement.innerHTML = document.querySelector('html').lang && document.querySelector('html').lang.substring(0, 2).toLowerCase() === "fr" ? modalFrenchHTML : modalEnglishHTML;
212
- modalElement.style.display = 'none';
165
+ if (!state.modalElement) {
166
+ var modalElement = document.createElement('div');
167
+ var currentLang = getSupportedLanguage();
168
+ switch (props.modalType) {
169
+ case 'afterpay':
170
+ modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal sezzle-ap-modal';
171
+ modalElement.innerHTML = currentLang === 'fr' ? apModalFrenchHTML : apModalEnglishHTML;
172
+ break;
173
+ default:
174
+ modalElement.className = 'sezzle-checkout-modal-lightbox close-sezzle-modal';
175
+ modalElement.innerHTML = currentLang === 'fr' ? modalFrenchHTML : modalEnglishHTML;
176
+ }
177
+ state = _objectSpread$2(_objectSpread$2({}, state), {}, {
178
+ modalElement: modalElement
179
+ });
213
180
  }
214
- state = _extends({}, state, { modalElement: modalElement });
181
+ state.modalElement.style.display = state.isModalVisible ? 'block' : 'none';
215
182
  return state;
216
183
  }
217
184
  }]);
218
185
  return Modal;
219
186
  }(React.Component);
220
-
221
-
222
187
  Modal.propTypes = {
223
188
  toggleModalVisibility: PropTypes.bool,
224
189
  modalType: PropTypes.string,
@@ -255,14 +220,29 @@ function styleInject(css, ref) {
255
220
  var css = ".sezzle-checkout-modal-lightbox * {\n\tvertical-align: baseline;\n\tbox-sizing: border-box;\n\tline-height: normal;\n }\n\n .sezzle-checkout-modal-lightbox {\n\tdisplay: none;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 99999998;\n\tbackground-color: rgba(5, 31, 52, 0.57);\n\twidth: 100vw;\n\theight: 100vh;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\tcolor: unset;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal-hidden {\n\ttransition: all 0.4s ease;\n\tmargin-top: 0;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -384px;\n\tmargin-left: -325px;\n\tz-index: 99999998;\n\tbackground-color: #fff;\n\tbox-shadow: 0 10px 20px rgba(5, 31, 52, 0.19), 0 6px 6px rgba(5, 31, 52, 0.2);\n\tborder-radius: 20px;\n\tcolor: #000;\n\tfont-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n\ttransition: all 0.4s ease;\n\twidth: 650px;\n }\n @media (max-width: 650px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\t position: relative;\n\t top: 0px;\n\t left: 0px;\n\t padding: 50px 20px;\n\t margin: 0;\n\t border-radius: 0;\n\t height: 100%;\n\t font-size: 15px;\n\t max-width: 100%;\n\t min-width: 320px;\n\t overflow: auto;\n\t}\n }\n @media (max-height: 767px) and (min-width: 651px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal {\n\t position: relative;\n\t top: 0px;\n\t left: 0px;\n\t margin: 20px auto;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h1 {\n\tfont-size: 18px;\n\ttext-align: center;\n\tmargin: 0 auto;\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal h1 .sezzle-checkout-modal h1 {\n\t font-size: 16px;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\tdisplay: block;\n\ttext-align: center;\n\ttext-transform: none;\n\tfont-size: 12pt;\n\tline-height: 25px;\n\tfont-weight: 300;\n\tbox-sizing: border-box;\n\tcolor: #7d8588;\n\tmargin: 5px 0 !important;\n\tletter-spacing: 0.25px;\n }\n @media (max-width: 768px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\t text-align: center;\n\t}\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p {\n\t font-size: 11pt;\n\t text-align: center;\n\t letter-spacing: 0.5px;\n\t line-height: 18px;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal p small {\n\tdisplay: block;\n\tbox-sizing: border-box;\n\tfont-size: 11pt;\n\topacity: 0.8;\n }\n @media (max-width: 450px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal p small {\n\t font-size: 7.5pt;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal a {\n\tdisplay: block;\n\tmargin: 4px auto 0;\n\tcolor: #17ce6a;\n\tfont-size: 8pt;\n\tfont-weight: 500;\n\ttext-transform: lowercase;\n\ttext-align: left;\n\tletter-spacing: 0.25px;\n\ttext-decoration: none;\n\ttransition: 0.15s;\n\topacity: 0.65;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal a:hover {\n\ttransition: 0.1s;\n\topacity: 1;\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 {\n\tfont-size: 18px;\n\ttext-align: center;\n\tmargin: 0 auto;\n\tcolor: unset;\n }\n @media (max-width: 768px) {\n\t.sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 {\n\t text-align: center;\n\t}\n }\n .sezzle-checkout-modal-lightbox .sezzle-checkout-modal h2 img {\n\tmargin: 0 4px;\n\tdisplay: inline-block;\n\theight: 30px !important;\n\twidth: auto;\n\tposition: relative;\n\ttop: 6px;\n\tvertical-align: initial;\n }\n\n .sezzle-shopify-info-button {\n\tdisplay: block;\n\toverflow: hidden;\n\tmargin: 0;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper {\n\tdisplay: block;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n\tcolor: inherit;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper:focus {\n\toutline: 5px auto;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-left {\n\ttext-align: left;\n\tfloat: left;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-center {\n\ttext-align: center;\n\tfloat: none;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper.sezzle-right {\n\ttext-align: right;\n\tfloat: right;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text {\n\twidth: unset;\n\tmargin: auto;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n\tword-wrap: normal;\n\tline-height: 18px;\n\tfont-size: 14px;\n\tfont-weight: 500;\n\tfont-family: inherit;\n\tcolor: inherit;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-left {\n\ttext-align: left;\n\tmargin: 0;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-center {\n\ttext-align: center;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text.sezzle-right {\n\tfloat: right;\n\ttext-align: right;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-payment-amount {\n\tzoom: 1;\n\tfloat: none;\n\tmargin: 0;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n\tfont-weight: 900;\n\tfont-size: 1.2em;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-logo {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\theight: 18px;\n\twidth: auto;\n\topacity: 1;\n\tfloat: none;\n\tmargin: 0;\n\tmargin-bottom: -3px;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: baseline;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-info-icon {\n\tdisplay: inline;\n\twidth: auto;\n\tmargin: 0;\n\tbox-shadow: none;\n\tborder: none;\n\tpadding: 0px 0px 0px 3px;\n\tbackground: none;\n\tvertical-align: baseline;\n\tline-height: initial;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tcursor: pointer;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text .sezzle-ap-logo {\n\theight: 45px;\n\tmargin: 0;\n\tborder: 0;\n\tpadding: 0;\n\tvertical-align: middle;\n }\n .sezzle-shopify-info-button .sezzle-checkout-button-wrapper .sezzle-button-text button.ap-modal-info-link {\n\tdisplay: inline;\n\twidth: auto;\n\tmargin: 0;\n\tbox-shadow: none;\n\tborder: none;\n\tpadding: 0;\n\tbackground: none;\n\tvertical-align: middle;\n\tline-height: inherit;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tcursor: pointer;\n }\n\n .sezzle-hidden {\n\tdisplay: none;\n\tvisibility: hidden;\n }\n";
256
221
  styleInject(css);
257
222
 
258
- var SezzleWidgetText = function (_React$Component) {
259
- inherits(SezzleWidgetText, _React$Component);
260
-
223
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
224
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
225
+ 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; }
226
+ 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; }
227
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
228
+ 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); } }
229
+ 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; }
230
+ function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
231
+ 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); }
232
+ 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); }
233
+ 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); }
234
+ 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); }; }
235
+ 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); }
236
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
237
+ 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; } }
238
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
239
+ var SezzleWidgetText = /*#__PURE__*/function (_React$Component) {
240
+ _inherits$1(SezzleWidgetText, _React$Component);
241
+ var _super = _createSuper$1(SezzleWidgetText);
261
242
  function SezzleWidgetText(props) {
262
- classCallCheck(this, SezzleWidgetText);
263
-
264
- var _this = possibleConstructorReturn(this, (SezzleWidgetText.__proto__ || Object.getPrototypeOf(SezzleWidgetText)).call(this, props));
265
-
243
+ var _this;
244
+ _classCallCheck$1(this, SezzleWidgetText);
245
+ _this = _super.call(this, props);
266
246
  _this.state = {
267
247
  config: _this.props.config,
268
248
  sezzle: false,
@@ -271,78 +251,91 @@ var SezzleWidgetText = function (_React$Component) {
271
251
  };
272
252
  return _this;
273
253
  }
274
-
275
- createClass(SezzleWidgetText, [{
276
- key: 'renderSezzleWidgetText',
254
+ _createClass$1(SezzleWidgetText, [{
255
+ key: "renderSezzleWidgetText",
277
256
  value: function renderSezzleWidgetText() {
278
257
  var _this2 = this;
279
-
280
258
  var numberOfPayments = 4;
281
259
  var logoURLs = {
282
- 'light': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg',
283
- 'dark': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor_WhiteWM.svg',
260
+ light: 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg',
261
+ dark: 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor_WhiteWM.svg',
284
262
  'black-flat': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_BlackAlt.svg',
285
263
  'white-flat': 'https://media.sezzle.com/branding/2.0/Sezzle_Logo_WhiteAlt.svg'
286
264
  };
287
265
  var template = {
288
- en: 'or ' + numberOfPayments + ' interest-free payments of %%price%% with %%logo%%%%afterpay%%%%min-price%% %%info%%',
289
- fr: 'ou ' + numberOfPayments + ' paiements de %%price%% sans int\xE9r\xEAts avec %%logo%%%%afterpay%%%%min-price%% %%info%%'
266
+ en: "or ".concat(numberOfPayments, " interest-free payments of %%price%% with %%logo%%%%afterpay%%%%min-price%% %%info%%"),
267
+ fr: "ou ".concat(numberOfPayments, " paiements de %%price%% sans int\xE9r\xEAts avec %%logo%%%%afterpay%%%%min-price%% %%info%%")
290
268
  };
291
269
  var clickHere = {
292
270
  en: 'Click here to learn more about Sezzle',
293
- fr: 'Cliquez pour en savoir plus sur Sezzle'
271
+ fr: 'Cliquez ici pour en savoir plus sur Sezzle'
294
272
  };
295
273
  var ordersOver = {
296
274
  en: ' for orders over',
297
275
  fr: ' pour les achats de plus de'
298
276
  };
299
- var language = document.querySelector('html').lang.substring(0, 2).toLowerCase() || 'en';
277
+ var language = getSupportedLanguage();
300
278
  var subtemplates = [];
301
279
  template[language].split('%%').forEach(function (subTemplate, index) {
302
280
  switch (subTemplate) {
303
281
  case 'price':
304
- var priceElement = React.createElement(
305
- 'span',
306
- { className: 'sezzle-payment-amount sezzle-button-text', key: index },
307
- getFormattedPrice(_this2.state.config.price, numberOfPayments)
308
- );
282
+ // eslint-disable-next-line no-case-declarations
283
+ var priceElement = /*#__PURE__*/React.createElement("span", {
284
+ className: "sezzle-payment-amount sezzle-button-text",
285
+ key: index
286
+ }, getFormattedPrice(_this2.state.config.price, numberOfPayments));
309
287
  subtemplates.push(priceElement);
310
288
  break;
311
289
  case 'logo':
312
- var logoElement = React.createElement('img', { alt: 'Sezzle',
313
- className: 'sezzle-logo szl-' + (_this2.state.config.theme === 'dark' || _this2.state.config.theme === 'white-flat' ? 'dark' : 'light') + '-image', src: logoURLs[_this2.state.config.theme] || logoURLs.light,
314
- style: { transformOrigin: 'top-' + _this2.state.config.alignment, transform: 'scale(' + _this2.state.config.logoSize + ')', cursor: 'pointer', width: '74px', height: '18px' },
315
- key: index, onClick: function onClick() {
290
+ // eslint-disable-next-line no-case-declarations
291
+ var logoElement = /*#__PURE__*/React.createElement("img", {
292
+ alt: "Sezzle",
293
+ className: "sezzle-logo szl-".concat(_this2.state.config.theme === 'dark' || _this2.state.config.theme === 'white-flat' ? 'dark' : 'light', "-image"),
294
+ src: logoURLs[_this2.state.config.theme] || logoURLs.light,
295
+ style: {
296
+ transformOrigin: "top-".concat(_this2.state.config.alignment),
297
+ transform: "scale(".concat(_this2.state.config.logoSize, ")"),
298
+ cursor: 'pointer',
299
+ width: '74px',
300
+ height: '18px'
301
+ },
302
+ key: index,
303
+ onClick: function onClick() {
316
304
  return _this2.openModal('sezzle');
317
- } });
305
+ }
306
+ });
318
307
  subtemplates.push(logoElement);
319
308
  break;
320
309
  case 'info':
321
- var infoElement = React.createElement(
322
- 'div',
323
- { 'aria-label': '' + clickHere[language], className: 'sezzle-info-icon', key: index, onClick: function onClick() {
324
- return _this2.openModal('sezzle');
325
- } },
326
- '\u24D8'
327
- );
310
+ // eslint-disable-next-line no-case-declarations
311
+ var infoElement = /*#__PURE__*/React.createElement("div", {
312
+ "aria-label": "".concat(clickHere[language]),
313
+ className: "sezzle-info-icon",
314
+ key: index,
315
+ onClick: function onClick() {
316
+ return _this2.openModal('sezzle');
317
+ }
318
+ }, "\u24D8");
328
319
  subtemplates.push(infoElement);
329
320
  break;
330
321
  case 'afterpay':
331
322
  if (_this2.state.config.includeAPModal) {
332
- subtemplates.push(language === "fr" ? "ou" : " or ");
333
- var apLogo = React.createElement('img', { className: 'sezzle-ap-logo ap-modal-info-link no-sezzle-info',
323
+ subtemplates.push(language === 'fr' ? ' ou ' : ' or ');
324
+ var apLogo = /*#__PURE__*/React.createElement("img", {
325
+ className: "sezzle-ap-logo ap-modal-info-link no-sezzle-info",
334
326
  src: 'https://media.sezzle.com/sezzle-credit-website-assets/ap-badge-black-on-mint.svg',
335
327
  onClick: function onClick() {
336
328
  return _this2.openModal('afterpay');
337
- }, key: index,
338
- alt: 'Afterpay'
329
+ },
330
+ key: index,
331
+ alt: "Afterpay"
339
332
  });
340
333
  subtemplates.push(apLogo);
341
334
  }
342
335
  break;
343
336
  case 'min-price':
344
337
  if (_this2.state.config.minPrice && !_this2.state.config.includeAPModal) {
345
- subtemplates.push(ordersOver[language] + ' $' + _this2.state.config.minPrice);
338
+ subtemplates.push("".concat(ordersOver[language], " $").concat(_this2.state.config.minPrice));
346
339
  }
347
340
  break;
348
341
  default:
@@ -352,64 +345,95 @@ var SezzleWidgetText = function (_React$Component) {
352
345
  return subtemplates;
353
346
  }
354
347
  }, {
355
- key: 'openModal',
348
+ key: "openModal",
356
349
  value: function openModal(modalType) {
357
- modalType === 'afterpay' ? this.setState({ afterpay: true }) : this.setState({ sezzle: true });
350
+ modalType === 'afterpay' ? this.setState({
351
+ afterpay: true
352
+ }) : this.setState({
353
+ sezzle: true
354
+ });
358
355
  }
359
356
  }, {
360
- key: 'closeModal',
357
+ key: "closeModal",
361
358
  value: function closeModal(modalType) {
362
- modalType === 'afterpay' ? this.setState({ afterpay: false }) : this.setState({ sezzle: false });
359
+ modalType === 'afterpay' ? this.setState({
360
+ afterpay: false
361
+ }) : this.setState({
362
+ sezzle: false
363
+ });
363
364
  }
364
365
  }, {
365
- key: 'render',
366
+ key: "render",
366
367
  value: function render() {
367
368
  var _this3 = this;
368
-
369
- return React.createElement(
370
- 'div',
371
- { className: 'sezzle-shopify-info-button sezzle-' + (this.state.config.merchantId || '') },
372
- React.createElement(
373
- 'div',
374
- { 'aria-haspopup': 'dialog', role: 'button', tabIndex: '0', className: 'sezzle-checkout-button-wrapper sezzle-modal-link sezzle-' + (this.state.config.merchantId || '') + ' sezzle-' + (this.state.config.alignment || 'auto'), style: { cursor: 'pointer' } },
375
- React.createElement(
376
- 'div',
377
- { className: 'sezzle-button-text sezzle-' + (this.state.config.alignment || 'auto') + ' szl-' + (this.state.config.theme === 'dark' || this.state.config.theme === 'white-flat' ? 'dark' : 'light'), style: { fontWeight: this.state.config.fontWeight || 500, fontFamily: this.state.config.fontFamily || 'inherit', fontSize: (this.state.config.fontSize || 14) + 'px', color: this.state.config.textColor || 'inherit' } },
378
- this.renderSezzleWidgetText()
379
- )
380
- ),
381
- this.state.modalsToShow.map(function (modal, index) {
382
- return React.createElement(Modal, { modalType: modal, key: index, toggleModalVisibility: _this3.state[modal], callbackModalClose: function callbackModalClose(modal) {
383
- return _this3.closeModal(modal);
384
- } });
385
- })
386
- );
369
+ return /*#__PURE__*/React.createElement("div", {
370
+ className: "sezzle-shopify-info-button sezzle-".concat(this.state.config.merchantId || '')
371
+ }, /*#__PURE__*/React.createElement("div", {
372
+ "aria-haspopup": "dialog",
373
+ role: "button",
374
+ tabIndex: "0",
375
+ className: "sezzle-checkout-button-wrapper sezzle-modal-link sezzle-".concat(this.state.config.merchantId || '', " sezzle-").concat(this.state.config.alignment || 'auto'),
376
+ style: {
377
+ cursor: 'pointer'
378
+ }
379
+ }, /*#__PURE__*/React.createElement("div", {
380
+ 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'),
381
+ style: {
382
+ fontWeight: this.state.config.fontWeight || 500,
383
+ fontFamily: this.state.config.fontFamily || 'inherit',
384
+ fontSize: (this.state.config.fontSize || 14) + 'px',
385
+ color: this.state.config.textColor || 'inherit'
386
+ }
387
+ }, this.renderSezzleWidgetText())), this.state.modalsToShow.map(function (modal, index) {
388
+ return /*#__PURE__*/React.createElement(Modal, {
389
+ modalType: modal,
390
+ key: index,
391
+ toggleModalVisibility: _this3.state[modal],
392
+ callbackModalClose: function callbackModalClose(modal) {
393
+ return _this3.closeModal(modal);
394
+ }
395
+ });
396
+ }));
387
397
  }
388
398
  }], [{
389
- key: 'getDerivedStateFromProps',
399
+ key: "getDerivedStateFromProps",
390
400
  value: function getDerivedStateFromProps(props, state) {
391
401
  var config = props.config;
392
- state = _extends({}, state, { config: config });
393
-
402
+ state = _objectSpread$1(_objectSpread$1({}, state), {}, {
403
+ config: config
404
+ });
394
405
  return state;
395
406
  }
396
407
  }]);
397
408
  return SezzleWidgetText;
398
409
  }(React.Component);
399
-
400
-
401
410
  SezzleWidgetText.propTypes = {
402
411
  config: PropTypes.object
403
412
  };
404
413
 
405
- var SezzleWidgetWrapper = function (_React$Component) {
406
- inherits(SezzleWidgetWrapper, _React$Component);
407
-
414
+ 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); }
415
+ 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; }
416
+ 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; }
417
+ 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; }
418
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
419
+ 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); } }
420
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
421
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
422
+ 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); }
423
+ 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); }
424
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
425
+ 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); }; }
426
+ 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); }
427
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
428
+ 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; } }
429
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
430
+ var SezzleWidgetWrapper = /*#__PURE__*/function (_React$Component) {
431
+ _inherits(SezzleWidgetWrapper, _React$Component);
432
+ var _super = _createSuper(SezzleWidgetWrapper);
408
433
  function SezzleWidgetWrapper(props) {
409
- classCallCheck(this, SezzleWidgetWrapper);
410
-
411
- var _this = possibleConstructorReturn(this, (SezzleWidgetWrapper.__proto__ || Object.getPrototypeOf(SezzleWidgetWrapper)).call(this, props));
412
-
434
+ var _this;
435
+ _classCallCheck(this, SezzleWidgetWrapper);
436
+ _this = _super.call(this, props);
413
437
  _this.state = {
414
438
  sezzleConfig: {
415
439
  price: _this.props.price || 0,
@@ -428,34 +452,30 @@ var SezzleWidgetWrapper = function (_React$Component) {
428
452
  };
429
453
  return _this;
430
454
  }
431
-
432
- createClass(SezzleWidgetWrapper, [{
433
- key: 'render',
455
+ _createClass(SezzleWidgetWrapper, [{
456
+ key: "render",
434
457
  value: function render() {
435
- return React.createElement(
436
- 'div',
437
- null,
438
- React.createElement(SezzleWidgetText, { config: this.state.sezzleConfig })
439
- );
458
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SezzleWidgetText, {
459
+ config: this.state.sezzleConfig
460
+ }));
440
461
  }
441
462
  }], [{
442
- key: 'getDerivedStateFromProps',
463
+ key: "getDerivedStateFromProps",
443
464
  value: function getDerivedStateFromProps(props, state) {
444
465
  if (props.price !== state.sezzleConfig.price) {
445
466
  var updateState = state;
446
467
  updateState.sezzleConfig.price = props.price;
447
468
  return updateState;
448
469
  }
449
- state = _extends({}, state);
450
-
451
- if (props.includeAPModal) state.sezzleConfig.modalsToShow.push('afterpay');
470
+ state = _objectSpread({}, state);
471
+ if (props.includeAPModal && state.sezzleConfig.modalsToShow.indexOf('afterpay') === -1) {
472
+ state.sezzleConfig.modalsToShow.push('afterpay');
473
+ }
452
474
  return state;
453
475
  }
454
476
  }]);
455
477
  return SezzleWidgetWrapper;
456
478
  }(React.Component);
457
-
458
-
459
479
  SezzleWidgetWrapper.propTypes = {
460
480
  price: PropTypes.string.isRequired,
461
481
  merchantId: PropTypes.string.isRequired,
@@ -466,8 +486,9 @@ SezzleWidgetWrapper.propTypes = {
466
486
  fontSize: PropTypes.number,
467
487
  textColor: PropTypes.string,
468
488
  logoSize: PropTypes.number,
489
+ minPrice: PropTypes.number,
469
490
  includeAPModal: PropTypes.bool
470
491
  };
471
492
 
472
- export default SezzleWidgetWrapper;
493
+ export { SezzleWidgetWrapper as default };
473
494
  //# sourceMappingURL=index.es.js.map