@zonos/elements 1.3.218 → 1.3.219

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 (397) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/index.cjs.js +19 -9
  5. package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/localization-b12edb2a.js +738 -0
  8. package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
  9. package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
  10. package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
  12. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
  20. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  21. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  23. package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
  29. package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
  32. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  35. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  39. package/dist/collection/collection-manifest.json +10 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  43. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  71. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  72. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  73. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  74. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  75. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  76. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  77. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  78. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  79. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  80. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  81. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  82. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  83. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  84. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  85. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  86. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  87. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  88. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  89. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  90. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  91. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  92. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  93. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  94. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  95. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  96. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  97. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  98. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  99. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  100. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  101. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  102. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  103. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  104. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  105. package/dist/collection/components/main/zonos-controller.js +91 -25
  106. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  107. package/dist/collection/components/store/checkout/cart.js +36 -15
  108. package/dist/collection/components/store/checkout/collect.js +157 -0
  109. package/dist/collection/components/store/checkout/paypal.js +4 -2
  110. package/dist/collection/components/store/checkout/stripe.js +31 -12
  111. package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
  112. package/dist/collection/components/store/translationStore/strings.base.js +48 -0
  113. package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
  114. package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
  115. package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
  116. package/dist/collection/components/store/translationStore/strings.french.js +48 -0
  117. package/dist/collection/components/store/translationStore/strings.german.js +48 -0
  118. package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
  119. package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
  120. package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
  121. package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
  122. package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
  123. package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
  124. package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
  125. package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
  126. package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
  127. package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
  128. package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
  129. package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
  130. package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
  131. package/dist/collection/components/store/translationStore.js +2 -1
  132. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  134. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  135. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
  136. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  137. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  138. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  139. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  140. package/dist/collection/components/utils/renderFallback.js +7 -0
  141. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  142. package/dist/collection/scripts/_zonosBase.js +7 -1
  143. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  144. package/dist/collection/types/generated/graphql.internal.types.js +103 -0
  145. package/dist/collection/types/index.js +1 -0
  146. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  147. package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
  148. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  149. package/dist/esm/index.js +19 -9
  150. package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/localization-8646f526.js +719 -0
  153. package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
  154. package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
  155. package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
  156. package/dist/esm/zonos-address_11.entry.js +71 -41
  157. package/dist/esm/zonos-badge.entry.js +3 -3
  158. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  159. package/dist/esm/zonos-button_3.entry.js +3 -3
  160. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
  161. package/dist/esm/zonos-checkout.entry.js +6 -29
  162. package/dist/esm/zonos-collapse.entry.js +2 -2
  163. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  164. package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
  165. package/dist/esm/zonos-collect.entry.js +464 -0
  166. package/dist/esm/zonos-component.entry.js +1 -1
  167. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  168. package/dist/esm/zonos-controller.entry.js +84 -28
  169. package/dist/esm/zonos-country-flag.entry.js +2 -1
  170. package/dist/esm/zonos-country-select_4.entry.js +11 -10
  171. package/dist/esm/zonos-elements.js +1 -1
  172. package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
  173. package/dist/esm/zonos-hello-dialog.entry.js +6 -5
  174. package/dist/esm/zonos-hello.entry.js +2 -1
  175. package/dist/esm/zonos-input.entry.js +4 -4
  176. package/dist/esm/zonos-language-select_2.entry.js +6 -5
  177. package/dist/esm/zonos-link.entry.js +1 -1
  178. package/dist/esm/zonos-logo.entry.js +2 -2
  179. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  180. package/dist/esm/zonos-text.entry.js +1 -1
  181. package/dist/esm/zonos-toggle.entry.js +2 -2
  182. package/dist/esm/zonos-tooltip.entry.js +2 -2
  183. package/dist/esm/zonos-v-stack.entry.js +2 -2
  184. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  185. package/dist/esm-es5/cart-acf4ebf5.js +1 -0
  186. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  187. package/dist/esm-es5/index.js +1 -1
  188. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
  189. package/dist/esm-es5/loader.js +1 -1
  190. package/dist/esm-es5/localization-8646f526.js +1 -0
  191. package/dist/esm-es5/paypal-2fa930eb.js +17 -0
  192. package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
  193. package/dist/esm-es5/translationStore-c9743292.js +1 -0
  194. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  195. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  196. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  197. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  198. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  199. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  202. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  203. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  204. package/dist/esm-es5/zonos-component.entry.js +1 -1
  205. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  206. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  207. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  208. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  209. package/dist/esm-es5/zonos-elements.js +1 -1
  210. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  211. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  212. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  213. package/dist/esm-es5/zonos-input.entry.js +1 -1
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-link.entry.js +1 -1
  216. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  217. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  218. package/dist/esm-es5/zonos-text.entry.js +1 -1
  219. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  220. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  221. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  222. package/dist/scripts/index.d.ts +470 -3
  223. package/dist/scripts/index.js +1 -1
  224. package/dist/scripts/loadZonos.js +1 -1
  225. package/dist/scripts/zonos.js +1 -1
  226. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  227. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
  228. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  229. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  230. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  231. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  232. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  233. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  234. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  235. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  236. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  237. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  238. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  239. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  240. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  241. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  242. package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
  243. package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
  244. package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
  245. package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
  246. package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
  247. package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
  248. package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
  249. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
  250. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
  251. package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
  252. package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
  253. package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
  254. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
  255. package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
  256. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
  257. package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
  258. package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
  259. package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
  260. package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
  261. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
  262. package/dist/types/components/store/translationStore.d.ts +2 -1
  263. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  264. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
  265. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  266. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  267. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  268. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  269. package/dist/types/components.d.ts +401 -2
  270. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  271. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  272. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  273. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  274. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  275. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  276. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  277. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  278. package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
  279. package/dist/types/types/generated/graphql.internal.types.ts +428 -10
  280. package/dist/types/types/index.d.ts +1 -0
  281. package/dist/zonos-elements/index.esm.js +1 -1
  282. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
  284. package/dist/zonos-elements/p-07bea979.system.js +1 -0
  285. package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
  286. package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
  287. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  288. package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
  289. package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
  291. package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
  292. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
  294. package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
  297. package/dist/zonos-elements/p-29c80a34.js +1 -0
  298. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
  300. package/dist/zonos-elements/p-2cc031b3.js +17 -0
  301. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
  302. package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
  303. package/dist/zonos-elements/p-485416ec.js +1 -0
  304. package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
  305. package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
  306. package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
  307. package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
  308. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
  310. package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
  311. package/dist/zonos-elements/p-6761091e.entry.js +1 -0
  312. package/dist/zonos-elements/p-6761286d.js +1 -0
  313. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  314. package/dist/zonos-elements/p-69fd1b88.js +1 -0
  315. package/dist/zonos-elements/p-6dd63754.system.js +1 -0
  316. package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
  317. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
  319. package/dist/zonos-elements/p-772ac0b7.js +1 -0
  320. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  321. package/dist/zonos-elements/p-81e23f30.system.js +1 -0
  322. package/dist/zonos-elements/p-873b698a.entry.js +1 -0
  323. package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
  324. package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
  325. package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
  326. package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-986ebccc.js +1 -0
  328. package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
  329. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
  331. package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
  332. package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
  333. package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  335. package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
  336. package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
  337. package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
  338. package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
  339. package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
  341. package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
  342. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
  343. package/dist/zonos-elements/p-d63696ac.system.js +17 -0
  344. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
  345. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
  346. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
  347. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
  348. package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
  349. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  350. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
  351. package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
  353. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
  354. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  355. package/package.json +1 -1
  356. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  357. package/dist/esm/zonos-card.entry.js +0 -45
  358. package/dist/esm-es5/cart-bb0ee971.js +0 -1
  359. package/dist/esm-es5/localization-d8326254.js +0 -1
  360. package/dist/esm-es5/paypal-bd4520eb.js +0 -17
  361. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  362. package/dist/esm-es5/zonos-card.entry.js +0 -1
  363. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  364. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  365. package/dist/zonos-elements/p-0631d2b9.js +0 -1
  366. package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
  367. package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
  372. package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
  373. package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
  375. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  376. package/dist/zonos-elements/p-674981ad.system.js +0 -1
  377. package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
  378. package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
  379. package/dist/zonos-elements/p-795d223d.entry.js +0 -1
  380. package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
  382. package/dist/zonos-elements/p-88f7256d.js +0 -1
  383. package/dist/zonos-elements/p-8b083884.entry.js +0 -1
  384. package/dist/zonos-elements/p-a449940d.entry.js +0 -1
  385. package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
  386. package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  389. package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
  390. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  391. package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
  392. package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
  394. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  395. package/dist/zonos-elements/p-ef75da6f.js +0 -17
  396. package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
  397. package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(n,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))t[e]=n[e]};return t(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(t,n,e,i){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function u(t){try{c(i["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):o(t.value).then(s,u)}c((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(n){return c([t,n])}}function c(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(e=0)),e)try{if(i=1,o&&(r=u[0]&2?o["return"]:u[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;if(o=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){e.label=u[1];break}if(u[0]===6&&e.label<r[1]){e.label=r[1];r=u;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(u);break}if(r[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];o=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,n,e){if(e||arguments.length===2)for(var i=0,o=n.length,r;i<o;i++){if(r||!(i in n)){if(!r)r=Array.prototype.slice.call(n,0,i);r[i]=n[i]}}return t.concat(r||Array.prototype.slice.call(n))};System.register(["./p-5fc34563.system.js","./p-d3dbae8c.system.js","./p-674981ad.system.js","./p-9d863a3b.system.js","./p-4160bbc2.system.js","./p-062430f9.system.js","./p-e7f8595f.system.js","./p-e63b8b24.system.js","./p-5a2dd041.system.js"],(function(t){"use strict";var n,e,i,o,r,s,u,c,a,f,d,l,h,v,w,p,m,g;return{setters:[function(t){n=t.r;e=t.c;i=t.h;o=t.H},function(t){r=t.c},function(t){s=t.i;u=t.e;c=t.s;a=t.a},function(t){f=t.z;d=t.e;l=t.f},function(t){h=t.g;v=t.i;w=t.a},function(t){p=t.h;m=t.b;g=t.l},function(){},function(){},function(){}],execute:function(){var _=this;var y=function(){return __awaiter(_,void 0,void 0,(function(){var t,n,e,i,o,r;return __generator(this,(function(s){switch(s.label){case 0:if(window.Zonos.cartSettings){return[2,{errors:[],json:window.Zonos.cartSettings,zonosMode:window.Zonos.zonosMode}]}t=h();n=new URLSearchParams;if(t.overrideShouldEnabledCustomAddress){n.set("overrideShouldEnabledCustomAddress",t.overrideShouldEnabledCustomAddress)}return[4,p("/api/zonos-elements/zonos-settings?".concat(n.toString()))];case 1:e=s.sent(),i=e.errors,o=e.json,r=e.zonosMode;if(i.length){m("Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings");return[2,{errors:i,json:null,zonosMode:r}]}return[2,{errors:[],json:o,zonosMode:r}]}}))}))};var b=function(){var t=document.querySelector("zonos-checkout");if(!t){var n=document.createElement("zonos-checkout");document.body.appendChild(n)}};var S=function(t){if(!t.placeOrderButtonSelector&&!t.alwaysTriggerInternationalCheckoutSelector&&!window.Zonos.cartData){return}if(t.placeOrderButtonSelector&&!s(t.placeOrderButtonSelector)){m('Selector checkoutButtonAnchor "'.concat(t.placeOrderButtonSelector,'" is not a valid selector'));return}if(t.alwaysTriggerInternationalCheckoutSelector&&!s(t.alwaysTriggerInternationalCheckoutSelector)){m('Selector alwaysTriggerInternationalCheckoutSelector "'.concat(t.alwaysTriggerInternationalCheckoutSelector,'" is not a valid selector'));return}b()};var z=function(t){var n=document.querySelector(t);var e=document.querySelector("zonos-hello");if(!e&&n){var i=document.createElement("zonos-hello");n.appendChild(i);return true}return false};var I=function(t){switch(t){case"BOTTOM_RIGHT":return"bottom-right";case"BOTTOM_LEFT":return"bottom-left";case"TOP_LEFT":return"top-left";case"TOP_RIGHT":return"top-right";default:return"bottom-right"}};var j=function(t){var n=t.position,e=n===void 0?"bottom-right":n;var i=".zonos--hello-mobile-wrapper";var o=document.querySelector(i);if(o){return i}var r=document.createElement("div");r.className="zonos--hello-mobile-wrapper";r.style.position="fixed";if(e==="top-right"){r.style.top="72px";r.style.right="24px"}if(e==="top-left"){r.style.top="72px";r.style.left="24px"}if(e==="bottom-right"){r.style.bottom="72px";r.style.right="24px"}if(e==="bottom-left"){r.style.bottom="72px";r.style.left="24px"}r.style.zIndex="2147483647";document.body.appendChild(r);return i};var k=function(t){return __awaiter(_,void 0,void 0,(function(){var n,e,i,o,r;return __generator(this,(function(u){if(window.Zonos.isLegacyCheckout){g("Hello is disabled when isLegacyCheckout","info");return[2]}n=t.anchorElementSelector;e=n;if(!t.anchorElementSelector&&t.desktopLocation){i=j({position:"bottom-right"});e=i}if(!e||!s(e)){m('Selector anchorElementSelector "'.concat(t.anchorElementSelector,'" is not a valid selector.'));return[2]}g("Hello init complete");o=z(e);if(!o){r=new MutationObserver((function(){var t=z(e);if(t){r.disconnect()}}));r.observe(document.body,{childList:true,subtree:true});setTimeout((function(){z(e)}),1e3);setTimeout((function(){if(t.notFoundElementFallback){g("Hello anchor selector ".concat(t.anchorElementSelector," not found after 3 seconds, falling back to 'notFoundElementFallback': ").concat(t.notFoundElementFallback),"info");var n=j({position:I(t.notFoundElementFallback)});z(n)}}),3e3)}return[2]}))}))};var O=function(){function t(t,n){var e=this;this.targetId=t;this.allowedEvents=n;this.listeners=new Map;this.handleMessage=function(t){var n,i,o;var r=t.data;var s=((n=e.iframe)===null||n===void 0?void 0:n.contentWindow)||((o=(i=e.iframe)===null||i===void 0?void 0:i.contentDocument)===null||o===void 0?void 0:o.defaultView);if(t.source!==s){return}if(!e.isValidMessage(r)){return}var u=e.listeners.get(r.type);u===null||u===void 0?void 0:u.forEach((function(t){try{t(r.payload)}catch(t){m("Error in event listener:",t)}}))};this.initializeEventListeners();this.iframe=document.getElementById(this.targetId)}t.prototype.initializeEventListeners=function(){window.addEventListener("message",this.handleMessage)};t.prototype.isValidMessage=function(t){if(!t||typeof t!=="object")return false;var n=t;return n.id===this.targetId&&typeof n.type==="string"&&this.allowedEvents.includes(n.type)&&n.payload!==undefined};t.prototype.on=function(t,n){var e=this;if(!this.listeners.has(t)){this.listeners.set(t,new Set)}g("[CheckoutAddressService] listening to ".concat(t),"info");var i=n;var o=this.listeners.get(t);if(o){o.add(i)}return function(){var n=e.listeners.get(t);if(n){n.delete(i)}}};t.prototype.destroy=function(){window.removeEventListener("message",this.handleMessage);this.listeners.clear()};return t}();var A=function(t){__extends(n,t);function n(){g("=== [Google Places Service] Initializing","info");return t.call(this,v.GOOGLE_PLACES,["fetchAutocompleteSuggestions","initializeGooglePlacesService","placeSelected","onFetchAutocompleteSuggestions","onInitializeGooglePlacesService","onPlaceSelected"])||this}n.prototype.sendMessage=function(t,n){var e;if(!((e=this.iframe)===null||e===void 0?void 0:e.contentWindow)){return}var i={id:this.targetId,logType:window.Zonos.iframeLogType,payload:n,type:t};g("GooglePlacesService] parent --\x3e ".concat(t),"info",n);this.iframe.contentWindow.postMessage(i,"*")};n.prototype.initialize=function(){this.sendMessage("initializeGooglePlacesService",{})};n.prototype.fetchSuggestions=function(t){var n=t.country,e=t.query,i=t.type;if(!n){return}this.sendMessage("fetchAutocompleteSuggestions",{request:{includedRegionCodes:[n],input:e},type:i})};n.prototype.selectPlace=function(t){var n=t.placeId,e=t.type;this.sendMessage("placeSelected",{placeId:n,type:e})};return n}(O);var T=function(){function t(){var t=this;this.googlePlaceInitialized=false;g("=== [CheckoutAddressService] Initializing","info");this.googlePlaces=new A;this.googlePlaces.on("onInitializeGooglePlacesService",(function(){g("=== [CheckoutAddressService] parent <-- onInitializeGooglePlacesService","info");t.googlePlaceInitialized=true}));this.initialize()}t.prototype.initialize=function(){this.googlePlaces.initialize()};t.prototype.onInitializeGooglePlacesService=function(t){return this.googlePlaces.on("onInitializeGooglePlacesService",(function(){g("[CheckoutAddressService] parent <-- onInitializeGooglePlacesService");t()}))};t.prototype.isGooglePlaceInitialized=function(){return this.googlePlaceInitialized};t.prototype.onAddressSuggestions=function(t){this.suggestionsCallback=t;return this.googlePlaces.on("onFetchAutocompleteSuggestions",(function(){var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}g.apply(void 0,__spreadArray(["[CheckoutAddressService] parent <-- onFetchAutocompleteSuggestions ".concat(n[0].type),"info"],n,false));t.apply(void 0,n)}))};t.prototype.onAddressSelected=function(t){this.placeSelectedCallback=t;return this.googlePlaces.on("onPlaceSelected",(function(){var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}g.apply(void 0,__spreadArray(["[CheckoutAddressService] parent <-- onPlaceSelected ".concat(n[0].type),"info"],n,false));t.apply(void 0,n)}))};t.prototype.getAddressSuggestions=function(t){var n=t.country,e=t.query,i=t.type;if(!this.googlePlaceInitialized){return}this.googlePlaces.fetchSuggestions({country:n,query:e,type:i})};t.prototype.selectAddress=function(t){var n=t.placeId,e=t.type;this.googlePlaces.selectPlace({placeId:n,type:e})};t.prototype.destroy=function(){this.googlePlaces.destroy();if(this.suggestionsCallback){this.suggestionsCallback=undefined}if(this.placeSelectedCallback){this.placeSelectedCallback=undefined}};return t}();var E=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{visibility:hidden;opacity:0;height:0}";var C=E;var P=t("zonos_controller",function(){function t(t){n(this,t);this.paypalInitEvent=e(this,"paypalInitEvent",7);this.stripeInitEvent=e(this,"stripeInitEvent",7)}t.prototype.initCheckoutElement=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(!t){g("Stripe is not loaded yet - cannot init checkout element","warn");return[2]}r.stripe=t;void S(f.checkoutSettings);g("init checkout element");return[2]}))}))};t.prototype.initZonosNotification=function(){var t=document.querySelector("zonos-notification");if(t){return}var n=document.createElement("zonos-notification");document.body.appendChild(n)};t.prototype.setupGoogleFont=function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,o,r,s,u,c;return __generator(this,(function(a){switch(a.label){case 0:i=t||l();if(i==="Inter"){if(!t){return[2]}g("[FONT] Just applied Inter , but no need to inject since we already inject Inter on start","warn");f.appearance=Object.assign(Object.assign({},f.appearance),{fontFamily:t})}o=new URLSearchParams;o.set("family",i);return[4,p("/api/zonos-elements/get-font-detail?".concat(o.toString()))];case 1:r=a.sent(),s=r.errors,u=r.json;if(s.length>0){g("Failed to load font ".concat(i),"warn");f.appearance=Object.assign(Object.assign({},f.appearance),{fontFamily:"Inter"});return[2]}c=u===null||u===void 0?void 0:u.fontUrl;if(c){(e=(n=window.Zonos).injectSupportGoogleFont)===null||e===void 0?void 0:e.call(n,c)}if(!t){return[2]}g("[FONT] ".concat(t," font override applied"));f.appearance=Object.assign(Object.assign({},f.appearance),{fontFamily:t});return[2]}}))}))};t.prototype.handleLocationChange=function(){void k(f.helloSettings)};t.prototype.initHistoryListener=function(){var t=history.pushState;history.pushState=function n(){window.dispatchEvent(new window.Event("pushstate"));window.dispatchEvent(new window.Event("locationchange"));return t.apply(this,arguments)};var n=history.replaceState;history.replaceState=function t(){window.dispatchEvent(new window.Event("replacestate"));window.dispatchEvent(new window.Event("locationchange"));return n.apply(this,arguments)}};t.prototype.injectCustomHTML=function(t){if(!t){return}if(!window.Zonos.isLegacyCheckout){g("=== Skip injecting custom HTML for hosted checkout","info");return}g("=== Injecting custom HTML for hosted checkout");var n=document.createElement("template");n.innerHTML=t;var e=n.content.querySelectorAll("script");e.forEach((function(t){var n=document.createElement("script");if(t.src){n.src=t.src;n.async=t.async}else{n.textContent=t.innerHTML}document.body.appendChild(n)}))};t.prototype.initGooglePlacesService=function(t){return __awaiter(this,void 0,void 0,(function(){var n,e;return __generator(this,(function(i){n=t===null||t===void 0?void 0:t.genericSettings;if(!n){return[2]}e=n.signedTokenGooglePlaces;if(!e){return[2]}w({id:v.GOOGLE_PLACES,onload:function(){f.checkoutAddressService=new T},src:"".concat("https://route.elements.zonos.com","/iframe/google-maps?signedToken=").concat(e)});return[2]}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){this.initHistoryListener();f.zonosApiKey=this.zonosApiKey;(function(){return __awaiter(t,void 0,void 0,(function(){var t,n,e,i,o,r,s,c,a,l,h,v,w,p,m;var _=this;return __generator(this,(function(b){switch(b.label){case 0:return[4,y()];case 1:s=b.sent(),c=s.errors,a=s.json,l=s.zonosMode;if(((n=(t=c[0])===null||t===void 0?void 0:t.type)===null||n===void 0?void 0:n.toString())==="403"){g("Failed to load zonos settings. This domain may not have access","warn");return[2]}h=((e=a===null||a===void 0?void 0:a.checkoutSettings)===null||e===void 0?void 0:e.customHTML)||"";this.injectCustomHTML(h);this.initZonosNotification();v=function(){var t,n,e;if(window.Zonos.isLegacyCheckout){return((t=a===null||a===void 0?void 0:a.appearanceSettings)===null||t===void 0?void 0:t.logoUrl)||((n=_.config.appearance)===null||n===void 0?void 0:n.logoUrl)}return(e=_.config.appearance)===null||e===void 0?void 0:e.logoUrl};w=window.Zonos.isLegacyCheckout&&!!window.Zonos.cartData&&((i=this.config.checkoutSettings)===null||i===void 0?void 0:i.successBehavior)==="CLOSE_MODAL";p=Object.assign(Object.assign({},this.config),{appearance:Object.assign(Object.assign({},this.config.appearance),{logoUrl:v()}),checkoutSettings:this.config.checkoutSettings?Object.assign(Object.assign({},this.config.checkoutSettings),{allowedSettlementCurrencies:undefined,captureDelay:undefined,subscriptionStatus:undefined,successBehavior:w?"ZONOS_SUCCESS_PAGE":this.config.checkoutSettings.successBehavior,successRedirectUrl:w?((o=window.Zonos.cartData)===null||o===void 0?void 0:o.storeBaseUrl)||(a===null||a===void 0?void 0:a.onlineStoreSettings.url):this.config.checkoutSettings.successRedirectUrl}):undefined});d({overrideSettings:p,zonosSettings:a});f.zonosMode=l;void this.setupGoogleFont();if(f.helloSettings.visibilityStatus==="DISABLED"){g("=== Hello is disabled by store owner ===","warn")}if(f.helloSettings&&f.helloSettings.visibilityStatus==="ENABLED"){g("Initializing hello");void k(f.helloSettings)}return[4,u()];case 2:b.sent();m=((r=a===null||a===void 0?void 0:a.checkoutSettings)===null||r===void 0?void 0:r.externalServiceTokens.find((function(t){return t.type==="STRIPE_PUBLISHABLE_TOKEN"})))||null;if(!m||!this.stripeInitEvent){g("Checkout failed to load -- missing publishable key","warn");return[2]}if(f.checkoutSettings.subscriptionStatus==="INACTIVE"){g('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn");g("zonos controller loaded");return[2]}if(f.checkoutSettings.visibilityStatus==="DISABLED"){g("=== Checkout is disabled by store owner ===","warn");g("zonos controller loaded");return[2]}this.stripeInitEvent.emit({publishableKey:m.token});void this.initGooglePlacesService(a);return[2]}}))}))})();return[2]}))}))};t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){n=document.querySelector("zonos-notification");if(!n){g("Failed to show notification - zonos-notification not found","warn");return[2]}void n.showNotification(t);return[2]}))}))};t.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){c.checkoutSessionId=null;r.clientSecret="";return[2]}))}))};t.prototype.overrideConfig=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){d({overrideSettings:t,zonosSettings:null});return[2]}))}))};t.prototype.overrideCountry=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){g("Override country code to ".concat(t));void a(t);return[2]}))}))};t.prototype.getAppearanceSetting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,f.appearance]}))}))};t.prototype.updateOrganizationName=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){f.organizationName=t;return[2]}))}))};t.prototype.render=function(){return i(o,{key:"62c0b3079d64f05800da24daa19e0e1e3a890bca",class:"zonos--elements"})};return t}());P.style=C}}}));
@@ -1 +0,0 @@
1
- import{r as o,c as s,h as t,H as n,a as i}from"./p-b30c2ad9.js";import{f as e,z as p}from"./p-7ce093aa.js";import{i as r,a}from"./p-eef5b0cc.js";import{c as l}from"./p-b4b7f705.js";import{g as c}from"./p-2b9c124d.js";import{i as z}from"./p-56e0ed65.js";import"./p-04a01cb1.js";let u=0;const d=class{constructor(t){o(this,t),this.inputChange=s(this,"inputChange",7),this.inheritedAttributes={},this.inputId="zonos--input-"+ ++u,this.inputValue="",this.isDisabled=!1,this.isError=!1,this.error="",this.inputPlaceholder="",this.value="",this.required=!1,this.internalValue=this.inputValue}onInputValueChange(o){this.internalValue=o,this.inputChange.emit(o),this.value=o}onValueChange(o){this.internalValue=o}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},r(this.el)),a(this.el,["tabindex","title","data-form-type","dir"]))}render(){const o=this.overridePrimaryColor||p.appearance.colorPrimary,s=this.overrideSecondaryColor||p.appearance.colorSecondary,i=o&&z(o),r=p.appearance.fontSizeInputValue||16;return t(n,{key:"ce50e8c3f41abc7f7605a4423dc21c5fce755c9a",class:l(["zonos--input zonos--elements",i&&"dark",(this.isError||!!this.error)&&"has-error"]),"data-theme":i?"DARK":"LIGHT",style:{"--zonos--border-radius":c(),"--zonos--font-family":e(),"--zonos--font-size":`${r}px`,"--zonos--primary-color":s}},t("div",{key:"8953c4cf31d9de771ef8f6351476d5db9de5655a",class:l(["zonos--label-wrapper",this.isDisabled&&"disabled"])},t("input",Object.assign({key:"c66c0e5787191ab6bb804755da7477e222b3ff40"},this.inheritedAttributes,{autoComplete:this.autoComplete,class:l(["zonos--floated-input",!!this.inputLabel&&"has-label",this.internalValue&&"has-content",(this.isError||!!this.error)&&"has-error"]),disabled:this.isDisabled,id:this.inputId,name:this.name,onInput:o=>{const s=o.target;this.inputChange.emit(s.value),this.el.inputValue=s.value,this.el.dispatchEvent(new Event("change"))},placeholder:this.inputPlaceholder||"",required:this.required,type:"text",value:this.internalValue})),t("div",{key:"17c7fa7ef87bf765203cadb3ff24ead25ac45332",class:"zonos--floated-label"},t("label",{key:"4d7c8e503bd0dc0081b13a36c2a1c5f976ee93e3",htmlFor:this.inputId},this.inputLabel))),this.error&&t("zonos-text",{key:"1352d1d09b05a25ced56d31b16cf1f203b0eaaec",textColor:"red-600",type:"caption"},this.error))}get el(){return i(this)}static get watchers(){return{inputValue:["onInputValueChange"],value:["onValueChange"]}}};d.style='.sc-zonos-stripe-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-input-h *.sc-zonos-stripe-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-input-h img.sc-zonos-stripe-input{max-width:100%}.sc-zonos-stripe-input-h dl.sc-zonos-stripe-input,.sc-zonos-stripe-input-h dd.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h1.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h2.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h3.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h4.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h5.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h6.sc-zonos-stripe-input,.sc-zonos-stripe-input-h hr.sc-zonos-stripe-input,.sc-zonos-stripe-input-h figure.sc-zonos-stripe-input,.sc-zonos-stripe-input-h p.sc-zonos-stripe-input,.sc-zonos-stripe-input-h pre.sc-zonos-stripe-input{margin:0}.sc-zonos-stripe-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}.dark.sc-zonos-stripe-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-input-h{margin:1px}.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;height:calc(var(--zonos-elements-size-xl) - 2px)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected+label.sc-zonos-stripe-input+div.sc-zonos-stripe-input{background-color:#e8f0fe}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.sc-zonos-stripe-input{padding:24px 4px 2px 16px}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input{padding-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{margin-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus{outline:none;border:var(--zonos--border)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}.sc-zonos-stripe-input-h .zonos--floated-input.has-error.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-webkit-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-moz-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input:-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-webkit-autofill,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input{pointer-events:inherit}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input::after{cursor:not-allowed;z-index:1}.dark.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{background:#30313d}';export{d as zonos_stripe_input}