@zonos/elements 1.3.58 → 1.3.60

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 (160) hide show
  1. package/dist/cjs/{cart-6c7bf457.js → cart-9318a592.js} +18 -8
  2. package/dist/cjs/{createCustomEvent-a10ed604.js → createCustomEvent-22ab3823.js} +2 -2
  3. package/dist/cjs/{getBorderRadius-a6a3b35e.js → getBorderRadius-5a64574c.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{isDarkColor-7a056d05.js → isDarkColor-5efc8367.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-ec9ebaf5.js → paypal-c4c5c59c.js} +3 -3
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-badge_13.cjs.entry.js +23 -11
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +12 -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_4.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 +4 -4
  20. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  24. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  27. package/dist/cjs/{zonosStore-67139f0e.js → zonosStore-a4395972.js} +7 -4
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +17 -5
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +33 -1
  30. package/dist/collection/components/store/checkout/cart.js +10 -3
  31. package/dist/collection/components/store/checkout/stripe.js +3 -3
  32. package/dist/collection/components/store/hello/localization.js +3 -1
  33. package/dist/collection/components/store/zonosStore.js +7 -4
  34. package/dist/collection/types/generated/graphql.customer.types.js +27 -5
  35. package/dist/esm/{cart-a845a902.js → cart-9e089cda.js} +18 -9
  36. package/dist/esm/{createCustomEvent-0797e187.js → createCustomEvent-a7cec0a2.js} +2 -2
  37. package/dist/esm/{getBorderRadius-23398fc6.js → getBorderRadius-cff1e39b.js} +1 -1
  38. package/dist/esm/index.js +7 -7
  39. package/dist/esm/{isDarkColor-c927f77d.js → isDarkColor-b3afa948.js} +1 -1
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/{paypal-6d80dfd9.js → paypal-34af4a06.js} +3 -3
  42. package/dist/esm/zonos-address_8.entry.js +4 -4
  43. package/dist/esm/zonos-badge_13.entry.js +23 -11
  44. package/dist/esm/zonos-banner.entry.js +1 -1
  45. package/dist/esm/zonos-button_3.entry.js +3 -3
  46. package/dist/esm/zonos-card.entry.js +2 -2
  47. package/dist/esm/zonos-checkout.entry.js +12 -6
  48. package/dist/esm/zonos-controller.entry.js +4 -4
  49. package/dist/esm/zonos-country-flag.entry.js +4 -4
  50. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  51. package/dist/esm/zonos-elements.js +1 -1
  52. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  53. package/dist/esm/zonos-hello.entry.js +4 -4
  54. package/dist/esm/zonos-input.entry.js +2 -2
  55. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  56. package/dist/esm/zonos-logo.entry.js +1 -1
  57. package/dist/esm/zonos-notification_3.entry.js +5 -5
  58. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  59. package/dist/esm/zonos-text.entry.js +1 -1
  60. package/dist/esm/zonos-v-stack.entry.js +1 -1
  61. package/dist/esm/{zonosStore-473f4654.js → zonosStore-0dc7a947.js} +7 -4
  62. package/dist/esm-es5/{cart-a845a902.js → cart-9e089cda.js} +1 -1
  63. package/dist/esm-es5/{createCustomEvent-0797e187.js → createCustomEvent-a7cec0a2.js} +1 -1
  64. package/dist/esm-es5/{getBorderRadius-23398fc6.js → getBorderRadius-cff1e39b.js} +1 -1
  65. package/dist/esm-es5/index.js +1 -1
  66. package/dist/esm-es5/{isDarkColor-c927f77d.js → isDarkColor-b3afa948.js} +1 -1
  67. package/dist/esm-es5/loader.js +1 -1
  68. package/dist/esm-es5/{paypal-6d80dfd9.js → paypal-34af4a06.js} +1 -1
  69. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  70. package/dist/esm-es5/zonos-badge_13.entry.js +1 -1
  71. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  72. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  73. package/dist/esm-es5/zonos-card.entry.js +1 -1
  74. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  75. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  76. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  77. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  78. package/dist/esm-es5/zonos-elements.js +1 -1
  79. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  80. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  81. package/dist/esm-es5/zonos-input.entry.js +1 -1
  82. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  83. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  84. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  85. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  86. package/dist/esm-es5/zonos-text.entry.js +1 -1
  87. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  88. package/dist/esm-es5/{zonosStore-473f4654.js → zonosStore-0dc7a947.js} +1 -1
  89. package/dist/scripts/index.d.ts +54 -0
  90. package/dist/scripts/index.js +1 -1
  91. package/dist/scripts/loadZonos.js +1 -1
  92. package/dist/scripts/zonos.js +1 -1
  93. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -0
  94. package/dist/types/components/store/checkout/cart.d.ts +4 -2
  95. package/dist/types/components/store/zonosStore.d.ts +5 -1
  96. package/dist/types/components.d.ts +6 -2
  97. package/dist/types/types/generated/graphql.customer.types.d.ts +87 -101
  98. package/dist/types/types/generated/graphql.customer.types.ts +91 -96
  99. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  100. package/dist/zonos-elements/index.esm.js +1 -1
  101. package/dist/zonos-elements/{p-7ef2737b.system.entry.js → p-04553c97.system.entry.js} +1 -1
  102. package/dist/zonos-elements/{p-9dd6b00d.js → p-1086aac3.js} +1 -1
  103. package/dist/zonos-elements/{p-1c72e53f.system.entry.js → p-19fc5e11.system.entry.js} +1 -1
  104. package/dist/zonos-elements/p-1ca5696d.js +1 -0
  105. package/dist/zonos-elements/p-1dcccfc4.entry.js +1 -0
  106. package/dist/zonos-elements/{p-d067bb64.system.js → p-1ea34c87.system.js} +2 -2
  107. package/dist/zonos-elements/{p-d42018fc.entry.js → p-2c81d7c0.entry.js} +1 -1
  108. package/dist/zonos-elements/{p-556d4ddb.entry.js → p-2cd7b878.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-40f73fb4.system.entry.js → p-2eeb7fc4.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-5f7f51bd.entry.js → p-30470eb7.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-4b205b2f.entry.js → p-3924ca23.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-a4309beb.entry.js → p-41f42a5c.entry.js} +1 -1
  113. package/dist/zonos-elements/p-455b7545.system.js +1 -0
  114. package/dist/zonos-elements/{p-d20f6cf1.js → p-5aeab723.js} +1 -1
  115. package/dist/zonos-elements/{p-95a18511.entry.js → p-5eb27803.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-921d3603.entry.js → p-61bf769f.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-89d8c1ad.system.entry.js → p-698f7fd8.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-298df70c.system.entry.js → p-722bcca3.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-6f87b869.entry.js → p-73e01294.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-4b59ada6.system.entry.js → p-76faa16f.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-cf9a46e8.entry.js → p-7a4fc640.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-70bb4a25.entry.js → p-7be7bd28.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-6dcef5ce.entry.js → p-8894c902.entry.js} +1 -1
  124. package/dist/zonos-elements/p-8d4e78b1.js +1 -0
  125. package/dist/zonos-elements/{p-0954e8fe.system.entry.js → p-8edfcbf0.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-29814fd7.system.js → p-91462d96.system.js} +1 -1
  127. package/dist/zonos-elements/{p-206cf031.system.js → p-97a99ee5.system.js} +1 -1
  128. package/dist/zonos-elements/{p-3492c75f.system.entry.js → p-9b951ff8.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-2fc19941.system.js → p-9b9a4320.system.js} +1 -1
  130. package/dist/zonos-elements/{p-a3547b34.system.entry.js → p-a033685e.system.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-23a84835.js → p-a1b755bf.js} +1 -1
  132. package/dist/zonos-elements/p-a3c1c14c.system.entry.js +1 -0
  133. package/dist/zonos-elements/{p-b65b3e7b.system.entry.js → p-a86d5244.system.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-324a8c0d.system.entry.js → p-aa8fd7d9.system.entry.js} +1 -1
  135. package/dist/zonos-elements/p-acae065f.entry.js +1 -0
  136. package/dist/zonos-elements/{p-35ca4dcc.entry.js → p-b227910d.entry.js} +1 -1
  137. package/dist/zonos-elements/p-b3ab9695.system.entry.js +1 -0
  138. package/dist/zonos-elements/{p-8e8defdc.system.js → p-b74ff880.system.js} +1 -1
  139. package/dist/zonos-elements/{p-f3811c4c.system.entry.js → p-ba05f1d6.system.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-4dd2f617.system.entry.js → p-bcb129de.system.entry.js} +1 -1
  141. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  142. package/dist/zonos-elements/{p-ecd6a58a.system.entry.js → p-d56f87ab.system.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-17ea3429.system.entry.js → p-d5bd2da0.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-5a59ed7f.system.entry.js → p-de93cc65.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-8260b820.system.js → p-e7e0755f.system.js} +1 -1
  146. package/dist/zonos-elements/p-e9390710.entry.js +1 -0
  147. package/dist/zonos-elements/{p-54f66cd1.entry.js → p-f3fc05a8.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-eb3520e7.entry.js → p-f4765417.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-8e9dcaa3.entry.js → p-fca6f444.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-9fd3995f.js → p-fe943837.js} +1 -1
  151. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  152. package/package.json +1 -1
  153. package/dist/zonos-elements/p-15599089.system.entry.js +0 -1
  154. package/dist/zonos-elements/p-173f8e5b.entry.js +0 -1
  155. package/dist/zonos-elements/p-35122d9c.system.entry.js +0 -1
  156. package/dist/zonos-elements/p-472a6c19.js +0 -1
  157. package/dist/zonos-elements/p-51d82a07.entry.js +0 -1
  158. package/dist/zonos-elements/p-c043ec95.entry.js +0 -1
  159. package/dist/zonos-elements/p-e97793ce.system.js +0 -1
  160. package/dist/zonos-elements/p-f05f3e27.js +0 -1
@@ -130,6 +130,26 @@ export const analyticsProviderType = {
130
130
 
131
131
  export type AnalyticsProviderType =
132
132
  (typeof analyticsProviderType)[keyof typeof analyticsProviderType];
133
+ export const apiUsageRecordStatus = {
134
+ Failed: 'FAILED',
135
+ ManualIntervention: 'MANUAL_INTERVENTION',
136
+ Pending: 'PENDING',
137
+ Processed: 'PROCESSED',
138
+ } as const;
139
+
140
+ export type ApiUsageRecordStatus =
141
+ (typeof apiUsageRecordStatus)[keyof typeof apiUsageRecordStatus];
142
+ export const apiUsageRecordType = {
143
+ Classify: 'CLASSIFY',
144
+ DeniedParty: 'DENIED_PARTY',
145
+ LandedCost: 'LANDED_COST',
146
+ OrderComplete: 'ORDER_COMPLETE',
147
+ RestrictedItem: 'RESTRICTED_ITEM',
148
+ ShipmentRating: 'SHIPMENT_RATING',
149
+ } as const;
150
+
151
+ export type ApiUsageRecordType =
152
+ (typeof apiUsageRecordType)[keyof typeof apiUsageRecordType];
133
153
 
134
154
  export const bankAccountType = {
135
155
  Checking: 'CHECKING',
@@ -546,6 +566,13 @@ export const classificationRequestField = {
546
566
  export type ClassificationRequestField =
547
567
  (typeof classificationRequestField)[keyof typeof classificationRequestField];
548
568
 
569
+ export const classifyMissingHsCodesStatus = {
570
+ Disabled: 'DISABLED',
571
+ Enabled: 'ENABLED',
572
+ } as const;
573
+
574
+ export type ClassifyMissingHsCodesStatus =
575
+ (typeof classifyMissingHsCodesStatus)[keyof typeof classifyMissingHsCodesStatus];
549
576
  export const clearanceType = {
550
577
  Commercial: 'COMMERCIAL',
551
578
  Postal: 'POSTAL',
@@ -605,6 +632,7 @@ export const collectUploadStatus = {
605
632
 
606
633
  export type CollectUploadStatus =
607
634
  (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
635
+
608
636
  export const commercialInvoiceImageCarrier = {
609
637
  Dhl: 'DHL',
610
638
  Fedex: 'FEDEX',
@@ -1336,8 +1364,19 @@ export const currencySymbolLocation = {
1336
1364
  export type CurrencySymbolLocation =
1337
1365
  (typeof currencySymbolLocation)[keyof typeof currencySymbolLocation];
1338
1366
 
1367
+ export const customsDocumentCarrier = {
1368
+ Dhl: 'DHL',
1369
+ Fedex: 'FEDEX',
1370
+ Ups: 'UPS',
1371
+ } as const;
1372
+
1373
+ export type CustomsDocumentCarrier =
1374
+ (typeof customsDocumentCarrier)[keyof typeof customsDocumentCarrier];
1375
+
1339
1376
  export const customsDocumentFileType = {
1377
+ Jpg: 'JPG',
1340
1378
  Pdf: 'PDF',
1379
+ Png: 'PNG',
1341
1380
  Txt: 'TXT',
1342
1381
  } as const;
1343
1382
 
@@ -1525,15 +1564,6 @@ export const elementsUiTheme = {
1525
1564
  export type ElementsUiTheme =
1526
1565
  (typeof elementsUiTheme)[keyof typeof elementsUiTheme];
1527
1566
 
1528
- export const emailSenderStatus = {
1529
- NotVerified: 'NOT_VERIFIED',
1530
- Pending: 'PENDING',
1531
- Verified: 'VERIFIED',
1532
- } as const;
1533
-
1534
- export type EmailSenderStatus =
1535
- (typeof emailSenderStatus)[keyof typeof emailSenderStatus];
1536
-
1537
1567
  export const emailTemplateProviderType = {
1538
1568
  Sendgrid: 'SENDGRID',
1539
1569
  } as const;
@@ -1984,6 +2014,7 @@ export const itemRestrictionType = {
1984
2014
 
1985
2015
  export type ItemRestrictionType =
1986
2016
  (typeof itemRestrictionType)[keyof typeof itemRestrictionType];
2017
+
1987
2018
  export const itemType = {
1988
2019
  Bundle: 'BUNDLE',
1989
2020
  DigitalGood: 'DIGITAL_GOOD',
@@ -2058,6 +2089,7 @@ export type LabelStatusType =
2058
2089
  export const landedCostAdjustmentType = {
2059
2090
  CartTotal: 'CART_TOTAL',
2060
2091
  Item: 'ITEM',
2092
+ PromoCode: 'PROMO_CODE',
2061
2093
  Shipping: 'SHIPPING',
2062
2094
  } as const;
2063
2095
 
@@ -3067,6 +3099,7 @@ export type TransitTypeCode =
3067
3099
  export const usageRecordTypeCode = {
3068
3100
  ApiUsage: 'API_USAGE',
3069
3101
  LcgInvoicing: 'LCG_INVOICING',
3102
+ MeterUsage: 'METER_USAGE',
3070
3103
  OrderComplete: 'ORDER_COMPLETE',
3071
3104
  OrderTransactionInvoicing: 'ORDER_TRANSACTION_INVOICING',
3072
3105
  } as const;
@@ -3543,47 +3576,6 @@ export type CheckoutSessionCreateMutation = {
3543
3576
  };
3544
3577
  };
3545
3578
 
3546
- export type CheckoutDetailsFragment = {
3547
- cartId: string | null;
3548
- clientSecret: string;
3549
- id: string;
3550
- landedCost: {
3551
- amountSubtotals: {
3552
- discounts: number | null;
3553
- duties: number;
3554
- fees: number;
3555
- items: number;
3556
- landedCostTotal: number;
3557
- shipping: number;
3558
- taxes: number;
3559
- } | null;
3560
- id: string;
3561
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
3562
- method: IncotermCode;
3563
- shipmentRating: { displayName: string };
3564
- } | null;
3565
- metadata: Array<{ key: string; value: string } | null> | null;
3566
- organizationId: string;
3567
- subtotals: {
3568
- adjustments: number;
3569
- duties: number;
3570
- exchangeRate: {
3571
- id: string;
3572
- rate: number;
3573
- sourceCurrencyCode: CurrencyCode;
3574
- targetCurrencyCode: CurrencyCode;
3575
- type: ExchangeRateType;
3576
- };
3577
- fees: number;
3578
- items: number;
3579
- landedCostTotal: number;
3580
- presentmentCurrencyCode: CurrencyCode;
3581
- shipping: number;
3582
- taxes: number;
3583
- total: number;
3584
- };
3585
- };
3586
-
3587
3579
  export type PaypalOrderCreateMutation = {
3588
3580
  paypalOrderCreate: { paypalOrderId: string | null };
3589
3581
  };
@@ -3643,6 +3635,47 @@ export type CheckoutSessionUpdateMetadataMutation = {
3643
3635
  };
3644
3636
  };
3645
3637
 
3638
+ export type CheckoutSessionDetailsFragment = {
3639
+ cartId: string | null;
3640
+ clientSecret: string;
3641
+ id: string;
3642
+ landedCost: {
3643
+ amountSubtotals: {
3644
+ discounts: number | null;
3645
+ duties: number;
3646
+ fees: number;
3647
+ items: number;
3648
+ landedCostTotal: number;
3649
+ shipping: number;
3650
+ taxes: number;
3651
+ } | null;
3652
+ id: string;
3653
+ landedCostGuaranteeCode: LandedCostGuaranteeCode;
3654
+ method: IncotermCode;
3655
+ shipmentRating: { displayName: string };
3656
+ } | null;
3657
+ metadata: Array<{ key: string; value: string } | null> | null;
3658
+ organizationId: string;
3659
+ subtotals: {
3660
+ adjustments: number;
3661
+ duties: number;
3662
+ exchangeRate: {
3663
+ id: string;
3664
+ rate: number;
3665
+ sourceCurrencyCode: CurrencyCode;
3666
+ targetCurrencyCode: CurrencyCode;
3667
+ type: ExchangeRateType;
3668
+ };
3669
+ fees: number;
3670
+ items: number;
3671
+ landedCostTotal: number;
3672
+ presentmentCurrencyCode: CurrencyCode;
3673
+ shipping: number;
3674
+ taxes: number;
3675
+ total: number;
3676
+ };
3677
+ };
3678
+
3646
3679
  export type CheckoutSessionUpdateMutation = {
3647
3680
  checkoutSessionUpdate: {
3648
3681
  cartId: string | null;
@@ -3686,47 +3719,6 @@ export type CheckoutSessionUpdateMutation = {
3686
3719
  };
3687
3720
  };
3688
3721
 
3689
- export type CheckoutSessionUpdateDetailsFragment = {
3690
- cartId: string | null;
3691
- clientSecret: string;
3692
- id: string;
3693
- landedCost: {
3694
- amountSubtotals: {
3695
- discounts: number | null;
3696
- duties: number;
3697
- fees: number;
3698
- items: number;
3699
- landedCostTotal: number;
3700
- shipping: number;
3701
- taxes: number;
3702
- } | null;
3703
- id: string;
3704
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
3705
- method: IncotermCode;
3706
- shipmentRating: { displayName: string };
3707
- } | null;
3708
- metadata: Array<{ key: string; value: string } | null> | null;
3709
- organizationId: string;
3710
- subtotals: {
3711
- adjustments: number;
3712
- duties: number;
3713
- exchangeRate: {
3714
- id: string;
3715
- rate: number;
3716
- sourceCurrencyCode: CurrencyCode;
3717
- targetCurrencyCode: CurrencyCode;
3718
- type: ExchangeRateType;
3719
- };
3720
- fees: number;
3721
- items: number;
3722
- landedCostTotal: number;
3723
- presentmentCurrencyCode: CurrencyCode;
3724
- shipping: number;
3725
- taxes: number;
3726
- total: number;
3727
- };
3728
- };
3729
-
3730
3722
  export type ZonosSettingsQuery = {
3731
3723
  appearanceSettings: {
3732
3724
  colorPrimary: string;
@@ -3753,14 +3745,12 @@ export type ZonosSettingsQuery = {
3753
3745
  }>;
3754
3746
  createdAt: string;
3755
3747
  createdBy: string;
3748
+ disabledCountries: Array<CountryCode> | null;
3756
3749
  externalPaymentMethods: Array<{
3757
3750
  status: ExternalPaymentMethodStatus;
3758
3751
  type: ExternalPaymentMethodType;
3759
3752
  }> | null;
3760
- externalServiceTokens: Array<{
3761
- token: string;
3762
- type: ExternalServiceTokenType;
3763
- }>;
3753
+ organization: string;
3764
3754
  id: string;
3765
3755
  mode: Mode;
3766
3756
  orderNotifications: {
@@ -3785,7 +3775,10 @@ export type ZonosSettingsQuery = {
3785
3775
  sendCopiesTo: Array<string>;
3786
3776
  };
3787
3777
  };
3788
- organization: string;
3778
+ externalServiceTokens: Array<{
3779
+ token: string;
3780
+ type: ExternalServiceTokenType;
3781
+ }>;
3789
3782
  placeOrderButtonSelector: string | null;
3790
3783
  status: CheckoutStatus;
3791
3784
  subscriptionStatus: CheckoutSubscriptionStatus;
@@ -3839,6 +3832,7 @@ export type CheckoutSettingFragment = {
3839
3832
  }>;
3840
3833
  createdAt: string;
3841
3834
  createdBy: string;
3835
+ disabledCountries: Array<CountryCode> | null;
3842
3836
  externalPaymentMethods: Array<{
3843
3837
  status: ExternalPaymentMethodStatus;
3844
3838
  type: ExternalPaymentMethodType;
@@ -4018,6 +4012,7 @@ export type GetOrderQuery = {
4018
4012
  } | null;
4019
4013
  type: PartyType | null;
4020
4014
  }> | null;
4015
+ references: Array<{ key: string | null; value: string | null }> | null;
4021
4016
  root: {
4022
4017
  exchangeRates: Array<{
4023
4018
  rate: number;
@@ -1 +1 @@
1
- <svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
1
+ <svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
@@ -1 +1 @@
1
- import{l as e,a as n}from"./p-fb59c3c3.js";import{s as t,c as o}from"./p-f9c2288f.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-f9c2288f.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let m=null;const p=Promise.resolve().then((()=>{return e=null,null!==m||(m=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${l}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&u.test(t.src))return t}return null})();s&&e?console.warn(a):s||(s=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${l}${t}`;const s=document.head||document.body;return s?(s.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),m;var e}));let f=!1;var w;p.catch((e=>{f||console.warn(e)}));const h=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),v="https://v1.3.58.js.zonos.com",y=h||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.58",z="https://rsms.me",j="https://fonts.googleapis.com",S=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class g{}w=g,g.doneInit=!1,g.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),g.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),g._paypalMockResponse=null,g.isBigCommerce=!1,g.releaseDate="1727735627207",g.isLegacyCheckout=!1,g.isNpm=!0,g.zonosQaUrl=null,g.version="v1.3.58",g.modeAlerted=!1,g.cartData=null,g.paypal=null,g.getCurrentTimestamp=()=>(new Date).getTime(),g.zonosController=null,g.init=async({appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d,storeId:u,zonosApiKey:a})=>{if(w.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!w.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${w.version}) ======`),w.zonosApiKey=a,w.storeId=u,w.isNpm){if(e("====== ZONOS LOADING FROM NPM ======"),!a&&!w.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!w.cartData&&w.cartId){e("Initialize cart data");const o=await t(w.cartId);if(!o)return void n("Failed to get cart data");w.cartData=o.cartData,w.zonosApiKey=o.zonosApiKey}}if(w.cartId&&w.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${o}`,document.body.appendChild(n)}e("init zonos"),w.injectZonosCdn(),w.injectZonosCss(),w.injectFonts(),w.injectController({config:{appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d}}),w.doneInit=!0}},g.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},g.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},g.showNotification=e=>{var n;null===(n=w.zonosController)||void 0===n||n.showNotification(e)},g.updateOrganizationName=e=>{var n;null===(n=w.zonosController)||void 0===n||n.updateOrganizationName(e)},g.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},g.injectController=({config:t})=>{var o;if(document.querySelector("zonos-controller"))return;if(null===(o=t.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;w.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{w.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=t,s.zonosApiKey=w.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const r=await(async(...e)=>{f=!0;const n=Date.now();return p.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),w.zonosController=s,e("Zonos controller injected!")},g.injectScript=({cdnType:t,isModule:o,theRestUrl:s})=>{const r=`${w.getZonosUrl(t)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");o?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(t);e&&w.injectScript({cdnType:e,isModule:o,theRestUrl:s})},c.appendChild(l)},g.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return y;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.58";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.58";case"vercel":return v}};return w.isNpm&&(()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const t=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.58.js.zonos.com";if(!t&&(o.includes("test.")||o.includes("test-")))return o;if(!t&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const s=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' 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})),s})()||t()},g.injectZonosCdn=()=>{w.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),w.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},g.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const o=w.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${v}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${o}/${t}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const o=i(e);o&&w.injectStylesheet({cdnType:o,theRestUrl:t})},s.appendChild(c)},g.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(w.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},g.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${z}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!S.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=z,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${z}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},g.setupGoogleFont=e=>{var n;null===(n=w.zonosController)||void 0===n||n.setupGoogleFont(e)},g.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${j}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=j,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{g as Zonos}
1
+ import{l as e,a as n}from"./p-fb59c3c3.js";import{s as t,c as o}from"./p-f9c2288f.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-f9c2288f.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let m=null;const p=Promise.resolve().then((()=>{return e=null,null!==m||(m=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${l}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&u.test(t.src))return t}return null})();s&&e?console.warn(a):s||(s=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${l}${t}`;const s=document.head||document.body;return s?(s.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),m;var e}));let f=!1;var w;p.catch((e=>{f||console.warn(e)}));const h=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),v="https://v1.3.60.js.zonos.com",y=h||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.60",z="https://rsms.me",j="https://fonts.googleapis.com",S=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class g{}w=g,g.doneInit=!1,g.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),g.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),g._paypalMockResponse=null,g.isBigCommerce=!1,g.releaseDate="1727800174950",g.isLegacyCheckout=!1,g.isNpm=!0,g.zonosQaUrl=null,g.version="v1.3.60",g.modeAlerted=!1,g.cartData=null,g.paypal=null,g.getCurrentTimestamp=()=>(new Date).getTime(),g.zonosController=null,g.init=async({appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d,storeId:u,zonosApiKey:a})=>{if(w.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!w.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${w.version}) ======`),w.zonosApiKey=a,w.storeId=u,w.isNpm){if(e("====== ZONOS LOADING FROM NPM ======"),!a&&!w.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!w.cartData&&w.cartId){e("Initialize cart data");const o=await t(w.cartId);if(!o)return void n("Failed to get cart data");w.cartData=o.cartData,w.zonosApiKey=o.zonosApiKey}}if(w.cartId&&w.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${o}`,document.body.appendChild(n)}e("init zonos"),w.injectZonosCdn(),w.injectZonosCss(),w.injectFonts(),w.injectController({config:{appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d}}),w.doneInit=!0}},g.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},g.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},g.showNotification=e=>{var n;null===(n=w.zonosController)||void 0===n||n.showNotification(e)},g.updateOrganizationName=e=>{var n;null===(n=w.zonosController)||void 0===n||n.updateOrganizationName(e)},g.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},g.injectController=({config:t})=>{var o;if(document.querySelector("zonos-controller"))return;if(null===(o=t.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;w.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{w.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=t,s.zonosApiKey=w.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const r=await(async(...e)=>{f=!0;const n=Date.now();return p.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),w.zonosController=s,e("Zonos controller injected!")},g.injectScript=({cdnType:t,isModule:o,theRestUrl:s})=>{const r=`${w.getZonosUrl(t)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");o?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(t);e&&w.injectScript({cdnType:e,isModule:o,theRestUrl:s})},c.appendChild(l)},g.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return y;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.60";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.60";case"vercel":return v}};return w.isNpm&&(()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const t=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.60.js.zonos.com";if(!t&&(o.includes("test.")||o.includes("test-")))return o;if(!t&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const s=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' 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})),s})()||t()},g.injectZonosCdn=()=>{w.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),w.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},g.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const o=w.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${v}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${o}/${t}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const o=i(e);o&&w.injectStylesheet({cdnType:o,theRestUrl:t})},s.appendChild(c)},g.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(w.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},g.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${z}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!S.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=z,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${z}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},g.setupGoogleFont=e=>{var n;null===(n=w.zonosController)||void 0===n||n.setupGoogleFont(e)},g.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${j}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=j,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{g as Zonos}
@@ -1 +1 @@
1
- System.register(["./p-fd061229.system.js","./p-8e8defdc.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 d=this.weight||f||r;var u=g||h;var b=a(this.textColor)?"var(--zonos-elements-".concat(this.textColor,")"):this.textColor;var p=function(){switch(u){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(d)]),style:{"--color":b,"--font-family":n()}},p())};return e}());z.style=r}}}));
1
+ System.register(["./p-fd061229.system.js","./p-b74ff880.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
- import{g as n,f as t}from"./p-5b7da777.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(n,t){return n===t||n!=n&&t!=t},a=c,s=function(n,t){for(var r=n.length;r--;)if(a(n[r][0],t))return r;return-1},f=s,l=Array.prototype.splice,v=s,d=s,h=s;function b(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}b.prototype.clear=function(){this.__data__=[],this.size=0},b.prototype.delete=function(n){var t=this.__data__,r=f(t,n);return!(r<0||(r==t.length-1?t.pop():l.call(t,r,1),--this.size,0))},b.prototype.get=function(n){var t=this.__data__,r=v(t,n);return r<0?void 0:t[r][1]},b.prototype.has=function(n){return d(this.__data__,n)>-1},b.prototype.set=function(n,t){var r=this.__data__,e=h(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var p,y=b,g=y,j="object"==typeof u&&u&&u.Object===Object&&u,O="object"==typeof self&&self&&self.Object===Object&&self,S=j||O||Function("return this")(),m=S.Symbol,_=Object.prototype,w=_.hasOwnProperty,E=_.toString,A=m?m.toStringTag:void 0,D=Object.prototype.toString,T=m?m.toStringTag:void 0,L=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":T&&T in Object(n)?function(n){var t=w.call(n,A),r=n[A];try{n[A]=void 0;var e=!0}catch(n){}var o=E.call(n);return e&&(t?n[A]=r:delete n[A]),o}(n):function(n){return D.call(n)}(n)},B=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},P=L,C=B,I=function(n){if(!C(n))return!1;var t=P(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=S["__core-js_shared__"],U=(p=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",x=Function.prototype.toString,N=I,R=B,z=/^\[object .+?Constructor\]$/,F=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=function(n){return!(!R(n)||(t=n,U&&U in t))&&(N(n)?F:z).test(function(n){if(null!=n){try{return x.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},$=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return k(r)?r:void 0},G=$(S,"Map"),H=$(Object,"create"),K=H,Y=H,V=Object.prototype.hasOwnProperty,q=H,J=Object.prototype.hasOwnProperty,Q=H;function W(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}W.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},W.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},W.prototype.get=function(n){var t=this.__data__;if(Y){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return V.call(t,n)?t[n]:void 0},W.prototype.has=function(n){var t=this.__data__;return q?void 0!==t[n]:J.call(t,n)},W.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Q&&void 0===t?"__lodash_hash_undefined__":t,this};var X=W,Z=y,nn=G,tn=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map},rn=tn,en=tn,on=tn,un=tn;function cn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}cn.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(nn||Z),string:new X}},cn.prototype.delete=function(n){var t=rn(this,n).delete(n);return this.size-=t?1:0,t},cn.prototype.get=function(n){return en(this,n).get(n)},cn.prototype.has=function(n){return on(this,n).has(n)},cn.prototype.set=function(n,t){var r=un(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var an=y,sn=G,fn=cn,ln=y,vn=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},dn=function(n){return this.__data__.get(n)},hn=function(n){return this.__data__.has(n)};function bn(n){var t=this.__data__=new ln(n);this.size=t.size}bn.prototype.clear=function(){this.__data__=new g,this.size=0},bn.prototype.delete=vn,bn.prototype.get=dn,bn.prototype.has=hn,bn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof an){var e=r.__data__;if(!sn||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new fn(e)}return r.set(n,t),this.size=r.size,this};var pn,yn,gn,jn,On,Sn=bn,mn=$,_n=function(){try{var n=mn(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),wn=_n,En=function(n,t,r){"__proto__"==t&&wn?wn(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},An=En,Dn=c,Tn=function(n,t,r){(void 0!==r&&!Dn(n[t],r)||void 0===r&&!(t in n))&&An(n,t,r)},Ln=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},Bn={exports:{}};On=(jn=(gn=(yn=(pn=Bn.exports)&&!pn.nodeType&&pn)&&Bn&&!Bn.nodeType&&Bn)&&gn.exports===yn?S.Buffer:void 0)?jn.allocUnsafe:void 0,Bn.exports=function(n,t){if(t)return n.slice();var r=n.length,e=On?On(r):new n.constructor(r);return n.copy(e),e};var Pn,Cn,In=S.Uint8Array,Mn=B,Un=Object.create,xn=function(){function n(){}return function(t){if(!Mn(t))return{};if(Un)return Un(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),Nn=(Pn=Object.getPrototypeOf,Cn=Object,function(n){return Pn(Cn(n))}),Rn=Object.prototype,zn=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Rn)},Fn=xn,kn=Nn,$n=zn,Gn=function(n){return null!=n&&"object"==typeof n},Hn=L,Kn=Gn,Yn=function(n){return Kn(n)&&"[object Arguments]"==Hn(n)},Vn=Gn,qn=Object.prototype,Jn=qn.hasOwnProperty,Qn=qn.propertyIsEnumerable,Wn=Yn(function(){return arguments}())?Yn:function(n){return Vn(n)&&Jn.call(n,"callee")&&!Qn.call(n,"callee")},Xn=Array.isArray,Zn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},nt=I,tt=Zn,rt=function(n){return null!=n&&tt(n.length)&&!nt(n)},et=rt,ot=Gn,it={exports:{}},ut=function(){return!1};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&it&&!it.nodeType&&it,o=e&&e.exports===r?S.Buffer:void 0;it.exports=(o?o.isBuffer:void 0)||ut}(0,it.exports);var ct=L,at=Nn,st=Gn,ft=Function.prototype.toString,lt=Object.prototype.hasOwnProperty,vt=ft.call(Object),dt=L,ht=Zn,bt=Gn,pt={};pt["[object Float32Array]"]=pt["[object Float64Array]"]=pt["[object Int8Array]"]=pt["[object Int16Array]"]=pt["[object Int32Array]"]=pt["[object Uint8Array]"]=pt["[object Uint8ClampedArray]"]=pt["[object Uint16Array]"]=pt["[object Uint32Array]"]=!0,pt["[object Arguments]"]=pt["[object Array]"]=pt["[object ArrayBuffer]"]=pt["[object Boolean]"]=pt["[object DataView]"]=pt["[object Date]"]=pt["[object Error]"]=pt["[object Function]"]=pt["[object Map]"]=pt["[object Number]"]=pt["[object Object]"]=pt["[object RegExp]"]=pt["[object Set]"]=pt["[object String]"]=pt["[object WeakMap]"]=!1;var yt={exports:{}};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&j.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i}(yt,yt.exports);var gt,jt=function(n){return bt(n)&&ht(n.length)&&!!pt[dt(n)]},Ot=yt.exports,St=Ot&&Ot.isTypedArray,mt=St?function(n){return function(t){return n(t)}}(St):jt,_t=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},wt=En,Et=c,At=Object.prototype.hasOwnProperty,Dt=function(n,t,r){var e=n[t];At.call(n,t)&&Et(e,r)&&(void 0!==r||t in n)||wt(n,t,r)},Tt=En,Lt=/^(?:0|[1-9]\d*)$/,Bt=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Lt.test(n))&&n>-1&&n%1==0&&n<t},Pt=Wn,Ct=Xn,It=it.exports,Mt=Bt,Ut=mt,xt=Object.prototype.hasOwnProperty,Nt=B,Rt=zn,zt=Object.prototype.hasOwnProperty,Ft=function(n,t){var r=Ct(n),e=!r&&Pt(n),o=!r&&!e&&It(n),i=!r&&!e&&!o&&Ut(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!xt.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Mt(s,a))||c.push(s);return c},kt=function(n){if(!Nt(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=Rt(n),r=[];for(var e in n)("constructor"!=e||!t&&zt.call(n,e))&&r.push(e);return r},$t=rt,Gt=function(n){return $t(n)?Ft(n,!0):kt(n)},Ht=Gt,Kt=Tn,Yt=Bn.exports,Vt=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new In(e).set(new In(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},qt=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t},Jt=function(n){return"function"!=typeof n.constructor||$n(n)?{}:Fn(kn(n))},Qt=Wn,Wt=Xn,Xt=function(n){return ot(n)&&et(n)},Zt=it.exports,nr=I,tr=B,rr=function(n){if(!st(n)||"[object Object]"!=ct(n))return!1;var t=at(n);if(null===t)return!0;var r=lt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==vt},er=mt,or=_t,ir=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?Tt(r,c,a):Dt(r,c,a)}return r}(n,Ht(n))},ur=Sn,cr=Tn,ar=Ln,sr=B,fr=Gt,lr=_t,vr=function(n){return n},dr=Math.max,hr=_n,br=Date.now,pr=function(n){var t=0,r=0;return function(){var e=br(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(hr?function(n,t){return hr(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:vr),yr=vr,gr=function(n,t,r){return t=dr(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=dr(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}},jr=pr,Or=c,Sr=rt,mr=Bt,_r=B,wr=function n(t,r,e,o,i){t!==r&&ar(r,(function(u,c){if(i||(i=new ur),sr(u))!function(n,t,r,e,o,i,u){var c=or(n,r),a=or(t,r),s=u.get(a);if(s)Kt(n,r,s);else{var f=i?i(c,a,r+"",n,t,u):void 0,l=void 0===f;if(l){var v=Wt(a),d=!v&&Zt(a),h=!v&&!d&&er(a);f=a,v||d||h?Wt(c)?f=c:Xt(c)?f=qt(c):d?(l=!1,f=Yt(a,!0)):h?(l=!1,f=Vt(a,!0)):f=[]:rr(a)||Qt(a)?(f=c,Qt(c)?f=ir(c):tr(c)&&!nr(c)||(f=Jt(a))):l=!1}l&&(u.set(a,f),o(f,a,e,i,u),u.delete(a)),Kt(n,r,f)}}(t,r,c,e,n,o,i);else{var a=o?o(lr(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),cr(t,c,a)}}),fr)},Er=(gt=function(n,t,r){wr(n,t,r)},function(n,t){return jr(gr(n,t,yr),n+"")}((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=gt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!_r(r))return!1;var e=typeof t;return!!("number"==e?Sr(r)&&mr(t,r.length):"string"==e&&t in r)&&Or(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var u=t[r];u&&gt(n,u,r)}return n})));const Ar=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Er.apply(null,e)},{reset:Dr,state:Tr}=i((()=>({appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],externalPaymentMethods:[],externalServiceTokens:[],mode:"TEST",orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{anchorElementSelector:"",cartUrlPattern:"",countryOverrideBehavior:"URL_PARAM",currencyBehavior:"ENABLED",currencyElementSelector:".money",desktopLocation:"BOTTOM_RIGHT",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED",showForCountries:"ONLY_SHIPPABLE",visibilityStatus:"ENABLED"},loadedConfig:!1,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:"",zonosMode:null})));let Lr=null;const Br=n=>"SYSTEM"===n?window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT":n,Pr=({overrideSettings:n,zonosSettings:t})=>{var r,e,o,i;Dr(),t&&(Lr=t);const u=Ar(Tr.appearance,(null==Lr?void 0:Lr.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,null==n?void 0:n.appearance);"SYSTEM"===u.theme&&(u.theme=Br(u.theme)),Tr.appearance=u,Tr.checkoutSettings=Ar(Tr.checkoutSettings,(null==Lr?void 0:Lr.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,null==n?void 0:n.checkoutSettings),Tr.helloSettings=Ar(Tr.helloSettings,(null==Lr?void 0:Lr.helloSettings)||(null==t?void 0:t.helloSettings)||null,null==n?void 0:n.helloSettings),Tr.loadedConfig=!0,Tr.organizationId=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.id)||"",Tr.organizationName=(null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.name)||"",Tr.storeId=(null===(i=null===(o=null==t?void 0:t.organization)||void 0===o?void 0:o.references)||void 0===i?void 0:i.storeId)||null,Tr.currencyConverter=null==n?void 0:n.currencyConverter,Tr.onCountryChange=null==n?void 0:n.onCountryChange,Tr.overrideCurrencyFormat=null==n?void 0:n.overrideCurrencyFormat},Cr=()=>Tr.appearance.fontFamily||"Inter";export{S as _,u as a,Pr as b,i as c,Cr as d,L as e,B as f,Br as g,Gn as i,Ar as m,Tr as z}
1
+ import{g as n,f as t}from"./p-5b7da777.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(n,t){return n===t||n!=n&&t!=t},a=c,s=function(n,t){for(var r=n.length;r--;)if(a(n[r][0],t))return r;return-1},f=s,l=Array.prototype.splice,v=s,d=s,h=s;function b(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}b.prototype.clear=function(){this.__data__=[],this.size=0},b.prototype.delete=function(n){var t=this.__data__,r=f(t,n);return!(r<0||(r==t.length-1?t.pop():l.call(t,r,1),--this.size,0))},b.prototype.get=function(n){var t=this.__data__,r=v(t,n);return r<0?void 0:t[r][1]},b.prototype.has=function(n){return d(this.__data__,n)>-1},b.prototype.set=function(n,t){var r=this.__data__,e=h(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var p,y=b,g=y,j="object"==typeof u&&u&&u.Object===Object&&u,O="object"==typeof self&&self&&self.Object===Object&&self,S=j||O||Function("return this")(),m=S.Symbol,_=Object.prototype,w=_.hasOwnProperty,E=_.toString,A=m?m.toStringTag:void 0,D=Object.prototype.toString,T=m?m.toStringTag:void 0,L=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":T&&T in Object(n)?function(n){var t=w.call(n,A),r=n[A];try{n[A]=void 0;var e=!0}catch(n){}var o=E.call(n);return e&&(t?n[A]=r:delete n[A]),o}(n):function(n){return D.call(n)}(n)},B=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},C=L,P=B,I=function(n){if(!P(n))return!1;var t=C(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=S["__core-js_shared__"],U=(p=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",x=Function.prototype.toString,N=I,R=B,z=/^\[object .+?Constructor\]$/,F=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=function(n){return!(!R(n)||(t=n,U&&U in t))&&(N(n)?F:z).test(function(n){if(null!=n){try{return x.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},$=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return k(r)?r:void 0},G=$(S,"Map"),H=$(Object,"create"),K=H,Y=H,V=Object.prototype.hasOwnProperty,q=H,J=Object.prototype.hasOwnProperty,Q=H;function W(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}W.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},W.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},W.prototype.get=function(n){var t=this.__data__;if(Y){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return V.call(t,n)?t[n]:void 0},W.prototype.has=function(n){var t=this.__data__;return q?void 0!==t[n]:J.call(t,n)},W.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Q&&void 0===t?"__lodash_hash_undefined__":t,this};var X=W,Z=y,nn=G,tn=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map},rn=tn,en=tn,on=tn,un=tn;function cn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}cn.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(nn||Z),string:new X}},cn.prototype.delete=function(n){var t=rn(this,n).delete(n);return this.size-=t?1:0,t},cn.prototype.get=function(n){return en(this,n).get(n)},cn.prototype.has=function(n){return on(this,n).has(n)},cn.prototype.set=function(n,t){var r=un(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var an=y,sn=G,fn=cn,ln=y,vn=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},dn=function(n){return this.__data__.get(n)},hn=function(n){return this.__data__.has(n)};function bn(n){var t=this.__data__=new ln(n);this.size=t.size}bn.prototype.clear=function(){this.__data__=new g,this.size=0},bn.prototype.delete=vn,bn.prototype.get=dn,bn.prototype.has=hn,bn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof an){var e=r.__data__;if(!sn||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new fn(e)}return r.set(n,t),this.size=r.size,this};var pn,yn,gn,jn,On,Sn=bn,mn=$,_n=function(){try{var n=mn(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),wn=_n,En=function(n,t,r){"__proto__"==t&&wn?wn(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},An=En,Dn=c,Tn=function(n,t,r){(void 0!==r&&!Dn(n[t],r)||void 0===r&&!(t in n))&&An(n,t,r)},Ln=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},Bn={exports:{}};On=(jn=(gn=(yn=(pn=Bn.exports)&&!pn.nodeType&&pn)&&Bn&&!Bn.nodeType&&Bn)&&gn.exports===yn?S.Buffer:void 0)?jn.allocUnsafe:void 0,Bn.exports=function(n,t){if(t)return n.slice();var r=n.length,e=On?On(r):new n.constructor(r);return n.copy(e),e};var Cn,Pn,In=S.Uint8Array,Mn=B,Un=Object.create,xn=function(){function n(){}return function(t){if(!Mn(t))return{};if(Un)return Un(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),Nn=(Cn=Object.getPrototypeOf,Pn=Object,function(n){return Cn(Pn(n))}),Rn=Object.prototype,zn=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Rn)},Fn=xn,kn=Nn,$n=zn,Gn=function(n){return null!=n&&"object"==typeof n},Hn=L,Kn=Gn,Yn=function(n){return Kn(n)&&"[object Arguments]"==Hn(n)},Vn=Gn,qn=Object.prototype,Jn=qn.hasOwnProperty,Qn=qn.propertyIsEnumerable,Wn=Yn(function(){return arguments}())?Yn:function(n){return Vn(n)&&Jn.call(n,"callee")&&!Qn.call(n,"callee")},Xn=Array.isArray,Zn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},nt=I,tt=Zn,rt=function(n){return null!=n&&tt(n.length)&&!nt(n)},et=rt,ot=Gn,it={exports:{}},ut=function(){return!1};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&it&&!it.nodeType&&it,o=e&&e.exports===r?S.Buffer:void 0;it.exports=(o?o.isBuffer:void 0)||ut}(0,it.exports);var ct=L,at=Nn,st=Gn,ft=Function.prototype.toString,lt=Object.prototype.hasOwnProperty,vt=ft.call(Object),dt=L,ht=Zn,bt=Gn,pt={};pt["[object Float32Array]"]=pt["[object Float64Array]"]=pt["[object Int8Array]"]=pt["[object Int16Array]"]=pt["[object Int32Array]"]=pt["[object Uint8Array]"]=pt["[object Uint8ClampedArray]"]=pt["[object Uint16Array]"]=pt["[object Uint32Array]"]=!0,pt["[object Arguments]"]=pt["[object Array]"]=pt["[object ArrayBuffer]"]=pt["[object Boolean]"]=pt["[object DataView]"]=pt["[object Date]"]=pt["[object Error]"]=pt["[object Function]"]=pt["[object Map]"]=pt["[object Number]"]=pt["[object Object]"]=pt["[object RegExp]"]=pt["[object Set]"]=pt["[object String]"]=pt["[object WeakMap]"]=!1;var yt={exports:{}};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&j.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i}(yt,yt.exports);var gt,jt=function(n){return bt(n)&&ht(n.length)&&!!pt[dt(n)]},Ot=yt.exports,St=Ot&&Ot.isTypedArray,mt=St?function(n){return function(t){return n(t)}}(St):jt,_t=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},wt=En,Et=c,At=Object.prototype.hasOwnProperty,Dt=function(n,t,r){var e=n[t];At.call(n,t)&&Et(e,r)&&(void 0!==r||t in n)||wt(n,t,r)},Tt=En,Lt=/^(?:0|[1-9]\d*)$/,Bt=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Lt.test(n))&&n>-1&&n%1==0&&n<t},Ct=Wn,Pt=Xn,It=it.exports,Mt=Bt,Ut=mt,xt=Object.prototype.hasOwnProperty,Nt=B,Rt=zn,zt=Object.prototype.hasOwnProperty,Ft=function(n,t){var r=Pt(n),e=!r&&Ct(n),o=!r&&!e&&It(n),i=!r&&!e&&!o&&Ut(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!xt.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Mt(s,a))||c.push(s);return c},kt=function(n){if(!Nt(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=Rt(n),r=[];for(var e in n)("constructor"!=e||!t&&zt.call(n,e))&&r.push(e);return r},$t=rt,Gt=function(n){return $t(n)?Ft(n,!0):kt(n)},Ht=Gt,Kt=Tn,Yt=Bn.exports,Vt=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new In(e).set(new In(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},qt=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t},Jt=function(n){return"function"!=typeof n.constructor||$n(n)?{}:Fn(kn(n))},Qt=Wn,Wt=Xn,Xt=function(n){return ot(n)&&et(n)},Zt=it.exports,nr=I,tr=B,rr=function(n){if(!st(n)||"[object Object]"!=ct(n))return!1;var t=at(n);if(null===t)return!0;var r=lt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==vt},er=mt,or=_t,ir=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?Tt(r,c,a):Dt(r,c,a)}return r}(n,Ht(n))},ur=Sn,cr=Tn,ar=Ln,sr=B,fr=Gt,lr=_t,vr=function(n){return n},dr=Math.max,hr=_n,br=Date.now,pr=function(n){var t=0,r=0;return function(){var e=br(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(hr?function(n,t){return hr(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:vr),yr=vr,gr=function(n,t,r){return t=dr(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=dr(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}},jr=pr,Or=c,Sr=rt,mr=Bt,_r=B,wr=function n(t,r,e,o,i){t!==r&&ar(r,(function(u,c){if(i||(i=new ur),sr(u))!function(n,t,r,e,o,i,u){var c=or(n,r),a=or(t,r),s=u.get(a);if(s)Kt(n,r,s);else{var f=i?i(c,a,r+"",n,t,u):void 0,l=void 0===f;if(l){var v=Wt(a),d=!v&&Zt(a),h=!v&&!d&&er(a);f=a,v||d||h?Wt(c)?f=c:Xt(c)?f=qt(c):d?(l=!1,f=Yt(a,!0)):h?(l=!1,f=Vt(a,!0)):f=[]:rr(a)||Qt(a)?(f=c,Qt(c)?f=ir(c):tr(c)&&!nr(c)||(f=Jt(a))):l=!1}l&&(u.set(a,f),o(f,a,e,i,u),u.delete(a)),Kt(n,r,f)}}(t,r,c,e,n,o,i);else{var a=o?o(lr(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),cr(t,c,a)}}),fr)},Er=(gt=function(n,t,r){wr(n,t,r)},function(n,t){return jr(gr(n,t,yr),n+"")}((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=gt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!_r(r))return!1;var e=typeof t;return!!("number"==e?Sr(r)&&mr(t,r.length):"string"==e&&t in r)&&Or(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var u=t[r];u&&gt(n,u,r)}return n})));const Ar=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Er.apply(null,e)},{reset:Dr,state:Tr}=i((()=>({appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],externalPaymentMethods:[],externalServiceTokens:[],mode:"TEST",orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",disabledCountries:[],helloSettings:{anchorElementSelector:"",cartUrlPattern:"",countryOverrideBehavior:"URL_PARAM",currencyBehavior:"ENABLED",currencyElementSelector:".money",desktopLocation:"BOTTOM_RIGHT",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED",showForCountries:"ONLY_SHIPPABLE",visibilityStatus:"ENABLED"},loadedConfig:!1,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:"",zonosMode:null})));let Lr=null;const Br=n=>"SYSTEM"===n?window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT":n,Cr=({overrideSettings:n,zonosSettings:t})=>{var r,e,o,i,u;Dr(),t&&(Lr=t);const c=Ar(Tr.appearance,(null==Lr?void 0:Lr.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,null==n?void 0:n.appearance);"SYSTEM"===c.theme&&(c.theme=Br(c.theme)),Tr.disabledCountries=(null===(r=null==t?void 0:t.checkoutSettings)||void 0===r?void 0:r.disabledCountries)||["US"],Tr.appearance=c,Tr.checkoutSettings=Ar(Tr.checkoutSettings,(null==Lr?void 0:Lr.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,null==n?void 0:n.checkoutSettings),Tr.helloSettings=Ar(Tr.helloSettings,(null==Lr?void 0:Lr.helloSettings)||(null==t?void 0:t.helloSettings)||null,null==n?void 0:n.helloSettings),Tr.loadedConfig=!0,Tr.organizationId=(null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.id)||"",Tr.organizationName=(null===(o=null==t?void 0:t.organization)||void 0===o?void 0:o.name)||"",Tr.storeId=(null===(u=null===(i=null==t?void 0:t.organization)||void 0===i?void 0:i.references)||void 0===u?void 0:u.storeId)||null,Tr.currencyConverter=null==n?void 0:n.currencyConverter,Tr.onCountryChange=null==n?void 0:n.onCountryChange,Tr.overrideCurrencyFormat=null==n?void 0:n.overrideCurrencyFormat},Pr=()=>Tr.appearance.fontFamily||"Inter";export{S as _,u as a,Cr as b,i as c,Pr as d,L as e,B as f,Br as g,Gn as i,Ar as m,Tr as z}
@@ -1 +1 @@
1
- System.register(["./p-fd061229.system.js","./p-8e8defdc.system.js","./p-23e7c655.system.js","./p-e97793ce.system.js","./p-4a107b6f.system.js","./p-29814fd7.system.js"],(function(o){"use strict";var e,t,n,s,r,a,i,d,l,h;return{setters:[function(o){e=o.r;t=o.h;n=o.H;s=o.d},function(o){r=o.z;a=o.d},function(o){i=o.c},function(o){d=o.g},function(o){l=o.i},function(o){h=o.i}],execute:function(){var u=function(o){var e=o||r.appearance.colorSecondary;var t=e&&l(e)?"var(--zonos-elements-".concat(e,")"):e;var n=t&&h(t)?"DARK":"LIGHT";return n};var c=function(o){return h(window.getComputedStyle(o).getPropertyValue("--zonos-elements-gray-0"))};var b=function(o){return Object.entries(o).reduce((function(o,e){var t=e[0],n=e[1];if(n){o[t]=n}return o}),{})};var g=":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;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--color, var(--zonos-elements-gray-1200));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--zonos-elements-gray-0));color:var(--color, var(--zonos-elements-gray-1200));outline:1px solid var(--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--zonos-elements-gray-900)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--zonos-elements-gray-800)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:hover{background:var(--zonos-elements-gray-100)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:active{background:var(--zonos-elements-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";var v=g;var f=o("zonos_button",function(){function o(o){var t=this;e(this,o);this.handleSlotChange=function(){t.hasContent=true};this.getColorVarProperty=function(o){return o.replace("var(","").replace(")","")};this.getButtonStyle=function(){var o=t.variant||"standard";var e=t.buttonColor&&l(t.buttonColor)?"var(--zonos-elements-".concat(t.buttonColor,")"):t.buttonColor;var n=window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(e||""))||e||"";var s=!c(t.ele);var a=!h(n);var i=s&&!a||!s&&a;switch(o){case"subtle":{return{color:e,useDarkHoverSubtle:i}}default:{var d=t.backgroundColor&&l(t.backgroundColor)?"var(--zonos-elements-".concat(t.backgroundColor,")"):t.backgroundColor;var u=d||r.appearance.colorSecondary;var b=u&&l(t.getColorVarProperty(u))?window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(u)):u;var g=t.variant!=="subtle"&&b&&h(b)?"white":e;return{backgroundColor:u,color:g,spinnerColor:b&&h(b)?"white":"black",useDarkHoverSubtle:i}}}};this.buttonColor=undefined;this.backgroundColor=undefined;this.borderStyle=undefined;this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.withBoxShadow=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.justifyContent="center";this.theme=undefined;this.hasIcon=!!this.icon;this.hasContent=false}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler()};o.prototype.render=function(){var o=this.getButtonStyle(),e=o.backgroundColor,s=o.color,r=o.spinnerColor,l=o.useDarkHoverSubtle;var h=this.loading||this.isDisabled;var c=this.variant||"standard";var g=c==="standard"?u(e):undefined;var v=d({overrideBorderStyle:this.borderStyle});return t(n,{key:"51f49811674e7ef1efe49389afc3fc70e4f5a46c",class:i(["zonos--elements"]),"data-theme":this.theme||g,disabled:h,style:b({"--background-color":e,"--border-radius":v,"--color":s,"--font-family":a()})},t("button",{key:"f11f4f6877a0947df57dbe5baf658b69d91fff4d",class:i([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",this.withBoxShadow&&"with-box-shadow",l&&"dark-hover-subtle",c,this.size,e&&c==="standard"&&"override-background"]),disabled:h,style:{justifyContent:this.justifyContent}},this.loading&&t("div",{key:"35f474efa80cde690afd876863d25f3b46198ecf",class:"zonos--spinner-wrapper"},t("zonos-spinner",{key:"7476edf05b7d85d5f2f6900a7ad97c49d2216dd8",size:16,spinnerColor:r})),!this.loading&&!this.iconRight&&this.icon,t("slot",{key:"a4e8bfc0aef84561416ddc5f38602ed346db6f4b",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());f.style=v;var m=":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var k=m;var p=o("zonos_icon",function(){function o(o){e(this,o);this.autoHeight=false;this.iconColor="gray-1200";this.content=undefined;this.size=24}o.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var o=l(this.iconColor)?"var(--zonos-elements-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return t(n,{class:"zonos--elements",style:{"--color":o,"--font-family":a(),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());p.style=k;var z=":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{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--zonos-elements-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--zonos-elements-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--zonos-elements-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--zonos-elements-spinner-track-black)}:host(.white) circle{stroke:var(--zonos-elements-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--zonos-elements-spinner-track-white)}:host(.info) circle{stroke:var(--zonos-elements-blue-600)}:host(.info) circle.track{stroke:var(--zonos-elements-blue-100)}:host(.success) circle{stroke:var(--zonos-elements-green-600)}:host(.success) circle.track{stroke:var(--zonos-elements-green-100)}:host(.danger) circle{stroke:var(--zonos-elements-red-600)}:host(.danger) circle.track{stroke:var(--zonos-elements-red-100)}:host(.warning) circle{stroke:var(--zonos-elements-orange-600)}:host(.warning) circle.track{stroke:var(--zonos-elements-orange-100)}";var w=z;var y=o("zonos_spinner",function(){function o(o){e(this,o);this.size=32;this.spinnerColor=undefined}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return t(n,{class:i(["zonos--elements",this.spinnerColor]),style:{"--size":"".concat(this.size,"px")}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());y.style=w}}}));
1
+ System.register(["./p-fd061229.system.js","./p-b74ff880.system.js","./p-23e7c655.system.js","./p-455b7545.system.js","./p-4a107b6f.system.js","./p-91462d96.system.js"],(function(o){"use strict";var e,t,n,s,r,a,i,d,l,h;return{setters:[function(o){e=o.r;t=o.h;n=o.H;s=o.d},function(o){r=o.z;a=o.d},function(o){i=o.c},function(o){d=o.g},function(o){l=o.i},function(o){h=o.i}],execute:function(){var u=function(o){var e=o||r.appearance.colorSecondary;var t=e&&l(e)?"var(--zonos-elements-".concat(e,")"):e;var n=t&&h(t)?"DARK":"LIGHT";return n};var c=function(o){return h(window.getComputedStyle(o).getPropertyValue("--zonos-elements-gray-0"))};var b=function(o){return Object.entries(o).reduce((function(o,e){var t=e[0],n=e[1];if(n){o[t]=n}return o}),{})};var g=":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;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--color, var(--zonos-elements-gray-1200));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--zonos-elements-gray-0));color:var(--color, var(--zonos-elements-gray-1200));outline:1px solid var(--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--zonos-elements-gray-900)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--zonos-elements-gray-800)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:hover{background:var(--zonos-elements-gray-100)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:active{background:var(--zonos-elements-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";var v=g;var f=o("zonos_button",function(){function o(o){var t=this;e(this,o);this.handleSlotChange=function(){t.hasContent=true};this.getColorVarProperty=function(o){return o.replace("var(","").replace(")","")};this.getButtonStyle=function(){var o=t.variant||"standard";var e=t.buttonColor&&l(t.buttonColor)?"var(--zonos-elements-".concat(t.buttonColor,")"):t.buttonColor;var n=window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(e||""))||e||"";var s=!c(t.ele);var a=!h(n);var i=s&&!a||!s&&a;switch(o){case"subtle":{return{color:e,useDarkHoverSubtle:i}}default:{var d=t.backgroundColor&&l(t.backgroundColor)?"var(--zonos-elements-".concat(t.backgroundColor,")"):t.backgroundColor;var u=d||r.appearance.colorSecondary;var b=u&&l(t.getColorVarProperty(u))?window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(u)):u;var g=t.variant!=="subtle"&&b&&h(b)?"white":e;return{backgroundColor:u,color:g,spinnerColor:b&&h(b)?"white":"black",useDarkHoverSubtle:i}}}};this.buttonColor=undefined;this.backgroundColor=undefined;this.borderStyle=undefined;this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.withBoxShadow=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.justifyContent="center";this.theme=undefined;this.hasIcon=!!this.icon;this.hasContent=false}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler()};o.prototype.render=function(){var o=this.getButtonStyle(),e=o.backgroundColor,s=o.color,r=o.spinnerColor,l=o.useDarkHoverSubtle;var h=this.loading||this.isDisabled;var c=this.variant||"standard";var g=c==="standard"?u(e):undefined;var v=d({overrideBorderStyle:this.borderStyle});return t(n,{key:"51f49811674e7ef1efe49389afc3fc70e4f5a46c",class:i(["zonos--elements"]),"data-theme":this.theme||g,disabled:h,style:b({"--background-color":e,"--border-radius":v,"--color":s,"--font-family":a()})},t("button",{key:"f11f4f6877a0947df57dbe5baf658b69d91fff4d",class:i([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",this.withBoxShadow&&"with-box-shadow",l&&"dark-hover-subtle",c,this.size,e&&c==="standard"&&"override-background"]),disabled:h,style:{justifyContent:this.justifyContent}},this.loading&&t("div",{key:"35f474efa80cde690afd876863d25f3b46198ecf",class:"zonos--spinner-wrapper"},t("zonos-spinner",{key:"7476edf05b7d85d5f2f6900a7ad97c49d2216dd8",size:16,spinnerColor:r})),!this.loading&&!this.iconRight&&this.icon,t("slot",{key:"a4e8bfc0aef84561416ddc5f38602ed346db6f4b",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());f.style=v;var m=":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var k=m;var p=o("zonos_icon",function(){function o(o){e(this,o);this.autoHeight=false;this.iconColor="gray-1200";this.content=undefined;this.size=24}o.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var o=l(this.iconColor)?"var(--zonos-elements-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return t(n,{class:"zonos--elements",style:{"--color":o,"--font-family":a(),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());p.style=k;var z=":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{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--zonos-elements-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--zonos-elements-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--zonos-elements-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--zonos-elements-spinner-track-black)}:host(.white) circle{stroke:var(--zonos-elements-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--zonos-elements-spinner-track-white)}:host(.info) circle{stroke:var(--zonos-elements-blue-600)}:host(.info) circle.track{stroke:var(--zonos-elements-blue-100)}:host(.success) circle{stroke:var(--zonos-elements-green-600)}:host(.success) circle.track{stroke:var(--zonos-elements-green-100)}:host(.danger) circle{stroke:var(--zonos-elements-red-600)}:host(.danger) circle.track{stroke:var(--zonos-elements-red-100)}:host(.warning) circle{stroke:var(--zonos-elements-orange-600)}:host(.warning) circle.track{stroke:var(--zonos-elements-orange-100)}";var w=z;var y=o("zonos_spinner",function(){function o(o){e(this,o);this.size=32;this.spinnerColor=undefined}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return t(n,{class:i(["zonos--elements",this.spinnerColor]),style:{"--size":"".concat(this.size,"px")}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());y.style=w}}}));
@@ -0,0 +1 @@
1
+ import{z as o}from"./p-1086aac3.js";const p=p=>{const n=(null==p?void 0:p.customRoundRadius)||"10px",r=null==p?void 0:p.overrideBorderStyle;return r?"SHARP"===r?"0px":n:"SHARP"===o.appearance.style?"0px":n};export{p as g}
@@ -0,0 +1 @@
1
+ import{r as o,c as e,h as t,F as s,H as i}from"./p-5b7da777.js";import{t as n,l as a,E as l}from"./p-fe943837.js";import{z as r}from"./p-1086aac3.js";import{c as d}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as c}from"./p-5883217a.js";import"./p-fb59c3c3.js";import"./p-a1b755bf.js";import"./p-1ca5696d.js";const f=`${n("The low-value GST law passed July 1st, 2018 applies to this retailer.")} ${(({href:o,text:e})=>`<zonos-link href="${o}" target="_blank" rel="noopener noreferrer">${e}</zonos-link>`)({href:"https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst",text:n("Learn more.")})}`,m=class{constructor(t){o(this,t),this.closeDialog=e(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(r.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.hasTaxId=()=>{var o;return null===(o=a.countryLandedCost)||void 0===o?void 0:o.hasTaxId},this.hasInclusivePrices=()=>{var o;return"ENABLED"===(null===(o=a.inclusivePricing)||void 0===o?void 0:o.status)},this.isNoThresholdCountry=o=>!(!o||!this.hasTaxId())&&["AU"].includes(o),this.getDutyMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.dutyDeminimus)?l({amount:o.dutyDeminimus}):null;return e&&!this.isNoThresholdCountry(null==o?void 0:o.countryCode)?n("Spend [threshold] duty free.",{threshold:e}):n("Duties will apply to all orders.")},this.getTaxMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.vatTaxDeminimus)?l({amount:o.vatTaxDeminimus}):null;return e&&!this.isNoThresholdCountry(null==o?void 0:o.countryCode)?n("Spend [threshold] tax free.",{threshold:e}):n("Taxes will apply to all orders.")},this.getUkDutyTaxMessage=o=>o.allowLowValueOrders?null:[n("Orders to [countryName] must be over [threshold] to ship.",{countryName:"United Kingdom",threshold:l({amount:o.dutyDeminimus})})],this.getAustraliaDutyTaxMessage=o=>this.hasInclusivePrices()?[f]:[n("Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.",{percentage:100*o.vatTaxRate+"%"}),f],this.getNewZealandDutyTaxMessge=o=>this.hasInclusivePrices()?null:[n("[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.",{percentage:100*o.vatTaxRate+"%",threshold:l({amount:o.vatTaxDeminimus})})],this.getInclusivePriceMessage=()=>{const o=a.inclusivePricing;return"ENABLED"!==(null==o?void 0:o.status)?null:"INCLUDED"===o.duty.status&&"INCLUDED"===o.tax.status&&"INCLUDED"===o.fee.status?n("Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions."):"INCLUDED"===o.duty.status&&"INCLUDED"===o.tax.status?n("Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions."):"INCLUDED"===o.duty.status&&"INCLUDED"===o.fee.status?n("Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions."):"INCLUDED"===o.tax.status&&"INCLUDED"===o.fee.status?n("Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions."):"INCLUDED"===o.duty.status?n("Product prices already include duties. No additional duties will be added at checkout, with rare exceptions."):"INCLUDED"===o.tax.status?n("Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions."):"INCLUDED"===o.fee.status?n("Product prices already include fees. No additional fees will be added at checkout, with rare exceptions."):null},this.getAdditionalDutyTaxMessage=()=>{if(!a.countryLandedCost)return null;if(!this.hasTaxId())return null;switch(a.countryLandedCost.countryCode){case"GB":return this.getUkDutyTaxMessage(a.countryLandedCost);case"AU":return this.getAustraliaDutyTaxMessage(a.countryLandedCost);case"NZ":return this.getNewZealandDutyTaxMessge(a.countryLandedCost);default:return null}},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{selectedCountryCode:e}=a,l=this.hasInclusivePrices(),f=this.getInclusivePriceMessage(),m=this.getDutyMessage(),g=this.getTaxMessage(),u=this.getAdditionalDutyTaxMessage(),p=this.animateFromLeftOverride||this.dialogRef&&c(this.dialogRef),b=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:w}=a,x=n("Welcome to [storeName]",{storeName:r.organizationName}),C=(null===(o=w.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||n("Know about duties and taxes before you buy. Shop with confidence!"),z=h(C),v=this.getCurrentPageEnum(),y=w.filter((o=>o.pageName===v));return t(i,{key:"df052224c778ebfceeef7c827fa3da0e8a2f3dc9",class:"zonos--elements"},t("div",{key:"0ecff6a07d24a72fb4f200cce82ab09e40b48baf",class:d(["zonos--hello-dialog",p&&"zonos--hello-dialog-animate-from-left",b&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),inert:!this.isOpen,ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&t("div",{key:"b2939d49930c8a34288a884582eb849a492080ff"},t("div",{key:"f1a22291d7865d57d37cbcd3c8f70c4aea57ed39",class:"zonos--hello-dialog-content"},t("zonos-button",{key:"ee3794826efc9fed856f0a320cf6428a428b4ea4",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),t("zonos-v-stack",{key:"3d2ff0b68268c97e385eb3cf7fcc34454d2ed3b5",spacing:24},t("zonos-country-flag",{key:"e09645ac583e59354d11b3c194d4d3f6d4780c55",class:"zonos--hello-country-flag",countryCode:e}),t("zonos-v-stack",{key:"42017a698c1678b90c8c7bbece5d623d0800e37b",class:"zonos--hello-dialog-header",spacing:4},t("zonos-text",{key:"ac30b7683dcc65773159832eadad8542d1d1bda8",type:"boldSubheader"},x),t("zonos-text",{key:"58cc0e8c51774c339b0fc735e4e98917ed614c8a",innerHTML:z,textColor:"gray-800"})),t("zonos-v-stack",{key:"0b3a3b2bf981ed72654506cc31f07edf6268b0a4",spacing:8},this.restrictedItems.map((o=>{var e;return o&&t("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(e=o.itemRestrictions)||void 0===e?void 0:e.map((o=>t("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),t("zonos-card",{key:"196a593b167fc979bf0a2bef7f266ad3778f6ca0",spacing:"12px"},t("zonos-v-stack",{key:"94925c753ddfdd1a659580f7f78f8d6626cdcdaa",spacing:12},l?t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.04505 6.64123C2.19006 8.49622 2.19006 11.5038 4.04505 13.3587L11.2929 20.6066C11.6834 20.9971 12.3166 20.9971 12.7071 20.6066L19.955 13.3587C21.8099 11.5038 21.8099 8.49622 19.955 6.64123L17.8336 4.51991C17.4431 4.12939 16.8099 4.12939 16.4194 4.51991L13.5241 7.41527C12.5864 6.86157 11.4136 6.86157 10.4759 7.41527L7.58059 4.51991C7.19006 4.12939 6.5569 4.12939 6.16637 4.51991L4.04505 6.64123ZM5.10571 12.2981C3.83651 11.0289 3.83651 8.9711 5.10571 7.70189L6.87348 5.93413L9.70191 8.76255C10.1056 9.16622 10.6991 9.12 11.0641 8.82749C11.6091 8.39083 12.3909 8.39082 12.9359 8.82749C13.301 9.12 13.8944 9.16622 14.2981 8.76255L17.1265 5.93413L18.8943 7.70189C20.1635 8.9711 20.1635 11.0289 18.8943 12.2981L12 19.1924L5.10571 12.2981Z"\n fill="#0F1015" />\n <path\n d="M10.0333 3.28075C9.63566 3.39679 9.40739 3.8132 9.52343 4.21083C9.63947 4.60846 10.0559 4.83673 10.4535 4.72069C11.4618 4.42644 12.5383 4.42644 13.5466 4.72069C13.9442 4.83673 14.3606 4.60846 14.4766 4.21083C14.5927 3.81321 14.3644 3.39679 13.9668 3.28075C12.6841 2.90642 11.316 2.90642 10.0333 3.28075Z"\n fill="#0F1015" />\n</svg>'}),t("zonos-text",null,f)):t(s,null,t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",null,m)),t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",null,g))),null==u?void 0:u.map((o=>t("div",{class:"zonos--flex-message"},t("zonos-icon",{"aria-label":"Additional information for buying goods from selected country",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{innerHTML:o})))))),y.map((o=>t("zonos-custom-message",{icon:'<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',message:o.message})))))),t("zonos-hello-dialog-footer",{key:"540006185ce1d28d610052801dcf9281773c5504",appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&t("div",{key:"886c371fdfa8c9c15188ef9d6cbb637162fb0d27"},t("zonos-country-select",{key:"1365bee67831b64637e5c481f239c557f2649694",handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&t("div",{key:"44929f0c23627970b1706f6e8c76e51022201379"},t("zonos-language-select",{key:"86b9f68c84da77f9e1af51dcb7d512eb6b289a27",handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};m.style=":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--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{m as zonos_hello_dialog}