@zonos/elements 1.3.23 → 1.3.24

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 (197) hide show
  1. package/dist/cjs/{cart-c734e909.js → cart-31ad351d.js} +180 -0
  2. package/dist/cjs/index.cjs.js +3 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{submitGtag-336b437c.js → submitGtag-d37af04d.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  6. package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
  7. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  8. package/dist/cjs/{zonos-cart-items_11.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +37 -8
  9. package/dist/cjs/zonos-checkout.cjs.entry.js +43 -3
  10. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-country-select_3.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-elements.cjs.js +1 -1
  15. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-hello.cjs.entry.js +9 -7
  17. package/dist/cjs/zonos-payment.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +4 -4
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -1
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -2
  22. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +2 -2
  23. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +31 -10
  24. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
  25. package/dist/collection/components/common/zonos-rest-state/assets/Boxes.png +0 -0
  26. package/dist/collection/components/common/zonos-rest-state/assets/Earth.png +0 -0
  27. package/dist/collection/components/common/zonos-rest-state/assets/EmptyBox.png +0 -0
  28. package/dist/collection/components/common/zonos-rest-state/assets/Lock.png +0 -0
  29. package/dist/collection/components/common/zonos-rest-state/assets/PigBank.png +0 -0
  30. package/dist/collection/components/common/zonos-rest-state/assets/Scribble.png +0 -0
  31. package/dist/collection/components/common/zonos-rest-state/assets/Search.png +0 -0
  32. package/dist/collection/components/common/zonos-rest-state/assets/Settings.png +0 -0
  33. package/dist/collection/components/common/zonos-rest-state/assets/ShoppingCart.png +0 -0
  34. package/dist/collection/components/common/zonos-rest-state/assets/SpilledCup.png +0 -0
  35. package/dist/collection/components/common/zonos-rest-state/assets/Switch.png +0 -0
  36. package/dist/collection/components/common/zonos-rest-state/assets/TaxId.png +0 -0
  37. package/dist/collection/components/common/zonos-rest-state/assets/Truck.png +0 -0
  38. package/dist/collection/components/common/zonos-rest-state/assets/Warning.png +0 -0
  39. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +53 -0
  40. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +102 -0
  41. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  42. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  43. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  44. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  45. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  46. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  47. package/dist/collection/components/main/zonos-controller.js +1 -1
  48. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  59. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  60. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  61. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  62. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  63. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  68. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  69. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  70. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  71. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -6
  72. package/dist/collection/components/utils/restStateType.js +16 -0
  73. package/dist/esm/{cart-67471b37.js → cart-8662415b.js} +180 -0
  74. package/dist/esm/index.js +3 -3
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/{submitGtag-1f42c748.js → submitGtag-07553cf5.js} +1 -1
  77. package/dist/esm/zonos-address_8.entry.js +4 -4
  78. package/dist/esm/zonos-badge_2.entry.js +2 -2
  79. package/dist/esm/zonos-card_2.entry.js +1 -1
  80. package/dist/esm/{zonos-cart-items_11.entry.js → zonos-cart-items_12.entry.js} +37 -9
  81. package/dist/esm/zonos-checkout.entry.js +44 -4
  82. package/dist/esm/zonos-component.entry.js +1 -1
  83. package/dist/esm/zonos-controller.entry.js +2 -2
  84. package/dist/esm/zonos-country-flag.entry.js +1 -1
  85. package/dist/esm/zonos-country-select_3.entry.js +3 -3
  86. package/dist/esm/zonos-elements.js +1 -1
  87. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  88. package/dist/esm/zonos-hello.entry.js +9 -7
  89. package/dist/esm/zonos-payment.entry.js +2 -2
  90. package/dist/esm/zonos-select-dialog-header_2.entry.js +4 -4
  91. package/dist/esm-es5/cart-8662415b.js +1 -0
  92. package/dist/esm-es5/index.js +1 -1
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/{submitGtag-1f42c748.js → submitGtag-07553cf5.js} +1 -1
  95. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  96. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  97. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  98. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  99. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  100. package/dist/esm-es5/zonos-component.entry.js +1 -1
  101. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  102. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  103. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  104. package/dist/esm-es5/zonos-elements.js +1 -1
  105. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  106. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  107. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  108. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  109. package/dist/scripts/index.d.ts +53 -3
  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 +12 -0
  114. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +8 -1
  115. package/dist/types/components/common/zonos-rest-state/zonos-rest-state.d.ts +21 -0
  116. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  117. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  118. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  119. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  120. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  121. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  122. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  123. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  124. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  125. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  126. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  127. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  128. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  129. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  130. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  131. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  132. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  133. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  134. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  135. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  136. package/dist/types/components/store/translationStore.d.ts +1 -1
  137. package/dist/types/components/utils/restStateType.d.ts +2 -0
  138. package/dist/types/components.d.ts +52 -3
  139. package/dist/zonos-elements/assets/Boxes.png +0 -0
  140. package/dist/zonos-elements/assets/Earth.png +0 -0
  141. package/dist/zonos-elements/assets/EmptyBox.png +0 -0
  142. package/dist/zonos-elements/assets/Lock.png +0 -0
  143. package/dist/zonos-elements/assets/PigBank.png +0 -0
  144. package/dist/zonos-elements/assets/Scribble.png +0 -0
  145. package/dist/zonos-elements/assets/Search.png +0 -0
  146. package/dist/zonos-elements/assets/Settings.png +0 -0
  147. package/dist/zonos-elements/assets/ShoppingCart.png +0 -0
  148. package/dist/zonos-elements/assets/SpilledCup.png +0 -0
  149. package/dist/zonos-elements/assets/Switch.png +0 -0
  150. package/dist/zonos-elements/assets/TaxId.png +0 -0
  151. package/dist/zonos-elements/assets/Truck.png +0 -0
  152. package/dist/zonos-elements/assets/Warning.png +0 -0
  153. package/dist/zonos-elements/index.esm.js +1 -1
  154. package/dist/zonos-elements/p-144147f8.system.entry.js +1 -0
  155. package/dist/zonos-elements/{p-65671a64.system.entry.js → p-1620d0cc.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-0d30f36e.system.entry.js → p-1d7c9c24.system.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-065ada8a.system.js → p-1fed304e.system.js} +1 -1
  158. package/dist/zonos-elements/{p-498a0e18.entry.js → p-2701e08c.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-6f132cee.system.entry.js → p-299bceb7.system.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-52900b33.entry.js → p-33bcb4ab.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-18464027.entry.js → p-41413c70.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-44250644.entry.js → p-44c59c27.entry.js} +1 -1
  163. package/dist/zonos-elements/p-45969dde.system.entry.js +1 -0
  164. package/dist/zonos-elements/p-4f2986fa.system.entry.js +1 -0
  165. package/dist/zonos-elements/{p-8473827d.system.entry.js → p-5a11a235.system.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-607b5560.entry.js → p-6260d404.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-7d61e6e5.entry.js → p-687f1f62.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-234f8729.system.js → p-7d48c12c.system.js} +1 -1
  169. package/dist/zonos-elements/{p-c1879326.system.entry.js → p-7f08c0f4.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-8ed0769e.entry.js → p-81750812.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-cbf13745.entry.js → p-84791c5c.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-db9e87ec.entry.js → p-8e584524.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-8171d013.system.entry.js → p-941a01be.system.entry.js} +1 -1
  174. package/dist/zonos-elements/p-a67e5a9b.js +1 -0
  175. package/dist/zonos-elements/p-afc277d9.entry.js +1 -0
  176. package/dist/zonos-elements/{p-b9195764.system.entry.js → p-b45db572.system.entry.js} +1 -1
  177. package/dist/zonos-elements/p-b56c38a9.entry.js +1 -0
  178. package/dist/zonos-elements/{p-5437dd24.system.entry.js → p-c41d1708.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-92c64a9c.system.entry.js → p-c8e83577.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-713bb92e.system.entry.js → p-cbe5c7bb.system.entry.js} +1 -1
  181. package/dist/zonos-elements/p-d1b8bfce.system.js +1 -0
  182. package/dist/zonos-elements/p-d29b5bff.entry.js +1 -0
  183. package/dist/zonos-elements/{p-083850d3.js → p-d6307a6d.js} +1 -1
  184. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  185. package/dist/zonos-elements/{p-a18555c8.entry.js → p-f3feed11.entry.js} +1 -1
  186. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  187. package/package.json +7 -15
  188. package/dist/esm-es5/cart-67471b37.js +0 -1
  189. package/dist/esm-es5/zonos-cart-items_11.entry.js +0 -1
  190. package/dist/zonos-elements/p-08d1cfc4.entry.js +0 -1
  191. package/dist/zonos-elements/p-440ac320.js +0 -1
  192. package/dist/zonos-elements/p-4a3b5fc8.entry.js +0 -1
  193. package/dist/zonos-elements/p-9c3a036e.system.js +0 -1
  194. package/dist/zonos-elements/p-af3ee45d.system.entry.js +0 -1
  195. package/dist/zonos-elements/p-b1ee97d8.entry.js +0 -1
  196. package/dist/zonos-elements/p-f7468131.system.entry.js +0 -1
  197. package/dist/zonos-elements/p-fedafdd2.system.entry.js +0 -1
@@ -19,6 +19,7 @@ import { LoadZonosParamsConfig } from "./scripts/_zonosBase";
19
19
  import { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
20
20
  import { RestrictedItem } from "./types/hello/RestrictedItem";
21
21
  import { AppearanceConfig as AppearanceConfig1 } from "./components.d";
22
+ import { RestStateType } from "./components/utils/restStateType";
22
23
  import { ShippingRichRadioItem } from "./components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio";
23
24
  import { SpinnerColor } from "./components/common/zonos-spinner/zonos-spinner";
24
25
  import { GridSpacing } from "./types/styles/GridSpacing";
@@ -36,6 +37,7 @@ export { LoadZonosParamsConfig } from "./scripts/_zonosBase";
36
37
  export { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
37
38
  export { RestrictedItem } from "./types/hello/RestrictedItem";
38
39
  export { AppearanceConfig as AppearanceConfig1 } from "./components.d";
40
+ export { RestStateType } from "./components/utils/restStateType";
39
41
  export { ShippingRichRadioItem } from "./components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio";
40
42
  export { SpinnerColor } from "./components/common/zonos-spinner/zonos-spinner";
41
43
  export { GridSpacing } from "./types/styles/GridSpacing";
@@ -431,7 +433,7 @@ export namespace Components {
431
433
  /**
432
434
  * Cancel button text
433
435
  */
434
- "dialogCancelBtnText": string;
436
+ "dialogCancelBtnText"?: string;
435
437
  /**
436
438
  * Confirm button text
437
439
  */
@@ -455,6 +457,11 @@ export namespace Components {
455
457
  * @default "Are you sure?"
456
458
  */
457
459
  "dialogTitle": string;
460
+ /**
461
+ * Type of dialog - "alert" - Only confirm button - "confirm" - Both Confirm and cancel buttons
462
+ * @default "confirm"
463
+ */
464
+ "dialogType": 'alert' | 'confirm';
458
465
  /**
459
466
  * Whether or not the dialog is open
460
467
  */
@@ -813,6 +820,20 @@ export namespace Components {
813
820
  */
814
821
  "titleText"?: string;
815
822
  }
823
+ interface ZonosRestState {
824
+ /**
825
+ * The subtitle of the rest state
826
+ */
827
+ "restStateSubtitle": string;
828
+ /**
829
+ * The title of the rest state
830
+ */
831
+ "restStateTitle": string;
832
+ /**
833
+ * The type of rest state
834
+ */
835
+ "restStateType": RestStateType;
836
+ }
816
837
  interface ZonosReview {
817
838
  /**
818
839
  * Whether or not to show the collapse icon This is controled from the collapsed state of the zonos-collapse component to show the collapse icon
@@ -1330,6 +1351,12 @@ declare global {
1330
1351
  prototype: HTMLZonosPaymentElement;
1331
1352
  new (): HTMLZonosPaymentElement;
1332
1353
  };
1354
+ interface HTMLZonosRestStateElement extends Components.ZonosRestState, HTMLStencilElement {
1355
+ }
1356
+ var HTMLZonosRestStateElement: {
1357
+ prototype: HTMLZonosRestStateElement;
1358
+ new (): HTMLZonosRestStateElement;
1359
+ };
1333
1360
  interface HTMLZonosReviewElement extends Components.ZonosReview, HTMLStencilElement {
1334
1361
  }
1335
1362
  var HTMLZonosReviewElement: {
@@ -1438,6 +1465,7 @@ declare global {
1438
1465
  "zonos-logo": HTMLZonosLogoElement;
1439
1466
  "zonos-notification": HTMLZonosNotificationElement;
1440
1467
  "zonos-payment": HTMLZonosPaymentElement;
1468
+ "zonos-rest-state": HTMLZonosRestStateElement;
1441
1469
  "zonos-review": HTMLZonosReviewElement;
1442
1470
  "zonos-select-dialog-header": HTMLZonosSelectDialogHeaderElement;
1443
1471
  "zonos-shipping": HTMLZonosShippingElement;
@@ -1848,7 +1876,7 @@ declare namespace LocalJSX {
1848
1876
  /**
1849
1877
  * Cancel button text
1850
1878
  */
1851
- "dialogCancelBtnText": string;
1879
+ "dialogCancelBtnText"?: string;
1852
1880
  /**
1853
1881
  * Confirm button text
1854
1882
  */
@@ -1861,7 +1889,7 @@ declare namespace LocalJSX {
1861
1889
  /**
1862
1890
  * Whether or not the dialog is open
1863
1891
  */
1864
- "dialogOpen"?: boolean;
1892
+ "dialogOpen": boolean;
1865
1893
  /**
1866
1894
  * Dialog subtitle text
1867
1895
  * @default "" No subtitle
@@ -1872,6 +1900,11 @@ declare namespace LocalJSX {
1872
1900
  * @default "Are you sure?"
1873
1901
  */
1874
1902
  "dialogTitle"?: string;
1903
+ /**
1904
+ * Type of dialog - "alert" - Only confirm button - "confirm" - Both Confirm and cancel buttons
1905
+ * @default "confirm"
1906
+ */
1907
+ "dialogType"?: 'alert' | 'confirm';
1875
1908
  /**
1876
1909
  * Whether or not the dialog is open
1877
1910
  */
@@ -2200,6 +2233,20 @@ declare namespace LocalJSX {
2200
2233
  */
2201
2234
  "titleText"?: string;
2202
2235
  }
2236
+ interface ZonosRestState {
2237
+ /**
2238
+ * The subtitle of the rest state
2239
+ */
2240
+ "restStateSubtitle": string;
2241
+ /**
2242
+ * The title of the rest state
2243
+ */
2244
+ "restStateTitle": string;
2245
+ /**
2246
+ * The type of rest state
2247
+ */
2248
+ "restStateType": RestStateType;
2249
+ }
2203
2250
  interface ZonosReview {
2204
2251
  /**
2205
2252
  * Whether or not to show the collapse icon This is controled from the collapsed state of the zonos-collapse component to show the collapse icon
@@ -2349,6 +2396,7 @@ declare namespace LocalJSX {
2349
2396
  "zonos-logo": ZonosLogo;
2350
2397
  "zonos-notification": ZonosNotification;
2351
2398
  "zonos-payment": ZonosPayment;
2399
+ "zonos-rest-state": ZonosRestState;
2352
2400
  "zonos-review": ZonosReview;
2353
2401
  "zonos-select-dialog-header": ZonosSelectDialogHeader;
2354
2402
  "zonos-shipping": ZonosShipping;
@@ -2400,6 +2448,7 @@ declare module "@stencil/core" {
2400
2448
  "zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
2401
2449
  "zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
2402
2450
  "zonos-payment": LocalJSX.ZonosPayment & JSXBase.HTMLAttributes<HTMLZonosPaymentElement>;
2451
+ "zonos-rest-state": LocalJSX.ZonosRestState & JSXBase.HTMLAttributes<HTMLZonosRestStateElement>;
2403
2452
  "zonos-review": LocalJSX.ZonosReview & JSXBase.HTMLAttributes<HTMLZonosReviewElement>;
2404
2453
  "zonos-select-dialog-header": LocalJSX.ZonosSelectDialogHeader & JSXBase.HTMLAttributes<HTMLZonosSelectDialogHeaderElement>;
2405
2454
  "zonos-shipping": LocalJSX.ZonosShipping & JSXBase.HTMLAttributes<HTMLZonosShippingElement>;
@@ -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.23.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.23",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.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.23",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.24.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.24",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.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.24",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}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,c){function i(o){try{u(n.next(o))}catch(o){c(o)}}function r(o){try{u(n["throw"](o))}catch(o){c(o)}}function u(o){o.done?t(o.value):s(o.value).then(i,r)}u((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,s,c,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(o){return function(e){return u([o,e])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,r[0]&&(t=0)),t)try{if(n=1,s&&(c=r[0]&2?s["return"]:r[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,r[1])).done)return c;if(s=0,c)r=[r[0]&2,c.value];switch(r[0]){case 0:case 1:c=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;s=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(c=t.trys,c=c.length>0&&c[c.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!c||r[1]>c[0]&&r[1]<c[3])){t.label=r[1];break}if(r[0]===6&&t.label<c[1]){t.label=c[1];c=r;break}if(c&&t.label<c[2]){t.label=c[2];t.ops.push(r);break}if(c[2])t.ops.pop();t.trys.pop();continue}r=e.call(o,t)}catch(o){r=[6,o];s=0}finally{n=c=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-d99232c5.system.js","./p-d1b8bfce.system.js","./p-be14323b.system.js","./p-1fed304e.system.js","./p-aed0098c.system.js","./p-63db40b9.system.js","./p-23e7c655.system.js","./p-33b054d9.system.js","./p-8853e051.system.js","./p-2770ba48.system.js"],(function(o){"use strict";var e,t,n,s,c,i,r,u,a,h,d,l,f,z,m,k,v,p,g,b,w,y,x,C,_,O,S,I,A,T,N,j,H,L,B,E,M;return{setters:[function(o){e=o.r;t=o.h;n=o.H;s=o.F},function(o){c=o.l;i=o.s;r=o.a;u=o.b;a=o.c;h=o.i;d=o.d;l=o.e;f=o.f;z=o.g;m=o.h;k=o.j;v=o.k;p=o.t;g=o.m;b=o.n;w=o.o;y=o.p;x=o.q},function(o){C=o.z;_=o.g;O=o.m},function(o){S=o.c;I=o.s;A=o.a;T=o.t},function(o){N=o.i},function(o){j=o.l;H=o.a},function(o){L=o.c},function(o){B=o.g},function(o){E=o.i},function(o){M=o.R}],execute:function(){var P=this;var D=function(o){var e=o.key,t=o.value;return t?{key:e,value:t}:null};var G=function(o){return[D({key:"brand",value:o.itemBrand}),D({key:"material",value:o.itemMaterial}),D({key:"category",value:o.itemCategory}),D({key:"color",value:o.itemColor}),D({key:"customization",value:o.itemCustomization}),D({key:"descriptionDetailed",value:o.itemDescriptionDetailed}),D({key:"fabricContent",value:o.itemFabricContent}),D({key:"ltlClass",value:o.itemLtlClass}),D({key:"pickingLocation",value:o.itemPickingLocation}),D({key:"shipFromLocation",value:o.itemShipFromLocation}),D({key:"size",value:o.itemSize}),D({key:"status",value:o.status})].filter(Boolean)};var R=function(o){if(!o){return"POUND"}switch(o.toUpperCase()){case"KG":return"KILOGRAM";case"OZ":return"OUNCE";case"G":return"GRAM";default:return"POUND"}};var U=function(o){if(!o){return[]}var e=[];if(o.length){e.push({type:"LENGTH",unitOfMeasure:"INCH",value:o.length})}if(o.width){e.push({type:"WIDTH",unitOfMeasure:"INCH",value:o.width})}if(o.weight){e.push({type:"WEIGHT",unitOfMeasure:R(o.weightUnits),value:o.weight})}if(o.height){e.push({type:"HEIGHT",unitOfMeasure:"INCH",value:o.height})}return e};var Z=function(o){var e;var t=((e=o===null||o===void 0?void 0:o.items)===null||e===void 0?void 0:e.map((function(o){return{amount:o.unitPrice||0,attributes:G(o),countryOfOrigin:o.countryOfOrigin||undefined,currencyCode:"USD",description:o.itemDescriptionLong||"",imageUrl:o.imageURL||"",itemType:"PHYSICAL_GOOD",measurements:U(o),name:o.description||"",productId:o.productId||"",quantity:o.quantity||0,sku:o.sku||""}})))||[];return t};var F=function(o){if(o===void 0){o=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){document.dispatchEvent(S("legacyCheckoutError","Unable to initiate checkout process in a country where shipping is not available"));if(o){j("Checkout: not shippable country")}return false}return true};var K=function(o){var e=o.domesticRedirectedBtnSelector,t=o.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var n=new MutationObserver((function(){return __awaiter(P,void 0,void 0,(function(){var o,s,c,h,d;var l=this;return __generator(this,(function(f){o=document.querySelector(e);s=i();if(!o&&s){c=document.createElement("button");c.style.display="none";c.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(c);t===null||t===void 0?void 0:t(s);n.disconnect();return[2]}h=document.querySelector('select[name="shippingAddress.countryCode"]');d=document.querySelector("#checkout-shipping-continue");if(!h||!d){return[2]}n.disconnect();d.addEventListener("click",(function(o){return __awaiter(l,void 0,void 0,(function(){var e,t,n,s,c,i,d;return __generator(this,(function(l){n=h.value;if(!n){return[2]}r(n);if(!F(false)){u();return[2]}s=document.querySelector("form");if(!s){return[2]}c=new FormData(s);i=document.querySelector("input#addressLine1Input");d={address1:(e=c.get("shippingAddress.address1"))!==null&&e!==void 0?e:i&&i.value,address2:c.get("shippingAddress.address2"),city:c.get("shippingAddress.city"),countryCode:c.get("shippingAddress.countryCode"),firstName:c.get("shippingAddress.firstName"),lastName:c.get("shippingAddress.lastName"),phone:c.get("shippingAddress.phone"),postalCode:c.get("shippingAddress.postalCode"),stateOrProvince:(t=c.get("shippingAddress.stateOrProvince"))!==null&&t!==void 0?t:c.get("shippingAddress.stateOrProvinceCode")};if(Object.values(d).some((function(o){return o===undefined||o===null}))){H("One or more shipping address field is missing",Object.entries(d));void I({endpoint:"No endpoint, domestic checkout form missing fields",errors:["Bigcommerce: One or more shipping address field is missing in the domestic checkout form",JSON.stringify(Object.entries(d))],metadata:{domain:window.location.hostname,storeId:C.storeId}});return[2]}a({address1:d.address1,address2:d.address2,city:d.city,countryCode:d.countryCode,firstName:d.firstName,lastName:d.lastName,phone:d.phone,postalCode:d.postalCode,state:d.stateOrProvince});o.preventDefault();o.stopPropagation();window.location.href="/";return[2]}))}))}));return[2]}))}))}));n.observe(document.body,{childList:true,subtree:true})};var V='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var W=".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";var Y=W;var q=90*60*1e3;var J=o("zonos_checkout",function(){function o(o){var t=this;e(this,o);this.onChangeLocaleListener=function(){};this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,t,n,s;return __generator(this,(function(c){switch(c.label){case 0:s=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||C.appearance.theme;return[4,h({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideSecondaryColor:(n=this.appearanceSettingsOverride)===null||n===void 0?void 0:n.colorSecondary,overrideTheme:this.isMobile?s:undefined})];case 1:c.sent();return[2]}}))}))};this.getCurrentLocalePageEnum=function(){switch(d.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined;this.domesticRedirectedBtnSelector="#zonos--domestic-redirected-checkout-button";this.legacyCheckoutHiddenBtnSelector="#legacy-checkout-hidden-button";this.isLegacyCheckout=false;this.confirmDialogOpen=false;this.showSessionTimoutScreen=false;this.checkoutTimeoutInterval=null}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void l(e);return[2]}))}))};o.prototype.handleKeyPress=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(o.key==="Escape"){void this.closeDialogHandler()}return[2]}))}))};o.prototype.closeDialogHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){if(!this.open){return[2]}if(!(o===null||o===void 0?void 0:o.confirmed)){this.confirmDialogOpen=true;return[2]}this.confirmDialogOpen=false;A("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&d.step==="finish"){f()}d.step="customer-info";z();this.clearCheckoutTimeoutInterval();(t=(e=C.checkoutSettings).onClose)===null||t===void 0?void 0:t.call(e);return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,t;return __generator(this,(function(n){switch(n.label){case 0:if(!window.Zonos.tempCartData)return[3,2];o=Z(window.Zonos.tempCartData);return[4,l(o)];case 1:n.sent();return[3,5];case 2:if(!(C.checkoutSettings.buildCartDetail&&c.selectedCountryCode))return[3,5];j("build cart detail");return[4,C.checkoutSettings.buildCartDetail({countryCode:c.selectedCountryCode,currencyCode:c.targetCurrency})];case 3:e=n.sent();return[4,l(e)];case 4:n.sent();n.label=5;case 5:if(!!m.clientSecret)return[3,7];return[4,k()];case 6:t=n.sent();j("stripeStoreInitCheckoutSession: ".concat(t));if(!t){return[2,false]}n.label=7;case 7:return[4,this.applyStripeTheme()];case 8:n.sent();return[2,true]}}))}))};o.prototype.clearCheckoutTimeoutInterval=function(){if(this.checkoutTimeoutInterval){clearTimeout(this.checkoutTimeoutInterval);this.checkoutTimeoutInterval=null}};o.prototype.startCheckoutTimeoutInterval=function(){var o=this;if(this.preview){return}var e=new URLSearchParams(window.location.search).get("zonosCheckoutTimeout");var t=e&&!isNaN(parseInt(e,10))?parseInt(e,10):q;j("==START CHECKOUT TIMEOUT - ".concat(t,"=="));this.checkoutTimeoutInterval=setTimeout((function(){o.showSessionTimoutScreen=true}),t)};o.prototype.reloadCheckoutSession=function(){window.location.reload()};o.prototype.attachCheckout=function(){var o=this;var e=C.checkoutSettings.placeOrderButtonSelector;j("attach checkout ".concat(e));if(!e){return}var t=document.querySelectorAll("".concat(e,", ").concat(this.domesticRedirectedBtnSelector));t.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(t){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:if(!F()){return[2]}e.preventDefault();e.stopPropagation();j("zonos checkout button clicked");m.isFetchingSession=true;this.open=true;n.label=1;case 1:n.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=n.sent();if(!o){throw new Error("Error building cart")}this.startCheckoutTimeoutInterval();A("zonos-checkout-start");void T("checkout_open");return[3,4];case 3:t=n.sent();m.isFetchingSession=false;v({messages:[p("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:p("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.removeAttribute("disabled");e.setAttribute("data-zonos-checkout-attached","true");if(e.matches(o.domesticRedirectedBtnSelector)){e.dispatchEvent(S("click"));u();e.remove()}if(e.matches(o.legacyCheckoutHiddenBtnSelector)){o.isLegacyCheckout=true;e.dispatchEvent(S("click"));e.remove()}}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.useLegacyQueryParam=function(){var o=new URLSearchParams(window.location.search);var e={country:o.get("country"),customerAddress1:o.get("customerAddress1"),customerAddress2:o.get("customerAddress2"),customerCity:o.get("customerCity"),customerEmail:o.get("customerEmail"),customerName:o.get("customerName"),customerPhone:o.get("customerPhone"),customerState:o.get("customerState"),customerZip:o.get("customerZip")};if(!e.customerAddress1||!e.customerCity||!e.customerName||!e.customerPhone||!e.customerState||!e.customerZip||!e.country){return}this.defaultAddress={address:{city:e.customerCity,country:e.country,line1:e.customerAddress1,line2:e.customerAddress2||"",postal_code:e.customerZip,state:e.customerState},email:e.customerEmail||"",name:e.customerName,phone:e.customerPhone}};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var t=this;return __generator(this,(function(n){m.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;K({domesticRedirectedBtnSelector:this.domesticRedirectedBtnSelector,onShippingAddressSessionFound:function(o){t.defaultAddress={address:{city:o.city,country:o.countryCode,line1:o.address1,line2:o.address2,postal_code:o.postalCode,state:o.state},email:"",name:"".concat(o.firstName," ").concat(o.lastName),phone:o.phone}}});if(window.Zonos.tempCartData){this.useLegacyQueryParam()}o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var t=F(false);var n=document.querySelectorAll(e);if(!t){n===null||n===void 0?void 0:n.forEach((function(o){var e=o;var t=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=t||"initial"}));return}n===null||n===void 0?void 0:n.forEach((function(o){var e=o;var t=e.style.display;e.setAttribute("data-zonos-checkout-original-display",t);e.style.display="none"}))}),100);e=setInterval((function(){m.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){j("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}j("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else{t.attachCheckout();var o=new MutationObserver((function(){t.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){d.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,g()];case 1:t.sent();o=setInterval((function(){if(d.landedCostData||!m.isFetchingLandedCost){if(d.landedCostData){b()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){b();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,w()];case 2:e.sent();b();this.clearCheckoutTimeoutInterval();return[3,4];case 3:o=e.sent();H(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,t;return __generator(this,(function(n){switch(n.label){case 0:y();if(!this.preview)return[3,2];d.step="customer-info";return[4,this.init()];case 1:n.sent();return[2];case 2:f();if(this.isLegacyCheckout&&window.Zonos.tempCartData){o=window.Zonos.tempCartData.contShoppingURL;window.location.href=o;return[2]}e=window.location.href;t=e.split("?")[0];window.history.replaceState(window.history.state,document.title,t);this.open=false;window.location.reload();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();j("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();j("mobile: ".concat(this.isMobile))};o.prototype.handleAppearanceSettingsOverrideChange=function(){var o;if((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme){this.appearanceSettingsOverride.theme=_(this.appearanceSettingsOverride.theme)}};o.prototype.componentWillLoad=function(){var o=this;void this.init();this.isMobile=N(this.mobile);this.handleAppearanceSettingsOverrideChange();this.onChangeLocaleListener=x("selectedLocale",(function(){void o.applyStripeTheme()}));j("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){y();f();this.onChangeLocaleListener()};o.prototype.render=function(){var o=this;var e;var i=d.step!=="finish"&&d.step!=="error"&&!m.stripeElements||m.isFetchingSession;var r=O(C.appearance,this.appearanceSettingsOverride),u=r.colorPrimary,a=r.colorSecondary,h=r.logoUrl,l=r.style;var f=C.appearance.zonosAttribution==="ENABLED";var z=C.appearance.theme;var k=u&&E(u)?"DARK":"LIGHT";var v=this.isMobile?z:k;var g=!this.isMobile?a:undefined;var b=c.customMessages;var w=(e=b.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message;var y=this.getCurrentLocalePageEnum();var x=b.filter((function(o){return o.pageName===y}));var _=function(){var e=o.preview?"".concat(h,"?timestamp=").concat(Date.now()):h;return t("div",{class:"zonos--logo"},e&&t("img",{alt:"".concat(C.organizationName," logo"),src:e,width:100}))};var S=function(){return t("zonos-v-stack",null,_(),t("zonos-checkout-progress-tabs",{backgroundColor:o.isMobile?"--zonos-elements-gray-0":null}),x.map((function(o){return t("zonos-custom-message",{icon:V,message:o.message})})))};var I=function(){if(o.showSessionTimoutScreen){return t("zonos-rest-state",{class:"zonos--session-timeout",restStateSubtitle:p("Your checkout session has expired. Please reload the page to continue."),restStateTitle:p("Session timed out"),restStateType:"Warning"},t("zonos-button",{onClick:function(){return o.reloadCheckoutSession()},variant:"primary"},p("Reload")))}return t("div",{class:"zonos--content",style:{"--border-radius":B({overrideBorderStyle:l})}},d.step!=="finish"&&d.step!=="error"&&t(s,null,t("div",{class:"zonos--left","data-theme":v,style:{"--primary-color":!o.isMobile?u:""}},!o.isMobile&&S(),d.step==="customer-info"&&t("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,isMobile:o.isMobile,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:g}),d.step==="shipping"&&t("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:g}),d.step==="payment"&&t("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:g})),t("div",{class:"zonos--right","data-theme":z},o.isMobile&&S(),!o.isLegacyCheckout&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close checkout dialog",content:M}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),t("div",{class:"flex--wrapper"},t("div",{class:"zonos--wrapper"},t("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile}}),t("zonos-collapse",{collapsed:o.collapseReviewMobile&&o.isMobile},t("zonos-cart-items",null),o.isMobile&&t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:V,message:w})))),t("zonos-cart-restricted-items",null),!o.isMobile&&t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:V,message:w}))))),(d.step==="finish"||d.step==="error")&&t("div",{class:"zonos--done","data-theme":z},t("div",{class:"zonos--header"},_(),t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close checkout dialog",content:M}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:z})),t("zonos-checkout-finish",{borderRadius:l,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:d.step==="error"&&!!d.error?Object.assign(Object.assign({},d.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})),t("zonos-checkout-footer",{"data-theme":z,mobile:o.isMobile,slot:!o.isMobile?"dialog-footer":undefined}))};return t(n,{class:L(["zonos--checkout zonos--elements",f&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?I():t("zonos-dialog",{borderStyle:l,"data-theme":z,height:"980px",isLoading:i,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},I()),t("zonos-confirm-dialog",{class:"zonos--close-confirm-dialog",dialogCancelBtnText:p("Don't close"),dialogConfirmBtnText:p("Close"),dialogIntent:"warn",dialogOpen:this.confirmDialogOpen,dialogSubtitle:p("Would you like to close checkout and return to the site?"),dialogTitle:p("Are you sure?"),onCancelClicked:function(){o.confirmDialogOpen=false},onConfirmClicked:function(){return o.closeDialogHandler({confirmed:true})}}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());J.style=Y}}}));
@@ -1 +1 @@
1
- System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-9c3a036e.system.js","./p-c9e433c0.system.js","./p-63db40b9.system.js","./p-8853e051.system.js","./p-33b054d9.system.js"],(function(e){"use strict";var t,s,a,n,o,i,r,c,l;return{setters:[function(e){t=e.r;s=e.h;a=e.H},function(e){n=e.d},function(e){o=e.c},function(e){i=e.H;r=e.t;c=e.l},function(e){l=e.l},function(){},function(){},function(){}],execute:function(){var d=":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos-elements-radius-6);padding:var(--spacing, 24px);text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";var h=d;var g=e("zonos_card",function(){function e(e){t(this,e);this.actions=undefined;this.footerActions=undefined;this.footerContent=undefined;this.footerHeight=undefined;this.label=undefined;this.spacing="24px"}e.prototype.render=function(){return s(a,{key:"0e52ca31db6c2f956da1910d6e0a222b588c1bcc",style:{"--font-family":n()}},s("div",{key:"69f391d821f88cbee4b0c586a8323b1dd68d7fd3",class:o(["styled-card"]),style:{padding:this.spacing}},this.label&&s("header",{key:"4568a1d7c354830e6e65e31b20b38140aaab9d01",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"e0a6b7a3776916f8208c27373878041807d91960",type:"subheader"},this.label),s("h-stack",{key:"c5f8d01b2f477b16ab9387081987eae64b156e76",spacing:8},this.actions)),s("slot",{key:"6001acfaae8ba37456a7c23bae5c44a91da074f9"}),(this.footerActions||this.footerContent)&&s("footer",{key:"78b926a323a5f1375c8120d5aa8b1ab2a4f3fa4a",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},s("div",{key:"2bd0c86b75096c2ee786d4a9b16a3d6e385fbbf1"},this.footerContent),s("h-stack",{key:"7a3f840ac9678a905338a99b8327115bc8199789",spacing:8},this.footerActions))))};return e}());g.style=h;var f='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var u=":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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var m=u;var b=e("zonos_language_select",function(){function e(e){var s=this;t(this,e);this.languageSelected=function(e){void i(e);s.handleOnClose()};this.handleOnClose=function(){}}e.prototype.render=function(){var e=this;var t=c.selectedLocale;return s(a,{key:"34580123b768ce983c0c9c6fa309bdb1d6756a5a",class:"zonos--elements",style:{"--font-family":n()}},s("div",{key:"6e86352a45b5d9ad0e5ed5dac330367a49a6c6fe",class:"zonos--language-select"},s("zonos-select-dialog-header",{key:"d5b55cbb2858a2c0a6aa6ce0ea0d50eecc7360e8",handleOnClose:function(){return e.handleOnClose()},label:r("Select a language")}),s("div",{key:"c9aeb075428357c4cb15d9a2b09df7c8d6b01b11",class:"zonos--language-select-content"},l.map((function(a){return s("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(a.code)}},s("zonos-text",{textColor:"gray-800"},a.translatedLabel),a.code===t&&s("zonos-icon",{content:f,size:16}))})))))};return e}());b.style=m}}}));
1
+ System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-d1b8bfce.system.js","./p-c9e433c0.system.js","./p-63db40b9.system.js","./p-8853e051.system.js","./p-33b054d9.system.js"],(function(e){"use strict";var t,s,a,n,o,i,r,c,d;return{setters:[function(e){t=e.r;s=e.h;a=e.H},function(e){n=e.d},function(e){o=e.c},function(e){i=e.H;r=e.t;c=e.l},function(e){d=e.l},function(){},function(){},function(){}],execute:function(){var l=":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos-elements-radius-6);padding:var(--spacing, 24px);text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";var h=l;var f=e("zonos_card",function(){function e(e){t(this,e);this.actions=undefined;this.footerActions=undefined;this.footerContent=undefined;this.footerHeight=undefined;this.label=undefined;this.spacing="24px"}e.prototype.render=function(){return s(a,{key:"0e52ca31db6c2f956da1910d6e0a222b588c1bcc",style:{"--font-family":n()}},s("div",{key:"69f391d821f88cbee4b0c586a8323b1dd68d7fd3",class:o(["styled-card"]),style:{padding:this.spacing}},this.label&&s("header",{key:"4568a1d7c354830e6e65e31b20b38140aaab9d01",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"e0a6b7a3776916f8208c27373878041807d91960",type:"subheader"},this.label),s("h-stack",{key:"c5f8d01b2f477b16ab9387081987eae64b156e76",spacing:8},this.actions)),s("slot",{key:"6001acfaae8ba37456a7c23bae5c44a91da074f9"}),(this.footerActions||this.footerContent)&&s("footer",{key:"78b926a323a5f1375c8120d5aa8b1ab2a4f3fa4a",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},s("div",{key:"2bd0c86b75096c2ee786d4a9b16a3d6e385fbbf1"},this.footerContent),s("h-stack",{key:"7a3f840ac9678a905338a99b8327115bc8199789",spacing:8},this.footerActions))))};return e}());f.style=h;var g='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var u=":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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var m=u;var b=e("zonos_language_select",function(){function e(e){var s=this;t(this,e);this.languageSelected=function(e){void i(e);s.handleOnClose()};this.handleOnClose=function(){}}e.prototype.render=function(){var e=this;var t=c.selectedLocale;return s(a,{key:"34580123b768ce983c0c9c6fa309bdb1d6756a5a",class:"zonos--elements",style:{"--font-family":n()}},s("div",{key:"6e86352a45b5d9ad0e5ed5dac330367a49a6c6fe",class:"zonos--language-select"},s("zonos-select-dialog-header",{key:"d5b55cbb2858a2c0a6aa6ce0ea0d50eecc7360e8",handleOnClose:function(){return e.handleOnClose()},label:r("Select a language")}),s("div",{key:"c9aeb075428357c4cb15d9a2b09df7c8d6b01b11",class:"zonos--language-select-content"},d.map((function(a){return s("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(a.code)}},s("zonos-text",{textColor:"gray-800"},a.translatedLabel),a.code===t&&s("zonos-icon",{content:g,size:16}))})))))};return e}());b.style=m}}}));