@zonos/elements 1.3.25 → 1.3.26

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 (201) hide show
  1. package/dist/cjs/{cart-ab3b679e.js → cart-7e817cad.js} +192 -8
  2. package/dist/cjs/{getBorderRadius-ea0984bb.js → getBorderRadius-074b46ef.js} +1 -1
  3. package/dist/cjs/index.cjs.js +3 -3
  4. package/dist/cjs/{isDarkColor-b14d5752.js → isDarkColor-371a3b1a.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{submitGtag-1471da9f.js → submitGtag-7e0065da.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +4 -4
  12. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +29 -12
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +52 -6
  14. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-country-select_3.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-elements.cjs.js +1 -1
  18. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-hello.cjs.entry.js +19 -12
  20. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-payment.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  27. package/dist/cjs/{zonosStore-3958bbeb.js → zonosStore-4c6c85da.js} +1 -0
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -0
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +20 -2
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +49 -2
  31. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +8 -8
  32. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +15 -8
  33. package/dist/collection/components/store/hello/localization.js +9 -5
  34. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  35. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  36. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  37. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  38. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  39. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  40. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  41. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  42. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  43. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  44. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  45. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  46. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  47. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  48. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  54. package/dist/collection/components/store/zonosStore.js +1 -0
  55. package/dist/esm/{cart-564ab33a.js → cart-13e6a811.js} +192 -8
  56. package/dist/esm/{getBorderRadius-5e5a5800.js → getBorderRadius-947c24de.js} +1 -1
  57. package/dist/esm/index.js +3 -3
  58. package/dist/esm/{isDarkColor-5185b62c.js → isDarkColor-f8324c10.js} +1 -1
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/{submitGtag-90ebe7d0.js → submitGtag-c8bb6f2e.js} +2 -2
  61. package/dist/esm/zonos-address_8.entry.js +4 -4
  62. package/dist/esm/zonos-badge_2.entry.js +1 -1
  63. package/dist/esm/zonos-banner.entry.js +1 -1
  64. package/dist/esm/zonos-button_3.entry.js +3 -3
  65. package/dist/esm/zonos-card_2.entry.js +4 -4
  66. package/dist/esm/zonos-cart-items_12.entry.js +29 -12
  67. package/dist/esm/zonos-checkout.entry.js +52 -6
  68. package/dist/esm/zonos-controller.entry.js +4 -4
  69. package/dist/esm/zonos-country-flag.entry.js +4 -4
  70. package/dist/esm/zonos-country-select_3.entry.js +4 -4
  71. package/dist/esm/zonos-elements.js +1 -1
  72. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  73. package/dist/esm/zonos-hello.entry.js +19 -12
  74. package/dist/esm/zonos-input.entry.js +2 -2
  75. package/dist/esm/zonos-logo.entry.js +1 -1
  76. package/dist/esm/zonos-notification.entry.js +1 -1
  77. package/dist/esm/zonos-payment.entry.js +4 -4
  78. package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
  79. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  80. package/dist/esm/zonos-text.entry.js +1 -1
  81. package/dist/esm/{zonosStore-8b9ea19c.js → zonosStore-ba9e541e.js} +1 -0
  82. package/dist/esm-es5/cart-13e6a811.js +1 -0
  83. package/dist/esm-es5/{getBorderRadius-5e5a5800.js → getBorderRadius-947c24de.js} +1 -1
  84. package/dist/esm-es5/index.js +1 -1
  85. package/dist/esm-es5/{isDarkColor-5185b62c.js → isDarkColor-f8324c10.js} +1 -1
  86. package/dist/esm-es5/loader.js +1 -1
  87. package/dist/esm-es5/{submitGtag-90ebe7d0.js → submitGtag-c8bb6f2e.js} +1 -1
  88. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  89. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  90. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  91. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  92. package/dist/esm-es5/zonos-card_2.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-controller.entry.js +1 -1
  96. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  97. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  98. package/dist/esm-es5/zonos-elements.js +1 -1
  99. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  100. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  101. package/dist/esm-es5/zonos-input.entry.js +1 -1
  102. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  103. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  104. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  105. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  106. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  107. package/dist/esm-es5/zonos-text.entry.js +1 -1
  108. package/dist/esm-es5/{zonosStore-8b9ea19c.js → zonosStore-ba9e541e.js} +1 -1
  109. package/dist/scripts/index.d.ts +52 -5
  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-finish/zonos-checkout-finish.d.ts +2 -0
  114. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
  115. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +2 -2
  116. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -1
  117. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  118. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  119. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  120. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  121. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  122. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  123. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  124. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  125. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  126. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  127. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  128. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  129. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  130. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  131. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  132. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  133. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  134. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  135. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  136. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  137. package/dist/types/components/store/translationStore.d.ts +1 -1
  138. package/dist/types/components.d.ts +4 -4
  139. package/dist/types/types/checkout/CheckoutConfig.d.ts +40 -0
  140. package/dist/types/types/hello/HelloConfig.d.ts +9 -2
  141. package/dist/zonos-elements/index.esm.js +1 -1
  142. package/dist/zonos-elements/{p-088d6460.system.entry.js → p-01304a58.system.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-e2301200.system.entry.js → p-089c3737.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-07fe47f2.system.entry.js → p-094c7343.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-be14323b.system.js → p-0b538ed4.system.js} +1 -1
  146. package/dist/zonos-elements/{p-2619fe29.system.js → p-121be462.system.js} +1 -1
  147. package/dist/zonos-elements/{p-1e2fbb1d.system.entry.js → p-13454044.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-e815af26.entry.js → p-1f2077df.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-6b2a2f68.entry.js → p-2011cb03.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-b79753bb.system.entry.js → p-27d648c3.system.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-9c0859b5.entry.js → p-2aa72606.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-bf9dca26.js → p-31b3d26b.js} +1 -1
  153. package/dist/zonos-elements/{p-c0ddef11.entry.js → p-3541e6dd.entry.js} +1 -1
  154. package/dist/zonos-elements/p-3baf7a18.entry.js +1 -0
  155. package/dist/zonos-elements/{p-d6796b73.system.entry.js → p-3dc59d89.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-aaba6f75.entry.js → p-3e488bff.entry.js} +1 -1
  157. package/dist/zonos-elements/p-43c1dd27.system.entry.js +1 -0
  158. package/dist/zonos-elements/p-452ed1a7.entry.js +1 -0
  159. package/dist/zonos-elements/{p-87c4a2af.entry.js → p-492b8e12.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-f3feed11.entry.js → p-5441b729.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-c53cef11.js → p-5821856c.js} +1 -1
  162. package/dist/zonos-elements/{p-0ea19a4d.entry.js → p-5857ad65.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-4d36edfd.system.entry.js → p-58edaab6.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-474719c5.entry.js → p-60621085.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-1752853e.entry.js → p-699a5376.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-5992c6fb.system.entry.js → p-73ba4398.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-e2bdba42.system.js → p-74488e31.system.js} +1 -1
  168. package/dist/zonos-elements/{p-84791c5c.entry.js → p-75ba695c.entry.js} +1 -1
  169. package/dist/zonos-elements/p-875a311d.js +1 -0
  170. package/dist/zonos-elements/{p-b45db572.system.entry.js → p-8f8baabf.system.entry.js} +1 -1
  171. package/dist/zonos-elements/p-99da2348.entry.js +1 -0
  172. package/dist/zonos-elements/{p-a5e9d372.js → p-9a1c0d02.js} +1 -1
  173. package/dist/zonos-elements/p-a5d823d3.system.entry.js +1 -0
  174. package/dist/zonos-elements/{p-33b054d9.system.js → p-a8cb25de.system.js} +1 -1
  175. package/dist/zonos-elements/{p-02a01106.system.entry.js → p-a90393e0.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-c8e83577.system.entry.js → p-acfb9be6.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-ba066673.entry.js → p-b88e52b5.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-bfc30599.entry.js → p-bb5a9eaa.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-d7e6cad0.system.entry.js → p-c0fcc0fa.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-7fa5a6ea.entry.js → p-c4e38b85.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-a164ea90.system.entry.js → p-cab01f64.system.entry.js} +1 -1
  182. package/dist/zonos-elements/p-d1771035.system.js +1 -0
  183. package/dist/zonos-elements/{p-1b76a929.system.entry.js → p-d3e61deb.system.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-9c8705ac.entry.js → p-d4724ac8.entry.js} +1 -1
  185. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  186. package/dist/zonos-elements/{p-8853e051.system.js → p-e37440ad.system.js} +1 -1
  187. package/dist/zonos-elements/{p-233c2599.system.entry.js → p-e80a5ed7.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-b7e4a6b0.entry.js → p-e975b187.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-9912a954.js → p-eabe2abc.js} +1 -1
  190. package/dist/zonos-elements/{p-f1223c14.system.entry.js → p-eea8111c.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-f8b58cf8.system.entry.js → p-f7e2d33b.system.entry.js} +1 -1
  192. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  193. package/package.json +1 -1
  194. package/dist/esm-es5/cart-564ab33a.js +0 -1
  195. package/dist/zonos-elements/p-63b0aef9.system.entry.js +0 -1
  196. package/dist/zonos-elements/p-6ed78fba.entry.js +0 -1
  197. package/dist/zonos-elements/p-9a0c5589.system.entry.js +0 -1
  198. package/dist/zonos-elements/p-b44de1c3.entry.js +0 -1
  199. package/dist/zonos-elements/p-c2688c49.system.js +0 -1
  200. package/dist/zonos-elements/p-d170253b.entry.js +0 -1
  201. package/dist/zonos-elements/p-fc4f1e0c.js +0 -1
@@ -41,6 +41,9 @@ export declare const stringsItalian: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsItalian: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsItalian: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsJapanese: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsJapanese: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsJapanese: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsKorean: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsKorean: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsKorean: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsNorwegian: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsNorwegian: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsNorwegian: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsPolish: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsPolish: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsPolish: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsPortuguese: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsPortuguese: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsPortuguese: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsRussian: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsRussian: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsRussian: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsSpanish: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsSpanish: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsSpanish: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsSwedish: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsSwedish: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsSwedish: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsTurkish: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsTurkish: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsTurkish: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -41,6 +41,9 @@ export declare const stringsVietnamese: {
41
41
  'Continue to shipping': {
42
42
  value: string;
43
43
  };
44
+ "Couldn't place order": {
45
+ value: string;
46
+ };
44
47
  Country: {
45
48
  value: string;
46
49
  };
@@ -170,6 +173,9 @@ export declare const stringsVietnamese: {
170
173
  'Restricted items found': {
171
174
  value: string;
172
175
  };
176
+ 'Return to cart': {
177
+ value: string;
178
+ };
173
179
  'Search countries': {
174
180
  value: string;
175
181
  };
@@ -227,6 +233,9 @@ export declare const stringsVietnamese: {
227
233
  'Translated address': {
228
234
  value: string;
229
235
  };
236
+ 'Unable to check inventory. Please try again.': {
237
+ value: string;
238
+ };
230
239
  'Update address': {
231
240
  value: string;
232
241
  };
@@ -30,5 +30,5 @@ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T,
30
30
  * // No variables:
31
31
  * translate('Above de minimis threshold for')
32
32
  */
33
- declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Country" | "Customer" | "Hide" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Cart subtotal" | "City" | "Close" | "Contact" | "Continue to shipping" | "Customer information" | "Delivery options" | "Don't close" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Reload" | "Restricted item" | "Restricted items found" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend" | "State" | "State/Province" | "Taxes will apply to all orders" | "The following items are unable to be shipped to your country and are not included in your cart total." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]!" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "duty free" | "restricted items" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
33
+ declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Country" | "Customer" | "Hide" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Cart subtotal" | "City" | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Don't close" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend" | "State" | "State/Province" | "Taxes will apply to all orders" | "The following items are unable to be shipped to your country and are not included in your cart total." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]!" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "duty free" | "restricted items" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
34
34
  export { translate, translationStore, translationStoreUpdateLanguage };
@@ -449,9 +449,9 @@ export namespace Components {
449
449
  "dialogOpen": boolean;
450
450
  /**
451
451
  * Dialog subtitle text
452
- * @default "" No subtitle
452
+ * @default null No subtitle
453
453
  */
454
- "dialogSubtitle": string;
454
+ "dialogSubtitle": string | null;
455
455
  /**
456
456
  * Dialog title text
457
457
  * @default "Are you sure?"
@@ -1892,9 +1892,9 @@ declare namespace LocalJSX {
1892
1892
  "dialogOpen": boolean;
1893
1893
  /**
1894
1894
  * Dialog subtitle text
1895
- * @default "" No subtitle
1895
+ * @default null No subtitle
1896
1896
  */
1897
- "dialogSubtitle"?: string;
1897
+ "dialogSubtitle"?: string | null;
1898
1898
  /**
1899
1899
  * Dialog title text
1900
1900
  * @default "Are you sure?"
@@ -48,6 +48,21 @@ export type CheckoutConfig = {
48
48
  */
49
49
  subscriptionStatus: CheckoutSubscriptionStatus;
50
50
  successBehavior: CheckoutSuccessBehavior;
51
+ /**
52
+ * The success page action text for checkout.
53
+ * @note Default text supports translation automatically, but any custom text will not be translated.
54
+ */
55
+ successPageActionText?: string;
56
+ /**
57
+ * The success page subtitle text for checkout. Each item in the array will appear on a new line.
58
+ * @note Default text supports translation automatically, but any custom text will not be translated.
59
+ */
60
+ successPageSubtitleText?: string[];
61
+ /**
62
+ * The success page title text for checkout.
63
+ * @note Default text supports translation automatically, but any custom text will not be translated.
64
+ */
65
+ successPageTitleText?: string;
51
66
  successRedirectUrl: string;
52
67
  visibilityStatus: CheckoutVisibilityStatus;
53
68
  /**
@@ -80,6 +95,31 @@ export type CheckoutConfig = {
80
95
  * Callback trigger when the checkout is closed
81
96
  */
82
97
  onClose?: () => void;
98
+ /**
99
+ * This callback is optional. If provided, it will be called right before the payment is processed.
100
+ * @param items - The cart items.
101
+ * @returns {string | null} - The error message to display to the user. If the message is empty or null, the payment will proceed.
102
+ * @example
103
+ * onInventoryCheck: async (items) => {
104
+ * // Check if all items are available from the server.
105
+ * const itemsInfo = await fetch('https://yourserver.com/api/get-available-items', {
106
+ * method: 'POST',
107
+ * body: JSON.stringify({ items }),
108
+ * });
109
+ * const items = await itemsInfo.json();
110
+ * // Filter out unavailable items.
111
+ * const unavailableItems = items.filter(item => !item.available);
112
+ * if (unavailableItems.length) {
113
+ * // Display an error message to the user.
114
+ * return `The following items are not available: ${unavailableItems.map(item => item.name).join(', ')}`;
115
+ * }
116
+ * // Proceed with the payment if you return an empty string or null.
117
+ * return '';
118
+ * }
119
+ */
120
+ onInventoryCheck?: (params: {
121
+ items: CartItem[];
122
+ }) => Promise<string | null>;
83
123
  /**
84
124
  * Callback trigger when payment succeeds
85
125
  */
@@ -1,4 +1,6 @@
1
- import type { HelloCurrencyBehavior, HelloMobileLocation, HelloPeekMessageBehavior, HelloRestrictionBehavior, Mode } from "../generated/graphql.customer.types";
1
+ import type { CountryCode, HelloCurrencyBehavior, HelloMobileLocation, HelloPeekMessageBehavior, HelloRestrictionBehavior, Mode } from "../generated/graphql.customer.types";
2
+ export type CountryOverrideBehavior = 'URL_PARAM' | 'SESSION';
3
+ export type ShowForCountries = 'ALL' | 'ONLY_SHIPPABLE' | CountryCode[];
2
4
  export type HelloConfig = {
3
5
  anchorElementSelector: string;
4
6
  cartUrlPattern: string | null;
@@ -6,7 +8,7 @@ export type HelloConfig = {
6
8
  * The behavior to use when determining the country to use for the user.
7
9
  * @default 'URL_PARAM'
8
10
  */
9
- countryOverrideBehavior?: 'URL_PARAM' | 'SESSION';
11
+ countryOverrideBehavior?: CountryOverrideBehavior;
10
12
  currencyBehavior: HelloCurrencyBehavior;
11
13
  currencyElementSelector: string;
12
14
  excludedUrlPatterns: Array<string>;
@@ -22,4 +24,9 @@ export type HelloConfig = {
22
24
  productListUrlPattern: string | null;
23
25
  productTitleElementSelector: string | null;
24
26
  restrictionBehavior: HelloRestrictionBehavior;
27
+ /**
28
+ * The countries to show the widget for.
29
+ * @default ONLY_SHIPPABLE
30
+ */
31
+ showForCountries?: ShowForCountries;
25
32
  };
@@ -1 +1 @@
1
- import{l as e,a as n}from"./p-eaa335e1.js";const o="https://js.stripe.com/v3",t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const r=Promise.resolve().then((()=>{return e=null,null!==i||(i=new Promise(((i,r)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)i(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&t.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",s=document.createElement("script");s.src=`${o}${t}`;const i=document.head||document.body;return i?(i.appendChild(s),s):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?i(window.Stripe):r(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{r(new Error("Failed to load Stripe.js"))}))}catch(e){return void r(e)}else i(null)}))),i;var e}));let l=!1;var c;r.catch((e=>{l||console.warn(e)}));const d=(()=>{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",".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})()||"https://v1.3.25.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.25",u="https://rsms.me",m="https://fonts.googleapis.com",p=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}c=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.zonosQaUrl=null,w.version="v1.3.25",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l,storeId:d,zonosApiKey:a})=>{c.doneInit||(e(`====== ZONOS DEBUG MODE: on (${c.version}) ======`),a?(c.zonosApiKey=a,c.storeId=d,e("init zonos"),c.injectSentryScript(),c.injectZonosCdn(),c.injectZonosCss(),c.injectFonts(),c.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l},zonosApiKey:a}),c.doneInit=!0):n("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},w.showNotification=e=>{var n;null===(n=c.zonosController)||void 0===n||n.showNotification(e)},w.updateOrganizationName=e=>{var n;null===(n=c.zonosController)||void 0===n||n.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:n,placeOrderButtonSelector:o})=>{if(o){const t=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};t.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(n?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&n&&setTimeout((()=>{t.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:t})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=o.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const i=document.createElement("zonos-controller");i.config=o,i.zonosApiKey=t,i.addEventListener("stripeInitEvent",(async o=>{const{detail:t}=o;e("loading Stripe");const s=await(async(...e)=>{l=!0;const n=Date.now();return r.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)))})(t.publishableKey);s?(window.Zonos.stripe=s,i.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(i),c.zonosController=i,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const t=document.head||document.body,s=document.createElement("script");s.crossOrigin="anonymous",s.src=o,s.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",s.setAttribute("data-lazy","no"),s.onerror=()=>{n(`Failed to load ${s.src}`)},s.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var n,o,t,s,i,r;const l=null===(r=null===(i=null===(s=null===(t=null===(o=null===(n=e.exception)||void 0===n?void 0:n.values)||void 0===o?void 0:o[0])||void 0===t?void 0:t.stacktrace)||void 0===s?void 0:s.frames)||void 0===i?void 0:i[0])||void 0===r?void 0:r.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${c.version}`,tracesSampler:()=>.01})},t.appendChild(s)},w.injectScript=({fallBackDomain:o,isModule:t,scriptDomain:s,theRestUrl:i})=>{const r=`${s}/${i}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const l=document.head||document.body,d=document.createElement("script");t?d.type="module":d.noModule=!0,d.src=r,d.crossOrigin="anonymous",d.onerror=()=>{/\/\/v\d+\./g.test(s)?(o&&c.injectScript({isModule:t,scriptDomain:o,theRestUrl:i}),n(`Failed to load ${d.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(d)},w.getZonosUrl=()=>c.isNpm&&(()=>{if("undefined"==typeof window)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);if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const o=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' 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,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),o})()||d,w.injectZonosCdn=()=>{const n=c.getZonosUrl();c.injectScript({fallBackDomain:a,isModule:!0,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),c.injectScript({fallBackDomain:a,isModule:!1,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:t,theRestUrl:s})=>{const i=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${d}/`,i.appendChild(r);const l=document.createElement("link");l.rel="stylesheet",l.href=`${t}/${s}`,l.onerror=()=>{const i=/\/\/v\d+\./g.test(t);i?(o&&i&&c.injectStylesheet({stylesheetDomain:o,theRestUrl:s}),n(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},i.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(c.injectStylesheet({fallBackDomain:a,stylesheetDomain:d,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${u}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!p.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=u,n.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${u}/inter/inter.css`,n.appendChild(t),e("Zonos font injected!")},w.setupGoogleFont=e=>{var n;null===(n=c.zonosController)||void 0===n||n.setupGoogleFont(e)},w.injectSupportGoogleFont=n=>{var o;e(`[FONT] injecting ${n}`);const t=null===(o=n.match(/family=(.*?):/))||void 0===o?void 0:o[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${t} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=n,s.appendChild(i),e(`[FONT] ${t} font injected!`)};export{w as Zonos}
1
+ import{l as e,a as n}from"./p-eaa335e1.js";const o="https://js.stripe.com/v3",t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const r=Promise.resolve().then((()=>{return e=null,null!==i||(i=new Promise(((i,r)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)i(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&t.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",s=document.createElement("script");s.src=`${o}${t}`;const i=document.head||document.body;return i?(i.appendChild(s),s):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?i(window.Stripe):r(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{r(new Error("Failed to load Stripe.js"))}))}catch(e){return void r(e)}else i(null)}))),i;var e}));let l=!1;var c;r.catch((e=>{l||console.warn(e)}));const d=(()=>{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",".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})()||"https://v1.3.26.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.26",u="https://rsms.me",m="https://fonts.googleapis.com",p=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}c=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.zonosQaUrl=null,w.version="v1.3.26",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l,storeId:d,zonosApiKey:a})=>{c.doneInit||(e(`====== ZONOS DEBUG MODE: on (${c.version}) ======`),a?(c.zonosApiKey=a,c.storeId=d,e("init zonos"),c.injectSentryScript(),c.injectZonosCdn(),c.injectZonosCss(),c.injectFonts(),c.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l},zonosApiKey:a}),c.doneInit=!0):n("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},w.showNotification=e=>{var n;null===(n=c.zonosController)||void 0===n||n.showNotification(e)},w.updateOrganizationName=e=>{var n;null===(n=c.zonosController)||void 0===n||n.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:n,placeOrderButtonSelector:o})=>{if(o){const t=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};t.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(n?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&n&&setTimeout((()=>{t.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:t})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=o.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const i=document.createElement("zonos-controller");i.config=o,i.zonosApiKey=t,i.addEventListener("stripeInitEvent",(async o=>{const{detail:t}=o;e("loading Stripe");const s=await(async(...e)=>{l=!0;const n=Date.now();return r.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)))})(t.publishableKey);s?(window.Zonos.stripe=s,i.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(i),c.zonosController=i,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const t=document.head||document.body,s=document.createElement("script");s.crossOrigin="anonymous",s.src=o,s.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",s.setAttribute("data-lazy","no"),s.onerror=()=>{n(`Failed to load ${s.src}`)},s.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var n,o,t,s,i,r;const l=null===(r=null===(i=null===(s=null===(t=null===(o=null===(n=e.exception)||void 0===n?void 0:n.values)||void 0===o?void 0:o[0])||void 0===t?void 0:t.stacktrace)||void 0===s?void 0:s.frames)||void 0===i?void 0:i[0])||void 0===r?void 0:r.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${c.version}`,tracesSampler:()=>.01})},t.appendChild(s)},w.injectScript=({fallBackDomain:o,isModule:t,scriptDomain:s,theRestUrl:i})=>{const r=`${s}/${i}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const l=document.head||document.body,d=document.createElement("script");t?d.type="module":d.noModule=!0,d.src=r,d.crossOrigin="anonymous",d.onerror=()=>{/\/\/v\d+\./g.test(s)?(o&&c.injectScript({isModule:t,scriptDomain:o,theRestUrl:i}),n(`Failed to load ${d.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(d)},w.getZonosUrl=()=>c.isNpm&&(()=>{if("undefined"==typeof window)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);if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const o=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' 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,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),o})()||d,w.injectZonosCdn=()=>{const n=c.getZonosUrl();c.injectScript({fallBackDomain:a,isModule:!0,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),c.injectScript({fallBackDomain:a,isModule:!1,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:t,theRestUrl:s})=>{const i=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${d}/`,i.appendChild(r);const l=document.createElement("link");l.rel="stylesheet",l.href=`${t}/${s}`,l.onerror=()=>{const i=/\/\/v\d+\./g.test(t);i?(o&&i&&c.injectStylesheet({stylesheetDomain:o,theRestUrl:s}),n(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},i.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(c.injectStylesheet({fallBackDomain:a,stylesheetDomain:d,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${u}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!p.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=u,n.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${u}/inter/inter.css`,n.appendChild(t),e("Zonos font injected!")},w.setupGoogleFont=e=>{var n;null===(n=c.zonosController)||void 0===n||n.setupGoogleFont(e)},w.injectSupportGoogleFont=n=>{var o;e(`[FONT] injecting ${n}`);const t=null===(o=n.match(/family=(.*?):/))||void 0===o?void 0:o[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${t} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=n,s.appendChild(i),e(`[FONT] ${t} font injected!`)};export{w as Zonos}
@@ -1 +1 @@
1
- System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-4a107b6f.system.js"],(function(e){"use strict";var t,s,o,n,i,a;return{setters:[function(e){t=e.r;s=e.h;o=e.H},function(e){n=e.d},function(e){i=e.c},function(e){a=e.i}],execute:function(){var l={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos-elements-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos-elements-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos-elements-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos-elements-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos-elements-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos-elements-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos-elements-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var r=h;var z=e("zonos_text",function(){function e(e){t(this,e);this.textColor="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=l.body,t=e.size,h=e.tag,r=e.weight;var z=l[this.type],x=z.size,g=z.tag,f=z.weight;var m=this.size||x||t;var u=this.weight||f||r;var b=g||h;var d=a(this.textColor)?"var(--zonos-elements-".concat(this.textColor,")"):this.textColor;var p=function(){switch(b){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));case"span":default:return s("span",null,s("slot",null))}};return s(o,{class:i(["zonos--elements","zonos--text-size-".concat(m),"zonos--text-weight-".concat(u)]),style:{"--color":d,"--font-family":n()}},p())};return e}());z.style=r}}}));
1
+ System.register(["./p-d99232c5.system.js","./p-0b538ed4.system.js","./p-23e7c655.system.js","./p-4a107b6f.system.js"],(function(e){"use strict";var t,s,o,n,i,a;return{setters:[function(e){t=e.r;s=e.h;o=e.H},function(e){n=e.d},function(e){i=e.c},function(e){a=e.i}],execute:function(){var l={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos-elements-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos-elements-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos-elements-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos-elements-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos-elements-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos-elements-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos-elements-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var r=h;var z=e("zonos_text",function(){function e(e){t(this,e);this.textColor="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=l.body,t=e.size,h=e.tag,r=e.weight;var z=l[this.type],x=z.size,g=z.tag,f=z.weight;var m=this.size||x||t;var u=this.weight||f||r;var d=g||h;var b=a(this.textColor)?"var(--zonos-elements-".concat(this.textColor,")"):this.textColor;var p=function(){switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));case"span":default:return s("span",null,s("slot",null))}};return s(o,{class:i(["zonos--elements","zonos--text-size-".concat(m),"zonos--text-weight-".concat(u)]),style:{"--color":b,"--font-family":n()}},p())};return e}());z.style=r}}}));
@@ -1 +1 @@
1
- System.register(["./p-d99232c5.system.js","./p-c2688c49.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-63db40b9.system.js","./p-8853e051.system.js","./p-33b054d9.system.js"],(function(t){"use strict";var s,n,o,e,i,a,h;return{setters:[function(t){s=t.r;n=t.h;o=t.H;e=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){},function(){}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return n(o,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},n("div",{class:h(["flag-container"])},n("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
1
+ System.register(["./p-d99232c5.system.js","./p-d1771035.system.js","./p-0b538ed4.system.js","./p-23e7c655.system.js","./p-63db40b9.system.js","./p-e37440ad.system.js","./p-a8cb25de.system.js"],(function(t){"use strict";var s,e,n,o,i,a,h;return{setters:[function(t){s=t.r;e=t.h;n=t.H;o=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){},function(){}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return e(n,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},e("div",{class:h(["flag-container"])},e("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
@@ -1 +1 @@
1
- System.register(["./p-d99232c5.system.js","./p-c2688c49.system.js","./p-63db40b9.system.js","./p-be14323b.system.js","./p-8853e051.system.js","./p-33b054d9.system.js"],(function(n){"use strict";var t,s,e,o,a,c;return{setters:[function(n){t=n.r;s=n.h;e=n.H;o=n.d},function(n){a=n.h},function(n){c=n.a},function(){},function(){},function(){}],execute:function(){var m=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}";var i=m;var p=n("zonos_payment",function(){function n(n){t(this,n);this.titleText=undefined;this.stripe=a.stripe;this.stripeElements=a.stripeElements}n.prototype.watchInitStripe=function(){if(!this.stripeElements){return}var n=a.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"});var t=this.el.querySelector(".zonos--payment-component");if(!t){c("Cannot find container element for paymentElement");return}n.mount(t);n.on("change",(function(n){a.stripePaymentEventData=n}));a.stripePaymentElement=n};n.prototype.componentDidLoad=function(){this.watchInitStripe()};n.prototype.render=function(){return s(e,{key:"0add83652f88a929eb76727e27455a0ddd6866fb",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"ff4eb31c3f402562d4c85848bf6bb34c4f0b1bab",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"fba7df5c0ca94d2374aab0f24e3111f4b08eff11",class:"zonos--payment-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return n}());p.style=i}}}));
1
+ System.register(["./p-d99232c5.system.js","./p-d1771035.system.js","./p-63db40b9.system.js","./p-0b538ed4.system.js","./p-e37440ad.system.js","./p-a8cb25de.system.js"],(function(n){"use strict";var t,s,e,o,a,c;return{setters:[function(n){t=n.r;s=n.h;e=n.H;o=n.d},function(n){a=n.h},function(n){c=n.a},function(){},function(){},function(){}],execute:function(){var m=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}";var i=m;var p=n("zonos_payment",function(){function n(n){t(this,n);this.titleText=undefined;this.stripe=a.stripe;this.stripeElements=a.stripeElements}n.prototype.watchInitStripe=function(){if(!this.stripeElements){return}var n=a.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"});var t=this.el.querySelector(".zonos--payment-component");if(!t){c("Cannot find container element for paymentElement");return}n.mount(t);n.on("change",(function(n){a.stripePaymentEventData=n}));a.stripePaymentElement=n};n.prototype.componentDidLoad=function(){this.watchInitStripe()};n.prototype.render=function(){return s(e,{key:"0add83652f88a929eb76727e27455a0ddd6866fb",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"ff4eb31c3f402562d4c85848bf6bb34c4f0b1bab",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"fba7df5c0ca94d2374aab0f24e3111f4b08eff11",class:"zonos--payment-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return n}());p.style=i}}}));