@zonos/elements 1.2.0 → 1.2.2

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.
Files changed (149) hide show
  1. package/dist/cjs/{cart-ac9a3c40.js → cart-d4b52ae8.js} +5 -15
  2. package/dist/cjs/{getBorderRadius-1f9c0fa3.js → getBorderRadius-fdd605c6.js} +1 -1
  3. package/dist/cjs/index.cjs.js +5 -5
  4. package/dist/cjs/{isDarkColor-0651a165.js → isDarkColor-f3446afd.js} +1 -1
  5. package/dist/cjs/{localization-3a4b4a43.js → localization-d7fe7290.js} +41 -14
  6. package/dist/cjs/{submitGtag-9e873a0a.js → submitGtag-d65003f9.js} +2 -2
  7. package/dist/cjs/zonos-address_2.cjs.entry.js +10 -5
  8. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +20 -20
  10. package/dist/cjs/zonos-checkout.cjs.entry.js +17 -10
  11. package/dist/cjs/zonos-controller.cjs.entry.js +15 -6
  12. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +16 -8
  14. package/dist/cjs/zonos-hello.cjs.entry.js +17 -3
  15. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  16. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  17. package/dist/cjs/{zonosStore-270f79cc.js → zonosStore-a430ec5b.js} +2 -0
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +6 -0
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -3
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -2
  22. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +2 -2
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +10 -3
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +6 -2
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -2
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -3
  27. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -5
  28. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +5 -2
  29. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +15 -1
  30. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +15 -7
  31. package/dist/collection/components/main/zonos-controller.js +10 -1
  32. package/dist/collection/components/store/hello/localization.js +31 -9
  33. package/dist/collection/components/store/zonosStore.js +2 -0
  34. package/dist/collection/components/stripe/zonos-address/zonos-address.js +5 -0
  35. package/dist/collection/components/utils/api/getExchangeRate.js +9 -4
  36. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -11
  37. package/dist/collection/types/generated/graphql.customer.types.js +4 -1
  38. package/dist/components/cart.js +1 -11
  39. package/dist/components/localization.js +40 -13
  40. package/dist/components/zonos-address2.js +5 -0
  41. package/dist/components/zonos-cart-subtotal2.js +4 -3
  42. package/dist/components/zonos-checkout-payment2.js +3 -3
  43. package/dist/components/zonos-checkout.js +11 -4
  44. package/dist/components/zonos-controller.js +10 -1
  45. package/dist/components/zonos-customer-info2.js +3 -3
  46. package/dist/components/zonos-hello-dialog2.js +15 -7
  47. package/dist/components/zonos-hello.js +16 -2
  48. package/dist/components/zonos-shipping-rich-radio2.js +1 -1
  49. package/dist/components/zonos-shipping2.js +5 -6
  50. package/dist/components/zonosStore.js +2 -0
  51. package/dist/esm/{cart-cf46a264.js → cart-e1b93711.js} +5 -15
  52. package/dist/esm/{getBorderRadius-278281bf.js → getBorderRadius-45764ad7.js} +1 -1
  53. package/dist/esm/index.js +5 -5
  54. package/dist/esm/{isDarkColor-8fd3a24e.js → isDarkColor-6fbb9b14.js} +1 -1
  55. package/dist/esm/{localization-add1d9e9.js → localization-f3828793.js} +41 -14
  56. package/dist/esm/{submitGtag-aa5fe441.js → submitGtag-a901ece5.js} +2 -2
  57. package/dist/esm/zonos-address_2.entry.js +10 -5
  58. package/dist/esm/zonos-button_2.entry.js +3 -3
  59. package/dist/esm/zonos-cart-items_10.entry.js +20 -20
  60. package/dist/esm/zonos-checkout.entry.js +17 -10
  61. package/dist/esm/zonos-controller.entry.js +15 -6
  62. package/dist/esm/zonos-country-flag_4.entry.js +3 -3
  63. package/dist/esm/zonos-hello-dialog.entry.js +16 -8
  64. package/dist/esm/zonos-hello.entry.js +17 -3
  65. package/dist/esm/zonos-payment.entry.js +5 -5
  66. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  67. package/dist/esm/{zonosStore-e5291656.js → zonosStore-05a62104.js} +2 -0
  68. package/dist/esm-es5/cart-e1b93711.js +1 -0
  69. package/dist/esm-es5/{getBorderRadius-278281bf.js → getBorderRadius-45764ad7.js} +1 -1
  70. package/dist/esm-es5/index.js +1 -1
  71. package/dist/esm-es5/{isDarkColor-8fd3a24e.js → isDarkColor-6fbb9b14.js} +1 -1
  72. package/dist/esm-es5/{localization-add1d9e9.js → localization-f3828793.js} +1 -1
  73. package/dist/esm-es5/{submitGtag-aa5fe441.js → submitGtag-a901ece5.js} +1 -1
  74. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  75. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  77. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  78. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  79. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  80. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  81. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  82. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  83. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  84. package/dist/esm-es5/{zonosStore-e5291656.js → zonosStore-05a62104.js} +1 -1
  85. package/dist/scripts/loadZonos.js +3 -3
  86. package/dist/scripts/zonos.js +3 -3
  87. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
  88. package/dist/types/components/store/checkout/cart.d.ts +1 -0
  89. package/dist/types/components/store/hello/localization.d.ts +2 -0
  90. package/dist/types/components/utils/api/getExchangeRate.d.ts +9 -3
  91. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  92. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  93. package/dist/types/types/checkout/CheckoutConfig.d.ts +2 -1
  94. package/dist/types/types/generated/graphql.customer.types.d.ts +37 -8
  95. package/dist/types/types/generated/graphql.customer.types.ts +49 -8
  96. package/dist/types/types/generated/graphql.frontend.types.d.ts +4 -0
  97. package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
  98. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  99. package/dist/zonos-elements/index.esm.js +1 -1
  100. package/dist/zonos-elements/p-05256415.system.entry.js +1 -0
  101. package/dist/zonos-elements/{p-01990dcd.js → p-08695f4e.js} +1 -1
  102. package/dist/zonos-elements/p-0e0b46a5.js +1 -0
  103. package/dist/zonos-elements/{p-0cd4b073.system.js → p-164fae93.system.js} +1 -1
  104. package/dist/zonos-elements/p-25db3885.js +1 -0
  105. package/dist/zonos-elements/p-28681677.entry.js +1 -0
  106. package/dist/zonos-elements/p-34a49bce.entry.js +1 -0
  107. package/dist/zonos-elements/p-365970ff.entry.js +1 -0
  108. package/dist/zonos-elements/p-3f3fbcea.entry.js +1 -0
  109. package/dist/zonos-elements/p-40083e93.system.entry.js +1 -0
  110. package/dist/zonos-elements/{p-8fa1244b.entry.js → p-40778e43.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-6cd7a90e.system.js → p-53649e16.system.js} +1 -1
  112. package/dist/zonos-elements/p-5d7ffddb.entry.js +1 -0
  113. package/dist/zonos-elements/p-60821b2a.entry.js +1 -0
  114. package/dist/zonos-elements/{p-9d06e3a3.system.js → p-6dcd752e.system.js} +1 -1
  115. package/dist/zonos-elements/{p-0f64d234.entry.js → p-6e7cd3f7.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-ee671d13.js → p-770c959e.js} +1 -1
  117. package/dist/zonos-elements/{p-847a1b9a.system.entry.js → p-81c699f7.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-18d37ad9.system.js → p-85ab35c9.system.js} +1 -1
  119. package/dist/zonos-elements/{p-ddc11127.system.entry.js → p-8a75b765.system.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-1781245e.system.js → p-8aabbb9b.system.js} +1 -1
  121. package/dist/zonos-elements/{p-1b6d064d.system.js → p-8c867835.system.js} +1 -1
  122. package/dist/zonos-elements/p-8db8cc05.system.js +1 -0
  123. package/dist/zonos-elements/p-914ce305.system.entry.js +1 -0
  124. package/dist/zonos-elements/{p-466bae3a.entry.js → p-96a3c767.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-d0ecfe92.system.entry.js → p-a3641931.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-a3f394b7.system.entry.js → p-aca66238.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-86825d4a.js → p-bf070bf6.js} +1 -1
  128. package/dist/zonos-elements/{p-083b951d.system.entry.js → p-c8ad044e.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-ebb4de4e.entry.js → p-cc070c1c.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-96fbce98.system.entry.js → p-cc1c785c.system.entry.js} +1 -1
  131. package/dist/zonos-elements/p-de9d8a4f.system.entry.js +1 -0
  132. package/dist/zonos-elements/{p-1293796f.js → p-f7875c40.js} +1 -1
  133. package/dist/zonos-elements/p-f8491335.system.js +1 -1
  134. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  135. package/package.json +1 -1
  136. package/dist/esm-es5/cart-cf46a264.js +0 -1
  137. package/dist/zonos-elements/p-0a33b542.system.js +0 -1
  138. package/dist/zonos-elements/p-1835470b.system.entry.js +0 -1
  139. package/dist/zonos-elements/p-6bb67f2e.system.entry.js +0 -1
  140. package/dist/zonos-elements/p-82ab16e2.js +0 -1
  141. package/dist/zonos-elements/p-a014d540.entry.js +0 -1
  142. package/dist/zonos-elements/p-aed841bf.entry.js +0 -1
  143. package/dist/zonos-elements/p-b0a39955.js +0 -1
  144. package/dist/zonos-elements/p-bb35713f.entry.js +0 -1
  145. package/dist/zonos-elements/p-c4eb37b5.entry.js +0 -1
  146. package/dist/zonos-elements/p-de86c2e4.system.entry.js +0 -1
  147. package/dist/zonos-elements/p-e80aae7d.entry.js +0 -1
  148. package/dist/zonos-elements/p-eb6cc449.system.entry.js +0 -1
  149. package/dist/zonos-elements/p-f5392f7e.entry.js +0 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-270f79cc.js');
