@zonos/elements 1.3.270 → 1.3.273

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 (356) hide show
  1. package/dist/cjs/{cart-3ff48a0e.js → cart-660e115c.js} +32 -2
  2. package/dist/cjs/collect-286a9d04.js +3107 -0
  3. package/dist/cjs/{hasInclusivePrice-aec06153.js → hasInclusivePrice-b35e81aa.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{invoice-ff716652.js → invoice-f032089f.js} +2 -2
  6. package/dist/cjs/isCollectMobileTablet-884d4280.js +15 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{localization-5c1c9c6a.js → localization-f4a64f6f.js} +245 -1
  9. package/dist/cjs/{paypal-c55b6c45.js → paypal-125259ab.js} +2 -2
  10. package/dist/cjs/{placeTestOrder-230f534b.js → placeTestOrder-02001a99.js} +2 -2
  11. package/dist/cjs/{renderCheckoutCurrency-e9d8efa8.js → renderCheckoutCurrency-cad156a7.js} +2 -2
  12. package/dist/cjs/zonos-address-display_8.cjs.entry.js +18 -18
  13. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  14. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +170 -0
  15. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  18. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +130 -20
  19. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +150 -36
  24. package/dist/cjs/zonos-collect.cjs.entry.js +176 -38
  25. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  29. package/dist/cjs/zonos-elements.cjs.js +1 -1
  30. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  31. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  32. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  33. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  34. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  35. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  37. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  38. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
  40. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  43. package/dist/collection/collection-manifest.json +1 -0
  44. package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.css +43 -0
  45. package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.js +215 -0
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +4 -1
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +110 -2
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +1 -1
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +1 -17
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +21 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +167 -29
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  63. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  64. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  65. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  66. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  67. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  68. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  69. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  70. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  71. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  72. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  73. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  74. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  75. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  76. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  77. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  78. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  79. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  80. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  81. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  82. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  83. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  84. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  85. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  86. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +6 -6
  87. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  88. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  89. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  90. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  91. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  92. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  93. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  94. package/dist/collection/components/main/zonos-controller.js +2 -2
  95. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  96. package/dist/collection/components/store/checkout/airwallex.js +195 -0
  97. package/dist/collection/components/store/checkout/collect.js +4 -1
  98. package/dist/collection/components/store/checkout/euWithdrawalRate.js +40 -0
  99. package/dist/collection/components/store/checkout/stripe.js +26 -1
  100. package/dist/collection/components/store/hello/localization.js +3 -1
  101. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  102. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  103. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  104. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  105. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  106. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  107. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  108. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  109. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  110. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  111. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  112. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  113. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  114. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  115. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  116. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  117. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  118. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  119. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  120. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  121. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  122. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  123. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  124. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  125. package/dist/collection/components/utils/checkout/euWithdrawalNotice.js +74 -0
  126. package/dist/collection/types/generated/graphql.internal.types.js +318 -182
  127. package/dist/esm/{cart-44fa77ef.js → cart-23e29950.js} +32 -2
  128. package/dist/esm/collect-a235299d.js +3092 -0
  129. package/dist/esm/{hasInclusivePrice-f0440925.js → hasInclusivePrice-5e106f84.js} +1 -1
  130. package/dist/esm/index.js +7 -7
  131. package/dist/esm/{invoice-89e71796.js → invoice-78f069c7.js} +2 -2
  132. package/dist/esm/isCollectMobileTablet-111b0dd7.js +12 -0
  133. package/dist/esm/loader.js +1 -1
  134. package/dist/esm/{localization-066586b6.js → localization-17546792.js} +244 -2
  135. package/dist/esm/{paypal-8725008c.js → paypal-5bc6b0d0.js} +2 -2
  136. package/dist/esm/{placeTestOrder-38be871e.js → placeTestOrder-e842854a.js} +2 -2
  137. package/dist/esm/{renderCheckoutCurrency-802f4481.js → renderCheckoutCurrency-e3953f67.js} +2 -2
  138. package/dist/esm/zonos-address-display_8.entry.js +18 -18
  139. package/dist/esm/zonos-address_4.entry.js +8 -8
  140. package/dist/esm/zonos-airwallex-payment.entry.js +166 -0
  141. package/dist/esm/zonos-badge.entry.js +3 -3
  142. package/dist/esm/zonos-button_3.entry.js +3 -3
  143. package/dist/esm/zonos-card_5.entry.js +9 -9
  144. package/dist/esm/zonos-cart-items_12.entry.js +131 -21
  145. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  146. package/dist/esm/zonos-checkout.entry.js +3 -3
  147. package/dist/esm/zonos-collapse.entry.js +2 -2
  148. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  149. package/dist/esm/zonos-collect-finish_6.entry.js +135 -21
  150. package/dist/esm/zonos-collect.entry.js +171 -33
  151. package/dist/esm/zonos-component.entry.js +1 -1
  152. package/dist/esm/zonos-controller.entry.js +3 -3
  153. package/dist/esm/zonos-country-flag.entry.js +1 -1
  154. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  155. package/dist/esm/zonos-elements.js +1 -1
  156. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  157. package/dist/esm/zonos-hello.entry.js +1 -1
  158. package/dist/esm/zonos-input.entry.js +4 -4
  159. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  160. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  161. package/dist/esm/zonos-invoice.entry.js +4 -4
  162. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  163. package/dist/esm/zonos-link.entry.js +1 -1
  164. package/dist/esm/zonos-logo.entry.js +2 -2
  165. package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
  166. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  167. package/dist/esm/zonos-tooltip.entry.js +2 -2
  168. package/dist/esm/zonos-v-stack.entry.js +2 -2
  169. package/dist/esm-es5/cart-23e29950.js +1 -0
  170. package/dist/esm-es5/collect-a235299d.js +1 -0
  171. package/dist/esm-es5/{hasInclusivePrice-f0440925.js → hasInclusivePrice-5e106f84.js} +1 -1
  172. package/dist/esm-es5/index.js +1 -1
  173. package/dist/esm-es5/{invoice-89e71796.js → invoice-78f069c7.js} +1 -1
  174. package/dist/esm-es5/isCollectMobileTablet-111b0dd7.js +1 -0
  175. package/dist/esm-es5/loader.js +1 -1
  176. package/dist/esm-es5/localization-17546792.js +1 -0
  177. package/dist/esm-es5/{paypal-8725008c.js → paypal-5bc6b0d0.js} +1 -1
  178. package/dist/esm-es5/{placeTestOrder-38be871e.js → placeTestOrder-e842854a.js} +1 -1
  179. package/dist/esm-es5/{renderCheckoutCurrency-802f4481.js → renderCheckoutCurrency-e3953f67.js} +1 -1
  180. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  181. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  182. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -0
  183. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  184. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  185. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  186. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  187. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  188. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  189. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  190. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  191. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  192. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  193. package/dist/esm-es5/zonos-component.entry.js +1 -1
  194. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  195. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  196. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  197. package/dist/esm-es5/zonos-elements.js +1 -1
  198. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  199. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  200. package/dist/esm-es5/zonos-input.entry.js +1 -1
  201. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  202. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  203. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  204. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  205. package/dist/esm-es5/zonos-link.entry.js +1 -1
  206. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  207. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  208. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  209. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  210. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  211. package/dist/scripts/index.d.ts +99 -3
  212. package/dist/scripts/index.js +1 -1
  213. package/dist/scripts/loadZonos.js +1 -1
  214. package/dist/scripts/zonos.js +1 -1
  215. package/dist/types/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.d.ts +46 -0
  216. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +7 -0
  217. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +4 -0
  218. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +29 -0
  219. package/dist/types/components/store/checkout/airwallex.d.ts +83 -0
  220. package/dist/types/components/store/checkout/collect.d.ts +12 -1
  221. package/dist/types/components/store/checkout/euWithdrawalRate.d.ts +19 -0
  222. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  223. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  224. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  225. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  226. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  227. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  228. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  229. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  230. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  231. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  232. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  233. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  234. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  235. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  236. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  237. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  238. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  239. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  240. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  241. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  242. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  243. package/dist/types/components/utils/checkout/euWithdrawalNotice.d.ts +9 -0
  244. package/dist/types/components.d.ts +42 -0
  245. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -3
  246. package/dist/types/types/checkout/CheckoutConfig.d.ts +10 -0
  247. package/dist/types/types/checkout/api/CheckoutSession.d.ts +11 -1
  248. package/dist/types/types/checkout/api/PartyInfo.d.ts +6 -0
  249. package/dist/types/types/generated/graphql.internal.types.d.ts +416 -218
  250. package/dist/types/types/generated/graphql.internal.types.ts +537 -258
  251. package/dist/types/types/utils/ZonosSettings.d.ts +15 -0
  252. package/dist/zonos-elements/index.esm.js +1 -1
  253. package/dist/zonos-elements/p-013575f2.entry.js +1 -0
  254. package/dist/zonos-elements/{p-344a1fee.entry.js → p-055ef910.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-d29dbeb3.entry.js → p-08b48608.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-26ae4ee7.system.entry.js → p-0a54dae6.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-6ac77d9f.system.entry.js → p-0b59076d.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-c92a5ae5.system.entry.js → p-10571f94.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-658ab5e2.entry.js → p-12a05647.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-703f2737.system.js → p-14018649.system.js} +2 -2
  261. package/dist/zonos-elements/{p-acd7009a.system.entry.js → p-1678d8b4.system.entry.js} +1 -1
  262. package/dist/zonos-elements/p-171d0f9f.system.js +1 -0
  263. package/dist/zonos-elements/{p-7e03bd33.system.entry.js → p-1a105d6e.system.entry.js} +1 -1
  264. package/dist/zonos-elements/p-1a4083be.system.js +1 -0
  265. package/dist/zonos-elements/{p-72666536.system.entry.js → p-1f31f5a0.system.entry.js} +1 -1
  266. package/dist/zonos-elements/p-2197d6ab.js +1 -0
  267. package/dist/zonos-elements/{p-536cbab5.system.entry.js → p-27e50593.system.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-0b4ba025.entry.js → p-2825431d.entry.js} +1 -1
  269. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  270. package/dist/zonos-elements/{p-ccd0fa8f.system.entry.js → p-2a1247f4.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-2adbbce7.system.js +1 -0
  272. package/dist/zonos-elements/{p-553ca694.system.entry.js → p-306e5499.system.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-b15ceaff.entry.js → p-31577ebd.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-889a44fc.entry.js → p-328fd90e.entry.js} +1 -1
  275. package/dist/zonos-elements/p-33910e8b.js +1 -0
  276. package/dist/zonos-elements/{p-fb684748.system.entry.js → p-36b311f9.system.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-5b4e5608.system.entry.js → p-3eba657b.system.entry.js} +1 -1
  278. package/dist/zonos-elements/p-41619f29.js +1 -0
  279. package/dist/zonos-elements/{p-7792f4c2.js → p-42948a52.js} +1 -1
  280. package/dist/zonos-elements/p-46e72a90.entry.js +1 -0
  281. package/dist/zonos-elements/p-49d8a10f.entry.js +1 -0
  282. package/dist/zonos-elements/{p-fc651784.system.entry.js → p-4a960329.system.entry.js} +1 -1
  283. package/dist/zonos-elements/p-4b371b65.entry.js +1 -0
  284. package/dist/zonos-elements/p-539bc46c.js +1 -0
  285. package/dist/zonos-elements/p-579932a7.js +1 -0
  286. package/dist/zonos-elements/{p-2afecda7.entry.js → p-59b10526.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-98bea13e.system.entry.js → p-5aa35d1c.system.entry.js} +1 -1
  288. package/dist/zonos-elements/{p-238370ad.system.js → p-62c68aee.system.js} +1 -1
  289. package/dist/zonos-elements/{p-5df77315.system.entry.js → p-6c19310e.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-16948eea.system.entry.js → p-732e7373.system.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-0e8c4a29.entry.js → p-734d646b.entry.js} +1 -1
  292. package/dist/zonos-elements/{p-2f61dc3c.entry.js → p-7eb47eb0.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-a2885536.system.entry.js → p-86a9f048.system.entry.js} +1 -1
  294. package/dist/zonos-elements/p-8af57c2a.js +1 -0
  295. package/dist/zonos-elements/{p-fb83134b.system.entry.js → p-8c4761d1.system.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-5812b323.system.entry.js → p-8e77a3cd.system.entry.js} +1 -1
  297. package/dist/zonos-elements/p-919c5500.entry.js +1 -0
  298. package/dist/zonos-elements/{p-c76ec587.system.js → p-91b921a4.system.js} +1 -1
  299. package/dist/zonos-elements/p-9574695a.system.js +1 -0
  300. package/dist/zonos-elements/p-97917371.system.entry.js +1 -0
  301. package/dist/zonos-elements/p-9b003a15.system.entry.js +1 -0
  302. package/dist/zonos-elements/{p-e11c3410.entry.js → p-9c3276c8.entry.js} +1 -1
  303. package/dist/zonos-elements/p-9cd41234.system.entry.js +1 -0
  304. package/dist/zonos-elements/{p-5f92db80.system.entry.js → p-a1a05de4.system.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-6704b83e.entry.js → p-a968ccba.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-91702715.entry.js → p-abd485df.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-69ad7325.entry.js → p-ad961f5d.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-ad4c8167.system.entry.js → p-b5c01288.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-bf8c98ab.system.js +1 -0
  310. package/dist/zonos-elements/{p-eb96d62f.entry.js → p-c13d2e3f.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-0b46f3bd.system.entry.js → p-c15476a1.system.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-0e36a7cf.system.entry.js → p-c6823974.system.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-dae881f2.entry.js → p-c83bc4b3.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-134c5010.system.entry.js → p-c846a5f3.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-7aca66cd.entry.js → p-cc508de8.entry.js} +1 -1
  316. package/dist/zonos-elements/{p-d4c966cb.entry.js → p-ccd14aa5.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-801dd8d8.system.js → p-d25759fb.system.js} +1 -1
  318. package/dist/zonos-elements/{p-fcf3ed5c.entry.js → p-d5e66ea6.entry.js} +1 -1
  319. package/dist/zonos-elements/{p-2df84888.system.entry.js → p-daf57db3.system.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-b35a0b1e.entry.js → p-dcef2202.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-283ffaad.entry.js → p-dd6da3de.entry.js} +1 -1
  322. package/dist/zonos-elements/{p-30e819ed.entry.js → p-df6fbf3f.entry.js} +1 -1
  323. package/dist/zonos-elements/{p-0d251428.entry.js → p-e643346a.entry.js} +1 -1
  324. package/dist/zonos-elements/{p-a977cddd.entry.js → p-e8cb382e.entry.js} +1 -1
  325. package/dist/zonos-elements/{p-2651ca93.system.entry.js → p-e8ec88a9.system.entry.js} +1 -1
  326. package/dist/zonos-elements/p-e9afd736.system.entry.js +1 -0
  327. package/dist/zonos-elements/{p-208b270a.js → p-e9c8a235.js} +1 -1
  328. package/dist/zonos-elements/{p-b1a4f385.system.entry.js → p-f0eb6317.system.entry.js} +1 -1
  329. package/dist/zonos-elements/p-f1cc659c.js +1 -0
  330. package/dist/zonos-elements/{p-9abfb6b0.entry.js → p-f53c8a9f.entry.js} +1 -1
  331. package/dist/zonos-elements/{p-777d396e.entry.js → p-f72642de.entry.js} +1 -1
  332. package/dist/zonos-elements/{p-0d2d7fc4.system.js → p-fcaec700.system.js} +1 -1
  333. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  334. package/package.json +2 -1
  335. package/dist/cjs/isCollectMobileTablet-3ac53cab.js +0 -176
  336. package/dist/esm/isCollectMobileTablet-323d2ba1.js +0 -169
  337. package/dist/esm-es5/cart-44fa77ef.js +0 -1
  338. package/dist/esm-es5/isCollectMobileTablet-323d2ba1.js +0 -1
  339. package/dist/esm-es5/localization-066586b6.js +0 -1
  340. package/dist/zonos-elements/p-08c7dc07.system.entry.js +0 -1
  341. package/dist/zonos-elements/p-0e9c0eff.entry.js +0 -1
  342. package/dist/zonos-elements/p-0fb8b711.system.entry.js +0 -1
  343. package/dist/zonos-elements/p-225f19b6.entry.js +0 -1
  344. package/dist/zonos-elements/p-260a5b57.js +0 -1
  345. package/dist/zonos-elements/p-27beefda.system.js +0 -1
  346. package/dist/zonos-elements/p-31a3b070.system.js +0 -1
  347. package/dist/zonos-elements/p-5ab4bc26.system.entry.js +0 -1
  348. package/dist/zonos-elements/p-9e414000.js +0 -1
  349. package/dist/zonos-elements/p-b1125711.system.js +0 -1
  350. package/dist/zonos-elements/p-bea9d128.js +0 -1
  351. package/dist/zonos-elements/p-bfcc1432.js +0 -1
  352. package/dist/zonos-elements/p-c049c527.js +0 -1
  353. package/dist/zonos-elements/p-d659153c.entry.js +0 -1
  354. package/dist/zonos-elements/p-debd2e30.js +0 -1
  355. package/dist/zonos-elements/p-ebc966d8.entry.js +0 -1
  356. package/dist/zonos-elements/p-f5d4775a.system.js +0 -1
@@ -1 +1 @@
1
- import{p as e,B as o,c as i,w as t,N as n,H as r,b as a}from"./p-ce75b047.js";export{s as setNonce}from"./p-ce75b047.js";import{g as l}from"./p-e1255160.js";var d=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const i=o.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&i.appendChild(t[e].cloneNode(!0));return i}};(()=>{o.isDev&&!o.isTesting&&i("Running in development mode."),o.cloneNodeFix&&d(r.prototype);const s=o.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n)):null,a=import.meta.url,l=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-69ad7325",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"hiddenMode":[4,"hidden-mode"],"mobile":[4],"overrideStagingMode":[4,"override-staging-mode"],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"defaultAddressParams":[32],"defaultCustomerProfileAddress":[32],"customerProfile":[32],"open":[32],"isOverlayLoading":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"isIframed":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"placedOrderInfo":[32],"shouldShowFedexShippingConsentDialog":[32],"detectedDomesticCheckoutDialogOpen":[32],"redirectToDomesticCheckoutDialogOpen":[32],"loggedInIntlAddressConfirmDialogOpen":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64],"mockCheckoutSession":[64],"triggerCheckoutInternational":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"overrideStagingMode":["overrideStagingModeChanged"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"],"customerProfile":["handleCustomerProfileChange"],"clientSecret":["handleClientSecretChange"],"stripeCustomerSessionClientSecret":["handleClientSecretChange"],"open":["handleOpenChange"]}]]],["p-0e9c0eff",[[2,"zonos-collect",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReview":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-6704b83e",[[2,"zonos-invoice",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-e11c3410",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"desktopLocationOverride":[1,"desktop-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"isMobile":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"showDialog":["showDialogHandler"],"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["p-b15ceaff",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"initCollectElement":[64],"initInvoiceElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["p-0b4ba025",[[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["p-283ffaad",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["p-2afecda7",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["p-fcf3ed5c",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["p-e548b8ec",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"isMobile":[4,"is-mobile"],"selectedItem":[16]}]]],["p-d659153c",[[1,"zonos-store-credit",{"enabled":[4],"customAmountInput":[32]}],[1,"zonos-policy-consent"]]],["p-0e8c4a29",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["p-c1463da7",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["p-9abfb6b0",[[1,"zonos-invoice-cart-items",{"isMobile":[4,"is-mobile"],"errorImages":[32],"locale":[32]}],[1,"zonos-invoice-subtotal",{"isMobile":[4,"is-mobile"]}]]],["p-7aca66cd",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"bold":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["p-344a1fee",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"loading":[4],"dismissHandler":[16]}]]],["p-df55536b",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["p-30e819ed",[[2,"zonos-invoice-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-invoice-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"],"tablet":["handleTabletChange"]}],[1,"zonos-invoice-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":["handleCollapseChangeFromProp"],"collapseState":["handleCollapseChange"]}],[1,"zonos-invoice-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-invoice-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]]]],["p-eb96d62f",[[1,"zonos-collect-cart-items",{"errorImages":[32]}],[1,"zonos-skeleton",{"skeletonWidth":[1,"skeleton-width"],"skeletonHeight":[1,"skeleton-height"],"dismissHandler":[16]}],[1,"zonos-h-stack",{"spacing":[2]}]]],["p-225f19b6",[[2,"zonos-collect-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-collect-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"],"tablet":["handleTabletChange"]}],[1,"zonos-collect-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":["handleCollapseChangeFromProp"],"collapseState":["handleCollapseChange"]}],[1,"zonos-collect-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-collect-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-collect-subtotal",{"subtotals":[32]}]]],["p-658ab5e2",[[2,"zonos-stripe-input",{"name":[1],"autoComplete":[1,"auto-complete"],"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"inputPlaceholder":[1,"input-placeholder"],"value":[1025],"required":[4],"internalValue":[32]},null,{"inputValue":["onInputValueChange"],"value":["onValueChange"]}]]],["p-777d396e",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["p-889a44fc",[[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[1,"zonos-toggle",{"options":[16],"value":[1]}]]],["p-dae881f2",[[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["p-d4c966cb",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["p-2f61dc3c",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[2,"zonos-virtual-scroll",{"renderItem":[16],"itemWidth":[2,"item-width"],"fallbackItemHeight":[2,"fallback-item-height"],"itemHeights":[16],"buffer":[2],"scrollTop":[32],"totalHeight":[32],"containerDimensions":[32]},null,{"itemHeights":["updateTotalHeight"],"fallbackItemHeight":["updateTotalHeight"]}]]],["p-a977cddd",[[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogWidth":[2,"dialog-width"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-loading-overlay",{"open":[4],"spinnerColor":[1,"spinner-color"],"size":[2]}],[6,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"checkoutSessionId":[32],"prevCountry":[32],"prevPostalCode":[32]},null,{"checkoutSessionId":["isAddressFilledChanged"],"isAddressFilled":["isAddressFilledChanged"],"stripe":["watchInitStripe"],"defaultAddress":["defaultAddressChanged"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"isEmailError":[4,"is-email-error"],"stripe":[32],"isStagingMode":[32],"clientSecret":[32],"retriesInitializeLink":[32]},null,{"isStagingMode":["watchIsStagingMode"],"stripe":["watchInitStripe"],"clientSecret":["watchInitStripe"],"defaultEmail":["watchDefaultEmail"]}]]],["p-b35a0b1e",[[1,"zonos-v-stack",{"spacing":[2]}]]],["p-91702715",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["p-0d251428",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[6,"zonos-custom-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"isAddressLine1Entered":[32],"addressSuggestions":[32],"countryField":[32],"startGooglePlaceSuggestions":[32],"shipToCountries":[32],"shippingZones":[32],"city":[32],"country":[32],"firstName":[32],"lastName":[32],"line1":[32],"line2":[32],"phone":[32],"postalCode":[32],"state":[32],"cityError":[32],"stateError":[32],"postalCodeError":[32],"phoneError":[32],"firstNameError":[32],"lastNameError":[32],"isFirstInitialization":[32],"addressService":[32],"checkoutSessionId":[32]},null,{"checkoutSessionId":["isAddressFilledChanged"],"isAddressFilled":["isAddressFilledChanged"],"defaultAddress":["defaultAddressChanged"],"line1":["line1Changed"],"city":["formFieldsChanged"],"country":["formFieldsChanged","countryChanged"],"firstName":["formFieldsChanged"],"lastName":["formFieldsChanged"],"line2":["formFieldsChanged"],"phone":["formFieldsChanged"],"postalCode":["formFieldsChanged"],"state":["formFieldsChanged"],"addressService":["shouldEnabledCustomAddressChanged"],"shippingZones":["shippingZonesChanged"]}],[1,"zonos-address-suggestions",{"type":[1],"suggestions":[16],"selectedSuggestionId":[32],"localSuggestions":[32],"lastHoveredSuggestionId":[32]},null,{"suggestions":["suggestionsChanged"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"loadingTitle":[1,"loading-title"],"loadingText":[1,"loading-text"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[2,"zonos-stripe-phone-input",{"autoComplete":[1,"auto-complete"],"countryOptions":[16],"disabled":[4],"error":[1],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"inputValue":[1,"input-value"],"countryCode":[1,"country-code"],"minWidth":[1,"min-width"],"selectedCountry":[32],"phoneNumber":[32],"isFocused":[32],"isSelectOpen":[32]},null,{"countryOptions":["onCountryOptionsChange"],"selectedCountry":["onSelectedCountryChange"],"inputValue":["onPhoneNumberChange"]}],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-stripe-select",{"name":[1],"selectedValue":[1,"selected-value"],"selectLabel":[1,"select-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"selectPlaceholder":[1,"select-placeholder"],"options":[16],"autoComplete":[1,"auto-complete"],"value":[1025],"required":[4],"isClearable":[4,"is-clearable"],"minWidth":[1,"min-width"],"internalValue":[32],"internalOptions":[32]},null,{"options":["onOptionsChange"],"selectedValue":["onSelectedValueChange"],"value":["onValueChange"]}]]],["p-d29dbeb3",[[1,"zonos-empty-state-payment",{"emptyStateText":[1,"empty-state-text"],"theme":[1]}],[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32],"isPaymentInfoFilled":[32]},null,{"isPaymentInfoFilled":["watchIsPaymentInfoFilled"],"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}],[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["p-ebc966d8",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"shouldUseCustomAddressFormOverride":[4,"should-use-custom-address-form-override"],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"taxIdErrorMessage":[32],"shortAddressCodeErrorMessage":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32],"isEmailError":[32],"recordedFormTypeUsed":[32],"selectedCountryCode":[32],"genericSettings":[32],"addressFormRenderType":[32],"exceededCharacterLimitErrorFieldList":[32]},null,{"showErrorBanner":["watchShowErrorBanner"],"shouldUseCustomAddressFormOverride":["watchShouldEnabledCustomAddress"],"genericSettings":["watchShouldEnabledCustomAddress"],"selectedCountryCode":["watchShouldEnabledCustomAddress"]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-cart-subtotal",{"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"loading":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"isMobile":[4,"is-mobile"],"selectedShippingMethod":[32],"collapsedDAPOptions":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevelsDDP":[32],"serviceLevelsDAP":[32],"serviceLevelsOther":[32],"serviceLevelsAll":[32],"displayBaseCurrency":[32],"shippingData":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32],"isImmediateRedirecting":[32]}],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-currency-toggle",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]]'),e))));
1
+ import{p as e,B as o,c as i,w as t,N as n,H as r,b as a}from"./p-ce75b047.js";export{s as setNonce}from"./p-ce75b047.js";import{g as l}from"./p-e1255160.js";var d=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const i=o.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&i.appendChild(t[e].cloneNode(!0));return i}};(()=>{o.isDev&&!o.isTesting&&i("Running in development mode."),o.cloneNodeFix&&d(r.prototype);const s=o.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n)):null,a=import.meta.url,l=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-c1463da7",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["p-ad961f5d",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"hiddenMode":[4,"hidden-mode"],"mobile":[4],"overrideStagingMode":[4,"override-staging-mode"],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"defaultAddressParams":[32],"defaultCustomerProfileAddress":[32],"customerProfile":[32],"open":[32],"isOverlayLoading":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"isIframed":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"placedOrderInfo":[32],"shouldShowFedexShippingConsentDialog":[32],"detectedDomesticCheckoutDialogOpen":[32],"redirectToDomesticCheckoutDialogOpen":[32],"loggedInIntlAddressConfirmDialogOpen":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64],"mockCheckoutSession":[64],"triggerCheckoutInternational":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"overrideStagingMode":["overrideStagingModeChanged"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"],"customerProfile":["handleCustomerProfileChange"],"clientSecret":["handleClientSecretChange"],"stripeCustomerSessionClientSecret":["handleClientSecretChange"],"open":["handleOpenChange"]}]]],["p-013575f2",[[2,"zonos-collect",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReview":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-a968ccba",[[2,"zonos-invoice",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-9c3276c8",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"desktopLocationOverride":[1,"desktop-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"isMobile":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"showDialog":["showDialogHandler"],"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["p-31577ebd",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"initCollectElement":[64],"initInvoiceElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["p-2825431d",[[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["p-dd6da3de",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["p-59b10526",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["p-d5e66ea6",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["p-49d8a10f",[[2,"zonos-airwallex-payment",{"hasError":[32],"clientSecret":[32]},null,{"clientSecret":["clientSecretWatcher"]}]]],["p-e548b8ec",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"isMobile":[4,"is-mobile"],"selectedItem":[16]}]]],["p-46e72a90",[[1,"zonos-store-credit",{"enabled":[4],"customAmountInput":[32]}],[1,"zonos-policy-consent"]]],["p-734d646b",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["p-f53c8a9f",[[1,"zonos-invoice-cart-items",{"isMobile":[4,"is-mobile"],"errorImages":[32],"locale":[32]}],[1,"zonos-invoice-subtotal",{"isMobile":[4,"is-mobile"]}]]],["p-055ef910",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"loading":[4],"dismissHandler":[16]}]]],["p-dcef2202",[[1,"zonos-v-stack",{"spacing":[2]}]]],["p-df6fbf3f",[[2,"zonos-invoice-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-invoice-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"],"tablet":["handleTabletChange"]}],[1,"zonos-invoice-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":["handleCollapseChangeFromProp"],"collapseState":["handleCollapseChange"]}],[1,"zonos-invoice-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-invoice-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]]]],["p-c13d2e3f",[[1,"zonos-collect-cart-items",{"errorImages":[32]}],[1,"zonos-skeleton",{"skeletonWidth":[1,"skeleton-width"],"skeletonHeight":[1,"skeleton-height"],"dismissHandler":[16]}],[1,"zonos-h-stack",{"spacing":[2]}]]],["p-08b48608",[[1,"zonos-empty-state-payment",{"emptyStateText":[1,"empty-state-text"],"theme":[1]}],[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32],"isPaymentInfoFilled":[32]},null,{"isPaymentInfoFilled":["watchIsPaymentInfoFilled"],"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}],[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["p-919c5500",[[2,"zonos-collect-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-collect-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"],"tablet":["handleTabletChange"]}],[1,"zonos-collect-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":["handleCollapseChangeFromProp"],"collapseState":["handleCollapseChange"]}],[1,"zonos-collect-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-collect-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-collect-subtotal",{"subtotals":[32]}]]],["p-12a05647",[[2,"zonos-stripe-input",{"name":[1],"autoComplete":[1,"auto-complete"],"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"inputPlaceholder":[1,"input-placeholder"],"value":[1025],"required":[4],"internalValue":[32]},null,{"inputValue":["onInputValueChange"],"value":["onValueChange"]}]]],["p-f72642de",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["p-328fd90e",[[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[1,"zonos-toggle",{"options":[16],"value":[1]}]]],["p-c83bc4b3",[[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["p-ccd14aa5",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["p-cc508de8",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"bold":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["p-7eb47eb0",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[2,"zonos-virtual-scroll",{"renderItem":[16],"itemWidth":[2,"item-width"],"fallbackItemHeight":[2,"fallback-item-height"],"itemHeights":[16],"buffer":[2],"scrollTop":[32],"totalHeight":[32],"containerDimensions":[32]},null,{"itemHeights":["updateTotalHeight"],"fallbackItemHeight":["updateTotalHeight"]}]]],["p-df55536b",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["p-e8cb382e",[[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogWidth":[2,"dialog-width"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-loading-overlay",{"open":[4],"spinnerColor":[1,"spinner-color"],"size":[2]}],[6,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"checkoutSessionId":[32],"prevCountry":[32],"prevPostalCode":[32]},null,{"checkoutSessionId":["isAddressFilledChanged"],"isAddressFilled":["isAddressFilledChanged"],"stripe":["watchInitStripe"],"defaultAddress":["defaultAddressChanged"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"isEmailError":[4,"is-email-error"],"stripe":[32],"isStagingMode":[32],"clientSecret":[32],"retriesInitializeLink":[32]},null,{"isStagingMode":["watchIsStagingMode"],"stripe":["watchInitStripe"],"clientSecret":["watchInitStripe"],"defaultEmail":["watchDefaultEmail"]}]]],["p-abd485df",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["p-e643346a",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[6,"zonos-custom-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"isAddressLine1Entered":[32],"addressSuggestions":[32],"countryField":[32],"startGooglePlaceSuggestions":[32],"shipToCountries":[32],"shippingZones":[32],"city":[32],"country":[32],"firstName":[32],"lastName":[32],"line1":[32],"line2":[32],"phone":[32],"postalCode":[32],"state":[32],"cityError":[32],"stateError":[32],"postalCodeError":[32],"phoneError":[32],"firstNameError":[32],"lastNameError":[32],"isFirstInitialization":[32],"addressService":[32],"checkoutSessionId":[32]},null,{"checkoutSessionId":["isAddressFilledChanged"],"isAddressFilled":["isAddressFilledChanged"],"defaultAddress":["defaultAddressChanged"],"line1":["line1Changed"],"city":["formFieldsChanged"],"country":["formFieldsChanged","countryChanged"],"firstName":["formFieldsChanged"],"lastName":["formFieldsChanged"],"line2":["formFieldsChanged"],"phone":["formFieldsChanged"],"postalCode":["formFieldsChanged"],"state":["formFieldsChanged"],"addressService":["shouldEnabledCustomAddressChanged"],"shippingZones":["shippingZonesChanged"]}],[1,"zonos-address-suggestions",{"type":[1],"suggestions":[16],"selectedSuggestionId":[32],"localSuggestions":[32],"lastHoveredSuggestionId":[32]},null,{"suggestions":["suggestionsChanged"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"loadingTitle":[1,"loading-title"],"loadingText":[1,"loading-text"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[2,"zonos-stripe-phone-input",{"autoComplete":[1,"auto-complete"],"countryOptions":[16],"disabled":[4],"error":[1],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"inputValue":[1,"input-value"],"countryCode":[1,"country-code"],"minWidth":[1,"min-width"],"selectedCountry":[32],"phoneNumber":[32],"isFocused":[32],"isSelectOpen":[32]},null,{"countryOptions":["onCountryOptionsChange"],"selectedCountry":["onSelectedCountryChange"],"inputValue":["onPhoneNumberChange"]}],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-stripe-select",{"name":[1],"selectedValue":[1,"selected-value"],"selectLabel":[1,"select-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"selectPlaceholder":[1,"select-placeholder"],"options":[16],"autoComplete":[1,"auto-complete"],"value":[1025],"required":[4],"isClearable":[4,"is-clearable"],"minWidth":[1,"min-width"],"internalValue":[32],"internalOptions":[32]},null,{"options":["onOptionsChange"],"selectedValue":["onSelectedValueChange"],"value":["onValueChange"]}]]],["p-4b371b65",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"shouldUseCustomAddressFormOverride":[4,"should-use-custom-address-form-override"],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"taxIdErrorMessage":[32],"shortAddressCodeErrorMessage":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32],"isEmailError":[32],"recordedFormTypeUsed":[32],"selectedCountryCode":[32],"genericSettings":[32],"addressFormRenderType":[32],"exceededCharacterLimitErrorFieldList":[32]},null,{"showErrorBanner":["watchShowErrorBanner"],"shouldUseCustomAddressFormOverride":["watchShouldEnabledCustomAddress"],"genericSettings":["watchShouldEnabledCustomAddress"],"selectedCountryCode":["watchShouldEnabledCustomAddress"]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":["continueLoadingWatcher"],"hasStripePaymentError":["stripePaymentErrorWatcher"]}],[1,"zonos-cart-subtotal",{"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"loading":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"isMobile":[4,"is-mobile"],"selectedShippingMethod":[32],"collapsedDAPOptions":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevelsDDP":[32],"serviceLevelsDAP":[32],"serviceLevelsOther":[32],"serviceLevelsAll":[32],"displayBaseCurrency":[32],"shippingData":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32],"isImmediateRedirecting":[32]}],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-currency-toggle",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]]'),e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/elements",
3
- "version": "1.3.270",
3
+ "version": "1.3.273",
4
4
  "description": "Zonos component UI for Stripe elements",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs.js",
@@ -66,6 +66,7 @@
66
66
  "version:save": "pnpm ts-node build-utils/saveVersions.ts"
67
67
  },
68
68
  "dependencies": {
69
+ "@airwallex/components-sdk": "^1.32.0",
69
70
  "@paypal/paypal-js": "^8.4.2",
70
71
  "@stencil/core": "4.27.2",
71
72
  "fuse.js": "^7.1.0",
@@ -1,176 +0,0 @@
1
- 'use strict';
2
-
3
- const zonosStore = require('./zonosStore-45a87908.js');
4
- const cart = require('./cart-3ff48a0e.js');
5
- const localization = require('./localization-5c1c9c6a.js');
6
- const handleFetch = require('./handleFetch-954f30e1.js');
7
- const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
-
9
- const { reset: collectStoreReset, state: collectStore } = zonosStore.createStore(() => ({
10
- amountDutyTaxFeeTotal: null,
11
- amountTotalPaid: null,
12
- isFetchingShippingInfo: true,
13
- landedCostShortId: null,
14
- originCompanyName: null,
15
- partyBillingId: null,
16
- shippingAddress: null,
17
- }));
18
- const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20
- collectStore.isFetchingShippingInfo = true;
21
- const response = await handleFetch.handleFetch('/api/zonos-elements/collect/get-shipping-info-by-lc-id', {
22
- body: {
23
- landedCostId,
24
- },
25
- method: 'POST',
26
- });
27
- if (response.errors.length) {
28
- if (retries > 0) {
29
- // Wait for 1 second before retrying
30
- await new Promise(resolve => setTimeout(resolve, 1000));
31
- // Keep retrying until we get the shipping address or we run out of retries
32
- return collectStoreInitShippingInfo({
33
- landedCostId,
34
- retries: retries - 1,
35
- });
36
- }
37
- return null;
38
- }
39
- collectStore.landedCostShortId = ((_a = response.json) === null || _a === void 0 ? void 0 : _a.landedCostShortId) || null;
40
- collectStore.isFetchingShippingInfo = false;
41
- collectStore.shippingAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.shipping) || null;
42
- const landedCost = (_c = cart.cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.landedCost;
43
- const checkoutSessionSubtotals = (_d = cart.cartStore.checkoutSession) === null || _d === void 0 ? void 0 : _d.subtotals;
44
- const amountTotalPaid = (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.shipping) || 0) +
45
- (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.items) || 0);
46
- // Convert the amount to the presentment currency
47
- collectStore.amountTotalPaid =
48
- amountTotalPaid * (((_g = checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.exchangeRate) === null || _g === void 0 ? void 0 : _g.rate) || 1);
49
- collectStore.amountDutyTaxFeeTotal =
50
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.duties) || 0) +
51
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.taxes) || 0) +
52
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.fees) || 0);
53
- collectStore.originCompanyName = ((_j = (_h = response.json) === null || _h === void 0 ? void 0 : _h.origin) === null || _j === void 0 ? void 0 : _j.companyName) || null;
54
- if (collectStore.amountTotalPaid === 0) {
55
- void handleFetch.sendErrorLog({
56
- endpoint: 'COLLECT_NO_TOTAL_PAID',
57
- errors: [],
58
- metadata: {
59
- landedCostId,
60
- organizationId: zonosStore.zonosStore.organizationId,
61
- },
62
- });
63
- }
64
- };
65
- const collectStoreAsyncAddressUpdate = async () => {
66
- var _a, _b, _c, _d;
67
- if (!((_a = cart.stripeStore.stripeBillingAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)) {
68
- return {
69
- partiesCreated: false,
70
- };
71
- }
72
- const landedCostRootId = (_c = (_b = cart.cartStore.checkoutSession) === null || _b === void 0 ? void 0 : _b.landedCost) === null || _c === void 0 ? void 0 : _c.rootId;
73
- if (!landedCostRootId) {
74
- // do nothing if we don't have selected landed cost
75
- void handleFetch.sendErrorLog({
76
- endpoint: 'PF_NO_SELECTED_LANDED_COST',
77
- errors: ['No selected landed cost'],
78
- metadata: {
79
- allLogs: VarianceTest.allLogs,
80
- cartId: window.Zonos.cartId,
81
- checkoutSessionId: localization.storageStore.checkoutSessionId,
82
- },
83
- });
84
- return {
85
- partiesCreated: false,
86
- };
87
- }
88
- if (!localization.storageStore.checkoutSessionId) {
89
- void handleFetch.sendErrorLog({
90
- endpoint: 'COLLECT_NO_CHECKOUT_SESSION_ID',
91
- errors: ['No checkout session id'],
92
- metadata: {
93
- allLogs: VarianceTest.allLogs,
94
- cartId: window.Zonos.cartId,
95
- landedCostRootId,
96
- },
97
- });
98
- return {
99
- partiesCreated: false,
100
- };
101
- }
102
- const billingAddress = cart.stripeStoreBuildAddressForPartyCreate({
103
- address: cart.stripeStore.stripeBillingAddressEventData.value.address,
104
- firstName: cart.stripeStore.stripeBillingAddressEventData.value.firstName,
105
- lastName: cart.stripeStore.stripeBillingAddressEventData.value.lastName,
106
- name: cart.stripeStore.stripeBillingAddressEventData.value.name,
107
- phone: cart.stripeStore.stripeBillingAddressEventData.value.phone,
108
- });
109
- const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
110
- const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/create-billing-party', {
111
- body: {
112
- billingAddress,
113
- checkoutSessionId: localization.storageStore.checkoutSessionId,
114
- companyName: cart.stripeStore.companyName,
115
- email: ((_d = cart.stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
116
- isTest: isE2ETest,
117
- rootId: landedCostRootId,
118
- },
119
- method: 'POST',
120
- });
121
- if (errors.length || !json) {
122
- handleFetch.logError('Error occurs when creating billing party', JSON.stringify(errors, null, 2));
123
- void handleFetch.sendErrorLog({
124
- endpoint: 'COLLECT_BILLING_PARTY_CREATE_FAILED',
125
- errors: ['[COLLECT] Failed to create billing party'],
126
- metadata: {
127
- allLogs: VarianceTest.allLogs,
128
- cartId: window.Zonos.cartId,
129
- checkoutSessionId: localization.storageStore.checkoutSessionId,
130
- errors,
131
- json,
132
- },
133
- });
134
- return {
135
- partiesCreated: false,
136
- };
137
- }
138
- collectStore.partyBillingId = json.billToPartyId;
139
- return {
140
- partiesCreated: true,
141
- };
142
- };
143
- const collectStoreUpdateSelectedShippingOption = async (checkoutSession) => {
144
- const landedCost = checkoutSession.landedCost;
145
- if (!landedCost) {
146
- return false;
147
- }
148
- // Convert the landed cost to the format that cartStore expects
149
- cart.cartStore.landedCostData = [
150
- Object.assign(Object.assign({}, checkoutSession), { landedCost: Object.assign({}, landedCost), landedCostId: landedCost.id }),
151
- ];
152
- return cart.cartStoreUpdateSelectedShippingOption({
153
- // No need to update checkout session again, we already called it when starting collect, only need to apply subtotals here to utilize the cart store
154
- applySubtotalsOnly: true,
155
- landedCostId: landedCost.id,
156
- selectedShippingOption: landedCost.shipmentRating,
157
- });
158
- };
159
-
160
- const collectTabletBreakpoint = 1024;
161
- const collectMobileBreakpoint = 768;
162
- const isCollectTablet = (isTablet) => {
163
- return (isTablet ||
164
- (window.innerWidth < collectTabletBreakpoint &&
165
- window.innerWidth >= collectMobileBreakpoint));
166
- };
167
- const isCollectMobile = (isMobile) => {
168
- return isMobile || window.innerWidth < collectMobileBreakpoint;
169
- };
170
-
171
- exports.collectStore = collectStore;
172
- exports.collectStoreAsyncAddressUpdate = collectStoreAsyncAddressUpdate;
173
- exports.collectStoreInitShippingInfo = collectStoreInitShippingInfo;
174
- exports.collectStoreUpdateSelectedShippingOption = collectStoreUpdateSelectedShippingOption;
175
- exports.isCollectMobile = isCollectMobile;
176
- exports.isCollectTablet = isCollectTablet;
@@ -1,169 +0,0 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-8e19daff.js';
2
- import { b as stripeStore, K as stripeStoreBuildAddressForPartyCreate, d as cartStore, L as cartStoreUpdateSelectedShippingOption } from './cart-44fa77ef.js';
3
- import { s as storageStore } from './localization-066586b6.js';
4
- import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
5
- import { b as allLogs } from './VarianceTest-572cecf5.js';
6
-
7
- const { reset: collectStoreReset, state: collectStore } = createStore(() => ({
8
- amountDutyTaxFeeTotal: null,
9
- amountTotalPaid: null,
10
- isFetchingShippingInfo: true,
11
- landedCostShortId: null,
12
- originCompanyName: null,
13
- partyBillingId: null,
14
- shippingAddress: null,
15
- }));
16
- const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18
- collectStore.isFetchingShippingInfo = true;
19
- const response = await handleFetch('/api/zonos-elements/collect/get-shipping-info-by-lc-id', {
20
- body: {
21
- landedCostId,
22
- },
23
- method: 'POST',
24
- });
25
- if (response.errors.length) {
26
- if (retries > 0) {
27
- // Wait for 1 second before retrying
28
- await new Promise(resolve => setTimeout(resolve, 1000));
29
- // Keep retrying until we get the shipping address or we run out of retries
30
- return collectStoreInitShippingInfo({
31
- landedCostId,
32
- retries: retries - 1,
33
- });
34
- }
35
- return null;
36
- }
37
- collectStore.landedCostShortId = ((_a = response.json) === null || _a === void 0 ? void 0 : _a.landedCostShortId) || null;
38
- collectStore.isFetchingShippingInfo = false;
39
- collectStore.shippingAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.shipping) || null;
40
- const landedCost = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.landedCost;
41
- const checkoutSessionSubtotals = (_d = cartStore.checkoutSession) === null || _d === void 0 ? void 0 : _d.subtotals;
42
- const amountTotalPaid = (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.shipping) || 0) +
43
- (((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.items) || 0);
44
- // Convert the amount to the presentment currency
45
- collectStore.amountTotalPaid =
46
- amountTotalPaid * (((_g = checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.exchangeRate) === null || _g === void 0 ? void 0 : _g.rate) || 1);
47
- collectStore.amountDutyTaxFeeTotal =
48
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.duties) || 0) +
49
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.taxes) || 0) +
50
- ((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.fees) || 0);
51
- collectStore.originCompanyName = ((_j = (_h = response.json) === null || _h === void 0 ? void 0 : _h.origin) === null || _j === void 0 ? void 0 : _j.companyName) || null;
52
- if (collectStore.amountTotalPaid === 0) {
53
- void sendErrorLog({
54
- endpoint: 'COLLECT_NO_TOTAL_PAID',
55
- errors: [],
56
- metadata: {
57
- landedCostId,
58
- organizationId: zonosStore.organizationId,
59
- },
60
- });
61
- }
62
- };
63
- const collectStoreAsyncAddressUpdate = async () => {
64
- var _a, _b, _c, _d;
65
- if (!((_a = stripeStore.stripeBillingAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)) {
66
- return {
67
- partiesCreated: false,
68
- };
69
- }
70
- const landedCostRootId = (_c = (_b = cartStore.checkoutSession) === null || _b === void 0 ? void 0 : _b.landedCost) === null || _c === void 0 ? void 0 : _c.rootId;
71
- if (!landedCostRootId) {
72
- // do nothing if we don't have selected landed cost
73
- void sendErrorLog({
74
- endpoint: 'PF_NO_SELECTED_LANDED_COST',
75
- errors: ['No selected landed cost'],
76
- metadata: {
77
- allLogs,
78
- cartId: window.Zonos.cartId,
79
- checkoutSessionId: storageStore.checkoutSessionId,
80
- },
81
- });
82
- return {
83
- partiesCreated: false,
84
- };
85
- }
86
- if (!storageStore.checkoutSessionId) {
87
- void sendErrorLog({
88
- endpoint: 'COLLECT_NO_CHECKOUT_SESSION_ID',
89
- errors: ['No checkout session id'],
90
- metadata: {
91
- allLogs,
92
- cartId: window.Zonos.cartId,
93
- landedCostRootId,
94
- },
95
- });
96
- return {
97
- partiesCreated: false,
98
- };
99
- }
100
- const billingAddress = stripeStoreBuildAddressForPartyCreate({
101
- address: stripeStore.stripeBillingAddressEventData.value.address,
102
- firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
103
- lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
104
- name: stripeStore.stripeBillingAddressEventData.value.name,
105
- phone: stripeStore.stripeBillingAddressEventData.value.phone,
106
- });
107
- const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
108
- const { errors, json } = await handleFetch('/api/zonos-elements/create-billing-party', {
109
- body: {
110
- billingAddress,
111
- checkoutSessionId: storageStore.checkoutSessionId,
112
- companyName: stripeStore.companyName,
113
- email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
114
- isTest: isE2ETest,
115
- rootId: landedCostRootId,
116
- },
117
- method: 'POST',
118
- });
119
- if (errors.length || !json) {
120
- logError('Error occurs when creating billing party', JSON.stringify(errors, null, 2));
121
- void sendErrorLog({
122
- endpoint: 'COLLECT_BILLING_PARTY_CREATE_FAILED',
123
- errors: ['[COLLECT] Failed to create billing party'],
124
- metadata: {
125
- allLogs,
126
- cartId: window.Zonos.cartId,
127
- checkoutSessionId: storageStore.checkoutSessionId,
128
- errors,
129
- json,
130
- },
131
- });
132
- return {
133
- partiesCreated: false,
134
- };
135
- }
136
- collectStore.partyBillingId = json.billToPartyId;
137
- return {
138
- partiesCreated: true,
139
- };
140
- };
141
- const collectStoreUpdateSelectedShippingOption = async (checkoutSession) => {
142
- const landedCost = checkoutSession.landedCost;
143
- if (!landedCost) {
144
- return false;
145
- }
146
- // Convert the landed cost to the format that cartStore expects
147
- cartStore.landedCostData = [
148
- Object.assign(Object.assign({}, checkoutSession), { landedCost: Object.assign({}, landedCost), landedCostId: landedCost.id }),
149
- ];
150
- return cartStoreUpdateSelectedShippingOption({
151
- // No need to update checkout session again, we already called it when starting collect, only need to apply subtotals here to utilize the cart store
152
- applySubtotalsOnly: true,
153
- landedCostId: landedCost.id,
154
- selectedShippingOption: landedCost.shipmentRating,
155
- });
156
- };
157
-
158
- const collectTabletBreakpoint = 1024;
159
- const collectMobileBreakpoint = 768;
160
- const isCollectTablet = (isTablet) => {
161
- return (isTablet ||
162
- (window.innerWidth < collectTabletBreakpoint &&
163
- window.innerWidth >= collectMobileBreakpoint));
164
- };
165
- const isCollectMobile = (isMobile) => {
166
- return isMobile || window.innerWidth < collectMobileBreakpoint;
167
- };
168
-
169
- export { isCollectTablet as a, collectStoreInitShippingInfo as b, collectStoreUpdateSelectedShippingOption as c, collectStoreAsyncAddressUpdate as d, collectStore as e, isCollectMobile as i };