@zonos/elements 1.3.250 → 1.3.251

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 (202) hide show
  1. package/dist/cjs/{cart-fcd1359c.js → cart-77640463.js} +1 -1
  2. package/dist/cjs/{hasInclusivePrice-745a8f29.js → hasInclusivePrice-e93c64fd.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-f040e147.js → invoice-211ef96c.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-cf92852e.js → isCollectMobileTablet-14fb5ab4.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-523b793a.js → localization-be7afc1b.js} +120 -0
  8. package/dist/cjs/{paypal-8c98c0a1.js → paypal-c61ef042.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-9b1e09f0.js → placeTestOrder-0f7477c8.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-94b6e51d.js → renderCheckoutCurrency-1ac02803.js} +2 -2
  11. package/dist/cjs/zonos-address-display_8.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +30 -4
  16. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  18. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-elements.cjs.js +1 -1
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  26. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  28. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +29 -2
  31. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
  32. package/dist/collection/components/store/translationStore/strings.base.js +6 -0
  33. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
  34. package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
  35. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
  36. package/dist/collection/components/store/translationStore/strings.french.js +6 -0
  37. package/dist/collection/components/store/translationStore/strings.german.js +6 -0
  38. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
  39. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
  40. package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
  41. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
  42. package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
  43. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
  44. package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
  45. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
  46. package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
  47. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
  48. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
  49. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
  50. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
  51. package/dist/esm/{cart-6e465f7b.js → cart-394c9ddb.js} +2 -2
  52. package/dist/esm/{hasInclusivePrice-c49d384d.js → hasInclusivePrice-f0322e1c.js} +1 -1
  53. package/dist/esm/index.js +7 -7
  54. package/dist/esm/{invoice-d416ba65.js → invoice-5ae81ae5.js} +2 -2
  55. package/dist/esm/{isCollectMobileTablet-48040572.js → isCollectMobileTablet-15b668d6.js} +2 -2
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/{localization-f4a7fb5a.js → localization-0ebc8356.js} +120 -0
  58. package/dist/esm/{paypal-6af6b978.js → paypal-b6fa3ec3.js} +2 -2
  59. package/dist/esm/{placeTestOrder-d19ac166.js → placeTestOrder-5756cbc3.js} +2 -2
  60. package/dist/esm/{renderCheckoutCurrency-c8aa8e7e.js → renderCheckoutCurrency-5f3e06ea.js} +2 -2
  61. package/dist/esm/zonos-address-display_8.entry.js +2 -2
  62. package/dist/esm/zonos-address_4.entry.js +2 -2
  63. package/dist/esm/zonos-card_5.entry.js +3 -3
  64. package/dist/esm/zonos-cart-items_12.entry.js +6 -6
  65. package/dist/esm/zonos-checkout.entry.js +30 -4
  66. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  67. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  68. package/dist/esm/zonos-collect.entry.js +4 -4
  69. package/dist/esm/zonos-controller.entry.js +2 -2
  70. package/dist/esm/zonos-country-flag.entry.js +1 -1
  71. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  72. package/dist/esm/zonos-elements.js +1 -1
  73. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  74. package/dist/esm/zonos-hello.entry.js +1 -1
  75. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  76. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  77. package/dist/esm/zonos-invoice.entry.js +4 -4
  78. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  79. package/dist/esm/zonos-store-credit.entry.js +3 -3
  80. package/dist/esm-es5/{cart-6e465f7b.js → cart-394c9ddb.js} +1 -1
  81. package/dist/esm-es5/hasInclusivePrice-f0322e1c.js +1 -0
  82. package/dist/esm-es5/index.js +1 -1
  83. package/dist/esm-es5/{invoice-d416ba65.js → invoice-5ae81ae5.js} +1 -1
  84. package/dist/esm-es5/{isCollectMobileTablet-48040572.js → isCollectMobileTablet-15b668d6.js} +1 -1
  85. package/dist/esm-es5/loader.js +1 -1
  86. package/dist/esm-es5/localization-0ebc8356.js +1 -0
  87. package/dist/esm-es5/{paypal-6af6b978.js → paypal-b6fa3ec3.js} +2 -2
  88. package/dist/esm-es5/{placeTestOrder-d19ac166.js → placeTestOrder-5756cbc3.js} +1 -1
  89. package/dist/esm-es5/{renderCheckoutCurrency-c8aa8e7e.js → renderCheckoutCurrency-5f3e06ea.js} +1 -1
  90. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  91. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  92. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  93. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  94. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  95. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  96. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  97. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  98. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  99. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  100. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  101. package/dist/esm-es5/zonos-elements.js +1 -1
  102. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  103. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  104. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  105. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  106. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  107. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  108. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  109. package/dist/scripts/index.d.ts +10 -0
  110. package/dist/scripts/index.js +1 -1
  111. package/dist/scripts/loadZonos.js +1 -1
  112. package/dist/scripts/zonos.js +1 -1
  113. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -0
  114. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
  115. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
  116. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
  117. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
  118. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
  119. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
  120. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
  121. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
  122. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
  123. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
  124. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
  125. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
  126. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
  127. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
  128. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
  129. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
  130. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
  131. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
  132. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
  133. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
  134. package/dist/types/types/utils/ZonosSettings.d.ts +4 -0
  135. package/dist/zonos-elements/index.esm.js +1 -1
  136. package/dist/zonos-elements/{p-9f49e35a.system.entry.js → p-07ca3347.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-2b7ef406.system.js → p-09d7a5cb.system.js} +1 -1
  138. package/dist/zonos-elements/{p-741e07e1.system.entry.js → p-0af96b5b.system.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-cad67b10.system.entry.js → p-0da3cc62.system.entry.js} +1 -1
  140. package/dist/zonos-elements/p-0dd5a4b8.system.js +1 -0
  141. package/dist/zonos-elements/{p-26848428.entry.js → p-1162b685.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-59fe8416.entry.js → p-11d6de1a.entry.js} +1 -1
  143. package/dist/zonos-elements/p-1282495f.system.js +1 -0
  144. package/dist/zonos-elements/p-13041752.js +1 -0
  145. package/dist/zonos-elements/{p-90b8c428.system.js → p-27fad55a.system.js} +1 -1
  146. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  147. package/dist/zonos-elements/{p-cc78c9d4.js → p-29f7950c.js} +1 -1
  148. package/dist/zonos-elements/p-2b118454.js +1 -0
  149. package/dist/zonos-elements/{p-fbfaa4f9.entry.js → p-2bdc2206.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-f4cc124f.entry.js → p-2c2e5ee6.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-fa0139c3.system.js → p-2c9c750e.system.js} +1 -1
  152. package/dist/zonos-elements/{p-f0855df3.system.js → p-321e7920.system.js} +1 -1
  153. package/dist/zonos-elements/{p-64ad0854.entry.js → p-3d757163.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-13ed3789.js → p-4f23732f.js} +1 -1
  155. package/dist/zonos-elements/{p-48228d76.js → p-57b27c60.js} +1 -1
  156. package/dist/zonos-elements/{p-77c0a02b.entry.js → p-615b5d13.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-e331a235.js → p-620ba943.js} +1 -1
  158. package/dist/zonos-elements/{p-2435f196.entry.js → p-785111e7.entry.js} +1 -1
  159. package/dist/zonos-elements/p-7b294762.system.entry.js +1 -0
  160. package/dist/zonos-elements/p-7fde2d8a.entry.js +1 -0
  161. package/dist/zonos-elements/{p-b334c76c.entry.js → p-8abeab5a.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-a1a3657e.system.entry.js → p-8dfa0bb8.system.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-f25e7f5a.entry.js → p-8efb79ab.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-9d64783a.entry.js → p-920d9189.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-28d62fc8.system.entry.js → p-92d91395.system.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-66e1dc55.entry.js → p-95f7f2a0.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-b08bf843.entry.js → p-97fb5ad5.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-b9581a92.entry.js → p-9ff90151.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-9bc5e944.system.entry.js → p-a0ac3ca2.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-7042c6da.system.entry.js → p-a1e23675.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-5fceccc3.system.entry.js → p-a5adc047.system.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-5ca50862.system.entry.js → p-a5fb864a.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-3827041d.entry.js → p-a95ac160.entry.js} +1 -1
  174. package/dist/zonos-elements/p-ac353826.js +1 -0
  175. package/dist/zonos-elements/{p-d634f954.system.entry.js → p-b37a85f0.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-b07da3e8.system.entry.js → p-b49b8da4.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-e9ca4447.entry.js → p-bdaf2a38.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-1f63615f.system.entry.js → p-c1ae7391.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-85529818.system.entry.js → p-c2121663.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-65892fa7.system.js → p-c52b917b.system.js} +1 -1
  181. package/dist/zonos-elements/{p-17fbfda0.system.entry.js → p-c6047442.system.entry.js} +1 -1
  182. package/dist/zonos-elements/p-ca19a10a.js +1 -0
  183. package/dist/zonos-elements/p-cf69bcc4.system.js +1 -0
  184. package/dist/zonos-elements/{p-a026b5ad.system.entry.js → p-d65cfa9b.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-d2301d8a.entry.js → p-d8610393.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-a6a401e5.system.entry.js → p-daaaa8f1.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-1b56814d.entry.js → p-efa69c89.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-df316670.system.js → p-fbccfa3e.system.js} +1 -1
  189. package/dist/zonos-elements/{p-a1b0e9a5.system.entry.js → p-fce715f1.system.entry.js} +1 -1
  190. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  191. package/package.json +1 -1
  192. package/dist/esm-es5/hasInclusivePrice-c49d384d.js +0 -1
  193. package/dist/esm-es5/localization-f4a7fb5a.js +0 -1
  194. package/dist/zonos-elements/p-1e6509d7.js +0 -1
  195. package/dist/zonos-elements/p-4d5932ac.system.entry.js +0 -1
  196. package/dist/zonos-elements/p-77113201.system.js +0 -1
  197. package/dist/zonos-elements/p-997b7eef.js +0 -1
  198. package/dist/zonos-elements/p-9c6917ab.system.js +0 -1
  199. package/dist/zonos-elements/p-c30a155e.js +0 -1
  200. package/dist/zonos-elements/p-d46484aa.entry.js +0 -1
  201. package/dist/zonos-elements/p-e4d58bd7.js +0 -1
  202. package/dist/zonos-elements/p-fa5767c3.system.js +0 -1
