@zonos/elements 1.2.4-alpha.12 → 1.2.4-alpha.14

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 (145) hide show
  1. package/dist/cjs/{cart-963ffc24.js → cart-cfa5d5fd.js} +4 -4
  2. package/dist/cjs/{getBorderRadius-bf4a4276.js → getBorderRadius-c3c63ee6.js} +1 -1
  3. package/dist/cjs/index.cjs.js +5 -5
  4. package/dist/cjs/{isDarkColor-ff6ff183.js → isDarkColor-fc8c294a.js} +1 -1
  5. package/dist/cjs/{localization-994933ce.js → localization-4746acf7.js} +1 -1
  6. package/dist/cjs/{submitGtag-e047f309.js → submitGtag-ca175427.js} +2 -2
  7. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
  8. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +9 -15
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
  15. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
  18. package/dist/cjs/zonos-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  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-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -10
  25. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
  26. package/dist/collection/components/main/zonos-controller.js +2 -2
  27. package/dist/collection/components/store/zonosStore.js +0 -8
  28. package/dist/collection/types/generated/graphql.customer.types.js +31 -0
  29. package/dist/components/zonos-checkout-finish2.js +5 -10
  30. package/dist/components/zonos-hello.js +6 -3
  31. package/dist/components/zonosStore.js +0 -8
  32. package/dist/esm/{cart-c5236eec.js → cart-d81b92ea.js} +4 -4
  33. package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  34. package/dist/esm/index.js +5 -5
  35. package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  36. package/dist/esm/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
  37. package/dist/esm/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +2 -2
  38. package/dist/esm/zonos-address_2.entry.js +5 -5
  39. package/dist/esm/zonos-badge.entry.js +1 -1
  40. package/dist/esm/zonos-banner.entry.js +1 -1
  41. package/dist/esm/zonos-button_2.entry.js +3 -3
  42. package/dist/esm/zonos-card_2.entry.js +1 -1
  43. package/dist/esm/zonos-cart-items_10.entry.js +9 -15
  44. package/dist/esm/zonos-checkout.entry.js +6 -6
  45. package/dist/esm/zonos-controller.entry.js +5 -5
  46. package/dist/esm/zonos-country-flag_4.entry.js +3 -3
  47. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  48. package/dist/esm/zonos-hello.entry.js +8 -5
  49. package/dist/esm/zonos-icon.entry.js +1 -1
  50. package/dist/esm/zonos-notification.entry.js +1 -1
  51. package/dist/esm/zonos-payment.entry.js +5 -5
  52. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  53. package/dist/esm/zonos-text.entry.js +1 -1
  54. package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
  55. package/dist/esm-es5/{cart-c5236eec.js → cart-d81b92ea.js} +1 -1
  56. package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  57. package/dist/esm-es5/index.js +1 -1
  58. package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  59. package/dist/esm-es5/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
  60. package/dist/esm-es5/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +1 -1
  61. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  62. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  63. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  64. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  65. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  66. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  67. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  68. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  69. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  70. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  71. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  72. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  73. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  74. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  75. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  76. package/dist/esm-es5/zonos-text.entry.js +1 -1
  77. package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
  78. package/dist/scripts/loadZonos.js +3 -3
  79. package/dist/scripts/zonos.js +3 -3
  80. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -3
  81. package/dist/types/components/store/zonosStore.d.ts +0 -2
  82. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  83. package/dist/types/scripts/zonos.d.ts +0 -2
  84. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -2
  85. package/dist/types/types/generated/graphql.customer.types.d.ts +35 -0
  86. package/dist/types/types/generated/graphql.customer.types.ts +44 -0
  87. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  88. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  89. package/dist/types/types/hello/HelloConfig.d.ts +0 -1
  90. package/dist/zonos-elements/index.esm.js +1 -1
  91. package/dist/zonos-elements/{p-e2c2584c.js → p-06a332cd.js} +1 -1
  92. package/dist/zonos-elements/{p-bb24e583.entry.js → p-124857ae.entry.js} +1 -1
  93. package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
  94. package/dist/zonos-elements/p-24fbe845.system.js +1 -1
  95. package/dist/zonos-elements/{p-425996c1.js → p-2b41549a.js} +1 -1
  96. package/dist/zonos-elements/p-2e1e9074.js +1 -0
  97. package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
  98. package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
  99. package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
  100. package/dist/zonos-elements/p-436faf98.system.entry.js +1 -0
  101. package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
  102. package/dist/zonos-elements/{p-509eb1de.system.js → p-5066955b.system.js} +1 -1
  103. package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
  105. package/dist/zonos-elements/p-5e87609f.entry.js +1 -0
  106. package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
  107. package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
  108. package/dist/zonos-elements/{p-0d536271.entry.js → p-88600956.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
  110. package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
  111. package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-83c7c3f4.entry.js → p-9c1f19b6.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
  114. package/dist/zonos-elements/p-a174d834.system.js +1 -0
  115. package/dist/zonos-elements/{p-bbb154a9.js → p-a244579e.js} +1 -1
  116. package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
  117. package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-8a8b08e9.system.js → p-ab179c88.system.js} +1 -1
  119. package/dist/zonos-elements/{p-8cefaae6.entry.js → p-ad2b4bda.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-65749745.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-6f8da71e.entry.js → p-b7e061e7.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-6aa44c88.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
  125. package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-e06711b8.system.entry.js → p-c520d819.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-7fdc8b27.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-510d3aa3.system.entry.js → p-daa10b8c.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-07ebdfd9.entry.js → p-e3bca405.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-f33e1ffb.system.js → p-ed074fbf.system.js} +1 -1
  134. package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-8e4794fe.system.entry.js → p-f7b07128.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-5554ff33.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
  137. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  138. package/package.json +1 -1
  139. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  140. package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
  141. package/dist/zonos-elements/p-39013804.entry.js +0 -1
  142. package/dist/zonos-elements/p-3e70063e.entry.js +0 -1
  143. package/dist/zonos-elements/p-6d4232a6.system.js +0 -1
  144. package/dist/zonos-elements/p-e100f180.system.entry.js +0 -1
  145. package/dist/zonos-elements/p-ff95f098.js +0 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-b43ef5db.js');