4
- const localization = require('./localization-3a4b4a43.js');
5
- const isDarkColor = require('./isDarkColor-0651a165.js');
6
- const getBorderRadius = require('./getBorderRadius-1f9c0fa3.js');
3
+ const zonosStore = require('./zonosStore-a430ec5b.js');
4
+ const localization = require('./localization-d7fe7290.js');
5
+ const isDarkColor = require('./isDarkColor-f3446afd.js');
6
+ const getBorderRadius = require('./getBorderRadius-fdd605c6.js');
7
7
 
8
8
  const prepCalculateLandedCost = () => {
9
9
  // maybe we don't need email now for prefetch the landed cost
@@ -22,17 +22,7 @@ const prepCalculateLandedCost = () => {
22
22
  lastName: stripeAddressData.value.lastName || '',
23
23
  phone: stripeAddressData.value.phone || '',
24
24
  },
25
- items: cartStore.items.map(item => ({
26
- amount: item.amount,
27
- countryOfOrigin: item.countryOfOrigin,
28
- currencyCode: item.currencyCode,
29
- imageUrl: item.imageUrl,
30
- measurements: item.measurements,
31
- metadata: item.metadata,
32
- name: item.name,
33
- productId: item.productId,
34
- quantity: item.quantity,
35
- })),
25
+ items: cartStore.items.map(item => item),
36
26
  shippingAddress: {
37
27
  addressLine1: stripeAddressData.value.address.line1,
38
28
  addressLine2: stripeAddressData.value.address.line2 || '',
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-270f79cc.js');
3
+ const zonosStore = require('./zonosStore-a430ec5b.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const cart = require('./cart-ac9a3c40.js');
6
- require('./zonosStore-270f79cc.js');
5
+ const cart = require('./cart-d4b52ae8.js');
6
+ require('./zonosStore-a430ec5b.js');
7
7
  require('./index-9542d2e7.js');
8
- require('./localization-3a4b4a43.js');
9
- require('./isDarkColor-0651a165.js');
10
- require('./getBorderRadius-1f9c0fa3.js');
8
+ require('./localization-d7fe7290.js');
9
+ require('./isDarkColor-f3446afd.js');
10
+ require('./getBorderRadius-fdd605c6.js');
11
11
 
12
12
 
13
13
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-270f79cc.js');
3
+ const zonosStore = require('./zonosStore-a430ec5b.js');
4
4
 
5
5
  var tinycolor = zonosStore.createCommonjsModule(function (module, exports) {
6
6
  // This file is autogenerated. It's used to publish CJS to npm.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-270f79cc.js');
3
+ const zonosStore = require('./zonosStore-a430ec5b.js');
4
4
 
5
5
  const stringsArabic = {
6
6
  'Above de minimis threshold for': {
@@ -3198,18 +3198,23 @@ const getCountryLandedCost = async (countryCode) => {
3198
3198
 
3199
3199
  const getExchangeRate = async ({ country, isGuaranteed, sourceCurrency, targetCurrency, }) => {
3200
3200
  var _a;
3201
+ // If source currency matches target currency (US -> US) and is not a guaranteed rate, return null
3202
+ if (sourceCurrency === targetCurrency && !isGuaranteed) {
3203
+ return { exchangeRate: null, maxAge: null };
3204
+ }
3201
3205
  const url = `${"https://v1.route.js.zonos.com"}/api/exchange-rates?sourceCurrency=${sourceCurrency}&targetCurrency=${targetCurrency}&isGuaranteed=${isGuaranteed}&country=${country}}`;
3202
3206
  const { errors, json } = await handleFetch(url);
3203
3207
  if (errors.length || !json) {
3204
3208
  logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
3205
- return null;
3209
+ return { exchangeRate: null, maxAge: null };
3206
3210
  }
3207
- const { rate, targetFormat } = json.exchangeRateCreate;
3211
+ const { maxAge, rate, targetFormat } = json.exchangeRateCreate;
3208
3212
  if (rate) {
3209
3213
  sessionStorage.setItem(country + '_rate', JSON.stringify(rate));
3210
- return { rate, targetFormat };
3214
+ const exchangeRate = { rate, targetFormat };
3215
+ return { exchangeRate, maxAge };
3211
3216
  }
3212
- return null;
3217
+ return { exchangeRate: null, maxAge: null };
3213
3218
  };
3214
3219
 
3215
3220
  const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
@@ -3467,23 +3472,45 @@ const { state: localizationStore } = zonosStore.createStore({
3467
3472
  shippingZoneCountries: null,
3468
3473
  targetCurrency: 'USD',
3469
3474
  });
3475
+ const triggerGetExchangeRate = async (isGuaranteed) => {
3476
+ const { exchangeRate, maxAge } = await getExchangeRate({
3477
+ country: localizationStore.selectedCountryCode,
3478
+ isGuaranteed,
3479
+ sourceCurrency: zonosStore.zonosStore.sourceCurrency,
3480
+ targetCurrency: localizationStore.targetCurrency,
3481
+ });
3482
+ if (exchangeRate) {
3483
+ localizationStore.exchangeRate = exchangeRate;
3484
+ currencyDisplay();
3485
+ }
3486
+ return { maxAge };
3487
+ };
3488
+ // This recursive function is for users who step away from their computer and come back needing a new exchange rate
3489
+ const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
3490
+ if (localizationStore.exchangeRateTimeout) {
3491
+ clearTimeout(localizationStore.exchangeRateTimeout);
3492
+ }
3493
+ // maxAge comes in seconds, convert to milliseconds
3494
+ const defaultMaxAge = 5 * 60;
3495
+ const maxAgeToUse = maxAge || defaultMaxAge;
3496
+ // Recursively set timeouts to get new exchange rates when the current one expires
3497
+ localizationStore.exchangeRateTimeout = setTimeout(async () => {
3498
+ const { maxAge: newMaxAge } = await triggerGetExchangeRate(isGuaranteed);
3499
+ startExchangeRateTimeout({ isGuaranteed, maxAge: newMaxAge });
3500
+ }, maxAgeToUse * 1000);
3501
+ };
3470
3502
  const getNewLocalization = async () => {
3471
3503
  log('get new localization store');
3472
3504
  const { isShippableCountry, selectedCountryCode } = localizationStore;
3473
- const isGuaranteed = zonosStore.zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
3474
3505
  if (zonosStore.zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
3475
3506
  !isShippableCountry ||
3476
3507
  !selectedCountryCode) {
3477
3508
  return;
3478
3509
  }
3479
- localizationStore.exchangeRate = await getExchangeRate({
3480
- country: localizationStore.selectedCountryCode,
3481
- isGuaranteed,
3482
- sourceCurrency: zonosStore.zonosStore.sourceCurrency,
3483
- targetCurrency: localizationStore.targetCurrency,
3484
- });
3485
- if (localizationStore.exchangeRate) {
3486
- currencyDisplay();
3510
+ if (zonosStore.zonosStore.sourceCurrency !== localizationStore.targetCurrency) {
3511
+ const isGuaranteed = zonosStore.zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
3512
+ const { maxAge } = await triggerGetExchangeRate(isGuaranteed);
3513
+ startExchangeRateTimeout({ isGuaranteed, maxAge });
3487
3514
  }
3488
3515
  localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
3489
3516
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-270f79cc.js');
4
- const localization = require('./localization-3a4b4a43.js');
3
+ const zonosStore = require('./zonosStore-a430ec5b.js');
4
+ const localization = require('./localization-d7fe7290.js');
5
5
 
6
6
  const checkoutBreakpoint = 890;
7
7
  const isCheckoutMobile = (isMobile) => {
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const cart = require('./cart-ac9a3c40.js');
7
- const localization = require('./localization-3a4b4a43.js');
8
- require('./zonosStore-270f79cc.js');
9
- require('./isDarkColor-0651a165.js');
10
- require('./getBorderRadius-1f9c0fa3.js');
6
+ const cart = require('./cart-d4b52ae8.js');
7
+ const localization = require('./localization-d7fe7290.js');
8
+ require('./zonosStore-a430ec5b.js');
9
+ require('./isDarkColor-f3446afd.js');
10
+ require('./getBorderRadius-fdd605c6.js');
11
11
 
12
12
  const zonosAddressCss = ".sc-zonos-address-h{font-family:Inter;display:block}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
13
13
 
@@ -39,6 +39,11 @@ const ZonosAddress = class {
39
39
  ? Object.values(shippableCountries).map(country => country.code)
40
40
  : [],
41
41
  contacts: this.defaultAddress ? [this.defaultAddress] : undefined,
42
+ defaultValues: {
43
+ address: {
44
+ country: localization.localizationStore.selectedCountryCode || 'AL',
45
+ },
46
+ },
42
47
  display: {
43
48
  name: 'split',
44
49
  },
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const zonosStore = require('./zonosStore-270f79cc.js');
6
+ const zonosStore = require('./zonosStore-a430ec5b.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-1f9c0fa3.js');
8
+ const getBorderRadius = require('./getBorderRadius-fdd605c6.js');
9
9
  const isColorVariable = require('./isColorVariable-c1ed7303.js');
10
- const isDarkColor = require('./isDarkColor-0651a165.js');
10
+ const isDarkColor = require('./isDarkColor-f3446afd.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const cart = require('./cart-ac9a3c40.js');
7
- const localization = require('./localization-3a4b4a43.js');
8
- const getBorderRadius = require('./getBorderRadius-1f9c0fa3.js');
9
- const submitGtag = require('./submitGtag-9e873a0a.js');
6
+ const cart = require('./cart-d4b52ae8.js');
7
+ const localization = require('./localization-d7fe7290.js');
8
+ const getBorderRadius = require('./getBorderRadius-fdd605c6.js');
9
+ const submitGtag = require('./submitGtag-d65003f9.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
- const zonosStore = require('./zonosStore-270f79cc.js');
12
- require('./isDarkColor-0651a165.js');
11
+ const zonosStore = require('./zonosStore-a430ec5b.js');
12
+ require('./isDarkColor-f3446afd.js');
13
13
 
14
14
  const formatCurrency = ({ amount, currency, showCurrencyText, }) => showCurrencyText
15
15
  ? `${new Intl.NumberFormat('en-US', {
@@ -54,7 +54,7 @@ const InfoIcon = `<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org
54
54
  </svg>
55
55
  `;
56
56
 
57
- const zonosCartSubtotalCss = ":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-subtotal-price{text-align:right}";
57
+ const zonosCartSubtotalCss = ":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";
58
58
 
59
59
  const ZonosCartSubtotal = class {
60
60
  constructor(hostRef) {
@@ -62,6 +62,7 @@ const ZonosCartSubtotal = class {
62
62
  }
63
63
  render() {
64
64
  const totalWithoutTaxes = cart.cartStore.total - cart.cartStore.dutiesTaxFees;
65
+ const showDutyTaxesInfo = cart.cartStore.step === 'payment' || cart.cartStore.step === 'shipping';
65
66
  const renderShippingInfo = () => {
66
67
  if (!cart.cartStore.selectedShippingOption) {
67
68
  return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, localization.translate('Shipping')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, localization.translate('No shipping method selected'))));
@@ -76,12 +77,12 @@ const ZonosCartSubtotal = class {
76
77
  amount: cart.cartStore.shipping,
77
78
  currency: cart.cartStore.currency,
78
79
  })
79
- : '-')), cart.cartStore.step === 'payment' && (index.h("tr", { class: "zonos--row zonos--cart-duties" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("div", { class: "zonos--title-with-icon" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, localization.translate('Duties, taxes, and fees')), index.h("zonos-icon", { content: InfoIcon, size: 16 })), !!cart.cartStore.isSelectedShippingAboveDeminimis && (index.h("zonos-text", { color: "gray-800", type: "body" }, localization.translate('Order is over the de minimis threshold for both duty and tax')))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cart.cartStore.dutiesTaxFees
80
+ : '-')), showDutyTaxesInfo && (index.h("tr", { class: "zonos--row zonos--cart-duties" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("div", { class: "zonos--title-with-icon" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, localization.translate('Duties, taxes, and fees')), index.h("zonos-icon", { content: InfoIcon, size: 16 })), !!cart.cartStore.isSelectedShippingAboveDeminimis && (index.h("zonos-text", { color: "gray-800", type: "body" }, localization.translate('Order is over the de minimis threshold for both duty and tax')))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxFees
80
81
  ? formatCurrency({
81
82
  amount: cart.cartStore.dutiesTaxFees,
82
83
  currency: cart.cartStore.currency,
83
84
  })
84
- : '-', cart.cartStore.isSelectedShippingGuarantee && (index.h("zonos-badge", null, localization.translate('Guaranteed')))))), index.h("tr", { class: "zonos--row zonos--cart-pay-total" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, localization.translate('Order total'))), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
85
+ : '-', cart.cartStore.isSelectedShippingGuarantee && (index.h("zonos-badge", null, localization.translate('Guaranteed'))))))), index.h("tr", { class: "zonos--row zonos--cart-pay-total" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, localization.translate('Order total'))), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
85
86
  amount:
86
87
  // show total without taxes when step is shipping, show total with taxes when step is payment
87
88
  cart.cartStore.step === 'shipping'
@@ -164,7 +165,7 @@ const ZonosCheckoutFinish = class {
164
165
  };
165
166
  ZonosCheckoutFinish.style = zonosCheckoutFinishCss;
166
167
 
167
- const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:Inter;display:block}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:0 5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{width:100%}";
168
+ const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:Inter;display:block}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:calc(100% - 10px)}";
168
169
 
169
170
  const ZonosCheckoutPayment = class {
170
171
  constructor(hostRef) {
@@ -194,12 +195,12 @@ const ZonosCheckoutPayment = class {
194
195
  return null;
195
196
  }
196
197
  this.disabled = !((_a = cart.stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
197
- return (index.h(index.Host, { class: "zonos--checkout-payment zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), this.paymentError && (index.h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, localization.translate("We couldn't complete your payment. Please verify the payment details and try again."))), index.h("zonos-payment", null)), index.h("zonos-button", { backgroundColor: this.submitBtnColor, "is-disabled": this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
198
+ return (index.h(index.Host, { class: "zonos--checkout-payment zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), this.paymentError && (index.h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, localization.translate("We couldn't complete your payment. Please verify the payment details and try again."))), index.h("zonos-payment", null)), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, "is-disabled": this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
198
199
  // use primary type when on mobile mode
199
200
  variant: this.submitBtnType }, "Pay", ' ', formatCurrency({
200
201
  amount: cart.cartStore.total,
201
202
  currency: cart.cartStore.currency,
202
- }))));
203
+ })))));
203
204
  }
204
205
  static get watchers() { return {
205
206
  "disabled": ["watchFormComplete"]
@@ -240,7 +241,7 @@ const ZonosCollapse = class {
240
241
  };
241
242
  ZonosCollapse.style = zonosCollapseCss;
242
243
 
243
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:Inter;display:block}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{width:100%}";
244
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:Inter;display:block}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:calc(100% - 10px)}";
244
245
 
245
246
  const ZonosCustomerInfo = class {
246
247
  constructor(hostRef) {
@@ -273,9 +274,9 @@ const ZonosCustomerInfo = class {
273
274
  this.disabled =
274
275
  !((_a = cart.stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) ||
275
276
  !((_b = cart.stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
276
- return (index.h(index.Host, { class: "zonos--customer-info zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), index.h("zonos-link-authentication", { titleText: localization.translate('Contact') }), index.h("zonos-address", { defaultAddress: this.defaultAddress, titleText: localization.translate('Address'), type: "shipping" })), index.h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
277
+ return (index.h(index.Host, { class: "zonos--customer-info zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), index.h("zonos-link-authentication", { titleText: localization.translate('Contact') }), index.h("zonos-address", { defaultAddress: this.defaultAddress, titleText: localization.translate('Address'), type: "shipping" })), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
277
278
  // use primary type when on mobile mode
278
- variant: this.submitBtnType }, localization.translate('Continue to shipping'))));
279
+ variant: this.submitBtnType }, localization.translate('Continue to shipping')))));
279
280
  }
280
281
  static get watchers() { return {
281
282
  "disabled": ["watchFormComplete"]
@@ -425,7 +426,7 @@ const ZonosReview = class {
425
426
  };
426
427
  ZonosReview.style = zonosReviewCss;
427
428
 
428
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:Inter;display:block}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding-right:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
429
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:Inter;display:block}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:calc(100% - 10px)}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
429
430
 
430
431
  const ZonosShipping = class {
431
432
  constructor(hostRef) {
@@ -467,9 +468,8 @@ const ZonosShipping = class {
467
468
  }
468
469
  }
469
470
  render() {
470
- var _a, _b;
471
- const shipToCountry = (_a = cart.stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
472
- const serviceLevels = (_b = cart.cartStore.shippingData) === null || _b === void 0 ? void 0 : _b.flatMap((item) => {
471
+ var _a;
472
+ const serviceLevels = (_a = cart.cartStore.shippingData) === null || _a === void 0 ? void 0 : _a.flatMap((item) => {
473
473
  var _a, _b;
474
474
  const { expectedDate, maxTransit, minTransit } = cart.cartStoreGetShippingTransitInfo(item);
475
475
  const sublabel = expectedDate
@@ -490,7 +490,7 @@ const ZonosShipping = class {
490
490
  value: item.id,
491
491
  };
492
492
  });
493
- return (index.h(index.Host, { class: "zonos--shipping zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Shipping information')), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (index.h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (index.h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) })), cart.cartStore.isSelectedShippingAboveDeminimis && (index.h("zonos-banner", { intent: "warning" }, localization.translate('Above de minimis threshold for'), " ", shipToCountry, ".", ' ', localization.translate('Duties and taxes will be applied to items and shipping.')))), index.h("zonos-button", { backgroundColor: this.submitBtnColor, "is-disabled": this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
493
+ return (index.h(index.Host, { class: "zonos--shipping zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Shipping information')), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (index.h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (index.h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) }))), index.h("zonos-button", { backgroundColor: this.submitBtnColor, "is-disabled": this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
494
494
  // use primary type when on mobile mode
495
495
  variant: this.submitBtnType }, localization.translate('Go to payment'))));
496
496
  }
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const cart = require('./cart-ac9a3c40.js');
7
- const localization = require('./localization-3a4b4a43.js');
8
- const zonosStore = require('./zonosStore-270f79cc.js');
9
- const submitGtag = require('./submitGtag-9e873a0a.js');
6
+ const cart = require('./cart-d4b52ae8.js');
7
+ const localization = require('./localization-d7fe7290.js');
8
+ const zonosStore = require('./zonosStore-a430ec5b.js');
9
+ const submitGtag = require('./submitGtag-d65003f9.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
- const getBorderRadius = require('./getBorderRadius-1f9c0fa3.js');
12
- const isDarkColor = require('./isDarkColor-0651a165.js');
11
+ const getBorderRadius = require('./getBorderRadius-fdd605c6.js');
12
+ const isDarkColor = require('./isDarkColor-f3446afd.js');
13
13
 
14
14
  const LeftArrow = `<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
15
15
 
@@ -20,7 +20,7 @@ const MessageIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
20
20
 
21
21
  const RemoveIcon = `<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
22
22
 
23
- const zonosCheckoutCss = ".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-32);top:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";
23
+ const zonosCheckoutCss = ".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-24);top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";
24
24
 
25
25
  const ZonosCheckout = class {
26
26
  constructor(hostRef) {
@@ -42,7 +42,7 @@ const ZonosCheckout = class {
42
42
  // if localization is loaded and the localization is not a shippable country, keep the original click event
43
43
  if (!localization.localizationStore.isShippableCountry) {
44
44
  if (showLog) {
45
- localization.log(`not shippable country`);
45
+ localization.log(`Checkout: not shippable country`);
46
46
  }
47
47
  return false;
48
48
  }
@@ -183,7 +183,8 @@ const ZonosCheckout = class {
183
183
  // show the selector when it's domestic
184
184
  selector === null || selector === void 0 ? void 0 : selector.forEach(el => {
185
185
  const element = el;
186
- const display = element.getAttribute('data-zonos-checkout-original-display');
186
+ const display = element.getAttribute('data-zonos-checkout-original-display') ||
187
+ getComputedStyle(element).display;
187
188
  // fallback to initial (browser value) if "display" is not found
188
189
  element.style.display = display || 'initial';
189
190
  });
@@ -357,7 +358,13 @@ const ZonosCheckout = class {
357
358
  '--border-radius': getBorderRadius.getBorderRadius(style),
358
359
  } }, cart.cartStore.step !== 'finish' && cart.cartStore.step !== 'error' && (index.h(index.Fragment, null, index.h("div", { class: "zonos--left", "data-theme": leftSideTheme, style: {
359
360
  '--primary-color': !this.isMobile ? colorPrimary : '',
360
- } }, !this.isMobile && renderTopHeader(), cart.cartStore.step === 'customer-info' && (index.h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor, submitBtnType: submitBtnType })), cart.cartStore.step === 'shipping' && (index.h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor, submitBtnType: submitBtnType })), cart.cartStore.step === 'payment' && (index.h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleCheckoutPaymentContinue(), paymentError: this.paymentError, submitBtnColor: submitButtonColor, submitBtnType: submitBtnType }))), index.h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), !this.isMobile && (index.h("zonos-button", { class: "zonos--close-button", icon: index.h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() })), index.h("div", { class: "flex--wrapper" }, index.h("div", { class: "zonos--wrapper" }, index.h("zonos-collapse", { collapseSize: reviewElementSize, collapsed: this.collapseReviewMobile }, index.h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
361
+ } }, !this.isMobile && renderTopHeader(), cart.cartStore.step === 'customer-info' && (index.h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor, submitBtnType: submitBtnType })), cart.cartStore.step === 'shipping' && (index.h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor, submitBtnType: submitBtnType })), cart.cartStore.step === 'payment' && (index.h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleCheckoutPaymentContinue(), paymentError: this.paymentError, submitBtnColor: submitButtonColor, submitBtnType: submitBtnType }))), index.h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), !this.isMobile && (index.h("zonos-button", { class: "zonos--close-button", icon: index.h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() })), index.h("div", { class: "flex--wrapper" }, index.h("div", { class: "zonos--wrapper" }, index.h("zonos-collapse", { collapseSize: reviewElementSize,
362
+ // only collapse on mobile
363
+ collapsed: this.collapseReviewMobile && this.isMobile }, index.h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
364
+ // do nothing if it's not mobile
365
+ if (!this.isMobile) {
366
+ return;
367
+ }
361
368
  this.collapseReviewMobile =
362
369
  !this.collapseReviewMobile;
363
370
  }, ref: el => (this.zonosReviewRef = el) }), index.h("zonos-cart-items", null))), index.h("zonos-v-stack", { spacing: 16 }, index.h("zonos-cart-subtotal", null), index.h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))), !this.isMobile && renderFooter()), this.isMobile && renderFooter())), (cart.cartStore.step === 'finish' || cart.cartStore.step === 'error') && (index.h("div", { class: "zonos--done", "data-theme": rightSideTheme }, index.h("div", { class: "zonos--header" }, renderLogo(), index.h("zonos-button", { class: "zonos--close-button", icon: index.h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme })), index.h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cart.cartStore.step === 'error' && !!cart.cartStore.error
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const cart = require('./cart-ac9a3c40.js');
7
- const localization = require('./localization-3a4b4a43.js');
8
- const zonosStore = require('./zonosStore-270f79cc.js');
9
- require('./isDarkColor-0651a165.js');
10
- require('./getBorderRadius-1f9c0fa3.js');
6
+ const cart = require('./cart-d4b52ae8.js');
7
+ const localization = require('./localization-d7fe7290.js');
8
+ const zonosStore = require('./zonosStore-a430ec5b.js');
9
+ require('./isDarkColor-f3446afd.js');
10
+ require('./getBorderRadius-fdd605c6.js');
11
11
 
12
12
  const getZonosSetting = async () => {
13
13
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-setting`;
@@ -121,11 +121,20 @@ const ZonosController = class {
121
121
  localization.log('Checkout failed to load -- missing publishable key', 'warn');
122
122
  return;
123
123
  }
124
+ if (zonosStore.zonosStore.checkoutSettings.subscriptionStatus === 'INACTIVE') {
125
+ localization.log('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===', 'warn');
126
+ localization.log('zonos controller loaded');
127
+ return;
128
+ }
129
+ if (zonosStore.zonosStore.checkoutSettings.visibilityStatus === 'DISABLED') {
130
+ localization.log('=== Checkout is disabled by store owner ===', 'warn');
131
+ localization.log('zonos controller loaded');
132
+ return;
133
+ }
124
134
  // send publishable key out to load stripe
125
135
  this.stripeInitEvent.emit({
126
136
  publishableKey: publishableKey.token,
127
137
  });
128
- // eslint-disable-next-line no-console
129
138
  localization.log('zonos controller loaded');
130
139
  })();
131
140
  }
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const localization = require('./localization-3a4b4a43.js');
6
+ const localization = require('./localization-d7fe7290.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const isDarkColor = require('./isDarkColor-0651a165.js');
9
- require('./zonosStore-270f79cc.js');
8
+ const isDarkColor = require('./isDarkColor-f3446afd.js');
9
+ require('./zonosStore-a430ec5b.js');
10
10
 
11
11
  const zonosCountryFlagCss = ":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
12
12
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9542d2e7.js');
6
- const localization = require('./localization-3a4b4a43.js');
7
- const zonosStore = require('./zonosStore-270f79cc.js');
6
+ const localization = require('./localization-d7fe7290.js');
7
+ const zonosStore = require('./zonosStore-a430ec5b.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-2855491b.js');
10
10
 
@@ -82,18 +82,26 @@ const ZonosHelloDialog = class {
82
82
  const { countryLandedCost, selectedCountryCode } = localization.localizationStore;
83
83
  // Our Robby API spells deminimis wrong here
84
84
  const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
85
- ? localization.currencyConvertAndFormat(countryLandedCost.dutyDeminimus)
85
+ ? localization.currencyFormat(countryLandedCost.dutyDeminimus)
86
86
  : null;
87
+ // If Canada, use 40 CAD (courier duty de minimis)
88
+ const dutyDeminimisToUse = localization.localizationStore.selectedCountryCode === 'CA'
89
+ ? localization.currencyFormat(40)
90
+ : dutyDeminimis;
87
91
  // If deminimis is undefined or null, assume it's $0
88
- const dutyDeMinimisMessage = dutyDeminimis
89
- ? `${localization.translate('Spend')} ${dutyDeminimis} ${localization.translate('duty free')}`
92
+ const dutyDeMinimisMessage = dutyDeminimisToUse
93
+ ? `${localization.translate('Spend')} ${dutyDeminimisToUse} ${localization.translate('duty free')}`
90
94
  : localization.translate('Duties will apply to all orders');
91
95
  // Our Robby API spells deminimis wrong here
92
96
  const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
93
- ? localization.currencyConvertAndFormat(countryLandedCost.vatTaxDeminimus)
97
+ ? localization.currencyFormat(countryLandedCost.vatTaxDeminimus)
94
98
  : null;
95
- const taxDeMinimisMessage = taxDeminimis
96
- ? `${localization.translate('Spend')} ${taxDeminimis} ${localization.translate('tax free')}`
99
+ // If Canada, use 150 CAD (courier tax de minimis)
100
+ const taxDeminimisToUse = localization.localizationStore.selectedCountryCode === 'CA'
101
+ ? localization.currencyFormat(150)
102
+ : taxDeminimis;
103
+ const taxDeMinimisMessage = taxDeminimisToUse
104
+ ? `${localization.translate('Spend')} ${taxDeminimisToUse} ${localization.translate('tax free')}`
97
105
  : localization.translate('Taxes will apply to all orders');
98
106
  const animateLeft = this.animateFromLeftOverride ||
99
107
  (this.dialogRef && getHasMoreSpaceOnRight.getHasMoreSpaceOnRight(this.dialogRef));