@zonos/elements 1.3.210 → 1.3.212

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 (204) hide show
  1. package/dist/cjs/{cart-313bd2ff.js → cart-d04009b9.js} +8 -5
  2. package/dist/cjs/{handleFetch-05227713.js → handleFetch-7cf3752e.js} +5 -2
  3. package/dist/cjs/index.cjs.js +8 -8
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{localization-9b43376c.js → localization-91bcde0e.js} +12 -11
  6. package/dist/cjs/{paypal-67c96668.js → paypal-3a2d4501.js} +3 -3
  7. package/dist/cjs/{updateCheckoutSessionAttributes-a31bb681.js → updateCheckoutSessionAttributes-047bc0cb.js} +1 -1
  8. package/dist/cjs/zonos-address_11.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-cart-items_14.cjs.entry.js +5 -5
  10. package/dist/cjs/zonos-checkout.cjs.entry.js +8 -6
  11. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  12. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-elements.cjs.js +1 -1
  15. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-hello.cjs.entry.js +16 -2
  18. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +4 -0
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -0
  21. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +16 -0
  22. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +1 -1
  23. package/dist/collection/components/main/zonos-controller.js +2 -2
  24. package/dist/collection/components/store/hello/localization.js +11 -10
  25. package/dist/collection/components/utils/api/cartCalculateLandedCost.js +6 -3
  26. package/dist/collection/components/utils/handleFetch.js +5 -2
  27. package/dist/collection/components/utils/hello/initHello.js +1 -1
  28. package/dist/esm/{cart-e0703306.js → cart-f36b8065.js} +11 -8
  29. package/dist/esm/{debounce-0e42da22.js → debounce-c34d1270.js} +1 -1
  30. package/dist/esm/{getBorderRadius-71b3b8ab.js → getBorderRadius-87593ff4.js} +1 -1
  31. package/dist/esm/{handleFetch-7dd4622b.js → handleFetch-dd74bbb1.js} +5 -2
  32. package/dist/esm/{index-5ea9f81d.js → index-55a03023.js} +1 -1
  33. package/dist/esm/index.js +8 -8
  34. package/dist/esm/{isDarkColor-3a9d6108.js → isDarkColor-1f58b6be.js} +1 -1
  35. package/dist/esm/loader.js +3 -3
  36. package/dist/esm/{localization-e17c211b.js → localization-cf31c728.js} +13 -12
  37. package/dist/esm/{paypal-dbaf76fd.js → paypal-4dd540c7.js} +5 -5
  38. package/dist/esm/{updateCheckoutSessionAttributes-5097e715.js → updateCheckoutSessionAttributes-7babf0f2.js} +2 -2
  39. package/dist/esm/zonos-address_11.entry.js +8 -8
  40. package/dist/esm/zonos-badge.entry.js +2 -2
  41. package/dist/esm/zonos-banner.entry.js +2 -2
  42. package/dist/esm/zonos-button_3.entry.js +4 -4
  43. package/dist/esm/zonos-card.entry.js +3 -3
  44. package/dist/esm/zonos-cart-items_14.entry.js +10 -10
  45. package/dist/esm/zonos-checkout.entry.js +13 -11
  46. package/dist/esm/zonos-collapse.entry.js +2 -2
  47. package/dist/esm/zonos-component.entry.js +1 -1
  48. package/dist/esm/zonos-controller.entry.js +8 -8
  49. package/dist/esm/zonos-country-flag.entry.js +4 -4
  50. package/dist/esm/zonos-country-select_4.entry.js +5 -5
  51. package/dist/esm/zonos-elements.js +3 -3
  52. package/dist/esm/zonos-empty-state-payment_4.entry.js +8 -8
  53. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  54. package/dist/esm/zonos-hello.entry.js +19 -5
  55. package/dist/esm/zonos-input.entry.js +3 -3
  56. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  57. package/dist/esm/zonos-link.entry.js +1 -1
  58. package/dist/esm/zonos-logo.entry.js +2 -2
  59. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  60. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  61. package/dist/esm/zonos-text.entry.js +2 -2
  62. package/dist/esm/zonos-toggle.entry.js +2 -2
  63. package/dist/esm/zonos-tooltip.entry.js +1 -1
  64. package/dist/esm/zonos-v-stack.entry.js +2 -2
  65. package/dist/esm/{zonosStore-00975763.js → zonosStore-c456b933.js} +1 -1
  66. package/dist/esm-es5/cart-f36b8065.js +1 -0
  67. package/dist/esm-es5/{debounce-0e42da22.js → debounce-c34d1270.js} +1 -1
  68. package/dist/esm-es5/{getBorderRadius-71b3b8ab.js → getBorderRadius-87593ff4.js} +1 -1
  69. package/dist/esm-es5/{handleFetch-7dd4622b.js → handleFetch-dd74bbb1.js} +1 -1
  70. package/dist/esm-es5/{index-5ea9f81d.js → index-55a03023.js} +1 -1
  71. package/dist/esm-es5/index.js +1 -1
  72. package/dist/esm-es5/{isDarkColor-3a9d6108.js → isDarkColor-1f58b6be.js} +1 -1
  73. package/dist/esm-es5/loader.js +1 -1
  74. package/dist/esm-es5/{localization-e17c211b.js → localization-cf31c728.js} +1 -1
  75. package/dist/esm-es5/{paypal-dbaf76fd.js → paypal-4dd540c7.js} +1 -1
  76. package/dist/esm-es5/{updateCheckoutSessionAttributes-5097e715.js → updateCheckoutSessionAttributes-7babf0f2.js} +1 -1
  77. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  78. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  79. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  80. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  81. package/dist/esm-es5/zonos-card.entry.js +1 -1
  82. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
  83. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  84. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  85. package/dist/esm-es5/zonos-component.entry.js +1 -1
  86. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  87. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  88. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  89. package/dist/esm-es5/zonos-elements.js +1 -1
  90. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  91. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  92. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  93. package/dist/esm-es5/zonos-input.entry.js +1 -1
  94. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  95. package/dist/esm-es5/zonos-link.entry.js +1 -1
  96. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  97. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  98. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  99. package/dist/esm-es5/zonos-text.entry.js +1 -1
  100. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  101. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  102. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  103. package/dist/esm-es5/{zonosStore-00975763.js → zonosStore-c456b933.js} +1 -1
  104. package/dist/scripts/index.d.ts +6 -2
  105. package/dist/scripts/index.js +1 -1
  106. package/dist/scripts/loadZonos.js +1 -1
  107. package/dist/scripts/zonos.js +1 -1
  108. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +2 -0
  109. package/dist/types/components/store/zonosStore.d.ts +1 -1
  110. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  111. package/dist/types/scripts/_zonosBase.d.ts +6 -2
  112. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  113. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  114. package/dist/types/types/generated/graphql.internal.types.d.ts +0 -4
  115. package/dist/types/types/generated/graphql.internal.types.ts +1 -4
  116. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  117. package/dist/zonos-elements/index.esm.js +1 -1
  118. package/dist/zonos-elements/{p-7211cb9f.system.entry.js → p-002b5c5f.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-4c70fd75.entry.js → p-003f37f4.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-45a2f9b1.system.entry.js → p-043f57e8.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-03c060d3.entry.js → p-0595e3f8.entry.js} +1 -1
  122. package/dist/zonos-elements/p-0707379c.entry.js +1 -0
  123. package/dist/zonos-elements/{p-d6a53ea6.js → p-0ae53ff0.js} +1 -1
  124. package/dist/zonos-elements/{p-1dc78af3.system.entry.js → p-12ce9746.system.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-964e2587.system.entry.js → p-137ee43a.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-7234f876.system.entry.js → p-1ac8bfbb.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-23fe7661.entry.js → p-1c45cd15.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-bf364990.system.entry.js → p-1cc5b4f7.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-37058486.system.entry.js → p-1ed7c17d.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-8d0e116f.system.js → p-20584d36.system.js} +1 -1
  131. package/dist/zonos-elements/p-23079911.js +1 -0
  132. package/dist/zonos-elements/{p-7f9bbbb3.system.entry.js → p-236643d0.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-7b02b1f6.entry.js → p-24a5352e.entry.js} +1 -1
  134. package/dist/zonos-elements/p-2820aff2.system.js +1 -0
  135. package/dist/zonos-elements/{p-239695e8.system.entry.js → p-288761b1.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-207bd04a.js → p-2b9c124d.js} +1 -1
  137. package/dist/zonos-elements/{p-20839c46.js → p-2eec2d7c.js} +1 -1
  138. package/dist/zonos-elements/p-3464e486.system.entry.js +1 -0
  139. package/dist/zonos-elements/{p-8f41d864.system.entry.js → p-3a1513ae.system.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-a8f421ac.entry.js → p-3f31901f.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-0751b878.system.js → p-4444bb4e.system.js} +1 -1
  142. package/dist/zonos-elements/{p-a4686344.system.entry.js → p-47ffacd8.system.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-c345b306.system.entry.js → p-544c173a.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-71c6bdc3.js → p-56e0ed65.js} +1 -1
  145. package/dist/zonos-elements/{p-97831744.system.entry.js → p-59eaebe3.system.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-02da743b.system.js → p-5fc34563.system.js} +1 -1
  147. package/dist/zonos-elements/{p-144b5006.entry.js → p-605a21ac.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-77e22be4.entry.js → p-62813488.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-a1137930.entry.js → p-67da7b6d.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-5b7686f8.entry.js → p-6a157c84.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-9d95c896.system.entry.js → p-714c28b1.system.entry.js} +1 -1
  152. package/dist/zonos-elements/p-752220fe.entry.js +1 -0
  153. package/dist/zonos-elements/{p-a411ce2a.system.js → p-755cf8bc.system.js} +1 -1
  154. package/dist/zonos-elements/{p-aa40d402.entry.js → p-77666360.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-74276b82.system.entry.js → p-7ab62a26.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-4a3bb31d.entry.js → p-7b5de646.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-6aa728f2.js → p-7ce093aa.js} +1 -1
  158. package/dist/zonos-elements/p-81b357f7.system.js +1 -0
  159. package/dist/zonos-elements/{p-23142862.entry.js → p-8b57a34d.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-d1697144.system.entry.js → p-92cc26b7.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-68650f1e.system.js → p-9b2aafa6.system.js} +1 -1
  162. package/dist/zonos-elements/{p-19182dc7.system.js → p-9d863a3b.system.js} +1 -1
  163. package/dist/zonos-elements/p-a1cd5572.system.entry.js +1 -0
  164. package/dist/zonos-elements/{p-a6f77d44.js → p-a45a15a0.js} +1 -1
  165. package/dist/zonos-elements/{p-5956a9e0.entry.js → p-a4efb55c.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-36b686b6.entry.js → p-a98b1e8d.entry.js} +1 -1
  167. package/dist/zonos-elements/p-a9ad60a5.system.entry.js +1 -0
  168. package/dist/zonos-elements/{p-3934b38a.entry.js → p-ad556be6.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-5b3b58ef.js → p-b0643c40.js} +1 -1
  170. package/dist/zonos-elements/{p-695bf400.system.entry.js → p-b22fcbda.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-1640d77f.js → p-b30c2ad9.js} +1 -1
  172. package/dist/zonos-elements/p-b6aabc2f.system.js +1 -0
  173. package/dist/zonos-elements/{p-0ca1d6dd.entry.js → p-b9ff6458.entry.js} +1 -1
  174. package/dist/zonos-elements/p-c34645cb.js +1 -0
  175. package/dist/zonos-elements/{p-78dd1c53.entry.js → p-c7d5d45d.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-4a1b4a2d.system.js → p-cd1ebef9.system.js} +1 -1
  177. package/dist/zonos-elements/{p-baa88176.system.entry.js → p-d55aec11.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-a24870af.entry.js → p-d6fa2dc2.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-a0f570ea.system.entry.js → p-da4c01da.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-20b702a7.system.entry.js → p-dba65101.system.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-738a49c0.system.js → p-e63b8b24.system.js} +1 -1
  182. package/dist/zonos-elements/{p-c988cf84.entry.js → p-e640e8b8.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-63a4dac5.entry.js → p-e7b05da2.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-3633a952.system.js → p-e7f8595f.system.js} +1 -1
  185. package/dist/zonos-elements/{p-e5152c04.entry.js → p-ebaaaee9.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-4dbaa2c2.entry.js → p-edc77ea1.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-b50eaeac.system.entry.js → p-eeb01de6.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-bf9cb85f.system.entry.js → p-ef1ce617.system.entry.js} +1 -1
  189. package/dist/zonos-elements/p-f0e8e81e.entry.js +1 -0
  190. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  191. package/dist/zonos-elements/zonos-elements.js +1 -1
  192. package/package.json +1 -1
  193. package/dist/esm-es5/cart-e0703306.js +0 -1
  194. package/dist/zonos-elements/p-2122d2cc.system.entry.js +0 -1
  195. package/dist/zonos-elements/p-2652198d.js +0 -1
  196. package/dist/zonos-elements/p-3ee44728.system.js +0 -1
  197. package/dist/zonos-elements/p-4d62f3de.entry.js +0 -1
  198. package/dist/zonos-elements/p-73ff25d8.entry.js +0 -1
  199. package/dist/zonos-elements/p-7ec1fecb.system.js +0 -1
  200. package/dist/zonos-elements/p-992f0b96.js +0 -1
  201. package/dist/zonos-elements/p-ad1e1dbc.entry.js +0 -1
  202. package/dist/zonos-elements/p-cf999a15.system.entry.js +0 -1
  203. package/dist/zonos-elements/p-eb77c0bf.system.js +0 -1
  204. package/dist/zonos-elements/p-ef1ccec6.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,c as o,h as t,F as s,H as i}from"./p-1640d77f.js";import{l as a,d as n,t as l}from"./p-a6f77d44.js";import{z as r}from"./p-6aa728f2.js";import{c as d}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as c}from"./p-5883217a.js";import{e as m}from"./p-6b361d2b.js";import"./p-20839c46.js";import"./p-04a01cb1.js";const g=({href:e,text:o})=>`<zonos-link href="${e}" target="_blank" rel="noopener noreferrer">${o}</zonos-link>`,f=class{constructor(t){e(this,t),this.closeDialog=o(this,"closeDialog",7),this.isOpen=!1,this.setIsOpen=()=>{},this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1,this.clickOutsideDialogHandler=e=>{!e.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(r.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async e=>{this.showCountrySelect=e},this.setShowLanguageSelect=async e=>{this.showLanguageSelect=e},this.hasTaxId=()=>{var e;return null===(e=a.countryLandedCost)||void 0===e?void 0:e.hasTaxId},this.hasInclusivePrices=()=>{var e;return"ENABLED"===(null===(e=a.inclusivePricing)||void 0===e?void 0:e.status)},this.isNoThresholdCountry=e=>!(!e||!this.hasTaxId())&&["AU","NZ","GB","NO","SG",...m].includes(e),this.getDutyMessage=()=>{const e=a.countryLandedCost,o=(null==e?void 0:e.dutyDeminimus)?n({amount:e.dutyDeminimus}):null;return o?l("Spend up to [threshold] duty free.",{threshold:o}):l("Duties will apply to all orders.")},this.getTaxMessage=()=>{const{countryLandedCost:e}=a,o=(null==e?void 0:e.vatTaxDeminimus)?n({amount:e.vatTaxDeminimus}):null;return o&&!this.isNoThresholdCountry(null==e?void 0:e.countryCode)?l("Spend up to [threshold] tax free.",{threshold:o}):l("Taxes will apply to all orders.")},this.getEuDutyTaxMessage=e=>[`${l("Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")})}`],this.getUkDutyTaxMessage=e=>e.allowLowValueOrders?[`${l("Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")})}`]:[l("Orders to [countryName] must be over [threshold] to ship.",{countryName:"United Kingdom",threshold:n({amount:e.dutyDeminimus})})],this.getAustraliaDutyTaxMessage=e=>this.hasInclusivePrices()?[]:[`${l("Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst",text:l("Learn more.")})}`],this.getNewZealandDutyTaxMessge=e=>this.hasInclusivePrices()?null:[`${l("Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes",text:l("Learn more.")})}`],this.getNorwayDutyTaxMessage=e=>this.hasInclusivePrices()?null:[`${l("Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/guides/country-guides/norway-voec-scheme",text:l("Learn more.")})}`],this.getSingaporeDutyTaxMessage=e=>this.hasInclusivePrices()?null:[`${l("Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings",text:l("Learn more.")})}`],this.getInclusivePriceMessage=()=>{const e=a.inclusivePricing;return"ENABLED"!==(null==e?void 0:e.status)?null:"INCLUDED"===e.duty.status&&"INCLUDED"===e.tax.status&&"INCLUDED"===e.fee.status?l("Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status&&"INCLUDED"===e.tax.status?l("Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status&&"INCLUDED"===e.fee.status?l("Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.tax.status&&"INCLUDED"===e.fee.status?l("Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status?l("Product prices already include duties. No additional duties will be added at checkout, with rare exceptions."):"INCLUDED"===e.tax.status?l("Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions."):"INCLUDED"===e.fee.status?l("Product prices already include fees. No additional fees will be added at checkout, with rare exceptions."):null},this.getAdditionalDutyTaxMessage=()=>{if(!a.countryLandedCost)return null;if(!this.hasTaxId())return null;switch(a.countryLandedCost.countryCode){case"GB":return this.getUkDutyTaxMessage(a.countryLandedCost);case"AU":return this.getAustraliaDutyTaxMessage(a.countryLandedCost);case"NZ":return this.getNewZealandDutyTaxMessge(a.countryLandedCost);case"NO":return this.getNorwayDutyTaxMessage(a.countryLandedCost);case"SG":return this.getSingaporeDutyTaxMessage(a.countryLandedCost);default:return m.includes(a.countryLandedCost.countryCode)?this.getEuDutyTaxMessage(a.countryLandedCost):null}}}globalClickHandler(e){this.clickOutsideDialogHandler(e)}isOpenHandler(e){e||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var e;const{selectedCountryCode:o}=a,n=this.hasInclusivePrices(),m=this.getInclusivePriceMessage(),g=this.getDutyMessage(),f=this.getTaxMessage(),u=this.getAdditionalDutyTaxMessage(),b=this.animateFromLeftOverride||this.dialogRef&&c(this.dialogRef),p=this.dialogRef&&(()=>{const e=this.dialogRef.getBoundingClientRect();return e.top>=window.innerHeight-e.bottom})(),{customMessages:w}=a,x=l("Welcome to [storeName]",{storeName:r.organizationName}),z=(null===(e=w.find((e=>"hello_default"===e.pageName)))||void 0===e?void 0:e.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),C=h(z),v=this.getCurrentPageEnum(),y=w.filter((e=>e.pageName===v));return t(i,{key:"0830447fd72c987521c1790936f64948c28e368a",class:"zonos--elements"},t("div",{key:"945b144257ac98cd3e18484b5df7c656967ed4bb",class:d(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",p&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),inert:!this.isOpen,ref:e=>e&&(this.dialogRef=e)},!this.showCountrySelect&&!this.showLanguageSelect&&t("div",{key:"d4281bee820f6f1c0128a27a68637d9cf14bb9df"},t("div",{key:"2eb86efbcf9a69fcad628fff00d6f4834026f720",class:"zonos--hello-dialog-content"},t("zonos-button",{key:"54c1db50880af58304586091a2c96b63d21939b9",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),t("zonos-v-stack",{key:"4814c176342c0a81379e499c9e9c9fff2611ca30",spacing:24},t("zonos-country-flag",{key:"a96e2f98b8d34d9c9b85e7b1989e6c29a9efb319",class:"zonos--hello-country-flag",countryCode:o}),t("zonos-v-stack",{key:"bdfcfa7d339c007df770101d8a63433d40be6ce2",class:"zonos--hello-dialog-header",spacing:4},t("zonos-text",{key:"7bebb2baef3b43444325b8755d9de41f7617a30a",type:"boldSubheader"},x),t("zonos-text",{key:"cc5e7c2dda01e545a1d85bbbb1e5cab53ab27574",innerHTML:C,textColor:"gray-800"})),t("zonos-v-stack",{key:"dbd3743ea89e59796b8f0a7c90eb4bf2564212ad",spacing:8},this.restrictedItems.map((e=>{var o;return e&&t("zonos-banner",{bannerTitle:e.name,intent:"error"},null===(o=e.itemRestrictions)||void 0===o?void 0:o.map((e=>t("zonos-text",{textColor:"red-800"},null==e?void 0:e.note))))})),t("zonos-card",{key:"428f00f603d782b9496d40049571e3ea9dad57ba",spacing:"12px"},t("zonos-v-stack",{key:"1433a878c9782cb57cbe85d83bdbe090d0e5d610",spacing:12},n?t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.04505 6.64123C2.19006 8.49622 2.19006 11.5038 4.04505 13.3587L11.2929 20.6066C11.6834 20.9971 12.3166 20.9971 12.7071 20.6066L19.955 13.3587C21.8099 11.5038 21.8099 8.49622 19.955 6.64123L17.8336 4.51991C17.4431 4.12939 16.8099 4.12939 16.4194 4.51991L13.5241 7.41527C12.5864 6.86157 11.4136 6.86157 10.4759 7.41527L7.58059 4.51991C7.19006 4.12939 6.5569 4.12939 6.16637 4.51991L4.04505 6.64123ZM5.10571 12.2981C3.83651 11.0289 3.83651 8.9711 5.10571 7.70189L6.87348 5.93413L9.70191 8.76255C10.1056 9.16622 10.6991 9.12 11.0641 8.82749C11.6091 8.39083 12.3909 8.39082 12.9359 8.82749C13.301 9.12 13.8944 9.16622 14.2981 8.76255L17.1265 5.93413L18.8943 7.70189C20.1635 8.9711 20.1635 11.0289 18.8943 12.2981L12 19.1924L5.10571 12.2981Z"\n fill="#0F1015" />\n <path\n d="M10.0333 3.28075C9.63566 3.39679 9.40739 3.8132 9.52343 4.21083C9.63947 4.60846 10.0559 4.83673 10.4535 4.72069C11.4618 4.42644 12.5383 4.42644 13.5466 4.72069C13.9442 4.83673 14.3606 4.60846 14.4766 4.21083C14.5927 3.81321 14.3644 3.39679 13.9668 3.28075C12.6841 2.90642 11.316 2.90642 10.0333 3.28075Z"\n fill="#0F1015" />\n</svg>'}),t("zonos-text",null,m)):t(s,null,t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis icon",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Duty de minimis message"},g)),t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Tax de minimis icon",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Tax de minimis message"},f))),null==u?void 0:u.map((e=>t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Additional information for buying goods from selected country icon",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Additional information for buying goods from selected country message",innerHTML:e})))))),y.map((e=>t("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:e.message})))))),t("zonos-hello-dialog-footer",{key:"09e8b05e240cd995e16c0f736df6ef66d9fff511",appearanceSettings:this.appearanceSettings,setShowCountrySelect:e=>this.setShowCountrySelect(e),setShowLanguageSelect:e=>this.setShowLanguageSelect(e)})),this.showCountrySelect&&t("div",{key:"1ed01c7f23d1b1f5a1e95d39e614e748ea407d6f"},t("zonos-country-select",{key:"b8c249f2e9f902e444b22371e9581be7ab34f07a",handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&t("div",{key:"cc6066e1e0eba08130342cef80ecdcd8c2e53e49"},t("zonos-language-select",{key:"c803df7ce92321f72d48a39eddcf1bbd3e279738",handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};f.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{f as zonos_hello_dialog}
1
+ import{r as e,c as o,h as t,F as s,H as i}from"./p-b30c2ad9.js";import{l as a,d as n,t as l}from"./p-a45a15a0.js";import{z as r}from"./p-7ce093aa.js";import{c as d}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as c}from"./p-5883217a.js";import{e as m}from"./p-6b361d2b.js";import"./p-2eec2d7c.js";import"./p-04a01cb1.js";const g=({href:e,text:o})=>`<zonos-link href="${e}" target="_blank" rel="noopener noreferrer">${o}</zonos-link>`,f=class{constructor(t){e(this,t),this.closeDialog=o(this,"closeDialog",7),this.isOpen=!1,this.setIsOpen=()=>{},this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1,this.clickOutsideDialogHandler=e=>{!e.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(r.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async e=>{this.showCountrySelect=e},this.setShowLanguageSelect=async e=>{this.showLanguageSelect=e},this.hasTaxId=()=>{var e;return null===(e=a.countryLandedCost)||void 0===e?void 0:e.hasTaxId},this.hasInclusivePrices=()=>{var e;return"ENABLED"===(null===(e=a.inclusivePricing)||void 0===e?void 0:e.status)},this.isNoThresholdCountry=e=>!(!e||!this.hasTaxId())&&["AU","NZ","GB","NO","SG",...m].includes(e),this.getDutyMessage=()=>{const e=a.countryLandedCost,o=(null==e?void 0:e.dutyDeminimus)?n({amount:e.dutyDeminimus}):null;return o?l("Spend up to [threshold] duty free.",{threshold:o}):l("Duties will apply to all orders.")},this.getTaxMessage=()=>{const{countryLandedCost:e}=a,o=(null==e?void 0:e.vatTaxDeminimus)?n({amount:e.vatTaxDeminimus}):null;return o&&!this.isNoThresholdCountry(null==e?void 0:e.countryCode)?l("Spend up to [threshold] tax free.",{threshold:o}):l("Taxes will apply to all orders.")},this.getEuDutyTaxMessage=e=>[`${l("Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")})}`],this.getUkDutyTaxMessage=e=>e.allowLowValueOrders?[`${l("Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")})}`]:[l("Orders to [countryName] must be over [threshold] to ship.",{countryName:"United Kingdom",threshold:n({amount:e.dutyDeminimus})})],this.getAustraliaDutyTaxMessage=e=>this.hasInclusivePrices()?[]:[`${l("Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst",text:l("Learn more.")})}`],this.getNewZealandDutyTaxMessge=e=>this.hasInclusivePrices()?null:[`${l("Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes",text:l("Learn more.")})}`],this.getNorwayDutyTaxMessage=e=>this.hasInclusivePrices()?null:[`${l("Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/guides/country-guides/norway-voec-scheme",text:l("Learn more.")})}`],this.getSingaporeDutyTaxMessage=e=>this.hasInclusivePrices()?null:[`${l("Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:100*e.vatTaxRate+"%"})} ${g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings",text:l("Learn more.")})}`],this.getInclusivePriceMessage=()=>{const e=a.inclusivePricing;return"ENABLED"!==(null==e?void 0:e.status)?null:"INCLUDED"===e.duty.status&&"INCLUDED"===e.tax.status&&"INCLUDED"===e.fee.status?l("Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status&&"INCLUDED"===e.tax.status?l("Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status&&"INCLUDED"===e.fee.status?l("Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.tax.status&&"INCLUDED"===e.fee.status?l("Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions."):"INCLUDED"===e.duty.status?l("Product prices already include duties. No additional duties will be added at checkout, with rare exceptions."):"INCLUDED"===e.tax.status?l("Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions."):"INCLUDED"===e.fee.status?l("Product prices already include fees. No additional fees will be added at checkout, with rare exceptions."):null},this.getAdditionalDutyTaxMessage=()=>{if(!a.countryLandedCost)return null;if(!this.hasTaxId())return null;switch(a.countryLandedCost.countryCode){case"GB":return this.getUkDutyTaxMessage(a.countryLandedCost);case"AU":return this.getAustraliaDutyTaxMessage(a.countryLandedCost);case"NZ":return this.getNewZealandDutyTaxMessge(a.countryLandedCost);case"NO":return this.getNorwayDutyTaxMessage(a.countryLandedCost);case"SG":return this.getSingaporeDutyTaxMessage(a.countryLandedCost);default:return m.includes(a.countryLandedCost.countryCode)?this.getEuDutyTaxMessage(a.countryLandedCost):null}}}globalClickHandler(e){this.clickOutsideDialogHandler(e)}isOpenHandler(e){e||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var e;const{selectedCountryCode:o}=a,n=this.hasInclusivePrices(),m=this.getInclusivePriceMessage(),g=this.getDutyMessage(),f=this.getTaxMessage(),u=this.getAdditionalDutyTaxMessage(),b=this.animateFromLeftOverride||this.dialogRef&&c(this.dialogRef),p=this.dialogRef&&(()=>{const e=this.dialogRef.getBoundingClientRect();return e.top>=window.innerHeight-e.bottom})(),{customMessages:w}=a,x=l("Welcome to [storeName]",{storeName:r.organizationName}),z=(null===(e=w.find((e=>"hello_default"===e.pageName)))||void 0===e?void 0:e.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),C=h(z),v=this.getCurrentPageEnum(),y=w.filter((e=>e.pageName===v));return t(i,{key:"0830447fd72c987521c1790936f64948c28e368a",class:"zonos--elements"},t("div",{key:"945b144257ac98cd3e18484b5df7c656967ed4bb",class:d(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",p&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),inert:!this.isOpen,ref:e=>e&&(this.dialogRef=e)},!this.showCountrySelect&&!this.showLanguageSelect&&t("div",{key:"d4281bee820f6f1c0128a27a68637d9cf14bb9df"},t("div",{key:"2eb86efbcf9a69fcad628fff00d6f4834026f720",class:"zonos--hello-dialog-content"},t("zonos-button",{key:"54c1db50880af58304586091a2c96b63d21939b9",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),t("zonos-v-stack",{key:"4814c176342c0a81379e499c9e9c9fff2611ca30",spacing:24},t("zonos-country-flag",{key:"a96e2f98b8d34d9c9b85e7b1989e6c29a9efb319",class:"zonos--hello-country-flag",countryCode:o}),t("zonos-v-stack",{key:"bdfcfa7d339c007df770101d8a63433d40be6ce2",class:"zonos--hello-dialog-header",spacing:4},t("zonos-text",{key:"7bebb2baef3b43444325b8755d9de41f7617a30a",type:"boldSubheader"},x),t("zonos-text",{key:"cc5e7c2dda01e545a1d85bbbb1e5cab53ab27574",innerHTML:C,textColor:"gray-800"})),t("zonos-v-stack",{key:"dbd3743ea89e59796b8f0a7c90eb4bf2564212ad",spacing:8},this.restrictedItems.map((e=>{var o;return e&&t("zonos-banner",{bannerTitle:e.name,intent:"error"},null===(o=e.itemRestrictions)||void 0===o?void 0:o.map((e=>t("zonos-text",{textColor:"red-800"},null==e?void 0:e.note))))})),t("zonos-card",{key:"428f00f603d782b9496d40049571e3ea9dad57ba",spacing:"12px"},t("zonos-v-stack",{key:"1433a878c9782cb57cbe85d83bdbe090d0e5d610",spacing:12},n?t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.04505 6.64123C2.19006 8.49622 2.19006 11.5038 4.04505 13.3587L11.2929 20.6066C11.6834 20.9971 12.3166 20.9971 12.7071 20.6066L19.955 13.3587C21.8099 11.5038 21.8099 8.49622 19.955 6.64123L17.8336 4.51991C17.4431 4.12939 16.8099 4.12939 16.4194 4.51991L13.5241 7.41527C12.5864 6.86157 11.4136 6.86157 10.4759 7.41527L7.58059 4.51991C7.19006 4.12939 6.5569 4.12939 6.16637 4.51991L4.04505 6.64123ZM5.10571 12.2981C3.83651 11.0289 3.83651 8.9711 5.10571 7.70189L6.87348 5.93413L9.70191 8.76255C10.1056 9.16622 10.6991 9.12 11.0641 8.82749C11.6091 8.39083 12.3909 8.39082 12.9359 8.82749C13.301 9.12 13.8944 9.16622 14.2981 8.76255L17.1265 5.93413L18.8943 7.70189C20.1635 8.9711 20.1635 11.0289 18.8943 12.2981L12 19.1924L5.10571 12.2981Z"\n fill="#0F1015" />\n <path\n d="M10.0333 3.28075C9.63566 3.39679 9.40739 3.8132 9.52343 4.21083C9.63947 4.60846 10.0559 4.83673 10.4535 4.72069C11.4618 4.42644 12.5383 4.42644 13.5466 4.72069C13.9442 4.83673 14.3606 4.60846 14.4766 4.21083C14.5927 3.81321 14.3644 3.39679 13.9668 3.28075C12.6841 2.90642 11.316 2.90642 10.0333 3.28075Z"\n fill="#0F1015" />\n</svg>'}),t("zonos-text",null,m)):t(s,null,t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis icon",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Duty de minimis message"},g)),t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Tax de minimis icon",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Tax de minimis message"},f))),null==u?void 0:u.map((e=>t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Additional information for buying goods from selected country icon",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{"aria-label":"Additional information for buying goods from selected country message",innerHTML:e})))))),y.map((e=>t("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:e.message})))))),t("zonos-hello-dialog-footer",{key:"09e8b05e240cd995e16c0f736df6ef66d9fff511",appearanceSettings:this.appearanceSettings,setShowCountrySelect:e=>this.setShowCountrySelect(e),setShowLanguageSelect:e=>this.setShowLanguageSelect(e)})),this.showCountrySelect&&t("div",{key:"1ed01c7f23d1b1f5a1e95d39e614e748ea407d6f"},t("zonos-country-select",{key:"b8c249f2e9f902e444b22371e9581be7ab34f07a",handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&t("div",{key:"cc6066e1e0eba08130342cef80ecdcd8c2e53e49"},t("zonos-language-select",{key:"c803df7ce92321f72d48a39eddcf1bbd3e279738",handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};f.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:2147483647}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{f as zonos_hello_dialog}
@@ -1 +1 @@
1
- import{r as e,h as s,H as t}from"./p-1640d77f.js";import{f as o,z as i}from"./p-6aa728f2.js";import{c as n}from"./p-b4b7f705.js";import{i as a}from"./p-ae393255.js";import{s as l}from"./p-96d77739.js";import"./p-04a01cb1.js";const h={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}},z=class{constructor(s){e(this,s),this.textColor="gray-1000",this.type="body",this.ready=!1}componentDidRender(){setTimeout((()=>{this.ready=!0}),100)}render(){const{size:e,tag:z,weight:r}=h.body,{size:x,tag:g,weight:f}=h[this.type],m=this.size||x||e,p=this.weight||f||r,d=g||z,b=a(this.textColor)?`var(--zonos-elements-${this.textColor})`:this.textColor;return s(t,{class:n(["zonos--elements",`zonos--text-size-${m}`,`zonos--text-weight-${p}`]),style:l({"--zonos--color":b,"--zonos--font-family":o(),"--zonos--font-size-2xl":i.appearance.fontSize2XL?`${i.appearance.fontSize2XL}px`:void 0,"--zonos--font-size-3xl":i.appearance.fontSize3XL?`${i.appearance.fontSize3XL}px`:void 0,"--zonos--font-size-base":i.appearance.fontSizeBase?`${i.appearance.fontSizeBase}px`:void 0,"--zonos--font-size-l":i.appearance.fontSizeL?`${i.appearance.fontSizeL}px`:void 0,"--zonos--font-size-s":i.appearance.fontSizeS?`${i.appearance.fontSizeS}px`:void 0,"--zonos--font-size-xl":i.appearance.fontSizeXL?`${i.appearance.fontSizeXL}px`:void 0,"--zonos--font-size-xs":i.appearance.fontSizeXS?`${i.appearance.fontSizeXS}px`:void 0})},(()=>{switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));default:return s("span",null,s("slot",null))}})())}};z.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl))}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-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}";export{z as zonos_text}
1
+ import{r as e,h as s,H as t}from"./p-b30c2ad9.js";import{f as o,z as i}from"./p-7ce093aa.js";import{c as n}from"./p-b4b7f705.js";import{i as a}from"./p-ae393255.js";import{s as l}from"./p-96d77739.js";import"./p-04a01cb1.js";const h={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}},z=class{constructor(s){e(this,s),this.textColor="gray-1000",this.type="body",this.ready=!1}componentDidRender(){setTimeout((()=>{this.ready=!0}),100)}render(){const{size:e,tag:z,weight:r}=h.body,{size:x,tag:g,weight:m}=h[this.type],f=this.size||x||e,p=this.weight||m||r,d=g||z,b=a(this.textColor)?`var(--zonos-elements-${this.textColor})`:this.textColor;return s(t,{class:n(["zonos--elements",`zonos--text-size-${f}`,`zonos--text-weight-${p}`]),style:l({"--zonos--color":b,"--zonos--font-family":o(),"--zonos--font-size-2xl":i.appearance.fontSize2XL?`${i.appearance.fontSize2XL}px`:void 0,"--zonos--font-size-3xl":i.appearance.fontSize3XL?`${i.appearance.fontSize3XL}px`:void 0,"--zonos--font-size-base":i.appearance.fontSizeBase?`${i.appearance.fontSizeBase}px`:void 0,"--zonos--font-size-l":i.appearance.fontSizeL?`${i.appearance.fontSizeL}px`:void 0,"--zonos--font-size-s":i.appearance.fontSizeS?`${i.appearance.fontSizeS}px`:void 0,"--zonos--font-size-xl":i.appearance.fontSizeXL?`${i.appearance.fontSizeXL}px`:void 0,"--zonos--font-size-xs":i.appearance.fontSizeXS?`${i.appearance.fontSizeXS}px`:void 0})},(()=>{switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));default:return s("span",null,s("slot",null))}})())}};z.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl))}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-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}";export{z as zonos_text}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,o,t,n){function i(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?t(e.value):i(e.value).then(r,a)}l((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(o){return l([e,o])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];i=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,o,t){if(t||arguments.length===2)for(var n=0,i=o.length,s;n<i;n++){if(s||!(n in o)){if(!s)s=Array.prototype.slice.call(o,0,n);s[n]=o[n]}}return e.concat(s||Array.prototype.slice.call(o))};System.register(["./p-5fc34563.system.js","./p-4444bb4e.system.js","./p-9d863a3b.system.js","./p-23e7c655.system.js","./p-2d6557ee.system.js","./p-bc7bf53e.system.js","./p-2b8345d8.system.js","./p-755cf8bc.system.js","./p-5a2dd041.system.js"],(function(e){"use strict";var o,t,n,i,s,r,a,l,d,c,h,u,f;return{setters:[function(e){o=e.r;t=e.c;n=e.h;i=e.F;s=e.H},function(e){r=e.l;a=e.d;l=e.t},function(e){d=e.z},function(e){c=e.c},function(e){h=e.f},function(e){u=e.g},function(e){f=e.e},function(){},function(){}],execute:function(){var m=function(e){var o=e.getBoundingClientRect();var t=o.top;var n=window.innerHeight-o.bottom;return t>=n};var g=function(e){var o=e.href,t=e.text;return'<zonos-link href="'.concat(o,'" target="_blank" rel="noopener noreferrer">').concat(t,"</zonos-link>")};var b='<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n';var p='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n';var v='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.04505 6.64123C2.19006 8.49622 2.19006 11.5038 4.04505 13.3587L11.2929 20.6066C11.6834 20.9971 12.3166 20.9971 12.7071 20.6066L19.955 13.3587C21.8099 11.5038 21.8099 8.49622 19.955 6.64123L17.8336 4.51991C17.4431 4.12939 16.8099 4.12939 16.4194 4.51991L13.5241 7.41527C12.5864 6.86157 11.4136 6.86157 10.4759 7.41527L7.58059 4.51991C7.19006 4.12939 6.5569 4.12939 6.16637 4.51991L4.04505 6.64123ZM5.10571 12.2981C3.83651 11.0289 3.83651 8.9711 5.10571 7.70189L6.87348 5.93413L9.70191 8.76255C10.1056 9.16622 10.6991 9.12 11.0641 8.82749C11.6091 8.39083 12.3909 8.39082 12.9359 8.82749C13.301 9.12 13.8944 9.16622 14.2981 8.76255L17.1265 5.93413L18.8943 7.70189C20.1635 8.9711 20.1635 11.0289 18.8943 12.2981L12 19.1924L5.10571 12.2981Z"\n fill="#0F1015" />\n <path\n d="M10.0333 3.28075C9.63566 3.39679 9.40739 3.8132 9.52343 4.21083C9.63947 4.60846 10.0559 4.83673 10.4535 4.72069C11.4618 4.42644 12.5383 4.42644 13.5466 4.72069C13.9442 4.83673 14.3606 4.60846 14.4766 4.21083C14.5927 3.81321 14.3644 3.39679 13.9668 3.28075C12.6841 2.90642 11.316 2.90642 10.0333 3.28075Z"\n fill="#0F1015" />\n</svg>';var w='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var x='<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n';var z='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var C=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:2147483647}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";var y=C;var k=e("zonos_hello_dialog",function(){function e(e){var n=this;o(this,e);this.closeDialog=t(this,"closeDialog",7);this.isOpen=false;this.setIsOpen=function(){};this.restrictedItems=[];this.welcomeMessage="Welcome to our Demo App!";this.showCountrySelect=false;this.showLanguageSelect=false;this.clickOutsideDialogHandler=function(e){if(!e.composedPath().includes(n.dialogRef)&&n.isOpen){n.setIsOpen(false)}};this.getCurrentPageEnum=function(){switch(d.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}};this.setShowCountrySelect=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(o){this.showCountrySelect=e;return[2]}))}))};this.setShowLanguageSelect=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(o){this.showLanguageSelect=e;return[2]}))}))};this.hasTaxId=function(){var e;return(e=r.countryLandedCost)===null||e===void 0?void 0:e.hasTaxId};this.hasInclusivePrices=function(){var e;return((e=r.inclusivePricing)===null||e===void 0?void 0:e.status)==="ENABLED"};this.isNoThresholdCountry=function(e){if(!e||!n.hasTaxId()){return false}var o=__spreadArray(["AU","NZ","GB","NO","SG"],f,true);return o.includes(e)};this.getDutyMessage=function(){var e=r.countryLandedCost;var o=(e===null||e===void 0?void 0:e.dutyDeminimus)?a({amount:e.dutyDeminimus}):null;return o?l("Spend up to [threshold] duty free.",{threshold:o}):l("Duties will apply to all orders.")};this.getTaxMessage=function(){var e=r.countryLandedCost;var o=(e===null||e===void 0?void 0:e.vatTaxDeminimus)?a({amount:e.vatTaxDeminimus}):null;return o&&!n.isNoThresholdCountry(e===null||e===void 0?void 0:e.countryCode)?l("Spend up to [threshold] tax free.",{threshold:o}):l("Taxes will apply to all orders.")};this.getEuDutyTaxMessage=function(e){return["".concat(l("Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")}))]};this.getUkDutyTaxMessage=function(e){if(e.allowLowValueOrders){return["".concat(l("Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss",text:l("Learn more.")}))]}var o=e.dutyDeminimus;return[l("Orders to [countryName] must be over [threshold] to ship.",{countryName:"United Kingdom",threshold:a({amount:o})})]};this.getAustraliaDutyTaxMessage=function(e){if(n.hasInclusivePrices()){return[]}return["".concat(l("Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst",text:l("Learn more.")}))]};this.getNewZealandDutyTaxMessge=function(e){if(n.hasInclusivePrices()){return null}return["".concat(l("Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes",text:l("Learn more.")}))]};this.getNorwayDutyTaxMessage=function(e){if(n.hasInclusivePrices()){return null}return["".concat(l("Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/guides/country-guides/norway-voec-scheme",text:l("Learn more.")}))]};this.getSingaporeDutyTaxMessage=function(e){if(n.hasInclusivePrices()){return null}return["".concat(l("Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.",{percentage:"".concat(e.vatTaxRate*100,"%")})," ").concat(g({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings",text:l("Learn more.")}))]};this.getInclusivePriceMessage=function(){var e=r.inclusivePricing;if((e===null||e===void 0?void 0:e.status)!=="ENABLED"){return null}if(e.duty.status==="INCLUDED"&&e.tax.status==="INCLUDED"&&e.fee.status==="INCLUDED"){return l("Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.")}if(e.duty.status==="INCLUDED"&&e.tax.status==="INCLUDED"){return l("Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.")}if(e.duty.status==="INCLUDED"&&e.fee.status==="INCLUDED"){return l("Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.")}if(e.tax.status==="INCLUDED"&&e.fee.status==="INCLUDED"){return l("Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions.")}if(e.duty.status==="INCLUDED"){return l("Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.")}if(e.tax.status==="INCLUDED"){return l("Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions.")}if(e.fee.status==="INCLUDED"){return l("Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.")}return null};this.getAdditionalDutyTaxMessage=function(){if(!r.countryLandedCost){return null}if(!n.hasTaxId()){return null}switch(r.countryLandedCost.countryCode){case"GB":return n.getUkDutyTaxMessage(r.countryLandedCost);case"AU":return n.getAustraliaDutyTaxMessage(r.countryLandedCost);case"NZ":return n.getNewZealandDutyTaxMessge(r.countryLandedCost);case"NO":return n.getNorwayDutyTaxMessage(r.countryLandedCost);case"SG":return n.getSingaporeDutyTaxMessage(r.countryLandedCost);default:if(f.includes(r.countryLandedCost.countryCode)){return n.getEuDutyTaxMessage(r.countryLandedCost)}return null}}}e.prototype.globalClickHandler=function(e){this.clickOutsideDialogHandler(e)};e.prototype.isOpenHandler=function(e){if(!e){void this.setShowCountrySelect(false);void this.setShowLanguageSelect(false)}};e.prototype.render=function(){var e=this;var o;var t=r.selectedCountryCode;var a=this.hasInclusivePrices();var f=this.getInclusivePriceMessage();var g=this.getDutyMessage();var C=this.getTaxMessage();var y=this.getAdditionalDutyTaxMessage();var k=this.animateFromLeftOverride||this.dialogRef&&u(this.dialogRef);var L=this.dialogRef&&m(this.dialogRef);var D=r.customMessages;var N=l("Welcome to [storeName]",{storeName:d.organizationName});var H=((o=D.find((function(e){return e.pageName==="hello_default"})))===null||o===void 0?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!");var V=h(H);var _=this.getCurrentPageEnum();var Z=D.filter((function(e){return e.pageName===_}));return n(s,{key:"0830447fd72c987521c1790936f64948c28e368a",class:"zonos--elements"},n("div",{key:"945b144257ac98cd3e18484b5df7c656967ed4bb",class:c(["zonos--hello-dialog",k&&"zonos--hello-dialog-animate-from-left",L&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),inert:!this.isOpen,ref:function(o){return o&&(e.dialogRef=o)}},!this.showCountrySelect&&!this.showLanguageSelect&&n("div",{key:"d4281bee820f6f1c0128a27a68637d9cf14bb9df"},n("div",{key:"2eb86efbcf9a69fcad628fff00d6f4834026f720",class:"zonos--hello-dialog-content"},n("zonos-button",{key:"54c1db50880af58304586091a2c96b63d21939b9",class:"zonos--close-button",icon:n("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:z}),noBackground:true,onClick:function(){return e.setIsOpen(false)}}),n("zonos-v-stack",{key:"4814c176342c0a81379e499c9e9c9fff2611ca30",spacing:24},n("zonos-country-flag",{key:"a96e2f98b8d34d9c9b85e7b1989e6c29a9efb319",class:"zonos--hello-country-flag",countryCode:t}),n("zonos-v-stack",{key:"bdfcfa7d339c007df770101d8a63433d40be6ce2",class:"zonos--hello-dialog-header",spacing:4},n("zonos-text",{key:"7bebb2baef3b43444325b8755d9de41f7617a30a",type:"boldSubheader"},N),n("zonos-text",{key:"cc5e7c2dda01e545a1d85bbbb1e5cab53ab27574",innerHTML:V,textColor:"gray-800"})),n("zonos-v-stack",{key:"dbd3743ea89e59796b8f0a7c90eb4bf2564212ad",spacing:8},this.restrictedItems.map((function(e){var o;return e&&n("zonos-banner",{bannerTitle:e.name,intent:"error"},(o=e.itemRestrictions)===null||o===void 0?void 0:o.map((function(e){return n("zonos-text",{textColor:"red-800"},e===null||e===void 0?void 0:e.note)})))})),n("zonos-card",{key:"428f00f603d782b9496d40049571e3ea9dad57ba",spacing:"12px"},n("zonos-v-stack",{key:"1433a878c9782cb57cbe85d83bdbe090d0e5d610",spacing:12},a?n("div",{class:"zonos--flex-message"},n("zonos-icon",{"aria-label":"Duty de minimis",content:v}),n("zonos-text",null,f)):n(i,null,n("div",{class:"zonos--flex-message"},n("zonos-icon",{"aria-label":"Duty de minimis icon",content:p}),n("zonos-text",{"aria-label":"Duty de minimis message"},g)),n("div",{class:"zonos--flex-message"},n("zonos-icon",{"aria-label":"Tax de minimis icon",content:x}),n("zonos-text",{"aria-label":"Tax de minimis message"},C))),y===null||y===void 0?void 0:y.map((function(e){return n("div",{class:"zonos--flex-message"},n("zonos-icon",{"aria-label":"Additional information for buying goods from selected country icon",content:b}),n("zonos-text",{"aria-label":"Additional information for buying goods from selected country message",innerHTML:e}))})))),Z.map((function(e){return n("zonos-custom-message",{icon:w,message:e.message})}))))),n("zonos-hello-dialog-footer",{key:"09e8b05e240cd995e16c0f736df6ef66d9fff511",appearanceSettings:this.appearanceSettings,setShowCountrySelect:function(o){return e.setShowCountrySelect(o)},setShowLanguageSelect:function(o){return e.setShowLanguageSelect(o)}})),this.showCountrySelect&&n("div",{key:"1ed01c7f23d1b1f5a1e95d39e614e748ea407d6f"},n("zonos-country-select",{key:"b8c249f2e9f902e444b22371e9581be7ab34f07a",handleOnClose:function(){return e.setShowCountrySelect(false)}})),this.showLanguageSelect&&n("div",{key:"cc6066e1e0eba08130342cef80ecdcd8c2e53e49"},n("zonos-language-select",{key:"c803df7ce92321f72d48a39eddcf1bbd3e279738",handleOnClose:function(){return e.setShowLanguageSelect(false)}}))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:["isOpenHandler"]}},enumerable:false,configurable:true});return e}());k.style=y}}}));
@@ -1 +1 @@
1
- import{r as e,h as s,H as a}from"./p-1640d77f.js";import{f as o}from"./p-6aa728f2.js";import{c as t}from"./p-b4b7f705.js";import{g as r}from"./p-207bd04a.js";import"./p-04a01cb1.js";const d=class{constructor(s){e(this,s),this.borderRadius=6,this.spacing="24px"}render(){const e=this.backgroundColor?`var(--zonos-elements-${this.backgroundColor})`:"transparent",d=r({customRoundRadius:`${this.borderRadius}px`,overrideBorderStyle:"ROUNDED"});return s(a,{key:"d1a2b02f3d33492fc76bd88cf92e68bf1603cbd0",style:{"--zonos--font-family":o()}},s("div",{key:"0c9acee7938dc95d1f6267dff6fa399bd8a65b95",class:t(["styled-card"]),style:{"--zonos--background-color":e,"--zonos--border-radius":d,padding:this.spacing}},this.label&&s("header",{key:"2559a7fd78c4c4a97ce466e0eefbc4db8409c97f",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"287e0e64461cb5206a653711346fd8eb62524a00",type:"subheader"},this.label),s("h-stack",{key:"9ac80b9c555a93232bbcdd0e1769a4b78ded2fa8",spacing:8},this.actions)),s("slot",{key:"3342bd7f5d2af58740c49d353f311ce1c4101f13"}),(this.footerActions||this.footerContent)&&s("footer",{key:"dee65ea527dfac5821ece452426e2d33f127e356",class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},s("div",{key:"13a23726ada09eb39783ea261b760cbe83587f5b"},this.footerContent),s("h-stack",{key:"1389bcbce376431f3008669e9f55a69b0a177d85",spacing:8},this.footerActions))))}};d.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-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, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";export{d as zonos_card}
1
+ import{r as e,h as s,H as a}from"./p-b30c2ad9.js";import{f as o}from"./p-7ce093aa.js";import{c as t}from"./p-b4b7f705.js";import{g as r}from"./p-2b9c124d.js";import"./p-04a01cb1.js";const d=class{constructor(s){e(this,s),this.borderRadius=6,this.spacing="24px"}render(){const e=this.backgroundColor?`var(--zonos-elements-${this.backgroundColor})`:"transparent",d=r({customRoundRadius:`${this.borderRadius}px`,overrideBorderStyle:"ROUNDED"});return s(a,{key:"d1a2b02f3d33492fc76bd88cf92e68bf1603cbd0",style:{"--zonos--font-family":o()}},s("div",{key:"0c9acee7938dc95d1f6267dff6fa399bd8a65b95",class:t(["styled-card"]),style:{"--zonos--background-color":e,"--zonos--border-radius":d,padding:this.spacing}},this.label&&s("header",{key:"2559a7fd78c4c4a97ce466e0eefbc4db8409c97f",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"287e0e64461cb5206a653711346fd8eb62524a00",type:"subheader"},this.label),s("h-stack",{key:"9ac80b9c555a93232bbcdd0e1769a4b78ded2fa8",spacing:8},this.actions)),s("slot",{key:"3342bd7f5d2af58740c49d353f311ce1c4101f13"}),(this.footerActions||this.footerContent)&&s("footer",{key:"dee65ea527dfac5821ece452426e2d33f127e356",class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},s("div",{key:"13a23726ada09eb39783ea261b760cbe83587f5b"},this.footerContent),s("h-stack",{key:"1389bcbce376431f3008669e9f55a69b0a177d85",spacing:8},this.footerActions))))}};d.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-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, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";export{d as zonos_card}
@@ -1,4 +1,4 @@
1
- import{z as o,c as e}from"./p-6aa728f2.js";import{t as n,z as r,c as t,e as a,v as i,r as s,j as c}from"./p-992f0b96.js";import{t as l,s as u}from"./p-a6f77d44.js";import{h as d,l as p,b as v,j as y}from"./p-20839c46.js";import{t as f}from"./p-71c6bdc3.js";
1
+ import{z as o,c as e}from"./p-7ce093aa.js";import{t as n,z as r,c as t,e as a,v as i,r as s,j as c}from"./p-23079911.js";import{t as l,s as u}from"./p-a45a15a0.js";import{h as d,l as p,b as v,j as y}from"./p-2eec2d7c.js";import{t as f}from"./p-56e0ed65.js";
2
2
  /*!
3
3
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
4
4
  * Copyright 2020-present, PayPal, Inc. All rights reserved.
@@ -1 +1 @@
1
- System.register(["./p-02da743b.system.js","./p-0751b878.system.js","./p-19182dc7.system.js","./p-c9e433c0.system.js","./p-a411ce2a.system.js","./p-5a2dd041.system.js"],(function(e){"use strict";var o,t,n,s,a,l,i,c;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){s=e.p;a=e.t;l=e.l},function(e){i=e.f},function(e){c=e.l},function(){},function(){}],execute:function(){var r='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var d=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var h=d;var f=e("zonos_language_select",function(){function e(e){var t=this;o(this,e);this.handleOnClose=function(){};this.languageSelected=function(e){void s(e);t.handleOnClose()}}e.prototype.render=function(){var e=this;var o=l.selectedLocale;return t(n,{key:"cc711dba7371852eab6e20994389ae3b95bb3be7",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("div",{key:"47135e2b7363a3179139a7b8e23cb22435ce3299",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"3bf830e585fa6478f560c57dfa978721af47ad19",handleOnClose:function(){return e.handleOnClose()},label:a("Select a language")}),t("div",{key:"f693b231755087ec849f5a759b2dc43e2695b24f",class:"zonos--language-select-content"},c.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===o&&t("zonos-icon",{content:r,size:16}))})))))};return e}());f.style=h;var g='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var u=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var p=u;var m=e("zonos_select_dialog_header",function(){function e(e){o(this,e);this.handleOnClose=function(){};this.label=""}e.prototype.render=function(){var e=this;return t(n,{key:"184508c2af24eedda1e4a59db89f787cd71a345f",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("zonos-v-stack",{key:"28bd290a2307c13e93036ee988f71bba87e76b19",class:"zonos--select-dialog-header-wrapper",spacing:8},t("div",{key:"49c2a1c0c44d9950907f47d90c9a34a83e5158da",class:"zonos--select-dialog-header"},t("zonos-text",{key:"244ef10f5ee38d4a056ad6c076185d42ca3cd174",type:"boldLabel"},this.label),t("zonos-button",{key:"dab99b609f1a3250f73e2f25b837c9300a964090",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close select dialog",content:g,size:20}),noBackground:true,onClick:function(){return e.handleOnClose()}})),t("slot",{key:"b2fdb25cdc7c6382ec8d171aa14f1f4b7f33a4e8"})))};return e}());m.style=p}}}));
1
+ System.register(["./p-5fc34563.system.js","./p-4444bb4e.system.js","./p-9d863a3b.system.js","./p-c9e433c0.system.js","./p-755cf8bc.system.js","./p-5a2dd041.system.js"],(function(e){"use strict";var o,t,n,s,a,l,i,c;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){s=e.p;a=e.t;l=e.l},function(e){i=e.f},function(e){c=e.l},function(){},function(){}],execute:function(){var r='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var d=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var h=d;var f=e("zonos_language_select",function(){function e(e){var t=this;o(this,e);this.handleOnClose=function(){};this.languageSelected=function(e){void s(e);t.handleOnClose()}}e.prototype.render=function(){var e=this;var o=l.selectedLocale;return t(n,{key:"cc711dba7371852eab6e20994389ae3b95bb3be7",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("div",{key:"47135e2b7363a3179139a7b8e23cb22435ce3299",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"3bf830e585fa6478f560c57dfa978721af47ad19",handleOnClose:function(){return e.handleOnClose()},label:a("Select a language")}),t("div",{key:"f693b231755087ec849f5a759b2dc43e2695b24f",class:"zonos--language-select-content"},c.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===o&&t("zonos-icon",{content:r,size:16}))})))))};return e}());f.style=h;var g='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var u=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var p=u;var m=e("zonos_select_dialog_header",function(){function e(e){o(this,e);this.handleOnClose=function(){};this.label=""}e.prototype.render=function(){var e=this;return t(n,{key:"184508c2af24eedda1e4a59db89f787cd71a345f",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("zonos-v-stack",{key:"28bd290a2307c13e93036ee988f71bba87e76b19",class:"zonos--select-dialog-header-wrapper",spacing:8},t("div",{key:"49c2a1c0c44d9950907f47d90c9a34a83e5158da",class:"zonos--select-dialog-header"},t("zonos-text",{key:"244ef10f5ee38d4a056ad6c076185d42ca3cd174",type:"boldLabel"},this.label),t("zonos-button",{key:"dab99b609f1a3250f73e2f25b837c9300a964090",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close select dialog",content:g,size:20}),noBackground:true,onClick:function(){return e.handleOnClose()}})),t("slot",{key:"b2fdb25cdc7c6382ec8d171aa14f1f4b7f33a4e8"})))};return e}());m.style=p}}}));
@@ -1,2 +1,2 @@
1
1
  var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&a.o?b(w):a.raf(w))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&a.raf(w)},b=e=>f().then(e),g=v(m,!0),$=e=>{const t=new URL(e,a.l);return t.origin!==u.location.origin?t.href:t.pathname},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,x,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?U(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,W);const u=U(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},U=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},W={forEach:(e,t)=>e.map(A).forEach(t),map:(e,t)=>e.map(A).map(t).map(F)},A=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),F=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},L=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,N=e=>t(e).$hostElement$,H=(e,t,n)=>{const o=N(e);return{emit:e=>T(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},T=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},z=new WeakMap,V=e=>"sc-"+e.S,q=(e,t,n,l,s,i)=>{if(n===l)return;let r=o(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,o=I(n);let s=I(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}let u=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(t=f,u=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(c,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&1===e.nodeType&&(l=!0===l?"":l,u?e.setAttributeNS(c,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(u,f)?f.slice(2):f[2]+t.slice(3),n||l){const o=t.endsWith(Y);t=t.replace(_,""),n&&a.rel(e,t,n,o),l&&a.ael(e,t,l,o)}},G=/\s/,I=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(G):[]),Y="Capture",_=RegExp(Y+"$"),B=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of J(Object.keys(l)))e in s||q(o,e,l[e],void 0,n,t.o);for(const e of J(Object.keys(s)))q(o,e,l[e],s[e],n,t.o)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(K||(K="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElementNS(K?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),K&&"foreignObject"===o.m&&(K=!1),B(null,o,K),null!=C&&void 0!==C&&l["s-si"]!==C&&l.classList.add(l["s-si"]=C),o.h)for(i=0;i<o.h.length;++i)s=Q(e,o,i),s&&l.appendChild(s);"svg"===o.m?K=!1:"foreignObject"===l.tagName&&(K=!0)}return l["s-hn"]=x,l},X=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===x&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Q(null,n,l),i&&(o[l].v=i,oe(r,i,t)))},Z=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;ne(t),e&&e.remove()}}},ee=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),te=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(B(e,t,K="svg"===i||"foreignObject"!==i&&K),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ee(d,m,l))te(d,m,l),d=t[++r],m=o[++c];else if(ee(h,v,l))te(h,v,l),h=t[--f],v=o[--p];else if(ee(d,v,l))te(d,v,l),oe(e,d.v,h.v.nextSibling),d=t[++r],v=o[--p];else if(ee(h,m,l))te(h,m,l),oe(e,h.v,d.v),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=Q(t&&t[c],n,u):(te(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=Q(t&&t[c],n,c),m=o[++c]),s&&oe(d.v.parentNode,s,d.v)}r>f?X(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&Z(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),X(o,null,t,s,0,s.length-1)):!n&&null!==l&&Z(l,0,l.length-1),K&&"svg"===i&&(K=!1)):e.i!==r&&(o.data=r)},ne=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ne)},oe=(e,t,n)=>("string"==typeof t["s-sn"]&&t["s-sr"]&&t["s-cr"]&&function(e,t,n,o){var l,s;let i;if(e&&"string"==typeof t["s-sn"]&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(i=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"],r=t["s-hn"];if(null==(l=n.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let t=(o.__childNodes||o.childNodes)[0],n=!1;for(;t;){if(t["s-sn"]!==e&&t["s-hn"]===r&&t["s-sr"]){n=!0;break}t=t.nextSibling}n||o.classList.remove(i+"-s")}}}(t["s-cr"],t,e,t.parentElement),null==e?void 0:e.insertBefore(t,n)),le=(e,t)=>{if(t&&!e.j&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.j=()=>{t["s-p"].splice(n-1,1),o()})))}},se=(e,t)=>{if(e.o|=16,!(4&e.o))return le(e,e.k),g((()=>ie(e,t)));e.o|=512},ie=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.o|=256,e.O&&(e.O.map((([e,t])=>ve(o,e,t,n))),e.O=void 0),l=ve(o,"componentWillLoad",void 0,n)):l=ve(o,"componentWillUpdate",void 0,n),l=re(l,(()=>ve(o,"componentWillRender",void 0,n))),re(l,(()=>ue(e,o,t)))},re=(e,t)=>ce(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ce=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=i.get(o);if(!u.document)return o;if(e=11===e.nodeType?e:u.document,l)if("string"==typeof l){let s,i=z.get(e=e.head||e);if(i||z.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.M)?n:j(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);fe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>he(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ae=null,fe=(e,t,n,o)=>{try{ae=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.C,s=e.P||U(null,null),i=(e=>e&&e.m===D)(t)?t:R(null,null,t);if(x=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.P=i,i.v=s.v=o.shadowRoot||o,C=o["s-sc"],te(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return ae=null,null},de=()=>ae,he=e=>{const t=e.$hostElement$,n=e.t,o=e.k;ve(n,"componentDidRender",void 0,t),64&e.o?ve(n,"componentDidUpdate",void 0,t):(e.o|=64,ye(t),ve(n,"componentDidLoad",void 0,t),e.R(t),o||me()),e.U(t),e.j&&(e.j(),e.j=void 0),512&e.o&&b((()=>se(e,!1))),e.o&=-517},pe=e=>{{const n=t(e),o=n.$hostElement$.isConnected;return o&&2==(18&n.o)&&se(n,!1),o}},me=()=>{b((()=>T(u,"appload",{detail:{namespace:"zonos-elements"}})))},ve=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ye=e=>e.classList.add("hydrated"),we=(e,n,o,s)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${s.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.D.get(n),u=i.o,a=i.t;if(o=L(o,s.W[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.D.set(n,o),a)){if(s.A&&128&u){const e=s.A[n];e&&e.map((e=>{try{a[e](o,c,n)}catch(e){l(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;se(i,!1)}}},be=(e,n,o)=>{var l,s;const i=e.prototype;if(n.W||n.A||e.watchers){e.watchers&&!n.A&&(n.A=e.watchers);const r=Object.entries(null!=(l=n.W)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(n.W[e][0]|=2048),r&&(n.W[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.W[e][0]))return((e,n)=>t(this).D.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=t(this);if(r){const t=32&l?this[e]:i.$hostElement$[e];return void 0===t&&i.D.get(e)?s=i.D.get(e):!i.D.get(e)&&t&&i.D.set(e,t),r.call(this,L(s,l)),void we(this,e,s=32&l?this[e]:i.$hostElement$[e],n)}{if(!(1&o&&4096&n.W[e][0]))return we(this,e,s,n),void(1&o&&!i.t&&i.F.then((()=>{4096&n.W[e][0]&&i.t[e]!==i.D.get(e)&&(i.t[e]=s)})));const t=()=>{const t=i.t[e];!i.D.get(e)&&t&&i.D.set(e,t),i.t[e]=L(s,l),we(this,e,i.t[e],n)};i.t?t():i.F.then((()=>t()))}}})}else 1&o&&64&l&&Object.defineProperty(i,e,{value(...n){var o;const l=t(this);return null==(o=null==l?void 0:l.L)?void 0:o.then((()=>{var t;return null==(t=l.t)?void 0:t[e](...n)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=t(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const t=o.t,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=t[n]&&t[n].call(t,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.A)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ge=(e,t)=>{ve(e,"connectedCallback",void 0,t)},$e=(e,t)=>{ve(e,"disconnectedCallback",void 0,t||e)},Se=(e,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],h=u.customElements,p=u.document.head,m=p.querySelector("meta[charset]"),v=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((n=>{var o;const r={o:n[0],S:n[1],W:n[2],N:n[3]};4&r.o&&(g=!0),r.W=n[2],r.N=n[3],r.A=null!=(o=n[4])?o:{};const u=r.S,p=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,C:t,D:new Map};n.L=new Promise((e=>n.U=e)),n.F=new Promise((e=>n.R=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open",delegatesFocus:!!(16&r.o)})}connectedCallback(){const e=t(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ke(this,e,r.N)),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const n=t(e),o=n.C,r=()=>{};if(1&n.o)ke(e,n,o.N),(null==n?void 0:n.t)?ge(n.t,e):(null==n?void 0:n.F)&&n.F.then((()=>ge(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){le(n,n.k=t);break}}o.W&&Object.entries(o.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.H){const i=((e,t)=>{const n=e.S.replace(/-/g,"_"),o=e.H;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${t.T}" was not found`);o.isProxied||(n.A=o.watchers,be(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),ge(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.k,c=()=>se(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);n.V&&(n.V.map((e=>e())),n.V=void 0),(null==n?void 0:n.t)?$e(n.t,e):(null==n?void 0:n.F)&&n.F.then((()=>$e(n.t,e)))}z.has(e)&&z.delete(e),e.shadowRoot&&z.has(e.shadowRoot)&&z.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.P)?void 0:e.v)instanceof Node&&!n.P.v.isConnected&&delete n.P.v}))}componentOnReady(){return t(this).F}};r.H=e[0],f.includes(u)||h.get(u)||(c.push(u),h.define(u,be(p,r,1)))}))})),c.length>0&&(g&&(v.textContent+=r),v.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=a.M)?o:j(u.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((e=>e.connectedCallback())):a.jmp((()=>w=setTimeout(me,30)))},je=(e,t)=>t,ke=(e,t,n)=>{n&&u.document&&n.map((([n,o,l])=>{const s=Ee(u.document,e,n),i=Oe(t,l),r=Ce(n);a.ael(s,o,i,r),(t.V=t.V||[]).push((()=>a.rel(s,o,i,r)))}))},Oe=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.O=e.O||[]).push([t,n])}catch(t){l(t,e.$hostElement$)}},Ee=(e,t,n)=>4&n?e:8&n?u:16&n?e.body:t,Ce=e=>({passive:!!(1&e),capture:!!(2&e)}),xe=e=>a.M=e;export{je as F,D as H,$ as a,Se as b,H as c,N as d,pe as f,de as g,R as h,f as p,n as r,xe as s}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${t.T}" was not found`);o.isProxied||(n.A=o.watchers,be(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),ge(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.k,c=()=>se(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);n.V&&(n.V.map((e=>e())),n.V=void 0),(null==n?void 0:n.t)?$e(n.t,e):(null==n?void 0:n.F)&&n.F.then((()=>$e(n.t,e)))}z.has(e)&&z.delete(e),e.shadowRoot&&z.has(e.shadowRoot)&&z.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.P)?void 0:e.v)instanceof Node&&!n.P.v.isConnected&&delete n.P.v}))}componentOnReady(){return t(this).F}};r.H=e[0],f.includes(u)||h.get(u)||(c.push(u),h.define(u,be(p,r,1)))}))})),c.length>0&&(g&&(v.textContent+=r),v.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=a.M)?o:j(u.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((e=>e.connectedCallback())):a.jmp((()=>w=setTimeout(me,30)))},je=(e,t)=>t,ke=(e,t,n)=>{n&&u.document&&n.map((([n,o,l])=>{const s=Ee(u.document,e,n),i=Oe(t,l),r=Ce(n);a.ael(s,o,i,r),(t.V=t.V||[]).push((()=>a.rel(s,o,i,r)))}))},Oe=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.O=e.O||[]).push([t,n])}catch(t){l(t,e.$hostElement$)}},Ee=(e,t,n)=>4&n?e:8&n?u:16&n?e.body:t,Ce=e=>({passive:!!(1&e),capture:!!(2&e)}),xe=e=>a.M=e;export{je as F,D as H,N as a,Se as b,H as c,$ as d,pe as f,de as g,R as h,f as p,n as r,xe as s}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,n,r,t){function o(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{d(t.next(e))}catch(e){i(e)}}function s(e){try{d(t["throw"](e))}catch(e){i(e)}}function d(e){e.done?r(e.value):o(e.value).then(a,s)}d((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(n){return d([e,n])}}function d(s){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(t=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e];o=0}finally{t=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,o=n.length,i;t<o;t++){if(i||!(t in n)){if(!i)i=Array.prototype.slice.call(n,0,t);i[t]=n[t]}}return e.concat(i||Array.prototype.slice.call(n))};System.register(["./p-9d863a3b.system.js","./p-4444bb4e.system.js","./p-755cf8bc.system.js","./p-e7f8595f.system.js","./p-e63b8b24.system.js"],(function(e){"use strict";var n,r,t,o,i,a,s,d,u,l,c,v,f,p,h,m,w,g;return{setters:[function(e){n=e.z;r=e.c},function(e){t=e.s;o=e.l;i=e.t;a=e.f;s=e.b},function(e){d=e.l;u=e.f;l=e.h;c=e.g;v=e.a;f=e.s;p=e.d;h=e.b;m=e.j},function(e){w=e.i},function(e){g=e.g}],execute:function(){var y=this;var b=function(e){var n=e.currentAddress,r=e.translatedAddress;var t,o,i,a,s,d;var u=n.value.address,l=u.city,c=u.country,v=u.line1,f=u.line2,p=u.postal_code,h=u.state;var m=n.value.name||[n.value.firstName,n.value.lastName].join(" ");return{city:((t=r.city)===null||t===void 0?void 0:t[l])||l,country:c,line1:((o=r.line1)===null||o===void 0?void 0:o[v])||v,line2:((i=r.line2)===null||i===void 0?void 0:i[f||""])||f||"",name:((a=r.name)===null||a===void 0?void 0:a[m])||m,phone:n.value.phone||"",postal_code:((s=r.postal_code)===null||s===void 0?void 0:s[p])||p,state:((d=r.state)===null||d===void 0?void 0:d[h])||h}};var _=function(e){var n;var r=new URLSearchParams(window.location.search).get("zonosE2ETest")==="1";var o=B.stripeLinkEventData;var i=B.stripeAddressEventData;var a=B.stripeShippingSameAsBilling?B.stripeAddressEventData:B.stripeBillingAddressEventData;if(!i||!a){throw new Error("Missing stripe address data")}var s=b({currentAddress:i,translatedAddress:B.translatedAddress.address});var d=s.name.split(" ")[0]||"";var u=s.name.split(" ").splice(1).join(" ")||"";var l=b({currentAddress:a,translatedAddress:B.translatedAddress.address});var c=l.name.split(" ")[0]||"";var v=l.name.split(" ").splice(1).join(" ")||"";return{billingAddress:{addressLine1:l.line1,addressLine2:l.line2||"",city:l.city,country:l.country,postalCode:l.postal_code,state:l.state},billingContact:{firstName:c,lastName:v,phone:l.phone},cartCurrencyCode:(n=_e.items[0])===null||n===void 0?void 0:n.currencyCode,cartId:e,checkoutSessionId:t.checkoutSessionId||"",contact:{companyName:B.companyName,email:o===null||o===void 0?void 0:o.value.email,firstName:d,lastName:u,phone:s.phone},isTest:!!r,landedCostAdjustments:_e.promoCode?[{amount:0,productId:null,promoCode:_e.promoCode,sku:null,type:"PROMO_CODE"}]:[],shipToTaxId:B.taxId,shippingAddress:{addressLine1:s.line1,addressLine2:s.line2,city:s.city,country:s.country,postalCode:s.postal_code,state:s.state}}};var S=function(){var e=new URLSearchParams(window.location.search).get("zonosE2ETest")==="1";var n=B.stripeLinkEventData;var r=B.stripeAddressEventData;var o=B.stripeShippingSameAsBilling?B.stripeAddressEventData:B.stripeBillingAddressEventData;d({stripeAddressData:r,stripeBillingAddressData:o},"info");if(!r||!o){throw new Error("Missing stripe address data")}var i=b({currentAddress:r,translatedAddress:B.translatedAddress.address});var a=i.name.split(" ")[0]||"";var s=i.name.split(" ").splice(1).join(" ")||"";var u=b({currentAddress:o,translatedAddress:B.translatedAddress.address});var l=u.name.split(" ")[0]||"";var c=u.name.split(" ").splice(1).join(" ")||"";var v=_e.adjustments.map((function(e){return{amount:e.amount,name:e.description||null,productId:e.productId,sku:e.sku,type:e.type}}));var f=_e.promoCode?__spreadArray([{amount:0,productId:null,promoCode:_e.promoCode,sku:null,type:"PROMO_CODE"}],v,true):v;return{billingAddress:{addressLine1:u.line1,addressLine2:u.line2||"",city:u.city,country:u.country,postalCode:u.postal_code,state:u.state},billingContact:{firstName:l,lastName:c,phone:u.phone},checkoutSessionId:t.checkoutSessionId||"",contact:{companyName:B.companyName,email:n===null||n===void 0?void 0:n.value.email,firstName:a,lastName:s,phone:i.phone},isTest:e,items:_e.items,landedCostAdjustments:f,shipToTaxId:B.taxId,shippingAddress:{addressLine1:i.line1,addressLine2:i.line2,city:i.city,country:i.country,postalCode:i.postal_code,state:i.state}}};var O=function(e){return __awaiter(y,void 0,void 0,(function(){var n,r,t,o,i,a,s,d,c,v;return __generator(this,(function(f){switch(f.label){case 0:a=S();return[4,e({billingAddress:a.billingAddress,billingContact:a.billingContact,checkoutSessionId:a.checkoutSessionId,contact:a.contact,landedCostAdjustments:a.landedCostAdjustments,publicCredential:window.Zonos.zonosApiKey||"",shippingAddress:a.shippingAddress,zonosApiRoute:u["vercel"]})];case 1:s=f.sent();if(!s||!((n=s.checkoutSessionWorkflow)===null||n===void 0?void 0:n.length)&&((r=s.errors)===null||r===void 0?void 0:r.length)){throw new Error("Failed to build landed cost: ".concat(((o=(t=s===null||s===void 0?void 0:s.errors)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.message)||"Unknown error"))}return[4,l("/api/zonos-elements/validate-landed-cost",{body:s,headers:{"Content-Type":"application/json"},method:"POST"})];case 2:d=f.sent(),c=d.errors,v=d.json;if(!v||c.length){throw new Error("Invalid landed cost object: ".concat(((i=c.find(Boolean))===null||i===void 0?void 0:i.message)||"Unknown error"))}return[2,s]}}))}))};var k=function(e){return __awaiter(y,void 0,void 0,(function(){var r,t,o,i,a,s,d;return __generator(this,(function(u){switch(u.label){case 0:t=n.checkoutSettings.buildLandedCost;if(!t)return[3,2];return[4,O(t)];case 1:o=u.sent();return[2,o];case 2:return[4,l("/api/zonos-elements/calculate-landed-cost",{body:S(),method:"POST",signal:e===null||e===void 0?void 0:e.signal})];case 3:i=u.sent(),a=i.errors,s=i.json;if(a.length||!s){d=((r=a[0])===null||r===void 0?void 0:r.message)==="The user aborted a request.";if(d){throw new Error("The landed cost calculation request was aborted to initiate a new one.")}a.forEach((function(e){console.warn("Error calculating landed cost: ".concat(e.message))}));if(!s){throw new Error("Failed to calculate landed cost")}return[2,s]}return[2,s]}}))}))};var C=function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,t,o,i,a,s,d,u,c;var v=e.abortController,f=e.cartId;return __generator(this,(function(e){switch(e.label){case 0:return[4,l("/api/zonos-elements/cart-calculate-landed-cost",{body:_(f),method:"POST",signal:v===null||v===void 0?void 0:v.signal})];case 1:a=e.sent(),s=a.errors,d=a.json;if(s.length||!d){u=typeof((n=s[0])===null||n===void 0?void 0:n.message)==="string"&&(((r=s[0])===null||r===void 0?void 0:r.message)==="The user aborted a request."||((t=s[0])===null||t===void 0?void 0:t.message.includes("signal is aborted"))||((o=s[0])===null||o===void 0?void 0:o.message.includes("The operation was aborted"))||((i=s[0])===null||i===void 0?void 0:i.message.includes("Fetch is aborted")));c=u?"The landed cost calculation request was aborted to initiate a new one.":"Failed to calculate landed cost";throw new Error(c)}return[2,d]}}))}))};var A=undefined&&undefined.__rest||function(e,n){var r={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0)r[t]=e[t];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++){if(n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o]))r[t[o]]=e[t[o]]}return r};var I=function(e){return __awaiter(y,void 0,void 0,(function(){var n,r,t,o,i;return __generator(this,(function(a){switch(a.label){case 0:n=window.Zonos.cartId;if(!!n)return[3,2];return[4,k(e)];case 1:r=a.sent();return[2,r];case 2:return[4,C({abortController:e,cartId:n})];case 3:t=a.sent(),o=t.cartWorkflow,i=A(t,["cartWorkflow"]);return[2,Object.assign(Object.assign({},i),{itemCreateWorkflow:o.items})]}}))}))};var T=e("t",(function(e){return __awaiter(y,[e],void 0,(function(e){var r,t,i,a,s,d,u,h,m;var w=e.checkoutSessionId,g=e.eventName,y=e.metadata;return __generator(this,(function(e){switch(e.label){case 0:i=Date.now();a=__spreadArray([],window.Zonos.trackEventLogs,true);window.Zonos.trackEventLogs.push({checkoutSessionId:w,eventCreated:i,eventName:g});s=window.location.href.includes("zonos.com")&&!window.location.href.includes("checkout.zonos.com")||!!((r=window.Zonos)===null||r===void 0?void 0:r.zonosQaUrl)||!!((t=window.Zonos)===null||t===void 0?void 0:t.debug);d=c()||v();if((d||s)&&!window.Zonos.zonosConversionTest){return[2]}u=o.selectedCountryCode;h=n.organizationId;if(!w){void f({endpoint:"trackConversionEventMetric",errors:['Event "'.concat(g,'" - No checkout session id found')],metadata:{allLogs:p,checkoutSessionId:w,eventName:g,metadata:y,organizationId:h,trackEventLogs:a}});return[2]}if(!h){void f({endpoint:"trackConversionEventMetric",errors:['Event "'.concat(g,'" - No organization id found')],metadata:{allLogs:p,checkoutSessionId:w,eventName:g,metadata:y,organizationId:h,trackEventLogs:a}})}m={checkoutSessionId:w,countryCode:u,eventCreated:i,eventName:g,metadata:Object.assign(Object.assign({},y),{trackEventLogs:a}),organizationId:h};return[4,l("/api/zonos-elements/track-conversion-event",{body:m,method:"POST"})];case 1:e.sent();return[2]}}))}))}));var E=function(e){var n=e.address,r=e.invalidAdddressList;if(!n){return}if(!r){return}var t={};if(r.city){t.city=n.city}if(r.line1){t.line1=n.line1}if(r.line2){t.line2=n.line2}if(r.postal_code){t.postal_code=n.postal_code}if(r.state){t.state=n.state}if(r.name){t.name=n.name}return Object.keys(t).length?t:undefined};var j=function(e){var n=e.addressInvalidCharactersList,r=e.billingAddressInvalidCharactersList,t=e.stripeAddressEventData,o=e.stripeBillingAddressEventData,i=e.stripeShippingSameAsBilling;var a,s,d,u;var l=!!(t===null||t===void 0?void 0:t.complete);var c=i?l:!!(o===null||o===void 0?void 0:o.complete);if(!l||!c){return null}if(!n&&!r){return null}var v=t.value;var f=(o===null||o===void 0?void 0:o.value)||null;var p=v.firstName||((a=v.name)===null||a===void 0?void 0:a.split(" ")[0]);var h=v.lastName||((s=v.name)===null||s===void 0?void 0:s.split(" ")[1]);var m="".concat(p," ").concat(h);var w=v.firstName||((d=f===null||f===void 0?void 0:f.name)===null||d===void 0?void 0:d.split(" ")[0]);var g=v.lastName||((u=f===null||f===void 0?void 0:f.name)===null||u===void 0?void 0:u.split(" ")[1]);var y=w&&g?"".concat(w," ").concat(g):"";var b=v.address;var _=f===null||f===void 0?void 0:f.address;return{address:E({address:Object.assign(Object.assign({},b),{name:m}),invalidAdddressList:n}),billingAddress:!i?E({address:_?Object.assign(Object.assign({},_),{name:y}):null,invalidAdddressList:r}):undefined,destinationCountry:b.country}};var N=e("K",(function(e){var n=e.sort((function(e,n){return e.amount-n.amount}));return n}));var P=function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,o;return __generator(this,(function(i){switch(i.label){case 0:if(!t.checkoutSessionId){return[2,{errors:[{message:"No checkout session id found"}],json:null}]}e=new URLSearchParams;e.set("checkoutSessionId",t.checkoutSessionId);return[4,l("/api/zonos-elements/get-checkout-session?".concat(e.toString()))];case 1:n=i.sent(),r=n.errors,o=n.json;return[2,{errors:r,json:o}]}}))}))};var D=e("z",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,t;return __generator(this,(function(o){switch(o.label){case 0:return[4,P()];case 1:n=o.sent(),r=n.errors,t=n.json;if(r.length||!t){h("Failed to retrieve checkout session info before confirming payment ",r);void f({endpoint:"validateCheckoutSession",errors:r.map((function(e){return e.message})),metadata:{allLogs:p}});return[2,{errorMessage:i("Unable to retrieve the checkout session at the moment. Please try again or contact our support team."),valid:false}]}if(!((e=t.checkoutSession.landedCost)===null||e===void 0?void 0:e.id)){h("Landed cost is not found in the checkout session before confirming payment.");void f({endpoint:"validateCheckoutSession",errors:["No landed cost found before confirming payment"],metadata:{allLogs:p}});return[2,{errorMessage:i('No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.'),valid:false}]}return[2,{errorMessage:"",valid:true}]}}))}))}));var L=function(e){var r=e.theme;var t={".AccordionItem":{color:"var(--colorText)"},".AccordionItem--selected":{color:"var(--colorText)"},".Action":{color:"var(--colorText)"},".Input":{boxShadow:"none",fontSize:n.appearance.fontSizeInputValue?"".concat(n.appearance.fontSizeInputValue,"px"):undefined,padding:"0",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"8px",paddingTop:"6px"},".Label--resting":{fontSize:n.appearance.fontSizeInputLabel?"".concat(n.appearance.fontSizeInputLabel,"px"):undefined},".PickerItem--highlight":{boxShadow:"0 0 0 2px var(--colorBackground)"},".PickerItem--highlight:hover":{backgroundColor:"var(--colorBackground)",boxShadow:"none"},".PickerItem--new":{color:"var(--colorText)"},".Tab--selected":{borderStyle:"solid",borderWidth:"1px"}};switch(r){case"DARK":{return Object.assign(Object.assign({},t),{".Action":Object.assign(Object.assign({},t[".Action"]),{color:"white"}),".PickerItem--new":Object.assign(Object.assign({},t[".PickerItem--new"]),{color:"white"})})}default:return t}};var x=function(e){var n=e.borderStyle,r=e.theme;switch(r){case"DARK":return{borderRadius:g({overrideBorderStyle:n}),colorBackground:"#101117",colorBackgroundText:"#C5C6CA",colorText:"#C5C6CA",colorTextPlaceholder:"#C5C6CA"};default:return{borderRadius:g({overrideBorderStyle:n}),iconMenuColor:"var(--colorText)",iconMenuHoverColor:"var(--colorText)"}}};var R=r((function(){return{checkoutSettlementCurrency:"USD",clientSecret:sessionStorage.getItem("zonos--client-secret")||"",companyName:"",companyNameUsedWhenAsyncAddressUpdate:"",customAddressErrors:{city:"",firstName:"",lastName:"",line1:"",phone:"",postalCode:"",showError:false,state:""},customBillingAddressErrors:{city:"",firstName:"",lastName:"",line1:"",phone:"",postalCode:"",showError:false,state:""},customErrorMessage:null,customerProfile:null,fetchingLandedCostAbortController:null,hasPaymentError:false,isFetchingLandedCost:false,isFetchingSession:false,partyBillingId:null,partyShippingId:null,shouldInventoryRefund:false,shouldRenderPayInUsdButton:false,skipPaymentIntent:new URLSearchParams(window.location.search).get("skipPaymentIntent")==="0"?false:true,stripe:null,stripeAddressElement:null,stripeAddressEventData:null,stripeAddressUsedWhenAsyncAddressUpdate:null,stripeAddressUsedWhenFetchingLC:null,stripeAddressUsedWhenValidatingAddress:null,stripeBillingAddressElement:null,stripeBillingAddressEventData:null,stripeBillingAddressUsedWhenAsyncAddressUpdate:null,stripeBillingAddressUsedWhenFetchingLC:null,stripeBillingAddressUsedWhenValidatingAddress:null,stripeCustomerSessionClientSecret:null,stripeElements:null,stripeElementsForBillingAddress:null,stripeElementsOptions:null,stripeLinkElement:null,stripeLinkEventData:null,stripeLinkUsedWhenFetchingLC:null,stripePaymentElement:null,stripePaymentEventData:null,stripeShippingSameAsBilling:true,taxId:"",taxIdUsedWhenAsyncAddressUpdate:"",translatedAddress:{address:{},billingAddress:{},firstName:{},lastName:{},name:{}}}})),z=R.onChange,U=R.reset,B=R.state;e("c",B);var F=function(e){var r=e.clientSecret,t=e.overrideBorderRadius,i=e.overridePrimaryColor,a=e.overrideSecondaryColor,s=e.overrideTheme,d=e.paypalEnabled;var u=i||n.appearance.colorPrimary;var l=a||n.appearance.colorSecondary;var c=u&&w(u)?"night":"flat";var v=s==="DARK"?"night":"flat";var f=d?["external_paypal"]:[];return{appearance:{labels:"floating",rules:Object.assign({},L({theme:s||"LIGHT"})),theme:s?v:c,variables:Object.assign(Object.assign({},x({borderStyle:t,theme:"LIGHT"})),{colorPrimary:l})},clientSecret:r||undefined,customerSessionClientSecret:B.stripeCustomerSessionClientSecret||undefined,externalPaymentMethodTypes:__spreadArray([],f,true),locale:o.selectedLocale}};var J=e("a",(function(){window.sessionStorage.removeItem("zonos--bigcommerce-domestic-checkout-shipping")}));var M=e("b",(function(e){window.sessionStorage.setItem("zonos--bigcommerce-domestic-checkout-shipping",JSON.stringify(e))}));var q=e("s",(function(){var e=window.sessionStorage.getItem("zonos--bigcommerce-domestic-checkout-shipping");return m(e)}));var W=e("i",(function(e){return __awaiter(y,void 0,void 0,(function(){var n,r,t,o,i;return __generator(this,(function(a){t=B.clientSecret;if(!B.stripe){d("Skip. Stripe is not initialized");return[2]}o=F({clientSecret:t,overrideBorderRadius:e===null||e===void 0?void 0:e.overrideBorderRadius,overridePrimaryColor:e===null||e===void 0?void 0:e.overridePrimaryColor,overrideSecondaryColor:e===null||e===void 0?void 0:e.overrideSecondaryColor,overrideTheme:e===null||e===void 0?void 0:e.overrideTheme,paypalEnabled:e===null||e===void 0?void 0:e.paypalEnabled});i=JSON.stringify(o)===JSON.stringify(B.stripeElementsOptions);if(!B.stripeElements||!B.stripeElementsForBillingAddress){B.stripeElements=(n=B.stripe)===null||n===void 0?void 0:n.elements(o);B.stripeElementsOptions=o;d("Stripe elements initialized");B.stripeElementsForBillingAddress=(r=B.stripe)===null||r===void 0?void 0:r.elements(o);d("Stripe elements for billing address initialized");return[2]}if(!i){B.stripeElements.update(o);B.stripeElementsForBillingAddress.update(o);B.stripeElementsOptions=o;void B.stripeElements.fetchUpdates()}d("Stripe elements updated");return[2]}))}))}));var Y=e("y",(function(){sessionStorage.removeItem("zonos--client-secret");U();B.stripe=window.Zonos.stripe}));var H=function(){var e,n,r,t;var o=JSON.stringify((e=B.stripeAddressUsedWhenValidatingAddress)===null||e===void 0?void 0:e.value)!==JSON.stringify((n=B.stripeAddressEventData)===null||n===void 0?void 0:n.value);var i=!B.stripeShippingSameAsBilling&&JSON.stringify((r=B.stripeBillingAddressEventData)===null||r===void 0?void 0:r.value)!==JSON.stringify((t=B.stripeBillingAddressUsedWhenValidatingAddress)===null||t===void 0?void 0:t.value);return o||i};var K=function(){var e,n,r,t,o,i;var a=JSON.stringify((e=B.stripeLinkUsedWhenFetchingLC)===null||e===void 0?void 0:e.value)!==JSON.stringify((n=B.stripeLinkEventData)===null||n===void 0?void 0:n.value);var s=JSON.stringify((r=B.stripeAddressUsedWhenAsyncAddressUpdate)===null||r===void 0?void 0:r.value)!==JSON.stringify((t=B.stripeAddressEventData)===null||t===void 0?void 0:t.value);var d=!B.stripeShippingSameAsBilling&&JSON.stringify((o=B.stripeBillingAddressUsedWhenAsyncAddressUpdate)===null||o===void 0?void 0:o.value)!==JSON.stringify((i=B.stripeBillingAddressEventData)===null||i===void 0?void 0:i.value);var u=B.taxIdUsedWhenAsyncAddressUpdate!==B.taxId;var l=B.companyNameUsedWhenAsyncAddressUpdate!==B.companyName;return a||s||d||u||l};var G=function(e){var n=e.address,r=e.firstName,o=e.lastName,i=e.name,a=e.phone;var s=(i===null||i===void 0?void 0:i.split(" ")[0])||r||"";var d=(i===null||i===void 0?void 0:i.split(" ")[1])||o||"";if(!s||!d){void f({endpoint:"PARTY_CREATE_NO_NAME_FOUND",errors:["No name found"],metadata:{allLogs:p,cartId:window.Zonos.cartId,checkoutSessionId:t.checkoutSessionId,firstName:r,lastName:o,name:i}})}if(!a){void f({endpoint:"PARTY_CREATE_NO_PHONE_FOUND",errors:["No phone found"],metadata:{allLogs:p,cartId:window.Zonos.cartId,checkoutSessionId:t.checkoutSessionId,phone:a}})}return{city:n.city,country:n.country,firstName:s,lastName:d,line1:n.line1,line2:n.line2,phone:a||"",postal_code:n.postal_code,state:n.state}};var V=e("H",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,o,i,a,s,d,u,c,v,m;return __generator(this,(function(w){switch(w.label){case 0:if(!((e=B.stripeAddressEventData)===null||e===void 0?void 0:e.complete)||!B.stripeShippingSameAsBilling&&!((n=B.stripeBillingAddressEventData)===null||n===void 0?void 0:n.complete)||!B.stripeBillingAddressEventData){return[2,{partiesCreated:false}]}if(!_e.landedCostData){return[2,{partiesCreated:false}]}i=(r=_e.landedCostData.find(Boolean))===null||r===void 0?void 0:r.landedCost.rootId;if(!i){void f({endpoint:"PF_NO_SELECTED_LANDED_COST",errors:["No selected landed cost"],metadata:{allLogs:p,cartId:window.Zonos.cartId,checkoutSessionId:t.checkoutSessionId}});return[2,{partiesCreated:false}]}a=K();if(!a){return[2,{partiesCreated:false}]}s=G({address:B.stripeAddressEventData.value.address,firstName:B.stripeAddressEventData.value.firstName,lastName:B.stripeAddressEventData.value.lastName,name:B.stripeAddressEventData.value.name,phone:B.stripeAddressEventData.value.phone});d=B.stripeShippingSameAsBilling?s:G({address:B.stripeBillingAddressEventData.value.address,firstName:B.stripeBillingAddressEventData.value.firstName,lastName:B.stripeBillingAddressEventData.value.lastName,name:B.stripeBillingAddressEventData.value.name,phone:B.stripeBillingAddressEventData.value.phone});u=new URLSearchParams(window.location.search).get("zonosE2ETest")==="1";return[4,l("/api/zonos-elements/create-parties",{body:{address:s,billingAddress:d,companyName:B.companyName,email:((o=B.stripeLinkEventData)===null||o===void 0?void 0:o.value.email)||"",isTest:u,rootId:i,taxId:B.taxId},method:"POST"})];case 1:c=w.sent(),v=c.errors,m=c.json;if(v.length||!m){h("Error occurs when creating parties",JSON.stringify(v,null,2));void f({endpoint:"PF_PARTY_CREATE_FAILED",errors:["Failed to create parties"],metadata:{allLogs:p,cartId:window.Zonos.cartId,checkoutSessionId:t.checkoutSessionId,errors:v,json:m}});return[2,{partiesCreated:false}]}B.companyNameUsedWhenAsyncAddressUpdate=B.companyName;B.stripeAddressUsedWhenAsyncAddressUpdate=B.stripeAddressEventData;B.stripeBillingAddressUsedWhenAsyncAddressUpdate=B.stripeBillingAddressEventData;B.taxIdUsedWhenAsyncAddressUpdate=B.taxId;B.partyBillingId=m.billToPartyId;B.partyShippingId=m.shipToPartyId;return[2,{partiesCreated:true}]}}))}))}));var Z=function(e){return{countryCode:e.address.country,postalCode:e.address.postal_code,state:e.address.state}};var Q=function(){var e,n;var r=JSON.stringify((e=B.stripeLinkUsedWhenFetchingLC)===null||e===void 0?void 0:e.value)!==JSON.stringify((n=B.stripeLinkEventData)===null||n===void 0?void 0:n.value);var t=B.stripeAddressEventData&&JSON.stringify(Z(B.stripeAddressEventData.value))!==JSON.stringify(B.stripeAddressUsedWhenFetchingLC);var o=!B.stripeShippingSameAsBilling&&B.stripeBillingAddressEventData&&JSON.stringify(Z(B.stripeBillingAddressEventData.value))!==JSON.stringify(B.stripeBillingAddressUsedWhenFetchingLC);return r||t||o};var X=function(){var e;var n=_e.landedCostData&&((e=_e.landedCostData.find(Boolean))===null||e===void 0?void 0:e.subtotals.items)!==_e.subtotal;var r=Q();d("isPrefetchInfoOutdated","info",{isAddressOutdated:r});return!_e.landedCostData&&!B.isFetchingLandedCost||r||n};var $=function(e){var r,t;var o=(r=n.genericSettings)===null||r===void 0?void 0:r.countryFields;var i=(t=n.genericSettings)===null||t===void 0?void 0:t.stripeCountryFieldLabels;var a=i&&e in i?i[e]:null;var s=o&&e in o?o[e]:null;if(_e.addressFormRenderType==="stripe"){return a||s}return s};var ee=function(){var e,n,r,t;var o=!!((e=B.stripeLinkEventData)===null||e===void 0?void 0:e.complete);var i=!!((n=B.stripeAddressEventData)===null||n===void 0?void 0:n.complete);var a=B.stripeShippingSameAsBilling?i:!!((r=B.stripeBillingAddressEventData)===null||r===void 0?void 0:r.complete);var s=((t=B.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country)||"US";var d=$(s);if(i&&a&&o){return true}if(!d||!B.stripeAddressEventData){return i&&a&&o}var u=B.stripeAddressEventData.value.address.line1.length>0;var l=B.stripeAddressEventData.value.firstName&&B.stripeAddressEventData.value.lastName;var c=!d.stateRequired||d.stateRequired&&B.stripeAddressEventData.value.address.state.length>0;var v=!d.zipRequired||d.zipRequired&&B.stripeAddressEventData.value.address.postal_code.length>=3;var f=B.stripeAddressEventData.value.phone&&B.stripeAddressEventData.value.phone.length>0;return o&&l&&u&&c&&v&&f};var ne=function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,o,i,a,s,d,u,l,c;return __generator(this,(function(v){switch(v.label){case 0:n=new AbortController;B.fetchingLandedCostAbortController=n;ze();return[4,I(n)];case 1:r=v.sent(),o=r.checkoutSessionWorkflow,i=r.errors,a=r.itemCreateWorkflow,s=r.landedCostCalculateWorkflow,d=r.partyCreateWorkflow,u=r.shipmentRatingCalculateWorkflow;_e.customQuotingError=((e=i===null||i===void 0?void 0:i.find((function(e){var n;return((n=e.extensions)===null||n===void 0?void 0:n.ruleMessageType)==="CUSTOM"})))===null||e===void 0?void 0:e.message)||null;_e.shippingData=N((u===null||u===void 0?void 0:u.filter(Boolean))||[]);Ce(a);B.fetchingLandedCostAbortController=null;_e.partiesData=(d===null||d===void 0?void 0:d.filter(Boolean))||[];_e.landedCostData=(o===null||o===void 0?void 0:o.map((function(e){var n=s===null||s===void 0?void 0:s.find((function(n){return(n===null||n===void 0?void 0:n.id)===e.landedCostId}));if(!n){return null}return Object.assign(Object.assign({},e),{landedCost:n})})).filter(Boolean))||[];l=t.checkoutSessionId;if(o===null||o===void 0?void 0:o.length){void T({checkoutSessionId:l,eventName:"checkout_quoteReceived"})}c=_e.promoCodeApplied&&!_e.landedCostData.find((function(e){var n;return(n=e.landedCost.appliedAdjustments)===null||n===void 0?void 0:n.find((function(e){return e.type==="PROMO_CODE"}))}));_e.promoCodeError=c;if(!c){sessionStorage.setItem("zonos--promo-code",_e.promoCode)}return[2]}}))}))};var re=e("q",(function(e){return __awaiter(y,void 0,void 0,(function(){var n,r,t,o,i,a,s,d,u,l,c,v,p,m;return __generator(this,(function(w){switch(w.label){case 0:i=(e===null||e===void 0?void 0:e.retries)||0;a=!!(e===null||e===void 0?void 0:e.applyingPromocode);s=X();d=ee();if(!d){return[2,{isRequestNotReady:true}]}if(s){(n=B.fetchingLandedCostAbortController)===null||n===void 0?void 0:n.abort();B.fetchingLandedCostAbortController=null}if(!s&&!a){return[2,{isRequestNotReady:false}]}if(i){B.isFetchingLandedCost=false;setTimeout((function(){B.isFetchingLandedCost=true}),300)}else{B.isFetchingLandedCost=true}if(B.stripeAddressEventData){B.stripeAddressUsedWhenFetchingLC={countryCode:B.stripeAddressEventData.value.address.country,postalCode:B.stripeAddressEventData.value.address.postal_code,state:B.stripeAddressEventData.value.address.state}}if(B.stripeBillingAddressEventData){B.stripeBillingAddressUsedWhenFetchingLC={countryCode:B.stripeBillingAddressEventData.value.address.country,postalCode:B.stripeBillingAddressEventData.value.address.postal_code,state:B.stripeBillingAddressEventData.value.address.state}}if(B.stripeLinkEventData){B.stripeLinkUsedWhenFetchingLC=Object.assign({},B.stripeLinkEventData)}w.label=1;case 1:w.trys.push([1,3,,7]);ze();return[4,ne()];case 2:w.sent();u=(r=_e.shippingData)===null||r===void 0?void 0:r.find(Boolean);l=(t=_e.landedCostData)===null||t===void 0?void 0:t.find((function(e){return e.landedCost.shipmentRating.id===(u===null||u===void 0?void 0:u.id)}));c=!!l?l.subtotals:null;if(c){Te({method:(l===null||l===void 0?void 0:l.landedCost.method)||"DDP",subtotals:c})}return[3,7];case 3:v=w.sent();_e.landedCostData=[];_e.shippingData=[];p=["The landed cost calculation request was aborted to initiate a new one."];if(!(v instanceof Error&&v.message&&!p.includes(v.message)))return[3,6];if(!(i<1))return[3,5];return[4,re(Object.assign(Object.assign({},e),{retries:(i||0)+1}))];case 4:w.sent();return[2,{isRequestNotReady:false}];case 5:m=(o=B.stripeAddressEventData)===null||o===void 0?void 0:o.value;void f({endpoint:"Failed to fetch landed cost (".concat(i," retries)"),errors:[v.message],metadata:{cartId:window.Zonos.cartId,shipToAddress:m}});w.label=6;case 6:h(v);return[3,7];case 7:B.isFetchingLandedCost=false;return[2,{isRequestNotReady:false}]}}))}))}));var te=e("B",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,t;return __generator(this,(function(o){switch(o.label){case 0:return[4,re({applyingPromocode:true})];case 1:o.sent();if(_e.step==="payment"){Fe()}return[4,V()];case 2:o.sent();r=(e=_e.shippingData)===null||e===void 0?void 0:e.find(Boolean);t=(n=_e.landedCostData)===null||n===void 0?void 0:n.find((function(e){return e.landedCost.id===(r===null||r===void 0?void 0:r.id)}));if(!r||!t){return[2]}return[4,De(r,t.landedCostId)];case 3:o.sent();return[2]}}))}))}));var oe=e("D",(function(){_e.promoCode="";sessionStorage.removeItem("zonos--promo-code");_e.promoCodeError=false;_e.promoCodeApplied=false}));var ie=e("C",(function(){return __awaiter(y,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(_e.step==="payment"){Fe()}oe();return[4,te()];case 1:e.sent();return[2]}}))}))}));var ae=e("E",(function(e){var n=[];var r=true;switch(e){case"succeeded":{n=[i("Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us."),"",i("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.")];r=false;break}case"requires_capture":case"processing":{n=[i("Payment processing. We'll update you when payment is received.")];r=false;break}case"requires_payment_method":{n=[i("Payment failed. Please try another payment method.")];break}case"requires_action":{r=false;n=[i("Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.")]}default:{n=[i("Something went wrong.")];break}}return{isError:r,messages:n}}));var se=e("v",(function(){return __awaiter(y,void 0,void 0,(function(){var e,r,t,o,a,s,d,u,c,u;return __generator(this,(function(v){switch(v.label){case 0:t=n.checkoutSettings.onInventoryCheck;o=!!((r=(e=window.Zonos.cartData)===null||e===void 0?void 0:e.metadata.find((function(e){return e.key==="referenceId"})))===null||r===void 0?void 0:r.value);if(!(window.Zonos.isLegacyCheckout&&window.Zonos.cartData&&o))return[3,2];return[4,l("/api/zonos-elements/legacy/inventory-check",{body:{cartData:window.Zonos.cartData},method:"POST"})];case 1:a=v.sent(),s=a.errors,d=a.json;if(s.length||!d){h("Error occurs when handling inventory refund","warn",JSON.stringify(s));return[2,null]}if(!d.available||d.status===204){return[2,i("The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.")]}if(d.available||d.status===200){B.shouldInventoryRefund=true;return[2,null]}return[2,null];case 2:if(typeof t!=="function"){return[2,null]}v.label=3;case 3:v.trys.push([3,5,,6]);return[4,t({items:_e.items})];case 4:u=v.sent();return[2,u];case 5:c=v.sent();u=c instanceof Error?c.message:"Unknown error";void f({endpoint:"onInventoryCheck",errors:["cartId: ".concat(window.Zonos.cartId," - ").concat(u)],metadata:{cartId:window.Zonos.cartId,href:window.location.href,items:_e.items}});throw c;case 6:return[2]}}))}))}));var de=e("x",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(t){switch(t.label){case 0:r=!!((n=(e=window.Zonos.cartData)===null||e===void 0?void 0:e.metadata.find((function(e){return e.key==="referenceId"})))===null||n===void 0?void 0:n.value);if(!window.Zonos.isLegacyCheckout||!window.Zonos.cartData||!r){return[2]}return[4,l("/api/zonos-elements/legacy/inventory-refund",{body:{cartData:window.Zonos.cartData},method:"POST"})];case 1:t.sent();return[2]}}))}))}));var ue=e("d",(function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,t,o,a,s,d,u,l;var c=e.clientSecret,v=e.storybookForceStatus;return __generator(this,(function(e){switch(e.label){case 0:if(v){n=ae(v),r=n.isError,t=n.messages;return[2,{error:r,messages:t}]}o=c||B.clientSecret;if(!B.stripe||!o){h("Failed to retrieve payment intent. Stripe is not initialized");return[2,{error:true,message:[i("Something went wrong.")]}]}return[4,B.stripe.retrievePaymentIntent(o)];case 1:a=e.sent().paymentIntent;s=a===null||a===void 0?void 0:a.status;d=ae(s),u=d.isError,l=d.messages;return[2,{error:u,messages:l,paymentIntentId:a===null||a===void 0?void 0:a.id,paymentMethod:a===null||a===void 0?void 0:a.payment_method,status:s}]}}))}))}));var le=e("w",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,o,a,s,u,l,c,v,f,p;return __generator(this,(function(h){switch(h.label){case 0:r=!!((e=B.stripePaymentEventData)===null||e===void 0?void 0:e.complete);o=B.stripeElements;a=B.stripe;s=B.clientSecret;B.customErrorMessage=null;if(!((n=_e.selectedLandedCost)===null||n===void 0?void 0:n.landedCost.id)){throw new Error("Attempted to confirm the payment when no landed cost is found in store")}return[4,D()];case 1:u=h.sent();if(!u.valid){B.customErrorMessage=u.errorMessage;throw new Error(u.errorMessage)}l=t.checkoutSessionId;if(!(a&&o&&r&&s&&l))return[3,3];c=new URL(window.location.href);c.searchParams.set("payment_intent_client_secret",s);c.searchParams.set("zonosCheckoutSessionId",l);void T({checkoutSessionId:l,eventName:"checkout_paymentInfoCompleted"});return[4,a.confirmPayment({confirmParams:{return_url:c.toString()},elements:o,redirect:"if_required"})];case 2:v=h.sent(),f=v.error,p=v.paymentIntent;d("Payment intent confirmed","info",{error:f,paymentIntent:p});if((p===null||p===void 0?void 0:p.status)==="requires_action"){throw new Error(i("Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction."))}if(f){if(f.type==="card_error"||f.type==="validation_error"){throw new Error(f.message)}if(f.type==="invalid_request_error"){if(f.code==="payment_intent_unexpected_state"){return[2]}}throw new Error("An unexpected error occurred.")}if(p.status==="requires_payment_method"){throw new Error(i("Payment failed. Please try another payment method."))}h.label=3;case 3:return[2]}}))}))}));var ce=e("n",(function(){var e;var n=_e.items.reduce((function(e,n){return e+n.amount*n.quantity}),0);var r=t.enabledVariantTestKeys||[];var i={adjustmentsAmount:_e.adjustments.reduce((function(e,n){return e+n.amount}),0),cartId:window.Zonos.cartId,currency:((e=_e.items.find(Boolean))===null||e===void 0?void 0:e.currencyCode)||"",customerAuthenticationToken:_e.customerAuthenticationToken||undefined,itemsAmount:n,metadata:[{key:"language",value:o.selectedLocale}],presentmentCountryCode:o.selectedCountryCode,skipPaymentIntent:B.skipPaymentIntent,varianceTestInput:r};return i}));var ve=e("l",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,o,a;return __generator(this,(function(s){switch(s.label){case 0:if(!t.checkoutSessionId){void f({endpoint:"Error creating payment intent",errors:["No checkout session id found when retrieving payment intent"],metadata:{allLogs:p,cartId:window.Zonos.cartId}});Ie({messages:[i("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:i("Error creating Checkout")});return[2]}return[4,l("/api/zonos-elements/create-payment-intent",{body:{checkoutSessionId:t.checkoutSessionId},method:"POST"})];case 1:n=s.sent(),r=n.errors,o=n.json;a=(e=o===null||o===void 0?void 0:o.checkoutSessionPaymentIntentCreate)===null||e===void 0?void 0:e.clientSecret;if(r.length||!a){h("Error occurs when getting payment intent",JSON.stringify(r,null,2));void f({endpoint:"Error creating payment intent",errors:r.map((function(e){return e.message})),metadata:{allLogs:p,cartId:window.Zonos.cartId,checkoutSessionId:t.checkoutSessionId,clientSecret:a}});Ie({messages:[i("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:i("Error creating Checkout")});return[2]}je(o.checkoutSessionPaymentIntentCreate);return[2]}}))}))}));var fe=e("k",(function(){return __awaiter(y,void 0,void 0,(function(){var e,n,r,t,i,a,s,u;return __generator(this,(function(c){switch(c.label){case 0:if(!o.targetCurrency){h("Failed to create checkout session - missing localizationStore.targetCurrency");return[2,false]}B.isFetchingSession=true;r=ce();d("Checkout session body","info",r);return[4,l("/api/zonos-elements/create-checkout-session",{body:r,method:"POST"})];case 1:t=c.sent(),i=t.errors,a=t.json;B.isFetchingSession=false;if(i.length||!a){s=(e=i.find((function(e){return e.message})))===null||e===void 0?void 0:e.message;if(Array.isArray(s)&&s.some((function(e){return e.message==="Cart is expired."}))){throw new Error("Cart is expired.")}h("Error occurred when creating checkout session",JSON.stringify(i,null,2));return[2,false]}u=a.checkoutSessionCreate;je(u);Te({method:((n=u.landedCost)===null||n===void 0?void 0:n.method)||"DDP",subtotals:u.subtotals});d("Exchange rate updated for cart items (checkout session create)","info",_e.exchangeRate);d("done-init-checkout-session");return[2,true]}}))}))}));var pe=e("u",(function(){return __awaiter(y,void 0,void 0,(function(){var e,r,o;return __generator(this,(function(i){switch(i.label){case 0:e=t.checkoutSessionId;if(!e){h("Failed to update checkout session base currency");return[2,false]}if(n.checkoutSettings.allowedSettlementCurrencies==="LOCAL"){d('allowedSettlementCurrencies: "LOCAL". Skip updating checkout session base currency');return[2,true]}return[4,l("/api/zonos-elements/update-checkout-session-base-currency",{body:{checkoutSessionId:e,currencyCode:B.checkoutSettlementCurrency},method:"POST"})];case 1:r=i.sent().json;o=r===null||r===void 0?void 0:r.checkoutSessionBaseCurrencyUpdate.subtotals.presentmentCurrencyCode;if(!r||o!==B.checkoutSettlementCurrency){h("Failed to update checkout session base currency");return[2,false]}d('Updated checkout session to settlement currency "'.concat(o,'".'));return[2,true]}}))}))}));var he=function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,i,a;var s=e.adjustmentsAmount,d=e.cartId,u=e.currency,c=e.id,v=e.itemsAmount,f=e.landedCostId,p=e.presentmentCountryCode;return __generator(this,(function(e){switch(e.label){case 0:n=t.enabledVariantTestKeys||[];return[4,l("/api/zonos-elements/update-checkout-session",{body:{adjustmentsAmount:s,billToPartyId:B.partyBillingId,cartId:d,currency:u,customerAuthenticationToken:_e.customerAuthenticationToken||undefined,id:c,itemsAmount:v,landedCostId:f,metadata:[{key:"language",value:o.selectedLocale}],presentmentCountryCode:p,shipToPartyId:B.partyShippingId,skipPaymentIntent:B.skipPaymentIntent,varianceTestInput:n},method:"POST"})];case 1:r=e.sent(),i=r.errors,a=r.json;if(i.length||!a){h("Error occurs when updating checkout session",JSON.stringify(i,null,2));return[2,{errors:i,json:a}]}return[2,{errors:[],json:a}]}}))}))};var me=function(e){var n,r,t,o,i,a;var s=e.currentAddress,d=e.translatedAddressResult;var u={};if(!d){return u}var l=d.city,c=d.line1,v=d.line2,f=d.name,p=d.postal_code,h=d.state;if(s.city&&l){u.city=(n={},n[s.city]=l,n)}if(s.line1&&c){u.line1=(r={},r[s.line1]=c,r)}if(s.line2&&v){u.line2=(t={},t[s.line2]=v,t)}if(s.postal_code&&p){u.postal_code=(o={},o[s.postal_code]=p,o)}if(s.state&&h){u.state=(i={},i[s.state]=h,i)}if(s.name&&f){u.name=(a={},a[s.name]=f,a)}return u};var we=e("F",(function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,t,o,i,a,s,d,u,c,v;var f=e.addressInvalidCharactersList,p=e.billingAddressInvalidCharactersList;return __generator(this,(function(e){switch(e.label){case 0:i=j({addressInvalidCharactersList:f,billingAddressInvalidCharactersList:p,stripeAddressEventData:B.stripeAddressEventData,stripeBillingAddressEventData:B.stripeBillingAddressEventData,stripeShippingSameAsBilling:B.stripeShippingSameAsBilling});if(!i){B.translatedAddress={address:{},billingAddress:{}};return[2]}a=H();if(!a){return[2]}return[4,l("/api/zonos-elements/validate-address",{body:i,method:"POST"})];case 1:s=e.sent(),d=s.errors,u=s.json;if(d.length||!u){h("Error occurs when translating address to latin",JSON.stringify(d,null,2));B.translatedAddress={address:{},billingAddress:{}};return[2]}B.stripeAddressUsedWhenValidatingAddress=B.stripeAddressEventData;B.stripeBillingAddressUsedWhenValidatingAddress=B.stripeBillingAddressEventData;c=(n=B.stripeAddressEventData)===null||n===void 0?void 0:n.value.address;v=(r=B.stripeBillingAddressEventData)===null||r===void 0?void 0:r.value.address;B.translatedAddress={address:c?me({currentAddress:Object.assign(Object.assign({},c),{name:(t=B.stripeAddressEventData)===null||t===void 0?void 0:t.value.name}),translatedAddressResult:u.address||null}):{},billingAddress:!B.stripeShippingSameAsBilling?me({currentAddress:Object.assign(Object.assign({},v),{name:(o=B.stripeBillingAddressEventData)===null||o===void 0?void 0:o.value.name}),translatedAddressResult:u.billingAddress||null}):{}};return[2]}}))}))}));z("clientSecret",(function(e){if(e&&B.stripe){sessionStorage.setItem("zonos--client-secret",e)}if(!e){sessionStorage.removeItem("zonos--client-secret")}}));var ge=r((function(){return{addressFormRenderType:"stripe",adjustmentTotal:0,adjustments:[],checkoutSession:null,checkoutSessionTimeoutShow:false,checkoutTimeoutInterval:null,currency:"USD",customQuotingError:null,customerAuthenticationToken:null,displayBaseCurrency:false,dutiesTaxesFees:null,dutiesTaxesFeesEstimate:null,error:null,exchangeRate:null,externalConfirmationPageURL:null,inventoryCheckErrorMessage:null,isSelectedShippingAboveDeminimis:false,isSelectedShippingGuarantee:false,isStagingMode:v(),items:[],landedCostData:null,landedCostMethod:"DDP",partiesData:[],promoCode:sessionStorage.getItem("zonos--promo-code")||"",promoCodeApplied:!!sessionStorage.getItem("zonos--promo-code"),promoCodeError:false,restrictedItems:[],selectedLandedCost:null,selectedShippingOption:null,selectedShippingOptionExpectedDate:"",selectedShippingOptionTransitTime:"",shipping:0,shippingData:null,shouldHideDiscountInput:false,step:"customer-info",subtotal:0,tabItems:{"customer-info":{index:1,isDone:false,label:"Customer",value:"customer-info"},shipping:{index:2,isDone:false,label:"Shipping",value:"shipping"},payment:{index:3,isDone:false,label:"Payment",value:"payment"}},total:0}})),ye=ge.onChange,be=ge.reset,_e=ge.state;e({G:ye,e:_e});var Se=function(e){switch(e){case"DAYS":return i("days");case"WEEKS":return i("weeks");case"BUSINESS_DAYS":default:return i("business days")}};var Oe=e("J",(function(e){var n;var r=(n=e.shippingProfile)===null||n===void 0?void 0:n.transitTime;if(!(r===null||r===void 0?void 0:r.min)||!(r===null||r===void 0?void 0:r.max)||!(r===null||r===void 0?void 0:r.type)){return null}return{maxTransit:r.max,minTransit:r.min,unit:Se(r.type)}}));var ke=function(e){var n=e.item1,r=e.item2;if(!n||!r){return false}return r.sku&&n.sku&&n.sku===r.sku||r.description&&n.description&&n.description===r.description||n.name&&r.name&&n.name===r.name};var Ce=function(e){d("Checking item restrictions");var n=e.map((function(e){if(!e.restriction){return null}var n=e.restriction;var r=_e.items.find((function(n){return ke({item1:n,item2:e})}));return Object.assign(Object.assign({matchedItem:r},e),{restriction:n})})).filter(Boolean);_e.restrictedItems=n;_e.items=_e.items.map((function(e){return Object.assign(Object.assign({},e),{isRestricted:!!n.find((function(n){return ke({item1:n,item2:e})}))})}));return{cartItems:_e.items,restrictedItems:n}};var Ae=e("g",(function(){t.checkoutSessionId=null;be()}));var Ie=e("o",(function(e){var n=e.messages,r=e.title;Ae();Y();_e.step="error";_e.error={messages:n,title:r}}));var Te=function(e){var n=e.dutiesTaxesFeesEstimate,r=e.method,t=e.subtotals;_e.exchangeRate=t.exchangeRate;_e.adjustmentTotal=t.adjustments;_e.dutiesTaxesFees=r==="DAP"?null:t.landedCostTotal;_e.subtotal=t.items;_e.total=t.total;_e.currency=t.presentmentCurrencyCode;_e.dutiesTaxesFeesEstimate=n||null};var Ee=e("A",(function(){var e=_e.items.filter((function(e){return e.amount>0}));return!!e.find((function(e){return!e.isRestricted}))}));var je=e("p",(function(e){var n,r,o,i,u;B.clientSecret=e.clientSecret;B.stripeCustomerSessionClientSecret=e.customerSessionClientSecret;B.customerProfile=e.customerProfile;_e.checkoutSession=e;if(!e.id){void f({endpoint:"cartStoreSetCheckoutSession",errors:["Missing checkout session id in checkout session"],metadata:{allLogs:p,checkoutSession:e}})}if(e.id){t.checkoutSessionId=e.id}var l=a(e.varianceTestResults||[]);s(l);var c=((o=(r=(n=_e.checkoutSession)===null||n===void 0?void 0:n.metadata)===null||r===void 0?void 0:r.find((function(e){return(e===null||e===void 0?void 0:e.key)==="externalConfirmationPageURL"})))===null||o===void 0?void 0:o.value)||((u=(i=window.Zonos.cartData)===null||i===void 0?void 0:i.metadata.find((function(e){return(e===null||e===void 0?void 0:e.key)==="externalConfirmationPageURL"})))===null||u===void 0?void 0:u.value)||null;if(c){d("Found externalConfirmationPageURL: ".concat(c));_e.externalConfirmationPageURL=c}}));var Ne=function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,a,s,u,l;var c=e.adjustmentsAmount,v=e.cartId,f=e.currency,p=e.dutiesTaxesFeesEstimate,m=e.itemsAmount,w=e.landedCostId,g=e.shouldInitSessionOnFailure;return __generator(this,(function(e){switch(e.label){case 0:if(w&&_e.selectedLandedCost){r=_e.selectedLandedCost.subtotals;Te({dutiesTaxesFeesEstimate:p,method:_e.landedCostMethod,subtotals:r});d("Exchange rate updated for cart items (landed cost subtotal)","info",_e.exchangeRate)}if(!t.checkoutSessionId){d("Could not update cart total without checkout session id","info");return[2,false]}return[4,he({adjustmentsAmount:c,billToPartyId:B.partyBillingId,cartId:v,currency:f,id:t.checkoutSessionId,itemsAmount:m,landedCostId:w,presentmentCountryCode:o.selectedCountryCode,shipToPartyId:B.partyShippingId,varianceTestInput:t.enabledVariantTestKeys||[]})];case 1:a=e.sent(),s=a.errors,u=a.json;if(!(s.length>0||!u))return[3,4];h("Error occurs when updating checkout session.");if(!g)return[3,3];d("Initiating checkout session on failure","info");return[4,fe()];case 2:l=e.sent();d("stripeStoreInitCheckoutSession: ".concat(l));if(!l){Ie({messages:[i("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:i("Error creating Checkout")});return[2,false]}return[2,true];case 3:return[2,false];case 4:if(!w){Te({method:((n=u.checkoutSessionUpdate.landedCost)===null||n===void 0?void 0:n.method)||"DDP",subtotals:u.checkoutSessionUpdate.subtotals});d("Exchange rate updated for cart items (checkout session update)","info",_e.exchangeRate)}je(u.checkoutSessionUpdate);return[2,true]}}))}))};var Pe=e("L",(function(e){if(e.method==="DAP"&&e.remittance.length&&e.landedCostGuaranteeCode==="ZONOS"){return"DDP"}return e.method}));var De=e("I",(function(e,r){return __awaiter(y,void 0,void 0,(function(){var o,i,a,s,u,l,c,v,f,p,h,m,w,g,y,b,_,S,O,k,C,A,I,T;return __generator(this,(function(E){switch(E.label){case 0:_e.selectedShippingOption=e;m=Oe(_e.selectedShippingOption);if(m){w=m.maxTransit,g=m.minTransit,y=m.unit;_e.selectedShippingOptionTransitTime="".concat(g,"-").concat(w," ").concat(y)}else{_e.selectedShippingOptionTransitTime=""}b=(o=_e.landedCostData)===null||o===void 0?void 0:o.find((function(e){return e.landedCostId===r}));_e.selectedLandedCost=b||null;if(!b){return[2,false]}_=((i=b.landedCost.amountSubtotals)===null||i===void 0?void 0:i.landedCostTotal)||0;S=b.subtotals.exchangeRate.rate;O=_*S;if(O){d("DAP quote, using estimate: ".concat(O),"info")}_e.landedCostMethod=Pe(b.landedCost);_e.shipping=b.subtotals.shipping;k=((a=b===null||b===void 0?void 0:b.landedCost)===null||a===void 0?void 0:a.landedCostGuaranteeCode)==="ZONOS";C=!!((u=(s=b===null||b===void 0?void 0:b.landedCost)===null||s===void 0?void 0:s.deMinimis)===null||u===void 0?void 0:u.find((function(e){return["DUTY","TAX"].includes(e.type)&&e.threshold==="ABOVE"})));_e.isSelectedShippingAboveDeminimis=C;_e.isSelectedShippingGuarantee=k;return[4,Ne({adjustmentsAmount:_e.adjustmentTotal,billToPartyId:B.partyBillingId,cartId:window.Zonos.cartId,dutiesTaxesFeesEstimate:O,landedCostId:(l=b.landedCost)===null||l===void 0?void 0:l.id,shipToPartyId:B.partyShippingId,varianceTestInput:t.enabledVariantTestKeys||[]})];case 1:A=E.sent();I=(c=_e.items.find(Boolean))===null||c===void 0?void 0:c.currencyCode;T=((v=B.stripeAddressEventData)===null||v===void 0?void 0:v.value.address.country)||"US";B.shouldRenderPayInUsdButton=I==="USD"&&n.checkoutSettings.allowedSettlementCurrencies==="LOCAL_AND_USD"&&((f=_e.checkoutSession)===null||f===void 0?void 0:f.subtotals.presentmentCurrencyCode)!=="USD"&&!!((h=(p=n.genericSettings)===null||p===void 0?void 0:p.usdSettlementCountryEnabled)===null||h===void 0?void 0:h.includes(T));return[2,A]}}))}))}));var Le=e("m",(function(e){var n=e.isPreview,r=e.sessionTimeout;if(n){return}var t=new URLSearchParams(window.location.search).get("zonosCheckoutTimeout");var o=t&&!isNaN(parseInt(t,10))?parseInt(t,10):r;d("==START CHECKOUT TIMEOUT - ".concat(o,"=="));_e.checkoutTimeoutInterval=setTimeout((function(){_e.checkoutSessionTimeoutShow=true}),o)}));var xe=e("j",(function(){if(_e.checkoutTimeoutInterval){clearTimeout(_e.checkoutTimeoutInterval);_e.checkoutTimeoutInterval=null}}));var Re=function(e){return e.map((function(e){return Object.assign(Object.assign({},e),{isRestricted:false})}))};var ze=function(){_e.items=_e.items.map((function(e){return Object.assign(Object.assign({},e),{isRestricted:false})}));_e.restrictedItems=[]};var Ue=e("f",(function(e){return __awaiter(y,[e],void 0,(function(e){var n,r,o,i;var a=e.adjustments,s=e.cartItems;return __generator(this,(function(e){switch(e.label){case 0:_e.adjustments=a;_e.items=Re(s);r=(n=s.find(Boolean))===null||n===void 0?void 0:n.currencyCode;o=s.reduce((function(e,n){return e+n.amount*n.quantity}),0);i=a.reduce((function(e,n){return e+n.amount}),0);if(!r||!o){return[2]}_e.currency=r;B.isFetchingSession=true;return[4,Ne({adjustmentsAmount:i,billToPartyId:B.partyBillingId,cartId:window.Zonos.cartId,currency:r,dutiesTaxesFeesEstimate:0,itemsAmount:o,shipToPartyId:B.partyShippingId,shouldInitSessionOnFailure:true,varianceTestInput:t.enabledVariantTestKeys||[]})];case 1:e.sent();B.isFetchingSession=false;return[2]}}))}))}));var Be=function(){_e.selectedShippingOption=null;_e.isSelectedShippingAboveDeminimis=false;_e.isSelectedShippingGuarantee=false;_e.selectedShippingOptionTransitTime="";_e.dutiesTaxesFees=0;_e.dutiesTaxesFeesEstimate=0;_e.shipping=0;_e.total=_e.subtotal};var Fe=function(){if(_e.step==="shipping"){_e.step="customer-info";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{"customer-info":Object.assign(Object.assign({},_e.tabItems.shipping),{isDone:false})})}else if(_e.step==="payment"){_e.step="shipping";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{shipping:Object.assign(Object.assign({},_e.tabItems.shipping),{isDone:false})})}else if(_e.step==="finish"){_e.step="payment";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{payment:Object.assign(Object.assign({},_e.tabItems.payment),{isDone:false})})}};var Je=e("r",(function(){if(_e.step==="customer-info"){_e.step="shipping";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{"customer-info":Object.assign(Object.assign({},_e.tabItems["customer-info"]),{isDone:true})})}else if(_e.step==="shipping"){_e.step="payment";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{shipping:Object.assign(Object.assign({},_e.tabItems.shipping),{isDone:true})})}else if(_e.step==="payment"){_e.step="finish"}}));var Me=e("h",(function(){_e.step="customer-info";_e.tabItems=Object.assign(Object.assign({},_e.tabItems),{"customer-info":Object.assign(Object.assign({},_e.tabItems["customer-info"]),{isDone:false}),payment:Object.assign(Object.assign({},_e.tabItems.payment),{isDone:false}),shipping:Object.assign(Object.assign({},_e.tabItems.shipping),{isDone:false})});Be()}))}}}));
@@ -1 +1 @@
1
- import{r as o,h as e,H as s}from"./p-1640d77f.js";import{f as r}from"./p-6aa728f2.js";import{c as t}from"./p-b4b7f705.js";import"./p-04a01cb1.js";const n=class{constructor(e){o(this,e),this.hasContent=!1,this.handleSlotChange=()=>{this.hasContent=!0}}render(){const o=({color:o})=>{const s=`var(--zonos-elements-${o}-800)`,r=`var(--zonos-elements-${o}-300)`,[n,a]=[this.bannerTitle,e("slot",{onSlotchange:this.handleSlotChange})].filter(Boolean),l="gray"===o?"gray-1000":`${o}-800`;return e("div",{class:t(["zonos--container"])},e("div",{class:"zonos--icon-wrapper"},e("svg",{color:s,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},e("path",{"clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z","data-is-secondary-color":"true",fill:r,"fill-rule":"evenodd"}),e("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),e("div",{class:"zonos--header-wrapper"},e("zonos-text",{textColor:l,type:"label",weight:600},n)),a&&e("div",{class:"zonos--content-wrapper"},e("zonos-text",{textColor:l},a)))},n=t(["zonos--elements zonos--banner",this.intent]),a=r();switch(this.intent){case"error":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"red"}));case"info":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"blue"}));case"success":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"green"}));case"warning":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"orange"}));default:return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"gray"}))}}};n.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-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:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}';export{n as zonos_banner}
1
+ import{r as o,h as e,H as s}from"./p-b30c2ad9.js";import{f as r}from"./p-7ce093aa.js";import{c as t}from"./p-b4b7f705.js";import"./p-04a01cb1.js";const n=class{constructor(e){o(this,e),this.hasContent=!1,this.handleSlotChange=()=>{this.hasContent=!0}}render(){const o=({color:o})=>{const s=`var(--zonos-elements-${o}-800)`,r=`var(--zonos-elements-${o}-300)`,[n,a]=[this.bannerTitle,e("slot",{onSlotchange:this.handleSlotChange})].filter(Boolean),l="gray"===o?"gray-1000":`${o}-800`;return e("div",{class:t(["zonos--container"])},e("div",{class:"zonos--icon-wrapper"},e("svg",{color:s,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},e("path",{"clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z","data-is-secondary-color":"true",fill:r,"fill-rule":"evenodd"}),e("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),e("div",{class:"zonos--header-wrapper"},e("zonos-text",{textColor:l,type:"label",weight:600},n)),a&&e("div",{class:"zonos--content-wrapper"},e("zonos-text",{textColor:l},a)))},n=t(["zonos--elements zonos--banner",this.intent]),a=r();switch(this.intent){case"error":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"red"}));case"info":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"blue"}));case"success":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"green"}));case"warning":return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"orange"}));default:return e(s,{class:n,style:{"--zonos--font-family":a}},o({color:"gray"}))}}};n.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-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:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}';export{n as zonos_banner}
@@ -0,0 +1 @@
1
+ import{d as s}from"./p-0ae53ff0.js";import{h as e,b as t}from"./p-2eec2d7c.js";const o={},a={},r=async({attributes:r,checkoutSessionId:i})=>{var u;if(o[i]||(o[i]=new Map),r.forEach((s=>{var e;s.value&&(null===(e=o[i])||void 0===e||e.set(s.key,s.value))})),r.length)return a[i]||(a[i]=(u=i,s((async()=>{var s,a;const r=Array.from((null===(s=o[u])||void 0===s?void 0:s.entries())||[]).map((([s,e])=>({key:s,value:e}))),{errors:i,json:n}=await e("/api/zonos-elements/update-checkout-session-attributes",{body:{attributes:r,id:u},method:"POST"});return i.length?(t("Error updating checkout session attributes",i),{success:!1}):(null===(a=o[u])||void 0===a||a.clear(),{success:!!(null==n?void 0:n.success)})}),1e3,{maxWait:5e3}))),a[i]()};export{r as u}
@@ -1 +1 @@
1
- import{r as o,c as t,h as e,H as s,d as n}from"./p-1640d77f.js";import{f as a}from"./p-6aa728f2.js";import{c as l}from"./p-b4b7f705.js";import{g as i}from"./p-207bd04a.js";import"./p-04a01cb1.js";const r=class{constructor(e){o(this,e),this.inputChange=t(this,"inputChange",7),this.inputValue="",this.inputSize="md",this.isDisabled=!1,this.isError=!1,this.inputPlaceholder="",this.value=this.inputValue}onInputValueChange(o){this.value=o,this.inputChange.emit(o)}render(){return e(s,{key:"87c0f3819db82f5b731ec02f1dda30888131989a",class:l(["zonos--input zonos--elements",this.inputSize,this.isError&&"has-error"]),style:{"--zonos--border-radius":i(),"--zonos--font-family":a()}},e("div",{key:"0eb35699b27eb262797a599441877b5600d989f0",class:l(["zonos--label-wrapper",this.isDisabled&&"disabled"])},e("input",{key:"75973f2c81e28a0007b047375ead0c5e6f055a14",class:l(["zonos--floated-input",!!this.inputLabel&&"has-label",this.inputValue&&"has-content",this.isError&&"has-error"]),disabled:this.isDisabled,onInput:o=>{this.inputChange.emit(o.target.value)},placeholder:this.inputPlaceholder,type:"text",value:this.value}),e("label",{key:"23ee9731bfef0417522714dc48a97949eecad145",class:"zonos--floated-label","data-label":this.inputLabel})))}get el(){return n(this)}static get watchers(){return{inputValue:["onInputValueChange"]}}};r.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}';export{r as zonos_input}
1
+ import{r as o,c as t,h as e,H as s,a as n}from"./p-b30c2ad9.js";import{f as a}from"./p-7ce093aa.js";import{c as l}from"./p-b4b7f705.js";import{g as i}from"./p-2b9c124d.js";import"./p-04a01cb1.js";const r=class{constructor(e){o(this,e),this.inputChange=t(this,"inputChange",7),this.inputValue="",this.inputSize="md",this.isDisabled=!1,this.isError=!1,this.inputPlaceholder="",this.value=this.inputValue}onInputValueChange(o){this.value=o,this.inputChange.emit(o)}render(){return e(s,{key:"87c0f3819db82f5b731ec02f1dda30888131989a",class:l(["zonos--input zonos--elements",this.inputSize,this.isError&&"has-error"]),style:{"--zonos--border-radius":i(),"--zonos--font-family":a()}},e("div",{key:"0eb35699b27eb262797a599441877b5600d989f0",class:l(["zonos--label-wrapper",this.isDisabled&&"disabled"])},e("input",{key:"75973f2c81e28a0007b047375ead0c5e6f055a14",class:l(["zonos--floated-input",!!this.inputLabel&&"has-label",this.inputValue&&"has-content",this.isError&&"has-error"]),disabled:this.isDisabled,onInput:o=>{this.inputChange.emit(o.target.value)},placeholder:this.inputPlaceholder,type:"text",value:this.value}),e("label",{key:"23ee9731bfef0417522714dc48a97949eecad145",class:"zonos--floated-label","data-label":this.inputLabel})))}get el(){return n(this)}static get watchers(){return{inputValue:["onInputValueChange"]}}};r.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}';export{r as zonos_input}
@@ -1 +1 @@
1
- System.register(["./p-19182dc7.system.js"],(function(n){"use strict";var r,e,t,i;return{setters:[function(n){r=n._;e=n.b;t=n.i;i=n.d}],execute:function(){var u=r;var f=function(){return u.Date.now()};var a=f;var o=/\s/;function v(n){var r=n.length;while(r--&&o.test(n.charAt(r))){}return r}var c=v;var d=c;var s=/^\s+/;function m(n){return n?n.slice(0,d(n)+1).replace(s,""):n}var y=m;var p=e,l=t;var T="[object Symbol]";function b(n){return typeof n=="symbol"||l(n)&&p(n)==T}var h=b;var x=y,w=i,$=h;var g=0/0;var j=/^[-+]0x[0-9a-f]+$/i;var E=/^0b[01]+$/i;var M=/^0o[0-7]+$/i;var S=parseInt;function I(n){if(typeof n=="number"){return n}if($(n)){return g}if(w(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=w(r)?r+"":r}if(typeof n!="string"){return n===0?n:+n}n=x(n);var e=E.test(n);return e||M.test(n)?S(n.slice(2),e?2:8):j.test(n)?g:+n}var W=I;var k=i,q=a,z=W;var A="Expected a function";var B=Math.max,C=Math.min;function D(n,r,e){var t,i,u,f,a,o,v=0,c=false,d=false,s=true;if(typeof n!="function"){throw new TypeError(A)}r=z(r)||0;if(k(e)){c=!!e.leading;d="maxWait"in e;u=d?B(z(e.maxWait)||0,r):u;s="trailing"in e?!!e.trailing:s}function m(r){var e=t,u=i;t=i=undefined;v=r;f=n.apply(u,e);return f}function y(n){v=n;a=setTimeout(T,r);return c?m(n):f}function p(n){var e=n-o,t=n-v,i=r-e;return d?C(i,u-t):i}function l(n){var e=n-o,t=n-v;return o===undefined||e>=r||e<0||d&&t>=u}function T(){var n=q();if(l(n)){return b(n)}a=setTimeout(T,p(n))}function b(n){a=undefined;if(s&&t){return m(n)}t=i=undefined;return f}function h(){if(a!==undefined){clearTimeout(a)}v=0;t=o=i=a=undefined}function x(){return a===undefined?f:b(q())}function w(){var n=q(),e=l(n);t=arguments;i=this;o=n;if(e){if(a===undefined){return y(o)}if(d){clearTimeout(a);a=setTimeout(T,r);return m(o)}}if(a===undefined){a=setTimeout(T,r)}return f}w.cancel=h;w.flush=x;return w}var F=n("d",D)}}}));
1
+ System.register(["./p-9d863a3b.system.js"],(function(n){"use strict";var r,e,t,i;return{setters:[function(n){r=n._;e=n.b;t=n.i;i=n.d}],execute:function(){var u=r;var f=function(){return u.Date.now()};var a=f;var o=/\s/;function v(n){var r=n.length;while(r--&&o.test(n.charAt(r))){}return r}var c=v;var d=c;var s=/^\s+/;function m(n){return n?n.slice(0,d(n)+1).replace(s,""):n}var y=m;var p=e,l=t;var T="[object Symbol]";function b(n){return typeof n=="symbol"||l(n)&&p(n)==T}var h=b;var x=y,w=i,$=h;var g=0/0;var j=/^[-+]0x[0-9a-f]+$/i;var E=/^0b[01]+$/i;var M=/^0o[0-7]+$/i;var S=parseInt;function I(n){if(typeof n=="number"){return n}if($(n)){return g}if(w(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=w(r)?r+"":r}if(typeof n!="string"){return n===0?n:+n}n=x(n);var e=E.test(n);return e||M.test(n)?S(n.slice(2),e?2:8):j.test(n)?g:+n}var W=I;var k=i,q=a,z=W;var A="Expected a function";var B=Math.max,C=Math.min;function D(n,r,e){var t,i,u,f,a,o,v=0,c=false,d=false,s=true;if(typeof n!="function"){throw new TypeError(A)}r=z(r)||0;if(k(e)){c=!!e.leading;d="maxWait"in e;u=d?B(z(e.maxWait)||0,r):u;s="trailing"in e?!!e.trailing:s}function m(r){var e=t,u=i;t=i=undefined;v=r;f=n.apply(u,e);return f}function y(n){v=n;a=setTimeout(T,r);return c?m(n):f}function p(n){var e=n-o,t=n-v,i=r-e;return d?C(i,u-t):i}function l(n){var e=n-o,t=n-v;return o===undefined||e>=r||e<0||d&&t>=u}function T(){var n=q();if(l(n)){return b(n)}a=setTimeout(T,p(n))}function b(n){a=undefined;if(s&&t){return m(n)}t=i=undefined;return f}function h(){if(a!==undefined){clearTimeout(a)}v=0;t=o=i=a=undefined}function x(){return a===undefined?f:b(q())}function w(){var n=q(),e=l(n);t=arguments;i=this;o=n;if(e){if(a===undefined){return y(o)}if(d){clearTimeout(a);a=setTimeout(T,r);return m(o)}}if(a===undefined){a=setTimeout(T,r)}return f}w.cancel=h;w.flush=x;return w}var F=n("d",D)}}}));
@@ -1 +1 @@
1
- System.register(["./p-02da743b.system.js","./p-19182dc7.system.js","./p-23e7c655.system.js","./p-5a2dd041.system.js"],(function(t){"use strict";var s,o,n,a,i;return{setters:[function(t){s=t.r;o=t.h;n=t.H},function(t){a=t.f},function(t){i=t.c},function(){}],execute:function(){var f=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";var e=f;var r=t("zonos_v_stack",function(){function t(t){s(this,t);this.spacing=24}t.prototype.render=function(){return o(n,{key:"558218f6135d5fcc9f3649b76c568a9f514aa8e8",style:{"--zonos--font-family":a()}},o("div",{key:"86af63aa01214db20cc094ddcbfd05b3ee28f1ed",class:i(["vstack"]),style:{"grid-row-gap":"".concat(this.spacing,"px")}},o("slot",{key:"4786fb44cbf865a548c900b752f9b13709f1f935"})))};return t}());r.style=e}}}));
1
+ System.register(["./p-5fc34563.system.js","./p-9d863a3b.system.js","./p-23e7c655.system.js","./p-5a2dd041.system.js"],(function(t){"use strict";var s,o,n,a,i;return{setters:[function(t){s=t.r;o=t.h;n=t.H},function(t){a=t.f},function(t){i=t.c},function(){}],execute:function(){var f=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";var e=f;var r=t("zonos_v_stack",function(){function t(t){s(this,t);this.spacing=24}t.prototype.render=function(){return o(n,{key:"558218f6135d5fcc9f3649b76c568a9f514aa8e8",style:{"--zonos--font-family":a()}},o("div",{key:"86af63aa01214db20cc094ddcbfd05b3ee28f1ed",class:i(["vstack"]),style:{"grid-row-gap":"".concat(this.spacing,"px")}},o("slot",{key:"4786fb44cbf865a548c900b752f9b13709f1f935"})))};return t}());r.style=e}}}));