@zonos/elements 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (832) hide show
  1. package/dist/cjs/{cart-108bc407.js → cart-ac9a3c40.js} +11 -9
  2. package/dist/cjs/classes-b7918f56.js +0 -2
  3. package/dist/cjs/{getBorderRadius-2904800c.js → getBorderRadius-1f9c0fa3.js} +1 -3
  4. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -2
  5. package/dist/cjs/index-9542d2e7.js +0 -2
  6. package/dist/cjs/index.cjs.js +20 -1
  7. package/dist/cjs/isColorVariable-c1ed7303.js +0 -2
  8. package/dist/cjs/{isDarkColor-a86b8a05.js → isDarkColor-0651a165.js} +1 -3
  9. package/dist/cjs/loader.cjs.js +1 -3
  10. package/dist/cjs/{localization-f6a1b679.js → localization-3a4b4a43.js} +208 -16
  11. package/dist/cjs/{submitGtag-b1b96579.js → submitGtag-9e873a0a.js} +2 -4
  12. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -7
  13. package/dist/cjs/zonos-badge.cjs.entry.js +0 -2
  14. package/dist/cjs/zonos-banner.cjs.entry.js +66 -0
  15. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -5
  16. package/dist/cjs/zonos-card_2.cjs.entry.js +0 -2
  17. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +20 -15
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +90 -50
  19. package/dist/cjs/zonos-component.cjs.entry.js +0 -2
  20. package/dist/cjs/zonos-controller.cjs.entry.js +8 -12
  21. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +6 -8
  22. package/dist/cjs/zonos-elements.cjs.js +1 -3
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +21 -10
  24. package/dist/cjs/zonos-hello.cjs.entry.js +241 -24
  25. package/dist/cjs/zonos-icon.cjs.entry.js +0 -2
  26. package/dist/cjs/zonos-notification.cjs.entry.js +0 -2
  27. package/dist/cjs/zonos-payment.cjs.entry.js +58 -0
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -5
  29. package/dist/cjs/zonos-text.cjs.entry.js +0 -2
  30. package/dist/cjs/{zonosStore-960e5542.js → zonosStore-270f79cc.js} +6 -23
  31. package/dist/collection/components/checkout/zonos-checkout/assets/LeftArrow.svg +1 -1
  32. package/dist/collection/components/checkout/zonos-checkout/assets/MessageIcon.svg +1 -1
  33. package/dist/collection/components/checkout/zonos-checkout/assets/RemoveIcon.svg +1 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +0 -1
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/assets/InfoIcon.svg +1 -1
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +0 -1
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/RemoveIcon.svg +1 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/SuccessIcon.svg +1 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -1
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +0 -1
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +85 -61
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +0 -1
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronDownIcon.svg +1 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronUpIcon.svg +1 -1
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +0 -1
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +0 -1
  48. package/dist/collection/components/common/countries.js +0 -1
  49. package/dist/collection/components/common/zonos-badge/zonos-badge.js +0 -1
  50. package/dist/collection/components/common/zonos-banner/zonos-banner.css +6 -1
  51. package/dist/collection/components/common/zonos-banner/zonos-banner.js +1 -2
  52. package/dist/collection/components/common/zonos-button/zonos-button.js +0 -1
  53. package/dist/collection/components/common/zonos-card/zonos-card.js +0 -1
  54. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +0 -1
  55. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +0 -1
  56. package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +1 -1
  57. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +0 -1
  58. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +0 -1
  59. package/dist/collection/components/common/zonos-dialog/assets/removeIcon.svg +1 -1
  60. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +0 -1
  61. package/dist/collection/components/common/zonos-icon/zonos-icon.js +0 -1
  62. package/dist/collection/components/common/zonos-logo/zonos-logo.js +0 -1
  63. package/dist/collection/components/common/zonos-notification/zonos-notification.js +0 -1
  64. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -2
  65. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +0 -1
  66. package/dist/collection/components/common/zonos-text/zonos-text.js +0 -1
  67. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +0 -1
  68. package/dist/collection/components/component-template/zonos-component/zonos-component.js +0 -1
  69. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +20 -2
  70. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +139 -21
  71. package/dist/collection/components/hello/zonos-hello-dialog/assets/bagIcon.svg +1 -1
  72. package/dist/collection/components/hello/zonos-hello-dialog/assets/messageIcon.svg +1 -1
  73. package/dist/collection/components/hello/zonos-hello-dialog/assets/moneyIcon.svg +1 -1
  74. package/dist/collection/components/hello/zonos-hello-dialog/assets/removeIcon.svg +1 -1
  75. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/chevronDownIcon.svg +1 -1
  76. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIcon.svg +1 -1
  77. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +0 -1
  78. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +20 -4
  79. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +33 -2
  80. package/dist/collection/components/main/zonos-controller.js +0 -1
  81. package/dist/collection/components/store/checkout/cart.js +0 -1
  82. package/dist/collection/components/store/checkout/stripe.js +0 -1
  83. package/dist/collection/components/store/hello/localization.js +6 -5
  84. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -1
  85. package/dist/collection/components/store/translationStore/strings.base.js +9 -1
  86. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -1
  87. package/dist/collection/components/store/translationStore/strings.danish.js +9 -1
  88. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -1
  89. package/dist/collection/components/store/translationStore/strings.french.js +9 -1
  90. package/dist/collection/components/store/translationStore/strings.german.js +9 -1
  91. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -1
  92. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -1
  93. package/dist/collection/components/store/translationStore/strings.italian.js +9 -1
  94. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -1
  95. package/dist/collection/components/store/translationStore/strings.korean.js +9 -1
  96. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -1
  97. package/dist/collection/components/store/translationStore/strings.polish.js +9 -1
  98. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -1
  99. package/dist/collection/components/store/translationStore/strings.russian.js +9 -1
  100. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -1
  101. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -1
  102. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -1
  103. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -1
  104. package/dist/collection/components/store/translationStore.js +0 -1
  105. package/dist/collection/components/store/zonosStore.js +6 -4
  106. package/dist/collection/components/stripe/zonos-address/zonos-address.js +0 -1
  107. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +0 -1
  108. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +0 -1
  109. package/dist/collection/components/utils/addDays.js +0 -1
  110. package/dist/collection/components/utils/api/calculateLandedCost.js +0 -1
  111. package/dist/collection/components/utils/api/checkItemRestrictions.js +17 -0
  112. package/dist/collection/components/utils/api/getCountries.js +0 -1
  113. package/dist/collection/components/utils/api/getCountryLandedCost.js +0 -1
  114. package/dist/collection/components/utils/api/getExchangeRate.js +2 -3
  115. package/dist/collection/components/utils/api/getLocaleMessages.js +0 -1
  116. package/dist/collection/components/utils/api/getLocalization.js +3 -2
  117. package/dist/collection/components/utils/api/getShippingZones.js +0 -1
  118. package/dist/collection/components/utils/api/getZonosSetting.js +0 -1
  119. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -1
  120. package/dist/collection/components/utils/changeDeepProperty.js +0 -1
  121. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js +0 -1
  122. package/dist/collection/components/utils/checkout/initCheckout.js +2 -5
  123. package/dist/collection/components/utils/checkout/isCheckoutMobile.js +0 -1
  124. package/dist/collection/components/utils/classes.js +0 -1
  125. package/dist/collection/components/utils/darkenColor.js +0 -1
  126. package/dist/collection/components/utils/formatCurrency.js +0 -1
  127. package/dist/collection/components/utils/formatDate.js +0 -1
  128. package/dist/collection/components/utils/getBorderRadius.js +0 -1
  129. package/dist/collection/components/utils/getButtonTheme.js +0 -1
  130. package/dist/collection/components/utils/getDaysDifference.js +0 -1
  131. package/dist/collection/components/utils/handleFetch.js +1 -2
  132. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +0 -1
  133. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +0 -1
  134. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +0 -1
  135. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +0 -1
  136. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +0 -1
  137. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +0 -1
  138. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -1
  139. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +0 -1
  140. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +0 -1
  141. package/dist/collection/components/utils/hello/detectItemRestrictions.js +28 -0
  142. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -8
  143. package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +9 -0
  144. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +0 -1
  145. package/dist/collection/components/utils/hello/getProductsOnPage.js +48 -0
  146. package/dist/collection/components/utils/hello/initHello.js +0 -1
  147. package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +9 -0
  148. package/dist/collection/components/utils/isColorVariable.js +0 -1
  149. package/dist/collection/components/utils/isDarkColor.js +0 -1
  150. package/dist/collection/components/utils/isValidSelector.js +0 -1
  151. package/dist/collection/components/utils/jsonParse.js +0 -1
  152. package/dist/collection/components/utils/lightenColor.js +0 -1
  153. package/dist/collection/components/utils/logging/log.js +0 -1
  154. package/dist/collection/components/utils/logging/logError.js +0 -1
  155. package/dist/collection/components/utils/mergeConfig.js +0 -1
  156. package/dist/collection/components/utils/submitGtag.js +0 -1
  157. package/dist/collection/environment.js +84 -10
  158. package/dist/collection/index.js +0 -1
  159. package/dist/collection/scripts/loadStripe.js +3 -4
  160. package/dist/collection/scripts/stripe.js +3 -4
  161. package/dist/collection/scripts/zonos.js +86 -31
  162. package/dist/collection/styles/stripe/addressRuleStyle.js +0 -1
  163. package/dist/collection/styles/stripe/defaultVariable.js +0 -1
  164. package/dist/collection/types/ICountryJson.js +0 -1
  165. package/dist/collection/types/JsonError.js +0 -1
  166. package/dist/collection/types/NoInfer.js +0 -1
  167. package/dist/collection/types/Translation.js +0 -1
  168. package/dist/collection/types/checkout/CheckoutConfig.js +0 -1
  169. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js +0 -1
  170. package/dist/collection/types/generated/graphql.customer.types.js +92 -1
  171. package/dist/collection/types/generated/graphql.frontend.types.js +0 -1
  172. package/dist/collection/types/hello/HelloConfig.js +0 -1
  173. package/dist/collection/types/hello/Product.js +1 -0
  174. package/dist/collection/types/hello/RestrictedItem.js +1 -0
  175. package/dist/collection/types/index.js +1 -1
  176. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  177. package/dist/collection/types/stripe/Apperance.js +0 -1
  178. package/dist/collection/types/styles/Color.js +0 -1
  179. package/dist/collection/types/styles/GridSpacing.js +0 -1
  180. package/dist/collection/types/styles/Text.js +0 -1
  181. package/dist/collection/types/utils/deep/IDeepKeyof.js +0 -1
  182. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js +0 -1
  183. package/dist/collection/utils/format.js +0 -1
  184. package/dist/collection/utils/generateVercelDeployUrl.js +0 -1
  185. package/dist/{esm/cart-2f83e048.js → components/cart.js} +10 -10
  186. package/dist/components/classes.js +0 -2
  187. package/dist/components/formatCurrency.js +0 -2
  188. package/dist/components/getBorderRadius.js +0 -2
  189. package/dist/components/index.js +1 -2
  190. package/dist/components/isColorVariable.js +0 -2
  191. package/dist/components/isDarkColor.js +0 -2
  192. package/dist/components/localization.js +207 -16
  193. package/dist/components/submitGtag.js +1 -3
  194. package/dist/components/zonos-address.js +0 -2
  195. package/dist/components/zonos-address2.js +2 -4
  196. package/dist/components/zonos-badge.js +0 -2
  197. package/dist/components/zonos-badge2.js +0 -2
  198. package/dist/components/zonos-banner.js +0 -2
  199. package/dist/components/zonos-banner2.js +2 -4
  200. package/dist/components/zonos-button.js +0 -2
  201. package/dist/components/zonos-button2.js +0 -2
  202. package/dist/components/zonos-card.js +0 -2
  203. package/dist/components/zonos-card2.js +0 -2
  204. package/dist/components/zonos-cart-items.js +0 -2
  205. package/dist/components/zonos-cart-items2.js +1 -3
  206. package/dist/components/zonos-cart-subtotal.js +0 -2
  207. package/dist/components/zonos-cart-subtotal2.js +2 -4
  208. package/dist/components/zonos-checkout-finish.js +0 -2
  209. package/dist/components/zonos-checkout-finish2.js +10 -5
  210. package/dist/components/zonos-checkout-payment.js +0 -2
  211. package/dist/components/zonos-checkout-payment2.js +1 -3
  212. package/dist/components/zonos-checkout.js +86 -47
  213. package/dist/components/zonos-collapse.js +0 -2
  214. package/dist/components/zonos-collapse2.js +0 -2
  215. package/dist/components/zonos-component.js +0 -2
  216. package/dist/components/zonos-controller.js +5 -9
  217. package/dist/components/zonos-country-flag.js +0 -2
  218. package/dist/components/zonos-country-flag2.js +1 -3
  219. package/dist/components/zonos-country-select.js +0 -2
  220. package/dist/components/zonos-country-select2.js +2 -4
  221. package/dist/components/zonos-custom-message.js +0 -2
  222. package/dist/components/zonos-custom-message2.js +0 -2
  223. package/dist/components/zonos-customer-info.js +0 -2
  224. package/dist/components/zonos-customer-info2.js +2 -4
  225. package/dist/components/zonos-dialog.js +0 -2
  226. package/dist/components/zonos-dialog2.js +1 -3
  227. package/dist/components/zonos-hello-dialog-footer.js +0 -2
  228. package/dist/components/zonos-hello-dialog-footer2.js +3 -5
  229. package/dist/components/zonos-hello-dialog.js +0 -2
  230. package/dist/components/zonos-hello-dialog2.js +28 -10
  231. package/dist/components/zonos-hello.js +251 -24
  232. package/dist/components/zonos-icon.js +0 -2
  233. package/dist/components/zonos-icon2.js +0 -2
  234. package/dist/components/zonos-link-authentication.js +0 -2
  235. package/dist/components/zonos-link-authentication2.js +1 -3
  236. package/dist/components/zonos-logo.js +0 -2
  237. package/dist/components/zonos-logo2.js +0 -2
  238. package/dist/components/zonos-notification.js +0 -2
  239. package/dist/components/zonos-notification2.js +0 -2
  240. package/dist/components/zonos-payment.js +0 -2
  241. package/dist/components/zonos-payment2.js +1 -3
  242. package/dist/components/zonos-review.js +0 -2
  243. package/dist/components/zonos-review2.js +3 -5
  244. package/dist/components/zonos-shipping-rich-radio.js +0 -2
  245. package/dist/components/zonos-shipping-rich-radio2.js +1 -3
  246. package/dist/components/zonos-shipping.js +0 -2
  247. package/dist/components/zonos-shipping2.js +1 -3
  248. package/dist/components/zonos-spinner.js +0 -2
  249. package/dist/components/zonos-spinner2.js +0 -2
  250. package/dist/components/zonos-text.js +0 -2
  251. package/dist/components/zonos-text2.js +0 -2
  252. package/dist/components/zonos-v-stack.js +0 -2
  253. package/dist/components/zonos-v-stack2.js +0 -2
  254. package/dist/components/zonosStore.js +6 -23
  255. package/dist/{zonos-elements/cart-2f83e048.js → esm/cart-cf46a264.js} +10 -10
  256. package/dist/esm/classes-0d95c529.js +0 -2
  257. package/dist/esm/{getBorderRadius-82fbaf25.js → getBorderRadius-278281bf.js} +1 -3
  258. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -2
  259. package/dist/esm/index-d1aa9293.js +0 -2
  260. package/dist/esm/index.js +6 -3
  261. package/dist/esm/isColorVariable-4cda28c9.js +0 -2
  262. package/dist/esm/{isDarkColor-b21326ae.js → isDarkColor-8fd3a24e.js} +1 -3
  263. package/dist/esm/loader.js +1 -3
  264. package/dist/{zonos-elements/localization-4a424f49.js → esm/localization-add1d9e9.js} +208 -17
  265. package/dist/{zonos-elements/submitGtag-fbdb454b.js → esm/submitGtag-aa5fe441.js} +2 -4
  266. package/dist/esm/zonos-address_2.entry.js +5 -7
  267. package/dist/esm/zonos-badge.entry.js +0 -2
  268. package/dist/esm/zonos-banner.entry.js +62 -0
  269. package/dist/esm/zonos-button_2.entry.js +3 -5
  270. package/dist/esm/zonos-card_2.entry.js +0 -2
  271. package/dist/esm/zonos-cart-items_10.entry.js +20 -15
  272. package/dist/esm/zonos-checkout.entry.js +90 -50
  273. package/dist/esm/zonos-component.entry.js +0 -2
  274. package/dist/esm/zonos-controller.entry.js +8 -12
  275. package/dist/esm/zonos-country-flag_4.entry.js +6 -8
  276. package/dist/esm/zonos-elements.js +1 -3
  277. package/dist/esm/zonos-hello-dialog.entry.js +21 -10
  278. package/dist/esm/zonos-hello.entry.js +241 -24
  279. package/dist/esm/zonos-icon.entry.js +0 -2
  280. package/dist/esm/zonos-notification.entry.js +0 -2
  281. package/dist/esm/zonos-payment.entry.js +54 -0
  282. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -5
  283. package/dist/esm/zonos-text.entry.js +0 -2
  284. package/dist/{zonos-elements/zonosStore-13a7b534.js → esm/zonosStore-e5291656.js} +6 -23
  285. package/dist/esm-es5/cart-cf46a264.js +1 -0
  286. package/dist/esm-es5/classes-0d95c529.js +1 -2
  287. package/dist/esm-es5/getBorderRadius-278281bf.js +1 -0
  288. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +1 -2
  289. package/dist/esm-es5/index-d1aa9293.js +1 -2
  290. package/dist/esm-es5/index.js +1 -2
  291. package/dist/esm-es5/isColorVariable-4cda28c9.js +1 -2
  292. package/dist/esm-es5/{isDarkColor-b21326ae.js → isDarkColor-8fd3a24e.js} +1 -2
  293. package/dist/esm-es5/loader.js +1 -2
  294. package/dist/esm-es5/localization-add1d9e9.js +1 -0
  295. package/dist/esm-es5/{submitGtag-fbdb454b.js → submitGtag-aa5fe441.js} +1 -2
  296. package/dist/esm-es5/zonos-address_2.entry.js +1 -2
  297. package/dist/esm-es5/zonos-badge.entry.js +1 -2
  298. package/dist/esm-es5/zonos-banner.entry.js +1 -0
  299. package/dist/esm-es5/zonos-button_2.entry.js +1 -2
  300. package/dist/esm-es5/zonos-card_2.entry.js +1 -2
  301. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -2
  302. package/dist/esm-es5/zonos-checkout.entry.js +1 -2
  303. package/dist/esm-es5/zonos-component.entry.js +1 -2
  304. package/dist/esm-es5/zonos-controller.entry.js +1 -2
  305. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -2
  306. package/dist/esm-es5/zonos-elements.js +1 -2
  307. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -2
  308. package/dist/esm-es5/zonos-hello.entry.js +1 -2
  309. package/dist/esm-es5/zonos-icon.entry.js +1 -2
  310. package/dist/esm-es5/zonos-notification.entry.js +1 -2
  311. package/dist/esm-es5/zonos-payment.entry.js +1 -0
  312. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -2
  313. package/dist/esm-es5/zonos-text.entry.js +1 -2
  314. package/dist/esm-es5/zonosStore-e5291656.js +1 -0
  315. package/dist/scripts/loadStripe.js +6 -6
  316. package/dist/scripts/loadZonos.js +95 -35
  317. package/dist/scripts/stripe.js +5 -5
  318. package/dist/scripts/zonos.js +95 -35
  319. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -4
  320. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +24 -1
  321. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +6 -0
  322. package/dist/types/components/store/checkout/cart.d.ts +13 -1
  323. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  324. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  325. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  326. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  327. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  328. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  329. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  330. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  331. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  332. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  333. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  334. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  335. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  336. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  337. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  338. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  339. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  340. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  341. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  342. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  343. package/dist/types/components/store/zonosStore.d.ts +1 -1
  344. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +22 -0
  345. package/dist/types/components/utils/api/getExchangeRate.d.ts +2 -1
  346. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +14 -0
  347. package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +2 -1
  348. package/dist/types/components/utils/hello/getHasMoreSpaceAbove.d.ts +1 -0
  349. package/dist/types/components/utils/hello/getProductsOnPage.d.ts +2 -0
  350. package/dist/types/components/utils/hello/setZonosCountryUrlParam.d.ts +2 -0
  351. package/dist/types/components.d.ts +12 -8
  352. package/dist/types/environment.d.ts +17 -0
  353. package/dist/types/scripts/loadStripe.d.ts +1 -1
  354. package/dist/types/scripts/stripe.d.ts +2 -2
  355. package/dist/types/scripts/zonos.d.ts +8 -0
  356. package/dist/types/types/checkout/CheckoutConfig.d.ts +2 -1
  357. package/dist/types/types/generated/graphql.customer.types.d.ts +144 -1
  358. package/dist/types/types/generated/graphql.customer.types.ts +204 -1
  359. package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -4
  360. package/dist/types/types/generated/graphql.frontend.types.ts +0 -1
  361. package/dist/types/types/hello/HelloConfig.d.ts +4 -0
  362. package/dist/types/types/hello/Product.d.ts +5 -0
  363. package/dist/types/types/hello/RestrictedItem.d.ts +6 -0
  364. package/dist/types/types/index.d.ts +1 -0
  365. package/dist/zonos-elements/assets/ChevronDownIcon.svg +1 -1
  366. package/dist/zonos-elements/assets/ChevronUpIcon.svg +1 -1
  367. package/dist/zonos-elements/assets/InfoIcon.svg +1 -1
  368. package/dist/zonos-elements/assets/LeftArrow.svg +1 -1
  369. package/dist/zonos-elements/assets/MessageIcon.svg +1 -1
  370. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  371. package/dist/zonos-elements/assets/SuccessIcon.svg +1 -1
  372. package/dist/zonos-elements/assets/bagIcon.svg +1 -1
  373. package/dist/zonos-elements/assets/messageIcon.svg +1 -1
  374. package/dist/zonos-elements/assets/moneyIcon.svg +1 -1
  375. package/dist/zonos-elements/assets/removeIcon.svg +1 -1
  376. package/dist/zonos-elements/index.esm.js +1 -3
  377. package/dist/zonos-elements/p-0190f7c4.entry.js +1 -0
  378. package/dist/zonos-elements/p-01990dcd.js +1 -0
  379. package/dist/zonos-elements/p-0636859b.js +1 -0
  380. package/dist/zonos-elements/p-083b951d.system.entry.js +1 -0
  381. package/dist/zonos-elements/p-0a33b542.system.js +1 -0
  382. package/dist/zonos-elements/p-0cd4b073.system.js +1 -0
  383. package/dist/zonos-elements/p-0f64d234.entry.js +1 -0
  384. package/dist/zonos-elements/p-1293796f.js +1 -0
  385. package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
  386. package/dist/zonos-elements/p-1781245e.system.js +1 -0
  387. package/dist/zonos-elements/p-1835470b.system.entry.js +1 -0
  388. package/dist/zonos-elements/p-18d37ad9.system.js +1 -0
  389. package/dist/zonos-elements/p-1b6d064d.system.js +1 -0
  390. package/dist/zonos-elements/p-23204b78.system.entry.js +1 -0
  391. package/dist/zonos-elements/{classes-ce25a814.system.js → p-23e7c655.system.js} +1 -2
  392. package/dist/zonos-elements/p-2b6325ab.entry.js +1 -0
  393. package/dist/zonos-elements/p-36425562.system.entry.js +1 -0
  394. package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
  395. package/dist/zonos-elements/p-466bae3a.entry.js +1 -0
  396. package/dist/zonos-elements/{getHasMoreSpaceOnRight-5a9efd60.system.js → p-4a5096d2.system.js} +1 -2
  397. package/dist/zonos-elements/{isColorVariable-be454101.system.js → p-64fdb7b6.system.js} +1 -2
  398. package/dist/zonos-elements/{index-87193773.system.js → p-68d06767.system.js} +1 -2
  399. package/dist/zonos-elements/p-6bb67f2e.system.entry.js +1 -0
  400. package/dist/zonos-elements/p-6cd7a90e.system.js +1 -0
  401. package/dist/zonos-elements/p-6d82986c.system.entry.js +1 -0
  402. package/dist/zonos-elements/p-7bacecf7.entry.js +1 -0
  403. package/dist/zonos-elements/p-824395fd.system.entry.js +1 -0
  404. package/dist/zonos-elements/p-82ab16e2.js +1 -0
  405. package/dist/zonos-elements/p-847a1b9a.system.entry.js +1 -0
  406. package/dist/zonos-elements/p-86825d4a.js +1 -0
  407. package/dist/zonos-elements/p-8fa1244b.entry.js +1 -0
  408. package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
  409. package/dist/zonos-elements/p-96fbce98.system.entry.js +1 -0
  410. package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
  411. package/dist/zonos-elements/p-9d06e3a3.system.js +1 -0
  412. package/dist/zonos-elements/p-a014d540.entry.js +1 -0
  413. package/dist/zonos-elements/p-a3f394b7.system.entry.js +1 -0
  414. package/dist/zonos-elements/p-aed841bf.entry.js +1 -0
  415. package/dist/zonos-elements/p-b0a39955.js +1 -0
  416. package/dist/zonos-elements/p-b4b7f705.js +1 -0
  417. package/dist/zonos-elements/p-b618cf03.entry.js +1 -0
  418. package/dist/zonos-elements/p-b6c499d4.js +1 -0
  419. package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
  420. package/dist/zonos-elements/p-bb35713f.entry.js +1 -0
  421. package/dist/zonos-elements/p-c4eb37b5.entry.js +1 -0
  422. package/dist/zonos-elements/p-d0ecfe92.system.entry.js +1 -0
  423. package/dist/zonos-elements/p-dc8d7000.js +2 -0
  424. package/dist/zonos-elements/p-ddc11127.system.entry.js +1 -0
  425. package/dist/zonos-elements/p-de86c2e4.system.entry.js +1 -0
  426. package/dist/zonos-elements/p-e80aae7d.entry.js +1 -0
  427. package/dist/zonos-elements/p-eb6cc449.system.entry.js +1 -0
  428. package/dist/zonos-elements/p-ebb4de4e.entry.js +1 -0
  429. package/dist/zonos-elements/p-ee671d13.js +1 -0
  430. package/dist/zonos-elements/p-f5392f7e.entry.js +1 -0
  431. package/dist/zonos-elements/p-f8491335.system.js +1 -0
  432. package/dist/zonos-elements/p-f868ed42.entry.js +1 -0
  433. package/dist/zonos-elements/zonos-elements.esm.js +1 -20
  434. package/dist/zonos-elements/zonos-elements.js +1 -1
  435. package/package.json +1 -1
  436. package/dist/cjs/cart-108bc407.js.map +0 -1
  437. package/dist/cjs/classes-b7918f56.js.map +0 -1
  438. package/dist/cjs/getBorderRadius-2904800c.js.map +0 -1
  439. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js.map +0 -1
  440. package/dist/cjs/index-9542d2e7.js.map +0 -1
  441. package/dist/cjs/index.cjs.js.map +0 -1
  442. package/dist/cjs/isColorVariable-c1ed7303.js.map +0 -1
  443. package/dist/cjs/isDarkColor-a86b8a05.js.map +0 -1
  444. package/dist/cjs/loader.cjs.js.map +0 -1
  445. package/dist/cjs/localization-f6a1b679.js.map +0 -1
  446. package/dist/cjs/submitGtag-b1b96579.js.map +0 -1
  447. package/dist/cjs/zonos-address_2.cjs.entry.js.map +0 -1
  448. package/dist/cjs/zonos-badge.cjs.entry.js.map +0 -1
  449. package/dist/cjs/zonos-banner_2.cjs.entry.js +0 -120
  450. package/dist/cjs/zonos-banner_2.cjs.entry.js.map +0 -1
  451. package/dist/cjs/zonos-button_2.cjs.entry.js.map +0 -1
  452. package/dist/cjs/zonos-card_2.cjs.entry.js.map +0 -1
  453. package/dist/cjs/zonos-cart-items_10.cjs.entry.js.map +0 -1
  454. package/dist/cjs/zonos-checkout.cjs.entry.js.map +0 -1
  455. package/dist/cjs/zonos-component.cjs.entry.js.map +0 -1
  456. package/dist/cjs/zonos-controller.cjs.entry.js.map +0 -1
  457. package/dist/cjs/zonos-country-flag_4.cjs.entry.js.map +0 -1
  458. package/dist/cjs/zonos-elements.cjs.js.map +0 -1
  459. package/dist/cjs/zonos-hello-dialog.cjs.entry.js.map +0 -1
  460. package/dist/cjs/zonos-hello.cjs.entry.js.map +0 -1
  461. package/dist/cjs/zonos-icon.cjs.entry.js.map +0 -1
  462. package/dist/cjs/zonos-notification.cjs.entry.js.map +0 -1
  463. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js.map +0 -1
  464. package/dist/cjs/zonos-text.cjs.entry.js.map +0 -1
  465. package/dist/cjs/zonosStore-960e5542.js.map +0 -1
  466. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js.map +0 -1
  467. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js.map +0 -1
  468. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js.map +0 -1
  469. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js.map +0 -1
  470. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js.map +0 -1
  471. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js.map +0 -1
  472. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js.map +0 -1
  473. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js.map +0 -1
  474. package/dist/collection/components/common/countries.js.map +0 -1
  475. package/dist/collection/components/common/zonos-badge/zonos-badge.js.map +0 -1
  476. package/dist/collection/components/common/zonos-banner/zonos-banner.js.map +0 -1
  477. package/dist/collection/components/common/zonos-button/zonos-button.js.map +0 -1
  478. package/dist/collection/components/common/zonos-card/zonos-card.js.map +0 -1
  479. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js.map +0 -1
  480. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js.map +0 -1
  481. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js.map +0 -1
  482. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js.map +0 -1
  483. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js.map +0 -1
  484. package/dist/collection/components/common/zonos-icon/zonos-icon.js.map +0 -1
  485. package/dist/collection/components/common/zonos-logo/zonos-logo.js.map +0 -1
  486. package/dist/collection/components/common/zonos-notification/zonos-notification.js.map +0 -1
  487. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js.map +0 -1
  488. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js.map +0 -1
  489. package/dist/collection/components/common/zonos-text/zonos-text.js.map +0 -1
  490. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js.map +0 -1
  491. package/dist/collection/components/component-template/zonos-component/zonos-component.js.map +0 -1
  492. package/dist/collection/components/hello/zonos-hello/zonos-hello.js.map +0 -1
  493. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js.map +0 -1
  494. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js.map +0 -1
  495. package/dist/collection/components/main/zonos-controller.js.map +0 -1
  496. package/dist/collection/components/store/checkout/cart.js.map +0 -1
  497. package/dist/collection/components/store/checkout/stripe.js.map +0 -1
  498. package/dist/collection/components/store/hello/localization.js.map +0 -1
  499. package/dist/collection/components/store/translationStore/strings.arabic.js.map +0 -1
  500. package/dist/collection/components/store/translationStore/strings.base.js.map +0 -1
  501. package/dist/collection/components/store/translationStore/strings.chinese.js.map +0 -1
  502. package/dist/collection/components/store/translationStore/strings.danish.js.map +0 -1
  503. package/dist/collection/components/store/translationStore/strings.dutch.js.map +0 -1
  504. package/dist/collection/components/store/translationStore/strings.french.js.map +0 -1
  505. package/dist/collection/components/store/translationStore/strings.german.js.map +0 -1
  506. package/dist/collection/components/store/translationStore/strings.hebrew.js.map +0 -1
  507. package/dist/collection/components/store/translationStore/strings.indonesian.js.map +0 -1
  508. package/dist/collection/components/store/translationStore/strings.italian.js.map +0 -1
  509. package/dist/collection/components/store/translationStore/strings.japanese.js.map +0 -1
  510. package/dist/collection/components/store/translationStore/strings.korean.js.map +0 -1
  511. package/dist/collection/components/store/translationStore/strings.norwegian.js.map +0 -1
  512. package/dist/collection/components/store/translationStore/strings.polish.js.map +0 -1
  513. package/dist/collection/components/store/translationStore/strings.portuguese.js.map +0 -1
  514. package/dist/collection/components/store/translationStore/strings.russian.js.map +0 -1
  515. package/dist/collection/components/store/translationStore/strings.spanish.js.map +0 -1
  516. package/dist/collection/components/store/translationStore/strings.swedish.js.map +0 -1
  517. package/dist/collection/components/store/translationStore/strings.turkish.js.map +0 -1
  518. package/dist/collection/components/store/translationStore/strings.vietnamese.js.map +0 -1
  519. package/dist/collection/components/store/translationStore.js.map +0 -1
  520. package/dist/collection/components/store/zonosStore.js.map +0 -1
  521. package/dist/collection/components/stripe/zonos-address/zonos-address.js.map +0 -1
  522. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js.map +0 -1
  523. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js.map +0 -1
  524. package/dist/collection/components/utils/addDays.js.map +0 -1
  525. package/dist/collection/components/utils/api/calculateLandedCost.js.map +0 -1
  526. package/dist/collection/components/utils/api/getCountries.js.map +0 -1
  527. package/dist/collection/components/utils/api/getCountryLandedCost.js.map +0 -1
  528. package/dist/collection/components/utils/api/getExchangeRate.js.map +0 -1
  529. package/dist/collection/components/utils/api/getLocaleMessages.js.map +0 -1
  530. package/dist/collection/components/utils/api/getLocalization.js.map +0 -1
  531. package/dist/collection/components/utils/api/getShippingZones.js.map +0 -1
  532. package/dist/collection/components/utils/api/getZonosSetting.js.map +0 -1
  533. package/dist/collection/components/utils/api/prepCalculateLandedCost.js.map +0 -1
  534. package/dist/collection/components/utils/changeDeepProperty.js.map +0 -1
  535. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js.map +0 -1
  536. package/dist/collection/components/utils/checkout/initCheckout.js.map +0 -1
  537. package/dist/collection/components/utils/checkout/isCheckoutMobile.js.map +0 -1
  538. package/dist/collection/components/utils/classes.js.map +0 -1
  539. package/dist/collection/components/utils/darkenColor.js.map +0 -1
  540. package/dist/collection/components/utils/formatCurrency.js.map +0 -1
  541. package/dist/collection/components/utils/formatDate.js.map +0 -1
  542. package/dist/collection/components/utils/getBorderRadius.js.map +0 -1
  543. package/dist/collection/components/utils/getButtonTheme.js.map +0 -1
  544. package/dist/collection/components/utils/getDaysDifference.js.map +0 -1
  545. package/dist/collection/components/utils/handleFetch.js.map +0 -1
  546. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js.map +0 -1
  547. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js.map +0 -1
  548. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js.map +0 -1
  549. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js.map +0 -1
  550. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js.map +0 -1
  551. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js.map +0 -1
  552. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js.map +0 -1
  553. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js.map +0 -1
  554. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js.map +0 -1
  555. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js.map +0 -1
  556. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js.map +0 -1
  557. package/dist/collection/components/utils/hello/initHello.js.map +0 -1
  558. package/dist/collection/components/utils/isColorVariable.js.map +0 -1
  559. package/dist/collection/components/utils/isDarkColor.js.map +0 -1
  560. package/dist/collection/components/utils/isValidSelector.js.map +0 -1
  561. package/dist/collection/components/utils/jsonParse.js.map +0 -1
  562. package/dist/collection/components/utils/lightenColor.js.map +0 -1
  563. package/dist/collection/components/utils/logging/log.js.map +0 -1
  564. package/dist/collection/components/utils/logging/logError.js.map +0 -1
  565. package/dist/collection/components/utils/mergeConfig.js.map +0 -1
  566. package/dist/collection/components/utils/submitGtag.js.map +0 -1
  567. package/dist/collection/environment.js.map +0 -1
  568. package/dist/collection/index.js.map +0 -1
  569. package/dist/collection/scripts/loadStripe.js.map +0 -1
  570. package/dist/collection/scripts/stripe.js.map +0 -1
  571. package/dist/collection/scripts/zonos.js.map +0 -1
  572. package/dist/collection/styles/stripe/addressRuleStyle.js.map +0 -1
  573. package/dist/collection/styles/stripe/defaultVariable.js.map +0 -1
  574. package/dist/collection/types/ICountryJson.js.map +0 -1
  575. package/dist/collection/types/JsonError.js.map +0 -1
  576. package/dist/collection/types/NoInfer.js.map +0 -1
  577. package/dist/collection/types/Translation.js.map +0 -1
  578. package/dist/collection/types/checkout/CheckoutConfig.js.map +0 -1
  579. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js.map +0 -1
  580. package/dist/collection/types/generated/graphql.customer.types.js.map +0 -1
  581. package/dist/collection/types/generated/graphql.frontend.types.js.map +0 -1
  582. package/dist/collection/types/hello/HelloConfig.js.map +0 -1
  583. package/dist/collection/types/index.js.map +0 -1
  584. package/dist/collection/types/online-store/OnlineStoreConfig.js.map +0 -1
  585. package/dist/collection/types/stripe/Apperance.js.map +0 -1
  586. package/dist/collection/types/styles/Color.js.map +0 -1
  587. package/dist/collection/types/styles/GridSpacing.js.map +0 -1
  588. package/dist/collection/types/styles/Text.js.map +0 -1
  589. package/dist/collection/types/utils/deep/IDeepKeyof.js.map +0 -1
  590. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js.map +0 -1
  591. package/dist/collection/utils/format.js.map +0 -1
  592. package/dist/collection/utils/generateVercelDeployUrl.js.map +0 -1
  593. package/dist/components/classes.js.map +0 -1
  594. package/dist/components/formatCurrency.js.map +0 -1
  595. package/dist/components/getBorderRadius.js.map +0 -1
  596. package/dist/components/index.js.map +0 -1
  597. package/dist/components/isColorVariable.js.map +0 -1
  598. package/dist/components/isDarkColor.js.map +0 -1
  599. package/dist/components/localization.js.map +0 -1
  600. package/dist/components/stripe.js +0 -598
  601. package/dist/components/stripe.js.map +0 -1
  602. package/dist/components/submitGtag.js.map +0 -1
  603. package/dist/components/zonos-address.js.map +0 -1
  604. package/dist/components/zonos-address2.js.map +0 -1
  605. package/dist/components/zonos-badge.js.map +0 -1
  606. package/dist/components/zonos-badge2.js.map +0 -1
  607. package/dist/components/zonos-banner.js.map +0 -1
  608. package/dist/components/zonos-banner2.js.map +0 -1
  609. package/dist/components/zonos-button.js.map +0 -1
  610. package/dist/components/zonos-button2.js.map +0 -1
  611. package/dist/components/zonos-card.js.map +0 -1
  612. package/dist/components/zonos-card2.js.map +0 -1
  613. package/dist/components/zonos-cart-items.js.map +0 -1
  614. package/dist/components/zonos-cart-items2.js.map +0 -1
  615. package/dist/components/zonos-cart-subtotal.js.map +0 -1
  616. package/dist/components/zonos-cart-subtotal2.js.map +0 -1
  617. package/dist/components/zonos-checkout-finish.js.map +0 -1
  618. package/dist/components/zonos-checkout-finish2.js.map +0 -1
  619. package/dist/components/zonos-checkout-payment.js.map +0 -1
  620. package/dist/components/zonos-checkout-payment2.js.map +0 -1
  621. package/dist/components/zonos-checkout.js.map +0 -1
  622. package/dist/components/zonos-collapse.js.map +0 -1
  623. package/dist/components/zonos-collapse2.js.map +0 -1
  624. package/dist/components/zonos-component.js.map +0 -1
  625. package/dist/components/zonos-controller.js.map +0 -1
  626. package/dist/components/zonos-country-flag.js.map +0 -1
  627. package/dist/components/zonos-country-flag2.js.map +0 -1
  628. package/dist/components/zonos-country-select.js.map +0 -1
  629. package/dist/components/zonos-country-select2.js.map +0 -1
  630. package/dist/components/zonos-custom-message.js.map +0 -1
  631. package/dist/components/zonos-custom-message2.js.map +0 -1
  632. package/dist/components/zonos-customer-info.js.map +0 -1
  633. package/dist/components/zonos-customer-info2.js.map +0 -1
  634. package/dist/components/zonos-dialog.js.map +0 -1
  635. package/dist/components/zonos-dialog2.js.map +0 -1
  636. package/dist/components/zonos-hello-dialog-footer.js.map +0 -1
  637. package/dist/components/zonos-hello-dialog-footer2.js.map +0 -1
  638. package/dist/components/zonos-hello-dialog.js.map +0 -1
  639. package/dist/components/zonos-hello-dialog2.js.map +0 -1
  640. package/dist/components/zonos-hello.js.map +0 -1
  641. package/dist/components/zonos-icon.js.map +0 -1
  642. package/dist/components/zonos-icon2.js.map +0 -1
  643. package/dist/components/zonos-link-authentication.js.map +0 -1
  644. package/dist/components/zonos-link-authentication2.js.map +0 -1
  645. package/dist/components/zonos-logo.js.map +0 -1
  646. package/dist/components/zonos-logo2.js.map +0 -1
  647. package/dist/components/zonos-notification.js.map +0 -1
  648. package/dist/components/zonos-notification2.js.map +0 -1
  649. package/dist/components/zonos-payment.js.map +0 -1
  650. package/dist/components/zonos-payment2.js.map +0 -1
  651. package/dist/components/zonos-review.js.map +0 -1
  652. package/dist/components/zonos-review2.js.map +0 -1
  653. package/dist/components/zonos-shipping-rich-radio.js.map +0 -1
  654. package/dist/components/zonos-shipping-rich-radio2.js.map +0 -1
  655. package/dist/components/zonos-shipping.js.map +0 -1
  656. package/dist/components/zonos-shipping2.js.map +0 -1
  657. package/dist/components/zonos-spinner.js.map +0 -1
  658. package/dist/components/zonos-spinner2.js.map +0 -1
  659. package/dist/components/zonos-text.js.map +0 -1
  660. package/dist/components/zonos-text2.js.map +0 -1
  661. package/dist/components/zonos-v-stack.js.map +0 -1
  662. package/dist/components/zonos-v-stack2.js.map +0 -1
  663. package/dist/components/zonosStore.js.map +0 -1
  664. package/dist/esm/cart-2f83e048.js.map +0 -1
  665. package/dist/esm/classes-0d95c529.js.map +0 -1
  666. package/dist/esm/getBorderRadius-82fbaf25.js.map +0 -1
  667. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  668. package/dist/esm/index-d1aa9293.js.map +0 -1
  669. package/dist/esm/index.js.map +0 -1
  670. package/dist/esm/isColorVariable-4cda28c9.js.map +0 -1
  671. package/dist/esm/isDarkColor-b21326ae.js.map +0 -1
  672. package/dist/esm/loader.js.map +0 -1
  673. package/dist/esm/localization-4a424f49.js +0 -3374
  674. package/dist/esm/localization-4a424f49.js.map +0 -1
  675. package/dist/esm/submitGtag-fbdb454b.js +0 -26
  676. package/dist/esm/submitGtag-fbdb454b.js.map +0 -1
  677. package/dist/esm/zonos-address_2.entry.js.map +0 -1
  678. package/dist/esm/zonos-badge.entry.js.map +0 -1
  679. package/dist/esm/zonos-banner_2.entry.js +0 -115
  680. package/dist/esm/zonos-banner_2.entry.js.map +0 -1
  681. package/dist/esm/zonos-button_2.entry.js.map +0 -1
  682. package/dist/esm/zonos-card_2.entry.js.map +0 -1
  683. package/dist/esm/zonos-cart-items_10.entry.js.map +0 -1
  684. package/dist/esm/zonos-checkout.entry.js.map +0 -1
  685. package/dist/esm/zonos-component.entry.js.map +0 -1
  686. package/dist/esm/zonos-controller.entry.js.map +0 -1
  687. package/dist/esm/zonos-country-flag_4.entry.js.map +0 -1
  688. package/dist/esm/zonos-elements.js.map +0 -1
  689. package/dist/esm/zonos-hello-dialog.entry.js.map +0 -1
  690. package/dist/esm/zonos-hello.entry.js.map +0 -1
  691. package/dist/esm/zonos-icon.entry.js.map +0 -1
  692. package/dist/esm/zonos-notification.entry.js.map +0 -1
  693. package/dist/esm/zonos-shipping-rich-radio.entry.js.map +0 -1
  694. package/dist/esm/zonos-text.entry.js.map +0 -1
  695. package/dist/esm/zonosStore-13a7b534.js +0 -2639
  696. package/dist/esm/zonosStore-13a7b534.js.map +0 -1
  697. package/dist/esm-es5/cart-2f83e048.js +0 -2
  698. package/dist/esm-es5/cart-2f83e048.js.map +0 -1
  699. package/dist/esm-es5/classes-0d95c529.js.map +0 -1
  700. package/dist/esm-es5/getBorderRadius-82fbaf25.js +0 -2
  701. package/dist/esm-es5/getBorderRadius-82fbaf25.js.map +0 -1
  702. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  703. package/dist/esm-es5/index-d1aa9293.js.map +0 -1
  704. package/dist/esm-es5/index.js.map +0 -1
  705. package/dist/esm-es5/isColorVariable-4cda28c9.js.map +0 -1
  706. package/dist/esm-es5/isDarkColor-b21326ae.js.map +0 -1
  707. package/dist/esm-es5/loader.js.map +0 -1
  708. package/dist/esm-es5/localization-4a424f49.js +0 -2
  709. package/dist/esm-es5/localization-4a424f49.js.map +0 -1
  710. package/dist/esm-es5/submitGtag-fbdb454b.js.map +0 -1
  711. package/dist/esm-es5/zonos-address_2.entry.js.map +0 -1
  712. package/dist/esm-es5/zonos-badge.entry.js.map +0 -1
  713. package/dist/esm-es5/zonos-banner_2.entry.js +0 -2
  714. package/dist/esm-es5/zonos-banner_2.entry.js.map +0 -1
  715. package/dist/esm-es5/zonos-button_2.entry.js.map +0 -1
  716. package/dist/esm-es5/zonos-card_2.entry.js.map +0 -1
  717. package/dist/esm-es5/zonos-cart-items_10.entry.js.map +0 -1
  718. package/dist/esm-es5/zonos-checkout.entry.js.map +0 -1
  719. package/dist/esm-es5/zonos-component.entry.js.map +0 -1
  720. package/dist/esm-es5/zonos-controller.entry.js.map +0 -1
  721. package/dist/esm-es5/zonos-country-flag_4.entry.js.map +0 -1
  722. package/dist/esm-es5/zonos-elements.js.map +0 -1
  723. package/dist/esm-es5/zonos-hello-dialog.entry.js.map +0 -1
  724. package/dist/esm-es5/zonos-hello.entry.js.map +0 -1
  725. package/dist/esm-es5/zonos-icon.entry.js.map +0 -1
  726. package/dist/esm-es5/zonos-notification.entry.js.map +0 -1
  727. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js.map +0 -1
  728. package/dist/esm-es5/zonos-text.entry.js.map +0 -1
  729. package/dist/esm-es5/zonosStore-13a7b534.js +0 -2
  730. package/dist/esm-es5/zonosStore-13a7b534.js.map +0 -1
  731. package/dist/zonos-elements/cart-2f83e048.js.map +0 -1
  732. package/dist/zonos-elements/cart-9780fa28.system.js +0 -2
  733. package/dist/zonos-elements/cart-9780fa28.system.js.map +0 -1
  734. package/dist/zonos-elements/classes-0d95c529.js +0 -14
  735. package/dist/zonos-elements/classes-0d95c529.js.map +0 -1
  736. package/dist/zonos-elements/classes-ce25a814.system.js.map +0 -1
  737. package/dist/zonos-elements/getBorderRadius-4fbe49de.system.js +0 -2
  738. package/dist/zonos-elements/getBorderRadius-4fbe49de.system.js.map +0 -1
  739. package/dist/zonos-elements/getBorderRadius-82fbaf25.js +0 -18
  740. package/dist/zonos-elements/getBorderRadius-82fbaf25.js.map +0 -1
  741. package/dist/zonos-elements/getHasMoreSpaceOnRight-5a9efd60.system.js.map +0 -1
  742. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js +0 -10
  743. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  744. package/dist/zonos-elements/index-87193773.system.js.map +0 -1
  745. package/dist/zonos-elements/index-d1aa9293.js +0 -1884
  746. package/dist/zonos-elements/index-d1aa9293.js.map +0 -1
  747. package/dist/zonos-elements/index.esm.js.map +0 -1
  748. package/dist/zonos-elements/index.system.js +0 -2
  749. package/dist/zonos-elements/index.system.js.map +0 -1
  750. package/dist/zonos-elements/isColorVariable-4cda28c9.js +0 -16
  751. package/dist/zonos-elements/isColorVariable-4cda28c9.js.map +0 -1
  752. package/dist/zonos-elements/isColorVariable-be454101.system.js.map +0 -1
  753. package/dist/zonos-elements/isDarkColor-b21326ae.js +0 -1197
  754. package/dist/zonos-elements/isDarkColor-b21326ae.js.map +0 -1
  755. package/dist/zonos-elements/isDarkColor-dc2b7c8f.system.js +0 -2
  756. package/dist/zonos-elements/isDarkColor-dc2b7c8f.system.js.map +0 -1
  757. package/dist/zonos-elements/localization-3c43290f.system.js +0 -2
  758. package/dist/zonos-elements/localization-3c43290f.system.js.map +0 -1
  759. package/dist/zonos-elements/localization-4a424f49.js.map +0 -1
  760. package/dist/zonos-elements/submitGtag-23ecdc20.system.js +0 -2
  761. package/dist/zonos-elements/submitGtag-23ecdc20.system.js.map +0 -1
  762. package/dist/zonos-elements/submitGtag-fbdb454b.js.map +0 -1
  763. package/dist/zonos-elements/zonos-address_2.entry.js +0 -121
  764. package/dist/zonos-elements/zonos-address_2.entry.js.map +0 -1
  765. package/dist/zonos-elements/zonos-address_2.system.entry.js +0 -2
  766. package/dist/zonos-elements/zonos-address_2.system.entry.js.map +0 -1
  767. package/dist/zonos-elements/zonos-badge.entry.js +0 -32
  768. package/dist/zonos-elements/zonos-badge.entry.js.map +0 -1
  769. package/dist/zonos-elements/zonos-badge.system.entry.js +0 -2
  770. package/dist/zonos-elements/zonos-badge.system.entry.js.map +0 -1
  771. package/dist/zonos-elements/zonos-banner_2.entry.js +0 -115
  772. package/dist/zonos-elements/zonos-banner_2.entry.js.map +0 -1
  773. package/dist/zonos-elements/zonos-banner_2.system.entry.js +0 -2
  774. package/dist/zonos-elements/zonos-banner_2.system.entry.js.map +0 -1
  775. package/dist/zonos-elements/zonos-button_2.entry.js +0 -124
  776. package/dist/zonos-elements/zonos-button_2.entry.js.map +0 -1
  777. package/dist/zonos-elements/zonos-button_2.system.entry.js +0 -2
  778. package/dist/zonos-elements/zonos-button_2.system.entry.js.map +0 -1
  779. package/dist/zonos-elements/zonos-card_2.entry.js +0 -42
  780. package/dist/zonos-elements/zonos-card_2.entry.js.map +0 -1
  781. package/dist/zonos-elements/zonos-card_2.system.entry.js +0 -2
  782. package/dist/zonos-elements/zonos-card_2.system.entry.js.map +0 -1
  783. package/dist/zonos-elements/zonos-cart-items_10.entry.js +0 -494
  784. package/dist/zonos-elements/zonos-cart-items_10.entry.js.map +0 -1
  785. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js +0 -2
  786. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js.map +0 -1
  787. package/dist/zonos-elements/zonos-checkout.entry.js +0 -337
  788. package/dist/zonos-elements/zonos-checkout.entry.js.map +0 -1
  789. package/dist/zonos-elements/zonos-checkout.system.entry.js +0 -2
  790. package/dist/zonos-elements/zonos-checkout.system.entry.js.map +0 -1
  791. package/dist/zonos-elements/zonos-component.entry.js +0 -27
  792. package/dist/zonos-elements/zonos-component.entry.js.map +0 -1
  793. package/dist/zonos-elements/zonos-component.system.entry.js +0 -2
  794. package/dist/zonos-elements/zonos-component.system.entry.js.map +0 -1
  795. package/dist/zonos-elements/zonos-controller.entry.js +0 -165
  796. package/dist/zonos-elements/zonos-controller.entry.js.map +0 -1
  797. package/dist/zonos-elements/zonos-controller.system.entry.js +0 -2
  798. package/dist/zonos-elements/zonos-controller.system.entry.js.map +0 -1
  799. package/dist/zonos-elements/zonos-country-flag_4.entry.js +0 -1895
  800. package/dist/zonos-elements/zonos-country-flag_4.entry.js.map +0 -1
  801. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js +0 -2
  802. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js.map +0 -1
  803. package/dist/zonos-elements/zonos-elements.esm.js.map +0 -1
  804. package/dist/zonos-elements/zonos-elements.system.js +0 -2
  805. package/dist/zonos-elements/zonos-elements.system.js.map +0 -1
  806. package/dist/zonos-elements/zonos-hello-dialog.entry.js +0 -111
  807. package/dist/zonos-elements/zonos-hello-dialog.entry.js.map +0 -1
  808. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js +0 -2
  809. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js.map +0 -1
  810. package/dist/zonos-elements/zonos-hello.entry.js +0 -481
  811. package/dist/zonos-elements/zonos-hello.entry.js.map +0 -1
  812. package/dist/zonos-elements/zonos-hello.system.entry.js +0 -2
  813. package/dist/zonos-elements/zonos-hello.system.entry.js.map +0 -1
  814. package/dist/zonos-elements/zonos-icon.entry.js +0 -30
  815. package/dist/zonos-elements/zonos-icon.entry.js.map +0 -1
  816. package/dist/zonos-elements/zonos-icon.system.entry.js +0 -2
  817. package/dist/zonos-elements/zonos-icon.system.entry.js.map +0 -1
  818. package/dist/zonos-elements/zonos-notification.entry.js +0 -67
  819. package/dist/zonos-elements/zonos-notification.entry.js.map +0 -1
  820. package/dist/zonos-elements/zonos-notification.system.entry.js +0 -2
  821. package/dist/zonos-elements/zonos-notification.system.entry.js.map +0 -1
  822. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js +0 -50
  823. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js.map +0 -1
  824. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js +0 -2
  825. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js.map +0 -1
  826. package/dist/zonos-elements/zonos-text.entry.js +0 -156
  827. package/dist/zonos-elements/zonos-text.entry.js.map +0 -1
  828. package/dist/zonos-elements/zonos-text.system.entry.js +0 -2
  829. package/dist/zonos-elements/zonos-text.system.entry.js.map +0 -1
  830. package/dist/zonos-elements/zonosStore-13a7b534.js.map +0 -1
  831. package/dist/zonos-elements/zonosStore-77bcd7c0.system.js +0 -2
  832. package/dist/zonos-elements/zonosStore-77bcd7c0.system.js.map +0 -1
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(o,t,e,s){function n(o){return o instanceof e?o:new e((function(t){t(o)}))}return new(e||(e=Promise))((function(e,i){function a(o){try{c(s.next(o))}catch(o){i(o)}}function r(o){try{c(s["throw"](o))}catch(o){i(o)}}function c(o){o.done?e(o.value):n(o.value).then(a,r)}c((s=s.apply(o,t||[])).next())}))};var __generator=this&&this.__generator||function(o,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,n,i,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(o){return function(t){return c([o,t])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(s=1,n&&(i=r[0]&2?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;if(n=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;n=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){e.label=r[1];break}if(r[0]===6&&e.label<i[1]){e.label=i[1];i=r;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(r);break}if(i[2])e.ops.pop();e.trys.pop();continue}r=t.call(o,e)}catch(o){r=[6,o];n=0}finally{s=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,i;s<n;s++){if(i||!(s in t)){if(!i)i=Array.prototype.slice.call(t,0,s);i[s]=t[s]}}return o.concat(i||Array.prototype.slice.call(t))};import{r as registerInstance,a as getAssetPath,h,H as Host,F as Fragment,c as createEvent,d as getElement}from"./index-d1aa9293.js";import{c as cartStore,s as stripeStore,l as stripeStoreRetrievePayment,j as stripeStoreReset,m as cartStoreUpdateSelectedShippingOption,n as cartStoreGetShippingTransitInfo}from"./cart-2f83e048.js";import{t as translate}from"./localization-4a424f49.js";import{g as getBorderRadius}from"./getBorderRadius-82fbaf25.js";import{s as submitGtag,i as isCheckoutMobile}from"./submitGtag-fbdb454b.js";import{c as classes}from"./classes-0d95c529.js";import{z as zonosStore}from"./zonosStore-13a7b534.js";import"./isDarkColor-b21326ae.js";var formatCurrency=function(o){var t=o.amount,e=o.currency,s=o.showCurrencyText;return s?"".concat(new Intl.NumberFormat("en-US",{currency:e,style:"currency"}).format(t)," ").concat(e):new Intl.NumberFormat("en-US",{currency:e,style:"currency"}).format(t)};var zonosCartItemsCss=":host{font-family:Inter;display:block}: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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";var ZonosCartItems=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var t;var e=getAssetPath("./assets/empty-item.jpeg");var s=((t=cartStore.exchangeRate)===null||t===void 0?void 0:t.rate)||1;return h(Host,{class:"zonos--cart-items zonos--elements"},h("table",{class:"zonos--cart-table"},h("tbody",null,cartStore.items.map((function(t){var n=t.imageUrl;return h("tr",{class:"zonos--cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},n&&!o.errorImages.includes(n)?h("img",{alt:t.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[n],false)},src:t.imageUrl,style:{"min-width":"40px"},width:40}):h("img",{alt:t.name,src:e,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("zonos-text",{type:"label"},t.name)),h("td",{class:"zonos--column zonos--cart-item-price"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:t.amount*t.quantity*s,currency:cartStore.currency}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartItems.style=zonosCartItemsCss;var InfoIcon='<svg viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>\n</svg>\n';var zonosCartSubtotalCss=":host{font-family:Inter;display:block}: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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-subtotal-price{text-align:right}";var ZonosCartSubtotal=function(){function o(o){registerInstance(this,o)}o.prototype.render=function(){var o=cartStore.total-cartStore.dutiesTaxFees;var t=function(){if(!cartStore.selectedShippingOption){return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Shipping")),h("zonos-text",{class:"zonos--caption",type:"caption"},translate("No shipping method selected")))}return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},cartStore.selectedShippingOption.displayName),cartStore.selectedShippingOptionTransitTime&&h("zonos-text",{class:"zonos--caption",type:"caption"},cartStore.selectedShippingOptionTransitTime," ",translate("business days")))};return h(Host,{class:"zonos--cart-subtotal zonos--elements"},h("table",{class:"zonos--cart-table"},h("tr",{class:"zonos--row zonos--cart-subtotal"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{type:"semiBoldLabel"},translate("Cart subtotal"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:cartStore.subtotal,currency:cartStore.currency})))),h("tr",{class:"zonos--row zonos--cart-shipping"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},t()),h("td",{class:"zonos--column zonos--cart-subtotal-price"},cartStore.shipping?formatCurrency({amount:cartStore.shipping,currency:cartStore.currency}):"-")),cartStore.step==="payment"&&h("tr",{class:"zonos--row zonos--cart-duties"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("div",{class:"zonos--title-with-icon"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Duties, taxes, and fees")),h("zonos-icon",{content:InfoIcon,size:16})),!!cartStore.isSelectedShippingAboveDeminimis&&h("zonos-text",{color:"gray-800",type:"body"},translate("Order is over the de minimis threshold for both duty and tax"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},cartStore.dutiesTaxFees?formatCurrency({amount:cartStore.dutiesTaxFees,currency:cartStore.currency}):"-",cartStore.isSelectedShippingGuarantee&&h("zonos-badge",null,translate("Guaranteed")))),h("tr",{class:"zonos--row zonos--cart-pay-total"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Order total"))),h("td",{class:"zonos--column"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:cartStore.step==="shipping"?o:cartStore.total,currency:cartStore.currency}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartSubtotal.style=zonosCartSubtotalCss;var RemoveIcon$1='<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>';var SuccessIcon='<svg color="var(--amino-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><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="var(--amino-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosCheckoutFinishCss=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--amino-space-24);border-radius:var(--border-radius, 10px);gap:var(--amino-space-24);max-width:360px;width:auto;margin:auto;margin-top:var(--amino-space-24);background-color:var(--amino-gray-50);padding:var(--amino-space-20)}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";var ZonosCheckoutFinish=function(){function o(o){var t=this;registerInstance(this,o);this.closeClick=createEvent(this,"closeClick",7);this.checkPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,t,e,s;return __generator(this,(function(n){switch(n.label){case 0:this.isLoading=true;o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||stripeStore.clientSecret;if(!(o||this.storybookForceStatus))return[3,2];return[4,stripeStoreRetrievePayment({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:t=n.sent(),e=t.error,s=t.messages;this.notificationType=e?"error":"success";this.notificationMessages=s||[];this.notificationTitle=e?translate("Payment failed"):translate("You're all set!");if(e){submitGtag("zonos-checkout-payment-fail")}else{submitGtag("zonos-checkout-success")}n.label=2;case 2:stripeStoreReset();this.isLoading=false;return[2]}}))}))};this.closeClickHandler=function(){t.closeClick.emit()};this.borderRadius="ROUNDED";this.storybookForceStatus=undefined;this.overrideNotification=undefined;this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[]}o.prototype.componentDidLoad=function(){if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;return}void this.checkPaymentStatus()};o.prototype.render=function(){var o=this;return h(Host,{class:"zonos--checkout-finish zonos--elements",style:{"--border-radius":getBorderRadius(this.borderRadius)}},this.isLoading&&h("div",{class:"loading-wrapper"},h("zonos-spinner",null)),!this.isLoading&&h("div",{class:"zonos--group"},this.notificationType==="success"?h("zonos-icon",{color:"blue-800",content:SuccessIcon,size:50}):h("zonos-icon",{color:"red-800",content:RemoveIcon$1,size:50}),h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),h("zonos-text",null,this.notificationMessages.map((function(o){return h(Fragment,null,o,h("br",null))}))),h("zonos-button",{onClick:function(){return o.closeClickHandler()},size:"md",variant:"primary"},translate("Keep shopping"))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCheckoutFinish.style=zonosCheckoutFinishCss;var zonosCheckoutPaymentCss=".sc-zonos-checkout-payment-h{font-family:Inter;display:block}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:0 5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{width:100%}";var ZonosCheckoutPayment=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.paymentError=false;this.submitBtnType=undefined;this.continueLoading=false;this.submitBtnColor=undefined;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-payment-info")}};o.prototype.render=function(){var o=this;var t;if(!stripeStore.stripeElements){return null}this.disabled=!((t=stripeStore.stripePaymentEventData)===null||t===void 0?void 0:t.complete);return h(Host,{class:"zonos--checkout-payment zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Payment method")),this.paymentError&&h("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},translate("We couldn't complete your payment. Please verify the payment details and try again.")),h("zonos-payment",null)),h("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},"Pay"," ",formatCurrency({amount:cartStore.total,currency:cartStore.currency})))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosCheckoutPayment.style=zonosCheckoutPaymentCss;var zonosCollapseCss=":host{font-family:Inter;display:block}: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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var ZonosCollapse=function(){function o(o){registerInstance(this,o);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight}o.prototype.getElementHeight=function(){var o="".concat(this.height,"px");var t="".concat(this.collapseSize,"px");return this.collapsed?t:o};o.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};o.prototype.componentDidRender=function(){var o=this;var t,e,s;(s=(e=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector("iframe"))===null||e===void 0?void 0:e.contentWindow)===null||s===void 0?void 0:s.addEventListener("resize",(function(){o.height=o.el.scrollHeight}))};o.prototype.render=function(){this.height=this.el.scrollHeight;return h(Host,{class:"zonos--elements zonos--collapse",style:{height:this.getElementHeight()}},h("div",null,h("iframe",{class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),h("slot",null)))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosCollapse.style=zonosCollapseCss;var zonosCustomerInfoCss=".sc-zonos-customer-info-h{font-family:Inter;display:block}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:0 5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{width:100%}";var ZonosCustomerInfo=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnType=undefined;this.submitBtnColor=undefined;this.defaultAddress=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-customer-info")}};o.prototype.render=function(){var o=this;var t,e;if(!stripeStore.stripeElements){return null}this.disabled=!((t=stripeStore.stripeAddressEventData)===null||t===void 0?void 0:t.complete)||!((e=stripeStore.stripeLinkEventData)===null||e===void 0?void 0:e.complete);return h(Host,{class:"zonos--customer-info zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Customer information")),h("zonos-link-authentication",{titleText:translate("Contact")}),h("zonos-address",{defaultAddress:this.defaultAddress,titleText:translate("Address"),type:"shipping"})),h("zonos-button",{backgroundColor:this.submitBtnColor,isDisabled:this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Continue to shipping")))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosCustomerInfo.style=zonosCustomerInfoCss;var RemoveIcon='<svg xmlns="http://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 zonosDialogCss=":host{font-family:Inter;display:block}: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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0px;top:0px;background:var(--amino-backdrop-color);z-index:-999;opacity:0;visibility:hidden;position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1002;background:white}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--amino-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:1001;background:var(--amino-gray-0);max-width:90vw;max-height:90vh;min-height:500px;height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--amino-radius-10));outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);border:var(--amino-border);overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-16) var(--amino-space-24)}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--amino-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--amino-hover-color)}:host .zonos--body{padding:var(--amino-space-8) var(--amino-space-24);max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:var(--amino-space-16) var(--amino-space-24)}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:1001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:1002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";var ZonosDialog=function(){function o(o){var t=this;registerInstance(this,o);this.closeDialog=createEvent(this,"closeDialog",7);this.isMobileMode=function(){return t.mobile||window.innerWidth<=768};this.closeButtonHandler=function(){t.closeDialog.emit()};this.clickOutsideDialogHandler=function(o){if(o.target===o.currentTarget&&!t.noClickOutside){t.closeDialog.emit()}};this.open=false;this.headerText="";this.width="460px";this.height=undefined;this.noHeader=false;this.noBodyPadding=false;this.noBorder=false;this.footerRightAction=null;this.borderStyle=undefined;this.noCloseButton=false;this.noClickOutside=false;this.mobile=false;this.isLoading=true;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=this.isMobileMode()};o.prototype.componentDidLoad=function(){this.isMobile=this.isMobileMode()};o.prototype.render=function(){if(this.open){document.body.style.overflow="hidden"}else{document.body.style.overflow="auto"}var o=getBorderRadius(this.borderStyle);return h(Host,{class:classes(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":o,"--height":this.height||"initial","--width":this.width}},h("div",{class:"zonos--backdrop"}),h("div",{"aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},h("div",{class:"zonos--dialog"},this.isLoading&&h("div",{class:"zonos--loading"},h("zonos-spinner",{size:30})),(this.headerText||!this.noCloseButton)&&h("div",{class:"zonos--header"},this.headerText&&h("h3",{class:"zonos--header-text"},this.headerText),!this.noCloseButton&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:this.closeButtonHandler})),h("div",{class:classes(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},h("slot",null)),this.footerRightAction&&h("div",{class:"zonos--footer"},h("div",{class:"zonos--footer-right-action"},this.footerRightAction)))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosDialog.style=zonosDialogCss;var zonosLogoCss=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";var ZonosLogo=function(){function o(o){registerInstance(this,o);this.theme="LIGHT";this.width="auto";this.class=""}o.prototype.render=function(){var o=this.theme==="DARK"?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return h(Host,{class:classes(["zonos--elements zonos--logo",this.class]),style:{"--filter-color":o,"--width":this.width}},h("img",{alt:"Zonos Logo",src:getAssetPath("./assets/ZonosLogo.png")}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosLogo.style=zonosLogoCss;var ChevronDownIcon='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var ChevronUpIcon='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosReviewCss=":host{font-family:Inter;display:block}: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--total-pay{margin:var(--amino-space-16) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8)}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";var ZonosReview=function(){function o(o){registerInstance(this,o);this.mobile=false;this.collapsed=false;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.componentWillLoad=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.render=function(){var o=this;var t=this.isMobile?"boldSubheader":"semiBoldLabel";var e=this.isMobile?"boldSubheader":"secondaryPageHeader";var s=this.isMobile?"gray-1200":"gray-800";var n=cartStore.total-cartStore.dutiesTaxFees;var i=function(){if(!o.isMobile){return null}if(!o.collapsed){return h("zonos-icon",{color:"gray-1200",content:ChevronDownIcon})}return h("zonos-icon",{color:"gray-1200",content:ChevronUpIcon})};return h(Host,{class:classes(["zonos--review zonos--elements",this.isMobile&&"mobile"])},h("div",{class:"zonos--title"},h("zonos-text",{color:s,type:t},translate("Pay")," ",zonosStore.organizationName),i()),h("div",{class:"zonos--total-pay"},h("zonos-text",{type:e},formatCurrency({amount:cartStore.step==="shipping"?n:cartStore.total,currency:cartStore.currency}))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosReview.style=zonosReviewCss;var zonosShippingCss=".sc-zonos-shipping-h{font-family:Inter;display:block}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding-right:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";var ZonosShipping=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.handleRadioSelected=function(o){return __awaiter(t,void 0,void 0,(function(){var t,e,s;var n=this;return __generator(this,(function(i){switch(i.label){case 0:this.selectedShippingMethod=o.detail;if(!this.selectedShippingMethod){return[2]}e=((t=cartStore.shippingData)===null||t===void 0?void 0:t.find((function(o){var t;return o.id===((t=n.selectedShippingMethod)===null||t===void 0?void 0:t.value)})))||null;if(!e){return[2]}return[4,cartStoreUpdateSelectedShippingOption(e)];case 1:s=i.sent();if(!s){return[2]}this.disabled=false;return[2]}}))}))};this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnColor=undefined;this.submitBtnType=undefined;this.selectedShippingMethod=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-shipping-info")}};o.prototype.render=function(){var o=this;var t,e;var s=(t=stripeStore.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country;var n=(e=cartStore.shippingData)===null||e===void 0?void 0:e.flatMap((function(o){var t,e;var s=cartStoreGetShippingTransitInfo(o),n=s.expectedDate,i=s.maxTransit,a=s.minTransit;var r=n?"".concat(translate("Expected delivery")," ").concat(n):"";var c=a&&i?"(".concat(a,"-").concat(i," ").concat(translate("business days"),")"):"";var l=((e=(t=cartStore.landedCostData)===null||t===void 0?void 0:t.find((function(t){var e;return((e=t.landedCost)===null||e===void 0?void 0:e.shipmentRating.id)===o.id})))===null||e===void 0?void 0:e.subtotals.shipping)||0;return{caption:c,label:o.displayName,price:formatCurrency({amount:l,currency:cartStore.currency}),sublabel:r,value:o.id}}));return h(Host,{class:"zonos--shipping zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Shipping information")),h("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},translate("Shipping method")),!(n===null||n===void 0?void 0:n.length)?h("zonos-banner",{bannerTitle:"No shipping methods found - try editing your address or contacting support if the error persists",intent:"error"}):h("zonos-shipping-rich-radio",{items:n||[],onRadioSelected:function(t){return o.handleRadioSelected(t)}}),cartStore.isSelectedShippingAboveDeminimis&&h("zonos-banner",{intent:"warning"},translate("Above de minimis threshold for")," ",s,"."," ",translate("Duties and taxes will be applied to items and shipping."))),h("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Go to payment")))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosShipping.style=zonosShippingCss;export{ZonosCartItems as zonos_cart_items,ZonosCartSubtotal as zonos_cart_subtotal,ZonosCheckoutFinish as zonos_checkout_finish,ZonosCheckoutPayment as zonos_checkout_payment,ZonosCollapse as zonos_collapse,ZonosCustomerInfo as zonos_customer_info,ZonosDialog as zonos_dialog,ZonosLogo as zonos_logo,ZonosReview as zonos_review,ZonosShipping as zonos_shipping};
2
- //# sourceMappingURL=zonos-cart-items_10.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(o,t,e,s){function n(o){return o instanceof e?o:new e((function(t){t(o)}))}return new(e||(e=Promise))((function(e,i){function a(o){try{c(s.next(o))}catch(o){i(o)}}function r(o){try{c(s["throw"](o))}catch(o){i(o)}}function c(o){o.done?e(o.value):n(o.value).then(a,r)}c((s=s.apply(o,t||[])).next())}))};var __generator=this&&this.__generator||function(o,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,n,i,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(o){return function(t){return c([o,t])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(s=1,n&&(i=r[0]&2?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;if(n=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;n=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){e.label=r[1];break}if(r[0]===6&&e.label<i[1]){e.label=i[1];i=r;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(r);break}if(i[2])e.ops.pop();e.trys.pop();continue}r=t.call(o,e)}catch(o){r=[6,o];n=0}finally{s=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,i;s<n;s++){if(i||!(s in t)){if(!i)i=Array.prototype.slice.call(t,0,s);i[s]=t[s]}}return o.concat(i||Array.prototype.slice.call(t))};import{r as registerInstance,a as getAssetPath,h,H as Host,F as Fragment,c as createEvent,d as getElement}from"./index-d1aa9293.js";import{c as cartStore,s as stripeStore,p as stripeStoreRetrievePayment,o as stripeStoreReset,i as cartStoreUpdateSelectedShippingOption,b as cartStoreGetShippingTransitInfo}from"./cart-cf46a264.js";import{t as translate}from"./localization-add1d9e9.js";import{g as getBorderRadius}from"./getBorderRadius-278281bf.js";import{s as submitGtag,i as isCheckoutMobile}from"./submitGtag-aa5fe441.js";import{c as classes}from"./classes-0d95c529.js";import{z as zonosStore}from"./zonosStore-e5291656.js";import"./isDarkColor-8fd3a24e.js";var formatCurrency=function(o){var t=o.amount,e=o.currency,s=o.showCurrencyText;return s?"".concat(new Intl.NumberFormat("en-US",{currency:e,style:"currency"}).format(t)," ").concat(e):new Intl.NumberFormat("en-US",{currency:e,style:"currency"}).format(t)};var zonosCartItemsCss=":host{font-family:Inter;display:block}: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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";var ZonosCartItems=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var t;var e=getAssetPath("./assets/empty-item.jpeg");var s=((t=cartStore.exchangeRate)===null||t===void 0?void 0:t.rate)||1;return h(Host,{class:"zonos--cart-items zonos--elements"},h("table",{class:"zonos--cart-table"},h("tbody",null,cartStore.items.map((function(t){var n=t.imageUrl;return h("tr",{class:"zonos--cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},n&&!o.errorImages.includes(n)?h("img",{alt:t.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[n],false)},src:t.imageUrl,style:{"min-width":"40px"},width:40}):h("img",{alt:t.name,src:e,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("zonos-text",{type:"label"},t.name)),h("td",{class:"zonos--column zonos--cart-item-price"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:t.amount*t.quantity*s,currency:cartStore.currency}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartItems.style=zonosCartItemsCss;var InfoIcon='<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>\n</svg>\n';var zonosCartSubtotalCss=":host{font-family:Inter;display:block}: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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-subtotal-price{text-align:right}";var ZonosCartSubtotal=function(){function o(o){registerInstance(this,o)}o.prototype.render=function(){var o=cartStore.total-cartStore.dutiesTaxFees;var t=function(){if(!cartStore.selectedShippingOption){return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Shipping")),h("zonos-text",{class:"zonos--caption",type:"caption"},translate("No shipping method selected")))}return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},cartStore.selectedShippingOption.displayName),cartStore.selectedShippingOptionTransitTime&&h("zonos-text",{class:"zonos--caption",type:"caption"},cartStore.selectedShippingOptionTransitTime," ",translate("business days")))};return h(Host,{class:"zonos--cart-subtotal zonos--elements"},h("table",{class:"zonos--cart-table"},h("tr",{class:"zonos--row zonos--cart-subtotal"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{type:"semiBoldLabel"},translate("Cart subtotal"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:cartStore.subtotal,currency:cartStore.currency})))),h("tr",{class:"zonos--row zonos--cart-shipping"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},t()),h("td",{class:"zonos--column zonos--cart-subtotal-price"},cartStore.shipping?formatCurrency({amount:cartStore.shipping,currency:cartStore.currency}):"-")),cartStore.step==="payment"&&h("tr",{class:"zonos--row zonos--cart-duties"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("div",{class:"zonos--title-with-icon"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Duties, taxes, and fees")),h("zonos-icon",{content:InfoIcon,size:16})),!!cartStore.isSelectedShippingAboveDeminimis&&h("zonos-text",{color:"gray-800",type:"body"},translate("Order is over the de minimis threshold for both duty and tax"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},cartStore.dutiesTaxFees?formatCurrency({amount:cartStore.dutiesTaxFees,currency:cartStore.currency}):"-",cartStore.isSelectedShippingGuarantee&&h("zonos-badge",null,translate("Guaranteed")))),h("tr",{class:"zonos--row zonos--cart-pay-total"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Order total"))),h("td",{class:"zonos--column"},h("zonos-text",{type:"semiBoldLabel"},formatCurrency({amount:cartStore.step==="shipping"?o:cartStore.total,currency:cartStore.currency}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartSubtotal.style=zonosCartSubtotalCss;var RemoveIcon$1='<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>';var SuccessIcon='<svg color="var(--amino-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><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="var(--amino-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosCheckoutFinishCss=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--amino-space-24);border-radius:var(--border-radius, 10px);gap:var(--amino-space-24);max-width:360px;width:auto;margin:auto;margin-top:var(--amino-space-24);background-color:var(--amino-gray-50);padding:var(--amino-space-20)}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";var ZonosCheckoutFinish=function(){function o(o){var t=this;registerInstance(this,o);this.closeClick=createEvent(this,"closeClick",7);this.checkPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,t,e,s,n;return __generator(this,(function(i){switch(i.label){case 0:this.isLoading=true;o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||stripeStore.clientSecret;if(!(o||this.storybookForceStatus))return[3,2];return[4,stripeStoreRetrievePayment({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:t=i.sent(),e=t.error,s=t.messages;this.notificationType=e?"error":"success";this.notificationMessages=s||[];this.notificationTitle=e?translate("Payment failed"):translate("You're all set!");if(e){submitGtag("zonos-checkout-payment-fail")}else{submitGtag("zonos-checkout-success");n=new CustomEvent("zonos-checkout-success",{detail:{message:"Zonos Checkout successfully processed order"}});document.dispatchEvent(n)}i.label=2;case 2:stripeStoreReset();this.isLoading=false;return[2]}}))}))};this.closeClickHandler=function(){t.closeClick.emit()};this.borderRadius="ROUNDED";this.storybookForceStatus=undefined;this.overrideNotification=undefined;this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[]}o.prototype.componentDidLoad=function(){if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;this.isLoading=false;return}void this.checkPaymentStatus()};o.prototype.render=function(){var o=this;return h(Host,{class:"zonos--checkout-finish zonos--elements",style:{"--border-radius":getBorderRadius(this.borderRadius)}},this.isLoading&&h("div",{class:"loading-wrapper"},h("zonos-spinner",null)),!this.isLoading&&h("div",{class:"zonos--group"},this.notificationType==="success"?h("zonos-icon",{color:"blue-800",content:SuccessIcon,size:50}):h("zonos-icon",{color:"red-800",content:RemoveIcon$1,size:50}),h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),h("zonos-text",null,this.notificationMessages.map((function(o){return h(Fragment,null,o,h("br",null))}))),h("zonos-button",{onClick:function(){return o.closeClickHandler()},size:"md",variant:"primary"},translate("Keep shopping"))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCheckoutFinish.style=zonosCheckoutFinishCss;var zonosCheckoutPaymentCss=".sc-zonos-checkout-payment-h{font-family:Inter;display:block}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:0 5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{width:100%}";var ZonosCheckoutPayment=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.paymentError=false;this.submitBtnType=undefined;this.continueLoading=false;this.submitBtnColor=undefined;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-payment-info")}};o.prototype.render=function(){var o=this;var t;if(!stripeStore.stripeElements){return null}this.disabled=!((t=stripeStore.stripePaymentEventData)===null||t===void 0?void 0:t.complete);return h(Host,{class:"zonos--checkout-payment zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Payment method")),this.paymentError&&h("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},translate("We couldn't complete your payment. Please verify the payment details and try again.")),h("zonos-payment",null)),h("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},"Pay"," ",formatCurrency({amount:cartStore.total,currency:cartStore.currency})))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosCheckoutPayment.style=zonosCheckoutPaymentCss;var zonosCollapseCss=":host{font-family:Inter;display:block}: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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var ZonosCollapse=function(){function o(o){registerInstance(this,o);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight}o.prototype.getElementHeight=function(){var o="".concat(this.height,"px");var t="".concat(this.collapseSize,"px");return this.collapsed?t:o};o.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};o.prototype.componentDidRender=function(){var o=this;var t,e,s;(s=(e=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector("iframe"))===null||e===void 0?void 0:e.contentWindow)===null||s===void 0?void 0:s.addEventListener("resize",(function(){o.height=o.el.scrollHeight}))};o.prototype.render=function(){this.height=this.el.scrollHeight;return h(Host,{class:"zonos--elements zonos--collapse",style:{height:this.getElementHeight()}},h("div",null,h("iframe",{class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),h("slot",null)))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosCollapse.style=zonosCollapseCss;var zonosCustomerInfoCss=".sc-zonos-customer-info-h{font-family:Inter;display:block}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{width:100%}";var ZonosCustomerInfo=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnType=undefined;this.submitBtnColor=undefined;this.defaultAddress=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-customer-info")}};o.prototype.render=function(){var o=this;var t,e;if(!stripeStore.stripeElements){return null}this.disabled=!((t=stripeStore.stripeAddressEventData)===null||t===void 0?void 0:t.complete)||!((e=stripeStore.stripeLinkEventData)===null||e===void 0?void 0:e.complete);return h(Host,{class:"zonos--customer-info zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Customer information")),h("zonos-link-authentication",{titleText:translate("Contact")}),h("zonos-address",{defaultAddress:this.defaultAddress,titleText:translate("Address"),type:"shipping"})),h("zonos-button",{backgroundColor:this.submitBtnColor,isDisabled:this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Continue to shipping")))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosCustomerInfo.style=zonosCustomerInfoCss;var RemoveIcon='<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 zonosDialogCss=":host{font-family:Inter;display:block}: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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0px;top:0px;background:var(--amino-backdrop-color);z-index:-999;opacity:0;visibility:hidden;position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1002;background:white}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--amino-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:1001;background:var(--amino-gray-0);max-width:90vw;max-height:90vh;min-height:500px;height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--amino-radius-10));outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);border:var(--amino-border);overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-16) var(--amino-space-24)}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--amino-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--amino-hover-color)}:host .zonos--body{padding:var(--amino-space-8) var(--amino-space-24);max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:var(--amino-space-16) var(--amino-space-24)}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:1001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:1002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";var ZonosDialog=function(){function o(o){var t=this;registerInstance(this,o);this.closeDialog=createEvent(this,"closeDialog",7);this.isMobileMode=function(){return t.mobile||window.innerWidth<=768};this.closeButtonHandler=function(){t.closeDialog.emit()};this.clickOutsideDialogHandler=function(o){if(o.target===o.currentTarget&&!t.noClickOutside){t.closeDialog.emit()}};this.open=false;this.headerText="";this.width="460px";this.height=undefined;this.noHeader=false;this.noBodyPadding=false;this.noBorder=false;this.footerRightAction=null;this.borderStyle=undefined;this.noCloseButton=false;this.noClickOutside=false;this.mobile=false;this.isLoading=true;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=this.isMobileMode()};o.prototype.componentDidLoad=function(){this.isMobile=this.isMobileMode()};o.prototype.render=function(){if(this.open){document.body.style.overflow="hidden"}else{document.body.style.overflow="auto"}var o=getBorderRadius(this.borderStyle);return h(Host,{class:classes(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":o,"--height":this.height||"initial","--width":this.width}},h("div",{class:"zonos--backdrop"}),h("div",{"aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},h("div",{class:"zonos--dialog"},this.isLoading&&h("div",{class:"zonos--loading"},h("zonos-spinner",{size:30})),(this.headerText||!this.noCloseButton)&&h("div",{class:"zonos--header"},this.headerText&&h("h3",{class:"zonos--header-text"},this.headerText),!this.noCloseButton&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:this.closeButtonHandler})),h("div",{class:classes(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},h("slot",null)),this.footerRightAction&&h("div",{class:"zonos--footer"},h("div",{class:"zonos--footer-right-action"},this.footerRightAction)))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosDialog.style=zonosDialogCss;var zonosLogoCss=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";var ZonosLogo=function(){function o(o){registerInstance(this,o);this.theme="LIGHT";this.width="auto";this.class=""}o.prototype.render=function(){var o=this.theme==="DARK"?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return h(Host,{class:classes(["zonos--elements zonos--logo",this.class]),style:{"--filter-color":o,"--width":this.width}},h("img",{alt:"Zonos Logo",src:getAssetPath("./assets/ZonosLogo.png")}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosLogo.style=zonosLogoCss;var ChevronDownIcon='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var ChevronUpIcon='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosReviewCss=":host{font-family:Inter;display:block}: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--total-pay{margin:var(--amino-space-16) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8)}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";var ZonosReview=function(){function o(o){registerInstance(this,o);this.mobile=false;this.collapsed=false;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.componentWillLoad=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.render=function(){var o=this;var t=this.isMobile?"boldSubheader":"semiBoldLabel";var e=this.isMobile?"boldSubheader":"secondaryPageHeader";var s=this.isMobile?"gray-1200":"gray-800";var n=cartStore.total-cartStore.dutiesTaxFees;var i=function(){if(!o.isMobile){return null}if(!o.collapsed){return h("zonos-icon",{color:"gray-1200",content:ChevronDownIcon})}return h("zonos-icon",{color:"gray-1200",content:ChevronUpIcon})};return h(Host,{class:classes(["zonos--review zonos--elements",this.isMobile&&"mobile"])},h("div",{class:"zonos--title"},h("zonos-text",{color:s,type:t},translate("Pay")," ",zonosStore.organizationName),i()),h("div",{class:"zonos--total-pay"},h("zonos-text",{type:e},formatCurrency({amount:cartStore.step==="shipping"?n:cartStore.total,currency:cartStore.currency}))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosReview.style=zonosReviewCss;var zonosShippingCss=".sc-zonos-shipping-h{font-family:Inter;display:block}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding-right:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";var ZonosShipping=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.handleRadioSelected=function(o){return __awaiter(t,void 0,void 0,(function(){var t,e,s;var n=this;return __generator(this,(function(i){switch(i.label){case 0:this.selectedShippingMethod=o.detail;if(!this.selectedShippingMethod){return[2]}e=((t=cartStore.shippingData)===null||t===void 0?void 0:t.find((function(o){var t;return o.id===((t=n.selectedShippingMethod)===null||t===void 0?void 0:t.value)})))||null;if(!e){return[2]}return[4,cartStoreUpdateSelectedShippingOption(e)];case 1:s=i.sent();if(!s){return[2]}this.disabled=false;return[2]}}))}))};this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnColor=undefined;this.submitBtnType=undefined;this.selectedShippingMethod=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){submitGtag("zonos-checkout-shipping-info")}};o.prototype.render=function(){var o=this;var t,e;var s=(t=stripeStore.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country;var n=(e=cartStore.shippingData)===null||e===void 0?void 0:e.flatMap((function(o){var t,e;var s=cartStoreGetShippingTransitInfo(o),n=s.expectedDate,i=s.maxTransit,a=s.minTransit;var r=n?"".concat(translate("Expected delivery")," ").concat(n):"";var c=a&&i?"(".concat(a,"-").concat(i," ").concat(translate("business days"),")"):"";var l=((e=(t=cartStore.landedCostData)===null||t===void 0?void 0:t.find((function(t){var e;return((e=t.landedCost)===null||e===void 0?void 0:e.shipmentRating.id)===o.id})))===null||e===void 0?void 0:e.subtotals.shipping)||0;return{caption:c,label:o.displayName,price:formatCurrency({amount:l,currency:cartStore.currency}),sublabel:r,value:o.id}}));return h(Host,{class:"zonos--shipping zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Shipping information")),h("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},translate("Shipping method")),!(n===null||n===void 0?void 0:n.length)?h("zonos-banner",{bannerTitle:"No shipping methods found - try editing your address or contacting support if the error persists",intent:"error"}):h("zonos-shipping-rich-radio",{items:n||[],onRadioSelected:function(t){return o.handleRadioSelected(t)}}),cartStore.isSelectedShippingAboveDeminimis&&h("zonos-banner",{intent:"warning"},translate("Above de minimis threshold for")," ",s,"."," ",translate("Duties and taxes will be applied to items and shipping."))),h("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Go to payment")))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}();ZonosShipping.style=zonosShippingCss;export{ZonosCartItems as zonos_cart_items,ZonosCartSubtotal as zonos_cart_subtotal,ZonosCheckoutFinish as zonos_checkout_finish,ZonosCheckoutPayment as zonos_checkout_payment,ZonosCollapse as zonos_collapse,ZonosCustomerInfo as zonos_customer_info,ZonosDialog as zonos_dialog,ZonosLogo as zonos_logo,ZonosReview as zonos_review,ZonosShipping as zonos_shipping};
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,r){function i(o){try{a(n.next(o))}catch(o){r(o)}}function c(o){try{a(n["throw"](o))}catch(o){r(o)}}function a(o){o.done?t(o.value):s(o.value).then(i,c)}a((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(o){return function(e){return a([o,e])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(t=0)),t)try{if(n=1,s&&(r=c[0]&2?s["return"]:c[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,c[1])).done)return r;if(s=0,r)c=[c[0]&2,r.value];switch(c[0]){case 0:case 1:r=c;break;case 4:t.label++;return{value:c[1],done:false};case 5:t.label++;s=c[1];c=[0];continue;case 7:c=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1];r=c;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(c);break}if(r[2])t.ops.pop();t.trys.pop();continue}c=e.call(o,t)}catch(o){c=[6,o];s=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,F as Fragment,H as Host}from"./index-d1aa9293.js";import{i as initStripeElements,c as cartStore,a as cartStoreUpdateItems,b as cartStoreReset,s as stripeStore,d as stripeStoreInitCheckoutSession,e as cartStoreUpdateToErrorState,f as stripeStorePrefetchLandedCost,g as cartStoreNextStep,h as stripeStoreConfirmPayment,j as stripeStoreReset,k as cartStorePreviousStep}from"./cart-2f83e048.js";import{l as log,a as localizationStore,t as translate}from"./localization-4a424f49.js";import{z as zonosStore,m as mergeConfig}from"./zonosStore-13a7b534.js";import{s as submitGtag,i as isCheckoutMobile}from"./submitGtag-fbdb454b.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-82fbaf25.js";import{i as isDarkColor}from"./isDarkColor-b21326ae.js";var LeftArrow='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var MessageIcon='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://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 RemoveIcon='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosCheckoutCss=".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-32);top:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";var ZonosCheckout=function(){function o(o){var e=this;registerInstance(this,o);this.applyStripeTheme=function(){return __awaiter(e,void 0,void 0,(function(){var o,e,t,n;return __generator(this,(function(s){switch(s.label){case 0:n=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||zonosStore.appearance.theme;return[4,initStripeElements({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideTheme:this.isMobile?n:undefined})];case 1:s.sent();return[2]}}))}))};this.getCurrentLocalePageEnum=function(){switch(cartStore.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.buttonAnchorElements=null;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=false;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void cartStoreUpdateItems(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){submitGtag("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&cartStore.step==="finish"){cartStoreReset()}cartStore.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:if(!zonosStore.checkoutSettings.buildCartDetail)return[3,3];log("build cart detail");return[4,zonosStore.checkoutSettings.buildCartDetail()];case 1:o=t.sent();return[4,cartStoreUpdateItems(o)];case 2:t.sent();t.label=3;case 3:if(!!stripeStore.clientSecret)return[3,5];return[4,stripeStoreInitCheckoutSession()];case 4:e=t.sent();if(!e){return[2,false]}t.label=5;case 5:return[4,this.applyStripeTheme()];case 6:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;if(!this.buttonAnchorElements){return}this.buttonAnchorElements.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(!t){e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o;return __generator(this,(function(t){switch(t.label){case 0:if(!localizationStore.localizationLoaded){return[2]}if(!localizationStore.isShippableCountry){log("not shippable country");return[2]}e.preventDefault();e.stopPropagation();log("zonos checkout button clicked");this.open=true;return[4,this.buildCartAndInit()];case 1:o=t.sent();if(!o){cartStoreUpdateToErrorState({messages:[translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:translate("Error creating Checkout")});return[2]}submitGtag("zonos-checkout-start");return[2]}}))}))}));e.setAttribute("data-zonos-checkout-attached","true")}}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){stripeStore.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;o=setInterval((function(){stripeStore.stripe=window.Zonos.stripe;e.stripe=window.Zonos.stripe;if(!localizationStore.localizationLoaded){return}if(!localizationStore.isShippableCountry&&!e.preview){log("not shippable country");clearInterval(o);return}if(!e.stripe){log("waiting for stripe to be loaded");return}if(e.storybookPaymentStatusOverride){clearInterval(o);return}log("init checkout");if(e.preview||e.forceDialogOpen){void e.buildCartAndInit()}else{e.attachCheckout()}clearInterval(o)}),100);setTimeout((function(){clearInterval(o)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){cartStore.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,stripeStorePrefetchLandedCost()];case 1:t.sent();o=setInterval((function(){if(cartStore.landedCostData||!stripeStore.isFetchingLandedCost){if(cartStore.landedCostData){cartStoreNextStep()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){cartStoreNextStep();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,stripeStoreConfirmPayment()];case 2:e.sent();cartStoreNextStep();return[3,4];case 3:o=e.sent();console.error(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:stripeStoreReset();if(!this.preview)return[3,2];cartStore.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:cartStoreReset();o=window.location.href;e=o.split("?")[0];window.history.replaceState({},document.title,e);this.open=false;return[2]}}))}))};o.prototype.handleBackClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(cartStore.step==="customer-info"))return[3,2];return[4,this.closeDialogHandler()];case 1:o.sent();return[2];case 2:cartStorePreviousStep();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=isCheckoutMobile(this.mobile);log("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){stripeStoreReset();cartStoreReset()};o.prototype.render=function(){var o=this;var e;var t=cartStore.step!=="finish"&&!stripeStore.stripeElements||stripeStore.isFetchingSession;var n=mergeConfig(zonosStore.appearance,this.appearanceSettingsOverride),s=n.colorPrimary,r=n.colorSecondary,i=n.logoUrl,c=n.style;var a=zonosStore.appearance.zonosAttribution==="ENABLED";var u=zonosStore.appearance.theme;var l=s&&isDarkColor(s)?"DARK":"LIGHT";var d=this.isMobile?u:l;var p=!this.isMobile?r:undefined;var f=localizationStore.customMessages;var m=((e=f.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message)||"Know about duties and taxes before you buy. Shop with confidence!";var z=this.getCurrentLocalePageEnum();var g=f.filter((function(o){return o.pageName===z}));var k=function(){return h("div",{class:"zonos--logo"},i&&h("img",{alt:"".concat(zonosStore.organizationName," logo"),src:i,width:100}))};var v=function(){return h("zonos-v-stack",null,k(),g.map((function(o){return h("zonos-custom-message",{icon:MessageIcon,message:o.message})})),h("div",null,h("zonos-button",{class:"zonos--back-button",icon:h("zonos-icon",{content:LeftArrow}),noBackground:true,noPaddingLeft:true,noPaddingRight:true,onClick:function(){return o.handleBackClick()},theme:d},translate("Back"))))};var b=function(){return a&&h("div",{class:"zonos--footer","data-theme":u},h("zonos-text",{type:"hintText"},translate("Powered by")),h("zonos-logo",{theme:u,width:"100px"}))};var y=function(){var e;var t=o.isMobile?"primary":undefined;var n=(e=o.zonosReviewRef)===null||e===void 0?void 0:e.scrollHeight;return h("div",{class:"zonos--content",style:{"--border-radius":getBorderRadius(c)}},cartStore.step!=="finish"&&cartStore.step!=="error"&&h(Fragment,null,h("div",{class:"zonos--left","data-theme":d,style:{"--primary-color":!o.isMobile?s:""}},!o.isMobile&&v(),cartStore.step==="customer-info"&&h("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:p,submitBtnType:t}),cartStore.step==="shipping"&&h("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:p,submitBtnType:t}),cartStore.step==="payment"&&h("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:p,submitBtnType:t})),h("div",{class:"zonos--right","data-theme":u},o.isMobile&&v(),!o.isMobile&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),h("div",{class:"flex--wrapper"},h("div",{class:"zonos--wrapper"},h("zonos-collapse",{collapseSize:n,collapsed:o.collapseReviewMobile},h("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){o.collapseReviewMobile=!o.collapseReviewMobile},ref:function(e){return o.zonosReviewRef=e}}),h("zonos-cart-items",null))),h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",null),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:m}))),!o.isMobile&&b()),o.isMobile&&b()),(cartStore.step==="finish"||cartStore.step==="error")&&h("div",{class:"zonos--done","data-theme":u},h("div",{class:"zonos--header"},k(),h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:u})),h("zonos-checkout-finish",{borderRadius:c,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:cartStore.step==="error"&&!!cartStore.error?Object.assign(Object.assign({},cartStore.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})))};return h(Host,{class:classes(["zonos--checkout zonos--elements",a&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?y():h("zonos-dialog",{borderStyle:c,"data-theme":u,height:"980px",isLoading:t,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},y()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}();ZonosCheckout.style=zonosCheckoutCss;export{ZonosCheckout as zonos_checkout};
2
- //# sourceMappingURL=zonos-checkout.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,r){function i(o){try{a(n.next(o))}catch(o){r(o)}}function c(o){try{a(n["throw"](o))}catch(o){r(o)}}function a(o){o.done?t(o.value):s(o.value).then(i,c)}a((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(o){return function(e){return a([o,e])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(t=0)),t)try{if(n=1,s&&(r=c[0]&2?s["return"]:c[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,c[1])).done)return r;if(s=0,r)c=[c[0]&2,r.value];switch(c[0]){case 0:case 1:r=c;break;case 4:t.label++;return{value:c[1],done:false};case 5:t.label++;s=c[1];c=[0];continue;case 7:c=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1];r=c;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(c);break}if(r[2])t.ops.pop();t.trys.pop();continue}c=e.call(o,t)}catch(o){c=[6,o];s=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,F as Fragment,H as Host}from"./index-d1aa9293.js";import{k as initStripeElements,c as cartStore,h as cartStoreUpdateItems,g as cartStoreReset,s as stripeStore,l as stripeStoreInitCheckoutSession,j as cartStoreUpdateToErrorState,m as stripeStorePrefetchLandedCost,d as cartStoreNextStep,n as stripeStoreConfirmPayment,o as stripeStoreReset,e as cartStorePreviousStep}from"./cart-cf46a264.js";import{a as localizationStore,l as log,t as translate}from"./localization-add1d9e9.js";import{z as zonosStore,m as mergeConfig}from"./zonosStore-e5291656.js";import{s as submitGtag,i as isCheckoutMobile}from"./submitGtag-aa5fe441.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-278281bf.js";import{i as isDarkColor}from"./isDarkColor-8fd3a24e.js";var LeftArrow='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var MessageIcon='<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 RemoveIcon='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>';var zonosCheckoutCss=".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-32);top:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";var ZonosCheckout=function(){function o(o){var e=this;registerInstance(this,o);this.applyStripeTheme=function(){return __awaiter(e,void 0,void 0,(function(){var o,e,t,n;return __generator(this,(function(s){switch(s.label){case 0:n=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||zonosStore.appearance.theme;return[4,initStripeElements({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideTheme:this.isMobile?n:undefined})];case 1:s.sent();return[2]}}))}))};this.isShippableCountry=function(o){if(o===void 0){o=true}if(!localizationStore.localizationLoaded){return false}if(!localizationStore.isShippableCountry){if(o){log("not shippable country")}return false}return true};this.getCurrentLocalePageEnum=function(){switch(cartStore.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=false;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void cartStoreUpdateItems(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){submitGtag("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&cartStore.step==="finish"){cartStoreReset()}cartStore.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:if(!zonosStore.checkoutSettings.buildCartDetail)return[3,3];log("build cart detail");return[4,zonosStore.checkoutSettings.buildCartDetail()];case 1:o=t.sent();return[4,cartStoreUpdateItems(o)];case 2:t.sent();t.label=3;case 3:if(!!stripeStore.clientSecret)return[3,5];return[4,stripeStoreInitCheckoutSession()];case 4:e=t.sent();log("stripeStoreInitCheckoutSession: ".concat(e));if(!e){return[2,false]}t.label=5;case 5:return[4,this.applyStripeTheme()];case 6:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;var e=zonosStore.checkoutSettings.placeOrderButtonSelector;if(!e){return}var t=document.querySelectorAll(e);t.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(t){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.isShippableCountry()){return[2]}e.preventDefault();e.stopPropagation();log("zonos checkout button clicked");this.open=true;n.label=1;case 1:n.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=n.sent();if(!o){throw new Error("Error building cart")}submitGtag("zonos-checkout-start");return[3,4];case 3:t=n.sent();cartStoreUpdateToErrorState({messages:[translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:translate("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.setAttribute("data-zonos-checkout-attached","true")}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var t=this;return __generator(this,(function(n){stripeStore.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var n=t.isShippableCountry(false);var s=document.querySelectorAll(e);if(!n){s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.getAttribute("data-zonos-checkout-original-display");e.style.display=t||"initial"}));return}s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.style.display;e.setAttribute("data-zonos-checkout-original-display",t);e.style.display="none"}))}),100);e=setInterval((function(){stripeStore.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){log("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}log("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else{t.attachCheckout();setInterval((function(){t.attachCheckout()}),50)}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){cartStore.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,stripeStorePrefetchLandedCost()];case 1:t.sent();o=setInterval((function(){if(cartStore.landedCostData||!stripeStore.isFetchingLandedCost){if(cartStore.landedCostData){cartStoreNextStep()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){cartStoreNextStep();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,stripeStoreConfirmPayment()];case 2:e.sent();cartStoreNextStep();return[3,4];case 3:o=e.sent();console.error(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:stripeStoreReset();if(!this.preview)return[3,2];cartStore.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:cartStoreReset();o=window.location.href;e=o.split("?")[0];window.history.replaceState({},document.title,e);this.open=false;return[2]}}))}))};o.prototype.handleBackClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(cartStore.step==="customer-info"))return[3,2];return[4,this.closeDialogHandler()];case 1:o.sent();return[2];case 2:cartStorePreviousStep();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=isCheckoutMobile(this.mobile);log("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){stripeStoreReset();cartStoreReset()};o.prototype.render=function(){var o=this;var e;var t=cartStore.step!=="finish"&&cartStore.step!=="error"&&!stripeStore.stripeElements||stripeStore.isFetchingSession;var n=mergeConfig(zonosStore.appearance,this.appearanceSettingsOverride),s=n.colorPrimary,r=n.colorSecondary,i=n.logoUrl,c=n.style;var a=zonosStore.appearance.zonosAttribution==="ENABLED";var u=zonosStore.appearance.theme;var l=s&&isDarkColor(s)?"DARK":"LIGHT";var d=this.isMobile?u:l;var p=!this.isMobile?r:undefined;var f=localizationStore.customMessages;var m=((e=f.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message)||"Know about duties and taxes before you buy. Shop with confidence!";var z=this.getCurrentLocalePageEnum();var g=f.filter((function(o){return o.pageName===z}));var k=function(){return h("div",{class:"zonos--logo"},i&&h("img",{alt:"".concat(zonosStore.organizationName," logo"),src:i,width:100}))};var v=function(){return h("zonos-v-stack",null,k(),g.map((function(o){return h("zonos-custom-message",{icon:MessageIcon,message:o.message})})),h("div",null,h("zonos-button",{class:"zonos--back-button",icon:h("zonos-icon",{content:LeftArrow}),noBackground:true,noPaddingLeft:true,noPaddingRight:true,onClick:function(){return o.handleBackClick()},theme:d},translate("Back"))))};var b=function(){return a&&h("div",{class:"zonos--footer","data-theme":u},h("zonos-text",{type:"hintText"},translate("Powered by")),h("zonos-logo",{theme:u,width:"100px"}))};var y=function(){var e;var t=o.isMobile?"primary":undefined;var n=(e=o.zonosReviewRef)===null||e===void 0?void 0:e.scrollHeight;return h("div",{class:"zonos--content",style:{"--border-radius":getBorderRadius(c)}},cartStore.step!=="finish"&&cartStore.step!=="error"&&h(Fragment,null,h("div",{class:"zonos--left","data-theme":d,style:{"--primary-color":!o.isMobile?s:""}},!o.isMobile&&v(),cartStore.step==="customer-info"&&h("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:p,submitBtnType:t}),cartStore.step==="shipping"&&h("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:p,submitBtnType:t}),cartStore.step==="payment"&&h("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:p,submitBtnType:t})),h("div",{class:"zonos--right","data-theme":u},o.isMobile&&v(),!o.isMobile&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),h("div",{class:"flex--wrapper"},h("div",{class:"zonos--wrapper"},h("zonos-collapse",{collapseSize:n,collapsed:o.collapseReviewMobile},h("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){o.collapseReviewMobile=!o.collapseReviewMobile},ref:function(e){return o.zonosReviewRef=e}}),h("zonos-cart-items",null))),h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",null),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:m}))),!o.isMobile&&b()),o.isMobile&&b()),(cartStore.step==="finish"||cartStore.step==="error")&&h("div",{class:"zonos--done","data-theme":u},h("div",{class:"zonos--header"},k(),h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{content:RemoveIcon}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:u})),h("zonos-checkout-finish",{borderRadius:c,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:cartStore.step==="error"&&!!cartStore.error?Object.assign(Object.assign({},cartStore.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})))};return h(Host,{class:classes(["zonos--checkout zonos--elements",a&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?y():h("zonos-dialog",{borderStyle:c,"data-theme":u,height:"980px",isLoading:t,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},y()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}();ZonosCheckout.style=zonosCheckoutCss;export{ZonosCheckout as zonos_checkout};
@@ -1,2 +1 @@
1
- import{r as registerInstance,h}from"./index-d1aa9293.js";function format(t,o,s){return(t||"")+(o?" ".concat(o):"")+(s?" ".concat(s):"")}var zonosComponentCss=":host{font-family:Inter;display:block}: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}div{color:red;font-size:large}";var ZonosComponent=function(){function t(t){registerInstance(this,t);this.first="";this.middle="";this.last=""}t.prototype.getText=function(){return format(this.first,this.middle,this.last)};t.prototype.render=function(){return h("div",null,"Hello, World! I'm ",this.getText())};return t}();ZonosComponent.style=zonosComponentCss;export{ZonosComponent as zonos_component};
2
- //# sourceMappingURL=zonos-component.entry.js.map
1
+ import{r as registerInstance,h}from"./index-d1aa9293.js";function format(t,o,s){return(t||"")+(o?" ".concat(o):"")+(s?" ".concat(s):"")}var zonosComponentCss=":host{font-family:Inter;display:block}: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}div{color:red;font-size:large}";var ZonosComponent=function(){function t(t){registerInstance(this,t);this.first="";this.middle="";this.last=""}t.prototype.getText=function(){return format(this.first,this.middle,this.last)};t.prototype.render=function(){return h("div",null,"Hello, World! I'm ",this.getText())};return t}();ZonosComponent.style=zonosComponentCss;export{ZonosComponent as zonos_component};
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,o,e,n){function r(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n["throw"](t))}catch(t){i(t)}}function c(t){t.done?e(t.value):r(t.value).then(s,a)}c((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(o){return c([t,o])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(n=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;r=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){e.label=a[1];break}if(a[0]===6&&e.label<i[1]){e.label=i[1];i=a;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(a);break}if(i[2])e.ops.pop();e.trys.pop();continue}a=o.call(t,e)}catch(t){a=[6,t];r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-d1aa9293.js";import{s as stripeStore}from"./cart-2f83e048.js";import{h as handleFetch,b as logError,i as isValidSelector,l as log,c as initLocalizationStore,d as localizationStoreUpdateSelectedCountryCode}from"./localization-4a424f49.js";import{z as zonosStore,d as zonosStoreInitSetting}from"./zonosStore-13a7b534.js";import"./isDarkColor-b21326ae.js";import"./getBorderRadius-82fbaf25.js";var getZonosSetting=function(){return __awaiter(void 0,void 0,void 0,(function(){var t,o,e,n;return __generator(this,(function(r){switch(r.label){case 0:t="".concat("https://route.js.zonos.com","/api/zonos-setting");return[4,handleFetch(t)];case 1:o=r.sent(),e=o.errors,n=o.json;if(e.length){logError("Error occurs when getting zonos settings. If this is not an unauthorized error, it will use user setting or default setting");return[2,{errors:e,json:null}]}return[2,{errors:[],json:n}]}}))}))};var injectCheckoutElement=function(t){var o=document.querySelector("zonos-checkout");if(!o){var e=document.createElement("zonos-checkout");e.buttonAnchorElements=t;document.body.appendChild(e)}};var initCheckout=function(t){return __awaiter(void 0,void 0,void 0,(function(){var o;return __generator(this,(function(e){if(!t.placeOrderButtonSelector){return[2]}if(!isValidSelector(t.placeOrderButtonSelector)){logError('Selector checkoutButtonAnchor "'.concat(t.placeOrderButtonSelector,'" is not a valid selector'));return[2]}o=document.querySelectorAll(t.placeOrderButtonSelector);injectCheckoutElement(o);return[2]}))}))};var injectHelloComponent=function(t){var o=document.querySelector("zonos-hello");if(!o&&t){var e=document.createElement("zonos-hello");t.appendChild(e)}};var initHello=function(t){return __awaiter(void 0,void 0,void 0,(function(){var o,e;return __generator(this,(function(n){o=t.anchorElementSelector;if(!o||!isValidSelector(o)){logError('Selector anchorElementSelector "'.concat(t.anchorElementSelector,'" is not a valid selector.'));return[2]}e=document.querySelector(o);log("Hello init complete");injectHelloComponent(e);return[2]}))}))};var zonosControllerCss=":host{font-family:Inter;display:block}: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{visibility:hidden;opacity:0;height:0}";var ZonosController=function(){function t(t){registerInstance(this,t);this.stripeInitEvent=createEvent(this,"stripeInitEvent",7);this.config=undefined;this.zonosApiKey=undefined}t.prototype.initCheckoutElement=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(!t){log("Stripe is not loaded yet - cannot init checkout element","warn");return[2]}stripeStore.stripe=t;void initCheckout(zonosStore.checkoutSettings);log("init checkout element");return[2]}))}))};t.prototype.initZonosNotification=function(){var t=document.querySelector("zonos-notification");if(t){return}var o=document.createElement("zonos-notification");document.body.appendChild(o)};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){zonosStore.zonosApiKey=this.zonosApiKey;(function(){return __awaiter(t,void 0,void 0,(function(){var t,o,e,n,r,i;return __generator(this,(function(s){switch(s.label){case 0:return[4,getZonosSetting()];case 1:e=s.sent(),n=e.errors,r=e.json;if(((t=n[0])===null||t===void 0?void 0:t.type.toString())==="403"){log("Failed to load zonos settings. This domain may not have access","warn");return[2]}this.initZonosNotification();zonosStoreInitSetting({overrideSettings:this.config,zonosSettings:r});if(zonosStore.helloSettings){void initHello(zonosStore.helloSettings)}return[4,initLocalizationStore()];case 2:s.sent();i=((o=r===null||r===void 0?void 0:r.checkoutSettings)===null||o===void 0?void 0:o.externalServiceTokens.find((function(t){return t.type==="STRIPE_PUBLISHABLE_TOKEN"})))||null;if(!i||!this.stripeInitEvent){log("Checkout failed to load -- missing publishable key","warn");return[2]}this.stripeInitEvent.emit({publishableKey:i.token});log("zonos controller loaded");return[2]}}))}))})();return[2]}))}))};t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){o=document.querySelector("zonos-notification");if(!o){log("Failed to show notification - zonos-notification not found","warn");return[2]}void o.showNotification(t);return[2]}))}))};t.prototype.overrideConfig=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){zonosStoreInitSetting({overrideSettings:t,zonosSettings:null});return[2]}))}))};t.prototype.overrideCountry=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){void localizationStoreUpdateSelectedCountryCode(t);return[2]}))}))};t.prototype.render=function(){return h(Host,{class:"zonos--elements"})};return t}();ZonosController.style=zonosControllerCss;export{ZonosController as zonos_controller};
2
- //# sourceMappingURL=zonos-controller.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,o,e,n){function r(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n["throw"](t))}catch(t){i(t)}}function c(t){t.done?e(t.value):r(t.value).then(s,a)}c((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(o){return c([t,o])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(n=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;r=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){e.label=a[1];break}if(a[0]===6&&e.label<i[1]){e.label=i[1];i=a;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(a);break}if(i[2])e.ops.pop();e.trys.pop();continue}a=o.call(t,e)}catch(t){a=[6,t];r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-d1aa9293.js";import{s as stripeStore}from"./cart-cf46a264.js";import{h as handleFetch,b as logError,i as isValidSelector,l as log,c as initLocalizationStore,d as localizationStoreUpdateSelectedCountryCode}from"./localization-add1d9e9.js";import{z as zonosStore,d as zonosStoreInitSetting}from"./zonosStore-e5291656.js";import"./isDarkColor-8fd3a24e.js";import"./getBorderRadius-278281bf.js";var getZonosSetting=function(){return __awaiter(void 0,void 0,void 0,(function(){var t,o,e,n;return __generator(this,(function(r){switch(r.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-setting");return[4,handleFetch(t)];case 1:o=r.sent(),e=o.errors,n=o.json;if(e.length){logError("Error occurs when getting zonos settings. If this is not an unauthorized error, it will use user setting or default setting");return[2,{errors:e,json:null}]}return[2,{errors:[],json:n}]}}))}))};var injectCheckoutElement=function(){var t=document.querySelector("zonos-checkout");if(!t){var o=document.createElement("zonos-checkout");document.body.appendChild(o)}};var initCheckout=function(t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){if(!t.placeOrderButtonSelector){return[2]}if(!isValidSelector(t.placeOrderButtonSelector)){logError('Selector checkoutButtonAnchor "'.concat(t.placeOrderButtonSelector,'" is not a valid selector'));return[2]}injectCheckoutElement();return[2]}))}))};var injectHelloComponent=function(t){var o=document.querySelector("zonos-hello");if(!o&&t){var e=document.createElement("zonos-hello");t.appendChild(e)}};var initHello=function(t){return __awaiter(void 0,void 0,void 0,(function(){var o,e;return __generator(this,(function(n){o=t.anchorElementSelector;if(!o||!isValidSelector(o)){logError('Selector anchorElementSelector "'.concat(t.anchorElementSelector,'" is not a valid selector.'));return[2]}e=document.querySelector(o);log("Hello init complete");injectHelloComponent(e);return[2]}))}))};var zonosControllerCss=":host{font-family:Inter;display:block}: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{visibility:hidden;opacity:0;height:0}";var ZonosController=function(){function t(t){registerInstance(this,t);this.stripeInitEvent=createEvent(this,"stripeInitEvent",7);this.config=undefined;this.zonosApiKey=undefined}t.prototype.initCheckoutElement=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(!t){log("Stripe is not loaded yet - cannot init checkout element","warn");return[2]}stripeStore.stripe=t;void initCheckout(zonosStore.checkoutSettings);log("init checkout element");return[2]}))}))};t.prototype.initZonosNotification=function(){var t=document.querySelector("zonos-notification");if(t){return}var o=document.createElement("zonos-notification");document.body.appendChild(o)};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){zonosStore.zonosApiKey=this.zonosApiKey;(function(){return __awaiter(t,void 0,void 0,(function(){var t,o,e,n,r,i;return __generator(this,(function(s){switch(s.label){case 0:return[4,getZonosSetting()];case 1:e=s.sent(),n=e.errors,r=e.json;if(((t=n[0])===null||t===void 0?void 0:t.type.toString())==="403"){log("Failed to load zonos settings. This domain may not have access","warn");return[2]}this.initZonosNotification();zonosStoreInitSetting({overrideSettings:this.config,zonosSettings:r});if(zonosStore.helloSettings){void initHello(zonosStore.helloSettings)}return[4,initLocalizationStore()];case 2:s.sent();i=((o=r===null||r===void 0?void 0:r.checkoutSettings)===null||o===void 0?void 0:o.externalServiceTokens.find((function(t){return t.type==="STRIPE_PUBLISHABLE_TOKEN"})))||null;if(!i||!this.stripeInitEvent){log("Checkout failed to load -- missing publishable key","warn");return[2]}this.stripeInitEvent.emit({publishableKey:i.token});log("zonos controller loaded");return[2]}}))}))})();return[2]}))}))};t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){o=document.querySelector("zonos-notification");if(!o){log("Failed to show notification - zonos-notification not found","warn");return[2]}void o.showNotification(t);return[2]}))}))};t.prototype.overrideConfig=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){zonosStoreInitSetting({overrideSettings:t,zonosSettings:null});return[2]}))}))};t.prototype.overrideCountry=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){void localizationStoreUpdateSelectedCountryCode(t);return[2]}))}))};t.prototype.render=function(){return h(Host,{class:"zonos--elements"})};return t}();ZonosController.style=zonosControllerCss;export{ZonosController as zonos_controller};