@zonos/elements 1.2.4-alpha.5 → 1.2.4-alpha.7

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 (189) hide show
  1. package/dist/cjs/{cart-3ff38a09.js → cart-90f7c8c0.js} +36 -8
  2. package/dist/cjs/{getBorderRadius-a97a5f75.js → getBorderRadius-bf4a4276.js} +1 -1
  3. package/dist/cjs/{index-20cb112f.js → index-0dcccc22.js} +27 -16
  4. package/dist/cjs/index.cjs.js +6 -6
  5. package/dist/cjs/{isDarkColor-261fcf3d.js → isDarkColor-ff6ff183.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/{localization-dcd11e9d.js → localization-9caf3397.js} +27 -7
  8. package/dist/cjs/{submitGtag-08527ddb.js → submitGtag-b141b45d.js} +2 -2
  9. package/dist/cjs/zonos-address_2.cjs.entry.js +6 -6
  10. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-button_2.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-card_2.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +50 -8
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -7
  16. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +8 -8
  18. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-elements.cjs.js +3 -3
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-icon.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  26. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  27. package/dist/cjs/{zonosStore-a0fa5b77.js → zonosStore-b43ef5db.js} +1 -1
  28. package/dist/collection/collection-manifest.json +1 -1
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +48 -2
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -2
  31. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -2
  32. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +9 -6
  33. package/dist/collection/components/main/zonos-controller.js +16 -14
  34. package/dist/collection/components/store/checkout/cart.js +1 -1
  35. package/dist/collection/components/store/checkout/stripe.js +3 -2
  36. package/dist/collection/components/utils/api/calculateLandedCost.js +9 -1
  37. package/dist/collection/components/utils/api/checkItemRestrictions.js +1 -1
  38. package/dist/collection/components/utils/api/getCountries.js +1 -1
  39. package/dist/collection/components/utils/api/getCountryLandedCost.js +1 -1
  40. package/dist/collection/components/utils/api/getExchangeRate.js +1 -1
  41. package/dist/collection/components/utils/api/getLocaleMessages.js +1 -1
  42. package/dist/collection/components/utils/api/getLocalization.js +1 -1
  43. package/dist/collection/components/utils/api/getShippingZones.js +1 -1
  44. package/dist/collection/components/utils/api/getZonosSetting.js +1 -1
  45. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +22 -0
  46. package/dist/collection/components/utils/logging/log.js +20 -0
  47. package/dist/collection/types/generated/graphql.customer.types.js +72 -0
  48. package/dist/collection/types/generated/graphql.frontend.types.js +83 -6
  49. package/dist/components/cart.js +33 -5
  50. package/dist/components/localization.js +26 -6
  51. package/dist/components/zonos-checkout-finish2.js +47 -4
  52. package/dist/components/zonos-checkout.js +2 -0
  53. package/dist/components/zonos-controller.js +2 -2
  54. package/dist/components/zonos-hello.js +1 -1
  55. package/dist/esm/{cart-54eab7ab.js → cart-b439be00.js} +36 -8
  56. package/dist/esm/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  57. package/dist/esm/{index-3617e24c.js → index-36ff6342.js} +27 -16
  58. package/dist/esm/index.js +6 -6
  59. package/dist/esm/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  60. package/dist/esm/loader.js +3 -3
  61. package/dist/esm/{localization-9c80f0f5.js → localization-a51ccbc2.js} +27 -7
  62. package/dist/esm/{submitGtag-7affec95.js → submitGtag-521826a2.js} +2 -2
  63. package/dist/esm/zonos-address_2.entry.js +6 -6
  64. package/dist/esm/zonos-badge.entry.js +2 -2
  65. package/dist/esm/zonos-banner.entry.js +2 -2
  66. package/dist/esm/zonos-button_2.entry.js +4 -4
  67. package/dist/esm/zonos-card_2.entry.js +2 -2
  68. package/dist/esm/zonos-cart-items_10.entry.js +50 -8
  69. package/dist/esm/zonos-checkout.entry.js +9 -7
  70. package/dist/esm/zonos-component.entry.js +1 -1
  71. package/dist/esm/zonos-controller.entry.js +8 -8
  72. package/dist/esm/zonos-country-flag_4.entry.js +4 -4
  73. package/dist/esm/zonos-elements.js +4 -4
  74. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  75. package/dist/esm/zonos-hello.entry.js +4 -4
  76. package/dist/esm/zonos-icon.entry.js +2 -2
  77. package/dist/esm/zonos-notification.entry.js +2 -2
  78. package/dist/esm/zonos-payment.entry.js +6 -6
  79. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  80. package/dist/esm/zonos-text.entry.js +2 -2
  81. package/dist/esm/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  82. package/dist/esm-es5/cart-b439be00.js +1 -0
  83. package/dist/esm-es5/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  84. package/dist/esm-es5/index-36ff6342.js +2 -0
  85. package/dist/esm-es5/index.js +1 -1
  86. package/dist/esm-es5/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  87. package/dist/esm-es5/loader.js +1 -1
  88. package/dist/esm-es5/{localization-9c80f0f5.js → localization-a51ccbc2.js} +1 -1
  89. package/dist/esm-es5/{submitGtag-7affec95.js → submitGtag-521826a2.js} +1 -1
  90. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  91. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  92. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  93. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  94. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  95. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  96. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  97. package/dist/esm-es5/zonos-component.entry.js +1 -1
  98. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  99. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  100. package/dist/esm-es5/zonos-elements.js +1 -1
  101. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  102. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  103. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  104. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  105. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  106. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  107. package/dist/esm-es5/zonos-text.entry.js +1 -1
  108. package/dist/esm-es5/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  109. package/dist/scripts/loadZonos.js +23 -3
  110. package/dist/scripts/zonos.js +23 -3
  111. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -1
  112. package/dist/types/components/store/checkout/stripe.d.ts +1 -0
  113. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  114. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +5 -0
  115. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  116. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  117. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
  118. package/dist/types/types/generated/graphql.customer.types.d.ts +230 -7
  119. package/dist/types/types/generated/graphql.customer.types.ts +281 -7
  120. package/dist/types/types/generated/graphql.frontend.types.d.ts +222 -11
  121. package/dist/types/types/generated/graphql.frontend.types.ts +377 -11
  122. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  123. package/dist/zonos-elements/index.esm.js +1 -1
  124. package/dist/zonos-elements/{p-426a5999.system.entry.js → p-06fb9d1f.system.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-77a7929b.js → p-089ba905.js} +1 -1
  126. package/dist/zonos-elements/{p-17bc1266.js → p-1685c8df.js} +1 -1
  127. package/dist/zonos-elements/p-18904b7c.system.js +2 -0
  128. package/dist/zonos-elements/{p-b8d11094.entry.js → p-1d4a970b.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-80ba24a8.system.js → p-24eed2a8.system.js} +1 -1
  130. package/dist/zonos-elements/{p-bec21999.system.js → p-24fbe845.system.js} +1 -1
  131. package/dist/zonos-elements/{p-55f1da18.entry.js → p-2801d868.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-1dbaf24b.system.entry.js → p-2f43da39.system.entry.js} +1 -1
  133. package/dist/zonos-elements/p-33137e7d.system.entry.js +1 -0
  134. package/dist/zonos-elements/{p-e3c617a4.js → p-3c6988d7.js} +1 -1
  135. package/dist/zonos-elements/p-3cea383b.system.entry.js +1 -0
  136. package/dist/zonos-elements/{p-86580e70.system.entry.js → p-47390db7.system.entry.js} +1 -1
  137. package/dist/zonos-elements/p-4846796a.js +1 -0
  138. package/dist/zonos-elements/p-494c77a7.entry.js +1 -0
  139. package/dist/zonos-elements/{p-00c99619.entry.js → p-49f09b91.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-7c3ea8c6.system.entry.js → p-4a15c5c7.system.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-c8fcaddc.system.entry.js → p-4bee0bff.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-3eb33ba6.entry.js → p-4d93275c.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-472c97b6.entry.js → p-4ed71bd7.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-8bbad467.js → p-55f49f1e.js} +1 -1
  145. package/dist/zonos-elements/{p-114d8a14.system.entry.js → p-560aa686.system.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-0362c416.entry.js → p-639396bb.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-3c64448f.system.entry.js → p-67154df2.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-9dbbacd9.entry.js → p-684ed483.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-c743e43f.entry.js → p-89c210d6.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-9232db22.system.js → p-8c48b75e.system.js} +1 -1
  151. package/dist/zonos-elements/{p-40e68452.system.entry.js → p-8c5595d9.system.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-263c1639.entry.js → p-938803f4.entry.js} +1 -1
  153. package/dist/zonos-elements/p-956efa27.js +2 -0
  154. package/dist/zonos-elements/{p-8858537d.entry.js → p-a0e36ed3.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-b5bc4851.entry.js → p-a376a37f.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-1d4b6d59.system.js → p-a504f64f.system.js} +1 -1
  157. package/dist/zonos-elements/p-afe26069.entry.js +1 -0
  158. package/dist/zonos-elements/{p-81da740f.system.entry.js → p-b4601210.system.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-46d935ea.system.js → p-b51de536.system.js} +1 -1
  160. package/dist/zonos-elements/{p-84447396.entry.js → p-b6148206.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-643eeb24.system.js → p-b85be1ab.system.js} +1 -1
  162. package/dist/zonos-elements/{p-06ec9556.system.entry.js → p-c9348bb0.system.entry.js} +1 -1
  163. package/dist/zonos-elements/p-d2217f09.system.js +1 -0
  164. package/dist/zonos-elements/{p-7bd0ab43.system.entry.js → p-d856a200.system.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-754bdfdb.system.js → p-da060b1c.system.js} +1 -1
  166. package/dist/zonos-elements/{p-6f6d24da.entry.js → p-e1f6ab97.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-3a7546f0.system.entry.js → p-e5ae22a9.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-4c0f4461.system.entry.js → p-e98be2d0.system.entry.js} +1 -1
  169. package/dist/zonos-elements/p-e9b832c5.entry.js +1 -0
  170. package/dist/zonos-elements/p-eb392924.entry.js +1 -0
  171. package/dist/zonos-elements/{p-de3db699.system.entry.js → p-f141519c.system.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-39ae023c.system.entry.js → p-f367f2fe.system.entry.js} +1 -1
  173. package/dist/zonos-elements/p-ff95f098.js +1 -0
  174. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  175. package/dist/zonos-elements/zonos-elements.js +1 -1
  176. package/package.json +7 -6
  177. package/dist/esm-es5/cart-54eab7ab.js +0 -1
  178. package/dist/esm-es5/index-3617e24c.js +0 -2
  179. package/dist/zonos-elements/p-07c900e2.entry.js +0 -1
  180. package/dist/zonos-elements/p-197e4528.entry.js +0 -1
  181. package/dist/zonos-elements/p-3379ee13.js +0 -1
  182. package/dist/zonos-elements/p-35035961.entry.js +0 -1
  183. package/dist/zonos-elements/p-3ab985c6.entry.js +0 -1
  184. package/dist/zonos-elements/p-7aab4cf0.system.js +0 -1
  185. package/dist/zonos-elements/p-887e2f9a.system.entry.js +0 -1
  186. package/dist/zonos-elements/p-bec05c21.system.js +0 -2
  187. package/dist/zonos-elements/p-c1f4349c.system.entry.js +0 -1
  188. package/dist/zonos-elements/p-cf8aaa17.js +0 -2
  189. package/dist/zonos-elements/p-e1de2a1f.js +0 -1
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-3617e24c.js";import{e as zonosStoreFontFamily,z as zonosStore}from"./zonosStore-e0b7a5cf.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-35e8acce.js";import{i as isColorVariable}from"./isColorVariable-91c33804.js";var 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}";var ZonosShippingRichRadio=function(){function o(o){var i=this;registerInstance(this,o);this.radioSelected=createEvent(this,"radioSelected",7);this.handleRichRadioSelect=function(o){var s;i.selectedItem=o;(s=i.radioSelected)===null||s===void 0?void 0:s.emit(o)};this.getRadioItemStyleVariables=function(){var o=i.borderColor||zonosStore.appearance.colorSecondary;var s=isColorVariable(o)?"var(--amino-".concat(o,")"):o;return{"--border-radius":getBorderRadius(i.borderStyle),"--selected-border-color":s||"unset"}};this.items=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.theme=undefined;this.selectedItem=null}o.prototype.render=function(){var o=this;var i;return h(Host,{class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":zonosStoreFontFamily()})},(i=this.items)===null||i===void 0?void 0:i.map((function(i){var s;var e=((s=o.selectedItem)===null||s===void 0?void 0:s.value)===i.value;return h("div",{"aria-hidden":"true",class:classes(["zonos--shipping-rich-radio-item",e&&"selected"]),onClick:function(){return o.handleRichRadioSelect(i)}},h("input",{checked:e,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:i.value}),h("div",{class:"zonos--shipping-info"},h("div",{class:"zonos--shipping-detail"},h("zonos-text",{class:"zonos--shipping-label",type:"label"},i.label),(i.sublabel||i.caption)&&h("div",{class:"zonos--sub-detail"},i.sublabel&&h("zonos-text",{color:"gray-800"},i.sublabel),i.caption&&h("zonos-text",{color:"gray-400"},i.caption))),h("zonos-text",{type:"semiBoldLabel"},i.price)))})))};return o}();ZonosShippingRichRadio.style=zonosShippingRichRadioCss;export{ZonosShippingRichRadio as zonos_shipping_rich_radio};
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-36ff6342.js";import{e as zonosStoreFontFamily,z as zonosStore}from"./zonosStore-61e74f58.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-178a0a05.js";import{i as isColorVariable}from"./isColorVariable-91c33804.js";var 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}";var ZonosShippingRichRadio=function(){function o(o){var i=this;registerInstance(this,o);this.radioSelected=createEvent(this,"radioSelected",7);this.handleRichRadioSelect=function(o){var s;i.selectedItem=o;(s=i.radioSelected)===null||s===void 0?void 0:s.emit(o)};this.getRadioItemStyleVariables=function(){var o=i.borderColor||zonosStore.appearance.colorSecondary;var s=isColorVariable(o)?"var(--amino-".concat(o,")"):o;return{"--border-radius":getBorderRadius(i.borderStyle),"--selected-border-color":s||"unset"}};this.items=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.theme=undefined;this.selectedItem=null}o.prototype.render=function(){var o=this;var i;return h(Host,{class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":zonosStoreFontFamily()})},(i=this.items)===null||i===void 0?void 0:i.map((function(i){var s;var r=((s=o.selectedItem)===null||s===void 0?void 0:s.value)===i.value;return h("div",{"aria-hidden":"true",class:classes(["zonos--shipping-rich-radio-item",r&&"selected"]),onClick:function(){return o.handleRichRadioSelect(i)}},h("input",{checked:r,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:i.value}),h("div",{class:"zonos--shipping-info"},h("div",{class:"zonos--shipping-detail"},h("zonos-text",{class:"zonos--shipping-label",type:"label"},i.label),(i.sublabel||i.caption)&&h("div",{class:"zonos--sub-detail"},i.sublabel&&h("zonos-text",{color:"gray-800"},i.sublabel),i.caption&&h("zonos-text",{color:"gray-400"},i.caption))),h("zonos-text",{type:"semiBoldLabel"},i.price)))})))};return o}();ZonosShippingRichRadio.style=zonosShippingRichRadioCss;export{ZonosShippingRichRadio as zonos_shipping_rich_radio};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-3617e24c.js";import{e as zonosStoreFontFamily}from"./zonosStore-e0b7a5cf.js";import{c as classes}from"./classes-0d95c529.js";var textOptions={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var zonosTextCss=":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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--amino-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--amino-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--amino-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--amino-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--amino-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--amino-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--amino-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var ZonosText=function(){function e(e){registerInstance(this,e);this.class="";this.color="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.content=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=textOptions.body,t=e.size,s=e.tag,o=e.weight;var i=textOptions[this.type],a=i.size,n=i.tag,l=i.weight;var r=this.size||a||t;var z=this.weight||l||o;var x=n||s;var g=function(){switch(x){case"h2":return h("h2",null,h("slot",null));case"h3":return h("h3",null,h("slot",null));case"h4":return h("h4",null,h("slot",null));case"h5":return h("h5",null,h("slot",null));case"span":default:return h("span",null,h("slot",null))}};return h(Host,{class:classes(["zonos--text-size-".concat(r),"zonos--text-weight-".concat(z),this.class]),style:{"--color":this.color?"var(--amino-".concat(this.color,")"):"","--font-family":zonosStoreFontFamily()}},g())};return e}();ZonosText.style=zonosTextCss;export{ZonosText as zonos_text};
1
+ import{r as registerInstance,h,H as Host}from"./index-36ff6342.js";import{e as zonosStoreFontFamily}from"./zonosStore-61e74f58.js";import{c as classes}from"./classes-0d95c529.js";var textOptions={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var zonosTextCss=":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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--amino-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--amino-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--amino-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--amino-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--amino-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--amino-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--amino-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var ZonosText=function(){function t(t){registerInstance(this,t);this.class="";this.color="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.content=undefined;this.ready=false}t.prototype.componentDidRender=function(){var t=this;setTimeout((function(){t.ready=true}),100)};t.prototype.render=function(){var t=textOptions.body,e=t.size,s=t.tag,o=t.weight;var i=textOptions[this.type],a=i.size,n=i.tag,l=i.weight;var r=this.size||a||e;var z=this.weight||l||o;var x=n||s;var g=function(){switch(x){case"h2":return h("h2",null,h("slot",null));case"h3":return h("h3",null,h("slot",null));case"h4":return h("h4",null,h("slot",null));case"h5":return h("h5",null,h("slot",null));case"span":default:return h("span",null,h("slot",null))}};return h(Host,{class:classes(["zonos--text-size-".concat(r),"zonos--text-weight-".concat(z),this.class]),style:{"--color":this.color?"var(--amino-".concat(this.color,")"):"","--font-family":zonosStoreFontFamily()}},g())};return t}();ZonosText.style=zonosTextCss;export{ZonosText as zonos_text};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a<n;a++){if(o||!(a in r)){if(!o)o=Array.prototype.slice.call(r,0,a);o[a]=r[a]}}return e.concat(o||Array.prototype.slice.call(r))};import{g as getRenderingRef,f as forceUpdate}from"./index-3617e24c.js";var appendToMap=function(e,r,t){var a=e.get(r);if(!a){e.set(r,[t])}else if(!a.includes(t)){a.push(t)}};var debounce=function(e,r){var t;return function(){var a=[];for(var n=0;n<arguments.length;n++){a[n]=arguments[n]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;e.apply(void 0,a)}),r)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var r=0,t=e.keys();r<t.length;r++){var a=t[r];e.set(a,e.get(a).filter(isConnected))}}),2e3);var stencilSubscription=function(){if(typeof getRenderingRef!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(r){var t=getRenderingRef();if(t){appendToMap(e,r,t)}},set:function(r){var t=e.get(r);if(t){e.set(r,t.filter(forceUpdate))}cleanupElements(e)},reset:function(){e.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(e)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,r){if(r===void 0){r=function(e,r){return e!==r}}var t=unwrap(e);var a=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var n={dispose:[],get:[],set:[],reset:[]};var o=function(){var r;a=new Map(Object.entries((r=unwrap(e))!==null&&r!==void 0?r:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));o()};var s=function(e){n.get.forEach((function(r){return r(e)}));return a.get(e)};var c=function(e,t){var o=a.get(e);if(r(t,o,e)){a.set(e,t);n.set.forEach((function(r){return r(e,t,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(e,r){return s(r)},ownKeys:function(e){return Array.from(a.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,r){return a.has(r)},set:function(e,r,t){c(r,t);return true}});var f=function(e,r){n[e].push(r);return function(){removeFromArray(n[e],r)}};var v=function(r,t){var a=f("set",(function(e,a){if(e===r){t(a)}}));var n=f("reset",(function(){return t(unwrap(e)[r])}));return function(){a();n()}};var l=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=e.reduce((function(e,r){if(r.set){e.push(f("set",r.set))}if(r.get){e.push(f("get",r.get))}if(r.reset){e.push(f("reset",r.reset))}if(r.dispose){e.push(f("dispose",r.dispose))}return e}),[]);return function(){return t.forEach((function(e){return e()}))}};var _=function(e){var r=a.get(e);n.set.forEach((function(t){return t(e,r,r)}))};return{state:u,get:s,set:c,on:f,onChange:v,use:l,dispose:i,reset:o,forceUpdate:_}};var removeFromArray=function(e,r){var t=e.indexOf(r);if(t>=0){e[t]=e[e.length-1];e.length--}};var createStore=function(e,r){var t=createObservableMap(e,r);t.use(stencilSubscription());return t};function listCacheClear(){this.__data__=[];this.size=0}var _listCacheClear=listCacheClear;function eq(e,r){return e===r||e!==e&&r!==r}var eq_1=eq;function assocIndexOf(e,r){var t=e.length;while(t--){if(eq_1(e[t][0],r)){return t}}return-1}var _assocIndexOf=assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(e){var r=this.__data__,t=_assocIndexOf(r,e);if(t<0){return false}var a=r.length-1;if(t==a){r.pop()}else{splice.call(r,t,1)}--this.size;return true}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var r=this.__data__,t=_assocIndexOf(r,e);return t<0?undefined:r[t][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,r){var t=this.__data__,a=_assocIndexOf(t,e);if(a<0){++this.size;t.push([e,r])}else{t[a][1]=r}return this}var _listCacheSet=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}ListCache.prototype.clear=_listCacheClear;ListCache.prototype["delete"]=_listCacheDelete;ListCache.prototype.get=_listCacheGet;ListCache.prototype.has=_listCacheHas;ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache;this.size=0}var _stackClear=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas;var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function createCommonjsModule(e,r,t){return t={path:r,exports:{},require:function(e,r){return commonjsRequire()}},e(t,t.exports),t.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=_freeGlobal||freeSelf||Function("return this")();var _root=root;var Symbol=_root.Symbol;var _Symbol=Symbol;var objectProto$a=Object.prototype;var hasOwnProperty$8=objectProto$a.hasOwnProperty;var nativeObjectToString$1=objectProto$a.toString;var symToStringTag$1=_Symbol?_Symbol.toStringTag:undefined;function getRawTag(e){var r=hasOwnProperty$8.call(e,symToStringTag$1),t=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var a=true}catch(e){}var n=nativeObjectToString$1.call(e);if(a){if(r){e[symToStringTag$1]=t}else{delete e[symToStringTag$1]}}return n}var _getRawTag=getRawTag;var objectProto$9=Object.prototype;var nativeObjectToString=objectProto$9.toString;function objectToString(e){return nativeObjectToString.call(e)}var _objectToString=objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}var _baseGetTag=baseGetTag;function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var isObject_1=isObject;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e)){return false}var r=_baseGetTag(e);return r==funcTag$1||r==genTag||r==asyncTag||r==proxyTag}var isFunction_1=isFunction;var coreJsData=_root["__core-js_shared__"];var _coreJsData=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked;var funcProto$2=Function.prototype;var funcToString$2=funcProto$2.toString;function toSource(e){if(e!=null){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto$1=Function.prototype,objectProto$8=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$7=objectProto$8.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_1(e)||_isMasked(e)){return false}var r=isFunction_1(e)?reIsNative:reIsHostCtor;return r.test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,r){return e==null?undefined:e[r]}var _getValue=getValue;function getNative(e,r){var t=_getValue(e,r);return _baseIsNative(t)?t:undefined}var _getNative=getNative;var Map$1=_getNative(_root,"Map");var _Map=Map$1;var nativeCreate=_getNative(Object,"create");var _nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{};this.size=0}var _hashClear=hashClear;function hashDelete(e){var r=this.has(e)&&delete this.__data__[e];this.size-=r?1:0;return r}var _hashDelete=hashDelete;var HASH_UNDEFINED$1="__lodash_hash_undefined__";var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet(e){var r=this.__data__;if(_nativeCreate){var t=r[e];return t===HASH_UNDEFINED$1?undefined:t}return hasOwnProperty$6.call(r,e)?r[e]:undefined}var _hashGet=hashGet;var objectProto$6=Object.prototype;var hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas(e){var r=this.__data__;return _nativeCreate?r[e]!==undefined:hasOwnProperty$5.call(r,e)}var _hashHas=hashHas;var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(e,r){var t=this.__data__;this.size+=this.has(e)?0:1;t[e]=_nativeCreate&&r===undefined?HASH_UNDEFINED:r;return this}var _hashSet=hashSet;function Hash(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}Hash.prototype.clear=_hashClear;Hash.prototype["delete"]=_hashDelete;Hash.prototype.get=_hashGet;Hash.prototype.has=_hashHas;Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0;this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable;function getMapData(e,r){var t=e.__data__;return _isKeyable(r)?t[typeof r=="string"?"string":"hash"]:t.map}var _getMapData=getMapData;function mapCacheDelete(e){var r=_getMapData(this,e)["delete"](e);this.size-=r?1:0;return r}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,r){var t=_getMapData(this,e),a=t.size;t.set(e,r);this.size+=t.size==a?0:1;return this}var _mapCacheSet=mapCacheSet;function MapCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}MapCache.prototype.clear=_mapCacheClear;MapCache.prototype["delete"]=_mapCacheDelete;MapCache.prototype.get=_mapCacheGet;MapCache.prototype.has=_mapCacheHas;MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache;var LARGE_ARRAY_SIZE=200;function stackSet(e,r){var t=this.__data__;if(t instanceof _ListCache){var a=t.__data__;if(!_Map||a.length<LARGE_ARRAY_SIZE-1){a.push([e,r]);this.size=++t.size;return this}t=this.__data__=new _MapCache(a)}t.set(e,r);this.size=t.size;return this}var _stackSet=stackSet;function Stack(e){var r=this.__data__=new _ListCache(e);this.size=r.size}Stack.prototype.clear=_stackClear;Stack.prototype["delete"]=_stackDelete;Stack.prototype.get=_stackGet;Stack.prototype.has=_stackHas;Stack.prototype.set=_stackSet;var _Stack=Stack;var defineProperty=function(){try{var e=_getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var _defineProperty=defineProperty;function baseAssignValue(e,r,t){if(r=="__proto__"&&_defineProperty){_defineProperty(e,r,{configurable:true,enumerable:true,value:t,writable:true})}else{e[r]=t}}var _baseAssignValue=baseAssignValue;function assignMergeValue(e,r,t){if(t!==undefined&&!eq_1(e[r],t)||t===undefined&&!(r in e)){_baseAssignValue(e,r,t)}}var _assignMergeValue=assignMergeValue;function createBaseFor(e){return function(r,t,a){var n=-1,o=Object(r),i=a(r),s=i.length;while(s--){var c=i[e?s:++n];if(t(o[c],c,o)===false){break}}return r}}var _createBaseFor=createBaseFor;var baseFor=_createBaseFor();var _baseFor=baseFor;var _cloneBuffer=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n?_root.Buffer:undefined,i=o?o.allocUnsafe:undefined;function s(e,r){if(r){return e.slice()}var t=e.length,a=i?i(t):new e.constructor(t);e.copy(a);return a}e.exports=s}));var Uint8Array=_root.Uint8Array;var _Uint8Array=Uint8Array;function cloneArrayBuffer(e){var r=new e.constructor(e.byteLength);new _Uint8Array(r).set(new _Uint8Array(e));return r}var _cloneArrayBuffer=cloneArrayBuffer;function cloneTypedArray(e,r){var t=r?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray;function copyArray(e,r){var t=-1,a=e.length;r||(r=Array(a));while(++t<a){r[t]=e[t]}return r}var _copyArray=copyArray;var objectCreate=Object.create;var baseCreate=function(){function e(){}return function(r){if(!isObject_1(r)){return{}}if(objectCreate){return objectCreate(r)}e.prototype=r;var t=new e;e.prototype=undefined;return t}}();var _baseCreate=baseCreate;function overArg(e,r){return function(t){return e(r(t))}}var _overArg=overArg;var getPrototype=_overArg(Object.getPrototypeOf,Object);var _getPrototype=getPrototype;var objectProto$5=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||objectProto$5;return e===t}var _isPrototype=isPrototype;function initCloneObject(e){return typeof e.constructor=="function"&&!_isPrototype(e)?_baseCreate(_getPrototype(e)):{}}var _initCloneObject=initCloneObject;function isObjectLike(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike;var argsTag$1="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$1}var _baseIsArguments=baseIsArguments;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;var propertyIsEnumerable=objectProto$4.propertyIsEnumerable;var isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")};var isArguments_1=isArguments;var isArray=Array.isArray;var isArray_1=isArray;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}var isLength_1=isLength;function isArrayLike(e){return e!=null&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function isArrayLikeObject(e){return isObjectLike_1(e)&&isArrayLike_1(e)}var isArrayLikeObject_1=isArrayLikeObject;function stubFalse(){return false}var stubFalse_1=stubFalse;var isBuffer_1=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n?_root.Buffer:undefined;var i=o?o.isBuffer:undefined;var s=i||stubFalse_1;e.exports=s}));var objectTag$1="[object Object]";var funcProto=Function.prototype,objectProto$3=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$3=objectProto$3.hasOwnProperty;var objectCtorString=funcToString.call(Object);function isPlainObject(e){if(!isObjectLike_1(e)||_baseGetTag(e)!=objectTag$1){return false}var r=_getPrototype(e);if(r===null){return true}var t=hasOwnProperty$3.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&funcToString.call(t)==objectCtorString}var isPlainObject_1=isPlainObject;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(r){return e(r)}}var _baseUnary=baseUnary;var _nodeUtil=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n&&_freeGlobal.process;var i=function(){try{var e=a&&a.require&&a.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}));var nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var isTypedArray_1=isTypedArray;function safeGet(e,r){if(r==="constructor"&&typeof e[r]==="function"){return}if(r=="__proto__"){return}return e[r]}var _safeGet=safeGet;var objectProto$2=Object.prototype;var hasOwnProperty$2=objectProto$2.hasOwnProperty;function assignValue(e,r,t){var a=e[r];if(!(hasOwnProperty$2.call(e,r)&&eq_1(a,t))||t===undefined&&!(r in e)){_baseAssignValue(e,r,t)}}var _assignValue=assignValue;function copyObject(e,r,t,a){var n=!t;t||(t={});var o=-1,i=r.length;while(++o<i){var s=r[o];var c=a?a(t[s],e[s],s,t,e):undefined;if(c===undefined){c=e[s]}if(n){_baseAssignValue(t,s,c)}else{_assignValue(t,s,c)}}return t}var _copyObject=copyObject;function baseTimes(e,r){var t=-1,a=Array(e);while(++t<e){a[t]=r(t)}return a}var _baseTimes=baseTimes;var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?MAX_SAFE_INTEGER:r;return!!r&&(t=="number"||t!="symbol"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<r)}var _isIndex=isIndex;var objectProto$1=Object.prototype;var hasOwnProperty$1=objectProto$1.hasOwnProperty;function arrayLikeKeys(e,r){var t=isArray_1(e),a=!t&&isArguments_1(e),n=!t&&!a&&isBuffer_1(e),o=!t&&!a&&!n&&isTypedArray_1(e),i=t||a||n||o,s=i?_baseTimes(e.length,String):[],c=s.length;for(var u in e){if((r||hasOwnProperty$1.call(e,u))&&!(i&&(u=="length"||n&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_isIndex(u,c)))){s.push(u)}}return s}var _arrayLikeKeys=arrayLikeKeys;function nativeKeysIn(e){var r=[];if(e!=null){for(var t in Object(e)){r.push(t)}}return r}var _nativeKeysIn=nativeKeysIn;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn(e){if(!isObject_1(e)){return _nativeKeysIn(e)}var r=_isPrototype(e),t=[];for(var a in e){if(!(a=="constructor"&&(r||!hasOwnProperty.call(e,a)))){t.push(a)}}return t}var _baseKeysIn=baseKeysIn;function keysIn(e){return isArrayLike_1(e)?_arrayLikeKeys(e,true):_baseKeysIn(e)}var keysIn_1=keysIn;function toPlainObject(e){return _copyObject(e,keysIn_1(e))}var toPlainObject_1=toPlainObject;function baseMergeDeep(e,r,t,a,n,o,i){var s=_safeGet(e,t),c=_safeGet(r,t),u=i.get(c);if(u){_assignMergeValue(e,t,u);return}var f=o?o(s,c,t+"",e,r,i):undefined;var v=f===undefined;if(v){var l=isArray_1(c),_=!l&&isBuffer_1(c),g=!l&&!_&&isTypedArray_1(c);f=c;if(l||_||g){if(isArray_1(s)){f=s}else if(isArrayLikeObject_1(s)){f=_copyArray(s)}else if(_){v=false;f=_cloneBuffer(c,true)}else if(g){v=false;f=_cloneTypedArray(c,true)}else{f=[]}}else if(isPlainObject_1(c)||isArguments_1(c)){f=s;if(isArguments_1(s)){f=toPlainObject_1(s)}else if(!isObject_1(s)||isFunction_1(s)){f=_initCloneObject(c)}}else{v=false}}if(v){i.set(c,f);n(f,c,a,o,i);i["delete"](c)}_assignMergeValue(e,t,f)}var _baseMergeDeep=baseMergeDeep;function baseMerge(e,r,t,a,n){if(e===r){return}_baseFor(r,(function(o,i){n||(n=new _Stack);if(isObject_1(o)){_baseMergeDeep(e,r,i,t,baseMerge,a,n)}else{var s=a?a(_safeGet(e,i),o,i+"",e,r,n):undefined;if(s===undefined){s=o}_assignMergeValue(e,i,s)}}),keysIn_1)}var _baseMerge=baseMerge;function identity(e){return e}var identity_1=identity;function apply(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var _apply=apply;var nativeMax=Math.max;function overRest(e,r,t){r=nativeMax(r===undefined?e.length-1:r,0);return function(){var a=arguments,n=-1,o=nativeMax(a.length-r,0),i=Array(o);while(++n<o){i[n]=a[r+n]}n=-1;var s=Array(r+1);while(++n<r){s[n]=a[n]}s[r]=t(i);return _apply(e,this,s)}}var _overRest=overRest;function constant(e){return function(){return e}}var constant_1=constant;var baseSetToString=!_defineProperty?identity_1:function(e,r){return _defineProperty(e,"toString",{configurable:true,enumerable:false,value:constant_1(r),writable:true})};var _baseSetToString=baseSetToString;var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(e){var r=0,t=0;return function(){var a=nativeNow(),n=HOT_SPAN-(a-t);t=a;if(n>0){if(++r>=HOT_COUNT){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var _shortOut=shortOut;var setToString=_shortOut(_baseSetToString);var _setToString=setToString;function baseRest(e,r){return _setToString(_overRest(e,r,identity_1),e+"")}var _baseRest=baseRest;function isIterateeCall(e,r,t){if(!isObject_1(t)){return false}var a=typeof r;if(a=="number"?isArrayLike_1(t)&&_isIndex(r,t.length):a=="string"&&r in t){return eq_1(t[r],e)}return false}var _isIterateeCall=isIterateeCall;function createAssigner(e){return _baseRest((function(r,t){var a=-1,n=t.length,o=n>1?t[n-1]:undefined,i=n>2?t[2]:undefined;o=e.length>3&&typeof o=="function"?(n--,o):undefined;if(i&&_isIterateeCall(t[0],t[1],i)){o=n<3?undefined:o;n=1}r=Object(r);while(++a<n){var s=t[a];if(s){e(r,s,a,o)}}return r}))}var _createAssigner=createAssigner;var merge=_createAssigner((function(e,r,t){_baseMerge(e,r,t)}));var merge_1=merge;var mergeConfig=function(e,r){var t=[];for(var a=2;a<arguments.length;a++){t[a-2]=arguments[a]}var n=__spreadArray([e,r],t,true).filter(Boolean);return merge_1.apply(null,n)};var _d=createStore((function(){return{appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:false,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),reset=_d.reset,zonosStore=_d.state;var savedZonosSettings=null;var zonosStoreInitSetting=function(e){var r=e.overrideSettings,t=e.zonosSettings;var a,n,o;reset();if(t){savedZonosSettings=t}zonosStore.appearance=mergeConfig(zonosStore.appearance,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,r.appearance);zonosStore.checkoutSettings=mergeConfig(zonosStore.checkoutSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,r.checkoutSettings);zonosStore.helloSettings=mergeConfig(zonosStore.helloSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,r.helloSettings);zonosStore.onlineStoreSettings=mergeConfig(zonosStore.onlineStoreSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.onlineStoreSettings)||(t===null||t===void 0?void 0:t.onlineStoreSettings)||null,r.onlineStoreSettings);zonosStore.loadedConfig=true;zonosStore.organizationName=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.name)||"";zonosStore.storeId=((o=(n=t===null||t===void 0?void 0:t.organization)===null||n===void 0?void 0:n.references)===null||o===void 0?void 0:o.storeId)||null;zonosStore.currencyConverter=r.currencyConverter};var zonosStoreFontFamily=function(){var e=zonosStore.appearance.fontFamily||"Inter";return e};export{_root as _,createCommonjsModule as a,commonjsGlobal as b,createStore as c,zonosStoreInitSetting as d,zonosStoreFontFamily as e,_baseGetTag as f,isObject_1 as g,isObjectLike_1 as i,mergeConfig as m,zonosStore as z};
1
+ var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a<n;a++){if(o||!(a in r)){if(!o)o=Array.prototype.slice.call(r,0,a);o[a]=r[a]}}return e.concat(o||Array.prototype.slice.call(r))};import{g as getRenderingRef,f as forceUpdate}from"./index-36ff6342.js";var appendToMap=function(e,r,t){var a=e.get(r);if(!a){e.set(r,[t])}else if(!a.includes(t)){a.push(t)}};var debounce=function(e,r){var t;return function(){var a=[];for(var n=0;n<arguments.length;n++){a[n]=arguments[n]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;e.apply(void 0,a)}),r)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var r=0,t=e.keys();r<t.length;r++){var a=t[r];e.set(a,e.get(a).filter(isConnected))}}),2e3);var stencilSubscription=function(){if(typeof getRenderingRef!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(r){var t=getRenderingRef();if(t){appendToMap(e,r,t)}},set:function(r){var t=e.get(r);if(t){e.set(r,t.filter(forceUpdate))}cleanupElements(e)},reset:function(){e.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(e)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,r){if(r===void 0){r=function(e,r){return e!==r}}var t=unwrap(e);var a=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var n={dispose:[],get:[],set:[],reset:[]};var o=function(){var r;a=new Map(Object.entries((r=unwrap(e))!==null&&r!==void 0?r:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));o()};var s=function(e){n.get.forEach((function(r){return r(e)}));return a.get(e)};var c=function(e,t){var o=a.get(e);if(r(t,o,e)){a.set(e,t);n.set.forEach((function(r){return r(e,t,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(e,r){return s(r)},ownKeys:function(e){return Array.from(a.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,r){return a.has(r)},set:function(e,r,t){c(r,t);return true}});var f=function(e,r){n[e].push(r);return function(){removeFromArray(n[e],r)}};var v=function(r,t){var a=f("set",(function(e,a){if(e===r){t(a)}}));var n=f("reset",(function(){return t(unwrap(e)[r])}));return function(){a();n()}};var l=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=e.reduce((function(e,r){if(r.set){e.push(f("set",r.set))}if(r.get){e.push(f("get",r.get))}if(r.reset){e.push(f("reset",r.reset))}if(r.dispose){e.push(f("dispose",r.dispose))}return e}),[]);return function(){return t.forEach((function(e){return e()}))}};var _=function(e){var r=a.get(e);n.set.forEach((function(t){return t(e,r,r)}))};return{state:u,get:s,set:c,on:f,onChange:v,use:l,dispose:i,reset:o,forceUpdate:_}};var removeFromArray=function(e,r){var t=e.indexOf(r);if(t>=0){e[t]=e[e.length-1];e.length--}};var createStore=function(e,r){var t=createObservableMap(e,r);t.use(stencilSubscription());return t};function listCacheClear(){this.__data__=[];this.size=0}var _listCacheClear=listCacheClear;function eq(e,r){return e===r||e!==e&&r!==r}var eq_1=eq;function assocIndexOf(e,r){var t=e.length;while(t--){if(eq_1(e[t][0],r)){return t}}return-1}var _assocIndexOf=assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(e){var r=this.__data__,t=_assocIndexOf(r,e);if(t<0){return false}var a=r.length-1;if(t==a){r.pop()}else{splice.call(r,t,1)}--this.size;return true}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var r=this.__data__,t=_assocIndexOf(r,e);return t<0?undefined:r[t][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,r){var t=this.__data__,a=_assocIndexOf(t,e);if(a<0){++this.size;t.push([e,r])}else{t[a][1]=r}return this}var _listCacheSet=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}ListCache.prototype.clear=_listCacheClear;ListCache.prototype["delete"]=_listCacheDelete;ListCache.prototype.get=_listCacheGet;ListCache.prototype.has=_listCacheHas;ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache;this.size=0}var _stackClear=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas;var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function createCommonjsModule(e,r,t){return t={path:r,exports:{},require:function(e,r){return commonjsRequire()}},e(t,t.exports),t.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=_freeGlobal||freeSelf||Function("return this")();var _root=root;var Symbol=_root.Symbol;var _Symbol=Symbol;var objectProto$a=Object.prototype;var hasOwnProperty$8=objectProto$a.hasOwnProperty;var nativeObjectToString$1=objectProto$a.toString;var symToStringTag$1=_Symbol?_Symbol.toStringTag:undefined;function getRawTag(e){var r=hasOwnProperty$8.call(e,symToStringTag$1),t=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var a=true}catch(e){}var n=nativeObjectToString$1.call(e);if(a){if(r){e[symToStringTag$1]=t}else{delete e[symToStringTag$1]}}return n}var _getRawTag=getRawTag;var objectProto$9=Object.prototype;var nativeObjectToString=objectProto$9.toString;function objectToString(e){return nativeObjectToString.call(e)}var _objectToString=objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}var _baseGetTag=baseGetTag;function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var isObject_1=isObject;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e)){return false}var r=_baseGetTag(e);return r==funcTag$1||r==genTag||r==asyncTag||r==proxyTag}var isFunction_1=isFunction;var coreJsData=_root["__core-js_shared__"];var _coreJsData=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked;var funcProto$2=Function.prototype;var funcToString$2=funcProto$2.toString;function toSource(e){if(e!=null){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto$1=Function.prototype,objectProto$8=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$7=objectProto$8.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_1(e)||_isMasked(e)){return false}var r=isFunction_1(e)?reIsNative:reIsHostCtor;return r.test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,r){return e==null?undefined:e[r]}var _getValue=getValue;function getNative(e,r){var t=_getValue(e,r);return _baseIsNative(t)?t:undefined}var _getNative=getNative;var Map$1=_getNative(_root,"Map");var _Map=Map$1;var nativeCreate=_getNative(Object,"create");var _nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{};this.size=0}var _hashClear=hashClear;function hashDelete(e){var r=this.has(e)&&delete this.__data__[e];this.size-=r?1:0;return r}var _hashDelete=hashDelete;var HASH_UNDEFINED$1="__lodash_hash_undefined__";var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet(e){var r=this.__data__;if(_nativeCreate){var t=r[e];return t===HASH_UNDEFINED$1?undefined:t}return hasOwnProperty$6.call(r,e)?r[e]:undefined}var _hashGet=hashGet;var objectProto$6=Object.prototype;var hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas(e){var r=this.__data__;return _nativeCreate?r[e]!==undefined:hasOwnProperty$5.call(r,e)}var _hashHas=hashHas;var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(e,r){var t=this.__data__;this.size+=this.has(e)?0:1;t[e]=_nativeCreate&&r===undefined?HASH_UNDEFINED:r;return this}var _hashSet=hashSet;function Hash(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}Hash.prototype.clear=_hashClear;Hash.prototype["delete"]=_hashDelete;Hash.prototype.get=_hashGet;Hash.prototype.has=_hashHas;Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0;this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable;function getMapData(e,r){var t=e.__data__;return _isKeyable(r)?t[typeof r=="string"?"string":"hash"]:t.map}var _getMapData=getMapData;function mapCacheDelete(e){var r=_getMapData(this,e)["delete"](e);this.size-=r?1:0;return r}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,r){var t=_getMapData(this,e),a=t.size;t.set(e,r);this.size+=t.size==a?0:1;return this}var _mapCacheSet=mapCacheSet;function MapCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}MapCache.prototype.clear=_mapCacheClear;MapCache.prototype["delete"]=_mapCacheDelete;MapCache.prototype.get=_mapCacheGet;MapCache.prototype.has=_mapCacheHas;MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache;var LARGE_ARRAY_SIZE=200;function stackSet(e,r){var t=this.__data__;if(t instanceof _ListCache){var a=t.__data__;if(!_Map||a.length<LARGE_ARRAY_SIZE-1){a.push([e,r]);this.size=++t.size;return this}t=this.__data__=new _MapCache(a)}t.set(e,r);this.size=t.size;return this}var _stackSet=stackSet;function Stack(e){var r=this.__data__=new _ListCache(e);this.size=r.size}Stack.prototype.clear=_stackClear;Stack.prototype["delete"]=_stackDelete;Stack.prototype.get=_stackGet;Stack.prototype.has=_stackHas;Stack.prototype.set=_stackSet;var _Stack=Stack;var defineProperty=function(){try{var e=_getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var _defineProperty=defineProperty;function baseAssignValue(e,r,t){if(r=="__proto__"&&_defineProperty){_defineProperty(e,r,{configurable:true,enumerable:true,value:t,writable:true})}else{e[r]=t}}var _baseAssignValue=baseAssignValue;function assignMergeValue(e,r,t){if(t!==undefined&&!eq_1(e[r],t)||t===undefined&&!(r in e)){_baseAssignValue(e,r,t)}}var _assignMergeValue=assignMergeValue;function createBaseFor(e){return function(r,t,a){var n=-1,o=Object(r),i=a(r),s=i.length;while(s--){var c=i[e?s:++n];if(t(o[c],c,o)===false){break}}return r}}var _createBaseFor=createBaseFor;var baseFor=_createBaseFor();var _baseFor=baseFor;var _cloneBuffer=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n?_root.Buffer:undefined,i=o?o.allocUnsafe:undefined;function s(e,r){if(r){return e.slice()}var t=e.length,a=i?i(t):new e.constructor(t);e.copy(a);return a}e.exports=s}));var Uint8Array=_root.Uint8Array;var _Uint8Array=Uint8Array;function cloneArrayBuffer(e){var r=new e.constructor(e.byteLength);new _Uint8Array(r).set(new _Uint8Array(e));return r}var _cloneArrayBuffer=cloneArrayBuffer;function cloneTypedArray(e,r){var t=r?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray;function copyArray(e,r){var t=-1,a=e.length;r||(r=Array(a));while(++t<a){r[t]=e[t]}return r}var _copyArray=copyArray;var objectCreate=Object.create;var baseCreate=function(){function e(){}return function(r){if(!isObject_1(r)){return{}}if(objectCreate){return objectCreate(r)}e.prototype=r;var t=new e;e.prototype=undefined;return t}}();var _baseCreate=baseCreate;function overArg(e,r){return function(t){return e(r(t))}}var _overArg=overArg;var getPrototype=_overArg(Object.getPrototypeOf,Object);var _getPrototype=getPrototype;var objectProto$5=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||objectProto$5;return e===t}var _isPrototype=isPrototype;function initCloneObject(e){return typeof e.constructor=="function"&&!_isPrototype(e)?_baseCreate(_getPrototype(e)):{}}var _initCloneObject=initCloneObject;function isObjectLike(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike;var argsTag$1="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$1}var _baseIsArguments=baseIsArguments;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;var propertyIsEnumerable=objectProto$4.propertyIsEnumerable;var isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")};var isArguments_1=isArguments;var isArray=Array.isArray;var isArray_1=isArray;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}var isLength_1=isLength;function isArrayLike(e){return e!=null&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function isArrayLikeObject(e){return isObjectLike_1(e)&&isArrayLike_1(e)}var isArrayLikeObject_1=isArrayLikeObject;function stubFalse(){return false}var stubFalse_1=stubFalse;var isBuffer_1=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n?_root.Buffer:undefined;var i=o?o.isBuffer:undefined;var s=i||stubFalse_1;e.exports=s}));var objectTag$1="[object Object]";var funcProto=Function.prototype,objectProto$3=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$3=objectProto$3.hasOwnProperty;var objectCtorString=funcToString.call(Object);function isPlainObject(e){if(!isObjectLike_1(e)||_baseGetTag(e)!=objectTag$1){return false}var r=_getPrototype(e);if(r===null){return true}var t=hasOwnProperty$3.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&funcToString.call(t)==objectCtorString}var isPlainObject_1=isPlainObject;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(r){return e(r)}}var _baseUnary=baseUnary;var _nodeUtil=createCommonjsModule((function(e,r){var t=r&&!r.nodeType&&r;var a=t&&"object"=="object"&&e&&!e.nodeType&&e;var n=a&&a.exports===t;var o=n&&_freeGlobal.process;var i=function(){try{var e=a&&a.require&&a.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}));var nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var isTypedArray_1=isTypedArray;function safeGet(e,r){if(r==="constructor"&&typeof e[r]==="function"){return}if(r=="__proto__"){return}return e[r]}var _safeGet=safeGet;var objectProto$2=Object.prototype;var hasOwnProperty$2=objectProto$2.hasOwnProperty;function assignValue(e,r,t){var a=e[r];if(!(hasOwnProperty$2.call(e,r)&&eq_1(a,t))||t===undefined&&!(r in e)){_baseAssignValue(e,r,t)}}var _assignValue=assignValue;function copyObject(e,r,t,a){var n=!t;t||(t={});var o=-1,i=r.length;while(++o<i){var s=r[o];var c=a?a(t[s],e[s],s,t,e):undefined;if(c===undefined){c=e[s]}if(n){_baseAssignValue(t,s,c)}else{_assignValue(t,s,c)}}return t}var _copyObject=copyObject;function baseTimes(e,r){var t=-1,a=Array(e);while(++t<e){a[t]=r(t)}return a}var _baseTimes=baseTimes;var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?MAX_SAFE_INTEGER:r;return!!r&&(t=="number"||t!="symbol"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<r)}var _isIndex=isIndex;var objectProto$1=Object.prototype;var hasOwnProperty$1=objectProto$1.hasOwnProperty;function arrayLikeKeys(e,r){var t=isArray_1(e),a=!t&&isArguments_1(e),n=!t&&!a&&isBuffer_1(e),o=!t&&!a&&!n&&isTypedArray_1(e),i=t||a||n||o,s=i?_baseTimes(e.length,String):[],c=s.length;for(var u in e){if((r||hasOwnProperty$1.call(e,u))&&!(i&&(u=="length"||n&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_isIndex(u,c)))){s.push(u)}}return s}var _arrayLikeKeys=arrayLikeKeys;function nativeKeysIn(e){var r=[];if(e!=null){for(var t in Object(e)){r.push(t)}}return r}var _nativeKeysIn=nativeKeysIn;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn(e){if(!isObject_1(e)){return _nativeKeysIn(e)}var r=_isPrototype(e),t=[];for(var a in e){if(!(a=="constructor"&&(r||!hasOwnProperty.call(e,a)))){t.push(a)}}return t}var _baseKeysIn=baseKeysIn;function keysIn(e){return isArrayLike_1(e)?_arrayLikeKeys(e,true):_baseKeysIn(e)}var keysIn_1=keysIn;function toPlainObject(e){return _copyObject(e,keysIn_1(e))}var toPlainObject_1=toPlainObject;function baseMergeDeep(e,r,t,a,n,o,i){var s=_safeGet(e,t),c=_safeGet(r,t),u=i.get(c);if(u){_assignMergeValue(e,t,u);return}var f=o?o(s,c,t+"",e,r,i):undefined;var v=f===undefined;if(v){var l=isArray_1(c),_=!l&&isBuffer_1(c),g=!l&&!_&&isTypedArray_1(c);f=c;if(l||_||g){if(isArray_1(s)){f=s}else if(isArrayLikeObject_1(s)){f=_copyArray(s)}else if(_){v=false;f=_cloneBuffer(c,true)}else if(g){v=false;f=_cloneTypedArray(c,true)}else{f=[]}}else if(isPlainObject_1(c)||isArguments_1(c)){f=s;if(isArguments_1(s)){f=toPlainObject_1(s)}else if(!isObject_1(s)||isFunction_1(s)){f=_initCloneObject(c)}}else{v=false}}if(v){i.set(c,f);n(f,c,a,o,i);i["delete"](c)}_assignMergeValue(e,t,f)}var _baseMergeDeep=baseMergeDeep;function baseMerge(e,r,t,a,n){if(e===r){return}_baseFor(r,(function(o,i){n||(n=new _Stack);if(isObject_1(o)){_baseMergeDeep(e,r,i,t,baseMerge,a,n)}else{var s=a?a(_safeGet(e,i),o,i+"",e,r,n):undefined;if(s===undefined){s=o}_assignMergeValue(e,i,s)}}),keysIn_1)}var _baseMerge=baseMerge;function identity(e){return e}var identity_1=identity;function apply(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var _apply=apply;var nativeMax=Math.max;function overRest(e,r,t){r=nativeMax(r===undefined?e.length-1:r,0);return function(){var a=arguments,n=-1,o=nativeMax(a.length-r,0),i=Array(o);while(++n<o){i[n]=a[r+n]}n=-1;var s=Array(r+1);while(++n<r){s[n]=a[n]}s[r]=t(i);return _apply(e,this,s)}}var _overRest=overRest;function constant(e){return function(){return e}}var constant_1=constant;var baseSetToString=!_defineProperty?identity_1:function(e,r){return _defineProperty(e,"toString",{configurable:true,enumerable:false,value:constant_1(r),writable:true})};var _baseSetToString=baseSetToString;var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(e){var r=0,t=0;return function(){var a=nativeNow(),n=HOT_SPAN-(a-t);t=a;if(n>0){if(++r>=HOT_COUNT){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var _shortOut=shortOut;var setToString=_shortOut(_baseSetToString);var _setToString=setToString;function baseRest(e,r){return _setToString(_overRest(e,r,identity_1),e+"")}var _baseRest=baseRest;function isIterateeCall(e,r,t){if(!isObject_1(t)){return false}var a=typeof r;if(a=="number"?isArrayLike_1(t)&&_isIndex(r,t.length):a=="string"&&r in t){return eq_1(t[r],e)}return false}var _isIterateeCall=isIterateeCall;function createAssigner(e){return _baseRest((function(r,t){var a=-1,n=t.length,o=n>1?t[n-1]:undefined,i=n>2?t[2]:undefined;o=e.length>3&&typeof o=="function"?(n--,o):undefined;if(i&&_isIterateeCall(t[0],t[1],i)){o=n<3?undefined:o;n=1}r=Object(r);while(++a<n){var s=t[a];if(s){e(r,s,a,o)}}return r}))}var _createAssigner=createAssigner;var merge=_createAssigner((function(e,r,t){_baseMerge(e,r,t)}));var merge_1=merge;var mergeConfig=function(e,r){var t=[];for(var a=2;a<arguments.length;a++){t[a-2]=arguments[a]}var n=__spreadArray([e,r],t,true).filter(Boolean);return merge_1.apply(null,n)};var _d=createStore((function(){return{appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:false,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),reset=_d.reset,zonosStore=_d.state;var savedZonosSettings=null;var zonosStoreInitSetting=function(e){var r=e.overrideSettings,t=e.zonosSettings;var a,n,o;reset();if(t){savedZonosSettings=t}zonosStore.appearance=mergeConfig(zonosStore.appearance,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,r.appearance);zonosStore.checkoutSettings=mergeConfig(zonosStore.checkoutSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,r.checkoutSettings);zonosStore.helloSettings=mergeConfig(zonosStore.helloSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,r.helloSettings);zonosStore.onlineStoreSettings=mergeConfig(zonosStore.onlineStoreSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.onlineStoreSettings)||(t===null||t===void 0?void 0:t.onlineStoreSettings)||null,r.onlineStoreSettings);zonosStore.loadedConfig=true;zonosStore.organizationName=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.name)||"";zonosStore.storeId=((o=(n=t===null||t===void 0?void 0:t.organization)===null||n===void 0?void 0:n.references)===null||o===void 0?void 0:o.storeId)||null;zonosStore.currencyConverter=r.currencyConverter};var zonosStoreFontFamily=function(){var e=zonosStore.appearance.fontFamily||"Inter";return e};export{_root as _,createCommonjsModule as a,commonjsGlobal as b,createStore as c,zonosStoreInitSetting as d,zonosStoreFontFamily as e,_baseGetTag as f,isObject_1 as g,isObjectLike_1 as i,mergeConfig as m,zonosStore as z};
@@ -1,10 +1,30 @@
1
1
  'use strict';
2
2
 
3
3
  const log = (message, type, ...additionalInfo) => {
4
+ var _a;
4
5
  // if type is error and debug is false, do not log
5
6
  if (!window.Zonos.debug) {
6
7
  return;
7
8
  }
9
+ let loggingIframe = document.querySelector('iframe#zonos---debug-logging-iframe');
10
+ if (!loggingIframe) {
11
+ // add a hidden iframe
12
+ loggingIframe = document.createElement('iframe');
13
+ loggingIframe.id = 'zonos---debug-logging-iframe';
14
+ loggingIframe.style.display = 'none';
15
+ loggingIframe.style.opacity = '0';
16
+ loggingIframe.style.position = 'absolute';
17
+ loggingIframe.style.top = '-9999px';
18
+ loggingIframe.style.left = '-9999px';
19
+ loggingIframe.style.width = '1px';
20
+ loggingIframe.style.height = '1px';
21
+ loggingIframe.style.border = 'none';
22
+ loggingIframe.style.overflow = 'hidden';
23
+ loggingIframe.style.visibility = 'hidden';
24
+ document.body.appendChild(loggingIframe);
25
+ }
26
+ // use the logging iframe's console to log just in case the console is disabled (overriden) by the site owner
27
+ const console = ((_a = loggingIframe.contentWindow) === null || _a === void 0 ? void 0 : _a.window.console) || window.console;
8
28
  switch (type) {
9
29
  case 'warn':
10
30
  // eslint-disable-next-line no-console
@@ -198,8 +218,8 @@ const zonosQaUrl = (() => {
198
218
  });
199
219
  return fullUrl;
200
220
  })();
201
- const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.5.js.zonos.com";
202
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.5";
221
+ const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.7.js.zonos.com";
222
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.7";
203
223
  const INTER_FONT_URL = 'https://rsms.me';
204
224
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
205
225
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -212,7 +232,7 @@ Zonos.debug = !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
212
232
  Zonos.isBigCommerce = false;
213
233
  Zonos.internationalHideSelector = '';
214
234
  Zonos.zonosQaUrl = zonosQaUrl;
215
- Zonos.version = `v${"1.2.4-alpha.5"}`;
235
+ Zonos.version = `v${"1.2.4-alpha.7"}`;
216
236
  Zonos.modeAlerted = false;
217
237
  Zonos.getCurrentTimestamp = () => new Date().getTime();
218
238
  Zonos.zonosController = null;
@@ -1,10 +1,30 @@
1
1
  'use strict';
2
2
 
3
3
  const log = (message, type, ...additionalInfo) => {
4
+ var _a;
4
5
  // if type is error and debug is false, do not log
5
6
  if (!window.Zonos.debug) {
6
7
  return;
7
8
  }
9
+ let loggingIframe = document.querySelector('iframe#zonos---debug-logging-iframe');
10
+ if (!loggingIframe) {
11
+ // add a hidden iframe
12
+ loggingIframe = document.createElement('iframe');
13
+ loggingIframe.id = 'zonos---debug-logging-iframe';
14
+ loggingIframe.style.display = 'none';
15
+ loggingIframe.style.opacity = '0';
16
+ loggingIframe.style.position = 'absolute';
17
+ loggingIframe.style.top = '-9999px';
18
+ loggingIframe.style.left = '-9999px';
19
+ loggingIframe.style.width = '1px';
20
+ loggingIframe.style.height = '1px';
21
+ loggingIframe.style.border = 'none';
22
+ loggingIframe.style.overflow = 'hidden';
23
+ loggingIframe.style.visibility = 'hidden';
24
+ document.body.appendChild(loggingIframe);
25
+ }
26
+ // use the logging iframe's console to log just in case the console is disabled (overriden) by the site owner
27
+ const console = ((_a = loggingIframe.contentWindow) === null || _a === void 0 ? void 0 : _a.window.console) || window.console;
8
28
  switch (type) {
9
29
  case 'warn':
10
30
  // eslint-disable-next-line no-console
@@ -198,8 +218,8 @@ const zonosQaUrl = (() => {
198
218
  });
199
219
  return fullUrl;
200
220
  })();
201
- const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.5.js.zonos.com";
202
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.5";
221
+ const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.7.js.zonos.com";
222
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.7";
203
223
  const INTER_FONT_URL = 'https://rsms.me';
204
224
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
205
225
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -212,7 +232,7 @@ Zonos.debug = !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
212
232
  Zonos.isBigCommerce = false;
213
233
  Zonos.internationalHideSelector = '';
214
234
  Zonos.zonosQaUrl = zonosQaUrl;
215
- Zonos.version = `v${"1.2.4-alpha.5"}`;
235
+ Zonos.version = `v${"1.2.4-alpha.7"}`;
216
236
  Zonos.modeAlerted = false;
217
237
  Zonos.getCurrentTimestamp = () => new Date().getTime();
218
238
  Zonos.zonosController = null;
@@ -1,6 +1,7 @@
1
1
  import { type EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import type { PaymentIntent } from '@stripe/stripe-js';
3
- import type { ElementsUiStyle } from "../../../../types/index";
3
+ import { type ElementsUiStyle } from "../../../../types/index";
4
+ import type { GetOrderQuery } from "../../../../types/generated/graphql.customer.types";
4
5
  type OverrideNotification = {
5
6
  messages: string[];
6
7
  title: string;
@@ -28,6 +29,9 @@ export declare class ZonosCheckoutFinish {
28
29
  notificationType: 'success' | 'error';
29
30
  notificationTitle: string;
30
31
  notificationMessages: string[];
32
+ order: GetOrderQuery['order'] | null;
33
+ private pullOrder;
34
+ private getPullOrder;
31
35
  private checkPaymentStatus;
32
36
  private closeClickHandler;
33
37
  componentDidLoad(): void;
@@ -21,6 +21,7 @@ type StripeStore = {
21
21
  stripeAddressElement: StripeAddressElement | null;
22
22
  stripeAddressEventData: StripeAddressElementChangeEvent | null;
23
23
  stripeAddressUsedWhenFetchingLC: StripeAddressElementChangeEvent | null;
24
+ stripeBillingAddressElement: StripeAddressElement | null;
24
25
  stripeElements: StripeElements | null;
25
26
  stripeElementsOptions: StripeElementsOptions | null;
26
27
  stripeLinkElement: StripeLinkAuthenticationElement | null;
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string | undefined;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: string[];
7
+ countryCodes: string[] | null;
8
8
  countryCodesPageMessageLinks: {
9
9
  id: number;
10
10
  message: {
@@ -0,0 +1,5 @@
1
+ import type { CalculateLandedCostRequest } from "../../../types/checkout/api/CalculateLandedCostRequest";
2
+ import type { CalculateLandedCostMutation } from "../../../types/generated/graphql.customer.types";
3
+ type BuildLandedCost = (checkoutSessionId: string, contact: CalculateLandedCostRequest['contact'], shippingAddress: CalculateLandedCostRequest['shippingAddress']) => Promise<CalculateLandedCostMutation | null>;
4
+ export declare const triggerBuildLandedCost: (buildLandedCost: BuildLandedCost) => Promise<CalculateLandedCostMutation>;
5
+ export {};
@@ -37,7 +37,7 @@ import type { IDeepKeyof, IDeepPropertyType } from "../../types/index";
37
37
  },
38
38
  };
39
39
  */
40
- export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends IDeepKeyof<T, Depth>, Depth extends 0 | 8 | 1 | 2 | 6 | 5 | 3 | 4 | 7 | 9 = 4>({ obj, propertyPath, value, }: {
40
+ export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends IDeepKeyof<T, Depth>, Depth extends 0 | 8 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 = 4>({ obj, propertyPath, value, }: {
41
41
  obj: T;
42
42
  propertyPath: P;
43
43
  value: IDeepPropertyType<T, P, Depth>;
@@ -60,7 +60,7 @@ import type { IDeepKeyofAtIndex, IDeepPropertyTypeAtIndex } from "../../types/in
60
60
  },
61
61
  };
62
62
  */
63
- export declare const changeDeepPropertyAtIndex: <T extends object, P extends IDeepKeyofAtIndex<T, Depth>, Depth extends 0 | 8 | 1 | 2 | 6 | 5 | 3 | 4 | 7 | 9 = 4>({ index, obj, propertyPath, value, }: {
63
+ export declare const changeDeepPropertyAtIndex: <T extends object, P extends IDeepKeyofAtIndex<T, Depth>, Depth extends 0 | 8 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 = 4>({ index, obj, propertyPath, value, }: {
64
64
  index: number;
65
65
  obj: T;
66
66
  propertyPath: P;
@@ -1,5 +1,6 @@
1
1
  import type { CartItem } from "../../components/store/checkout/cart";
2
- import type { AnalyticsProviderStatus, AnalyticsProviderType, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, NotificationActiveStatus } from "../generated/graphql.customer.types";
2
+ import type { CalculateLandedCostRequest } from "./api/CalculateLandedCostRequest";
3
+ import type { AnalyticsProviderStatus, AnalyticsProviderType, CalculateLandedCostMutation, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, NotificationActiveStatus } from "../generated/graphql.customer.types";
3
4
  export type CheckoutConfig = {
4
5
  allowedDomains: Array<string>;
5
6
  analyticsProviders: Array<{
@@ -54,4 +55,5 @@ export type CheckoutConfig = {
54
55
  * - quantity: number;
55
56
  */
56
57
  buildCartDetail?: () => Promise<CartItem[]>;
58
+ buildLandedCost?: (checkoutSessionId: string, contact: CalculateLandedCostRequest['contact'], shippingAddress: CalculateLandedCostRequest['shippingAddress']) => Promise<CalculateLandedCostMutation>;
57
59
  };