4
- const localization = require('./localization-994933ce.js');
5
- const isDarkColor = require('./isDarkColor-ff6ff183.js');
6
- const getBorderRadius = require('./getBorderRadius-bf4a4276.js');
3
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
4
+ const localization = require('./localization-4746acf7.js');
5
+ const isDarkColor = require('./isDarkColor-fc8c294a.js');
6
+ const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
7
7
 
8
8
  const prepCalculateLandedCost = () => {
9
9
  // maybe we don't need email now for prefetch the landed cost
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-b43ef5db.js');
3
+ const zonosStore = require('./zonosStore-10d1d6ff.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-963ffc24.js');
6
- require('./zonosStore-b43ef5db.js');
5
+ const cart = require('./cart-cfa5d5fd.js');
6
+ require('./zonosStore-10d1d6ff.js');
7
7
  require('./index-0dcccc22.js');
8
- require('./localization-994933ce.js');
9
- require('./isDarkColor-ff6ff183.js');
10
- require('./getBorderRadius-bf4a4276.js');
8
+ require('./localization-4746acf7.js');
9
+ require('./isDarkColor-fc8c294a.js');
10
+ require('./getBorderRadius-c3c63ee6.js');
11
11
 
12
12
 
13
13
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-b43ef5db.js');
3
+ const zonosStore = require('./zonosStore-10d1d6ff.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-b43ef5db.js');
3
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
4
4
 
5
5
  const stringsArabic = {
6
6
  'Above de minimis threshold for': {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-b43ef5db.js');
4
- const localization = require('./localization-994933ce.js');
3
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
4
+ const localization = require('./localization-4746acf7.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-0dcccc22.js');
6
- const cart = require('./cart-963ffc24.js');
7
- const localization = require('./localization-994933ce.js');
8
- require('./zonosStore-b43ef5db.js');
9
- require('./isDarkColor-ff6ff183.js');
10
- require('./getBorderRadius-bf4a4276.js');
6
+ const cart = require('./cart-cfa5d5fd.js');
7
+ const localization = require('./localization-4746acf7.js');
8
+ require('./zonosStore-10d1d6ff.js');
9
+ require('./isDarkColor-fc8c294a.js');
10
+ require('./getBorderRadius-c3c63ee6.js');
11
11
 
12
12
  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)}";
13
13
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.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-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.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-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-bf4a4276.js');
8
+ const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
9
9
  const isColorVariable = require('./isColorVariable-41cacd82.js');
10
- const isDarkColor = require('./isDarkColor-ff6ff183.js');
10
+ const isDarkColor = require('./isDarkColor-fc8c294a.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  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)}";
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const cart = require('./cart-963ffc24.js');
7
- const localization = require('./localization-994933ce.js');
8
- const getBorderRadius = require('./getBorderRadius-bf4a4276.js');
9
- const submitGtag = require('./submitGtag-e047f309.js');
10
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const cart = require('./cart-cfa5d5fd.js');
7
+ const localization = require('./localization-4746acf7.js');
8
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
9
+ const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
10
+ const submitGtag = require('./submitGtag-ca175427.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
- require('./isDarkColor-ff6ff183.js');
12
+ require('./isDarkColor-fc8c294a.js');
13
13
 
14
14
  const formatCurrency = ({ amount, currency, showCurrencyText, }) => showCurrencyText
15
15
  ? `${new Intl.NumberFormat('en-US', {
@@ -113,17 +113,11 @@ const ZonosCheckoutFinish = class {
113
113
  if (errors.length || !(json === null || json === void 0 ? void 0 : json.id)) {
114
114
  return null;
115
115
  }
116
- // TODO: This method of triggering /success for BigCommerce is for MVP. Remove when eventRegistry is fixed to handle by webhooks
117
- if (window.Zonos.isBigCommerce) {
118
- const orderId = json === null || json === void 0 ? void 0 : json.id;
119
- const storeHash = (_b = (_a = json === null || json === void 0 ? void 0 : json.metadata) === null || _a === void 0 ? void 0 : _a.find(x => (x === null || x === void 0 ? void 0 : x.key) === 'storeHash')) === null || _b === void 0 ? void 0 : _b.value;
120
- if (!orderId || !storeHash) {
121
- return localization.logError('Unable to trigger BigCommerce /success: Missing orderId or storeHash');
122
- }
123
- void localization.handleFetch(`${baseUrl}/api/bigcommerce/success?orderId=${orderId}&storeHash=${storeHash}`);
124
- }
116
+ // onOrderSuccess callback may be provided on Zonos.init
117
+ await ((_b = (_a = zonosStore.zonosStore.checkoutSettings).onOrderSuccess) === null || _b === void 0 ? void 0 : _b.call(_a, json));
125
118
  return json;
126
119
  };
120
+ // 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
127
121
  this.getPullOrder = async (attempts = 0) => {
128
122
  const order = await this.pullOrder();
129
123
  if (order) {
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const cart = require('./cart-963ffc24.js');
7
- const localization = require('./localization-994933ce.js');
8
- const zonosStore = require('./zonosStore-b43ef5db.js');
9
- const submitGtag = require('./submitGtag-e047f309.js');
6
+ const cart = require('./cart-cfa5d5fd.js');
7
+ const localization = require('./localization-4746acf7.js');
8
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
9
+ const submitGtag = require('./submitGtag-ca175427.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
- const getBorderRadius = require('./getBorderRadius-bf4a4276.js');
12
- const isDarkColor = require('./isDarkColor-ff6ff183.js');
11
+ const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
12
+ const isDarkColor = require('./isDarkColor-fc8c294a.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
 
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const cart = require('./cart-963ffc24.js');
7
- const localization = require('./localization-994933ce.js');
8
- const zonosStore = require('./zonosStore-b43ef5db.js');
9
- require('./isDarkColor-ff6ff183.js');
10
- require('./getBorderRadius-bf4a4276.js');
6
+ const cart = require('./cart-cfa5d5fd.js');
7
+ const localization = require('./localization-4746acf7.js');
8
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
9
+ require('./isDarkColor-fc8c294a.js');
10
+ require('./getBorderRadius-c3c63ee6.js');
11
11
 
12
12
  const getZonosSettings = async () => {
13
13
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const localization = require('./localization-994933ce.js');
7
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const localization = require('./localization-4746acf7.js');
7
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- const isDarkColor = require('./isDarkColor-ff6ff183.js');
9
+ const isDarkColor = require('./isDarkColor-fc8c294a.js');
10
10
 
11
11
  const zonosCountryFlagCss = ":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 .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-0dcccc22.js');
6
- const localization = require('./localization-994933ce.js');
7
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const localization = require('./localization-4746acf7.js');
7
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
10
10
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
7
- const localization = require('./localization-994933ce.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
+ const localization = require('./localization-4746acf7.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
10
10
 
@@ -459,7 +459,7 @@ const RESIZE_DEBOUNCE_DELAY_MS = 500;
459
459
  const ZonosHello = class {
460
460
  constructor(hostRef) {
461
461
  index.registerInstance(this, hostRef);
462
- this.getHelloPeekMessage = () => {
462
+ this.getHelloPeekMessage = (organizationName) => {
463
463
  const isRestrictionPage = zonosStore.zonosStore.currentHelloPage === 'productDetail' ||
464
464
  zonosStore.zonosStore.currentHelloPage === 'productList';
465
465
  if (isRestrictionPage && this.allRestrictedItems.length) {
@@ -476,7 +476,7 @@ const ZonosHello = class {
476
476
  case 'productDetail':
477
477
  return localization.translate(`See duty and tax thresholds`);
478
478
  default:
479
- return `${localization.translate('Welcome to')} ${zonosStore.zonosStore.organizationName}`;
479
+ return `${localization.translate('Welcome to')} ${organizationName}`;
480
480
  }
481
481
  };
482
482
  this.enableShowPeekMessage = () => {
@@ -496,7 +496,7 @@ const ZonosHello = class {
496
496
  return newRestrictions;
497
497
  };
498
498
  this.triggerShowPeekMessage = () => {
499
- this.peekMessage = this.getHelloPeekMessage();
499
+ this.peekMessage = this.getHelloPeekMessage(zonosStore.zonosStore.organizationName);
500
500
  const { peekMessageBehavior, peekMessageDelay } = zonosStore.zonosStore.helloSettings;
501
501
  // peek message delay is passed in seconds, but setTimeout expects milliseconds
502
502
  const peekMessageDelayToUse = peekMessageDelay * 1000;
@@ -692,6 +692,9 @@ const ZonosHello = class {
692
692
  const appearanceSettings = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
693
693
  const { theme } = appearanceSettings;
694
694
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
695
+ // The organization name can be changed after init with the updateOrganizationName method.
696
+ // This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
697
+ this.peekMessage = this.getHelloPeekMessage(zonosStore.zonosStore.organizationName);
695
698
  const showHello = this.isShippableCountry() && !!selectedCountryCode;
696
699
  return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class: "zonos--hello-wrapper" }, index.h("button", { class: classes.classes([
697
700
  'zonos--hello-widget',
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
 
8
8
  const zonosIconCss = ":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosNotificationCss = ":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-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const cart = require('./cart-963ffc24.js');
7
- require('./zonosStore-b43ef5db.js');
8
- require('./localization-994933ce.js');
9
- require('./isDarkColor-ff6ff183.js');
10
- require('./getBorderRadius-bf4a4276.js');
6
+ const cart = require('./cart-cfa5d5fd.js');
7
+ require('./zonosStore-10d1d6ff.js');
8
+ require('./localization-4746acf7.js');
9
+ require('./isDarkColor-fc8c294a.js');
10
+ require('./getBorderRadius-c3c63ee6.js');
11
11
 
12
12
  const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";
13
13
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-bf4a4276.js');
8
+ const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
9
9
  const isColorVariable = require('./isColorVariable-41cacd82.js');
10
10
 
11
11
  const zonosShippingRichRadioCss = ":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-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0dcccc22.js');
6
- const zonosStore = require('./zonosStore-b43ef5db.js');
6
+ const zonosStore = require('./zonosStore-10d1d6ff.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const textOptions = {
@@ -2529,7 +2529,6 @@ const { reset, state: zonosStore } = createStore(() => ({
2529
2529
  zonosAttribution: 'DISABLED',
2530
2530
  },
2531
2531
  checkoutSettings: {
2532
- allowedDomains: [],
2533
2532
  analyticsProviders: [],
2534
2533
  orderNotifications: {
2535
2534
  abandonedCart: {
@@ -2563,7 +2562,6 @@ const { reset, state: zonosStore } = createStore(() => ({
2563
2562
  },
2564
2563
  currentHelloPage: '',
2565
2564
  helloSettings: {
2566
- allowedDomains: [],
2567
2565
  anchorElementSelector: '',
2568
2566
  cartUrlPattern: '',
2569
2567
  currencyBehavior: 'ENABLED',
@@ -2585,9 +2583,6 @@ const { reset, state: zonosStore } = createStore(() => ({
2585
2583
  restrictionBehavior: 'DISABLED',
2586
2584
  },
2587
2585
  loadedConfig: false,
2588
- onlineStoreSettings: {
2589
- allowedDomains: [],
2590
- },
2591
2586
  organizationName: '',
2592
2587
  sourceCurrency: 'USD',
2593
2588
  storeId: null,
@@ -2613,9 +2608,6 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
2613
2608
  (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
2614
2609
  null, overrideSettings.checkoutSettings);
2615
2610
  zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
2616
- zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
2617
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
2618
- null, overrideSettings.onlineStoreSettings);
2619
2611
  // set flag to true to indicate that config is ready
2620
2612
  zonosStore.loadedConfig = true;
2621
2613
  zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
@@ -1,9 +1,9 @@
1
1
  import { Fragment, h, Host, } from "@stencil/core";
2
2
  import { stripeStore, stripeStoreReset, stripeStoreRetrievePayment, } from "../../../store/checkout/stripe";
3
3
  import { translate } from "../../../store/translationStore";
4
+ import { zonosStore } from "../../../store/zonosStore";
4
5
  import { getBorderRadius } from "../../../utils/getBorderRadius";
5
6
  import { handleFetch } from "../../../utils/handleFetch";
6
- import { logError } from "../../../utils/logging/logError";
7
7
  import { submitGtag } from "../../../utils/submitGtag";
8
8
  import { cartStore } from "../../../../types/index";
9
9
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
@@ -21,17 +21,11 @@ export class ZonosCheckoutFinish {
21
21
  if (errors.length || !(json === null || json === void 0 ? void 0 : json.id)) {
22
22
  return null;
23
23
  }
24
- // TODO: This method of triggering /success for BigCommerce is for MVP. Remove when eventRegistry is fixed to handle by webhooks
25
- if (window.Zonos.isBigCommerce) {
26
- const orderId = json === null || json === void 0 ? void 0 : json.id;
27
- const storeHash = (_b = (_a = json === null || json === void 0 ? void 0 : json.metadata) === null || _a === void 0 ? void 0 : _a.find(x => (x === null || x === void 0 ? void 0 : x.key) === 'storeHash')) === null || _b === void 0 ? void 0 : _b.value;
28
- if (!orderId || !storeHash) {
29
- return logError('Unable to trigger BigCommerce /success: Missing orderId or storeHash');
30
- }
31
- void handleFetch(`${baseUrl}/api/bigcommerce/success?orderId=${orderId}&storeHash=${storeHash}`);
32
- }
24
+ // onOrderSuccess callback may be provided on Zonos.init
25
+ await ((_b = (_a = zonosStore.checkoutSettings).onOrderSuccess) === null || _b === void 0 ? void 0 : _b.call(_a, json));
33
26
  return json;
34
27
  };
28
+ // 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
35
29
  this.getPullOrder = async (attempts = 0) => {
36
30
  const order = await this.pullOrder();
37
31
  if (order) {
@@ -20,7 +20,7 @@ const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
20
20
  const RESIZE_DEBOUNCE_DELAY_MS = 500;
21
21
  export class ZonosHello {
22
22
  constructor() {
23
- this.getHelloPeekMessage = () => {
23
+ this.getHelloPeekMessage = (organizationName) => {
24
24
  const isRestrictionPage = zonosStore.currentHelloPage === 'productDetail' ||
25
25
  zonosStore.currentHelloPage === 'productList';
26
26
  if (isRestrictionPage && this.allRestrictedItems.length) {
@@ -37,7 +37,7 @@ export class ZonosHello {
37
37
  case 'productDetail':
38
38
  return translate(`See duty and tax thresholds`);
39
39
  default:
40
- return `${translate('Welcome to')} ${zonosStore.organizationName}`;
40
+ return `${translate('Welcome to')} ${organizationName}`;
41
41
  }
42
42
  };
43
43
  this.enableShowPeekMessage = () => {
@@ -57,7 +57,7 @@ export class ZonosHello {
57
57
  return newRestrictions;
58
58
  };
59
59
  this.triggerShowPeekMessage = () => {
60
- this.peekMessage = this.getHelloPeekMessage();
60
+ this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
61
61
  const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;
62
62
  // peek message delay is passed in seconds, but setTimeout expects milliseconds
63
63
  const peekMessageDelayToUse = peekMessageDelay * 1000;
@@ -253,6 +253,9 @@ export class ZonosHello {
253
253
  const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
254
254
  const { theme } = appearanceSettings;
255
255
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
256
+ // The organization name can be changed after init with the updateOrganizationName method.
257
+ // This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
258
+ this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
256
259
  const showHello = this.isShippableCountry() && !!selectedCountryCode;
257
260
  return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
258
261
  'zonos--hello-widget',
@@ -220,7 +220,7 @@ export class ZonosController {
220
220
  "mutable": false,
221
221
  "complexType": {
222
222
  "original": "LoadZonosParamsConfig",
223
- "resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; onlineStoreSettings?: Partial<OnlineStoreConfig> | undefined; }",
223
+ "resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; }",
224
224
  "references": {
225
225
  "LoadZonosParamsConfig": {
226
226
  "location": "import",
@@ -353,7 +353,7 @@ export class ZonosController {
353
353
  "signature": "(config: LoadZonosParamsConfig) => Promise<void>",
354
354
  "parameters": [{
355
355
  "name": "config",
356
- "type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; onlineStoreSettings?: Partial<OnlineStoreConfig> | undefined; }",
356
+ "type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; }",
357
357
  "docs": "config that need to override the default setting"
358
358
  }],
359
359
  "references": {
@@ -10,7 +10,6 @@ const { reset, state: zonosStore } = createStore(() => ({
10
10
  zonosAttribution: 'DISABLED',
11
11
  },
12
12
  checkoutSettings: {
13
- allowedDomains: [],
14
13
  analyticsProviders: [],
15
14
  orderNotifications: {
16
15
  abandonedCart: {
@@ -44,7 +43,6 @@ const { reset, state: zonosStore } = createStore(() => ({
44
43
  },
45
44
  currentHelloPage: '',
46
45
  helloSettings: {
47
- allowedDomains: [],
48
46
  anchorElementSelector: '',
49
47
  cartUrlPattern: '',
50
48
  currencyBehavior: 'ENABLED',
@@ -66,9 +64,6 @@ const { reset, state: zonosStore } = createStore(() => ({
66
64
  restrictionBehavior: 'DISABLED',
67
65
  },
68
66
  loadedConfig: false,
69
- onlineStoreSettings: {
70
- allowedDomains: [],
71
- },
72
67
  organizationName: '',
73
68
  sourceCurrency: 'USD',
74
69
  storeId: null,
@@ -94,9 +89,6 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
94
89
  (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
95
90
  null, overrideSettings.checkoutSettings);
96
91
  zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
97
- zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
98
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
99
- null, overrideSettings.onlineStoreSettings);
100
92
  // set flag to true to indicate that config is ready
101
93
  zonosStore.loadedConfig = true;
102
94
  zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
@@ -51,10 +51,18 @@ export const carrierAccountApiUsage = {
51
51
  Label: 'LABEL',
52
52
  Rating: 'RATING',
53
53
  };
54
+ export const carrierAccountIntegrationType = {
55
+ Rest: 'REST',
56
+ Soap: 'SOAP',
57
+ };
54
58
  export const carrierAccountRateType = {
55
59
  Negotiated: 'NEGOTIATED',
56
60
  Retail: 'RETAIL',
57
61
  };
62
+ export const carrierAccountRegistrationType = {
63
+ Other: 'OTHER',
64
+ Zonos: 'ZONOS',
65
+ };
58
66
  export const carrierAccountUsageCategoryCode = {
59
67
  Shipping: 'SHIPPING',
60
68
  };
@@ -1024,6 +1032,12 @@ export const exchangeRateType = {
1024
1032
  Guaranteed: 'GUARANTEED',
1025
1033
  MidMarket: 'MID_MARKET',
1026
1034
  };
1035
+ export const exportJobStatus = {
1036
+ Completed: 'COMPLETED',
1037
+ Error: 'ERROR',
1038
+ Initialized: 'INITIALIZED',
1039
+ Processing: 'PROCESSING',
1040
+ };
1027
1041
  export const externalServiceTokenType = {
1028
1042
  StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
1029
1043
  };
@@ -1244,6 +1258,12 @@ export const landedCostAdjustmentType = {
1244
1258
  Item: 'ITEM',
1245
1259
  Shipping: 'SHIPPING',
1246
1260
  };
1261
+ export const landedCostBillingPartyType = {
1262
+ Customer: 'CUSTOMER',
1263
+ Merchant: 'MERCHANT',
1264
+ ThirdParty: 'THIRD_PARTY',
1265
+ Zonos: 'ZONOS',
1266
+ };
1247
1267
  export const landedCostCalculationMethod = {
1248
1268
  Dap: 'DAP',
1249
1269
  Ddp: 'DDP',
@@ -1271,6 +1291,7 @@ export const landedCostFeeType = {
1271
1291
  Item: 'ITEM',
1272
1292
  Other: 'OTHER',
1273
1293
  Shipping: 'SHIPPING',
1294
+ Tax: 'TAX',
1274
1295
  ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
1275
1296
  };
1276
1297
  export const landedCostGuaranteeCode = {
@@ -1758,9 +1779,19 @@ export const wcoVersion = {
1758
1779
  Wco_1997: 'WCO_1997',
1759
1780
  Wco_2002: 'WCO_2002',
1760
1781
  Wco_2007: 'WCO_2007',
1782
+ Wco_2012: 'WCO_2012',
1761
1783
  Wco_2017: 'WCO_2017',
1762
1784
  Wco_2022: 'WCO_2022',
1763
1785
  Wco_2027: 'WCO_2027',
1786
+ Wco_2032: 'WCO_2032',
1787
+ Wco_2037: 'WCO_2037',
1788
+ Wco_2042: 'WCO_2042',
1789
+ Wco_2047: 'WCO_2047',
1790
+ Wco_2052: 'WCO_2052',
1791
+ Wco_2057: 'WCO_2057',
1792
+ Wco_2062: 'WCO_2062',
1793
+ Wco_2067: 'WCO_2067',
1794
+ Wco_2072: 'WCO_2072',
1764
1795
  };
1765
1796
  export const weightUnitCode = {
1766
1797
  Gram: 'GRAM',