@zonos/elements 1.2.4-alpha.11 → 1.2.4-alpha.13

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 (151) 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/loader.cjs.js +1 -1
  6. package/dist/cjs/{localization-994933ce.js → localization-4746acf7.js} +1 -1
  7. package/dist/cjs/{submitGtag-e047f309.js → submitGtag-ca175427.js} +2 -2
  8. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
  9. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  15. package/dist/cjs/zonos-controller.cjs.entry.js +11 -5
  16. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-elements.cjs.js +1 -1
  18. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
  20. package/dist/cjs/zonos-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  25. package/dist/cjs/{zonosStore-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
  26. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
  27. package/dist/collection/components/main/zonos-controller.js +29 -2
  28. package/dist/collection/components/store/zonosStore.js +0 -8
  29. package/dist/collection/scripts/zonos.js +4 -0
  30. package/dist/collection/types/generated/graphql.customer.types.js +31 -0
  31. package/dist/components/zonos-controller.js +8 -1
  32. package/dist/components/zonos-hello.js +6 -3
  33. package/dist/components/zonosStore.js +0 -8
  34. package/dist/esm/{cart-c5236eec.js → cart-d81b92ea.js} +4 -4
  35. package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  36. package/dist/esm/index.js +5 -5
  37. package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
  40. package/dist/esm/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +2 -2
  41. package/dist/esm/zonos-address_2.entry.js +5 -5
  42. package/dist/esm/zonos-badge.entry.js +1 -1
  43. package/dist/esm/zonos-banner.entry.js +1 -1
  44. package/dist/esm/zonos-button_2.entry.js +3 -3
  45. package/dist/esm/zonos-card_2.entry.js +1 -1
  46. package/dist/esm/zonos-cart-items_10.entry.js +6 -6
  47. package/dist/esm/zonos-checkout.entry.js +6 -6
  48. package/dist/esm/zonos-controller.entry.js +11 -5
  49. package/dist/esm/zonos-country-flag_4.entry.js +3 -3
  50. package/dist/esm/zonos-elements.js +1 -1
  51. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  52. package/dist/esm/zonos-hello.entry.js +8 -5
  53. package/dist/esm/zonos-icon.entry.js +1 -1
  54. package/dist/esm/zonos-notification.entry.js +1 -1
  55. package/dist/esm/zonos-payment.entry.js +5 -5
  56. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  57. package/dist/esm/zonos-text.entry.js +1 -1
  58. package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
  59. package/dist/esm-es5/{cart-c5236eec.js → cart-d81b92ea.js} +1 -1
  60. package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  61. package/dist/esm-es5/index.js +1 -1
  62. package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  63. package/dist/esm-es5/loader.js +1 -1
  64. package/dist/esm-es5/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
  65. package/dist/esm-es5/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +1 -1
  66. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  67. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  68. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  69. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  70. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  71. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  72. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  73. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  74. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  75. package/dist/esm-es5/zonos-elements.js +1 -1
  76. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  77. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  78. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  79. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  80. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  81. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  82. package/dist/esm-es5/zonos-text.entry.js +1 -1
  83. package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
  84. package/dist/scripts/loadZonos.js +7 -3
  85. package/dist/scripts/zonos.js +7 -3
  86. package/dist/types/components/main/zonos-controller.d.ts +4 -0
  87. package/dist/types/components/store/zonosStore.d.ts +0 -2
  88. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  89. package/dist/types/components.d.ts +4 -0
  90. package/dist/types/scripts/zonos.d.ts +2 -2
  91. package/dist/types/types/checkout/CheckoutConfig.d.ts +0 -1
  92. package/dist/types/types/generated/graphql.customer.types.d.ts +35 -0
  93. package/dist/types/types/generated/graphql.customer.types.ts +44 -0
  94. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  95. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  96. package/dist/types/types/hello/HelloConfig.d.ts +0 -1
  97. package/dist/zonos-elements/index.esm.js +1 -1
  98. package/dist/zonos-elements/{p-e2c2584c.js → p-06a332cd.js} +1 -1
  99. package/dist/zonos-elements/{p-bb24e583.entry.js → p-124857ae.entry.js} +1 -1
  100. package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
  101. package/dist/zonos-elements/p-24fbe845.system.js +1 -1
  102. package/dist/zonos-elements/{p-425996c1.js → p-2b41549a.js} +1 -1
  103. package/dist/zonos-elements/p-2e1e9074.js +1 -0
  104. package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
  106. package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
  108. package/dist/zonos-elements/{p-509eb1de.system.js → p-5066955b.system.js} +1 -1
  109. package/dist/zonos-elements/{p-39013804.entry.js → p-516ae038.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
  113. package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
  114. package/dist/zonos-elements/{p-0d536271.entry.js → p-88600956.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
  116. package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
  117. package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-83c7c3f4.entry.js → p-9c1f19b6.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
  120. package/dist/zonos-elements/p-a174d834.system.js +1 -0
  121. package/dist/zonos-elements/{p-bbb154a9.js → p-a244579e.js} +1 -1
  122. package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
  123. package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-8a8b08e9.system.js → p-ab179c88.system.js} +1 -1
  125. package/dist/zonos-elements/{p-8cefaae6.entry.js → p-ad2b4bda.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-65749745.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-6a72fc13.entry.js → p-b7e061e7.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-6aa44c88.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
  131. package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-e06711b8.system.entry.js → p-c520d819.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-7fdc8b27.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-e100f180.system.entry.js → p-d2539712.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-510d3aa3.system.entry.js → p-daa10b8c.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-07ebdfd9.entry.js → p-e3bca405.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-f33e1ffb.system.js → p-ed074fbf.system.js} +1 -1
  141. package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
  142. package/dist/zonos-elements/p-f7b07128.system.entry.js +1 -0
  143. package/dist/zonos-elements/{p-5554ff33.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
  144. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  145. package/package.json +1 -1
  146. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  147. package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
  148. package/dist/zonos-elements/p-3e70063e.entry.js +0 -1
  149. package/dist/zonos-elements/p-6d4232a6.system.js +0 -1
  150. package/dist/zonos-elements/p-fbfec60c.system.entry.js +0 -1
  151. 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.
@@ -6,7 +6,7 @@ const index = require('./index-0dcccc22.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
9
- return index.bootstrapLazy([["zonos-text.cjs",[[1,"zonos-text",{"class":[1],"color":[1],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-country-flag_4.cjs",[[1,"zonos-country-select",{"closeCountrySelect":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[1,"zonos-country-flag",{"class":[1],"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"class":[1],"notificationArray":[32],"showNotification":[64]}]]],["zonos-badge.cjs",[[1,"zonos-badge",{"bold":[4],"color":[1],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"class":[1]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-address_2.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"class":[1],"hasContent":[32]}]]],["zonos-card_2.cjs",[[1,"zonos-card",{"actions":[16],"class":[1],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}],[1,"zonos-v-stack",{"spacing":[2],"class":[1]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"color":[1],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"class":[1],"color":[1],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"color":[1]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32]}],[1,"zonos-logo",{"theme":[1],"width":[1],"class":[1]}]]]], options);
9
+ return index.bootstrapLazy([["zonos-text.cjs",[[1,"zonos-text",{"class":[1],"color":[1],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-country-flag_4.cjs",[[1,"zonos-country-select",{"closeCountrySelect":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[1,"zonos-country-flag",{"class":[1],"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"class":[1],"notificationArray":[32],"showNotification":[64]}]]],["zonos-badge.cjs",[[1,"zonos-badge",{"bold":[4],"color":[1],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"class":[1]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-address_2.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"class":[1],"hasContent":[32]}]]],["zonos-card_2.cjs",[[1,"zonos-card",{"actions":[16],"class":[1],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}],[1,"zonos-v-stack",{"spacing":[2],"class":[1]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"color":[1],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"class":[1],"color":[1],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"color":[1]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32]}],[1,"zonos-logo",{"theme":[1],"width":[1],"class":[1]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -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 getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
9
+ const submitGtag = require('./submitGtag-ca175427.js');
10
+ const zonosStore = require('./zonosStore-10d1d6ff.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', {
@@ -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`;
@@ -249,6 +249,12 @@ const ZonosController = class {
249
249
  async getAppearanceSetting() {
250
250
  return zonosStore.zonosStore.appearance;
251
251
  }
252
+ /**
253
+ * Update the organizationName
254
+ */
255
+ async updateOrganizationName(organizationName) {
256
+ zonosStore.zonosStore.organizationName = organizationName;
257
+ }
252
258
  render() {
253
259
  return index.h(index.Host, { class: "zonos--elements" });
254
260
  }
@@ -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
 
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["zonos-text.cjs",[[1,"zonos-text",{"class":[1],"color":[1],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-country-flag_4.cjs",[[1,"zonos-country-select",{"closeCountrySelect":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[1,"zonos-country-flag",{"class":[1],"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"class":[1],"notificationArray":[32],"showNotification":[64]}]]],["zonos-badge.cjs",[[1,"zonos-badge",{"bold":[4],"color":[1],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"class":[1]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-address_2.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"class":[1],"hasContent":[32]}]]],["zonos-card_2.cjs",[[1,"zonos-card",{"actions":[16],"class":[1],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}],[1,"zonos-v-stack",{"spacing":[2],"class":[1]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"color":[1],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"class":[1],"color":[1],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"color":[1]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32]}],[1,"zonos-logo",{"theme":[1],"width":[1],"class":[1]}]]]], options);
20
+ return index.bootstrapLazy([["zonos-text.cjs",[[1,"zonos-text",{"class":[1],"color":[1],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-country-flag_4.cjs",[[1,"zonos-country-select",{"closeCountrySelect":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[1,"zonos-country-flag",{"class":[1],"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"class":[1],"notificationArray":[32],"showNotification":[64]}]]],["zonos-badge.cjs",[[1,"zonos-badge",{"bold":[4],"color":[1],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"class":[1]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-address_2.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"class":[1],"hasContent":[32]}]]],["zonos-card_2.cjs",[[1,"zonos-card",{"actions":[16],"class":[1],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}],[1,"zonos-v-stack",{"spacing":[2],"class":[1]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"color":[1],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"class":[1],"color":[1],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"color":[1]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32]}],[1,"zonos-logo",{"theme":[1],"width":[1],"class":[1]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -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) || '';
@@ -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',
@@ -192,6 +192,12 @@ export class ZonosController {
192
192
  async getAppearanceSetting() {
193
193
  return zonosStore.appearance;
194
194
  }
195
+ /**
196
+ * Update the organizationName
197
+ */
198
+ async updateOrganizationName(organizationName) {
199
+ zonosStore.organizationName = organizationName;
200
+ }
195
201
  render() {
196
202
  return h(Host, { class: "zonos--elements" });
197
203
  }
@@ -214,7 +220,7 @@ export class ZonosController {
214
220
  "mutable": false,
215
221
  "complexType": {
216
222
  "original": "LoadZonosParamsConfig",
217
- "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; }",
218
224
  "references": {
219
225
  "LoadZonosParamsConfig": {
220
226
  "location": "import",
@@ -347,7 +353,7 @@ export class ZonosController {
347
353
  "signature": "(config: LoadZonosParamsConfig) => Promise<void>",
348
354
  "parameters": [{
349
355
  "name": "config",
350
- "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; }",
351
357
  "docs": "config that need to override the default setting"
352
358
  }],
353
359
  "references": {
@@ -418,6 +424,27 @@ export class ZonosController {
418
424
  "text": "Get appearance from setting",
419
425
  "tags": []
420
426
  }
427
+ },
428
+ "updateOrganizationName": {
429
+ "complexType": {
430
+ "signature": "(organizationName: string) => Promise<void>",
431
+ "parameters": [{
432
+ "name": "organizationName",
433
+ "type": "string",
434
+ "docs": ""
435
+ }],
436
+ "references": {
437
+ "Promise": {
438
+ "location": "global",
439
+ "id": "global::Promise"
440
+ }
441
+ },
442
+ "return": "Promise<void>"
443
+ },
444
+ "docs": {
445
+ "text": "Update the organizationName",
446
+ "tags": []
447
+ }
421
448
  }
422
449
  };
423
450
  }