@zonos/elements 1.3.266 → 1.3.268

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 (346) hide show
  1. package/dist/cjs/{cart-efc42379.js → cart-af7c024e.js} +129 -4
  2. package/dist/cjs/{debounce-606d1801.js → debounce-7990f5ea.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-a91911e7.js → getBorderRadius-fc683d94.js} +1 -1
  4. package/dist/cjs/{getContrastColor-ce80dbe7.js → getContrastColor-d5134ef3.js} +2 -2
  5. package/dist/cjs/{hasInclusivePrice-400be1b2.js → hasInclusivePrice-0fa6e022.js} +1 -1
  6. package/dist/cjs/index.cjs.js +7 -7
  7. package/dist/cjs/{invoice-9e4d479f.js → invoice-c2e3f232.js} +3 -3
  8. package/dist/cjs/{isCollectMobileTablet-630fcf87.js → isCollectMobileTablet-6014787b.js} +3 -3
  9. package/dist/cjs/{isContrastColor-a02c4889.js → isContrastColor-76592c92.js} +1 -1
  10. package/dist/cjs/{isDarkColor-e317bb06.js → isDarkColor-5d6ca405.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{localization-4b17c530.js → localization-f897bc45.js} +472 -1
  13. package/dist/cjs/{paypal-3bb55914.js → paypal-6756a0da.js} +60 -18
  14. package/dist/cjs/{placeTestOrder-313cbd78.js → placeTestOrder-a4874e51.js} +2 -2
  15. package/dist/cjs/{renderCheckoutCurrency-e0436f1c.js → renderCheckoutCurrency-584d50fe.js} +2 -2
  16. package/dist/cjs/{submitGtag-07a3b09e.js → submitGtag-4906b161.js} +1 -1
  17. package/dist/cjs/{throttle-8aebac7d.js → throttle-02c2e917.js} +2 -2
  18. package/dist/cjs/{updateCheckoutSessionAttributes-a9a97194.js → updateCheckoutSessionAttributes-47d73942.js} +1 -1
  19. package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
  21. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +94 -27
  26. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-checkout.cjs.entry.js +112 -85
  28. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  30. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
  31. package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
  32. package/dist/cjs/zonos-controller.cjs.entry.js +126 -7
  33. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  35. package/dist/cjs/zonos-elements.cjs.js +1 -1
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/{zonos-store-credit.cjs.entry.js → zonos-policy-consent_2.cjs.entry.js} +91 -6
  45. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-0662b95f.js → zonosStore-45a87908.js} +1 -0
  50. package/dist/collection/collection-manifest.json +1 -0
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +7 -2
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +66 -12
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +103 -75
  54. package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.css +93 -0
  55. package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.js +93 -0
  56. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
  57. package/dist/collection/components/main/zonos-controller.js +6 -2
  58. package/dist/collection/components/store/checkout/paypal.js +57 -14
  59. package/dist/collection/components/store/checkout/policyConsent.js +58 -0
  60. package/dist/collection/components/store/checkout/stripe.js +66 -0
  61. package/dist/collection/components/store/hello/localization.js +6 -0
  62. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
  63. package/dist/collection/components/store/translationStore/strings.base.js +21 -0
  64. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
  65. package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
  66. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
  67. package/dist/collection/components/store/translationStore/strings.french.js +21 -0
  68. package/dist/collection/components/store/translationStore/strings.german.js +21 -0
  69. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -0
  70. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
  71. package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
  72. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
  73. package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
  74. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
  75. package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
  76. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
  77. package/dist/collection/components/store/translationStore/strings.russian.js +21 -0
  78. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
  79. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
  80. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
  81. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
  82. package/dist/collection/components/store/zonosStore.js +1 -0
  83. package/dist/collection/components/utils/checkout/injectDomesticElementHideStyle.js +116 -0
  84. package/dist/collection/types/generated/graphql.internal.types.js +351 -73
  85. package/dist/collection/utils/toggleBigcommerceNativeCurrencySelector.js +48 -0
  86. package/dist/esm/{cart-62c166fc.js → cart-68c16805.js} +125 -5
  87. package/dist/esm/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
  88. package/dist/esm/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
  89. package/dist/esm/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +2 -2
  90. package/dist/esm/{hasInclusivePrice-a73f64b7.js → hasInclusivePrice-f1ca1610.js} +1 -1
  91. package/dist/esm/index.js +7 -7
  92. package/dist/esm/{invoice-fa4ff6fb.js → invoice-d0eadc6a.js} +3 -3
  93. package/dist/esm/{isCollectMobileTablet-5f50ec81.js → isCollectMobileTablet-11ade63f.js} +3 -3
  94. package/dist/esm/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
  95. package/dist/esm/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
  96. package/dist/esm/loader.js +1 -1
  97. package/dist/esm/{localization-d2631105.js → localization-8e81b696.js} +472 -1
  98. package/dist/esm/{paypal-424d040d.js → paypal-e32877e9.js} +60 -18
  99. package/dist/esm/{placeTestOrder-cf237d95.js → placeTestOrder-4cf429d7.js} +2 -2
  100. package/dist/esm/{renderCheckoutCurrency-513ead96.js → renderCheckoutCurrency-9459b8a3.js} +2 -2
  101. package/dist/esm/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
  102. package/dist/esm/{throttle-882b1f47.js → throttle-f09d0659.js} +2 -2
  103. package/dist/esm/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
  104. package/dist/esm/zonos-address-display_8.entry.js +7 -7
  105. package/dist/esm/zonos-address_4.entry.js +7 -7
  106. package/dist/esm/zonos-badge.entry.js +1 -1
  107. package/dist/esm/zonos-banner.entry.js +1 -1
  108. package/dist/esm/zonos-button_3.entry.js +3 -3
  109. package/dist/esm/zonos-card_5.entry.js +8 -8
  110. package/dist/esm/zonos-cart-items_12.entry.js +94 -27
  111. package/dist/esm/zonos-checkbox_2.entry.js +3 -3
  112. package/dist/esm/zonos-checkout.entry.js +112 -85
  113. package/dist/esm/zonos-collapse.entry.js +1 -1
  114. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  115. package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
  116. package/dist/esm/zonos-collect.entry.js +9 -9
  117. package/dist/esm/zonos-controller.entry.js +126 -7
  118. package/dist/esm/zonos-country-flag.entry.js +2 -2
  119. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  120. package/dist/esm/zonos-elements.js +1 -1
  121. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  122. package/dist/esm/zonos-hello.entry.js +3 -3
  123. package/dist/esm/zonos-input.entry.js +2 -2
  124. package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
  125. package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
  126. package/dist/esm/zonos-invoice.entry.js +9 -9
  127. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  128. package/dist/esm/zonos-logo.entry.js +1 -1
  129. package/dist/esm/{zonos-store-credit.entry.js → zonos-policy-consent_2.entry.js} +91 -7
  130. package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
  131. package/dist/esm/zonos-stripe-input.entry.js +3 -3
  132. package/dist/esm/zonos-text.entry.js +1 -1
  133. package/dist/esm/zonos-v-stack.entry.js +1 -1
  134. package/dist/esm/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -0
  135. package/dist/esm-es5/cart-68c16805.js +1 -0
  136. package/dist/esm-es5/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
  137. package/dist/esm-es5/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
  138. package/dist/esm-es5/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +1 -1
  139. package/dist/esm-es5/{hasInclusivePrice-a73f64b7.js → hasInclusivePrice-f1ca1610.js} +1 -1
  140. package/dist/esm-es5/index.js +1 -1
  141. package/dist/esm-es5/{invoice-fa4ff6fb.js → invoice-d0eadc6a.js} +1 -1
  142. package/dist/esm-es5/{isCollectMobileTablet-5f50ec81.js → isCollectMobileTablet-11ade63f.js} +1 -1
  143. package/dist/esm-es5/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
  144. package/dist/esm-es5/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
  145. package/dist/esm-es5/loader.js +1 -1
  146. package/dist/esm-es5/localization-8e81b696.js +1 -0
  147. package/dist/esm-es5/{paypal-424d040d.js → paypal-e32877e9.js} +2 -2
  148. package/dist/esm-es5/{placeTestOrder-cf237d95.js → placeTestOrder-4cf429d7.js} +1 -1
  149. package/dist/esm-es5/{renderCheckoutCurrency-513ead96.js → renderCheckoutCurrency-9459b8a3.js} +1 -1
  150. package/dist/esm-es5/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
  151. package/dist/esm-es5/throttle-f09d0659.js +1 -0
  152. package/dist/esm-es5/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
  153. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  154. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  155. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  156. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  157. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  158. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  159. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  160. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  161. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  162. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  163. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  164. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  165. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  166. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  167. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  168. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  169. package/dist/esm-es5/zonos-elements.js +1 -1
  170. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  171. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  172. package/dist/esm-es5/zonos-input.entry.js +1 -1
  173. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  174. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  175. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  176. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  177. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  178. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -0
  179. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  180. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  181. package/dist/esm-es5/zonos-text.entry.js +1 -1
  182. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  183. package/dist/esm-es5/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -1
  184. package/dist/scripts/index.d.ts +105 -11
  185. package/dist/scripts/index.js +1 -1
  186. package/dist/scripts/loadZonos.js +1 -1
  187. package/dist/scripts/zonos.js +1 -1
  188. package/dist/types/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.d.ts +3 -0
  189. package/dist/types/components/store/checkout/policyConsent.d.ts +41 -0
  190. package/dist/types/components/store/checkout/stripe.d.ts +13 -0
  191. package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
  192. package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
  193. package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
  194. package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
  195. package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
  196. package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
  197. package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
  198. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
  199. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
  200. package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
  201. package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
  202. package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
  203. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
  204. package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
  205. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
  206. package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
  207. package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
  208. package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
  209. package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
  210. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
  211. package/dist/types/components/utils/checkout/injectDomesticElementHideStyle.d.ts +18 -0
  212. package/dist/types/components.d.ts +13 -0
  213. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +29 -11
  214. package/dist/types/types/checkout/CheckoutConfig.d.ts +32 -0
  215. package/dist/types/types/generated/graphql.internal.types.d.ts +501 -119
  216. package/dist/types/types/generated/graphql.internal.types.ts +561 -154
  217. package/dist/types/types/utils/ZonosSettings.d.ts +9 -0
  218. package/dist/types/utils/toggleBigcommerceNativeCurrencySelector.d.ts +17 -0
  219. package/dist/zonos-elements/index.esm.js +1 -1
  220. package/dist/zonos-elements/{p-7b640194.entry.js → p-000b895a.entry.js} +1 -1
  221. package/dist/zonos-elements/p-01913da8.js +1 -0
  222. package/dist/zonos-elements/{p-bbbbae9a.system.entry.js → p-06e7fe2a.system.entry.js} +1 -1
  223. package/dist/zonos-elements/p-0803ad10.js +1 -0
  224. package/dist/zonos-elements/{p-79e5a629.system.entry.js → p-0e36a7cf.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-8cd0a098.system.entry.js → p-108b5307.system.entry.js} +1 -1
  226. package/dist/zonos-elements/p-11439d12.entry.js +1 -0
  227. package/dist/zonos-elements/{p-b6df4cc2.system.entry.js → p-134c5010.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-ea88f7f5.system.entry.js → p-1376e67f.system.entry.js} +1 -1
  229. package/dist/zonos-elements/p-14d6542f.system.js +1 -0
  230. package/dist/zonos-elements/p-17be8409.entry.js +1 -0
  231. package/dist/zonos-elements/{p-a75baf3e.js → p-17e3cd62.js} +1 -1
  232. package/dist/zonos-elements/{p-0207c91e.system.js → p-18af6aaa.system.js} +1 -1
  233. package/dist/zonos-elements/p-1eef8c23.system.js +1 -0
  234. package/dist/zonos-elements/p-24091606.system.entry.js +1 -0
  235. package/dist/zonos-elements/{p-6b6cfc59.system.entry.js → p-26ae4ee7.system.entry.js} +1 -1
  236. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  237. package/dist/zonos-elements/{p-71fb6126.entry.js → p-2afecda7.entry.js} +1 -1
  238. package/dist/zonos-elements/p-2ccd20c0.system.js +1 -0
  239. package/dist/zonos-elements/{p-d28be518.js → p-33d4be28.js} +1 -1
  240. package/dist/zonos-elements/{p-26c85188.entry.js → p-344a1fee.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-f1bbad73.entry.js → p-38311c16.entry.js} +1 -1
  242. package/dist/zonos-elements/p-3b28fc76.js +1 -0
  243. package/dist/zonos-elements/{p-db3b101a.js → p-3dc3596b.js} +1 -1
  244. package/dist/zonos-elements/{p-3689821f.system.js → p-3e7ee89d.system.js} +1 -1
  245. package/dist/zonos-elements/{p-2b30beea.system.js → p-44b279cc.system.js} +1 -1
  246. package/dist/zonos-elements/{p-4d433020.system.entry.js → p-48805ed6.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-ab0b23f2.js → p-4df08fc4.js} +1 -1
  248. package/dist/zonos-elements/p-4fe3d5e0.system.js +18 -0
  249. package/dist/zonos-elements/{p-227ef22f.entry.js → p-50362897.entry.js} +1 -1
  250. package/dist/zonos-elements/p-52bd7be3.system.js +1 -0
  251. package/dist/zonos-elements/{p-deaf0e38.system.entry.js → p-536cbab5.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-305e2dd8.system.js → p-53a59935.system.js} +1 -1
  253. package/dist/zonos-elements/{p-27513bfe.system.entry.js → p-593764cf.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-01384124.system.js → p-5b05b461.system.js} +1 -1
  255. package/dist/zonos-elements/{p-a49ba3ae.system.entry.js → p-5b4e5608.system.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-1bf9a1b9.system.js → p-5d65be06.system.js} +1 -1
  257. package/dist/zonos-elements/{p-bce7bfcc.system.entry.js → p-5e18d92b.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-1957af5a.system.entry.js → p-5f92db80.system.entry.js} +1 -1
  259. package/dist/zonos-elements/p-5fa2395d.system.js +1 -0
  260. package/dist/zonos-elements/{p-2431f95c.entry.js → p-620a9013.entry.js} +1 -1
  261. package/dist/zonos-elements/p-623fc89a.system.entry.js +1 -0
  262. package/dist/zonos-elements/p-64e8f05d.system.entry.js +1 -0
  263. package/dist/zonos-elements/{p-2a6be4a5.entry.js → p-658ab5e2.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-bb77b580.entry.js → p-673407b8.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-6ab742d9.system.entry.js → p-69089a6f.system.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-f76d5249.entry.js → p-6f41c193.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-f3cfd8fa.js → p-701d9a7c.js} +1 -1
  268. package/dist/zonos-elements/{p-02d812c8.entry.js → p-7166df08.entry.js} +1 -1
  269. package/dist/zonos-elements/p-72960738.js +1 -0
  270. package/dist/zonos-elements/p-72c3756a.js +1 -0
  271. package/dist/zonos-elements/{p-5ae695a3.entry.js → p-7628569a.entry.js} +1 -1
  272. package/dist/zonos-elements/p-774de1ec.system.js +1 -0
  273. package/dist/zonos-elements/{p-27061873.entry.js → p-777d396e.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-ce44c942.system.js → p-7a220941.system.js} +1 -1
  275. package/dist/zonos-elements/{p-46071125.entry.js → p-7aca66cd.entry.js} +1 -1
  276. package/dist/zonos-elements/p-7cf8e1f0.js +1 -0
  277. package/dist/zonos-elements/{p-eb99a625.system.js → p-7d9d2407.system.js} +1 -1
  278. package/dist/zonos-elements/{p-889e5db0.entry.js → p-7fef8558.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-7003d093.system.entry.js → p-80df7e0b.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-8116d3ba.entry.js +1 -0
  281. package/dist/zonos-elements/{p-648f3ada.entry.js → p-889a44fc.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-4c89d04a.js → p-896fb969.js} +1 -1
  283. package/dist/zonos-elements/{p-0ea16658.system.entry.js → p-8ddc21f1.system.entry.js} +1 -1
  284. package/dist/zonos-elements/p-90d22087.system.js +1 -0
  285. package/dist/zonos-elements/{p-7c101a92.system.entry.js → p-95b460e9.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-08934304.system.entry.js → p-95f3bbad.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-7677c45a.entry.js → p-97da66f2.entry.js} +1 -1
  288. package/dist/zonos-elements/{p-55fb4ea3.system.entry.js → p-98bea13e.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-ba9e2612.system.entry.js → p-990d1495.system.entry.js} +1 -1
  290. package/dist/zonos-elements/p-9f5fb332.js +1 -0
  291. package/dist/zonos-elements/{p-6b682a6b.system.entry.js → p-a0ee01dd.system.entry.js} +1 -1
  292. package/dist/zonos-elements/p-ac8cfdc0.js +1 -0
  293. package/dist/zonos-elements/{p-7b74e5f2.system.entry.js → p-af12a1b7.system.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-b4b23475.entry.js → p-b35a0b1e.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-bf5c3dd7.system.entry.js → p-b59fc3fa.system.entry.js} +1 -1
  296. package/dist/zonos-elements/p-b71ef46e.js +17 -0
  297. package/dist/zonos-elements/{p-d63e18a8.entry.js → p-b93b66c2.entry.js} +1 -1
  298. package/dist/zonos-elements/p-b9a615bc.system.entry.js +1 -0
  299. package/dist/zonos-elements/{p-6a195559.system.js → p-bc919de1.system.js} +1 -1
  300. package/dist/zonos-elements/{p-72efa5b7.system.entry.js → p-bc9a30a1.system.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-665bfd4f.entry.js → p-c1463da7.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-03e95598.entry.js → p-c3459f4a.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-781cc8de.system.entry.js → p-c7ca3e98.system.entry.js} +1 -1
  304. package/dist/zonos-elements/p-c91fade3.entry.js +1 -0
  305. package/dist/zonos-elements/{p-79f3c227.system.entry.js → p-c92a5ae5.system.entry.js} +1 -1
  306. package/dist/zonos-elements/p-cd34ecf2.js +1 -0
  307. package/dist/zonos-elements/{p-28e2ac3b.entry.js → p-dae881f2.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-9b660cd3.js → p-dcafbd4e.js} +1 -1
  309. package/dist/zonos-elements/{p-8571f3ce.entry.js → p-df55536b.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-acf42bc1.entry.js → p-e3d6f9b4.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-928291e5.entry.js → p-e548b8ec.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-5e6f85f0.system.js → p-f053975e.system.js} +1 -1
  313. package/dist/zonos-elements/{p-72187e00.entry.js → p-fc5007e0.entry.js} +1 -1
  314. package/dist/zonos-elements/zonos-elements.css +1 -1
  315. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  316. package/package.json +1 -1
  317. package/dist/esm-es5/cart-62c166fc.js +0 -1
  318. package/dist/esm-es5/localization-d2631105.js +0 -1
  319. package/dist/esm-es5/throttle-882b1f47.js +0 -1
  320. package/dist/esm-es5/zonos-store-credit.entry.js +0 -1
  321. package/dist/zonos-elements/p-06c4d422.system.js +0 -1
  322. package/dist/zonos-elements/p-0efd2d5a.js +0 -1
  323. package/dist/zonos-elements/p-1a470353.entry.js +0 -1
  324. package/dist/zonos-elements/p-1d6f3ab9.js +0 -1
  325. package/dist/zonos-elements/p-209d7728.system.entry.js +0 -1
  326. package/dist/zonos-elements/p-27eeaf56.system.js +0 -1
  327. package/dist/zonos-elements/p-367a72bc.js +0 -1
  328. package/dist/zonos-elements/p-37207963.system.js +0 -1
  329. package/dist/zonos-elements/p-40284821.system.js +0 -1
  330. package/dist/zonos-elements/p-40a45837.system.entry.js +0 -1
  331. package/dist/zonos-elements/p-4495f149.system.entry.js +0 -1
  332. package/dist/zonos-elements/p-456a600b.entry.js +0 -1
  333. package/dist/zonos-elements/p-4980facb.js +0 -1
  334. package/dist/zonos-elements/p-5e10d4ff.system.entry.js +0 -1
  335. package/dist/zonos-elements/p-61d73d69.js +0 -1
  336. package/dist/zonos-elements/p-6d81901a.js +0 -1
  337. package/dist/zonos-elements/p-8ccd6d3f.js +0 -1
  338. package/dist/zonos-elements/p-9aaa1d80.entry.js +0 -1
  339. package/dist/zonos-elements/p-a371f770.system.js +0 -1
  340. package/dist/zonos-elements/p-a9425900.system.js +0 -18
  341. package/dist/zonos-elements/p-b2d276e1.js +0 -1
  342. package/dist/zonos-elements/p-c7047a1c.js +0 -1
  343. package/dist/zonos-elements/p-cd88efdb.js +0 -17
  344. package/dist/zonos-elements/p-daeb57cb.entry.js +0 -1
  345. package/dist/zonos-elements/p-e3292be8.system.js +0 -1
  346. package/dist/zonos-elements/p-e5dfccd8.system.js +0 -1
@@ -1 +1 @@
1
- (function(){"use strict";const e=({id:e,payload:o,target:t,type:n})=>{var r;t instanceof HTMLIFrameElement?null===(r=t.contentWindow)||void 0===r||r.postMessage({id:e,payload:o,type:n},"*"):t.postMessage({id:e,payload:o,type:n},"*")};class o{constructor(o,t){this.targetElement=o,this.targetId=t,this.sendMessage=(o,t)=>{e({id:this.targetId,payload:t,target:this.targetElement,type:o})}}}o.iframeServices={GOOGLE_PLACES:"zonos--private-iframe-google-places-service-m9bmuh7g"},o.sendMessage=e,o.injectPrivateIframe=({id:e,onload:o,src:t})=>{const n=document.createElement("iframe");return n.src=t,n.id=e,n.style.display="none",n.role="presentation",n.ariaHidden="true",n.tabIndex=-1,n.style.border="none !important",n.style.margin="0px !important",n.style.padding="0px !important",n.style.width="1px !important",n.style.minWidth="100% !important",n.style.overflow="hidden !important",n.style.display="block !important",n.style.visibility="hidden !important",n.style.position="fixed !important",n.style.pointerEvents="none !important",n.style.userSelect="none !important",n.style.height="1px !important",n.onload=()=>o(n),document.body.appendChild(n),n};const t=performance.now(),n=e=>{if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(o){if(e&&"function"==typeof e.toString){return e.toString()}return"Unable to stringify info"}},r=(e,o,...r)=>{var s,i;const{elapsedTimePretty:a}=(()=>{const e=performance.now()-t,o=e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`;return{elapsedTime:e,elapsedTimePretty:o}})(),l=[`(${a})`,...r];l.map(n).join(" ");if(!(!!(null===(s=window.Zonos)||void 0===s?void 0:s.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return;let d=document.querySelector("iframe#zonos---debug-logging-iframe");d||(d=document.createElement("iframe"),d.id="zonos---debug-logging-iframe",d.style.display="none",d.style.opacity="0",d.style.position="absolute",d.style.top="-9999px",d.style.left="-9999px",d.style.width="1px",d.style.height="1px",d.style.border="none",d.style.overflow="hidden",d.style.visibility="hidden",document.body.appendChild(d));const c=(null===(i=d.contentWindow)||void 0===i?void 0:i.window.console)||window.console;switch(o){case"warn":c.warn(e,...l);break;case"info":c.info(e,...l);break;case"error":c.error(e,...l);break;default:c.groupCollapsed(e,...l),c.trace(),c.groupEnd()}},s=(e,...o)=>{r(e,"error",...o)},i=["jsdelivr","cdnjs","unpkg","vercel"],a="jsdelivr",l=e=>{const o=i.indexOf(e);return i[o+1]||null},d=()=>window.location.search.includes("zonosStagingMode=1"),c=()=>{var e;return(null===(e=window.Zonos.zonosApiKey)||void 0===e?void 0:e.includes("test"))||window.location.search.includes("zonosTestMode=1")};function u(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t}"function"==typeof SuppressedError&&SuppressedError;const p=["cloudflare","vercel"],m=p[0],w={cloudflare:"https://route.elements.zonos.com",vercel:"https://route.js.zonos.com"},h=w[m],y=(e=m)=>{const o=p.indexOf(e),t=p[o+1];return t||null},g=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return null},f=()=>{const e="userAgentData"in window.navigator?window.navigator.userAgentData:null,o=(()=>{const e="connection"in window.navigator?window.navigator.connection:null,o="mozConnection"in window.navigator?window.navigator.mozConnection:null,t="webkitConnection"in window.navigator?window.navigator.webkitConnection:null;return e||o||t})();return{connectionDownlink:null==o?void 0:o.downlink,connectionEffectiveType:null==o?void 0:o.effectiveType,connectionRtt:null==o?void 0:o.rtt,connectionSaveData:null==o?void 0:o.saveData,isHostedCheckout:window.Zonos.isLegacyCheckout,screenHeight:window.screen.height,screenWidth:window.innerWidth,userAgent:e&&e.brands.length>0?e:window.navigator.userAgent}},v=["/api/zonos-elements/log-script-load","/api/zonos-elements/log-bulk-load-data"],b=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{const o=await e.text(),t=g(o);if(!t)throw new Error(`Failed to parse content: ${o}`);return t}catch(e){if(t)throw e;return o&&console.error(e),null}},S=async({basePathType:e,options:o,path:t})=>{let n;const r=window.Zonos.zonosQaUrlApi||w[e]||m,s=new URL(r+t),i=window.Zonos.cartId?`${window.location.hostname}-${window.Zonos.cartId}`:window.location.hostname;s.searchParams.set("zToken",(e=>{try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(i));try{n=await fetch(s.toString(),o)}catch(e){if(e instanceof Error)return{baseUrl:r,errors:[{message:e.message,type:"unknown"}],json:null,response:null,zonosMode:null};return{baseUrl:r,errors:[{message:"Failed to fetch",type:"unknown"}],json:null,response:null,zonosMode:null}}const a=n.headers.get("Zonos-Mode"),l=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&a&&l&&(window.Zonos.modeAlerted=!0),n.ok){return{baseUrl:r,errors:[],json:await b({response:n}),response:n,zonosMode:a}}const d=n.status.toString();try{const e=await b({response:n,shouldThrow:!0});if(e&&"errors"in e&&Array.isArray(e.errors)){const o=e.errors;return{baseUrl:r,errors:o.map((e=>"string"==typeof e?{message:e,type:d}:e)),json:null,response:n,zonosMode:a}}return{baseUrl:r,errors:[{message:JSON.stringify(e),type:d}],json:null,response:n,zonosMode:a}}catch(e){return{baseUrl:r,errors:[{message:`${d}: ${"Unknown error"}`,type:d}],json:null,response:null,zonosMode:a}}},C=async({basePathType:e,options:o,path:t})=>{var n,s;const i=t.startsWith("/api/bigcommerce")?"vercel":e,a=performance.now(),l=await S({basePathType:i,options:o,path:t}),{errors:d,response:c}=l,p=u(l,["errors","response"]),m=performance.now()-a;r(`${t} (${m.toFixed(2)}ms)`,"info");const b=null==c?void 0:c.headers.get("Zonos-Duration");200===(null==c?void 0:c.status)&&(({apiPath:e,apiType:o,loadTimeInternal:t,loadTimeTotal:n})=>{if(v.includes(e))return;const r=n-t;if(r<0)return;const s=e.split("?")[0]||e,i=f(),a="object"==typeof i.userAgent&&i.userAgent.mobile,l={apiType:o,connectionType:i.connectionEffectiveType,href:s,isHostedCheckout:window.Zonos.isLegacyCheckout,isMobile:(d=a,d||window.innerWidth<890),loadTimeBrowserApi:r,loadTimeInternal:t,loadTimeTotal:n,metadata:Object.assign({},i),screenHeight:i.screenHeight,screenWidth:i.screenWidth,userAgent:"string"==typeof i.userAgent?i.userAgent:i.userAgent.brands.map((e=>e.brand)).filter((e=>!/Not.*A.*Brand.*/.test(e))).join(",")};var d;window.Zonos.loadTimeApiInfoList.push(l)})({apiPath:t,apiType:i,loadTimeInternal:b?Number(b):0,loadTimeTotal:m});const z=y(i),k=d.find((({type:e})=>"unknown"===e)),Z=d.find((({message:e})=>"string"==typeof e&&(e.includes("signal is aborted")||e.includes("The operation was aborted")||e.includes("Fetch is aborted")))),j=!!k||404===(null==c?void 0:c.status)||500===(null==c?void 0:c.status),I=z&&j;return j&&!Z&&(async({endpoint:e,errors:o,metadata:t,shouldPostReleaseErrorReporting:n})=>{r("sendErrorLog","warn",e,t,o);{const e=Number(window.Zonos.releaseDate);if((new Date).getTime()-e>36e5)return}const s="userAgentData"in window.navigator?window.navigator.userAgentData:null,i={endpoint:e,errors:o,href:window.location.href,metadata:Object.assign({appVersion:window.Zonos.version,domain:window.Zonos.domain,publicCredential:window.Zonos.zonosApiKey,userAgent:s&&s.brands.length>0?s:window.navigator.userAgent},t)};try{fetch(`${h}/api/zonos-elements/log-error`,{body:JSON.stringify(i),headers:{"Zonos-Referer":window.location.hostname},method:"POST"})}catch(e){const o=y();if(!o)return;fetch(`${w[o]}/api/zonos-elements/log-error`,{body:JSON.stringify(i),method:"POST"})}})({endpoint:w[i]+t,errors:d.map((({message:e})=>`API: ${e}`)),metadata:{currentBasePath:i,nextFallbackApiType:z,requestHeaders:null==o?void 0:o.headers,requestPayload:g(null===(n=null==o?void 0:o.body)||void 0===n?void 0:n.toString())||(null===(s=null==o?void 0:o.body)||void 0===s?void 0:s.toString()),shouldCallFallback:I,status:null==c?void 0:c.status,statusText:null==c?void 0:c.statusText},shouldPostReleaseErrorReporting:!0}),I?(r(`=== "${t}" failed to fetch, trying next fallback ${z}`),C({basePathType:z,options:o,path:t})):Object.assign({errors:d,response:c},p)},z=async(e,o)=>{const t=u(o||{},[]),n=t.body?JSON.stringify(t.body):void 0,r=t.method||"GET",s=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Staging-Mode":d()?"1":void 0,"Zonos-Test-Mode":c()?"1":void 0,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},t.headers);Object.keys(s).forEach((e=>void 0===s[e]&&delete s[e]));const i=Object.assign(Object.assign({},t),{body:"GET"===r?void 0:n,headers:s,method:r}),a=new URLSearchParams(window.location.search).get("useFallbackApi");return C({basePathType:a||m,options:i,path:e})},k=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const o=(e=>{if(!e)return null;const o=new URL(e).searchParams.get("zonosQaUrl");return o?/[^a-zA-Z0-9-_]+/.test(o)?null:o:null})(window.location.href),t="https://v1.3.266.js.zonos.com";if(!o&&(t.includes("test.")||t.includes("test-")))return t;if(!o&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com","dev.storybook.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!o)return null;if("dev-elements"===o)return"https://dev.elements.zonos.com";const n=`https://${o}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${n}' for loading elements script`,"warn"),fetch(n).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${n}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:o}=window.location,t=`${o}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),n},Z="https://js.stripe.com/v3",j=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;let I=null;const O=e=>(null!==I||(I=new Promise(((o,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)o(window.Stripe);else try{let n=(()=>{const e=document.querySelectorAll(`script[src^="${Z}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&j.test(t.src))return t}return null})();n&&e?console.warn("loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used"):n||(n=(e=>{const o=document.createElement("script");o.src=`${Z}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(s("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==n||n.addEventListener("load",(()=>{window.Stripe?o(window.Stripe):t(new Error("Stripe.js not available"))})),null==n||n.addEventListener("error",(()=>{t(new Error("Failed to load Stripe.js"))}))}catch(e){return void t(e)}else o(null)}))),I),A=Promise.resolve().then((()=>O(null)));let E=!1;A.catch((e=>{E||console.warn(e)}));const T=async({cartId:e,retries:o})=>{const t=c(),n=(()=>{const e=new URLSearchParams(window.location.search);return{overrideShouldEnabledCustomAddress:window.Zonos.overrideUseCustomAddressForm?"1":e.get("overrideShouldEnabledCustomAddress")}})(),s=(()=>{const e=new URLSearchParams(window.location.search).get("validityToken");if(!e||!/^[A-Za-z0-9+/]+={0,2}$/.test(e)||e.length%4!=0)return null;try{return atob(e),e}catch(e){return null}})()||void 0,i=new URLSearchParams;n.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",n.overrideShouldEnabledCustomAddress);const{errors:a,json:l,zonosMode:d}=await z(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:s,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),u=!l||a.length;return u&&o?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:o}),await new Promise((e=>setTimeout(e,500))),T({cartId:e,retries:o-1})):u?null:Object.assign(Object.assign({},l),{zonosMode:d})},L=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,P=new RegExp(`^${L.source}$`),$=new RegExp(`^cart_${L.source}$`),U=/^[a-zA-Z0-9]{2,}$/,N=/^cart_[a-zA-Z0-9]{2,}$/,D=async e=>{const{isDgsCartId:o,isLegacyCartId:t}=(e=>e?e.includes("undefined")?{isDgsCartId:!1,isLegacyCartId:!1}:N.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:U.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:$.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:P.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:{isDgsCartId:!1,isLegacyCartId:!1}:{isDgsCartId:!1,isLegacyCartId:!1})(e);if(!t&&!o)return s("[ZONOS - loadZonos] invalid cart id"),null;const n=await T({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",n),n?(window.Zonos.storeId=n.cartData.storeId,window.Zonos.zonosApiKey=n.cartData.credentialToken,window.Zonos.zonosMode=n.zonosMode,{cartData:n.cartData,settings:n.settings,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}):(s("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)},R="zonos--checkout-hidden-international-button";var F;const x=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:o,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>o.includes(e))),n=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?o:null})(),M=Date.now(),B="https://v1.3.266.js.zonos.com",q=x||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.266",W="https://fonts.googleapis.com",K=/^https:\/\/fonts\.googleapis\.com/;class G{}F=G,G.doneInit=!1,G.cartSettings=null,G.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),G.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),G._paypalMockResponse=null,G.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,G.isBigCommerce=!1,G.releaseDate="1779311035290",G.isLegacyCheckout=!1,G.googleAnalyticId=null,G.googleAnalyticReady=!1,G.facebookPixelId=null,G.facebookPixelReady=!1,G.startLoadTime=M,G.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",G.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),G.overrideUseCustomAddressForm=!1,G.isCollect=!1,G.isInvoice=!1,G.isNpm=!0,G.zonosQaUrl=null,G.zonosQaUrlApi=null,G.trackEventLogs=[],G.version="v1.3.266",G.modeAlerted=!1,G.cartData=null,G.paypal=null,G.zonosMode=null,G.IframeService=o,G.getCurrentTimestamp=()=>(new Date).getTime(),G.zonosController=null,G.loadTimeApiInfoList=[],G.logIntervalId=null,G.init=async e=>{const{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l,storeId:u,zonosApiKey:p}=e;if(F.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),F.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${F.version}) ======`),F.zonosApiKey=p,F.storeId=u,"undefined"!=typeof window&&window.parent===window&&(F.googleAnalyticReady=!0,F.facebookPixelReady=!0),F.isNpm){r("====== ZONOS LOADING FROM NPM ======");const o=k();if(o&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${o} ======`,"info");const t=document.createElement("script");return t.src=`${o}/dist/scripts/zonos.js`,document.head.appendChild(t),t.addEventListener("load",(()=>{window.Zonos.isNpm=F.isNpm,window.Zonos.isBigCommerce=F.isBigCommerce,window.Zonos.isLegacyCheckout=F.isLegacyCheckout,window.Zonos.zonosMode=F.zonosMode,window.Zonos.init(e)})),t.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${o}`)})),void(window.isZonosPreview=!0)}if(!p&&!F.cartId)return void s("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!F.cartData&&F.cartId){r("Initialize cart data");const e=await D(F.cartId);if(!e)return void s("Failed to get cart data");F.cartData=e.cartData,F.zonosApiKey=e.zonosApiKey,F.cartSettings=e.settings}const t=await(async()=>{const e=c(),o=d();if(!e&&!o||!window.Zonos.zonosApiKey)return null;if(r("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return r("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:t,json:n}=await z("/api/get-test-public-credential");if(t.length||!n)return s("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",t),null;const i=n.publicCredential;return i?(r(`[ZONOS - loadZonos] Retrieve new test public token ${i}`,"info"),i):(s("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();t&&(F.zonosApiKey=t)}const m=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(F.cartId&&F.cartData||!!m){r("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id="zonos--checkout-hidden-button",document.body.appendChild(e)}r("init zonos"),F.restoreNativeBrowserFunctions(),F.injectCustomScriptForHostedCheckout(),F.injectZonosCdn(),F.injectZonosCss(),F.injectFonts(),F.injectCheckoutInternationalButton(),F.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l}}),F.doneInit=!0},G.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${R}`)){const e=document.createElement("button");e.id=R,e.style.display="none",document.body.appendChild(e)}},G.injectCustomScriptForHostedCheckout=()=>{const e=F.cartData,o=(null==e?void 0:e.metadata)||[],t=o.find((e=>"customHeaderScript"===e.key)),n=o.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(t||n)){if(t){r("Injecting custom header script");const e=document.createElement("script");e.textContent=t.value,document.head.appendChild(e)}if(n){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=n.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:n,headerScript:t,isLegacyCheckout:window.Zonos.isLegacyCheckout})},G.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},G.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${R}`);setTimeout((()=>{var o;e&&e.dispatchEvent(new CustomEvent("click",{detail:o}))}),10)},G.openHelloDialog=e=>{const o=document.querySelector("zonos-hello");o&&o.openHelloDialog(null==e||e)},G.showNotification=e=>{var o;null===(o=F.zonosController)||void 0===o||o.showNotification(e)},G.updateOrganizationName=e=>{var o;null===(o=F.zonosController)||void 0===o||o.updateOrganizationName(e)},G.disablePlaceOrderButtons=({autoEnable:e=!0,config:o,disable:t,placeOrderButtonSelector:n})=>{var r;if(!(null===(r=o.checkoutSettings)||void 0===r?void 0:r.disablePlaceOrderButtonActivation)&&n){const o=document.querySelectorAll(n),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};o.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{o.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},G.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const o="zonos---native-browser";let t=document.querySelector(`iframe#${o}`);t||(t=document.createElement("iframe"),t.id=o,t.style.display="none",t.style.opacity="0",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.width="1px",t.style.height="1px",t.style.border="none",t.style.overflow="hidden",t.style.visibility="hidden",document.body.appendChild(t));const n=(null===(e=t.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=n,document.body.removeChild(t)},G.injectController=({config:e})=>{var o,t;if(document.querySelector("zonos-controller"))return;if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const o=e.checkoutSettings.placeOrderButtonSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver((()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(t=e.checkoutSettings)||void 0===t?void 0:t.alwaysTriggerInternationalCheckoutSelector){const o=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver((()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})})).observe(document.body,{childList:!0,subtree:!0})}const n=document.createElement("zonos-controller");n.config=e,n.zonosApiKey=F.zonosApiKey||"",n.addEventListener("stripeInitEvent",(async e=>{const{detail:o}=e;r("loading Stripe");const t=await(async(...e)=>{E=!0;const o=Date.now();return A.then((t=>((e,o,t)=>{if(null===e)return null;const n=e.apply(void 0,o);return((e,o)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:o})})(n,t),n})(t,e,o)))})(o.publishableKey);t?(window.Zonos.stripe=t,window.Zonos.isCollect?n.initCollectElement(t):window.Zonos.isInvoice?n.initInvoiceElement(t):n.initCheckoutElement(t)):s("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(n),F.zonosController=n,r("Zonos controller injected!")},G.injectScript=({cdnType:e,isModule:o,theRestUrl:t})=>{const n=`${F.getZonosUrl(e)}/${t}`;if(document.querySelector(`script[src="${n}"]`))return void r(`Zonos script "${n}" already exists in the document`,"warn");const i=document.head||document.body,a=document.createElement("script");o?a.type="module":a.noModule=!0,a.src=n,a.crossOrigin="anonymous",a.onerror=()=>{s(`Failed to load ${a.src}`);const n=l(e);n&&F.injectScript({cdnType:n,isModule:o,theRestUrl:t})},i.appendChild(a)},G.getZonosUrl=e=>{const o=()=>{switch(e){case"jsdelivr":return q;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.266";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.266";case"vercel":return B}};if(F.isNpm){return k()||o()}return o()},G.injectZonosCdn=()=>{F.injectScript({cdnType:a,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),F.injectScript({cdnType:a,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},G.injectStylesheet=({cdnType:e,theRestUrl:o})=>{const t=F.getZonosUrl(e),n=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${B}/`,n.appendChild(r);const i=document.createElement("link");i.rel="stylesheet",i.href=`${t}/${o}`,i.onerror=()=>{s(`Failed to load ${i.href}`);const t=l(e);t&&F.injectStylesheet({cdnType:t,theRestUrl:o})},n.appendChild(i)},G.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(F.injectStylesheet({cdnType:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},G.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${W}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&!K.test(t.href))return t}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=W,e.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${W}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(t),r("Zonos font injected!")},G.setupGoogleFont=e=>{var o;null===(o=F.zonosController)||void 0===o||o.setupGoogleFont(e)},G.injectSupportGoogleFont=e=>{var o;r(`[FONT] injecting ${e}`);const t=null===(o=e.match(/family=(.*?):/))||void 0===o?void 0:o[1],n=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${W}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=W,n.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${t} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,n.appendChild(s),r(`[FONT] ${t} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=G)})();
1
+ (function(){"use strict";const e=({id:e,payload:o,target:t,type:n})=>{var r;t instanceof HTMLIFrameElement?null===(r=t.contentWindow)||void 0===r||r.postMessage({id:e,payload:o,type:n},"*"):t.postMessage({id:e,payload:o,type:n},"*")};class o{constructor(o,t){this.targetElement=o,this.targetId=t,this.sendMessage=(o,t)=>{e({id:this.targetId,payload:t,target:this.targetElement,type:o})}}}o.iframeServices={GOOGLE_PLACES:"zonos--private-iframe-google-places-service-m9bmuh7g"},o.sendMessage=e,o.injectPrivateIframe=({id:e,onload:o,src:t})=>{const n=document.createElement("iframe");return n.src=t,n.id=e,n.style.display="none",n.role="presentation",n.ariaHidden="true",n.tabIndex=-1,n.style.border="none !important",n.style.margin="0px !important",n.style.padding="0px !important",n.style.width="1px !important",n.style.minWidth="100% !important",n.style.overflow="hidden !important",n.style.display="block !important",n.style.visibility="hidden !important",n.style.position="fixed !important",n.style.pointerEvents="none !important",n.style.userSelect="none !important",n.style.height="1px !important",n.onload=()=>o(n),document.body.appendChild(n),n};const t=performance.now(),n=e=>{if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(o){if(e&&"function"==typeof e.toString){return e.toString()}return"Unable to stringify info"}},r=(e,o,...r)=>{var s,i;const{elapsedTimePretty:a}=(()=>{const e=performance.now()-t,o=e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`;return{elapsedTime:e,elapsedTimePretty:o}})(),l=[`(${a})`,...r];l.map(n).join(" ");if(!(!!(null===(s=window.Zonos)||void 0===s?void 0:s.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return;let d=document.querySelector("iframe#zonos---debug-logging-iframe");d||(d=document.createElement("iframe"),d.id="zonos---debug-logging-iframe",d.style.display="none",d.style.opacity="0",d.style.position="absolute",d.style.top="-9999px",d.style.left="-9999px",d.style.width="1px",d.style.height="1px",d.style.border="none",d.style.overflow="hidden",d.style.visibility="hidden",document.body.appendChild(d));const c=(null===(i=d.contentWindow)||void 0===i?void 0:i.window.console)||window.console;switch(o){case"warn":c.warn(e,...l);break;case"info":c.info(e,...l);break;case"error":c.error(e,...l);break;default:c.groupCollapsed(e,...l),c.trace(),c.groupEnd()}},s=(e,...o)=>{r(e,"error",...o)},i=["jsdelivr","cdnjs","unpkg","vercel"],a="jsdelivr",l=e=>{const o=i.indexOf(e);return i[o+1]||null},d=()=>window.location.search.includes("zonosStagingMode=1"),c=()=>{var e;return(null===(e=window.Zonos.zonosApiKey)||void 0===e?void 0:e.includes("test"))||window.location.search.includes("zonosTestMode=1")};function u(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t}"function"==typeof SuppressedError&&SuppressedError;const p=["cloudflare","vercel"],m=p[0],w={cloudflare:"https://route.elements.zonos.com",vercel:"https://route.js.zonos.com"},h=w[m],y=(e=m)=>{const o=p.indexOf(e),t=p[o+1];return t||null},g=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return null},f=()=>{const e="userAgentData"in window.navigator?window.navigator.userAgentData:null,o=(()=>{const e="connection"in window.navigator?window.navigator.connection:null,o="mozConnection"in window.navigator?window.navigator.mozConnection:null,t="webkitConnection"in window.navigator?window.navigator.webkitConnection:null;return e||o||t})();return{connectionDownlink:null==o?void 0:o.downlink,connectionEffectiveType:null==o?void 0:o.effectiveType,connectionRtt:null==o?void 0:o.rtt,connectionSaveData:null==o?void 0:o.saveData,isHostedCheckout:window.Zonos.isLegacyCheckout,screenHeight:window.screen.height,screenWidth:window.innerWidth,userAgent:e&&e.brands.length>0?e:window.navigator.userAgent}},v=["/api/zonos-elements/log-script-load","/api/zonos-elements/log-bulk-load-data"],b=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{const o=await e.text(),t=g(o);if(!t)throw new Error(`Failed to parse content: ${o}`);return t}catch(e){if(t)throw e;return o&&console.error(e),null}},S=async({basePathType:e,options:o,path:t})=>{let n;const r=window.Zonos.zonosQaUrlApi||w[e]||m,s=new URL(r+t),i=window.Zonos.cartId?`${window.location.hostname}-${window.Zonos.cartId}`:window.location.hostname;s.searchParams.set("zToken",(e=>{try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(i));try{n=await fetch(s.toString(),o)}catch(e){if(e instanceof Error)return{baseUrl:r,errors:[{message:e.message,type:"unknown"}],json:null,response:null,zonosMode:null};return{baseUrl:r,errors:[{message:"Failed to fetch",type:"unknown"}],json:null,response:null,zonosMode:null}}const a=n.headers.get("Zonos-Mode"),l=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&a&&l&&(window.Zonos.modeAlerted=!0),n.ok){return{baseUrl:r,errors:[],json:await b({response:n}),response:n,zonosMode:a}}const d=n.status.toString();try{const e=await b({response:n,shouldThrow:!0});if(e&&"errors"in e&&Array.isArray(e.errors)){const o=e.errors;return{baseUrl:r,errors:o.map((e=>"string"==typeof e?{message:e,type:d}:e)),json:null,response:n,zonosMode:a}}return{baseUrl:r,errors:[{message:JSON.stringify(e),type:d}],json:null,response:n,zonosMode:a}}catch(e){return{baseUrl:r,errors:[{message:`${d}: ${"Unknown error"}`,type:d}],json:null,response:null,zonosMode:a}}},C=async({basePathType:e,options:o,path:t})=>{var n,s;const i=t.startsWith("/api/bigcommerce")?"vercel":e,a=performance.now(),l=await S({basePathType:i,options:o,path:t}),{errors:d,response:c}=l,p=u(l,["errors","response"]),m=performance.now()-a;r(`${t} (${m.toFixed(2)}ms)`,"info");const b=null==c?void 0:c.headers.get("Zonos-Duration");200===(null==c?void 0:c.status)&&(({apiPath:e,apiType:o,loadTimeInternal:t,loadTimeTotal:n})=>{if(v.includes(e))return;const r=n-t;if(r<0)return;const s=e.split("?")[0]||e,i=f(),a="object"==typeof i.userAgent&&i.userAgent.mobile,l={apiType:o,connectionType:i.connectionEffectiveType,href:s,isHostedCheckout:window.Zonos.isLegacyCheckout,isMobile:(d=a,d||window.innerWidth<890),loadTimeBrowserApi:r,loadTimeInternal:t,loadTimeTotal:n,metadata:Object.assign({},i),screenHeight:i.screenHeight,screenWidth:i.screenWidth,userAgent:"string"==typeof i.userAgent?i.userAgent:i.userAgent.brands.map((e=>e.brand)).filter((e=>!/Not.*A.*Brand.*/.test(e))).join(",")};var d;window.Zonos.loadTimeApiInfoList.push(l)})({apiPath:t,apiType:i,loadTimeInternal:b?Number(b):0,loadTimeTotal:m});const z=y(i),k=d.find((({type:e})=>"unknown"===e)),Z=d.find((({message:e})=>"string"==typeof e&&(e.includes("signal is aborted")||e.includes("The operation was aborted")||e.includes("Fetch is aborted")))),j=!!k||404===(null==c?void 0:c.status)||500===(null==c?void 0:c.status),I=z&&j;return j&&!Z&&(async({endpoint:e,errors:o,metadata:t,shouldPostReleaseErrorReporting:n})=>{r("sendErrorLog","warn",e,t,o);{const e=Number(window.Zonos.releaseDate);if((new Date).getTime()-e>36e5)return}const s="userAgentData"in window.navigator?window.navigator.userAgentData:null,i={endpoint:e,errors:o,href:window.location.href,metadata:Object.assign({appVersion:window.Zonos.version,domain:window.Zonos.domain,publicCredential:window.Zonos.zonosApiKey,userAgent:s&&s.brands.length>0?s:window.navigator.userAgent},t)};try{fetch(`${h}/api/zonos-elements/log-error`,{body:JSON.stringify(i),headers:{"Zonos-Referer":window.location.hostname},method:"POST"})}catch(e){const o=y();if(!o)return;fetch(`${w[o]}/api/zonos-elements/log-error`,{body:JSON.stringify(i),method:"POST"})}})({endpoint:w[i]+t,errors:d.map((({message:e})=>`API: ${e}`)),metadata:{currentBasePath:i,nextFallbackApiType:z,requestHeaders:null==o?void 0:o.headers,requestPayload:g(null===(n=null==o?void 0:o.body)||void 0===n?void 0:n.toString())||(null===(s=null==o?void 0:o.body)||void 0===s?void 0:s.toString()),shouldCallFallback:I,status:null==c?void 0:c.status,statusText:null==c?void 0:c.statusText},shouldPostReleaseErrorReporting:!0}),I?(r(`=== "${t}" failed to fetch, trying next fallback ${z}`),C({basePathType:z,options:o,path:t})):Object.assign({errors:d,response:c},p)},z=async(e,o)=>{const t=u(o||{},[]),n=t.body?JSON.stringify(t.body):void 0,r=t.method||"GET",s=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Staging-Mode":d()?"1":void 0,"Zonos-Test-Mode":c()?"1":void 0,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},t.headers);Object.keys(s).forEach((e=>void 0===s[e]&&delete s[e]));const i=Object.assign(Object.assign({},t),{body:"GET"===r?void 0:n,headers:s,method:r}),a=new URLSearchParams(window.location.search).get("useFallbackApi");return C({basePathType:a||m,options:i,path:e})},k=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const o=(e=>{if(!e)return null;const o=new URL(e).searchParams.get("zonosQaUrl");return o?/[^a-zA-Z0-9-_]+/.test(o)?null:o:null})(window.location.href),t="https://v1.3.268.js.zonos.com";if(!o&&(t.includes("test.")||t.includes("test-")))return t;if(!o&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com","dev.storybook.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!o)return null;if("dev-elements"===o)return"https://dev.elements.zonos.com";const n=`https://${o}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${n}' for loading elements script`,"warn"),fetch(n).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${n}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:o}=window.location,t=`${o}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),n},Z="https://js.stripe.com/v3",j=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;let I=null;const O=e=>(null!==I||(I=new Promise(((o,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)o(window.Stripe);else try{let n=(()=>{const e=document.querySelectorAll(`script[src^="${Z}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&j.test(t.src))return t}return null})();n&&e?console.warn("loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used"):n||(n=(e=>{const o=document.createElement("script");o.src=`${Z}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(s("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==n||n.addEventListener("load",(()=>{window.Stripe?o(window.Stripe):t(new Error("Stripe.js not available"))})),null==n||n.addEventListener("error",(()=>{t(new Error("Failed to load Stripe.js"))}))}catch(e){return void t(e)}else o(null)}))),I),A=Promise.resolve().then((()=>O(null)));let E=!1;A.catch((e=>{E||console.warn(e)}));const T=async({cartId:e,retries:o})=>{const t=c(),n=(()=>{const e=new URLSearchParams(window.location.search);return{overrideShouldEnabledCustomAddress:window.Zonos.overrideUseCustomAddressForm?"1":e.get("overrideShouldEnabledCustomAddress")}})(),s=(()=>{const e=new URLSearchParams(window.location.search).get("validityToken");if(!e||!/^[A-Za-z0-9+/]+={0,2}$/.test(e)||e.length%4!=0)return null;try{return atob(e),e}catch(e){return null}})()||void 0,i=new URLSearchParams;n.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",n.overrideShouldEnabledCustomAddress);const{errors:a,json:l,zonosMode:d}=await z(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:s,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),u=!l||a.length;return u&&o?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:o}),await new Promise((e=>setTimeout(e,500))),T({cartId:e,retries:o-1})):u?null:Object.assign(Object.assign({},l),{zonosMode:d})},L=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,P=new RegExp(`^${L.source}$`),$=new RegExp(`^cart_${L.source}$`),U=/^[a-zA-Z0-9]{2,}$/,N=/^cart_[a-zA-Z0-9]{2,}$/,D=async e=>{const{isDgsCartId:o,isLegacyCartId:t}=(e=>e?e.includes("undefined")?{isDgsCartId:!1,isLegacyCartId:!1}:N.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:U.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:$.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:P.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:{isDgsCartId:!1,isLegacyCartId:!1}:{isDgsCartId:!1,isLegacyCartId:!1})(e);if(!t&&!o)return s("[ZONOS - loadZonos] invalid cart id"),null;const n=await T({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",n),n?(window.Zonos.storeId=n.cartData.storeId,window.Zonos.zonosApiKey=n.cartData.credentialToken,window.Zonos.zonosMode=n.zonosMode,{cartData:n.cartData,settings:n.settings,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}):(s("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)},R="zonos--checkout-hidden-international-button";var F;const x=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:o,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>o.includes(e))),n=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?o:null})(),M=Date.now(),B="https://v1.3.268.js.zonos.com",q=x||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.268",W="https://fonts.googleapis.com",K=/^https:\/\/fonts\.googleapis\.com/;class G{}F=G,G.doneInit=!1,G.cartSettings=null,G.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),G.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),G._paypalMockResponse=null,G.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,G.isBigCommerce=!1,G.releaseDate="1780932992776",G.isLegacyCheckout=!1,G.googleAnalyticId=null,G.googleAnalyticReady=!1,G.facebookPixelId=null,G.facebookPixelReady=!1,G.startLoadTime=M,G.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",G.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),G.overrideUseCustomAddressForm=!1,G.isCollect=!1,G.isInvoice=!1,G.isNpm=!0,G.zonosQaUrl=null,G.zonosQaUrlApi=null,G.trackEventLogs=[],G.version="v1.3.268",G.modeAlerted=!1,G.cartData=null,G.paypal=null,G.zonosMode=null,G.IframeService=o,G.getCurrentTimestamp=()=>(new Date).getTime(),G.zonosController=null,G.loadTimeApiInfoList=[],G.logIntervalId=null,G.init=async e=>{const{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l,storeId:u,zonosApiKey:p}=e;if(F.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),F.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${F.version}) ======`),F.zonosApiKey=p,F.storeId=u,"undefined"!=typeof window&&window.parent===window&&(F.googleAnalyticReady=!0,F.facebookPixelReady=!0),F.isNpm){r("====== ZONOS LOADING FROM NPM ======");const o=k();if(o&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${o} ======`,"info");const t=document.createElement("script");return t.src=`${o}/dist/scripts/zonos.js`,document.head.appendChild(t),t.addEventListener("load",(()=>{window.Zonos.isNpm=F.isNpm,window.Zonos.isBigCommerce=F.isBigCommerce,window.Zonos.isLegacyCheckout=F.isLegacyCheckout,window.Zonos.zonosMode=F.zonosMode,window.Zonos.init(e)})),t.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${o}`)})),void(window.isZonosPreview=!0)}if(!p&&!F.cartId)return void s("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!F.cartData&&F.cartId){r("Initialize cart data");const e=await D(F.cartId);if(!e)return void s("Failed to get cart data");F.cartData=e.cartData,F.zonosApiKey=e.zonosApiKey,F.cartSettings=e.settings}const t=await(async()=>{const e=c(),o=d();if(!e&&!o||!window.Zonos.zonosApiKey)return null;if(r("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return r("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:t,json:n}=await z("/api/get-test-public-credential");if(t.length||!n)return s("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",t),null;const i=n.publicCredential;return i?(r(`[ZONOS - loadZonos] Retrieve new test public token ${i}`,"info"),i):(s("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();t&&(F.zonosApiKey=t)}const m=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(F.cartId&&F.cartData||!!m){r("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id="zonos--checkout-hidden-button",document.body.appendChild(e)}r("init zonos"),F.restoreNativeBrowserFunctions(),F.injectCustomScriptForHostedCheckout(),F.injectZonosCdn(),F.injectZonosCss(),F.injectFonts(),F.injectCheckoutInternationalButton(),F.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l}}),F.doneInit=!0},G.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${R}`)){const e=document.createElement("button");e.id=R,e.style.display="none",document.body.appendChild(e)}},G.injectCustomScriptForHostedCheckout=()=>{const e=F.cartData,o=(null==e?void 0:e.metadata)||[],t=o.find((e=>"customHeaderScript"===e.key)),n=o.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(t||n)){if(t){r("Injecting custom header script");const e=document.createElement("script");e.textContent=t.value,document.head.appendChild(e)}if(n){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=n.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:n,headerScript:t,isLegacyCheckout:window.Zonos.isLegacyCheckout})},G.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},G.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${R}`);setTimeout((()=>{var o;e&&e.dispatchEvent(new CustomEvent("click",{detail:o}))}),10)},G.openHelloDialog=e=>{const o=document.querySelector("zonos-hello");o&&o.openHelloDialog(null==e||e)},G.showNotification=e=>{var o;null===(o=F.zonosController)||void 0===o||o.showNotification(e)},G.updateOrganizationName=e=>{var o;null===(o=F.zonosController)||void 0===o||o.updateOrganizationName(e)},G.disablePlaceOrderButtons=({autoEnable:e=!0,config:o,disable:t,placeOrderButtonSelector:n})=>{var r;if(!(null===(r=o.checkoutSettings)||void 0===r?void 0:r.disablePlaceOrderButtonActivation)&&n){const o=document.querySelectorAll(n),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};o.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))})),e&&t&&setTimeout((()=>{o.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},G.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const o="zonos---native-browser";let t=document.querySelector(`iframe#${o}`);t||(t=document.createElement("iframe"),t.id=o,t.style.display="none",t.style.opacity="0",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.width="1px",t.style.height="1px",t.style.border="none",t.style.overflow="hidden",t.style.visibility="hidden",document.body.appendChild(t));const n=(null===(e=t.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=n,document.body.removeChild(t)},G.injectController=({config:e})=>{var o,t;if(document.querySelector("zonos-controller"))return;if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const o=e.checkoutSettings.placeOrderButtonSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver((()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(t=e.checkoutSettings)||void 0===t?void 0:t.alwaysTriggerInternationalCheckoutSelector){const o=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver((()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})})).observe(document.body,{childList:!0,subtree:!0})}const n=document.createElement("zonos-controller");n.config=e,n.zonosApiKey=F.zonosApiKey||"",n.addEventListener("stripeInitEvent",(async e=>{const{detail:o}=e;r("loading Stripe");const t=await(async(...e)=>{E=!0;const o=Date.now();return A.then((t=>((e,o,t)=>{if(null===e)return null;const n=e.apply(void 0,o);return((e,o)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:o})})(n,t),n})(t,e,o)))})(o.publishableKey);t?(window.Zonos.stripe=t,window.Zonos.isCollect?n.initCollectElement(t):window.Zonos.isInvoice?n.initInvoiceElement(t):n.initCheckoutElement(t)):s("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(n),F.zonosController=n,r("Zonos controller injected!")},G.injectScript=({cdnType:e,isModule:o,theRestUrl:t})=>{const n=`${F.getZonosUrl(e)}/${t}`;if(document.querySelector(`script[src="${n}"]`))return void r(`Zonos script "${n}" already exists in the document`,"warn");const i=document.head||document.body,a=document.createElement("script");o?a.type="module":a.noModule=!0,a.src=n,a.crossOrigin="anonymous",a.onerror=()=>{s(`Failed to load ${a.src}`);const n=l(e);n&&F.injectScript({cdnType:n,isModule:o,theRestUrl:t})},i.appendChild(a)},G.getZonosUrl=e=>{const o=()=>{switch(e){case"jsdelivr":return q;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.268";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.268";case"vercel":return B}};if(F.isNpm){return k()||o()}return o()},G.injectZonosCdn=()=>{F.injectScript({cdnType:a,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),F.injectScript({cdnType:a,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},G.injectStylesheet=({cdnType:e,theRestUrl:o})=>{const t=F.getZonosUrl(e),n=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${B}/`,n.appendChild(r);const i=document.createElement("link");i.rel="stylesheet",i.href=`${t}/${o}`,i.onerror=()=>{s(`Failed to load ${i.href}`);const t=l(e);t&&F.injectStylesheet({cdnType:t,theRestUrl:o})},n.appendChild(i)},G.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(F.injectStylesheet({cdnType:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},G.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${W}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&!K.test(t.href))return t}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=W,e.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${W}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(t),r("Zonos font injected!")},G.setupGoogleFont=e=>{var o;null===(o=F.zonosController)||void 0===o||o.setupGoogleFont(e)},G.injectSupportGoogleFont=e=>{var o;r(`[FONT] injecting ${e}`);const t=null===(o=e.match(/family=(.*?):/))||void 0===o?void 0:o[1],n=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${W}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=W,n.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${t} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,n.appendChild(s),r(`[FONT] ${t} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=G)})();
@@ -0,0 +1,3 @@
1
+ export declare class ZonosPolicyConsent {
2
+ render(): any;
3
+ }
@@ -0,0 +1,41 @@
1
+ export type IMerchantPolicyKey = 'termsAndConditions' | 'privacyPolicy' | 'refundPolicy' | 'shippingPolicy' | 'warrantyPolicy';
2
+ export type IEnabledPolicy = {
3
+ key: IMerchantPolicyKey;
4
+ /** Localized, human-readable policy name (e.g. "Refund Policy") */
5
+ name: string;
6
+ /** The merchant-supplied URL */
7
+ url: string;
8
+ };
9
+ declare const policyConsentStoreReset: () => void, policyConsentStore: {
10
+ /** Whether the buyer has checked the consent box */
11
+ accepted: boolean;
12
+ /**
13
+ * ISO timestamp of the moment the buyer first accepted in this session. Snapshotted
14
+ * once on acceptance so that subsequent checkout-session updates don't overwrite the
15
+ * original audit timestamp with a later one. Null when not accepted.
16
+ */
17
+ acceptedAt: string | null;
18
+ /**
19
+ * Set once the buyer's click of Pay (or PayPal) has passed the consent gate. While
20
+ * true, the checkbox UI is disabled so the buyer can't uncheck mid-flow and create
21
+ * a race against the metadata builder, and so the Pay-in-USD confirm dialog can't
22
+ * be used to bypass a re-validation. Cleared by the store reset on every close.
23
+ */
24
+ locked: boolean;
25
+ /** Set to true when the buyer attempts to submit without accepting, so the UI can surface an inline error */
26
+ showError: boolean;
27
+ };
28
+ export { policyConsentStore, policyConsentStoreReset };
29
+ /**
30
+ * Returns the list of policies the merchant has configured (non-empty link).
31
+ * Policies are returned in a fixed display order so the rendered list is
32
+ * deterministic across renders and across locales. URLs that aren't absolute
33
+ * http(s) URLs are filtered out as defense-in-depth against `javascript:` or
34
+ * other unexpected schemes slipping through the backend validation.
35
+ *
36
+ * Reads from `zonosStore.checkoutSettings` (not `window.Zonos.cartSettings`)
37
+ * so the consent UI works when zonos-elements is consumed via the npm package,
38
+ * where `cartSettings` is not populated.
39
+ */
40
+ export declare const getEnabledPolicies: () => IEnabledPolicy[];
41
+ export declare const isPolicyConsentRequired: () => boolean;
@@ -227,6 +227,19 @@ declare const stripeStoreUpdateCheckoutSession: ({ adjustmentsAmount, cartId, cu
227
227
  errors: import("src/types").JsonError[];
228
228
  json: CheckoutSessionUpdateMutation | null;
229
229
  }>;
230
+ /**
231
+ * Pushes the buyer's policy consent into the checkout session's metadata via the
232
+ * dedicated metadata-only mutation. Called from the payment continue handler so
233
+ * consent is persisted to the session before Stripe's confirmPayment fires.
234
+ *
235
+ * Uses `checkoutSessionUpdateMetadata` — not the full `checkoutSessionUpdate` —
236
+ * because this fires at the end of the payment phase, when we don't want to
237
+ * touch landed-cost / cart / party state. No-op when no policies are configured,
238
+ * when consent hasn't been accepted, or when there is no active session ID.
239
+ */
240
+ export declare const stripeStoreRecordPolicyConsent: () => Promise<{
241
+ errors: string[];
242
+ }>;
230
243
  /**
231
244
  * This function translates an address to Latin characters using the Zonos API.
232
245
  * It first builds the request body for the API call. If there's no request body, it resets the translated address in the store and returns.
@@ -281,6 +281,12 @@ export declare const stringsArabic: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsArabic: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsArabic: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsArabic: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsArabic: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsArabic: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsBase: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsBase: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsBase: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsBase: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsBase: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsBase: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsChinese: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsChinese: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsChinese: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsChinese: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsChinese: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsChinese: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsDanish: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsDanish: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsDanish: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsDanish: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsDanish: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsDanish: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsDutch: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsDutch: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsDutch: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsDutch: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsDutch: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsDutch: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsFrench: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsFrench: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsFrench: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsFrench: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsFrench: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsFrench: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };
@@ -281,6 +281,12 @@ export declare const stringsGerman: {
281
281
  'Hide non-prepaid options': {
282
282
  value: string;
283
283
  };
284
+ "I agree to [merchantName]'s [policies]": {
285
+ value: string;
286
+ };
287
+ 'I agree to the [policies]': {
288
+ value: string;
289
+ };
284
290
  "If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly\u2014usually by email or phone\u2014with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request.": {
285
291
  value: string;
286
292
  };
@@ -497,6 +503,9 @@ export declare const stringsGerman: {
497
503
  'RFC number': {
498
504
  value: string;
499
505
  };
506
+ 'Refund policy': {
507
+ value: string;
508
+ };
500
509
  Region: {
501
510
  value: string;
502
511
  };
@@ -551,6 +560,9 @@ export declare const stringsGerman: {
551
560
  'Shipping method': {
552
561
  value: string;
553
562
  };
563
+ 'Shipping policy': {
564
+ value: string;
565
+ };
554
566
  'Shopping cart expired': {
555
567
  value: string;
556
568
  };
@@ -638,6 +650,9 @@ export declare const stringsGerman: {
638
650
  'Taxes, duties, and fees included': {
639
651
  value: string;
640
652
  };
653
+ 'Terms and conditions': {
654
+ value: string;
655
+ };
641
656
  'Test cards': {
642
657
  value: string;
643
658
  };
@@ -725,6 +740,9 @@ export declare const stringsGerman: {
725
740
  Village: {
726
741
  value: string;
727
742
  };
743
+ 'Warranty policy': {
744
+ value: string;
745
+ };
728
746
  "We couldn't complete your payment. Please verify the payment details and try again.": {
729
747
  value: string;
730
748
  };
@@ -755,6 +773,9 @@ export declare const stringsGerman: {
755
773
  'You may incur additional fees from the shipping carrier by not prepaying.': {
756
774
  value: string;
757
775
  };
776
+ 'You must accept the policies to place this order': {
777
+ value: string;
778
+ };
758
779
  "You will be redirected back to the merchant's site in a few seconds.": {
759
780
  value: string;
760
781
  };