@zonos/elements 1.3.17 → 1.3.18-alpha.1

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 (171) hide show
  1. package/dist/cjs/{cart-d25723e7.js → cart-95209ae8.js} +308 -8
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{submitGtag-484eaf9d.js → submitGtag-9d60f3bb.js} +1 -1
  4. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  5. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  6. package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_10.cjs.entry.js} +114 -10
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  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_3.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-elements.cjs.js +1 -1
  12. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
  15. package/dist/collection/collection-manifest.json +1 -0
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +2 -1
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/ChevronUpIcon.svg +23 -0
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/empty-item.jpeg +0 -0
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +105 -0
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +101 -0
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -3
  22. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -1
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +18 -2
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -2
  27. package/dist/collection/components/store/checkout/cart.js +55 -5
  28. package/dist/collection/components/store/checkout/stripe.js +6 -2
  29. package/dist/collection/components/store/hello/localization.js +1 -1
  30. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  31. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  32. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  33. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  34. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  35. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  36. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  37. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  38. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  39. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  40. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  41. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  42. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  43. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  44. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  45. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  46. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  47. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  48. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  49. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  50. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -1
  51. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +6 -1
  52. package/dist/collection/types/checkout/RestrictProduct.js +1 -0
  53. package/dist/collection/types/generated/graphql.customer.types.js +40 -0
  54. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  55. package/dist/components/stripe.js +68 -9
  56. package/dist/components/submitGtag.js +1 -1
  57. package/dist/components/trackConversionEvent.js +1 -1
  58. package/dist/components/translationStore.js +240 -0
  59. package/dist/components/zonos-cart-items2.js +2 -1
  60. package/dist/components/zonos-cart-restricted-items.d.ts +11 -0
  61. package/dist/components/zonos-cart-restricted-items.js +6 -0
  62. package/dist/components/zonos-cart-restricted-items2.js +135 -0
  63. package/dist/components/zonos-cart-subtotal2.js +6 -3
  64. package/dist/components/zonos-checkout-finish2.js +1 -1
  65. package/dist/components/zonos-checkout-payment2.js +1 -1
  66. package/dist/components/zonos-checkout.js +27 -21
  67. package/dist/components/zonos-controller.js +1 -1
  68. package/dist/components/zonos-country-select2.js +1 -1
  69. package/dist/components/zonos-customer-info2.js +19 -3
  70. package/dist/components/zonos-hello-dialog2.js +1 -1
  71. package/dist/components/zonos-hello.js +1 -1
  72. package/dist/components/zonos-language-select2.js +1 -1
  73. package/dist/components/zonos-review2.js +3 -2
  74. package/dist/components/zonos-shipping2.js +1 -1
  75. package/dist/esm/{cart-02f5c2ea.js → cart-6448e883.js} +308 -9
  76. package/dist/esm/loader.js +1 -1
  77. package/dist/esm/{submitGtag-ba38e1ac.js → submitGtag-b7d369cd.js} +1 -1
  78. package/dist/esm/zonos-address_8.entry.js +1 -1
  79. package/dist/esm/zonos-card_2.entry.js +1 -1
  80. package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +114 -11
  81. package/dist/esm/zonos-checkout.entry.js +4 -4
  82. package/dist/esm/zonos-controller.entry.js +1 -1
  83. package/dist/esm/zonos-country-flag.entry.js +1 -1
  84. package/dist/esm/zonos-country-select_3.entry.js +1 -1
  85. package/dist/esm/zonos-elements.js +1 -1
  86. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  87. package/dist/esm/zonos-hello.entry.js +1 -1
  88. package/dist/esm/zonos-payment.entry.js +1 -1
  89. package/dist/esm-es5/cart-6448e883.js +1 -0
  90. package/dist/esm-es5/loader.js +1 -1
  91. package/dist/esm-es5/{submitGtag-ba38e1ac.js → submitGtag-b7d369cd.js} +1 -1
  92. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  93. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  94. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
  95. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  96. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  97. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  98. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  99. package/dist/esm-es5/zonos-elements.js +1 -1
  100. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  101. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  102. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  103. package/dist/scripts/loadZonos.js +1 -1
  104. package/dist/scripts/zonos.js +1 -1
  105. package/dist/scripts/zonosBase.js +1 -1
  106. package/dist/types/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.d.ts +14 -0
  107. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -0
  108. package/dist/types/components/store/checkout/cart.d.ts +38 -4
  109. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  110. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  111. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  112. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  113. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  114. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  115. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  116. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  117. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  118. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  119. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  120. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  121. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  122. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  123. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  124. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  125. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  126. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  127. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  128. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  129. package/dist/types/components/store/translationStore.d.ts +1 -1
  130. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  131. package/dist/types/components.d.ts +21 -0
  132. package/dist/types/scripts/zonosBase.d.ts +6 -1
  133. package/dist/types/types/checkout/RestrictProduct.d.ts +7 -0
  134. package/dist/types/types/generated/graphql.customer.types.d.ts +54 -0
  135. package/dist/types/types/generated/graphql.customer.types.ts +66 -1
  136. package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -1
  137. package/dist/types/types/generated/graphql.frontend.types.ts +2 -1
  138. package/dist/zonos-elements/{p-6dec476d.system.entry.js → p-0759a84d.system.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-47e00966.system.entry.js → p-0ee61fba.system.entry.js} +1 -1
  140. package/dist/zonos-elements/p-154aaf95.system.js +1 -1
  141. package/dist/zonos-elements/{p-239cc943.system.entry.js → p-2fc561ac.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-cf0f8e32.entry.js → p-345503b7.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-6ece23b9.entry.js → p-3be2e469.entry.js} +1 -1
  144. package/dist/zonos-elements/p-47c75f81.system.entry.js +1 -0
  145. package/dist/zonos-elements/{p-532995a4.system.entry.js → p-58f8cee7.system.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-572a4de2.system.entry.js → p-61100d2e.system.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-905d842b.entry.js → p-6ea746b9.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-f124e659.system.entry.js → p-70c35519.system.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-246133d3.entry.js → p-7b19cd96.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-0265da6f.js → p-7cc730b0.js} +1 -1
  151. package/dist/zonos-elements/{p-57adc7f8.entry.js → p-7f48fafe.entry.js} +1 -1
  152. package/dist/zonos-elements/p-9c575a18.system.entry.js +1 -0
  153. package/dist/zonos-elements/{p-e0e66004.system.js → p-aaf1e517.system.js} +1 -1
  154. package/dist/zonos-elements/p-aff5f4ca.js +1 -0
  155. package/dist/zonos-elements/{p-f99eb5e7.entry.js → p-beca252d.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-1ba4cf64.entry.js → p-c1f4bb4a.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-5e33aab7.system.entry.js → p-c64eefdd.system.entry.js} +1 -1
  158. package/dist/zonos-elements/p-ca621143.entry.js +1 -0
  159. package/dist/zonos-elements/{p-0267a969.entry.js → p-dbee6587.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-9da0562e.system.entry.js → p-e0706108.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-54a32fd7.entry.js → p-e3335228.entry.js} +1 -1
  162. package/dist/zonos-elements/p-ef9cbb66.system.js +1 -0
  163. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  164. package/package.json +12 -12
  165. package/dist/esm-es5/cart-02f5c2ea.js +0 -1
  166. package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
  167. package/dist/zonos-elements/p-168e5b5f.system.js +0 -1
  168. package/dist/zonos-elements/p-1b8082dd.entry.js +0 -1
  169. package/dist/zonos-elements/p-5d13795a.system.entry.js +0 -1
  170. package/dist/zonos-elements/p-981bf71a.js +0 -1
  171. package/dist/zonos-elements/p-ed7d251d.system.entry.js +0 -1
