@zonos/elements 1.3.6 → 1.3.7-alpha.0

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 (188) hide show
  1. package/dist/cjs/{localization-2c9f5765.js → cart-ecc80eb0.js} +721 -2
  2. package/dist/cjs/{getBorderRadius-b252096d.js → getBorderRadius-834c321d.js} +1 -1
  3. package/dist/cjs/{isDarkColor-168002d6.js → isDarkColor-924e6a7a.js} +1 -1
  4. package/dist/cjs/{submitGtag-792fe45d.js → submitGtag-907e71d3.js} +3 -3
  5. package/dist/cjs/zonos-address_4.cjs.entry.js +22 -10
  6. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  7. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -5
  10. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +39 -31
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -21
  12. package/dist/cjs/zonos-controller.cjs.entry.js +27 -28
  13. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -3
  14. package/dist/cjs/zonos-country-select_3.cjs.entry.js +9 -8
  15. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +18 -16
  16. package/dist/cjs/zonos-hello.cjs.entry.js +34 -32
  17. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  18. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-payment.cjs.entry.js +4 -5
  20. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  23. package/dist/cjs/{zonosStore-5d94dabb.js → zonosStore-49d4c92a.js} +4 -4
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +9 -4
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +2 -1
  26. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +15 -2
  27. package/dist/collection/components/store/checkout/stripe.js +3 -0
  28. package/dist/collection/components/store/hello/localization.js +27 -1
  29. package/dist/collection/components/store/zonosStore.js +4 -4
  30. package/dist/collection/types/generated/graphql.customer.types.js +6 -0
  31. package/dist/components/stripe.js +4040 -2
  32. package/dist/components/submitGtag.js +1 -1
  33. package/dist/components/zonos-address2.js +1 -2
  34. package/dist/components/zonos-cart-subtotal2.js +1 -2
  35. package/dist/components/zonos-checkout-finish2.js +14 -6
  36. package/dist/components/zonos-checkout-footer2.js +1 -1
  37. package/dist/components/zonos-checkout-payment2.js +1 -2
  38. package/dist/components/zonos-checkout.js +1 -2
  39. package/dist/components/zonos-collapse2.js +15 -2
  40. package/dist/components/zonos-controller.js +1 -2
  41. package/dist/components/zonos-country-flag2.js +1 -1
  42. package/dist/components/zonos-country-select2.js +1 -1
  43. package/dist/components/zonos-customer-info2.js +2 -3
  44. package/dist/components/zonos-hello-dialog-footer2.js +1 -1
  45. package/dist/components/zonos-hello-dialog2.js +1 -1
  46. package/dist/components/zonos-hello.js +1 -1
  47. package/dist/components/zonos-language-select2.js +1 -1
  48. package/dist/components/zonos-review2.js +1 -2
  49. package/dist/components/zonos-shipping2.js +1 -2
  50. package/dist/components/zonosStore.js +4 -4
  51. package/dist/esm/{localization-d8f6453b.js → cart-2a0a6871.js} +707 -3
  52. package/dist/esm/{getBorderRadius-e9736f7e.js → getBorderRadius-0c7dfcf0.js} +1 -1
  53. package/dist/esm/{isDarkColor-e982fa09.js → isDarkColor-d0a57fd2.js} +1 -1
  54. package/dist/esm/{submitGtag-bebe2cb0.js → submitGtag-a38aed23.js} +2 -2
  55. package/dist/esm/zonos-address_4.entry.js +19 -7
  56. package/dist/esm/zonos-badge_2.entry.js +1 -1
  57. package/dist/esm/zonos-banner.entry.js +1 -1
  58. package/dist/esm/zonos-button_3.entry.js +3 -3
  59. package/dist/esm/zonos-card_2.entry.js +4 -2
  60. package/dist/esm/zonos-cart-items_9.entry.js +19 -11
  61. package/dist/esm/zonos-checkout.entry.js +5 -6
  62. package/dist/esm/zonos-controller.entry.js +4 -5
  63. package/dist/esm/zonos-country-flag.entry.js +4 -2
  64. package/dist/esm/zonos-country-select_3.entry.js +4 -3
  65. package/dist/esm/zonos-hello-dialog.entry.js +4 -2
  66. package/dist/esm/zonos-hello.entry.js +4 -2
  67. package/dist/esm/zonos-logo.entry.js +1 -1
  68. package/dist/esm/zonos-notification.entry.js +1 -1
  69. package/dist/esm/zonos-payment.entry.js +4 -5
  70. package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
  71. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  72. package/dist/esm/zonos-text.entry.js +1 -1
  73. package/dist/esm/{zonosStore-e6c7be3a.js → zonosStore-dec6bd7e.js} +4 -4
  74. package/dist/esm-es5/cart-2a0a6871.js +1 -0
  75. package/dist/esm-es5/{getBorderRadius-e9736f7e.js → getBorderRadius-0c7dfcf0.js} +1 -1
  76. package/dist/esm-es5/{isDarkColor-e982fa09.js → isDarkColor-d0a57fd2.js} +1 -1
  77. package/dist/esm-es5/submitGtag-a38aed23.js +1 -0
  78. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  79. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  80. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  81. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  82. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  83. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  84. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  85. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  86. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  87. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  88. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  89. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  90. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  91. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  92. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  93. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  94. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  95. package/dist/esm-es5/zonos-text.entry.js +1 -1
  96. package/dist/esm-es5/{zonosStore-e6c7be3a.js → zonosStore-dec6bd7e.js} +1 -1
  97. package/dist/scripts/loadZonos.js +1 -1
  98. package/dist/scripts/zonos.js +1 -1
  99. package/dist/scripts/zonosBase.js +1 -1
  100. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  101. package/dist/types/components/store/zonosStore.d.ts +1 -1
  102. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  103. package/dist/types/components/utils/hello/currencyConversion/getLanguageCode.d.ts +1 -1
  104. package/dist/types/types/ICountryJson.d.ts +2 -1
  105. package/dist/types/types/generated/graphql.customer.types.d.ts +15 -0
  106. package/dist/types/types/generated/graphql.customer.types.ts +24 -0
  107. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  108. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  109. package/dist/zonos-elements/p-0057e374.entry.js +1 -0
  110. package/dist/zonos-elements/p-066c5893.system.js +1 -1
  111. package/dist/zonos-elements/p-0c72fb79.system.entry.js +1 -0
  112. package/dist/zonos-elements/p-1f85a98c.system.entry.js +1 -0
  113. package/dist/zonos-elements/{p-96aabe02.entry.js → p-290c3670.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-e8a9bc56.entry.js → p-2d2e1831.entry.js} +1 -1
  115. package/dist/zonos-elements/p-2f1e1cbb.system.entry.js +1 -0
  116. package/dist/zonos-elements/{p-a682fd38.system.entry.js → p-33080cde.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-17550a10.js → p-34c03be2.js} +1 -1
  118. package/dist/zonos-elements/{p-a33745e9.entry.js → p-34efed1d.entry.js} +1 -1
  119. package/dist/zonos-elements/p-375c472a.system.entry.js +1 -0
  120. package/dist/zonos-elements/{p-fcc4f140.system.js → p-549c181b.system.js} +1 -1
  121. package/dist/zonos-elements/{p-32bca9c8.system.entry.js → p-55970b10.system.entry.js} +1 -1
  122. package/dist/zonos-elements/p-561e44d6.entry.js +1 -0
  123. package/dist/zonos-elements/{p-50287643.system.js → p-591eb6dd.system.js} +1 -1
  124. package/dist/zonos-elements/p-5b44abc8.system.js +1 -0
  125. package/dist/zonos-elements/p-5c4dc123.js +1 -0
  126. package/dist/zonos-elements/{p-ec25f180.entry.js → p-656c836b.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-49a764e9.system.entry.js → p-67737613.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-dd7729fd.system.entry.js → p-79b910bf.system.entry.js} +1 -1
  129. package/dist/zonos-elements/p-7d1d862f.system.entry.js +1 -0
  130. package/dist/zonos-elements/{p-5a113c3d.system.entry.js → p-88a55076.system.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-7dd8e8ba.system.entry.js → p-8aeb4679.system.entry.js} +1 -1
  132. package/dist/zonos-elements/p-8d645a00.entry.js +1 -0
  133. package/dist/zonos-elements/p-9878a770.js +1 -0
  134. package/dist/zonos-elements/p-a219689f.entry.js +1 -0
  135. package/dist/zonos-elements/p-a3d72a33.entry.js +1 -0
  136. package/dist/zonos-elements/p-a93c594f.entry.js +1 -0
  137. package/dist/zonos-elements/{p-0c7480a5.entry.js → p-a95c034c.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-7a6144b1.entry.js → p-afe40057.entry.js} +1 -1
  139. package/dist/zonos-elements/p-b10ff468.entry.js +1 -0
  140. package/dist/zonos-elements/p-b6992dc2.system.entry.js +1 -0
  141. package/dist/zonos-elements/{p-3ef27745.js → p-bce46c41.js} +1 -1
  142. package/dist/zonos-elements/p-c56d4a44.entry.js +1 -0
  143. package/dist/zonos-elements/{p-bd6a2095.entry.js → p-c7098c3b.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-f49dfd06.system.js → p-cbb1e700.system.js} +1 -1
  145. package/dist/zonos-elements/p-cc63a29f.system.entry.js +1 -0
  146. package/dist/zonos-elements/p-cd8bd5e9.system.entry.js +1 -0
  147. package/dist/zonos-elements/p-d36faf87.system.entry.js +1 -0
  148. package/dist/zonos-elements/p-dfd3edcf.entry.js +1 -0
  149. package/dist/zonos-elements/{p-ba43275e.entry.js → p-e161a08c.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-9cbbf261.system.entry.js → p-e2770968.system.entry.js} +1 -1
  151. package/dist/zonos-elements/p-e2c6ad57.entry.js +1 -0
  152. package/dist/zonos-elements/{p-b81a0577.system.entry.js → p-e855966f.system.entry.js} +1 -1
  153. package/dist/zonos-elements/p-ea93943a.system.entry.js +1 -0
  154. package/dist/zonos-elements/{p-e99d79d9.system.js → p-ec4d08b3.system.js} +1 -1
  155. package/dist/zonos-elements/{p-47fac33f.js → p-f455e08c.js} +1 -1
  156. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  157. package/package.json +1 -1
  158. package/dist/cjs/cart-b8bbf22d.js +0 -698
  159. package/dist/components/localization.js +0 -4016
  160. package/dist/esm/cart-bc3bb22e.js +0 -682
  161. package/dist/esm-es5/cart-bc3bb22e.js +0 -1
  162. package/dist/esm-es5/localization-d8f6453b.js +0 -1
  163. package/dist/esm-es5/submitGtag-bebe2cb0.js +0 -1
  164. package/dist/zonos-elements/p-00d63df1.system.entry.js +0 -1
  165. package/dist/zonos-elements/p-04f63cea.entry.js +0 -1
  166. package/dist/zonos-elements/p-16b74c31.system.js +0 -1
  167. package/dist/zonos-elements/p-1d16a6fb.js +0 -1
  168. package/dist/zonos-elements/p-1ea68e3b.entry.js +0 -1
  169. package/dist/zonos-elements/p-1ed530cc.entry.js +0 -1
  170. package/dist/zonos-elements/p-289c8b1a.system.entry.js +0 -1
  171. package/dist/zonos-elements/p-2a00c270.system.entry.js +0 -1
  172. package/dist/zonos-elements/p-37f53a79.entry.js +0 -1
  173. package/dist/zonos-elements/p-394cf1cf.js +0 -1
  174. package/dist/zonos-elements/p-458fd100.system.entry.js +0 -1
  175. package/dist/zonos-elements/p-4fafb2a5.system.entry.js +0 -1
  176. package/dist/zonos-elements/p-4fb71a93.js +0 -1
  177. package/dist/zonos-elements/p-5276c61b.system.entry.js +0 -1
  178. package/dist/zonos-elements/p-6308b347.entry.js +0 -1
  179. package/dist/zonos-elements/p-63d1b1fe.entry.js +0 -1
  180. package/dist/zonos-elements/p-7347ee7c.system.entry.js +0 -1
  181. package/dist/zonos-elements/p-8c26a080.system.js +0 -1
  182. package/dist/zonos-elements/p-ba1a111a.system.entry.js +0 -1
  183. package/dist/zonos-elements/p-c4321084.system.entry.js +0 -1
  184. package/dist/zonos-elements/p-cdf114a2.entry.js +0 -1
  185. package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +0 -1
  186. package/dist/zonos-elements/p-d5d7c8f5.entry.js +0 -1
  187. package/dist/zonos-elements/p-de339fb6.entry.js +0 -1
  188. package/dist/zonos-elements/p-f6f5f644.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-5d94dabb.js');
