@zonos/elements 1.3.42 → 1.3.43

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 (133) hide show
  1. package/dist/cjs/{cart-99a1ed87.js → cart-558e4d21.js} +405 -45
  2. package/dist/cjs/index.cjs.js +6 -6
  3. package/dist/cjs/{paypal-5509a76f.js → paypal-276d8f92.js} +1 -1
  4. package/dist/cjs/{sendErrorLog-21996939.js → sendErrorLog-f914a34b.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +3 -3
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +43 -9
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +42 -8
  16. package/dist/collection/components/store/hello/localization.js +5 -5
  17. package/dist/collection/components/store/translationStore/strings.arabic.js +20 -2
  18. package/dist/collection/components/store/translationStore/strings.base.js +20 -2
  19. package/dist/collection/components/store/translationStore/strings.chinese.js +20 -2
  20. package/dist/collection/components/store/translationStore/strings.danish.js +20 -2
  21. package/dist/collection/components/store/translationStore/strings.dutch.js +20 -2
  22. package/dist/collection/components/store/translationStore/strings.french.js +20 -2
  23. package/dist/collection/components/store/translationStore/strings.german.js +20 -2
  24. package/dist/collection/components/store/translationStore/strings.hebrew.js +20 -2
  25. package/dist/collection/components/store/translationStore/strings.indonesian.js +20 -2
  26. package/dist/collection/components/store/translationStore/strings.italian.js +20 -2
  27. package/dist/collection/components/store/translationStore/strings.japanese.js +20 -2
  28. package/dist/collection/components/store/translationStore/strings.korean.js +20 -2
  29. package/dist/collection/components/store/translationStore/strings.norwegian.js +20 -2
  30. package/dist/collection/components/store/translationStore/strings.polish.js +20 -2
  31. package/dist/collection/components/store/translationStore/strings.portuguese.js +20 -2
  32. package/dist/collection/components/store/translationStore/strings.russian.js +20 -2
  33. package/dist/collection/components/store/translationStore/strings.spanish.js +20 -2
  34. package/dist/collection/components/store/translationStore/strings.swedish.js +20 -2
  35. package/dist/collection/components/store/translationStore/strings.turkish.js +20 -2
  36. package/dist/collection/components/store/translationStore/strings.vietnamese.js +20 -2
  37. package/dist/collection/types/generated/graphql.customer.types.js +19 -10
  38. package/dist/esm/{cart-bc217300.js → cart-c62e41b5.js} +405 -45
  39. package/dist/esm/index.js +6 -6
  40. package/dist/esm/{paypal-fa96e7c3.js → paypal-28d21865.js} +1 -1
  41. package/dist/esm/{sendErrorLog-c40b553a.js → sendErrorLog-af1cd4bd.js} +1 -1
  42. package/dist/esm/zonos-address_8.entry.js +1 -1
  43. package/dist/esm/zonos-cart-items_12.entry.js +3 -3
  44. package/dist/esm/zonos-checkout.entry.js +3 -3
  45. package/dist/esm/zonos-controller.entry.js +1 -1
  46. package/dist/esm/zonos-country-flag.entry.js +1 -1
  47. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  48. package/dist/esm/zonos-hello-dialog.entry.js +43 -9
  49. package/dist/esm/zonos-hello.entry.js +1 -1
  50. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  51. package/dist/esm/zonos-notification_3.entry.js +2 -2
  52. package/dist/esm-es5/cart-c62e41b5.js +1 -0
  53. package/dist/esm-es5/index.js +1 -1
  54. package/dist/esm-es5/{paypal-fa96e7c3.js → paypal-28d21865.js} +1 -1
  55. package/dist/esm-es5/{sendErrorLog-c40b553a.js → sendErrorLog-af1cd4bd.js} +1 -1
  56. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  57. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  58. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  59. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  60. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  61. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  62. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  63. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  64. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  65. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  66. package/dist/scripts/index.js +1 -1
  67. package/dist/scripts/loadZonos.js +1 -1
  68. package/dist/scripts/zonos.js +1 -1
  69. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -0
  70. package/dist/types/components/store/hello/localization.d.ts +2 -2
  71. package/dist/types/components/store/translationStore/strings.arabic.d.ts +19 -1
  72. package/dist/types/components/store/translationStore/strings.base.d.ts +19 -1
  73. package/dist/types/components/store/translationStore/strings.chinese.d.ts +19 -1
  74. package/dist/types/components/store/translationStore/strings.danish.d.ts +19 -1
  75. package/dist/types/components/store/translationStore/strings.dutch.d.ts +19 -1
  76. package/dist/types/components/store/translationStore/strings.french.d.ts +19 -1
  77. package/dist/types/components/store/translationStore/strings.german.d.ts +19 -1
  78. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +19 -1
  79. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +19 -1
  80. package/dist/types/components/store/translationStore/strings.italian.d.ts +19 -1
  81. package/dist/types/components/store/translationStore/strings.japanese.d.ts +19 -1
  82. package/dist/types/components/store/translationStore/strings.korean.d.ts +19 -1
  83. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +19 -1
  84. package/dist/types/components/store/translationStore/strings.polish.d.ts +19 -1
  85. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +19 -1
  86. package/dist/types/components/store/translationStore/strings.russian.d.ts +19 -1
  87. package/dist/types/components/store/translationStore/strings.spanish.d.ts +19 -1
  88. package/dist/types/components/store/translationStore/strings.swedish.d.ts +19 -1
  89. package/dist/types/components/store/translationStore/strings.turkish.d.ts +19 -1
  90. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +19 -1
  91. package/dist/types/components/store/translationStore.d.ts +1 -1
  92. package/dist/types/components/utils/api/getInclusivePricing.d.ts +2 -4
  93. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  94. package/dist/types/types/generated/graphql.customer.types.d.ts +45 -13
  95. package/dist/types/types/generated/graphql.customer.types.ts +47 -18
  96. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  97. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  98. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  99. package/dist/zonos-elements/index.esm.js +1 -1
  100. package/dist/zonos-elements/{p-211e3529.system.entry.js → p-01961795.system.entry.js} +1 -1
  101. package/dist/zonos-elements/p-0e9ca72b.system.js +1 -0
  102. package/dist/zonos-elements/{p-668fb530.system.js → p-0edd8829.system.js} +1 -1
  103. package/dist/zonos-elements/{p-16dd23e1.entry.js → p-21b38377.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-5230520c.entry.js → p-2a655e55.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-73c56565.system.entry.js → p-3754f86b.system.entry.js} +1 -1
  106. package/dist/zonos-elements/{p-d27489bb.system.entry.js → p-387bc4f0.system.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-7338ea95.system.entry.js → p-437fd543.system.entry.js} +1 -1
  108. package/dist/zonos-elements/{p-7d67bbb8.system.entry.js → p-4d5cafb1.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-7a902328.entry.js → p-4fb3cbad.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-2cc469c3.entry.js → p-622cd68a.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-23fd4673.entry.js → p-695fdbca.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-3b1ea7c8.system.entry.js → p-6a3e8101.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-fc2676e3.entry.js → p-71815183.entry.js} +1 -1
  114. package/dist/zonos-elements/p-75a6d31d.entry.js +1 -0
  115. package/dist/zonos-elements/{p-f59666e6.system.entry.js → p-77de5f08.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-a8a94872.system.js → p-7ab0cfbf.system.js} +1 -1
  117. package/dist/zonos-elements/{p-558486eb.entry.js → p-8855805d.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-35679ed2.system.entry.js → p-89c9cd2d.system.entry.js} +1 -1
  119. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  120. package/dist/zonos-elements/{p-1041cbd0.js → p-c887765b.js} +1 -1
  121. package/dist/zonos-elements/{p-a9ae78e3.entry.js → p-ceb9be2b.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-c0aec0ca.system.entry.js → p-d027eef2.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-f97ffbfb.js → p-dba42d88.js} +1 -1
  124. package/dist/zonos-elements/p-e68503df.js +1 -0
  125. package/dist/zonos-elements/{p-a0581551.system.js → p-e88d33a6.system.js} +1 -1
  126. package/dist/zonos-elements/{p-23748211.system.entry.js → p-eadd9525.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-29ed14b8.entry.js → p-f97d6d55.entry.js} +1 -1
  128. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  129. package/package.json +9 -2
  130. package/dist/esm-es5/cart-bc217300.js +0 -1
  131. package/dist/zonos-elements/p-68bb8de4.entry.js +0 -1
  132. package/dist/zonos-elements/p-90f517f5.js +0 -1
  133. package/dist/zonos-elements/p-98a0fda1.system.js +0 -1
@@ -398,9 +398,11 @@ export declare const classificationCalculateOrigin: {
398
398
  };
399
399
  export type ClassificationCalculateOrigin = (typeof classificationCalculateOrigin)[keyof typeof classificationCalculateOrigin];
400
400
  export declare const classificationCalculateSource: {
401
+ readonly Bulk: "BULK";
401
402
  readonly External: "EXTERNAL";
402
403
  readonly Internal: "INTERNAL";
403
404
  readonly Legacy: "LEGACY";
405
+ readonly Single: "SINGLE";
404
406
  };
405
407
  export type ClassificationCalculateSource = (typeof classificationCalculateSource)[keyof typeof classificationCalculateSource];
406
408
  export declare const classificationRequestField: {
@@ -453,12 +455,6 @@ export declare const collectUploadStatus: {
453
455
  readonly SucceededWithErrors: "SUCCEEDED_WITH_ERRORS";
454
456
  };
455
457
  export type CollectUploadStatus = (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
456
- export declare const commercialInvoiceImageCarrier: {
457
- readonly Dhl: "DHL";
458
- readonly Fedex: "FEDEX";
459
- readonly Ups: "UPS";
460
- };
461
- export type CommercialInvoiceImageCarrier = (typeof commercialInvoiceImageCarrier)[keyof typeof commercialInvoiceImageCarrier];
462
458
  export declare const confidenceScoreDisplayStatus: {
463
459
  readonly Disabled: "DISABLED";
464
460
  readonly Enabled: "ENABLED";
@@ -1281,6 +1277,11 @@ export declare const dutyTaxFeeConfiguration: {
1281
1277
  readonly IncludeTax: "INCLUDE_TAX";
1282
1278
  };
1283
1279
  export type DutyTaxFeeConfiguration = (typeof dutyTaxFeeConfiguration)[keyof typeof dutyTaxFeeConfiguration];
1280
+ export declare const dynamicPackagingStatus: {
1281
+ readonly Disabled: "DISABLED";
1282
+ readonly Enabled: "ENABLED";
1283
+ };
1284
+ export type DynamicPackagingStatus = (typeof dynamicPackagingStatus)[keyof typeof dynamicPackagingStatus];
1284
1285
  export declare const elementsUiStyle: {
1285
1286
  readonly Rounded: "ROUNDED";
1286
1287
  readonly Sharp: "SHARP";
@@ -1723,6 +1724,7 @@ export declare const landedCostFeeType: {
1723
1724
  readonly InclusivePricing: "INCLUSIVE_PRICING";
1724
1725
  readonly Item: "ITEM";
1725
1726
  readonly Other: "OTHER";
1727
+ readonly PartnerRevShare: "PARTNER_REV_SHARE";
1726
1728
  readonly Shipping: "SHIPPING";
1727
1729
  readonly Tax: "TAX";
1728
1730
  readonly ZonosAccessFee: "ZONOS_ACCESS_FEE";
@@ -2185,12 +2187,14 @@ export declare const result: {
2185
2187
  readonly Success: "SUCCESS";
2186
2188
  };
2187
2189
  export type Result = (typeof result)[keyof typeof result];
2188
- export declare const roundingType: {
2190
+ export declare const roundingMethod: {
2189
2191
  readonly Custom: "CUSTOM";
2190
- readonly Default: "DEFAULT";
2191
- readonly None: "NONE";
2192
+ readonly Hundredth: "HUNDREDTH";
2193
+ readonly Tenth: "TENTH";
2194
+ readonly Thousandth: "THOUSANDTH";
2195
+ readonly Whole: "WHOLE";
2192
2196
  };
2193
- export type RoundingType = (typeof roundingType)[keyof typeof roundingType];
2197
+ export type RoundingMethod = (typeof roundingMethod)[keyof typeof roundingMethod];
2194
2198
  export declare const searchIndex: {
2195
2199
  readonly Catalog: "CATALOG";
2196
2200
  readonly Orders: "ORDERS";
@@ -2380,6 +2384,11 @@ export declare const stripePriceType: {
2380
2384
  readonly Recurring: "RECURRING";
2381
2385
  };
2382
2386
  export type StripePriceType = (typeof stripePriceType)[keyof typeof stripePriceType];
2387
+ export declare const stripeSubscriptionCollectionMethod: {
2388
+ readonly ChargeAutomatically: "CHARGE_AUTOMATICALLY";
2389
+ readonly SendInvoice: "SEND_INVOICE";
2390
+ };
2391
+ export type StripeSubscriptionCollectionMethod = (typeof stripeSubscriptionCollectionMethod)[keyof typeof stripeSubscriptionCollectionMethod];
2383
2392
  export declare const stripeSubscriptionStatus: {
2384
2393
  readonly Active: "ACTIVE";
2385
2394
  readonly Canceled: "CANCELED";
@@ -2387,6 +2396,7 @@ export declare const stripeSubscriptionStatus: {
2387
2396
  readonly Incomplete: "INCOMPLETE";
2388
2397
  readonly IncompleteExpired: "INCOMPLETE_EXPIRED";
2389
2398
  readonly PastDue: "PAST_DUE";
2399
+ readonly Paused: "PAUSED";
2390
2400
  readonly Trialing: "TRIALING";
2391
2401
  readonly Unpaid: "UNPAID";
2392
2402
  };
@@ -2912,12 +2922,34 @@ export type GetCheckoutSessionQuery = {
2912
2922
  } | null;
2913
2923
  };
2914
2924
  };
2915
- export type GetInclusivePriceSettingEnabledByCountryQuery = {
2925
+ export type InclusivePriceSettingFieldsFragment = {
2926
+ duty: {
2927
+ status: InclusivePriceSettingAdjustmentStatus;
2928
+ };
2929
+ fee: {
2930
+ status: InclusivePriceSettingAdjustmentStatus;
2931
+ };
2932
+ id: string;
2933
+ status: InclusivePriceSettingStatus;
2934
+ tax: {
2935
+ status: InclusivePriceSettingAdjustmentStatus;
2936
+ };
2937
+ };
2938
+ export type GetInclusivePriceSettingByCountryQuery = {
2916
2939
  inclusivePriceSettings: {
2917
2940
  edges: Array<{
2918
2941
  node: {
2942
+ duty: {
2943
+ status: InclusivePriceSettingAdjustmentStatus;
2944
+ };
2945
+ fee: {
2946
+ status: InclusivePriceSettingAdjustmentStatus;
2947
+ };
2919
2948
  id: string;
2920
2949
  status: InclusivePriceSettingStatus;
2950
+ tax: {
2951
+ status: InclusivePriceSettingAdjustmentStatus;
2952
+ };
2921
2953
  };
2922
2954
  }>;
2923
2955
  } | null;
@@ -3453,9 +3485,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
3453
3485
  getCheckoutSession(variables?: {
3454
3486
  [x: string]: never;
3455
3487
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutSessionQuery>;
3456
- getInclusivePriceSettingEnabledByCountry(variables?: {
3488
+ getInclusivePriceSettingByCountry(variables?: {
3457
3489
  [x: string]: never;
3458
- }, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetInclusivePriceSettingEnabledByCountryQuery>;
3490
+ }, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetInclusivePriceSettingByCountryQuery>;
3459
3491
  getOrder(variables?: {
3460
3492
  [x: string]: never;
3461
3493
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetOrderQuery>;
@@ -498,9 +498,11 @@ export const classificationCalculateOrigin = {
498
498
  export type ClassificationCalculateOrigin =
499
499
  (typeof classificationCalculateOrigin)[keyof typeof classificationCalculateOrigin];
500
500
  export const classificationCalculateSource = {
501
+ Bulk: 'BULK',
501
502
  External: 'EXTERNAL',
502
503
  Internal: 'INTERNAL',
503
504
  Legacy: 'LEGACY',
505
+ Single: 'SINGLE',
504
506
  } as const;
505
507
 
506
508
  export type ClassificationCalculateSource =
@@ -574,14 +576,6 @@ export const collectUploadStatus = {
574
576
 
575
577
  export type CollectUploadStatus =
576
578
  (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
577
- export const commercialInvoiceImageCarrier = {
578
- Dhl: 'DHL',
579
- Fedex: 'FEDEX',
580
- Ups: 'UPS',
581
- } as const;
582
-
583
- export type CommercialInvoiceImageCarrier =
584
- (typeof commercialInvoiceImageCarrier)[keyof typeof commercialInvoiceImageCarrier];
585
579
 
586
580
  export const confidenceScoreDisplayStatus = {
587
581
  Disabled: 'DISABLED',
@@ -1471,6 +1465,13 @@ export const dutyTaxFeeConfiguration = {
1471
1465
 
1472
1466
  export type DutyTaxFeeConfiguration =
1473
1467
  (typeof dutyTaxFeeConfiguration)[keyof typeof dutyTaxFeeConfiguration];
1468
+ export const dynamicPackagingStatus = {
1469
+ Disabled: 'DISABLED',
1470
+ Enabled: 'ENABLED',
1471
+ } as const;
1472
+
1473
+ export type DynamicPackagingStatus =
1474
+ (typeof dynamicPackagingStatus)[keyof typeof dynamicPackagingStatus];
1474
1475
  export const elementsUiStyle = {
1475
1476
  Rounded: 'ROUNDED',
1476
1477
  Sharp: 'SHARP',
@@ -2051,6 +2052,7 @@ export const landedCostFeeType = {
2051
2052
  InclusivePricing: 'INCLUSIVE_PRICING',
2052
2053
  Item: 'ITEM',
2053
2054
  Other: 'OTHER',
2055
+ PartnerRevShare: 'PARTNER_REV_SHARE',
2054
2056
  Shipping: 'SHIPPING',
2055
2057
  Tax: 'TAX',
2056
2058
  ZonosAccessFee: 'ZONOS_ACCESS_FEE',
@@ -2635,13 +2637,16 @@ export const result = {
2635
2637
 
2636
2638
  export type Result = (typeof result)[keyof typeof result];
2637
2639
 
2638
- export const roundingType = {
2640
+ export const roundingMethod = {
2639
2641
  Custom: 'CUSTOM',
2640
- Default: 'DEFAULT',
2641
- None: 'NONE',
2642
+ Hundredth: 'HUNDREDTH',
2643
+ Tenth: 'TENTH',
2644
+ Thousandth: 'THOUSANDTH',
2645
+ Whole: 'WHOLE',
2642
2646
  } as const;
2643
2647
 
2644
- export type RoundingType = (typeof roundingType)[keyof typeof roundingType];
2648
+ export type RoundingMethod =
2649
+ (typeof roundingMethod)[keyof typeof roundingMethod];
2645
2650
 
2646
2651
  export const searchIndex = {
2647
2652
  Catalog: 'CATALOG',
@@ -2898,6 +2903,13 @@ export const stripePriceType = {
2898
2903
 
2899
2904
  export type StripePriceType =
2900
2905
  (typeof stripePriceType)[keyof typeof stripePriceType];
2906
+ export const stripeSubscriptionCollectionMethod = {
2907
+ ChargeAutomatically: 'CHARGE_AUTOMATICALLY',
2908
+ SendInvoice: 'SEND_INVOICE',
2909
+ } as const;
2910
+
2911
+ export type StripeSubscriptionCollectionMethod =
2912
+ (typeof stripeSubscriptionCollectionMethod)[keyof typeof stripeSubscriptionCollectionMethod];
2901
2913
  export const stripeSubscriptionStatus = {
2902
2914
  Active: 'ACTIVE',
2903
2915
  Canceled: 'CANCELED',
@@ -2905,6 +2917,7 @@ export const stripeSubscriptionStatus = {
2905
2917
  Incomplete: 'INCOMPLETE',
2906
2918
  IncompleteExpired: 'INCOMPLETE_EXPIRED',
2907
2919
  PastDue: 'PAST_DUE',
2920
+ Paused: 'PAUSED',
2908
2921
  Trialing: 'TRIALING',
2909
2922
  Unpaid: 'UNPAID',
2910
2923
  } as const;
@@ -3428,9 +3441,25 @@ export type GetCheckoutSessionQuery = {
3428
3441
  checkoutSession: { order: { id: string } | null };
3429
3442
  };
3430
3443
 
3431
- export type GetInclusivePriceSettingEnabledByCountryQuery = {
3444
+ export type InclusivePriceSettingFieldsFragment = {
3445
+ duty: { status: InclusivePriceSettingAdjustmentStatus };
3446
+ fee: { status: InclusivePriceSettingAdjustmentStatus };
3447
+ id: string;
3448
+ status: InclusivePriceSettingStatus;
3449
+ tax: { status: InclusivePriceSettingAdjustmentStatus };
3450
+ };
3451
+
3452
+ export type GetInclusivePriceSettingByCountryQuery = {
3432
3453
  inclusivePriceSettings: {
3433
- edges: Array<{ node: { id: string; status: InclusivePriceSettingStatus } }>;
3454
+ edges: Array<{
3455
+ node: {
3456
+ duty: { status: InclusivePriceSettingAdjustmentStatus };
3457
+ fee: { status: InclusivePriceSettingAdjustmentStatus };
3458
+ id: string;
3459
+ status: InclusivePriceSettingStatus;
3460
+ tax: { status: InclusivePriceSettingAdjustmentStatus };
3461
+ };
3462
+ }>;
3434
3463
  } | null;
3435
3464
  };
3436
3465
 
@@ -4106,18 +4135,18 @@ export function getSdk(
4106
4135
  'query',
4107
4136
  );
4108
4137
  },
4109
- getInclusivePriceSettingEnabledByCountry(
4138
+ getInclusivePriceSettingByCountry(
4110
4139
  variables?: { [x: string]: never },
4111
4140
  requestHeaders?: GraphQLClientRequestHeaders,
4112
- ): Promise<GetInclusivePriceSettingEnabledByCountryQuery> {
4141
+ ): Promise<GetInclusivePriceSettingByCountryQuery> {
4113
4142
  return withWrapper(
4114
4143
  wrappedRequestHeaders =>
4115
- client.request<GetInclusivePriceSettingEnabledByCountryQuery>(
4144
+ client.request<GetInclusivePriceSettingByCountryQuery>(
4116
4145
  '',
4117
4146
  variables,
4118
4147
  { ...requestHeaders, ...wrappedRequestHeaders },
4119
4148
  ),
4120
- 'getInclusivePriceSettingEnabledByCountry',
4149
+ 'getInclusivePriceSettingByCountry',
4121
4150
  'query',
4122
4151
  );
4123
4152
  },
@@ -566,7 +566,7 @@ export type GetAudienceByAspectKeyQuery = {
566
566
  };
567
567
  export type LocaleCountryMessagesQuery = {
568
568
  locale_countryCodesPage: Array<{
569
- countryCodes: Array<string>;
569
+ countryCodes: Array<string> | null;
570
570
  countryCodesPageMessageLinks: Array<{
571
571
  id: number;
572
572
  message: {
@@ -571,7 +571,7 @@ export type GetAudienceByAspectKeyQuery = {
571
571
 
572
572
  export type LocaleCountryMessagesQuery = {
573
573
  locale_countryCodesPage: Array<{
574
- countryCodes: Array<string>;
574
+ countryCodes: Array<string> | null;
575
575
  countryCodesPageMessageLinks: Array<{
576
576
  id: number;
577
577
  message: {
@@ -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-eaa335e1.js";const t=["jsdelivr","cdnjs","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{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})(),m="https://v1.3.42.js.zonos.com",p=a||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.42",w="jsdelivr",f="https://rsms.me",h="https://fonts.googleapis.com",v=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}u=y,y.doneInit=!1,y.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y._paypalMockResponse=null,y.isBigCommerce=!1,y.isNpm=!0,y.zonosQaUrl=null,y.version="v1.3.42",y.modeAlerted=!1,y.tempCartData=null,y.paypal=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{u.doneInit||(e(`====== ZONOS DEBUG MODE: on (${u.version}) ======`),d?(u.zonosApiKey=d,u.storeId=c,e("init zonos"),u.injectZonosCdn(),u.injectZonosCss(),u.injectFonts(),u.injectController({config:{appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),u.doneInit=!0):n("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},y.showNotification=e=>{var n;null===(n=u.zonosController)||void 0===n||n.showNotification(e)},y.updateOrganizationName=e=>{var n;null===(n=u.zonosController)||void 0===n||n.updateOrganizationName(e)},y.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)}},y.injectController=({config:t,zonosApiKey:o})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=t.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const r=document.createElement("zonos-controller");r.config=t,r.zonosApiKey=o,r.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const s=await(async(...e)=>{d=!0;const n=Date.now();return c.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);s?(window.Zonos.stripe=s,r.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(r),u.zonosController=r,e("Zonos controller injected!")},y.injectScript=({cdnType:t,isModule:s,theRestUrl:r})=>{const i=`${u.getZonosUrl(t)}/${r}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");s?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{n(`Failed to load ${c.src}`);const e=o(t);e&&u.injectScript({cdnType:e,isModule:s,theRestUrl:r})},l.appendChild(c)},y.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return p;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.42";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.42";case"vercel":return m}};return u.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.42.js.zonos.com";if(!t&&o.includes("test."))return o;if(!t&&"dev.demo.elements.zonos.com"===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()},y.injectZonosCdn=()=>{u.injectScript({cdnType:w,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),u.injectScript({cdnType:w,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const s=u.getZonosUrl(e),r=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${m}/`,r.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${s}/${t}`,l.onerror=()=>{n(`Failed to load ${l.href}`);const s=o(e);s&&u.injectStylesheet({cdnType:s,theRestUrl:t})},r.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(u.injectStylesheet({cdnType:w,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${f}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!v.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=f,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${f}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var n;null===(n=u.zonosController)||void 0===n||n.setupGoogleFont(e)},y.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^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,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{y as Zonos}
1
+ import{l as e,a as n}from"./p-eaa335e1.js";const t=["jsdelivr","cdnjs","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{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})(),m="https://v1.3.43.js.zonos.com",p=a||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.43",w="jsdelivr",f="https://rsms.me",h="https://fonts.googleapis.com",v=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}u=y,y.doneInit=!1,y.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y._paypalMockResponse=null,y.isBigCommerce=!1,y.isNpm=!0,y.zonosQaUrl=null,y.version="v1.3.43",y.modeAlerted=!1,y.tempCartData=null,y.paypal=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{u.doneInit||(e(`====== ZONOS DEBUG MODE: on (${u.version}) ======`),d?(u.zonosApiKey=d,u.storeId=c,e("init zonos"),u.injectZonosCdn(),u.injectZonosCss(),u.injectFonts(),u.injectController({config:{appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),u.doneInit=!0):n("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},y.showNotification=e=>{var n;null===(n=u.zonosController)||void 0===n||n.showNotification(e)},y.updateOrganizationName=e=>{var n;null===(n=u.zonosController)||void 0===n||n.updateOrganizationName(e)},y.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)}},y.injectController=({config:t,zonosApiKey:o})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=t.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const r=document.createElement("zonos-controller");r.config=t,r.zonosApiKey=o,r.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const s=await(async(...e)=>{d=!0;const n=Date.now();return c.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);s?(window.Zonos.stripe=s,r.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(r),u.zonosController=r,e("Zonos controller injected!")},y.injectScript=({cdnType:t,isModule:s,theRestUrl:r})=>{const i=`${u.getZonosUrl(t)}/${r}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");s?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{n(`Failed to load ${c.src}`);const e=o(t);e&&u.injectScript({cdnType:e,isModule:s,theRestUrl:r})},l.appendChild(c)},y.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return p;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.43";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.43";case"vercel":return m}};return u.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.43.js.zonos.com";if(!t&&o.includes("test."))return o;if(!t&&"dev.demo.elements.zonos.com"===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()},y.injectZonosCdn=()=>{u.injectScript({cdnType:w,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),u.injectScript({cdnType:w,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const s=u.getZonosUrl(e),r=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${m}/`,r.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${s}/${t}`,l.onerror=()=>{n(`Failed to load ${l.href}`);const s=o(e);s&&u.injectStylesheet({cdnType:s,theRestUrl:t})},r.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(u.injectStylesheet({cdnType:w,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${f}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!v.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=f,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${f}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var n;null===(n=u.zonosController)||void 0===n||n.setupGoogleFont(e)},y.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^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,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{y as Zonos}