@@ -719,6 +719,9 @@ export declare const stringsDutch: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsDutch: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsFrench: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsFrench: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsGerman: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsGerman: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsHebrew: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsHebrew: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsIndonesian: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsIndonesian: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsItalian: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsItalian: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsJapanese: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsJapanese: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsKorean: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsKorean: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsNorwegian: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsNorwegian: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsPolish: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsPolish: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsPortuguese: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsPortuguese: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsRussian: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsRussian: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsSpanish: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsSpanish: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsSwedish: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsSwedish: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsTurkish: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsTurkish: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -719,6 +719,9 @@ export declare const stringsVietnamese: {
719
719
  "We couldn't complete your payment. Please verify the payment details and try again.": {
720
720
  value: string;
721
721
  };
722
+ 'We detected that you are shipping to a domestic address.': {
723
+ value: string;
724
+ };
722
725
  'We detected that you are shipping to an international address.': {
723
726
  value: string;
724
727
  };
@@ -746,6 +749,9 @@ export declare const stringsVietnamese: {
746
749
  "You will be redirected back to the merchant's site in a few seconds.": {
747
750
  value: string;
748
751
  };
752
+ 'You will be redirected to domestic checkout shortly.': {
753
+ value: string;
754
+ };
749
755
  'You will be redirected to international checkout shortly.': {
750
756
  value: string;
751
757
  };
@@ -27,6 +27,10 @@ export type GenericZonosSettings = {
27
27
  * URL of the hosted checkout.
28
28
  */
29
29
  hostedCheckoutUrl?: string;
30
+ /**
31
+ * Whether to redirect users to BigCommerce domestic checkout when they select a disabled country in the international checkout and the store source currency is USD.
32
+ */
33
+ isBigcommerceDomesticCheckoutRedirectEnabled?: boolean;
30
34
  /**
31
35
  * Use custom address fields in the checkout based on the country user is from.
32
36
  */
@@ -1 +1 @@
1
- import{c as n}from"./p-595f5dd2.js";import{g as o,I as t}from"./p-e7b0c156.js";import{l as r}from"./p-0a377722.js";export{a as availableTestKeys}from"./p-0a377722.js";import{g as i,a as l,h as u,l as m}from"./p-41dd1cb8.js";import{g as p,_ as w,c as f,a as h}from"./p-b2d81c98.js";export{c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector}from"./p-b2d81c98.js";export{c as countryRequireShortAddressCode}from"./p-1d42cd20.js";export{c as countryRequireTaxId,e as euCountryCodes,s as shipToTaxIdLabels}from"./p-6b361d2b.js";const y=["jsdelivr","cdnjs","unpkg","vercel"],v="jsdelivr",O=e=>{const n=y.indexOf(e);return y[n+1]||null},S=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.250.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["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(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${t}' for loading elements script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t},g="https://js.stripe.com/v3",j=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,z="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let b=null;const N=Promise.resolve().then((()=>{return e=null,null!==b||(b=new Promise(((n,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(z),window.Stripe)n(window.Stripe);else try{let t=(()=>{const e=document.querySelectorAll(`script[src^="${g}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&j.test(o.src))return o}return null})();t&&e?console.warn(z):t||(t=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${g}${n}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(m("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==t||t.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):o(new Error("Stripe.js not available"))})),null==t||t.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else n(null)}))),b;var e}));let I=!1;N.catch((e=>{I||console.warn(e)}));const k=async({cartId:e,retries:n})=>{const t=i(),s=o(),c=p()||void 0,d=new URLSearchParams;s.overrideShouldEnabledCustomAddress&&d.set("overrideShouldEnabledCustomAddress",s.overrideShouldEnabledCustomAddress);const{errors:l,json:a,zonosMode:m}=await u(`/api/zonos-elements/get-cart?${d.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:c,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),w=!a||l.length;return w&&n?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:n}),await new Promise((e=>setTimeout(e,500))),k({cartId:e,retries:n-1})):w?null:Object.assign(Object.assign({},a),{zonosMode:m})};var R;const T=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})(),$=Date.now(),Z="https://v1.3.250.js.zonos.com",A=T||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.250",L="https://fonts.googleapis.com",U=/^https:\/\/fonts\.googleapis\.com/;class C{}R=C,C.doneInit=!1,C.cartSettings=null,C.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),C.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),C._paypalMockResponse=null,C.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,C.isBigCommerce=!1,C.releaseDate="1775061206883",C.isLegacyCheckout=!1,C.googleAnalyticId=null,C.googleAnalyticReady=!1,C.startLoadTime=$,C.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",C.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),C.overrideUseCustomAddressForm=!1,C.isCollect=!1,C.isInvoice=!1,C.isNpm=!0,C.zonosQaUrl=null,C.zonosQaUrlApi=null,C.trackEventLogs=[],C.version="v1.3.250",C.modeAlerted=!1,C.cartData=null,C.paypal=null,C.zonosMode=null,C.IframeService=t,C.getCurrentTimestamp=()=>(new Date).getTime(),C.zonosController=null,C.loadTimeApiInfoList=[],C.logIntervalId=null,C.init=async e=>{const{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d,storeId:a,zonosApiKey:p}=e;if(R.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),R.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${R.version}) ======`),R.zonosApiKey=p,R.storeId=a,"undefined"!=typeof window&&window.parent===window&&(R.googleAnalyticReady=!0),R.isNpm){r("====== ZONOS LOADING FROM NPM ======");const n=S();if(n&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${n} ======`,"info");const o=document.createElement("script");return o.src=`${n}/dist/scripts/zonos.js`,document.head.appendChild(o),o.addEventListener("load",(()=>{window.Zonos.isNpm=R.isNpm,window.Zonos.isBigCommerce=R.isBigCommerce,window.Zonos.isLegacyCheckout=R.isLegacyCheckout,window.Zonos.zonosMode=R.zonosMode,window.Zonos.init(e)})),o.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${n}`)})),void(window.isZonosPreview=!0)}if(!p&&!R.cartId)return void m("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!R.cartData&&R.cartId){r("Initialize cart data");const e=await(async e=>{const{isDgsCartId:n,isLegacyCartId:o}=w(e);if(!o&&!n)return m("[ZONOS - loadZonos] invalid cart id"),null;const t=await k({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",t),t?(window.Zonos.storeId=t.cartData.storeId,window.Zonos.zonosApiKey=t.cartData.credentialToken,window.Zonos.zonosMode=t.zonosMode,{cartData:t.cartData,settings:t.settings,storeFavicon:t.storeFaviconUrl,storeId:t.cartData.storeId,storeLogo:t.storeLogoUrl,zonosApiKey:t.cartData.credentialToken}):(m("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)})(R.cartId);if(!e)return void m("Failed to get cart data");R.cartData=e.cartData,R.zonosApiKey=e.zonosApiKey,R.cartSettings=e.settings}const o=await(async()=>{const e=i(),n=l();if(!e&&!n||!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:o,json:t}=await u("/api/get-test-public-credential");if(o.length||!t)return m("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",o),null;const s=t.publicCredential;return s?(r(`[ZONOS - loadZonos] Retrieve new test public token ${s}`,"info"),s):(m("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();o&&(R.zonosApiKey=o)}const h=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(R.cartId&&R.cartData||h){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=`${f}`,document.body.appendChild(e)}r("init zonos"),R.restoreNativeBrowserFunctions(),R.injectCustomScriptForHostedCheckout(),R.injectZonosCdn(),R.injectZonosCss(),R.injectFonts(),R.injectCheckoutInternationalButton(),R.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d}}),R.doneInit=!0},C.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${h}`)){const e=document.createElement("button");e.id=h,e.style.display="none",document.body.appendChild(e)}},C.injectCustomScriptForHostedCheckout=()=>{const e=R.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),t=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||t)){if(o){r("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(t){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=t.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:t,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},C.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},C.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${h}`);setTimeout((()=>{e&&e.dispatchEvent(n("click"))}),10)},C.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},C.showNotification=e=>{var n;null===(n=R.zonosController)||void 0===n||n.showNotification(e)},C.updateOrganizationName=e=>{var n;null===(n=R.zonosController)||void 0===n||n.updateOrganizationName(e)},C.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:o,placeOrderButtonSelector:t})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&t){const n=document.querySelectorAll(t),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(o?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&o&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},C.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const n="zonos---native-browser";let o=document.querySelector(`iframe#${n}`);o||(o=document.createElement("iframe"),o.id=n,o.style.display="none",o.style.opacity="0",o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.width="1px",o.style.height="1px",o.style.border="none",o.style.overflow="hidden",o.style.visibility="hidden",document.body.appendChild(o));const t=(null===(e=o.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=t,document.body.removeChild(o)},C.injectController=({config:e})=>{var n,o;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.alwaysTriggerInternationalCheckoutSelector){const n=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const t=document.createElement("zonos-controller");t.config=e,t.zonosApiKey=R.zonosApiKey||"",t.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;r("loading Stripe");const o=await(async(...e)=>{I=!0;const n=Date.now();return N.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(n.publishableKey);o?(window.Zonos.stripe=o,window.Zonos.isCollect?t.initCollectElement(o):window.Zonos.isInvoice?t.initInvoiceElement(o):t.initCheckoutElement(o)):m("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(t),R.zonosController=t,r("Zonos controller injected!")},C.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const t=`${R.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${t}"]`))return void r(`Zonos script "${t}" already exists in the document`,"warn");const s=document.head||document.body,i=document.createElement("script");n?i.type="module":i.noModule=!0,i.src=t,i.crossOrigin="anonymous",i.onerror=()=>{m(`Failed to load ${i.src}`);const t=O(e);t&&R.injectScript({cdnType:t,isModule:n,theRestUrl:o})},s.appendChild(i)},C.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return A;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.250";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.250";case"vercel":return Z}};return R.isNpm&&S()||n()},C.injectZonosCdn=()=>{R.injectScript({cdnType:v,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),R.injectScript({cdnType:v,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},C.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const o=R.getZonosUrl(e),t=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${Z}/`,t.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${o}/${n}`,r.onerror=()=>{m(`Failed to load ${r.href}`);const o=O(e);o&&R.injectStylesheet({cdnType:o,theRestUrl:n})},t.appendChild(r)},C.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(R.injectStylesheet({cdnType:v,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},C.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${L}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!U.test(o.href))return o}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=L,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${L}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),r("Zonos font injected!")},C.setupGoogleFont=e=>{var n;null===(n=R.zonosController)||void 0===n||n.setupGoogleFont(e)},C.injectSupportGoogleFont=e=>{var n;r(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],t=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${L}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=L,t.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,t.appendChild(s),r(`[FONT] ${o} font injected!`)};const E=["ZONOS_FORM_TYPE_USING","APP_VERSION","APP_VERSION_NPM_INTEGRATION","LEGACY_CHECKOUT_FACADE"],P=["ORDER_DUPLICATION_CONSENT","WITH_ABANDONED_CART_TOKEN"],F=[...E,...P];export{C as Zonos,F as checkoutSessionAttributeKeys,P as checkoutSessionImmutableAttributeKeys,E as checkoutSessionMutableAttributeKeys}
1
+ import{c as n}from"./p-595f5dd2.js";import{g as o,I as t}from"./p-e7b0c156.js";import{l as r}from"./p-0a377722.js";export{a as availableTestKeys}from"./p-0a377722.js";import{g as i,a as l,h as u,l as m}from"./p-41dd1cb8.js";import{g as p,_ as w,c as f,a as h}from"./p-b2d81c98.js";export{c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector}from"./p-b2d81c98.js";export{c as countryRequireShortAddressCode}from"./p-1d42cd20.js";export{c as countryRequireTaxId,e as euCountryCodes,s as shipToTaxIdLabels}from"./p-6b361d2b.js";const y=["jsdelivr","cdnjs","unpkg","vercel"],v="jsdelivr",O=e=>{const n=y.indexOf(e);return y[n+1]||null},S=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.251.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["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(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${t}' for loading elements script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t},g="https://js.stripe.com/v3",j=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,z="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let b=null;const N=Promise.resolve().then((()=>{return e=null,null!==b||(b=new Promise(((n,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(z),window.Stripe)n(window.Stripe);else try{let t=(()=>{const e=document.querySelectorAll(`script[src^="${g}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&j.test(o.src))return o}return null})();t&&e?console.warn(z):t||(t=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${g}${n}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(m("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==t||t.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):o(new Error("Stripe.js not available"))})),null==t||t.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else n(null)}))),b;var e}));let I=!1;N.catch((e=>{I||console.warn(e)}));const k=async({cartId:e,retries:n})=>{const t=i(),s=o(),c=p()||void 0,d=new URLSearchParams;s.overrideShouldEnabledCustomAddress&&d.set("overrideShouldEnabledCustomAddress",s.overrideShouldEnabledCustomAddress);const{errors:l,json:a,zonosMode:m}=await u(`/api/zonos-elements/get-cart?${d.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:c,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),w=!a||l.length;return w&&n?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:n}),await new Promise((e=>setTimeout(e,500))),k({cartId:e,retries:n-1})):w?null:Object.assign(Object.assign({},a),{zonosMode:m})};var R;const T=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})(),$=Date.now(),Z="https://v1.3.251.js.zonos.com",A=T||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.251",L="https://fonts.googleapis.com",U=/^https:\/\/fonts\.googleapis\.com/;class C{}R=C,C.doneInit=!1,C.cartSettings=null,C.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),C.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),C._paypalMockResponse=null,C.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,C.isBigCommerce=!1,C.releaseDate="1775502731069",C.isLegacyCheckout=!1,C.googleAnalyticId=null,C.googleAnalyticReady=!1,C.startLoadTime=$,C.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",C.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),C.overrideUseCustomAddressForm=!1,C.isCollect=!1,C.isInvoice=!1,C.isNpm=!0,C.zonosQaUrl=null,C.zonosQaUrlApi=null,C.trackEventLogs=[],C.version="v1.3.251",C.modeAlerted=!1,C.cartData=null,C.paypal=null,C.zonosMode=null,C.IframeService=t,C.getCurrentTimestamp=()=>(new Date).getTime(),C.zonosController=null,C.loadTimeApiInfoList=[],C.logIntervalId=null,C.init=async e=>{const{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d,storeId:a,zonosApiKey:p}=e;if(R.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),R.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${R.version}) ======`),R.zonosApiKey=p,R.storeId=a,"undefined"!=typeof window&&window.parent===window&&(R.googleAnalyticReady=!0),R.isNpm){r("====== ZONOS LOADING FROM NPM ======");const n=S();if(n&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${n} ======`,"info");const o=document.createElement("script");return o.src=`${n}/dist/scripts/zonos.js`,document.head.appendChild(o),o.addEventListener("load",(()=>{window.Zonos.isNpm=R.isNpm,window.Zonos.isBigCommerce=R.isBigCommerce,window.Zonos.isLegacyCheckout=R.isLegacyCheckout,window.Zonos.zonosMode=R.zonosMode,window.Zonos.init(e)})),o.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${n}`)})),void(window.isZonosPreview=!0)}if(!p&&!R.cartId)return void m("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!R.cartData&&R.cartId){r("Initialize cart data");const e=await(async e=>{const{isDgsCartId:n,isLegacyCartId:o}=w(e);if(!o&&!n)return m("[ZONOS - loadZonos] invalid cart id"),null;const t=await k({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",t),t?(window.Zonos.storeId=t.cartData.storeId,window.Zonos.zonosApiKey=t.cartData.credentialToken,window.Zonos.zonosMode=t.zonosMode,{cartData:t.cartData,settings:t.settings,storeFavicon:t.storeFaviconUrl,storeId:t.cartData.storeId,storeLogo:t.storeLogoUrl,zonosApiKey:t.cartData.credentialToken}):(m("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)})(R.cartId);if(!e)return void m("Failed to get cart data");R.cartData=e.cartData,R.zonosApiKey=e.zonosApiKey,R.cartSettings=e.settings}const o=await(async()=>{const e=i(),n=l();if(!e&&!n||!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:o,json:t}=await u("/api/get-test-public-credential");if(o.length||!t)return m("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",o),null;const s=t.publicCredential;return s?(r(`[ZONOS - loadZonos] Retrieve new test public token ${s}`,"info"),s):(m("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();o&&(R.zonosApiKey=o)}const h=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(R.cartId&&R.cartData||h){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=`${f}`,document.body.appendChild(e)}r("init zonos"),R.restoreNativeBrowserFunctions(),R.injectCustomScriptForHostedCheckout(),R.injectZonosCdn(),R.injectZonosCss(),R.injectFonts(),R.injectCheckoutInternationalButton(),R.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d}}),R.doneInit=!0},C.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${h}`)){const e=document.createElement("button");e.id=h,e.style.display="none",document.body.appendChild(e)}},C.injectCustomScriptForHostedCheckout=()=>{const e=R.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),t=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||t)){if(o){r("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(t){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=t.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:t,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},C.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},C.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${h}`);setTimeout((()=>{e&&e.dispatchEvent(n("click"))}),10)},C.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},C.showNotification=e=>{var n;null===(n=R.zonosController)||void 0===n||n.showNotification(e)},C.updateOrganizationName=e=>{var n;null===(n=R.zonosController)||void 0===n||n.updateOrganizationName(e)},C.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:o,placeOrderButtonSelector:t})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&t){const n=document.querySelectorAll(t),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(o?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&o&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},C.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const n="zonos---native-browser";let o=document.querySelector(`iframe#${n}`);o||(o=document.createElement("iframe"),o.id=n,o.style.display="none",o.style.opacity="0",o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.width="1px",o.style.height="1px",o.style.border="none",o.style.overflow="hidden",o.style.visibility="hidden",document.body.appendChild(o));const t=(null===(e=o.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=t,document.body.removeChild(o)},C.injectController=({config:e})=>{var n,o;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.alwaysTriggerInternationalCheckoutSelector){const n=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{R.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const t=document.createElement("zonos-controller");t.config=e,t.zonosApiKey=R.zonosApiKey||"",t.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;r("loading Stripe");const o=await(async(...e)=>{I=!0;const n=Date.now();return N.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(n.publishableKey);o?(window.Zonos.stripe=o,window.Zonos.isCollect?t.initCollectElement(o):window.Zonos.isInvoice?t.initInvoiceElement(o):t.initCheckoutElement(o)):m("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(t),R.zonosController=t,r("Zonos controller injected!")},C.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const t=`${R.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${t}"]`))return void r(`Zonos script "${t}" already exists in the document`,"warn");const s=document.head||document.body,i=document.createElement("script");n?i.type="module":i.noModule=!0,i.src=t,i.crossOrigin="anonymous",i.onerror=()=>{m(`Failed to load ${i.src}`);const t=O(e);t&&R.injectScript({cdnType:t,isModule:n,theRestUrl:o})},s.appendChild(i)},C.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return A;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.251";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.251";case"vercel":return Z}};return R.isNpm&&S()||n()},C.injectZonosCdn=()=>{R.injectScript({cdnType:v,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),R.injectScript({cdnType:v,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},C.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const o=R.getZonosUrl(e),t=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${Z}/`,t.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${o}/${n}`,r.onerror=()=>{m(`Failed to load ${r.href}`);const o=O(e);o&&R.injectStylesheet({cdnType:o,theRestUrl:n})},t.appendChild(r)},C.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(R.injectStylesheet({cdnType:v,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},C.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${L}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!U.test(o.href))return o}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=L,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${L}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),r("Zonos font injected!")},C.setupGoogleFont=e=>{var n;null===(n=R.zonosController)||void 0===n||n.setupGoogleFont(e)},C.injectSupportGoogleFont=e=>{var n;r(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],t=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${L}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=L,t.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,t.appendChild(s),r(`[FONT] ${o} font injected!`)};const E=["ZONOS_FORM_TYPE_USING","APP_VERSION","APP_VERSION_NPM_INTEGRATION","LEGACY_CHECKOUT_FACADE"],P=["ORDER_DUPLICATION_CONSENT","WITH_ABANDONED_CART_TOKEN"],F=[...E,...P];export{C as Zonos,F as checkoutSessionAttributeKeys,P as checkoutSessionImmutableAttributeKeys,E as checkoutSessionMutableAttributeKeys}
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,o,s){if(s||arguments.length===2)for(var e=0,n=o.length,a;e<n;e++){if(a||!(e in o)){if(!a)a=Array.prototype.slice.call(o,0,e);a[e]=o[e]}}return t.concat(a||Array.prototype.slice.call(o))};System.register(["./p-7261e245.system.js","./p-df316670.system.js","./p-5dd86dd9.system.js","./p-ac30b7a8.system.js","./p-23e7c655.system.js","./p-1aa93d1e.system.js","./p-9c6917ab.system.js","./p-01174496.system.js","./p-d938f42f.system.js","./p-d18a2b2c.system.js","./p-7501c637.system.js"],(function(t){"use strict";var o,s,e,n,a,i,r,h,c;return{setters:[function(t){o=t.r;s=t.e;e=t.h;n=t.a},function(t){a=t.d},function(t){i=t.c},function(t){r=t.f},function(t){h=t.c},function(t){c=t.s},function(){},function(){},function(){},function(){},function(){}],execute:function(){var f=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";var l=f;var m=t("zonos_collect_cart_items",function(){function t(t){o(this,t);this.errorImages=[]}t.prototype.render=function(){var t=this;var o=s("./assets/empty-item.jpeg");var r=a.items.filter((function(t){return!t.isRestricted}));return e(n,{key:"2f5507537492851b67a5204ab68ce2f938899f23",class:"zonos--collect-cart-items zonos--elements"},e("table",{key:"e648cda9d4c111ecde60291f420178e4e4230b50",class:"zonos--cart-table"},e("tbody",{key:"b266291e61d0df5c0ea3ae8240a3bfb6147edbb4"},r.map((function(s){var n=s.imageUrl;var a=i(s.name);return e("tr",{class:"zonos--collect-cart-item"},e("td",{class:"zonos--column zonos--cart-item-image"},n&&!t.errorImages.includes(n)?e("img",{alt:s.name,onError:function(){t.errorImages=__spreadArray(__spreadArray([],t.errorImages,true),[n],false)},src:s.imageUrl,style:{"min-width":"40px"},width:40}):e("img",{alt:s.name,src:o,width:40})),e("td",{class:"zonos--column zonos--cart-item-name"},e("div",null,a.map((function(t){return e("zonos-text",{type:"semiBoldLabel"},t)})))))})))))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());m.style=l;var d=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--spacing, 24px)}";var p=d;var u=t("zonos_h_stack",function(){function t(t){o(this,t);this.spacing=24}t.prototype.render=function(){return e(n,{key:"443aa77bfbf4c0c84c33d0ef7652caec001968c3",style:{"--spacing":"".concat(this.spacing,"px"),"--zonos--font-family":r()}},e("slot",{key:"3366df34b9f0f3549e556cff1e47878c2f6cd124"}))};return t}());u.style=p;var y=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;background:var(--zonos-elements-gray-200);border-radius:var(--zonos-elements-radius-12);width:var(--zonos--skeleton-width);height:var(--zonos--skeleton-height);min-height:var(--zonos--skeleton-height);max-width:100%}";var b=y;var g=t("zonos_skeleton",function(){function t(t){o(this,t);this.skeletonWidth="100%";this.skeletonHeight="14px"}t.prototype.render=function(){return e(n,{key:"096e505180d901c1523567f89cdbcca7869a0895",class:h(["zonos--elements zonos--skeleton"]),style:c({"--zonos--skeleton-height":this.skeletonHeight,"--zonos--skeleton-width":this.skeletonWidth})})};return t}());g.style=b}}}));
1
+ var __spreadArray=this&&this.__spreadArray||function(t,o,s){if(s||arguments.length===2)for(var e=0,n=o.length,a;e<n;e++){if(a||!(e in o)){if(!a)a=Array.prototype.slice.call(o,0,e);a[e]=o[e]}}return t.concat(a||Array.prototype.slice.call(o))};System.register(["./p-7261e245.system.js","./p-fbccfa3e.system.js","./p-5dd86dd9.system.js","./p-ac30b7a8.system.js","./p-23e7c655.system.js","./p-1aa93d1e.system.js","./p-cf69bcc4.system.js","./p-01174496.system.js","./p-d938f42f.system.js","./p-d18a2b2c.system.js","./p-7501c637.system.js"],(function(t){"use strict";var o,s,e,n,a,i,r,h,c;return{setters:[function(t){o=t.r;s=t.e;e=t.h;n=t.a},function(t){a=t.d},function(t){i=t.c},function(t){r=t.f},function(t){h=t.c},function(t){c=t.s},function(){},function(){},function(){},function(){},function(){}],execute:function(){var f=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";var l=f;var m=t("zonos_collect_cart_items",function(){function t(t){o(this,t);this.errorImages=[]}t.prototype.render=function(){var t=this;var o=s("./assets/empty-item.jpeg");var r=a.items.filter((function(t){return!t.isRestricted}));return e(n,{key:"2f5507537492851b67a5204ab68ce2f938899f23",class:"zonos--collect-cart-items zonos--elements"},e("table",{key:"e648cda9d4c111ecde60291f420178e4e4230b50",class:"zonos--cart-table"},e("tbody",{key:"b266291e61d0df5c0ea3ae8240a3bfb6147edbb4"},r.map((function(s){var n=s.imageUrl;var a=i(s.name);return e("tr",{class:"zonos--collect-cart-item"},e("td",{class:"zonos--column zonos--cart-item-image"},n&&!t.errorImages.includes(n)?e("img",{alt:s.name,onError:function(){t.errorImages=__spreadArray(__spreadArray([],t.errorImages,true),[n],false)},src:s.imageUrl,style:{"min-width":"40px"},width:40}):e("img",{alt:s.name,src:o,width:40})),e("td",{class:"zonos--column zonos--cart-item-name"},e("div",null,a.map((function(t){return e("zonos-text",{type:"semiBoldLabel"},t)})))))})))))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());m.style=l;var d=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--spacing, 24px)}";var p=d;var u=t("zonos_h_stack",function(){function t(t){o(this,t);this.spacing=24}t.prototype.render=function(){return e(n,{key:"443aa77bfbf4c0c84c33d0ef7652caec001968c3",style:{"--spacing":"".concat(this.spacing,"px"),"--zonos--font-family":r()}},e("slot",{key:"3366df34b9f0f3549e556cff1e47878c2f6cd124"}))};return t}());u.style=p;var y=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;background:var(--zonos-elements-gray-200);border-radius:var(--zonos-elements-radius-12);width:var(--zonos--skeleton-width);height:var(--zonos--skeleton-height);min-height:var(--zonos--skeleton-height);max-width:100%}";var b=y;var g=t("zonos_skeleton",function(){function t(t){o(this,t);this.skeletonWidth="100%";this.skeletonHeight="14px"}t.prototype.render=function(){return e(n,{key:"096e505180d901c1523567f89cdbcca7869a0895",class:h(["zonos--elements zonos--skeleton"]),style:c({"--zonos--skeleton-height":this.skeletonHeight,"--zonos--skeleton-width":this.skeletonWidth})})};return t}());g.style=b}}}));
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(r,n,e,t){function o(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function i(r){try{c(t.next(r))}catch(r){a(r)}}function u(r){try{c(t["throw"](r))}catch(r){a(r)}}function c(r){r.done?e(r.value):o(r.value).then(i,u)}c((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,o,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(r){return function(n){return c([r,n])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(e=0)),e)try{if(t=1,o&&(a=u[0]&2?o["return"]:u[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;if(o=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1];a=u;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(u);break}if(a[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];o=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ac30b7a8.system.js","./p-df316670.system.js","./p-9c6917ab.system.js","./p-01174496.system.js","./p-8c6624b6.system.js","./p-d938f42f.system.js","./p-ab25379f.system.js"],(function(r){"use strict";var n,e,t,o,a,i,u,c,s,l,d,f,v,p,y,h,w,b,m,_,P;return{setters:[function(r){n=r.c;e=r.z},function(r){t=r.t;o=r.y;a=r.b;i=r.d;u=r.v;c=r.w;s=r.x;l=r.z;d=r.r;f=r.h;v=r.E},function(r){p=r.t;y=r.s},function(r){h=r.h;w=r.l;b=r.j},function(r){m=r.i},function(r){_=r.l},function(r){P=r.s}],execute:function(){
1
+ var __awaiter=this&&this.__awaiter||function(r,n,e,t){function o(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function i(r){try{c(t.next(r))}catch(r){a(r)}}function u(r){try{c(t["throw"](r))}catch(r){a(r)}}function c(r){r.done?e(r.value):o(r.value).then(i,u)}c((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,o,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(r){return function(n){return c([r,n])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(e=0)),e)try{if(t=1,o&&(a=u[0]&2?o["return"]:u[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;if(o=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1];a=u;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(u);break}if(a[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];o=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ac30b7a8.system.js","./p-fbccfa3e.system.js","./p-cf69bcc4.system.js","./p-01174496.system.js","./p-8c6624b6.system.js","./p-d938f42f.system.js","./p-ab25379f.system.js"],(function(r){"use strict";var n,e,t,o,a,i,u,c,s,l,d,f,v,p,y,h,w,b,m,_,P;return{setters:[function(r){n=r.c;e=r.z},function(r){t=r.t;o=r.y;a=r.b;i=r.d;u=r.v;c=r.w;s=r.x;l=r.z;d=r.r;f=r.h;v=r.F},function(r){p=r.t;y=r.s},function(r){h=r.h;w=r.l;b=r.j},function(r){m=r.i},function(r){_=r.l},function(r){P=r.s}],execute:function(){
2
2
  /*!
3
3
  * paypal-js v8.4.2 (2025-09-04T17:21:30.135Z)
4
4
  * Copyright 2020-present, PayPal, Inc. All rights reserved.