3
+ const zonosStore = require('./zonosStore-49d4c92a.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-5d94dabb.js');
3
+ const zonosStore = require('./zonosStore-49d4c92a.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-5d94dabb.js');
4
- const localization = require('./localization-2c9f5765.js');
3
+ const zonosStore = require('./zonosStore-49d4c92a.js');
4
+ const cart = require('./cart-ecc80eb0.js');
5
5
 
6
6
  /**
7
7
  * Submit a gtag event if the gtag function is available.
@@ -13,7 +13,7 @@ const submitGtag = (event) => {
13
13
  return;
14
14
  }
15
15
  if (typeof window.gtag === 'function') {
16
- localization.log('Zonos submits gtag event', 'log', event);
16
+ cart.log('Zonos submits gtag event', 'log', event);
17
17
  window.gtag('event', event, {});
18
18
  }
19
19
  };
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const cart = require('./cart-b8bbf22d.js');
7
- const localization = require('./localization-2c9f5765.js');
6
+ const cart = require('./cart-ecc80eb0.js');
8
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
9
- const zonosStore = require('./zonosStore-5d94dabb.js');
8
+ const zonosStore = require('./zonosStore-49d4c92a.js');
10
9
  const classes = require('./classes-b7918f56.js');
11
- const getBorderRadius = require('./getBorderRadius-b252096d.js');
12
- const isDarkColor = require('./isDarkColor-168002d6.js');
10
+ const getBorderRadius = require('./getBorderRadius-834c321d.js');
11
+ const isDarkColor = require('./isDarkColor-924e6a7a.js');
13
12
 
14
13
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.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)}";
15
14
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -61,7 +60,7 @@ const ZonosAddress = class {
61
60
  this.stripe = window.Zonos.stripe;
62
61
  const { stripeAddressEventData, stripeElements } = this.getStripeAddressInstance();
63
62
  if (!this.stripe || !stripeElements) {
64
- localization.logError("Stripe is not initialized. Couldn't load stripe element.");
63
+ cart.logError("Stripe is not initialized. Couldn't load stripe element.");
65
64
  return;
66
65
  }
67
66
  const phone = (_a = this.defaultAddress) === null || _a === void 0 ? void 0 : _a.phone;
@@ -70,7 +69,7 @@ const ZonosAddress = class {
70
69
  // will throw error if key phone exist and its value is empty or 'undefined'.
71
70
  (_b = this.defaultAddress) === null || _b === void 0 ? true : delete _b.phone;
72
71
  }
73
- const shippableCountries = localization.localizationStore.shippingZoneCountries;
72
+ const shippableCountries = cart.localizationStore.shippingZoneCountries;
74
73
  const shippingZone = shippableCountries
75
74
  ? Object.values(shippableCountries).map(country => country.code)
76
75
  : [];
@@ -79,7 +78,7 @@ const ZonosAddress = class {
79
78
  contacts: this.defaultAddress ? [this.defaultAddress] : [],
80
79
  defaultValues: {
81
80
  address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
82
- localization.localizationStore.selectedCountryCode ||
81
+ cart.localizationStore.selectedCountryCode ||
83
82
  'AL' }),
84
83
  firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
85
84
  lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
@@ -229,10 +228,23 @@ const ZonosCollapse = class {
229
228
  }
230
229
  render() {
231
230
  this.height = this.el.scrollHeight;
232
- return (index.h(index.Host, { key: '372c80d0d5b8d2c693b2c74bd6652430c8e4a5bb', class: 'zonos--elements zonos--collapse', style: {
231
+ if (!this.collapsed) {
232
+ // wait for the collapse animation to finish, then set overflow to visible
233
+ setTimeout(() => {
234
+ // if the element collapsed state is still not changed, set overflow to visible
235
+ if (!this.collapsed) {
236
+ this.el.style.overflow = 'visible';
237
+ }
238
+ }, 300);
239
+ }
240
+ else {
241
+ // set overflow to hidden to prevent content from showing when collapsed
242
+ this.el.style.overflow = 'hidden';
243
+ }
244
+ return (index.h(index.Host, { key: 'cbec79617b603172a6c3c41d29ee093f61eead92', class: 'zonos--elements zonos--collapse', style: {
233
245
  '--font-family': zonosStore.zonosStoreFontFamily(),
234
246
  height: this.getElementHeight(),
235
- } }, index.h("div", { key: 'babd12279d1ac54092a1cff83e8e5b8ed5e81008' }, index.h("iframe", { key: '6d3a7845d560ba587829ba68033cd92ec8d2af5b', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'f295e17fd3178eb44dc7c0c51f87a80694fd04d7' }))));
247
+ } }, index.h("div", { key: '6e72b98c155ee436bbaabce3d7b58294bb6ccc7a' }, index.h("iframe", { key: 'ef3306219530d635fa320099727a3574d5800285', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'a66b3d6d08a12f0c184a5c4294afdb2c340fe95d' }))));
236
248
  }
237
249
  get el() { return index.getElement(this); }
238
250
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-5d94dabb.js');
6
+ const zonosStore = require('./zonosStore-49d4c92a.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}: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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-5d94dabb.js');
6
+ const zonosStore = require('./zonosStore-49d4c92a.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}: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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-5d94dabb.js');
6
+ const zonosStore = require('./zonosStore-49d4c92a.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-b252096d.js');
8
+ const getBorderRadius = require('./getBorderRadius-834c321d.js');
9
9
  const isColorVariable = require('./isColorVariable-41cacd82.js');
10
- const isDarkColor = require('./isDarkColor-168002d6.js');
10
+ const isDarkColor = require('./isDarkColor-924e6a7a.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -3,10 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-5d94dabb.js');
6
+ const zonosStore = require('./zonosStore-49d4c92a.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const localization = require('./localization-2c9f5765.js');
8
+ const cart = require('./cart-ecc80eb0.js');
9
9
  const ILanguage = require('./ILanguage-d247b45b.js');
10
+ require('./isDarkColor-924e6a7a.js');
11
+ require('./getBorderRadius-834c321d.js');
10
12
 
11
13
  const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}: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 .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
12
14
  const ZonosCardStyle0 = zonosCardCss;
@@ -46,16 +48,16 @@ const ZonosLanguageSelect = class {
46
48
  index.registerInstance(this, hostRef);
47
49
  this.languageSelected = (languageCode) => {
48
50
  // mutate the selected language code in store
49
- void localization.localizationStoreUpdateSelectedLocale(languageCode);
51
+ void cart.localizationStoreUpdateSelectedLocale(languageCode);
50
52
  this.handleOnClose();
51
53
  };
52
54
  this.handleOnClose = () => { };
53
55
  }
54
56
  render() {
55
- const { selectedLocale } = localization.localizationStore;
57
+ const { selectedLocale } = cart.localizationStore;
56
58
  return (index.h(index.Host, { key: 'c90288e341c50d113cc63d09e864ddfa346d55a1', class: "zonos--elements", style: {
57
59
  '--font-family': zonosStore.zonosStoreFontFamily(),
58
- } }, index.h("div", { key: '4dabc3c9ab177e5545942c725490af64cb9608c3', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '95f111f3774a568ea44204858fe503fa7c1915f3', handleOnClose: () => this.handleOnClose(), label: localization.translate('Select a language') }), index.h("div", { key: 'c2634e3b006f3d14c67ee78c0c9befdb21cecc72', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { color: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
60
+ } }, index.h("div", { key: '4dabc3c9ab177e5545942c725490af64cb9608c3', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '95f111f3774a568ea44204858fe503fa7c1915f3', handleOnClose: () => this.handleOnClose(), label: cart.translate('Select a language') }), index.h("div", { key: 'c2634e3b006f3d14c67ee78c0c9befdb21cecc72', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { color: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
59
61
  }
60
62
  };
61
63
  ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const cart = require('./cart-b8bbf22d.js');
7
- const localization = require('./localization-2c9f5765.js');
8
- const zonosStore = require('./zonosStore-5d94dabb.js');
9
- const getBorderRadius = require('./getBorderRadius-b252096d.js');
10
- const submitGtag = require('./submitGtag-792fe45d.js');
6
+ const cart = require('./cart-ecc80eb0.js');
7
+ const zonosStore = require('./zonosStore-49d4c92a.js');
8
+ const getBorderRadius = require('./getBorderRadius-834c321d.js');
9
+ const submitGtag = require('./submitGtag-907e71d3.js');
11
10
  const classes = require('./classes-b7918f56.js');
12
- const isDarkColor = require('./isDarkColor-168002d6.js');
11
+ const isDarkColor = require('./isDarkColor-924e6a7a.js');
13
12
  const ILanguage = require('./ILanguage-d247b45b.js');
14
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
15
14
 
@@ -69,11 +68,11 @@ const ZonosCartSubtotal = class {
69
68
  const showDutyTaxesInfo = cart.cartStore.step === 'payment' || cart.cartStore.step === 'shipping';
70
69
  const renderShippingInfo = () => {
71
70
  if (!cart.cartStore.selectedShippingOption) {
72
- 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'))));
71
+ return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.translate('Shipping')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, cart.translate('No shipping method selected'))));
73
72
  }
74
- return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.cartStore.selectedShippingOption.displayName), cart.cartStore.selectedShippingOptionTransitTime && (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, cart.cartStore.selectedShippingOptionTransitTime, ' ', localization.translate('business days')))));
73
+ return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.cartStore.selectedShippingOption.displayName), cart.cartStore.selectedShippingOptionTransitTime && (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, cart.cartStore.selectedShippingOptionTransitTime, ' ', cart.translate('business days')))));
75
74
  };
76
- return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, localization.translate('Cart subtotal'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
75
+ return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, cart.translate('Cart subtotal'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
77
76
  amount: cart.cartStore.subtotal,
78
77
  currency: cart.cartStore.currency,
79
78
  })))), index.h("tr", { class: "zonos--row zonos--cart-shipping" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cart.cartStore.shipping
@@ -81,12 +80,12 @@ const ZonosCartSubtotal = class {
81
80
  amount: cart.cartStore.shipping,
82
81
  currency: cart.cartStore.currency,
83
82
  })
84
- : '-')), 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-tooltip", { label: localization.translate('Nothing due at the door') }, index.h("zonos-icon", { "aria-label": "Learn more about duties, taxes, and fees", content: InfoIcon, size: 16 }))), !!cart.cartStore.isSelectedShippingAboveDeminimis && (index.h("zonos-text", { textColor: "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
83
+ : '-')), 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" }, cart.translate('Duties, taxes, and fees')), index.h("zonos-tooltip", { label: cart.translate('Nothing due at the door') }, index.h("zonos-icon", { "aria-label": "Learn more about duties, taxes, and fees", content: InfoIcon, size: 16 }))), !!cart.cartStore.isSelectedShippingAboveDeminimis && (index.h("zonos-text", { textColor: "gray-800", type: "body" }, cart.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
85
84
  ? formatCurrency({
86
85
  amount: cart.cartStore.dutiesTaxFees,
87
86
  currency: cart.cartStore.currency,
88
87
  })
89
- : '-', 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({
88
+ : '-', cart.cartStore.isSelectedShippingGuarantee && (index.h("zonos-badge", null, cart.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" }, cart.translate('Order total'))), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
90
89
  amount:
91
90
  // show total without taxes when step is shipping, show total with taxes when step is payment
92
91
  cart.cartStore.step === 'shipping'
@@ -114,7 +113,7 @@ const ZonosCheckoutFinish = class {
114
113
  var _a, _b;
115
114
  const baseUrl = "https://v1.route.js.zonos.com";
116
115
  const checkoutSessionId = cart.cartStore.checkoutSessionId;
117
- const { errors, json } = await localization.handleFetch(`${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`);
116
+ const { errors, json } = await cart.handleFetch(`${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`);
118
117
  if (errors.length || !(json === null || json === void 0 ? void 0 : json.id)) {
119
118
  return null;
120
119
  }
@@ -135,6 +134,11 @@ const ZonosCheckoutFinish = class {
135
134
  case 'CLOSE_MODAL':
136
135
  this.closeClickHandler();
137
136
  break;
137
+ case 'ZONOS_SUCCESS_PAGE':
138
+ default:
139
+ // Do nothing, display Zonos success page
140
+ this.isLoading = false;
141
+ break;
138
142
  }
139
143
  };
140
144
  // TODO: This method of pulling orders is temporary. Once we have a working event registry system, we will rely on that to tell us when the order is ready to trigger onOrderSuccess
@@ -143,7 +147,6 @@ const ZonosCheckoutFinish = class {
143
147
  if (order) {
144
148
  this.order = order;
145
149
  this.handleSuccessBehavior(order.id);
146
- this.isLoading = false;
147
150
  }
148
151
  else if (!order && attempts < 5) {
149
152
  // Wait for 1 second before the next attempt
@@ -162,7 +165,7 @@ const ZonosCheckoutFinish = class {
162
165
  storeId: zonosStore.zonosStore.storeId,
163
166
  },
164
167
  };
165
- void localization.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
168
+ void cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
166
169
  body: errorObject,
167
170
  method: 'POST',
168
171
  });
@@ -179,8 +182,8 @@ const ZonosCheckoutFinish = class {
179
182
  this.notificationType = error ? 'error' : 'success';
180
183
  this.notificationMessages = messages || [];
181
184
  this.notificationTitle = error
182
- ? localization.translate('Payment failed')
183
- : localization.translate("You're all set!");
185
+ ? cart.translate('Payment failed')
186
+ : cart.translate("You're all set!");
184
187
  if (error) {
185
188
  submitGtag.submitGtag('zonos-checkout-payment-fail');
186
189
  }
@@ -195,12 +198,17 @@ const ZonosCheckoutFinish = class {
195
198
  }
196
199
  // Attempt to pull the order details from the graph every second on 5 attempts
197
200
  if (this.notificationType === 'success') {
198
- this.isLoading = true;
199
201
  void this.getPullOrder();
200
202
  }
203
+ else {
204
+ this.isLoading = false;
205
+ }
206
+ }
207
+ else {
208
+ this.isLoading = false;
201
209
  }
202
210
  cart.stripeStoreReset();
203
- this.isLoading = false;
211
+ cart.cartStore.checkoutSessionId = null;
204
212
  };
205
213
  this.closeClickHandler = () => {
206
214
  this.closeClick.emit();
@@ -233,9 +241,9 @@ const ZonosCheckoutFinish = class {
233
241
  // const totalItems = this.order?.items?.reduce((acc, item) => {
234
242
  // return acc + item.quantity;
235
243
  // }, 0);
236
- return (index.h(index.Host, { key: '9a09eb68e5e6d256f72798bb5119ad1ff467fd70', class: "zonos--checkout-finish zonos--elements", style: {
244
+ return (index.h(index.Host, { key: '08886ec74e789091534c8bd6561a8349a5a6966c', class: "zonos--checkout-finish zonos--elements", style: {
237
245
  '--border-radius': getBorderRadius.getBorderRadius(this.borderRadius),
238
- } }, this.isLoading && (index.h("div", { class: "loading-wrapper" }, index.h("zonos-spinner", null))), !this.isLoading && (index.h(index.Fragment, null, index.h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon$1, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", null, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, localization.translate('Keep shopping')))))));
246
+ } }, this.isLoading && (index.h("div", { class: "loading-wrapper" }, index.h("zonos-spinner", null))), !this.isLoading && (index.h(index.Fragment, null, index.h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon$1, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", null, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, cart.translate('Keep shopping')))))));
239
247
  }
240
248
  static get assetsDirs() { return ["assets"]; }
241
249
  };
@@ -273,7 +281,7 @@ const ZonosCheckoutFooter = class {
273
281
  var _a, _b;
274
282
  const primaryColor = (_a = zonosStore.zonosStore.appearance) === null || _a === void 0 ? void 0 : _a.colorPrimary;
275
283
  const footerTheme = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
276
- const languageLabel = (_b = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.label;
284
+ const languageLabel = (_b = ILanguage.languages.find(x => x.code === cart.localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.label;
277
285
  return (index.h(index.Host, { key: 'cadd2ef8877c716cdeb1f5f40642e41cabc2a55d', class: "zonos--elements" }, index.h("div", { key: '480995fd1ca7bc41702d15dd40d64e02a9ba09dd', class: "zonos--checkout-footer", "data-theme": footerTheme, style: { '--primary-color': primaryColor } }, index.h("div", { key: 'b83ebb3203542f7f4a227b50b26010cbeb914294', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '66ad21d85629d159b4ff3341e82c92d6bd19ceca', class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: "gray-700" }), onClick: () => this.toggleDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: '1e8dce34f3866570f267233644c6d5549cf02c9b', class: classes.classes([
278
286
  'zonos--checkout-footer-dialog',
279
287
  this.showDialog && 'zonos--checkout-footer-dialog-open',
@@ -314,7 +322,7 @@ const ZonosCheckoutPayment = class {
314
322
  return null;
315
323
  }
316
324
  this.disabled = !((_a = cart.stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
317
- 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, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
325
+ 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" }, cart.translate('Payment method')), this.paymentError && (index.h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, cart.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, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
318
326
  // use primary type when on mobile mode
319
327
  variant: this.submitBtnType }, "Pay", ' ', formatCurrency({
320
328
  amount: cart.cartStore.total,
@@ -327,7 +335,7 @@ const ZonosCheckoutPayment = class {
327
335
  };
328
336
  ZonosCheckoutPayment.style = ZonosCheckoutPaymentStyle0;
329
337
 
330
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--font-family, Inter), Inter}.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--address.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.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{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
338
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--font-family, Inter), Inter}.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--address.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.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{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:var(--amino-space-8);margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
331
339
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
332
340
 
333
341
  const ZonosCustomerInfo = class {
@@ -367,11 +375,11 @@ const ZonosCustomerInfo = class {
367
375
  !((_c = cart.stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.complete) ||
368
376
  !((_d = cart.stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.complete);
369
377
  const showBilling = !cart.stripeStore.stripeShippingSameAsBilling;
370
- 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-checkbox", { isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: localization.translate('Shipping address same as billing'), onCheckboxSelected: e => {
378
+ 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" }, cart.translate('Customer information')), index.h("zonos-link-authentication", { titleText: cart.translate('Contact') }), index.h("zonos-address", { defaultAddress: this.defaultAddress, titleText: cart.translate('Address'), type: "shipping" }), index.h("zonos-checkbox", { isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: cart.translate('Shipping address same as billing'), onCheckboxSelected: e => {
371
379
  cart.stripeStore.stripeShippingSameAsBilling = e.detail;
372
- } }), index.h("zonos-collapse", { collapsed: !showBilling }, index.h("zonos-address", { defaultAddress: this.defaultAddress, titleText: localization.translate('Billing address'), type: "billing" })), 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",
380
+ } }), index.h("zonos-collapse", { collapsed: !showBilling }, index.h("zonos-address", { defaultAddress: this.defaultAddress, titleText: cart.translate('Billing address'), type: "billing" })), 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",
373
381
  // use primary type when on mobile mode
374
- variant: this.submitBtnType }, localization.translate('Continue to shipping'))))));
382
+ variant: this.submitBtnType }, cart.translate('Continue to shipping'))))));
375
383
  }
376
384
  static get watchers() { return {
377
385
  "disabled": ["watchFormComplete"]
@@ -489,7 +497,7 @@ const ZonosReview = class {
489
497
  return (index.h(index.Host, { class: classes.classes([
490
498
  'zonos--review zonos--elements',
491
499
  this.isMobile && 'mobile',
492
- ]) }, index.h("div", { class: "zonos--title" }, index.h("zonos-text", { textColor: titleTextColor, type: titleTextType }, localization.translate('Pay'), " ", zonosStore.zonosStore.organizationName), renderCollapseIcon()), index.h("div", { class: "zonos--total-pay" }, index.h("zonos-text", { type: totalTextType }, formatCurrency({
500
+ ]) }, index.h("div", { class: "zonos--title" }, index.h("zonos-text", { textColor: titleTextColor, type: titleTextType }, cart.translate('Pay'), " ", zonosStore.zonosStore.organizationName), renderCollapseIcon()), index.h("div", { class: "zonos--total-pay" }, index.h("zonos-text", { type: totalTextType }, formatCurrency({
493
501
  amount:
494
502
  // show total without taxes when step is shipping, show total with taxes when step is payment
495
503
  cart.cartStore.step === 'shipping'
@@ -550,10 +558,10 @@ const ZonosShipping = class {
550
558
  var _a, _b;
551
559
  const { expectedDate, maxTransit, minTransit } = cart.cartStoreGetShippingTransitInfo(item);
552
560
  const sublabel = expectedDate
553
- ? `${localization.translate('Expected delivery')} ${expectedDate}`
561
+ ? `${cart.translate('Expected delivery')} ${expectedDate}`
554
562
  : '';
555
563
  const caption = minTransit && maxTransit
556
- ? `(${minTransit}-${maxTransit} ${localization.translate('business days')})`
564
+ ? `(${minTransit}-${maxTransit} ${cart.translate('business days')})`
557
565
  : '';
558
566
  const shippingAmount = ((_b = (_a = cart.cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(landedCostItem => { var _a; return ((_a = landedCostItem.landedCost) === null || _a === void 0 ? void 0 : _a.shipmentRating.id) === item.id; })) === null || _b === void 0 ? void 0 : _b.subtotals.shipping) || 0;
559
567
  return {
@@ -567,9 +575,9 @@ const ZonosShipping = class {
567
575
  value: item.id,
568
576
  };
569
577
  });
570
- 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("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
578
+ 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" }, cart.translate('Shipping information')), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.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("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
571
579
  // use primary type when on mobile mode
572
- variant: this.submitBtnType }, localization.translate('Go to payment'))))));
580
+ variant: this.submitBtnType }, cart.translate('Go to payment'))))));
573
581
  }
574
582
  static get watchers() { return {
575
583
  "disabled": ["watchFormComplete"]
@@ -3,14 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const cart = require('./cart-b8bbf22d.js');
7
- const localization = require('./localization-2c9f5765.js');
8
- const zonosStore = require('./zonosStore-5d94dabb.js');
6
+ const cart = require('./cart-ecc80eb0.js');
7
+ const zonosStore = require('./zonosStore-49d4c92a.js');
9
8
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
10
9
  const classes = require('./classes-b7918f56.js');
11
- const getBorderRadius = require('./getBorderRadius-b252096d.js');
12
- const isDarkColor = require('./isDarkColor-168002d6.js');
13
- const submitGtag = require('./submitGtag-792fe45d.js');
10
+ const getBorderRadius = require('./getBorderRadius-834c321d.js');
11
+ const isDarkColor = require('./isDarkColor-924e6a7a.js');
12
+ const submitGtag = require('./submitGtag-907e71d3.js');
14
13
 
15
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>`;
16
15
 
@@ -39,13 +38,13 @@ const ZonosCheckout = class {
39
38
  });
40
39
  };
41
40
  this.isShippableCountry = (showLog = true) => {
42
- if (!localization.localizationStore.localizationLoaded) {
41
+ if (!cart.localizationStore.localizationLoaded) {
43
42
  return false;
44
43
  }
45
44
  // if localization is loaded and the localization is not a shippable country, keep the original click event
46
- if (!localization.localizationStore.isShippableCountry) {
45
+ if (!cart.localizationStore.isShippableCountry) {
47
46
  if (showLog) {
48
- localization.log(`Checkout: not shippable country`);
47
+ cart.log(`Checkout: not shippable country`);
49
48
  }
50
49
  return false;
51
50
  }
@@ -100,14 +99,14 @@ const ZonosCheckout = class {
100
99
  }
101
100
  async buildCartAndInit() {
102
101
  if (zonosStore.zonosStore.checkoutSettings.buildCartDetail) {
103
- localization.log('build cart detail');
102
+ cart.log('build cart detail');
104
103
  const cartItems = await zonosStore.zonosStore.checkoutSettings.buildCartDetail();
105
104
  await cart.cartStoreUpdateItems(cartItems);
106
105
  }
107
106
  // if client secret doesn't exist, request a new one.
108
107
  if (!cart.stripeStore.clientSecret) {
109
108
  const success = await cart.stripeStoreInitCheckoutSession();
110
- localization.log(`stripeStoreInitCheckoutSession: ${success}`);
109
+ cart.log(`stripeStoreInitCheckoutSession: ${success}`);
111
110
  if (!success) {
112
111
  return false;
113
112
  }
@@ -137,7 +136,7 @@ const ZonosCheckout = class {
137
136
  }
138
137
  e.preventDefault();
139
138
  e.stopPropagation();
140
- localization.log('zonos checkout button clicked');
139
+ cart.log('zonos checkout button clicked');
141
140
  // start loading
142
141
  cart.stripeStore.isFetchingSession = true;
143
142
  this.open = true;
@@ -154,9 +153,9 @@ const ZonosCheckout = class {
154
153
  cart.stripeStore.isFetchingSession = false;
155
154
  cart.cartStoreUpdateToErrorState({
156
155
  messages: [
157
- localization.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
156
+ cart.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
158
157
  ],
159
- title: localization.translate('Error creating Checkout'),
158
+ title: cart.translate('Error creating Checkout'),
160
159
  });
161
160
  }
162
161
  });
@@ -211,14 +210,14 @@ const ZonosCheckout = class {
211
210
  cart.stripeStore.stripe = window.Zonos.stripe;
212
211
  this.stripe = window.Zonos.stripe;
213
212
  if (!this.stripe) {
214
- localization.log('waiting for stripe to be loaded');
213
+ cart.log('waiting for stripe to be loaded');
215
214
  return;
216
215
  }
217
216
  if (this.storybookPaymentStatusOverride) {
218
217
  clearInterval(interval);
219
218
  return;
220
219
  }
221
- localization.log('init checkout');
220
+ cart.log('init checkout');
222
221
  if (this.preview || this.forceDialogOpen) {
223
222
  void this.buildCartAndInit();
224
223
  }
@@ -318,18 +317,18 @@ const ZonosCheckout = class {
318
317
  this.isMobile = isCheckoutMobile.isCheckoutMobile(this.mobile);
319
318
  // apply theme to stripe elements
320
319
  void this.applyStripeTheme();
321
- localization.log(`mobile: ${this.isMobile}`);
320
+ cart.log(`mobile: ${this.isMobile}`);
322
321
  }
323
322
  handleMobileChange() {
324
323
  this.isMobile = isCheckoutMobile.isCheckoutMobile(this.mobile);
325
324
  // apply theme to stripe elements
326
325
  void this.applyStripeTheme();
327
- localization.log(`mobile: ${this.isMobile}`);
326
+ cart.log(`mobile: ${this.isMobile}`);
328
327
  }
329
328
  componentWillLoad() {
330
329
  void this.init();
331
330
  this.isMobile = isCheckoutMobile.isCheckoutMobile(this.mobile);
332
- localization.log(`mobile: ${this.isMobile}`);
331
+ cart.log(`mobile: ${this.isMobile}`);
333
332
  }
334
333
  // do clean up when component is unmounted
335
334
  disconnectedCallback() {
@@ -356,12 +355,12 @@ const ZonosCheckout = class {
356
355
  : themePrimaryColorBased;
357
356
  // only use submit button color if it's on desktop
358
357
  const submitButtonColor = !this.isMobile ? colorSecondary : undefined;
359
- const { customMessages } = localization.localizationStore;
358
+ const { customMessages } = cart.localizationStore;
360
359
  const defaultMessage = (_a = customMessages.find(x => x.pageName === 'checkout_default')) === null || _a === void 0 ? void 0 : _a.message;
361
360
  const localePageEnum = this.getCurrentLocalePageEnum();
362
361
  const filteredMessages = customMessages.filter(x => x.pageName === localePageEnum);
363
362
  const renderLogo = () => (index.h("div", { class: "zonos--logo" }, logoUrl && (index.h("img", { alt: `${zonosStore.zonosStore.organizationName} logo`, src: logoUrl, width: 100 }))));
364
- const renderTopHeader = () => (index.h("zonos-v-stack", null, renderLogo(), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message }))), index.h("div", null, index.h("zonos-button", { class: "zonos--back-button", icon: index.h("zonos-icon", { "aria-label": "Back to previous step", content: LeftArrow }), noBackground: true, noPaddingLeft: true, noPaddingRight: true, onClick: () => this.handleBackClick(), theme: leftSideTheme }, localization.translate('Back')))));
363
+ const renderTopHeader = () => (index.h("zonos-v-stack", null, renderLogo(), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message }))), index.h("div", null, index.h("zonos-button", { class: "zonos--back-button", icon: index.h("zonos-icon", { "aria-label": "Back to previous step", content: LeftArrow }), noBackground: true, noPaddingLeft: true, noPaddingRight: true, onClick: () => this.handleBackClick(), theme: leftSideTheme }, cart.translate('Back')))));
365
364
  const renderContent = () => {
366
365
  return (index.h("div", { class: 'zonos--content', style: {
367
366
  '--border-radius': getBorderRadius.getBorderRadius(style),