@@ -86,6 +86,9 @@ export declare const stringsSwedish: {
86
86
  Guaranteed: {
87
87
  value: string;
88
88
  };
89
+ Hide: {
90
+ value: string;
91
+ };
89
92
  'Keep shopping': {
90
93
  value: string;
91
94
  };
@@ -182,6 +185,9 @@ export declare const stringsSwedish: {
182
185
  'Shipping method': {
183
186
  value: string;
184
187
  };
188
+ Show: {
189
+ value: string;
190
+ };
185
191
  'Something went wrong.': {
186
192
  value: string;
187
193
  };
@@ -197,6 +203,9 @@ export declare const stringsSwedish: {
197
203
  'Taxes will apply to all orders': {
198
204
  value: string;
199
205
  };
206
+ 'The following items are unable to be shipped to your country and are not included in your cart total.': {
207
+ value: string;
208
+ };
200
209
  "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
201
210
  value: string;
202
211
  };
@@ -245,6 +254,9 @@ export declare const stringsSwedish: {
245
254
  'duty free': {
246
255
  value: string;
247
256
  };
257
+ 'restricted items': {
258
+ value: string;
259
+ };
248
260
  'tax free': {
249
261
  value: string;
250
262
  };
@@ -86,6 +86,9 @@ export declare const stringsTurkish: {
86
86
  Guaranteed: {
87
87
  value: string;
88
88
  };
89
+ Hide: {
90
+ value: string;
91
+ };
89
92
  'Keep shopping': {
90
93
  value: string;
91
94
  };
@@ -182,6 +185,9 @@ export declare const stringsTurkish: {
182
185
  'Shipping method': {
183
186
  value: string;
184
187
  };
188
+ Show: {
189
+ value: string;
190
+ };
185
191
  'Something went wrong.': {
186
192
  value: string;
187
193
  };
@@ -197,6 +203,9 @@ export declare const stringsTurkish: {
197
203
  'Taxes will apply to all orders': {
198
204
  value: string;
199
205
  };
206
+ 'The following items are unable to be shipped to your country and are not included in your cart total.': {
207
+ value: string;
208
+ };
200
209
  "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
201
210
  value: string;
202
211
  };
@@ -245,6 +254,9 @@ export declare const stringsTurkish: {
245
254
  'duty free': {
246
255
  value: string;
247
256
  };
257
+ 'restricted items': {
258
+ value: string;
259
+ };
248
260
  'tax free': {
249
261
  value: string;
250
262
  };
@@ -86,6 +86,9 @@ export declare const stringsVietnamese: {
86
86
  Guaranteed: {
87
87
  value: string;
88
88
  };
89
+ Hide: {
90
+ value: string;
91
+ };
89
92
  'Keep shopping': {
90
93
  value: string;
91
94
  };
@@ -182,6 +185,9 @@ export declare const stringsVietnamese: {
182
185
  'Shipping method': {
183
186
  value: string;
184
187
  };
188
+ Show: {
189
+ value: string;
190
+ };
185
191
  'Something went wrong.': {
186
192
  value: string;
187
193
  };
@@ -197,6 +203,9 @@ export declare const stringsVietnamese: {
197
203
  'Taxes will apply to all orders': {
198
204
  value: string;
199
205
  };
206
+ 'The following items are unable to be shipped to your country and are not included in your cart total.': {
207
+ value: string;
208
+ };
200
209
  "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
201
210
  value: string;
202
211
  };
@@ -245,6 +254,9 @@ export declare const stringsVietnamese: {
245
254
  'duty free': {
246
255
  value: string;
247
256
  };
257
+ 'restricted items': {
258
+ value: string;
259
+ };
248
260
  'tax free': {
249
261
  value: string;
250
262
  };
@@ -30,5 +30,5 @@ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T,
30
30
  * // No variables:
31
31
  * translate('Above de minimis threshold for')
32
32
  */
33
- declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Country" | "Customer" | "Delivery" | "Payment" | "${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy." | "${percentage} GST due on any order above ${threshold}." | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Back" | "Billing" | "Billing address" | "Cancel" | "Cart subtotal" | "City" | "Contact" | "Continue to shipping" | "Customer information" | "Delivery options" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to ${countryName} must be over ${threshold} to ship." | "Pay" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Restricted item" | "Restricted items found" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Shipping address same as billing" | "Shipping method" | "Something went wrong." | "Spend" | "State" | "State/Province" | "Taxes will apply to all orders" | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to" | "Welcome!" | "What you entered" | "You're all set!" | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "business days" | "click to learn more" | "duty free" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
33
+ declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Country" | "Customer" | "Hide" | "Delivery" | "Payment" | "${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy." | "${percentage} GST due on any order above ${threshold}." | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Back" | "Billing" | "Billing address" | "Cancel" | "Cart subtotal" | "City" | "Contact" | "Continue to shipping" | "Customer information" | "Delivery options" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to ${countryName} must be over ${threshold} to ship." | "Pay" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Restricted item" | "Restricted items found" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend" | "State" | "State/Province" | "Taxes will apply to all orders" | "The following items are unable to be shipped to your country and are not included in your cart total." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to" | "Welcome!" | "What you entered" | "You're all set!" | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "business days" | "click to learn more" | "duty free" | "restricted items" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
34
34
  export { translate, translationStore, translationStoreUpdateLanguage };
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: string[] | null;
7
+ countryCodes: string[];
8
8
  countryCodesPageMessageLinks: {
9
9
  id: number;
10
10
  message: {
@@ -259,6 +259,12 @@ export namespace Components {
259
259
  }
260
260
  interface ZonosCartItems {
261
261
  }
262
+ interface ZonosCartRestrictedItems {
263
+ /**
264
+ * This is to hide the section when the parent collapse on mobile
265
+ */
266
+ "hide": boolean;
267
+ }
262
268
  interface ZonosCartSubtotal {
263
269
  }
264
270
  interface ZonosCheckbox {
@@ -1000,6 +1006,12 @@ declare global {
1000
1006
  prototype: HTMLZonosCartItemsElement;
1001
1007
  new (): HTMLZonosCartItemsElement;
1002
1008
  };
1009
+ interface HTMLZonosCartRestrictedItemsElement extends Components.ZonosCartRestrictedItems, HTMLStencilElement {
1010
+ }
1011
+ var HTMLZonosCartRestrictedItemsElement: {
1012
+ prototype: HTMLZonosCartRestrictedItemsElement;
1013
+ new (): HTMLZonosCartRestrictedItemsElement;
1014
+ };
1003
1015
  interface HTMLZonosCartSubtotalElement extends Components.ZonosCartSubtotal, HTMLStencilElement {
1004
1016
  }
1005
1017
  var HTMLZonosCartSubtotalElement: {
@@ -1324,6 +1336,7 @@ declare global {
1324
1336
  "zonos-button": HTMLZonosButtonElement;
1325
1337
  "zonos-card": HTMLZonosCardElement;
1326
1338
  "zonos-cart-items": HTMLZonosCartItemsElement;
1339
+ "zonos-cart-restricted-items": HTMLZonosCartRestrictedItemsElement;
1327
1340
  "zonos-cart-subtotal": HTMLZonosCartSubtotalElement;
1328
1341
  "zonos-checkbox": HTMLZonosCheckboxElement;
1329
1342
  "zonos-checkout": HTMLZonosCheckoutElement;
@@ -1596,6 +1609,12 @@ declare namespace LocalJSX {
1596
1609
  }
1597
1610
  interface ZonosCartItems {
1598
1611
  }
1612
+ interface ZonosCartRestrictedItems {
1613
+ /**
1614
+ * This is to hide the section when the parent collapse on mobile
1615
+ */
1616
+ "hide"?: boolean;
1617
+ }
1599
1618
  interface ZonosCartSubtotal {
1600
1619
  }
1601
1620
  interface ZonosCheckbox {
@@ -2167,6 +2186,7 @@ declare namespace LocalJSX {
2167
2186
  "zonos-button": ZonosButton;
2168
2187
  "zonos-card": ZonosCard;
2169
2188
  "zonos-cart-items": ZonosCartItems;
2189
+ "zonos-cart-restricted-items": ZonosCartRestrictedItems;
2170
2190
  "zonos-cart-subtotal": ZonosCartSubtotal;
2171
2191
  "zonos-checkbox": ZonosCheckbox;
2172
2192
  "zonos-checkout": ZonosCheckout;
@@ -2216,6 +2236,7 @@ declare module "@stencil/core" {
2216
2236
  "zonos-button": LocalJSX.ZonosButton & JSXBase.HTMLAttributes<HTMLZonosButtonElement>;
2217
2237
  "zonos-card": LocalJSX.ZonosCard & JSXBase.HTMLAttributes<HTMLZonosCardElement>;
2218
2238
  "zonos-cart-items": LocalJSX.ZonosCartItems & JSXBase.HTMLAttributes<HTMLZonosCartItemsElement>;
2239
+ "zonos-cart-restricted-items": LocalJSX.ZonosCartRestrictedItems & JSXBase.HTMLAttributes<HTMLZonosCartRestrictedItemsElement>;
2219
2240
  "zonos-cart-subtotal": LocalJSX.ZonosCartSubtotal & JSXBase.HTMLAttributes<HTMLZonosCartSubtotalElement>;
2220
2241
  "zonos-checkbox": LocalJSX.ZonosCheckbox & JSXBase.HTMLAttributes<HTMLZonosCheckboxElement>;
2221
2242
  "zonos-checkout": LocalJSX.ZonosCheckout & JSXBase.HTMLAttributes<HTMLZonosCheckoutElement>;
@@ -4,7 +4,12 @@ import type { NotificationInit } from "../types/index";
4
4
  import type { TempCart } from "../types/checkout/api/TempCart";
5
5
  import type { CheckoutConfig } from "../types/checkout/CheckoutConfig";
6
6
  import type { HelloConfig } from "../types/hello/HelloConfig";
7
- export type CurrencyConverter = (convertAndFormat: (amount: number) => string, convert: (amount: number) => number, format: (amount: number) => string, selector?: string) => void;
7
+ export type CurrencyConverter = (prop: {
8
+ selector?: string;
9
+ convert: (amount: number) => number;
10
+ convertAndFormat: (amount: number) => string;
11
+ format: (amount: number) => string;
12
+ }) => void;
8
13
  export type LoadZonosParamsConfig = {
9
14
  appearance?: Partial<AppearanceConfig>;
10
15
  checkoutSettings?: Partial<CheckoutConfig>;
@@ -0,0 +1,7 @@
1
+ export type CheckoutItemToCheckRestrict = {
2
+ amount: number;
3
+ description: string;
4
+ imageUrl?: string;
5
+ quantity: number;
6
+ title: string;
7
+ };
@@ -1374,6 +1374,11 @@ export declare const hsCodeValidation: {
1374
1374
  readonly Valid: "VALID";
1375
1375
  };
1376
1376
  export type HsCodeValidation = (typeof hsCodeValidation)[keyof typeof hsCodeValidation];
1377
+ export declare const imageFileType: {
1378
+ readonly Letterhead: "LETTERHEAD";
1379
+ readonly Signature: "SIGNATURE";
1380
+ };
1381
+ export type ImageFileType = (typeof imageFileType)[keyof typeof imageFileType];
1377
1382
  export declare const imageSlot: {
1378
1383
  readonly Image_1: "IMAGE_1";
1379
1384
  readonly Image_2: "IMAGE_2";
@@ -1397,6 +1402,7 @@ export type InclusivePriceCalculateJobType = (typeof inclusivePriceCalculateJobT
1397
1402
  export declare const inclusivePriceCatalogValidationJobCompletionStatus: {
1398
1403
  readonly Archived: "ARCHIVED";
1399
1404
  readonly Completed: "COMPLETED";
1405
+ readonly Error: "ERROR";
1400
1406
  readonly InProgress: "IN_PROGRESS";
1401
1407
  };
1402
1408
  export type InclusivePriceCatalogValidationJobCompletionStatus = (typeof inclusivePriceCatalogValidationJobCompletionStatus)[keyof typeof inclusivePriceCatalogValidationJobCompletionStatus];
@@ -1845,11 +1851,41 @@ export declare const notificationActiveStatus: {
1845
1851
  readonly Enabled: "ENABLED";
1846
1852
  };
1847
1853
  export type NotificationActiveStatus = (typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
1854
+ export declare const orderBillingAdjustmentFeeType: {
1855
+ readonly AdditionalTariffLines: "ADDITIONAL_TARIFF_LINES";
1856
+ readonly Adjustment: "ADJUSTMENT";
1857
+ readonly Advancement: "ADVANCEMENT";
1858
+ readonly BrokerageFee: "BROKERAGE_FEE";
1859
+ readonly Buffer: "BUFFER";
1860
+ readonly Cod: "COD";
1861
+ readonly Country: "COUNTRY";
1862
+ readonly CurrencyConversionFee: "CURRENCY_CONVERSION_FEE";
1863
+ readonly DdpServiceFee: "DDP_SERVICE_FEE";
1864
+ readonly Duty: "DUTY";
1865
+ readonly FxFee: "FX_FEE";
1866
+ readonly FxFeeNonRefundedAmounts: "FX_FEE_NON_REFUNDED_AMOUNTS";
1867
+ readonly InclusivePriceAdjustment: "INCLUSIVE_PRICE_ADJUSTMENT";
1868
+ readonly InclusivePricing: "INCLUSIVE_PRICING";
1869
+ readonly Item: "ITEM";
1870
+ readonly Other: "OTHER";
1871
+ readonly Shipping: "SHIPPING";
1872
+ readonly Tax: "TAX";
1873
+ readonly ZonosLandedCost: "ZONOS_LANDED_COST";
1874
+ readonly ZonosMerchantProcessing: "ZONOS_MERCHANT_PROCESSING";
1875
+ readonly ZonosTransaction: "ZONOS_TRANSACTION";
1876
+ };
1877
+ export type OrderBillingAdjustmentFeeType = (typeof orderBillingAdjustmentFeeType)[keyof typeof orderBillingAdjustmentFeeType];
1848
1878
  export declare const orderCompleteBillingMethod: {
1849
1879
  readonly BillingDgs: "BILLING_DGS";
1850
1880
  readonly Legacy: "LEGACY";
1851
1881
  };
1852
1882
  export type OrderCompleteBillingMethod = (typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
1883
+ export declare const orderRefundSubtotalType: {
1884
+ readonly DutyTaxFee: "DUTY_TAX_FEE";
1885
+ readonly Item: "ITEM";
1886
+ readonly Shipping: "SHIPPING";
1887
+ };
1888
+ export type OrderRefundSubtotalType = (typeof orderRefundSubtotalType)[keyof typeof orderRefundSubtotalType];
1853
1889
  export declare const orderStatus: {
1854
1890
  readonly Canceled: "CANCELED";
1855
1891
  readonly Completed: "COMPLETED";
@@ -1942,6 +1978,10 @@ export declare const partyType: {
1942
1978
  readonly Payor: "PAYOR";
1943
1979
  };
1944
1980
  export type PartyType = (typeof partyType)[keyof typeof partyType];
1981
+ export declare const paymentProcessorCode: {
1982
+ readonly Stripe: "STRIPE";
1983
+ };
1984
+ export type PaymentProcessorCode = (typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
1945
1985
  export declare const paymentType: {
1946
1986
  readonly Card: "CARD";
1947
1987
  readonly UsBankAccount: "US_BANK_ACCOUNT";
@@ -1988,6 +2028,11 @@ export declare const pickupCategory: {
1988
2028
  readonly SameDayCity: "SAME_DAY_CITY";
1989
2029
  };
1990
2030
  export type PickupCategory = (typeof pickupCategory)[keyof typeof pickupCategory];
2031
+ export declare const priceAdjustmentType: {
2032
+ readonly Fixed: "FIXED";
2033
+ readonly Percentage: "PERCENTAGE";
2034
+ };
2035
+ export type PriceAdjustmentType = (typeof priceAdjustmentType)[keyof typeof priceAdjustmentType];
1991
2036
  export declare const processingStatusCode: {
1992
2037
  readonly Failed: "FAILED";
1993
2038
  readonly Pending: "PENDING";
@@ -2397,7 +2442,16 @@ export type CalculateLandedCostMutation = {
2397
2442
  }> | null;
2398
2443
  itemCreateWorkflow: Array<{
2399
2444
  amount: number;
2445
+ description: string | null;
2400
2446
  id: string;
2447
+ imageUrl: string | null;
2448
+ name: string | null;
2449
+ quantity: number;
2450
+ restriction: {
2451
+ action: RestrictedItemAction;
2452
+ reason: string;
2453
+ } | null;
2454
+ sku: string | null;
2401
2455
  }>;
2402
2456
  landedCostCalculateWorkflow: Array<{
2403
2457
  appliedAdjustments: Array<{
@@ -1593,6 +1593,12 @@ export const hsCodeValidation = {
1593
1593
 
1594
1594
  export type HsCodeValidation =
1595
1595
  (typeof hsCodeValidation)[keyof typeof hsCodeValidation];
1596
+ export const imageFileType = {
1597
+ Letterhead: 'LETTERHEAD',
1598
+ Signature: 'SIGNATURE',
1599
+ } as const;
1600
+
1601
+ export type ImageFileType = (typeof imageFileType)[keyof typeof imageFileType];
1596
1602
  export const imageSlot = {
1597
1603
  Image_1: 'IMAGE_1',
1598
1604
  Image_2: 'IMAGE_2',
@@ -1621,6 +1627,7 @@ export type InclusivePriceCalculateJobType =
1621
1627
  export const inclusivePriceCatalogValidationJobCompletionStatus = {
1622
1628
  Archived: 'ARCHIVED',
1623
1629
  Completed: 'COMPLETED',
1630
+ Error: 'ERROR',
1624
1631
  InProgress: 'IN_PROGRESS',
1625
1632
  } as const;
1626
1633
 
@@ -2181,6 +2188,33 @@ export const notificationActiveStatus = {
2181
2188
  export type NotificationActiveStatus =
2182
2189
  (typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
2183
2190
 
2191
+ export const orderBillingAdjustmentFeeType = {
2192
+ AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
2193
+ Adjustment: 'ADJUSTMENT',
2194
+ Advancement: 'ADVANCEMENT',
2195
+ BrokerageFee: 'BROKERAGE_FEE',
2196
+ Buffer: 'BUFFER',
2197
+ Cod: 'COD',
2198
+ Country: 'COUNTRY',
2199
+ CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
2200
+ DdpServiceFee: 'DDP_SERVICE_FEE',
2201
+ Duty: 'DUTY',
2202
+ FxFee: 'FX_FEE',
2203
+ FxFeeNonRefundedAmounts: 'FX_FEE_NON_REFUNDED_AMOUNTS',
2204
+ InclusivePriceAdjustment: 'INCLUSIVE_PRICE_ADJUSTMENT',
2205
+ InclusivePricing: 'INCLUSIVE_PRICING',
2206
+ Item: 'ITEM',
2207
+ Other: 'OTHER',
2208
+ Shipping: 'SHIPPING',
2209
+ Tax: 'TAX',
2210
+ ZonosLandedCost: 'ZONOS_LANDED_COST',
2211
+ ZonosMerchantProcessing: 'ZONOS_MERCHANT_PROCESSING',
2212
+ ZonosTransaction: 'ZONOS_TRANSACTION',
2213
+ } as const;
2214
+
2215
+ export type OrderBillingAdjustmentFeeType =
2216
+ (typeof orderBillingAdjustmentFeeType)[keyof typeof orderBillingAdjustmentFeeType];
2217
+
2184
2218
  export const orderCompleteBillingMethod = {
2185
2219
  BillingDgs: 'BILLING_DGS',
2186
2220
  Legacy: 'LEGACY',
@@ -2189,6 +2223,15 @@ export const orderCompleteBillingMethod = {
2189
2223
  export type OrderCompleteBillingMethod =
2190
2224
  (typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
2191
2225
 
2226
+ export const orderRefundSubtotalType = {
2227
+ DutyTaxFee: 'DUTY_TAX_FEE',
2228
+ Item: 'ITEM',
2229
+ Shipping: 'SHIPPING',
2230
+ } as const;
2231
+
2232
+ export type OrderRefundSubtotalType =
2233
+ (typeof orderRefundSubtotalType)[keyof typeof orderRefundSubtotalType];
2234
+
2192
2235
  export const orderStatus = {
2193
2236
  Canceled: 'CANCELED',
2194
2237
  Completed: 'COMPLETED',
@@ -2311,6 +2354,12 @@ export const partyType = {
2311
2354
 
2312
2355
  export type PartyType = (typeof partyType)[keyof typeof partyType];
2313
2356
 
2357
+ export const paymentProcessorCode = {
2358
+ Stripe: 'STRIPE',
2359
+ } as const;
2360
+
2361
+ export type PaymentProcessorCode =
2362
+ (typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
2314
2363
  export const paymentType = {
2315
2364
  Card: 'CARD',
2316
2365
  UsBankAccount: 'US_BANK_ACCOUNT',
@@ -2370,6 +2419,13 @@ export const pickupCategory = {
2370
2419
 
2371
2420
  export type PickupCategory =
2372
2421
  (typeof pickupCategory)[keyof typeof pickupCategory];
2422
+ export const priceAdjustmentType = {
2423
+ Fixed: 'FIXED',
2424
+ Percentage: 'PERCENTAGE',
2425
+ } as const;
2426
+
2427
+ export type PriceAdjustmentType =
2428
+ (typeof priceAdjustmentType)[keyof typeof priceAdjustmentType];
2373
2429
  export const processingStatusCode = {
2374
2430
  Failed: 'FAILED',
2375
2431
  Pending: 'PENDING',
@@ -2881,7 +2937,16 @@ export type CalculateLandedCostMutation = {
2881
2937
  total: number;
2882
2938
  };
2883
2939
  }> | null;
2884
- itemCreateWorkflow: Array<{ amount: number; id: string }>;
2940
+ itemCreateWorkflow: Array<{
2941
+ amount: number;
2942
+ description: string | null;
2943
+ id: string;
2944
+ imageUrl: string | null;
2945
+ name: string | null;
2946
+ quantity: number;
2947
+ restriction: { action: RestrictedItemAction; reason: string } | null;
2948
+ sku: string | null;
2949
+ }>;
2885
2950
  landedCostCalculateWorkflow: Array<{
2886
2951
  appliedAdjustments: Array<{
2887
2952
  amount: number;
@@ -94,6 +94,7 @@ export declare const featureAspectKeyEnum: {
94
94
  readonly FeatureAspect: "feature_aspect";
95
95
  readonly LocaleMessage: "locale_message";
96
96
  readonly NewCheckoutBeta: "new_checkout_beta";
97
+ readonly NewPayoutReport: "new_payout_report";
97
98
  readonly PageAuditor: "page_auditor";
98
99
  readonly PromptExplorer: "prompt_explorer";
99
100
  readonly TeamAuditor: "team_auditor";
@@ -554,7 +555,7 @@ export type GetAudienceByAspectKeyQuery = {
554
555
  };
555
556
  export type LocaleCountryMessagesQuery = {
556
557
  locale_countryCodesPage: Array<{
557
- countryCodes: Array<string> | null;
558
+ countryCodes: Array<string>;
558
559
  countryCodesPageMessageLinks: Array<{
559
560
  id: number;
560
561
  message: {
@@ -72,6 +72,7 @@ export const featureAspectKeyEnum = {
72
72
  FeatureAspect: 'feature_aspect',
73
73
  LocaleMessage: 'locale_message',
74
74
  NewCheckoutBeta: 'new_checkout_beta',
75
+ NewPayoutReport: 'new_payout_report',
75
76
  PageAuditor: 'page_auditor',
76
77
  PromptExplorer: 'prompt_explorer',
77
78
  TeamAuditor: 'team_auditor',
@@ -557,7 +558,7 @@ export type GetAudienceByAspectKeyQuery = {
557
558
 
558
559
  export type LocaleCountryMessagesQuery = {
559
560
  locale_countryCodesPage: Array<{
560
- countryCodes: Array<string> | null;
561
+ countryCodes: Array<string>;
561
562
  countryCodesPageMessageLinks: Array<{
562
563
  id: number;
563
564
  message: {
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,o,t,n){function r(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function l(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):r(e.value).then(s,l)}a((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(o){return a([e,o])}}function a(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,r&&(i=l[0]&2?r["return"]:l[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;if(r=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;r=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=o.call(e,t)}catch(e){l=[6,e];r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-163ff5b5.system.js","./p-87badea9.system.js","./p-168e5b5f.system.js","./p-23e7c655.system.js","./p-bc7bf53e.system.js","./p-771fbeb3.system.js","./p-79f3c4f5.system.js"],(function(e){"use strict";var o,t,n,r,i,s,l,a,h,d,u,f,c,m,v,g,w,p,z,b,x,y,k,_;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){r=e._;i=e.e;s=e.i;l=e.f;a=e.z;h=e.g;d=e.m},function(e){u=e.v;f=e.d;c=e.l;m=e.w;v=e.t;g=e.y;w=e.z;p=e.a;z=e.A;b=e.B;x=e.C;y=e.D},function(e){k=e.c},function(e){_=e.g},function(){},function(){}],execute:function(){var T=this;var E=r;var L=function(){return E.Date.now()};var j=L;var O=/\s/;function I(e){var o=e.length;while(o--&&O.test(e.charAt(o))){}return o}var S=I;var X=S;var R=/^\s+/;function C(e){return e?e.slice(0,X(e)+1).replace(R,""):e}var D=C;var B=i,A=s;var H="[object Symbol]";function M(e){return typeof e=="symbol"||A(e)&&B(e)==H}var F=M;var N=D,P=l,$=F;var U=0/0;var W=/^[-+]0x[0-9a-f]+$/i;var G=/^0b[01]+$/i;var K=/^0o[0-7]+$/i;var q=parseInt;function J(e){if(typeof e=="number"){return e}if($(e)){return U}if(P(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=P(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=N(e);var t=G.test(e);return t||K.test(e)?q(e.slice(2),t?2:8):W.test(e)?U:+e}var Q=J;var V=l,Y=j,Z=Q;var ee="Expected a function";var oe=Math.max,te=Math.min;function ne(e,o,t){var n,r,i,s,l,a,h=0,d=false,u=false,f=true;if(typeof e!="function"){throw new TypeError(ee)}o=Z(o)||0;if(V(t)){d=!!t.leading;u="maxWait"in t;i=u?oe(Z(t.maxWait)||0,o):i;f="trailing"in t?!!t.trailing:f}function c(o){var t=n,i=r;n=r=undefined;h=o;s=e.apply(i,t);return s}function m(e){h=e;l=setTimeout(w,o);return d?c(e):s}function v(e){var t=e-a,n=e-h,r=o-t;return u?te(r,i-n):r}function g(e){var t=e-a,n=e-h;return a===undefined||t>=o||t<0||u&&n>=i}function w(){var e=Y();if(g(e)){return p(e)}l=setTimeout(w,v(e))}function p(e){l=undefined;if(f&&n){return c(e)}n=r=undefined;return s}function z(){if(l!==undefined){clearTimeout(l)}h=0;n=a=r=l=undefined}function b(){return l===undefined?s:p(Y())}function x(){var e=Y(),t=g(e);n=arguments;r=this;a=e;if(t){if(l===undefined){return m(a)}if(u){clearTimeout(l);l=setTimeout(w,o);return c(a)}}if(l===undefined){l=setTimeout(w,o)}return s}x.cancel=z;x.flush=b;return x}var re=ne;var ie=function(e){return __awaiter(T,[e],void 0,(function(e){var o,t,n,r,i,s;var l=e.items,a=e.shipFrom,h=e.shipTo;return __generator(this,(function(e){switch(e.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-elements/check-item-restrictions");n={items:l,shipFrom:a,shipTo:h};return[4,u(t,{body:n,method:"POST"})];case 1:r=e.sent(),i=r.errors,s=r.json;if(i.length||!s){f("Error fetching item restrictions: ".concat((o=i.find(Boolean))===null||o===void 0?void 0:o.message));return[2,[]]}return[2,s.filter(Boolean)]}}))}))};var se=function(e){return __awaiter(T,void 0,void 0,(function(){var o,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:if(!e.length){return[2,[]]}o=c.selectedCountryCode;if(!o){f("Hello Could not check item restrictions - No country code selected");return[2,[]]}t=e.map((function(e){return{description:e.description,name:e.title}}));return[4,ie({items:t,shipFrom:"AD",shipTo:o})];case 1:n=i.sent();r=n.map((function(e){var o;var n=((o=t.filter((function(o){return o.description===e.itemDescription})).find(Boolean))===null||o===void 0?void 0:o.name)||"";return Object.assign(Object.assign({},e),{name:n})}));return[2,r]}}))}))};var le=function(){var e=window.location.href;var o=a.helloSettings,t=o.cartUrlPattern,n=o.homepageUrlPattern,r=o.productDetailUrlPattern,i=o.productListUrlPattern;if(t&&new RegExp(t).test(e)){return"cart"}if(r&&new RegExp(r).test(e)){return"productDetail"}if(i&&new RegExp(i).test(e)){return"productList"}if(n&&new RegExp(n).test(e)){return"home"}return""};var ae=function(){var e,o;var t=a.helloSettings,n=t.productAddToCartElementSelector,r=t.productDescriptionElementSelector,i=t.productTitleElementSelector,s=t.restrictionBehavior;if(!i||!r){f("Hello Could not check item restrictions - must provide title and description selectors.")}var l=i&&m(i)&&document.querySelectorAll(i)||[];var h=r&&m(r)&&document.querySelectorAll(r)||[];if(l.length!==h.length){f("Hello Could not check item restrictions - Title and description selectors do not match");return[]}var d=s==="RESTRICT_AND_BLOCK";var u=d&&n&&m(n)&&document.querySelectorAll(n)||[];if(d&&u.length!==h.length){f('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match')}var c=[];for(var v=0;v<l.length;v++){var g=l[v];var w=h[v];var p=u[v];if(g&&w){var z={cartButtonNode:p||null,description:((e=w.textContent)===null||e===void 0?void 0:e.trim())||"",title:((o=g.textContent)===null||o===void 0?void 0:o.trim())||""};c.push(z)}}return c};var he=":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:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:16px;border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:16px;padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - 16px));transform:translateX(calc(100% - 16px));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .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}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";var de=he;var ue=3e3;var fe=500;var ce=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(e){var o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(o&&t.allRestrictedItems.length){var n=v("click to learn more");var r=a.currentHelloPage==="productDetail"?v("Restricted item"):v("Restricted items found");return"".concat(r," - ").concat(n)}switch(a.currentHelloPage){case"cart":return v("Prepay duties and taxes at checkout");case"productList":case"productDetail":return v("See duty and tax thresholds");default:return"".concat(v("Welcome to")," ").concat(e)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.getNewItemRestrictions=function(e){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(!o||a.helloSettings.restrictionBehavior==="DISABLED"){return[2,[]]}return[4,se(e)];case 1:t=n.sent();return[2,t]}}))}))};this.triggerShowPeekMessage=function(){t.peekMessage=t.getHelloPeekMessage(a.organizationName);var e=a.helloSettings,o=e.peekMessageBehavior,n=e.peekMessageDelay;var r=n*1e3;if(o==="ENABLED"){setTimeout((function(){t.enableShowPeekMessage();var e=t.allRestrictedItems.some((function(e){return t.productsOnPage.some((function(o){return o.description===e.itemDescription}))}));if(!e){setTimeout((function(){t.showPeekMessage=false}),ue)}}),r)}};this.disableAddToCartButtons=function(){if(t.productsOnPage.length){t.productsOnPage.forEach((function(e){var o,n;var r=t.allRestrictedItems.some((function(o){return o.itemDescription===e.description}));if(r){(o=e.cartButtonNode)===null||o===void 0?void 0:o.setAttribute("disabled","disabled")}else{(n=e.cartButtonNode)===null||n===void 0?void 0:n.removeAttribute("disabled")}}))}};this.handleItemRestrictions=function(){return __awaiter(t,void 0,void 0,(function(){var e,o;var t,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:this.productsOnPage=ae();e=this.productsOnPage.filter((function(e){return!r.allFoundProducts.some((function(o){return o.title===e.title}))}));return[4,this.getNewItemRestrictions(e)];case 1:o=i.sent();(t=this.allRestrictedItems).push.apply(t,o);(n=this.allFoundProducts).push.apply(n,e);this.disableAddToCartButtons();return[2]}}))}))};this.reloadHelloData=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleItemRestrictions()];case 1:e.sent();this.triggerShowPeekMessage();return[2]}}))}))};this.handleProductCountChange=re((function(){var e=a.helloSettings.productTitleElementSelector;if(e){var o=ae();if(t.allFoundProducts.length!==o.length&&window.location.href===t.initialUrl){if(!t.allFoundProducts.length){return}void t.reloadHelloData()}}}),1e3);this.watchProductCountChange=function(){var e=new MutationObserver(t.handleProductCountChange);e.observe(document.body,{childList:true,subtree:true})};this.watchPriceChange=function(){var e=new MutationObserver((function(){return void t.displayCurrency()}));e.observe(document.body,{attributes:true,childList:true,subtree:true})};this.updateHelloOnPageChange=function(){t.watchProductCountChange();setInterval((function(){if(window.location.href!==t.initialUrl){var e=t.initialUrl&&new URL(t.initialUrl);var o=e&&g(e.searchParams);if(o!==c.selectedCountryCode){t.allFoundProducts=[];t.allRestrictedItems=[];t.productsOnPage=[]}t.initialUrl=window.location.href;a.currentHelloPage=le();var n=new URL(window.location.href);var r=g(n.searchParams);if(!r){w(c.selectedCountryCode);return}void t.reloadHelloData()}}),1e3)};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=_(t.helloRef);return o}};this.isShippableCountry=function(e){if(e===void 0){e=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){if(e){p("Hello: not shippable country")}return false}return true};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=a.helloSettings;this.showDialog=false;this.peekMessage="";this.initialUrl="";this.allRestrictedItems=[];this.allFoundProducts=[];this.productsOnPage=[]}e.prototype.componentWillLoad=function(){var e=this;var o=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.helloRef){return[2]}if(a.loadedConfig){this.helloRef.setAttribute("data-zonos-hello-loaded","");this.updateHelloOnPageChange();this.watchPriceChange();this.handleAppearanceSettingsOverrideChange();clearInterval(o)}return[2]}))}))}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!c.exchangeRate){f("Could not display currency. Exchange rate and format data is not available.");return[2]}z();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,b(e)]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,x(e)]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,y(e)]}))}))};e.prototype.openHelloDialog=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.changeShowDialog(e);return[2]}))}))};e.prototype.handleResize=function(){re(this.render.bind(this),fe)};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=h(this.appearanceSettingsOverride.theme)}};e.prototype.render=function(){var e=this;var o,r;var i=(o=a.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){p("Hello is excluded on this url","warn");return null}var s=c.selectedCountryCode;var l=this.mobileLocationOverride||a.helloSettings.mobileLocation;var h=window.innerWidth<768;var u=this.animateFromLeftOverride||h&&l.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var f=l.includes("TOP");var m=d(a.appearance,this.appearanceSettingsOverride);var v=m.theme;var g=(r=this.allRestrictedItems)===null||r===void 0?void 0:r.filter((function(o){return e.productsOnPage.some((function(e){return e.description===o.itemDescription}))}));this.peekMessage=this.getHelloPeekMessage(a.organizationName);var w=this.isShippableCountry()&&!!s;return t(n,{class:"zonos--hello zonos--elements","data-theme":v},w&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:k(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",u&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",f&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:function(){void e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("zonos-text",{class:"zonos--hello-message"},this.peekMessage),s&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:s}))),t("div",{class:k(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:g,setIsOpen:this.changeShowDialog}))))};Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}},enumerable:false,configurable:true});return e}());ce.style=de}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,o,t,n){function r(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function l(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):r(e.value).then(s,l)}a((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(o){return a([e,o])}}function a(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,r&&(i=l[0]&2?r["return"]:l[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;if(r=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;r=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=o.call(e,t)}catch(e){l=[6,e];r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-163ff5b5.system.js","./p-87badea9.system.js","./p-ef9cbb66.system.js","./p-23e7c655.system.js","./p-bc7bf53e.system.js","./p-771fbeb3.system.js","./p-79f3c4f5.system.js"],(function(e){"use strict";var o,t,n,r,i,s,l,a,h,d,u,f,c,m,v,g,w,p,z,b,x,y,k,_;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){r=e._;i=e.e;s=e.i;l=e.f;a=e.z;h=e.g;d=e.m},function(e){u=e.v;f=e.d;c=e.l;m=e.w;v=e.t;g=e.y;w=e.z;p=e.a;z=e.A;b=e.B;x=e.C;y=e.D},function(e){k=e.c},function(e){_=e.g},function(){},function(){}],execute:function(){var T=this;var E=r;var L=function(){return E.Date.now()};var j=L;var O=/\s/;function I(e){var o=e.length;while(o--&&O.test(e.charAt(o))){}return o}var S=I;var X=S;var R=/^\s+/;function C(e){return e?e.slice(0,X(e)+1).replace(R,""):e}var D=C;var B=i,A=s;var H="[object Symbol]";function M(e){return typeof e=="symbol"||A(e)&&B(e)==H}var F=M;var N=D,P=l,$=F;var U=0/0;var W=/^[-+]0x[0-9a-f]+$/i;var G=/^0b[01]+$/i;var K=/^0o[0-7]+$/i;var q=parseInt;function J(e){if(typeof e=="number"){return e}if($(e)){return U}if(P(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=P(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=N(e);var t=G.test(e);return t||K.test(e)?q(e.slice(2),t?2:8):W.test(e)?U:+e}var Q=J;var V=l,Y=j,Z=Q;var ee="Expected a function";var oe=Math.max,te=Math.min;function ne(e,o,t){var n,r,i,s,l,a,h=0,d=false,u=false,f=true;if(typeof e!="function"){throw new TypeError(ee)}o=Z(o)||0;if(V(t)){d=!!t.leading;u="maxWait"in t;i=u?oe(Z(t.maxWait)||0,o):i;f="trailing"in t?!!t.trailing:f}function c(o){var t=n,i=r;n=r=undefined;h=o;s=e.apply(i,t);return s}function m(e){h=e;l=setTimeout(w,o);return d?c(e):s}function v(e){var t=e-a,n=e-h,r=o-t;return u?te(r,i-n):r}function g(e){var t=e-a,n=e-h;return a===undefined||t>=o||t<0||u&&n>=i}function w(){var e=Y();if(g(e)){return p(e)}l=setTimeout(w,v(e))}function p(e){l=undefined;if(f&&n){return c(e)}n=r=undefined;return s}function z(){if(l!==undefined){clearTimeout(l)}h=0;n=a=r=l=undefined}function b(){return l===undefined?s:p(Y())}function x(){var e=Y(),t=g(e);n=arguments;r=this;a=e;if(t){if(l===undefined){return m(a)}if(u){clearTimeout(l);l=setTimeout(w,o);return c(a)}}if(l===undefined){l=setTimeout(w,o)}return s}x.cancel=z;x.flush=b;return x}var re=ne;var ie=function(e){return __awaiter(T,[e],void 0,(function(e){var o,t,n,r,i,s;var l=e.items,a=e.shipFrom,h=e.shipTo;return __generator(this,(function(e){switch(e.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-elements/check-item-restrictions");n={items:l,shipFrom:a,shipTo:h};return[4,u(t,{body:n,method:"POST"})];case 1:r=e.sent(),i=r.errors,s=r.json;if(i.length||!s){f("Error fetching item restrictions: ".concat((o=i.find(Boolean))===null||o===void 0?void 0:o.message));return[2,[]]}return[2,s.filter(Boolean)]}}))}))};var se=function(e){return __awaiter(T,void 0,void 0,(function(){var o,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:if(!e.length){return[2,[]]}o=c.selectedCountryCode;if(!o){f("Hello Could not check item restrictions - No country code selected");return[2,[]]}t=e.map((function(e){return{description:e.description,name:e.title}}));return[4,ie({items:t,shipFrom:"AD",shipTo:o})];case 1:n=i.sent();r=n.map((function(e){var o;var n=((o=t.filter((function(o){return o.description===e.itemDescription})).find(Boolean))===null||o===void 0?void 0:o.name)||"";return Object.assign(Object.assign({},e),{name:n})}));return[2,r]}}))}))};var le=function(){var e=window.location.href;var o=a.helloSettings,t=o.cartUrlPattern,n=o.homepageUrlPattern,r=o.productDetailUrlPattern,i=o.productListUrlPattern;if(t&&new RegExp(t).test(e)){return"cart"}if(r&&new RegExp(r).test(e)){return"productDetail"}if(i&&new RegExp(i).test(e)){return"productList"}if(n&&new RegExp(n).test(e)){return"home"}return""};var ae=function(){var e,o;var t=a.helloSettings,n=t.productAddToCartElementSelector,r=t.productDescriptionElementSelector,i=t.productTitleElementSelector,s=t.restrictionBehavior;if(!i||!r){f("Hello Could not check item restrictions - must provide title and description selectors.")}var l=i&&m(i)&&document.querySelectorAll(i)||[];var h=r&&m(r)&&document.querySelectorAll(r)||[];if(l.length!==h.length){f("Hello Could not check item restrictions - Title and description selectors do not match");return[]}var d=s==="RESTRICT_AND_BLOCK";var u=d&&n&&m(n)&&document.querySelectorAll(n)||[];if(d&&u.length!==h.length){f('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match')}var c=[];for(var v=0;v<l.length;v++){var g=l[v];var w=h[v];var p=u[v];if(g&&w){var z={cartButtonNode:p||null,description:((e=w.textContent)===null||e===void 0?void 0:e.trim())||"",title:((o=g.textContent)===null||o===void 0?void 0:o.trim())||""};c.push(z)}}return c};var he=":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:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:16px;border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:16px;padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - 16px));transform:translateX(calc(100% - 16px));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .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}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";var de=he;var ue=3e3;var fe=500;var ce=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(e){var o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(o&&t.allRestrictedItems.length){var n=v("click to learn more");var r=a.currentHelloPage==="productDetail"?v("Restricted item"):v("Restricted items found");return"".concat(r," - ").concat(n)}switch(a.currentHelloPage){case"cart":return v("Prepay duties and taxes at checkout");case"productList":case"productDetail":return v("See duty and tax thresholds");default:return"".concat(v("Welcome to")," ").concat(e)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.getNewItemRestrictions=function(e){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(!o||a.helloSettings.restrictionBehavior==="DISABLED"){return[2,[]]}return[4,se(e)];case 1:t=n.sent();return[2,t]}}))}))};this.triggerShowPeekMessage=function(){t.peekMessage=t.getHelloPeekMessage(a.organizationName);var e=a.helloSettings,o=e.peekMessageBehavior,n=e.peekMessageDelay;var r=n*1e3;if(o==="ENABLED"){setTimeout((function(){t.enableShowPeekMessage();var e=t.allRestrictedItems.some((function(e){return t.productsOnPage.some((function(o){return o.description===e.itemDescription}))}));if(!e){setTimeout((function(){t.showPeekMessage=false}),ue)}}),r)}};this.disableAddToCartButtons=function(){if(t.productsOnPage.length){t.productsOnPage.forEach((function(e){var o,n;var r=t.allRestrictedItems.some((function(o){return o.itemDescription===e.description}));if(r){(o=e.cartButtonNode)===null||o===void 0?void 0:o.setAttribute("disabled","disabled")}else{(n=e.cartButtonNode)===null||n===void 0?void 0:n.removeAttribute("disabled")}}))}};this.handleItemRestrictions=function(){return __awaiter(t,void 0,void 0,(function(){var e,o;var t,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:this.productsOnPage=ae();e=this.productsOnPage.filter((function(e){return!r.allFoundProducts.some((function(o){return o.title===e.title}))}));return[4,this.getNewItemRestrictions(e)];case 1:o=i.sent();(t=this.allRestrictedItems).push.apply(t,o);(n=this.allFoundProducts).push.apply(n,e);this.disableAddToCartButtons();return[2]}}))}))};this.reloadHelloData=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleItemRestrictions()];case 1:e.sent();this.triggerShowPeekMessage();return[2]}}))}))};this.handleProductCountChange=re((function(){var e=a.helloSettings.productTitleElementSelector;if(e){var o=ae();if(t.allFoundProducts.length!==o.length&&window.location.href===t.initialUrl){if(!t.allFoundProducts.length){return}void t.reloadHelloData()}}}),1e3);this.watchProductCountChange=function(){var e=new MutationObserver(t.handleProductCountChange);e.observe(document.body,{childList:true,subtree:true})};this.watchPriceChange=function(){var e=new MutationObserver((function(){return void t.displayCurrency()}));e.observe(document.body,{attributes:true,childList:true,subtree:true})};this.updateHelloOnPageChange=function(){t.watchProductCountChange();setInterval((function(){if(window.location.href!==t.initialUrl){var e=t.initialUrl&&new URL(t.initialUrl);var o=e&&g(e.searchParams);if(o!==c.selectedCountryCode){t.allFoundProducts=[];t.allRestrictedItems=[];t.productsOnPage=[]}t.initialUrl=window.location.href;a.currentHelloPage=le();var n=new URL(window.location.href);var r=g(n.searchParams);if(!r){w(c.selectedCountryCode);return}void t.reloadHelloData()}}),1e3)};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=_(t.helloRef);return o}};this.isShippableCountry=function(e){if(e===void 0){e=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){if(e){p("Hello: not shippable country")}return false}return true};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=a.helloSettings;this.showDialog=false;this.peekMessage="";this.initialUrl="";this.allRestrictedItems=[];this.allFoundProducts=[];this.productsOnPage=[]}e.prototype.componentWillLoad=function(){var e=this;var o=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.helloRef){return[2]}if(a.loadedConfig){this.helloRef.setAttribute("data-zonos-hello-loaded","");this.updateHelloOnPageChange();this.watchPriceChange();this.handleAppearanceSettingsOverrideChange();clearInterval(o)}return[2]}))}))}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!c.exchangeRate){f("Could not display currency. Exchange rate and format data is not available.");return[2]}z();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,b(e)]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,x(e)]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,y(e)]}))}))};e.prototype.openHelloDialog=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.changeShowDialog(e);return[2]}))}))};e.prototype.handleResize=function(){re(this.render.bind(this),fe)};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=h(this.appearanceSettingsOverride.theme)}};e.prototype.render=function(){var e=this;var o,r;var i=(o=a.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){p("Hello is excluded on this url","warn");return null}var s=c.selectedCountryCode;var l=this.mobileLocationOverride||a.helloSettings.mobileLocation;var h=window.innerWidth<768;var u=this.animateFromLeftOverride||h&&l.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var f=l.includes("TOP");var m=d(a.appearance,this.appearanceSettingsOverride);var v=m.theme;var g=(r=this.allRestrictedItems)===null||r===void 0?void 0:r.filter((function(o){return e.productsOnPage.some((function(e){return e.description===o.itemDescription}))}));this.peekMessage=this.getHelloPeekMessage(a.organizationName);var w=this.isShippableCountry()&&!!s;return t(n,{class:"zonos--hello zonos--elements","data-theme":v},w&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:k(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",u&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",f&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:function(){void e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("zonos-text",{class:"zonos--hello-message"},this.peekMessage),s&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:s}))),t("div",{class:k(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:g,setIsOpen:this.changeShowDialog}))))};Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}},enumerable:false,configurable:true});return e}());ce.style=de}}}));