@zonos/elements 1.3.286 → 1.3.287

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 (656) hide show
  1. package/README.md +9 -1
  2. package/dist/cjs/RemoveIcon-CuM1YmjP.js +5 -0
  3. package/dist/cjs/{cart-0cf8897b.js → cart-CV4buPlT.js} +17 -27
  4. package/dist/cjs/{collect-79131e52.js → collect-jzWKzrV7.js} +17 -113
  5. package/dist/cjs/debounce-5sZmmlCI.js +9 -0
  6. package/dist/cjs/debounce-Nu2lJW4A.js +405 -0
  7. package/dist/cjs/{formatStringWithLinks-c25b4018.js → formatStringWithLinks-vOVkAjlu.js} +1 -1
  8. package/dist/cjs/{getBorderRadius-97fd5e02.js → getBorderRadius-DGZiQu09.js} +1 -1
  9. package/dist/cjs/{getContrastColor-956dfaf7.js → getContrastColor-B2Kn8XHA.js} +2 -2
  10. package/dist/cjs/{getMissingRequiredShippingFields-a8f04267.js → getMissingRequiredShippingFields-r5vYIqoX.js} +1 -1
  11. package/dist/cjs/{handleFetch-954f30e1.js → handleFetch-DQLhurnE.js} +4 -3
  12. package/dist/cjs/{hasInclusivePrice-d0cd2007.js → hasInclusivePrice-BZMQohG9.js} +1 -1
  13. package/dist/cjs/{helpers-5bdbb68c.js → helpers-ClOZ11A9.js} +0 -3
  14. package/dist/cjs/{index-b1f95d96.js → index-DAAr465v.js} +1252 -580
  15. package/dist/cjs/index.cjs.js +17 -21
  16. package/dist/cjs/{invoice-254ae23b.js → invoice-CHw-mJdS.js} +6 -6
  17. package/dist/cjs/{isContrastColor-30f84a91.js → isContrastColor-B9ldIdpa.js} +1 -1
  18. package/dist/cjs/isDarkColor-f-fD9c2l.js +1187 -0
  19. package/dist/cjs/loader.cjs.js +3 -5
  20. package/dist/cjs/{localization-fb2ece37.js → localization-CxXsmxs5.js} +4 -4
  21. package/dist/cjs/{paypal-8ca67278.js → paypal-BLuHeOJH.js} +10 -9
  22. package/dist/cjs/{placeTestOrder-12b63822.js → placeTestOrder-VK_CMeq0.js} +3 -3
  23. package/dist/cjs/{renderCheckoutCurrency-a1f71587.js → renderCheckoutCurrency-CC4CAy-a.js} +2 -2
  24. package/dist/cjs/{renderFallback-bc20ee20.js → renderFallback-Bme86uk8.js} +1 -1
  25. package/dist/cjs/{shouldRenderTaxIdInput-7d19556c.js → shouldRenderTaxIdInput-TxekHCp7.js} +2 -2
  26. package/dist/cjs/{shouldShowLanguageSelect-82985128.js → shouldShowLanguageSelect-Bj_jKWPK.js} +1 -1
  27. package/dist/cjs/{submitGtag-8a25f001.js → submitGtag-CcEL-w5D.js} +3 -3
  28. package/dist/cjs/throttle-BcxGntLr.js +87 -0
  29. package/dist/cjs/{updateCheckoutSessionAttributes-de7b1466.js → updateCheckoutSessionAttributes-Dltl5RBx.js} +3 -3
  30. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +644 -692
  31. package/dist/cjs/zonos-address-display_2.cjs.entry.js +13 -17
  32. package/dist/cjs/zonos-address_4.cjs.entry.js +50 -40
  33. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +15 -16
  34. package/dist/cjs/zonos-badge.cjs.entry.js +7 -10
  35. package/dist/cjs/zonos-banner.cjs.entry.js +6 -9
  36. package/dist/cjs/zonos-button_3.cjs.entry.js +18 -21
  37. package/dist/cjs/zonos-card_5.cjs.entry.js +34 -35
  38. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +85 -83
  39. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +10 -14
  40. package/dist/cjs/zonos-checkout.cjs.entry.js +50 -34
  41. package/dist/cjs/zonos-collapse.cjs.entry.js +5 -8
  42. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +18 -23
  43. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +59 -55
  44. package/dist/cjs/zonos-collect.cjs.entry.js +20 -23
  45. package/dist/cjs/zonos-component.cjs.entry.js +3 -6
  46. package/dist/cjs/zonos-controller.cjs.entry.js +13 -16
  47. package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -11
  48. package/dist/cjs/zonos-country-select_4.cjs.entry.js +68 -57
  49. package/dist/cjs/zonos-elements.cjs.js +7 -7
  50. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +22 -23
  51. package/dist/cjs/zonos-hello.cjs.entry.js +19 -17
  52. package/dist/cjs/zonos-input.cjs.entry.js +10 -11
  53. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +17 -21
  54. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +57 -52
  55. package/dist/cjs/zonos-invoice.cjs.entry.js +19 -22
  56. package/dist/cjs/zonos-language-select_2.cjs.entry.js +11 -15
  57. package/dist/cjs/zonos-link.cjs.entry.js +3 -6
  58. package/dist/cjs/zonos-logo.cjs.entry.js +6 -9
  59. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +15 -19
  60. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +11 -14
  61. package/dist/cjs/zonos-stripe-input.cjs.entry.js +15 -14
  62. package/dist/cjs/zonos-text.cjs.entry.js +8 -11
  63. package/dist/cjs/zonos-tooltip.cjs.entry.js +4 -7
  64. package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -9
  65. package/dist/cjs/zonosStore-BCNYr6Tk.js +3808 -0
  66. package/dist/collection/__tests__/jsxWithChildren.types.js +13 -0
  67. package/dist/collection/collection-manifest.json +3 -2
  68. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +13 -10
  69. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +4 -3
  70. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -5
  71. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +17 -13
  72. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +1 -1
  73. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -4
  74. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -5
  75. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +5 -4
  76. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +8 -8
  77. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +5 -4
  78. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +1 -1
  79. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +18 -14
  80. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -10
  81. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -2
  82. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +7 -7
  83. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +8 -6
  84. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +6 -5
  85. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +4 -4
  86. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +7 -7
  87. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  88. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +2 -2
  89. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +1 -1
  90. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +8 -6
  91. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +6 -5
  92. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +4 -4
  93. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +7 -7
  94. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  95. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +1 -1
  96. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +2 -2
  97. package/dist/collection/components/common/zonos-badge/zonos-badge.js +8 -7
  98. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -4
  99. package/dist/collection/components/common/zonos-button/zonos-button.js +29 -25
  100. package/dist/collection/components/common/zonos-card/zonos-card.js +9 -8
  101. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -12
  102. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +9 -6
  103. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  104. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +15 -15
  105. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +6 -5
  106. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  107. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +22 -21
  108. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +3 -2
  109. package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -7
  110. package/dist/collection/components/common/zonos-input/zonos-input.js +7 -7
  111. package/dist/collection/components/common/zonos-link/zonos-link.js +7 -7
  112. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +4 -4
  113. package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -3
  114. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +8 -7
  115. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +1 -1
  116. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +15 -12
  117. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +2 -2
  118. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +3 -3
  119. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +17 -17
  120. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +23 -20
  121. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +19 -19
  122. package/dist/collection/components/common/zonos-text/zonos-text.js +15 -11
  123. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -3
  124. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  125. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +3 -2
  126. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +7 -6
  127. package/dist/collection/components/component-template/zonos-component/zonos-component.js +3 -3
  128. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +16 -12
  129. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +3 -2
  130. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -11
  131. package/dist/collection/components/main/zonos-controller.js +18 -10
  132. package/dist/collection/components/store/checkout/stripe.js +1 -1
  133. package/dist/collection/components/stripe/zonos-address/zonos-address.js +9 -8
  134. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +6 -4
  135. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +13 -10
  136. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +4 -4
  137. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -2
  138. package/dist/collection/components/utils/checkout/isEuDapRemittance.js +1 -1
  139. package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +1 -1
  140. package/dist/collection/scripts/cart/_setupCartData.js +2 -2
  141. package/dist/collection/scripts/cart/_setupCartDataWithSettings.js +2 -2
  142. package/dist/collection/types/generated/graphql.internal.types.js +5 -0
  143. package/dist/esm/RemoveIcon-C2QMVeWW.js +3 -0
  144. package/dist/esm/{cart-d04742f5.js → cart-ekBk_gxV.js} +18 -28
  145. package/dist/esm/{collect-4c310a16.js → collect-33rMINDo.js} +17 -113
  146. package/dist/esm/debounce-D4ko2kvZ.js +403 -0
  147. package/dist/esm/debounce-DWPsxJsW.js +7 -0
  148. package/dist/esm/{formatStringWithLinks-0d48f183.js → formatStringWithLinks-BcMPqGl0.js} +1 -1
  149. package/dist/esm/{getBorderRadius-1f7be586.js → getBorderRadius-HwG64EKM.js} +1 -1
  150. package/dist/esm/{getContrastColor-4c0ae8c1.js → getContrastColor-CfCPlW9U.js} +2 -2
  151. package/dist/esm/{getMissingRequiredShippingFields-f0878e32.js → getMissingRequiredShippingFields-u1nhQzJ1.js} +1 -1
  152. package/dist/esm/{handleFetch-a844cac1.js → handleFetch-D5GYDF-O.js} +4 -3
  153. package/dist/esm/{hasInclusivePrice-d801be22.js → hasInclusivePrice-CAVXi310.js} +1 -1
  154. package/dist/esm/{helpers-2f6955b1.js → helpers-DJIdCwJ5.js} +0 -3
  155. package/dist/esm/{index-cfd394c8.js → index-_lt63o7c.js} +1253 -561
  156. package/dist/esm/index.js +20 -22
  157. package/dist/esm/{invoice-86487dac.js → invoice-BNDWuVsD.js} +6 -6
  158. package/dist/esm/{isContrastColor-9fa0d013.js → isContrastColor-CWLU13s9.js} +1 -1
  159. package/dist/esm/isDarkColor-YdrG78th.js +1184 -0
  160. package/dist/esm/loader.js +4 -4
  161. package/dist/esm/{localization-36a4dc22.js → localization-AOqYXGdP.js} +5 -5
  162. package/dist/esm/{paypal-997935ab.js → paypal-CW1D2XqZ.js} +10 -9
  163. package/dist/esm/{placeTestOrder-a53f2056.js → placeTestOrder-nhmsLLOA.js} +3 -3
  164. package/dist/esm/{renderCheckoutCurrency-e0e16eb7.js → renderCheckoutCurrency-BQANmZyM.js} +2 -2
  165. package/dist/esm/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
  166. package/dist/esm/{shouldRenderTaxIdInput-ef7b5860.js → shouldRenderTaxIdInput-CKyZ6Zni.js} +2 -2
  167. package/dist/esm/{shouldShowLanguageSelect-328f50e2.js → shouldShowLanguageSelect-BQFCXouB.js} +1 -1
  168. package/dist/esm/{submitGtag-71c450b6.js → submitGtag-CCGQS060.js} +4 -4
  169. package/dist/esm/throttle-D5GyA3yr.js +85 -0
  170. package/dist/esm/{updateCheckoutSessionAttributes-23b222de.js → updateCheckoutSessionAttributes-eRSqdC74.js} +3 -3
  171. package/dist/esm/zonos-address-completion-dialog_7.entry.js +644 -690
  172. package/dist/esm/zonos-address-display_2.entry.js +13 -15
  173. package/dist/esm/zonos-address_4.entry.js +50 -38
  174. package/dist/esm/zonos-airwallex-payment.entry.js +15 -14
  175. package/dist/esm/zonos-badge.entry.js +7 -8
  176. package/dist/esm/zonos-banner.entry.js +6 -7
  177. package/dist/esm/zonos-button_3.entry.js +18 -19
  178. package/dist/esm/zonos-card_5.entry.js +34 -33
  179. package/dist/esm/zonos-cart-items_12.entry.js +85 -81
  180. package/dist/esm/zonos-checkbox_2.entry.js +10 -12
  181. package/dist/esm/zonos-checkout.entry.js +50 -32
  182. package/dist/esm/zonos-collapse.entry.js +5 -6
  183. package/dist/esm/zonos-collect-cart-items_3.entry.js +18 -21
  184. package/dist/esm/zonos-collect-finish_6.entry.js +59 -53
  185. package/dist/esm/zonos-collect.entry.js +20 -21
  186. package/dist/esm/zonos-component.entry.js +3 -4
  187. package/dist/esm/zonos-controller.entry.js +13 -14
  188. package/dist/esm/zonos-country-flag.entry.js +8 -9
  189. package/dist/esm/zonos-country-select_4.entry.js +68 -55
  190. package/dist/esm/zonos-elements.js +6 -5
  191. package/dist/esm/zonos-hello-dialog.entry.js +22 -21
  192. package/dist/esm/zonos-hello.entry.js +19 -15
  193. package/dist/esm/zonos-input.entry.js +10 -9
  194. package/dist/esm/zonos-invoice-cart-items_2.entry.js +17 -19
  195. package/dist/esm/zonos-invoice-finish_5.entry.js +57 -50
  196. package/dist/esm/zonos-invoice.entry.js +19 -20
  197. package/dist/esm/zonos-language-select_2.entry.js +11 -13
  198. package/dist/esm/zonos-link.entry.js +3 -4
  199. package/dist/esm/zonos-logo.entry.js +6 -7
  200. package/dist/esm/zonos-policy-consent_2.entry.js +15 -17
  201. package/dist/esm/zonos-shipping-rich-radio.entry.js +11 -12
  202. package/dist/esm/zonos-stripe-input.entry.js +15 -12
  203. package/dist/esm/zonos-text.entry.js +8 -9
  204. package/dist/esm/zonos-tooltip.entry.js +4 -5
  205. package/dist/esm/zonos-v-stack.entry.js +6 -7
  206. package/dist/esm/zonosStore-DrIOAz4M.js +3795 -0
  207. package/dist/esm-es5/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +5 -1
  208. package/dist/esm-es5/VarianceTest-BJmZPrZl.js +9 -0
  209. package/dist/esm-es5/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +4 -0
  210. package/dist/esm-es5/cart-ekBk_gxV.js +517 -0
  211. package/dist/esm-es5/classes-BJHSB96f.js +10 -0
  212. package/dist/esm-es5/cleanHtmlMarkdown-ByGDytaN.js +191 -0
  213. package/dist/esm-es5/collect-33rMINDo.js +241 -0
  214. package/dist/esm-es5/containsNonLatinChars-C04AWRC2.js +11 -0
  215. package/dist/esm-es5/createCustomEvent-XQfWgQLB.js +6 -0
  216. package/dist/esm-es5/debounce-D4ko2kvZ.js +153 -0
  217. package/dist/esm-es5/debounce-DWPsxJsW.js +1 -0
  218. package/dist/esm-es5/formatStringWithLinks-BcMPqGl0.js +8 -0
  219. package/dist/esm-es5/getBorderRadius-HwG64EKM.js +8 -0
  220. package/dist/esm-es5/getContrastColor-CfCPlW9U.js +14 -0
  221. package/dist/esm-es5/getGenericSettingsOverride-HeAZDwVW.js +4 -0
  222. package/dist/esm-es5/getMissingRequiredShippingFields-u1nhQzJ1.js +20 -0
  223. package/dist/esm-es5/handleFetch-D5GYDF-O.js +60 -0
  224. package/dist/esm-es5/hasInclusivePrice-CAVXi310.js +6 -0
  225. package/dist/esm-es5/helpers-DJIdCwJ5.js +23 -0
  226. package/dist/esm-es5/index-_lt63o7c.js +162 -0
  227. package/dist/esm-es5/index.js +227 -1
  228. package/dist/esm-es5/invoice-BNDWuVsD.js +13 -0
  229. package/dist/esm-es5/isColorVariable-DXXUq2Lv.js +11 -0
  230. package/dist/esm-es5/isContrastColor-CWLU13s9.js +5 -0
  231. package/dist/esm-es5/isDarkColor-YdrG78th.js +204 -0
  232. package/dist/esm-es5/isSameHostCheckoutLink-BxAHnL5J.js +16 -0
  233. package/dist/esm-es5/loader.js +1 -1
  234. package/dist/esm-es5/localization-AOqYXGdP.js +332 -0
  235. package/dist/esm-es5/paypal-CW1D2XqZ.js +192 -0
  236. package/dist/esm-es5/placeTestOrder-nhmsLLOA.js +1 -0
  237. package/dist/esm-es5/renderCheckoutCurrency-BQANmZyM.js +13 -0
  238. package/dist/esm-es5/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
  239. package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +17 -0
  240. package/dist/esm-es5/shouldShowLanguageSelect-BQFCXouB.js +7 -0
  241. package/dist/esm-es5/styles-BTIeCf3T.js +6 -0
  242. package/dist/esm-es5/submitGtag-CCGQS060.js +45 -0
  243. package/dist/esm-es5/throttle-D5GyA3yr.js +46 -0
  244. package/dist/esm-es5/updateCheckoutSessionAttributes-eRSqdC74.js +8 -0
  245. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +2966 -1
  246. package/dist/esm-es5/zonos-address-display_2.entry.js +46 -1
  247. package/dist/esm-es5/zonos-address_4.entry.js +179 -1
  248. package/dist/esm-es5/zonos-airwallex-payment.entry.js +49 -1
  249. package/dist/esm-es5/zonos-badge.entry.js +25 -1
  250. package/dist/esm-es5/zonos-banner.entry.js +7 -1
  251. package/dist/esm-es5/zonos-button_3.entry.js +116 -1
  252. package/dist/esm-es5/zonos-card_5.entry.js +33 -1
  253. package/dist/esm-es5/zonos-cart-items_12.entry.js +666 -1
  254. package/dist/esm-es5/zonos-checkbox_2.entry.js +21 -1
  255. package/dist/esm-es5/zonos-checkout.entry.js +1043 -1
  256. package/dist/esm-es5/zonos-collapse.entry.js +15 -1
  257. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +13 -1
  258. package/dist/esm-es5/zonos-collect-finish_6.entry.js +157 -1
  259. package/dist/esm-es5/zonos-collect.entry.js +171 -1
  260. package/dist/esm-es5/zonos-component.entry.js +10 -1
  261. package/dist/esm-es5/zonos-controller.entry.js +198 -1
  262. package/dist/esm-es5/zonos-country-flag.entry.js +6 -1
  263. package/dist/esm-es5/zonos-country-select_4.entry.js +152 -1
  264. package/dist/esm-es5/zonos-elements.js +4 -1
  265. package/dist/esm-es5/zonos-hello-dialog.entry.js +63 -1
  266. package/dist/esm-es5/zonos-hello.entry.js +121 -1
  267. package/dist/esm-es5/zonos-input.entry.js +16 -1
  268. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +7 -1
  269. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +133 -1
  270. package/dist/esm-es5/zonos-invoice.entry.js +115 -1
  271. package/dist/esm-es5/zonos-language-select_2.entry.js +14 -1
  272. package/dist/esm-es5/zonos-link.entry.js +4 -1
  273. package/dist/esm-es5/zonos-logo.entry.js +7 -1
  274. package/dist/esm-es5/zonos-policy-consent_2.entry.js +31 -1
  275. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +5 -1
  276. package/dist/esm-es5/zonos-stripe-input.entry.js +27 -1
  277. package/dist/esm-es5/zonos-text.entry.js +24 -1
  278. package/dist/esm-es5/zonos-tooltip.entry.js +7 -1
  279. package/dist/esm-es5/zonos-v-stack.entry.js +5 -1
  280. package/dist/esm-es5/zonosStore-DrIOAz4M.js +1153 -0
  281. package/dist/scripts/index.d.ts +1171 -521
  282. package/dist/scripts/index.js +1 -1
  283. package/dist/scripts/loadZonos.js +1 -1
  284. package/dist/scripts/zonos.js +1 -1
  285. package/dist/types/__tests__/jsxWithChildren.types.d.ts +14 -0
  286. package/dist/types/__tests__/vitest-globals.d.ts +1 -0
  287. package/dist/types/components/store/checkout/cart.d.ts +9 -9
  288. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +2 -2
  289. package/dist/types/components/utils/api/getLocaleMessages.d.ts +5 -5
  290. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +5 -1
  291. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +2 -2
  292. package/dist/types/components.d.ts +797 -147
  293. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +127 -127
  294. package/dist/types/stencil-public-runtime.d.ts +205 -12
  295. package/dist/types/types/generated/graphql.frontend.types.d.ts +60 -60
  296. package/dist/types/types/generated/graphql.frontend.types.ts +55 -55
  297. package/dist/types/types/generated/graphql.internal.types.d.ts +1290 -1285
  298. package/dist/types/types/generated/graphql.internal.types.ts +1113 -1108
  299. package/dist/zonos-elements/index.esm.js +1 -1
  300. package/dist/zonos-elements/p-02ef0f99.system.entry.js +6 -0
  301. package/dist/zonos-elements/{p-1be53c82.entry.js → p-0466650f.entry.js} +1 -1
  302. package/dist/zonos-elements/p-04bfcd72.system.entry.js +152 -0
  303. package/dist/zonos-elements/p-04cc0dac.system.entry.js +198 -0
  304. package/dist/zonos-elements/p-058f07aa.system.entry.js +7 -0
  305. package/dist/zonos-elements/p-0f603278.system.entry.js +5 -0
  306. package/dist/zonos-elements/{p-bb09ee50.entry.js → p-128485dc.entry.js} +1 -1
  307. package/dist/zonos-elements/p-1568ab06.system.entry.js +117 -0
  308. package/dist/zonos-elements/p-2ba738ec.entry.js +1 -0
  309. package/dist/zonos-elements/{p-6afd5fab.entry.js → p-31ac495f.entry.js} +1 -1
  310. package/dist/zonos-elements/p-34d1545a.entry.js +1 -0
  311. package/dist/zonos-elements/p-39c8a898.entry.js +1 -0
  312. package/dist/zonos-elements/p-3ERbuo5a.js +1 -0
  313. package/dist/zonos-elements/p-450ed170.system.entry.js +46 -0
  314. package/dist/zonos-elements/p-4973f8d8.system.entry.js +180 -0
  315. package/dist/zonos-elements/p-49e7bb1e.system.entry.js +7 -0
  316. package/dist/zonos-elements/p-4a54f664.entry.js +1 -0
  317. package/dist/zonos-elements/p-4ab1c533.system.entry.js +4 -0
  318. package/dist/zonos-elements/p-5024df2d.system.entry.js +666 -0
  319. package/dist/zonos-elements/p-5562a955.system.entry.js +7 -0
  320. package/dist/zonos-elements/p-5836d426.system.entry.js +49 -0
  321. package/dist/zonos-elements/p-5a631080.system.entry.js +13 -0
  322. package/dist/zonos-elements/{p-2ce039e5.entry.js → p-5c08d36b.entry.js} +1 -1
  323. package/dist/zonos-elements/{p-aed4ffb2.entry.js → p-5d3079e8.entry.js} +1 -1
  324. package/dist/zonos-elements/p-629f09dc.system.entry.js +171 -0
  325. package/dist/zonos-elements/p-64e7bc5b.entry.js +1 -0
  326. package/dist/zonos-elements/p-6b0afaa7.entry.js +1 -0
  327. package/dist/zonos-elements/p-6f742021.entry.js +1 -0
  328. package/dist/zonos-elements/p-7681798d.entry.js +1 -0
  329. package/dist/zonos-elements/p-7a5d2211.system.entry.js +115 -0
  330. package/dist/zonos-elements/{p-6de2f9c9.entry.js → p-7ae48e31.entry.js} +1 -1
  331. package/dist/zonos-elements/{p-f37150e8.entry.js → p-8328f44d.entry.js} +1 -1
  332. package/dist/zonos-elements/{p-171a7e1e.entry.js → p-844a743a.entry.js} +1 -1
  333. package/dist/zonos-elements/p-891b47d7.entry.js +1 -0
  334. package/dist/zonos-elements/p-89ddab88.entry.js +1 -0
  335. package/dist/zonos-elements/p-8cd3f1e2.entry.js +1 -0
  336. package/dist/zonos-elements/p-9818f823.entry.js +1 -0
  337. package/dist/zonos-elements/p-9b399685.system.entry.js +10 -0
  338. package/dist/zonos-elements/p-9b6482ef.entry.js +1 -0
  339. package/dist/zonos-elements/{p-2c44e013.entry.js → p-9ebe9a36.entry.js} +1 -1
  340. package/dist/zonos-elements/p-B2EZRfoq.system.js +193 -0
  341. package/dist/zonos-elements/p-B3GRrRtL.system.js +5 -0
  342. package/dist/zonos-elements/p-BANhKkF2.system.js +1 -0
  343. package/dist/zonos-elements/p-BDopxBpR.system.js +6 -0
  344. package/dist/zonos-elements/p-BJufDgh3.js +1 -0
  345. package/dist/zonos-elements/p-BLQFeIez.system.js +191 -0
  346. package/dist/zonos-elements/p-BNtWsPPP.system.js +7 -0
  347. package/dist/zonos-elements/p-BSgVcCxT.system.js +9 -0
  348. package/dist/zonos-elements/p-BXjdMMUy.js +1 -0
  349. package/dist/zonos-elements/p-BbgqQIHv.system.js +9 -0
  350. package/dist/zonos-elements/p-BgSx82zO.system.js +11 -0
  351. package/dist/zonos-elements/p-Bi-s0fp_.system.js +17 -0
  352. package/dist/zonos-elements/p-Bu9WCfUC.system.js +5 -0
  353. package/dist/zonos-elements/p-C19J2XSh.js +1 -0
  354. package/dist/zonos-elements/p-C2QMVeWW.js +1 -0
  355. package/dist/zonos-elements/p-C2j7R11h.system.js +11 -0
  356. package/dist/zonos-elements/p-CEl4pzNq.js +1 -0
  357. package/dist/zonos-elements/p-CICjAi70.js +1 -0
  358. package/dist/zonos-elements/p-CIevpRv_.system.js +162 -0
  359. package/dist/zonos-elements/{p-344a6278.js → p-CJCoACvU.js} +2 -2
  360. package/dist/zonos-elements/p-CKBbIU4b.system.js +14 -0
  361. package/dist/zonos-elements/p-CKTIJ2Gr.js +1 -0
  362. package/dist/zonos-elements/p-CKhl__Kc.system.js +4 -0
  363. package/dist/zonos-elements/p-CPnR_T0a.system.js +1153 -0
  364. package/dist/zonos-elements/p-CQqNJo0D.system.js +13 -0
  365. package/dist/zonos-elements/p-CYdt69j5.system.js +241 -0
  366. package/dist/zonos-elements/p-CZl1nwqv.system.js +46 -0
  367. package/dist/zonos-elements/p-CaAod213.system.js +8 -0
  368. package/dist/zonos-elements/p-CaUXHglQ.system.js +153 -0
  369. package/dist/zonos-elements/{p-45bd8072.system.js → p-CeLaK0Ff.system.js} +1 -1
  370. package/dist/zonos-elements/p-CtEsvWI6.js +1 -0
  371. package/dist/zonos-elements/p-D-DawUYF.system.js +1 -0
  372. package/dist/zonos-elements/p-D0erXw7p.js +1 -0
  373. package/dist/zonos-elements/p-D31lQiWo.system.js +21 -0
  374. package/dist/zonos-elements/p-D5AtAlJx.system.js +13 -0
  375. package/dist/zonos-elements/p-DBOI98r5.system.js +7 -0
  376. package/dist/zonos-elements/{p-41dd1cb8.js → p-DE4a-QD5.js} +1 -1
  377. package/dist/zonos-elements/p-DGsEWFDU.system.js +8 -0
  378. package/dist/zonos-elements/{p-a4c7ee17.js → p-DHwpNxG9.js} +1 -1
  379. package/dist/zonos-elements/p-DIJaXkiE.system.js +332 -0
  380. package/dist/zonos-elements/{p-eef5b0cc.js → p-DJIdCwJ5.js} +1 -1
  381. package/dist/zonos-elements/p-DPW1yXt9.system.js +517 -0
  382. package/dist/zonos-elements/{p-6bdc5c96.js → p-DTgv0QpG.js} +1 -1
  383. package/dist/zonos-elements/p-DW-fW8yR.system.js +205 -0
  384. package/dist/zonos-elements/p-Dj-O6VfM.system.js +7 -0
  385. package/dist/zonos-elements/p-DjuFsKLG.js +1 -0
  386. package/dist/zonos-elements/p-DkpYo2Fs.js +1 -0
  387. package/dist/zonos-elements/p-DnjGkbEy.js +1 -0
  388. package/dist/zonos-elements/p-Dw-5yD9y.system.js +227 -0
  389. package/dist/zonos-elements/p-LypTHRUC.js +1 -0
  390. package/dist/zonos-elements/p-MfsSJh_D.system.js +8 -0
  391. package/dist/zonos-elements/p-YdrG78th.js +1 -0
  392. package/dist/zonos-elements/p-_lt63o7c.js +3 -0
  393. package/dist/zonos-elements/p-a38e62cc.entry.js +1 -0
  394. package/dist/zonos-elements/p-a6faab6a.entry.js +1 -0
  395. package/dist/zonos-elements/p-adfee3a3.entry.js +1 -0
  396. package/dist/zonos-elements/p-b14819ab.system.entry.js +14 -0
  397. package/dist/zonos-elements/{p-0c972ddf.entry.js → p-b68ca96f.entry.js} +1 -1
  398. package/dist/zonos-elements/p-b6deae2b.system.entry.js +5 -0
  399. package/dist/zonos-elements/p-bdba7d9e.system.entry.js +25 -0
  400. package/dist/zonos-elements/p-be64d823.system.entry.js +16 -0
  401. package/dist/zonos-elements/p-beeb9d36.system.entry.js +21 -0
  402. package/dist/zonos-elements/p-cadf6b63.system.entry.js +33 -0
  403. package/dist/zonos-elements/p-cc5306fe.system.entry.js +24 -0
  404. package/dist/zonos-elements/p-cc949df1.system.entry.js +7 -0
  405. package/dist/zonos-elements/{p-5d110c2b.entry.js → p-cdffc9b6.entry.js} +1 -1
  406. package/dist/zonos-elements/p-cf5688f7.entry.js +1 -0
  407. package/dist/zonos-elements/p-d05Ku7gM.system.js +24 -0
  408. package/dist/zonos-elements/p-d33dfc78.system.entry.js +2966 -0
  409. package/dist/zonos-elements/p-d55b9664.system.entry.js +157 -0
  410. package/dist/zonos-elements/p-daf9fa07.system.entry.js +133 -0
  411. package/dist/zonos-elements/p-dcdbc610.system.entry.js +27 -0
  412. package/dist/zonos-elements/p-e101d722.system.entry.js +63 -0
  413. package/dist/zonos-elements/{p-9639a8ed.entry.js → p-e284d329.entry.js} +1 -1
  414. package/dist/zonos-elements/{p-5227aa69.entry.js → p-e9320825.entry.js} +1 -1
  415. package/dist/zonos-elements/p-ea8790aa.entry.js +1 -0
  416. package/dist/zonos-elements/{p-6ee4e027.entry.js → p-eadaefdc.entry.js} +1 -1
  417. package/dist/zonos-elements/p-f27317d3.system.entry.js +31 -0
  418. package/dist/zonos-elements/p-f2cedbcd.system.entry.js +121 -0
  419. package/dist/zonos-elements/p-f57495dc.entry.js +1 -0
  420. package/dist/zonos-elements/p-f6e0aeba.system.entry.js +1043 -0
  421. package/dist/zonos-elements/p-f8fd756a.system.entry.js +15 -0
  422. package/dist/zonos-elements/{p-7ada039e.entry.js → p-fe778437.entry.js} +1 -1
  423. package/dist/zonos-elements/{p-adfbf57b.js → p-i1iCWKdv.js} +1 -1
  424. package/dist/zonos-elements/p-lGLcGvEA.js +1 -0
  425. package/dist/zonos-elements/p-nOb4xPLF.system.js +17 -0
  426. package/dist/zonos-elements/p-nU86HJ5w.js +1 -0
  427. package/dist/zonos-elements/p-pfIceXbY.js +1 -0
  428. package/dist/zonos-elements/p-smUku7Ku.system.js +5 -0
  429. package/dist/zonos-elements/p-t_ClFAJR.js +1 -0
  430. package/dist/zonos-elements/p-uV7m6KrY.system.js +46 -0
  431. package/dist/zonos-elements/p-vN6p_rO1.system.js +11 -0
  432. package/dist/zonos-elements/p-zRjRcLMp.js +1 -0
  433. package/dist/zonos-elements/p-zVLAvre1.system.js +60 -0
  434. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  435. package/dist/zonos-elements/zonos-elements.js +1 -1
  436. package/loader/index.d.ts +1 -1
  437. package/package.json +28 -32
  438. package/dist/cjs/RemoveIcon-081ac073.js +0 -5
  439. package/dist/cjs/debounce-7ca3c878.js +0 -357
  440. package/dist/cjs/isDarkColor-a6e6fd5e.js +0 -1202
  441. package/dist/cjs/throttle-366c204b.js +0 -76
  442. package/dist/cjs/zonosStore-0af0b937.js +0 -3030
  443. package/dist/esm/RemoveIcon-9dc5dd1a.js +0 -3
  444. package/dist/esm/debounce-84ade9c2.js +0 -355
  445. package/dist/esm/isDarkColor-939d8e9c.js +0 -1199
  446. package/dist/esm/throttle-c4c24e86.js +0 -74
  447. package/dist/esm/zonosStore-eca1e364.js +0 -3017
  448. package/dist/esm-es5/VarianceTest-572cecf5.js +0 -1
  449. package/dist/esm-es5/cart-d04742f5.js +0 -1
  450. package/dist/esm-es5/classes-0d95c529.js +0 -1
  451. package/dist/esm-es5/cleanHtmlMarkdown-87d195f6.js +0 -1
  452. package/dist/esm-es5/collect-4c310a16.js +0 -1
  453. package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +0 -1
  454. package/dist/esm-es5/createCustomEvent-58159025.js +0 -1
  455. package/dist/esm-es5/debounce-84ade9c2.js +0 -1
  456. package/dist/esm-es5/formatStringWithLinks-0d48f183.js +0 -1
  457. package/dist/esm-es5/getBorderRadius-1f7be586.js +0 -1
  458. package/dist/esm-es5/getContrastColor-4c0ae8c1.js +0 -1
  459. package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +0 -1
  460. package/dist/esm-es5/getMissingRequiredShippingFields-f0878e32.js +0 -1
  461. package/dist/esm-es5/handleFetch-a844cac1.js +0 -1
  462. package/dist/esm-es5/hasInclusivePrice-d801be22.js +0 -1
  463. package/dist/esm-es5/helpers-2f6955b1.js +0 -1
  464. package/dist/esm-es5/index-cfd394c8.js +0 -13
  465. package/dist/esm-es5/invoice-86487dac.js +0 -1
  466. package/dist/esm-es5/isColorVariable-0a94004f.js +0 -1
  467. package/dist/esm-es5/isContrastColor-9fa0d013.js +0 -1
  468. package/dist/esm-es5/isDarkColor-939d8e9c.js +0 -1
  469. package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +0 -1
  470. package/dist/esm-es5/localization-36a4dc22.js +0 -1
  471. package/dist/esm-es5/paypal-997935ab.js +0 -17
  472. package/dist/esm-es5/placeTestOrder-a53f2056.js +0 -1
  473. package/dist/esm-es5/renderCheckoutCurrency-e0e16eb7.js +0 -1
  474. package/dist/esm-es5/shouldRenderTaxIdInput-ef7b5860.js +0 -1
  475. package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +0 -1
  476. package/dist/esm-es5/styles-6fc2fad9.js +0 -1
  477. package/dist/esm-es5/submitGtag-71c450b6.js +0 -1
  478. package/dist/esm-es5/throttle-c4c24e86.js +0 -1
  479. package/dist/esm-es5/updateCheckoutSessionAttributes-23b222de.js +0 -1
  480. package/dist/esm-es5/zonosStore-eca1e364.js +0 -1
  481. package/dist/zonos-elements/p-01174496.system.js +0 -1
  482. package/dist/zonos-elements/p-06f798ee.system.js +0 -1
  483. package/dist/zonos-elements/p-083a11cd.system.entry.js +0 -1
  484. package/dist/zonos-elements/p-08e7107d.js +0 -1
  485. package/dist/zonos-elements/p-0b29169b.js +0 -1
  486. package/dist/zonos-elements/p-0c327a57.system.entry.js +0 -1
  487. package/dist/zonos-elements/p-0d2f81ce.system.js +0 -1
  488. package/dist/zonos-elements/p-0e199a6c.system.entry.js +0 -1
  489. package/dist/zonos-elements/p-0ff845ec.js +0 -1
  490. package/dist/zonos-elements/p-117953db.system.entry.js +0 -1
  491. package/dist/zonos-elements/p-14afffa8.system.js +0 -1
  492. package/dist/zonos-elements/p-1834f486.js +0 -1
  493. package/dist/zonos-elements/p-1aa93d1e.system.js +0 -1
  494. package/dist/zonos-elements/p-1ac0c631.system.js +0 -1
  495. package/dist/zonos-elements/p-1b8771bb.js +0 -1
  496. package/dist/zonos-elements/p-1cdd27ec.js +0 -1
  497. package/dist/zonos-elements/p-1cfb5c2a.system.entry.js +0 -1
  498. package/dist/zonos-elements/p-1f8648c8.system.entry.js +0 -1
  499. package/dist/zonos-elements/p-23e7c655.system.js +0 -1
  500. package/dist/zonos-elements/p-2670438c.system.js +0 -1
  501. package/dist/zonos-elements/p-27660512.js +0 -1
  502. package/dist/zonos-elements/p-277b77e3.js +0 -1
  503. package/dist/zonos-elements/p-278abdcf.entry.js +0 -1
  504. package/dist/zonos-elements/p-29b60bf3.system.js +0 -1
  505. package/dist/zonos-elements/p-2b97f7ed.js +0 -1
  506. package/dist/zonos-elements/p-2bbe9d91.js +0 -1
  507. package/dist/zonos-elements/p-2c7a425d.entry.js +0 -1
  508. package/dist/zonos-elements/p-2cab1746.system.entry.js +0 -1
  509. package/dist/zonos-elements/p-3490b6d0.entry.js +0 -1
  510. package/dist/zonos-elements/p-398d9022.system.js +0 -1
  511. package/dist/zonos-elements/p-3a26e5e7.system.entry.js +0 -1
  512. package/dist/zonos-elements/p-40a4c8a2.system.js +0 -1
  513. package/dist/zonos-elements/p-40af92a1.system.entry.js +0 -1
  514. package/dist/zonos-elements/p-4160bbc2.system.js +0 -1
  515. package/dist/zonos-elements/p-41f1697a.system.entry.js +0 -1
  516. package/dist/zonos-elements/p-4671fde7.entry.js +0 -1
  517. package/dist/zonos-elements/p-490d7fec.system.entry.js +0 -1
  518. package/dist/zonos-elements/p-4941c096.system.entry.js +0 -1
  519. package/dist/zonos-elements/p-4b159ff3.system.js +0 -1
  520. package/dist/zonos-elements/p-502d6eeb.js +0 -1
  521. package/dist/zonos-elements/p-50d088f7.system.entry.js +0 -1
  522. package/dist/zonos-elements/p-51e4e61a.system.entry.js +0 -1
  523. package/dist/zonos-elements/p-551fa762.system.js +0 -1
  524. package/dist/zonos-elements/p-5b990c91.entry.js +0 -1
  525. package/dist/zonos-elements/p-60832726.system.js +0 -1
  526. package/dist/zonos-elements/p-67426156.system.js +0 -1
  527. package/dist/zonos-elements/p-6890e060.system.js +0 -1
  528. package/dist/zonos-elements/p-6eaf7c9e.system.entry.js +0 -1
  529. package/dist/zonos-elements/p-7176f582.entry.js +0 -1
  530. package/dist/zonos-elements/p-7261e245.system.js +0 -13
  531. package/dist/zonos-elements/p-7352abe9.js +0 -1
  532. package/dist/zonos-elements/p-74230da8.system.js +0 -1
  533. package/dist/zonos-elements/p-76834a0a.system.entry.js +0 -1
  534. package/dist/zonos-elements/p-77993ba1.entry.js +0 -1
  535. package/dist/zonos-elements/p-78f8e594.entry.js +0 -1
  536. package/dist/zonos-elements/p-7ac8846c.system.js +0 -1
  537. package/dist/zonos-elements/p-7b525c75.system.js +0 -1
  538. package/dist/zonos-elements/p-7f688485.system.entry.js +0 -1
  539. package/dist/zonos-elements/p-7fbbdb0f.system.js +0 -1
  540. package/dist/zonos-elements/p-8861d47e.js +0 -1
  541. package/dist/zonos-elements/p-8a0b8175.system.entry.js +0 -1
  542. package/dist/zonos-elements/p-8a6c4017.js +0 -1
  543. package/dist/zonos-elements/p-8be02f3a.system.js +0 -1
  544. package/dist/zonos-elements/p-8d14cb66.entry.js +0 -1
  545. package/dist/zonos-elements/p-8e6338b9.entry.js +0 -1
  546. package/dist/zonos-elements/p-916228fb.system.js +0 -1
  547. package/dist/zonos-elements/p-944c1fb3.entry.js +0 -1
  548. package/dist/zonos-elements/p-947e4402.system.entry.js +0 -1
  549. package/dist/zonos-elements/p-96ab529e.entry.js +0 -1
  550. package/dist/zonos-elements/p-998975a3.system.js +0 -18
  551. package/dist/zonos-elements/p-9ad640b2.system.entry.js +0 -1
  552. package/dist/zonos-elements/p-9ecb9afc.system.entry.js +0 -1
  553. package/dist/zonos-elements/p-a04e2750.system.entry.js +0 -1
  554. package/dist/zonos-elements/p-a1bd3a53.system.js +0 -1
  555. package/dist/zonos-elements/p-a553e132.js +0 -1
  556. package/dist/zonos-elements/p-acb7dee1.system.entry.js +0 -1
  557. package/dist/zonos-elements/p-af19722c.system.js +0 -1
  558. package/dist/zonos-elements/p-b4ae66cb.system.entry.js +0 -1
  559. package/dist/zonos-elements/p-bcaffb85.system.entry.js +0 -1
  560. package/dist/zonos-elements/p-be6cd28c.system.entry.js +0 -1
  561. package/dist/zonos-elements/p-bf37ccc7.system.js +0 -1
  562. package/dist/zonos-elements/p-c0af11fe.system.js +0 -1
  563. package/dist/zonos-elements/p-c112fa12.system.entry.js +0 -1
  564. package/dist/zonos-elements/p-c4321a1a.system.js +0 -1
  565. package/dist/zonos-elements/p-c5d1217f.system.js +0 -1
  566. package/dist/zonos-elements/p-c7329333.entry.js +0 -1
  567. package/dist/zonos-elements/p-c756a59d.system.js +0 -1
  568. package/dist/zonos-elements/p-c77b049c.entry.js +0 -1
  569. package/dist/zonos-elements/p-ca87ada5.system.entry.js +0 -1
  570. package/dist/zonos-elements/p-ce75b047.js +0 -2
  571. package/dist/zonos-elements/p-d1a51fac.js +0 -1
  572. package/dist/zonos-elements/p-d6a73125.system.entry.js +0 -1
  573. package/dist/zonos-elements/p-d75726e5.system.entry.js +0 -1
  574. package/dist/zonos-elements/p-d938f42f.system.js +0 -1
  575. package/dist/zonos-elements/p-dd866ca3.system.entry.js +0 -1
  576. package/dist/zonos-elements/p-dd8a7bf4.entry.js +0 -1
  577. package/dist/zonos-elements/p-de58684b.system.js +0 -1
  578. package/dist/zonos-elements/p-e160b75f.js +0 -1
  579. package/dist/zonos-elements/p-e1ef3984.system.entry.js +0 -1
  580. package/dist/zonos-elements/p-e27b8e18.entry.js +0 -1
  581. package/dist/zonos-elements/p-e4b07f7d.system.entry.js +0 -1
  582. package/dist/zonos-elements/p-e4dc24e1.system.js +0 -1
  583. package/dist/zonos-elements/p-e5865ad9.system.js +0 -1
  584. package/dist/zonos-elements/p-e7d7afda.entry.js +0 -1
  585. package/dist/zonos-elements/p-ebbda085.system.js +0 -1
  586. package/dist/zonos-elements/p-f4720b0a.js +0 -1
  587. package/dist/zonos-elements/p-f8356934.system.entry.js +0 -1
  588. package/dist/zonos-elements/p-f9346f1c.entry.js +0 -1
  589. package/dist/zonos-elements/p-fc5f6113.js +0 -1
  590. package/dist/zonos-elements/p-fe28dbe6.entry.js +0 -1
  591. package/loader/package.json +0 -11
  592. /package/dist/cjs/{CheckoutConfig-27c82f94.js → CheckoutConfig-B7JRM7yr.js} +0 -0
  593. /package/dist/cjs/{ShortAddressCode-bec338b0.js → ShortAddressCode-C5l520-F.js} +0 -0
  594. /package/dist/cjs/{TaxId-cd9d490e.js → TaxId-Q6aDqqWv.js} +0 -0
  595. /package/dist/cjs/{VarianceTest-bec00ea8.js → VarianceTest-C98whVgO.js} +0 -0
  596. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  597. /package/dist/cjs/{buildCartItemsByTempCart-edddbf4b.js → buildCartItemsByTempCart-ILzonEjb.js} +0 -0
  598. /package/dist/cjs/{classes-b7918f56.js → classes-D_DL168u.js} +0 -0
  599. /package/dist/cjs/{cleanHtmlMarkdown-57147de7.js → cleanHtmlMarkdown-DpT-nZLH.js} +0 -0
  600. /package/dist/cjs/{containsNonLatinChars-2be5129b.js → containsNonLatinChars-D_OggJN6.js} +0 -0
  601. /package/dist/cjs/{createCustomEvent-7b6fad95.js → createCustomEvent-Cs5zGImL.js} +0 -0
  602. /package/dist/cjs/{getGenericSettingsOverride-c0ca32b9.js → getGenericSettingsOverride-CL6l6wvX.js} +0 -0
  603. /package/dist/cjs/{getHasMoreSpaceOnRight-4c94667f.js → getHasMoreSpaceOnRight-Cl50u1mb.js} +0 -0
  604. /package/dist/cjs/{isCollectMobileTablet-884d4280.js → isCollectMobileTablet-Cx2nZ15_.js} +0 -0
  605. /package/dist/cjs/{isColorVariable-525dbfa7.js → isColorVariable-CKoJdu9G.js} +0 -0
  606. /package/dist/cjs/{isInvoiceMobileTablet-dde41e4e.js → isInvoiceMobileTablet-CCqFYV6m.js} +0 -0
  607. /package/dist/cjs/{isSameHostCheckoutLink-6148cabb.js → isSameHostCheckoutLink-DbmQ7Ha4.js} +0 -0
  608. /package/dist/cjs/{styles-d1e64fb9.js → styles-nowYls3K.js} +0 -0
  609. /package/dist/esm/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +0 -0
  610. /package/dist/esm/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
  611. /package/dist/esm/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
  612. /package/dist/esm/{VarianceTest-572cecf5.js → VarianceTest-BJmZPrZl.js} +0 -0
  613. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  614. /package/dist/esm/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +0 -0
  615. /package/dist/esm/{classes-0d95c529.js → classes-BJHSB96f.js} +0 -0
  616. /package/dist/esm/{cleanHtmlMarkdown-87d195f6.js → cleanHtmlMarkdown-ByGDytaN.js} +0 -0
  617. /package/dist/esm/{containsNonLatinChars-2d8810c3.js → containsNonLatinChars-C04AWRC2.js} +0 -0
  618. /package/dist/esm/{createCustomEvent-58159025.js → createCustomEvent-XQfWgQLB.js} +0 -0
  619. /package/dist/esm/{getGenericSettingsOverride-0bc3e118.js → getGenericSettingsOverride-HeAZDwVW.js} +0 -0
  620. /package/dist/esm/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
  621. /package/dist/esm/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
  622. /package/dist/esm/{isColorVariable-0a94004f.js → isColorVariable-DXXUq2Lv.js} +0 -0
  623. /package/dist/esm/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
  624. /package/dist/esm/{isSameHostCheckoutLink-c1b88ab7.js → isSameHostCheckoutLink-BxAHnL5J.js} +0 -0
  625. /package/dist/esm/{styles-6fc2fad9.js → styles-BTIeCf3T.js} +0 -0
  626. /package/dist/esm-es5/{RemoveIcon-9dc5dd1a.js → RemoveIcon-C2QMVeWW.js} +0 -0
  627. /package/dist/esm-es5/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
  628. /package/dist/esm-es5/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
  629. /package/dist/esm-es5/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  630. /package/dist/esm-es5/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
  631. /package/dist/esm-es5/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
  632. /package/dist/esm-es5/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
  633. /package/dist/zonos-elements/{p-2770ba48.system.js → p-0D0aCMu6.system.js} +0 -0
  634. /package/dist/zonos-elements/{p-b4b7f705.js → p-BJHSB96f.js} +0 -0
  635. /package/dist/zonos-elements/{p-0a377722.js → p-BJmZPrZl.js} +0 -0
  636. /package/dist/zonos-elements/{p-96d77739.js → p-BTIeCf3T.js} +0 -0
  637. /package/dist/zonos-elements/{p-56ba5cbf.system.js → p-BbPAtVJG.system.js} +0 -0
  638. /package/dist/zonos-elements/{p-11206fe2.js → p-BxAHnL5J.js} +0 -0
  639. /package/dist/zonos-elements/{p-cc6ad18a.js → p-ByGDytaN.js} +0 -0
  640. /package/dist/zonos-elements/{p-83666056.js → p-BycjkdlE.js} +0 -0
  641. /package/dist/zonos-elements/{p-0c64dbbb.js → p-C04AWRC2.js} +0 -0
  642. /package/dist/zonos-elements/{p-655ec440.system.js → p-C29tlYn0.system.js} +0 -0
  643. /package/dist/zonos-elements/{p-2adbbce7.system.js → p-CLDnjFm5.system.js} +0 -0
  644. /package/dist/zonos-elements/{p-989cb22b.system.js → p-Cby4EkFu.system.js} +0 -0
  645. /package/dist/zonos-elements/{p-1f3549c6.js → p-Clej0Ffe.js} +0 -0
  646. /package/dist/zonos-elements/{p-bcf5cffb.js → p-Cye-evFK.js} +0 -0
  647. /package/dist/zonos-elements/{p-b2d81c98.js → p-D5SpFsQJ.js} +0 -0
  648. /package/dist/zonos-elements/{p-5883217a.js → p-DAscqB23.js} +0 -0
  649. /package/dist/zonos-elements/{p-579932a7.js → p-DGlnuxEX.js} +0 -0
  650. /package/dist/zonos-elements/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  651. /package/dist/zonos-elements/{p-ae393255.js → p-DXXUq2Lv.js} +0 -0
  652. /package/dist/zonos-elements/{p-e7b0c156.js → p-HeAZDwVW.js} +0 -0
  653. /package/dist/zonos-elements/{p-595f5dd2.js → p-XQfWgQLB.js} +0 -0
  654. /package/dist/zonos-elements/{p-bc7bf53e.system.js → p-Z99tSPFR.system.js} +0 -0
  655. /package/dist/zonos-elements/{p-6f23a26a.system.js → p-_GDmY2H7.system.js} +0 -0
  656. /package/dist/zonos-elements/{p-1d42cd20.js → p-nJ6oI8-n.js} +0 -0
@@ -1,17 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):o(e.value).then(i,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(t=0)),t)try{if(n=1,o&&(a=u[0]&2?o["return"]:u[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;if(o=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;o=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{z as zonosStore,c as createStore}from"./zonosStore-eca1e364.js";import{t as trackConversionEvent,y as isPolicyConsentRequired,G as policyConsentStore,C as validateCheckoutSession,b as stripeStore,d as cartStore,n as stripeStoreHandleInventoryCheck,A as storeCreditStoreApplyCredit,L as stripeStoreRecordPolicyConsent,B as storeCreditStoreCoversFullAmount,D as storeCreditStoreCreateOrder,x as cartStoreNextStep,j as cartStoreClearCheckoutInterval,K as storeCreditStoreGetEffectiveAmount}from"./cart-d04742f5.js";import{t as translate,s as storageStore}from"./localization-36a4dc22.js";import{h as handleFetch,g as getIsTestMode,l as logError,j as jsonParse}from"./handleFetch-a844cac1.js";import{i as isContrastColor}from"./isContrastColor-9fa0d013.js";import{l as log}from"./VarianceTest-572cecf5.js";import{i as isAnalyticsRelayInIframe,e as enqueueRelayEvent,s as submitGtag}from"./submitGtag-71c450b6.js";
2
- /*!
3
- * paypal-js v8.4.2 (2025-09-04T17:21:30.135Z)
4
- * Copyright 2020-present, PayPal, Inc. All rights reserved.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */function __rest$1(e,r){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0)t[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++){if(r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o]))t[n[o]]=e[n[o]]}return t}typeof SuppressedError==="function"?SuppressedError:function(e,r,t){var n=new Error(t);return n.name="SuppressedError",n.error=e,n.suppressed=r,n};function findScript(e,r){var t=document.querySelector('script[src="'.concat(e,'"]'));if(t===null)return null;var n=createScriptElement(e,r);var o=t.cloneNode();delete o.dataset.uidAuto;if(Object.keys(o.dataset).length!==Object.keys(n.dataset).length){return null}var a=true;Object.keys(o.dataset).forEach((function(e){if(o.dataset[e]!==n.dataset[e]){a=false}}));return a?t:null}function insertScriptElement(e){var r=e.url,t=e.attributes,n=e.onSuccess,o=e.onError;var a=createScriptElement(r,t);a.onerror=o;a.onload=n;document.head.insertBefore(a,document.head.firstElementChild)}function processOptions(e){var r=e.sdkBaseUrl,t=e.environment,n=__rest$1(e,["sdkBaseUrl","environment"]);var o=r||processSdkBaseUrl(t);var a=n;var i=Object.keys(a).filter((function(e){return typeof a[e]!=="undefined"&&a[e]!==null&&a[e]!==""})).reduce((function(e,r){var t=a[r].toString();r=camelCaseToKebabCase(r);if(r.substring(0,4)==="data"||r==="crossorigin"){e.attributes[r]=t}else{e.queryParams[r]=t}return e}),{queryParams:{},attributes:{}}),u=i.queryParams,s=i.attributes;if(u["merchant-id"]&&u["merchant-id"].indexOf(",")!==-1){s["data-merchant-id"]=u["merchant-id"];u["merchant-id"]="*"}return{url:"".concat(o,"?").concat(objectToQueryString(u)),attributes:s}}function camelCaseToKebabCase(e){var r=function(e,r){return(r?"-":"")+e.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)}function objectToQueryString(e){var r="";Object.keys(e).forEach((function(t){if(r.length!==0)r+="&";r+=t+"="+e[t]}));return r}function processSdkBaseUrl(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function createScriptElement(e,r){if(r===void 0){r={}}var t=document.createElement("script");t.src=e;Object.keys(r).forEach((function(e){t.setAttribute(e,r[e]);if(e==="data-csp-nonce"){t.setAttribute("nonce",r["data-csp-nonce"])}}));return t}function loadScript(e,r){if(r===void 0){r=Promise}validateArguments(e,r);if(typeof document==="undefined")return r.resolve(null);var t=processOptions(e),n=t.url,o=t.attributes;var a=o["data-namespace"]||"paypal";var i=getPayPalWindowNamespace(a);if(!o["data-js-sdk-library"]){o["data-js-sdk-library"]="paypal-js"}if(findScript(n,o)&&i){return r.resolve(i)}return loadCustomScript({url:n,attributes:o},r).then((function(){var e=getPayPalWindowNamespace(a);if(e){return e}throw new Error("The window.".concat(a," global variable is not available."))}))}function loadCustomScript(e,r){if(r===void 0){r=Promise}validateArguments(e,r);var t=e.url,n=e.attributes;if(typeof t!=="string"||t.length===0){throw new Error("Invalid url.")}if(typeof n!=="undefined"&&typeof n!=="object"){throw new Error("Expected attributes to be an object.")}return new r((function(e,r){if(typeof document==="undefined")return e();insertScriptElement({url:t,attributes:n,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(t,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return r(e)}})}))}function getPayPalWindowNamespace(e){return window[e]}function validateArguments(e,r){if(typeof e!=="object"||e===null){throw new Error("Expected an options object.")}var t=e.environment;if(t&&t!=="production"&&t!=="sandbox"){throw new Error('The `environment` option must be either "production" or "sandbox".')}if(typeof r!=="undefined"&&typeof r!=="function"){throw new Error("Expected PromisePonyfill to be a function.")}}var paypalCaptureOrder=function(e){return __awaiter(void 0,[e],void 0,(function(e){var r,t,n;var o=e.checkoutSessionId,a=e.paypalMockResponse;return __generator(this,(function(e){switch(e.label){case 0:return[4,handleFetch("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:o,paypalMockResponse:a},method:"POST"})];case 1:r=e.sent(),t=r.errors,n=r.json;return[2,{errors:t,json:n}]}}))}))};var paypalCreateOrder=function(e){return __awaiter(void 0,[e],void 0,(function(e){var r,t,n;var o=e.checkoutSessionId,a=e.intent;return __generator(this,(function(e){switch(e.label){case 0:return[4,handleFetch("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:o,intent:a},method:"POST"})];case 1:r=e.sent(),t=r.errors,n=r.json;return[2,{errors:t,json:n}]}}))}))};var __rest=undefined&&undefined.__rest||function(e,r){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0)t[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++){if(r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o]))t[n[o]]=e[n[o]]}return t};var FB_STANDARD_EVENT_BY_INTERNAL_EVENT={purchase:"Purchase","zonos-checkout-payment-info":"AddPaymentInfo","zonos-checkout-start":"InitiateCheckout"};var getFbStandardEventName=function(e){var r;return(r=FB_STANDARD_EVENT_BY_INTERNAL_EVENT[e])!==null&&r!==void 0?r:null};var isPurchaseMetadata=function(e){if(!e)return false;return Array.isArray(e.items)};var buildFbqParams=function(e){if(!e)return{};if(!isPurchaseMetadata(e)){return Object.assign({},e)}var r=e.currency,t=e.items,n=e.transaction_id,o=e.value,a=__rest(e,["currency","items","transaction_id","value"]);var i=t.map((function(e){return{id:e.item_id,item_price:e.price,quantity:e.quantity}}));var u=t.map((function(e){return e.item_id}));var s=t.reduce((function(e,r){return e+r.quantity}),0);var c=Object.assign(Object.assign({},a),{content_ids:u,content_type:"product",contents:i,num_items:s});if(n){c.order_id=n}if(r!==undefined){c.currency=r}if(o!==undefined){c.value=o}return c};var isFacebookPixelEnabled=function(){var e=zonosStore.checkoutSettings.analyticsProviders.find((function(e){return e.type==="FACEBOOK_PIXEL"}));return!!e&&e.status==="ENABLED"};var fireFbq=function(e,r,t){if(isAnalyticsRelayInIframe()){enqueueRelayEvent({event:r,fbqMode:e,payload:t,provider:"fbq"});return}if(typeof window.fbq==="function"){log("Zonos submits fbq event","log","".concat(e,":").concat(r));window.fbq(e,r,t)}};var submitFbq=function(e){var r=e.event,t=e.metadata;if(!isFacebookPixelEnabled()){return}var n=getIsTestMode();var o=buildFbqParams(t);var a=Object.assign(Object.assign({},o),n&&{isTestMode:true});var i=Object.fromEntries(Object.entries(a).filter((function(e){var r=e[0],t=e[1];return t!==null})));fireFbq("trackCustom",r,i);var u=getFbStandardEventName(r);if(u&&u!==r){fireFbq("track",u,i)}};var submitAnalytics=function(e){submitGtag(e);submitFbq(e)};var _c=createStore((function(){return{intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}})),paypalStoreOnChange=_c.onChange,paypalStoreReset=_c.reset,paypalStore=_c.state;var paypalStoreCreaterOrder=function(e){return __awaiter(void 0,[e],void 0,(function(e){var r,t,n,o,a,i,u;var s=e.checkoutSessionId;return __generator(this,(function(e){switch(e.label){case 0:n=paypalStore.intent.toUpperCase();return[4,paypalCreateOrder({checkoutSessionId:s,intent:n})];case 1:o=e.sent(),a=o.errors,i=o.json;u=(r=i===null||i===void 0?void 0:i.paypalOrderCreate)===null||r===void 0?void 0:r.paypalOrderId;if(a.length||!u){throw new Error(((t=a.find(Boolean))===null||t===void 0?void 0:t.message)||"An unexpected error occurred when creating paypal order.")}return[2,u]}}))}))};var paypalStoreCaptureOrder=function(e){return __awaiter(void 0,[e],void 0,(function(e){var r,t,n,o,a,i;var u=e.checkoutSessionId,s=e.paypalMockResponse;return __generator(this,(function(e){switch(e.label){case 0:return[4,paypalCaptureOrder({checkoutSessionId:u,paypalMockResponse:s})];case 1:n=e.sent(),o=n.errors,a=n.json;i=(r=a===null||a===void 0?void 0:a.paypalOrderCapture.order)===null||r===void 0?void 0:r.id;if(o.length||!i){throw new Error(((t=o.find(Boolean))===null||t===void 0?void 0:t.message)||translate("An unexpected error occurred when processing PayPal order."))}return[2,i]}}))}))};var paypalErrorHandler=function(e){var r=e.error;var t;var n=jsonParse(r.message);var o=(t=n===null||n===void 0?void 0:n.errors.find(Boolean))===null||t===void 0?void 0:t.message;var a=(o===null||o===void 0?void 0:o.match(/\[(.*?)\] (.*)/i))||[];if(!a){paypalStore.paypalErrorMessage=translate("An unexpected error occurred when processing PayPal order.")}var i=a[2]||translate("An unexpected error occurred when processing PayPal order.");paypalStore.paypalErrorMessage=i};var paypalButtonOptions=function(e){var r=e.checkoutSessionId,t=e.onPaypalFail,n=e.onPaypalSessionDone,o=e.overrideBorderRaidus,a=e.overridePrimaryColor;var i=a||zonosStore.appearance.colorPrimary;var u="#ffc33a";var s=isContrastColor({backgroundColor1:u,backgroundColor2:i||""});return{createOrder:function(){return __awaiter(void 0,void 0,void 0,(function(){var e,o,a,i,u,s,c,l,d,p,f;return __generator(this,(function(v){switch(v.label){case 0:void trackConversionEvent({checkoutSessionId:r,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});if(isPolicyConsentRequired()&&!policyConsentStore.accepted){policyConsentStore.showError=true;(e=document.querySelector("zonos-policy-consent"))===null||e===void 0?void 0:e.scrollIntoView({behavior:"smooth"});t===null||t===void 0?void 0:t();return[2,""]}o=isPolicyConsentRequired();if(o){policyConsentStore.locked=true}a=false;v.label=1;case 1:v.trys.push([1,13,14,15]);return[4,validateCheckoutSession()];case 2:i=v.sent();if(!i.valid){paypalStore.paypalErrorMessage=i.errorMessage;stripeStore.hasPaymentError=false;stripeStore.customErrorMessage=null;submitAnalytics({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:r}});t===null||t===void 0?void 0:t();return[2,""]}paypalStore.paypalErrorMessage=null;cartStore.inventoryCheckErrorMessage=null;v.label=3;case 3:v.trys.push([3,5,,6]);u=cartStore;return[4,stripeStoreHandleInventoryCheck()];case 4:u.inventoryCheckErrorMessage=v.sent();return[3,6];case 5:s=v.sent();cartStore.inventoryCheckErrorMessage=translate("Unable to check inventory. Please try again.");return[3,6];case 6:if(cartStore.inventoryCheckErrorMessage){return[2,""]}c=storeCreditStoreGetEffectiveAmount();if(!(c>0))return[3,8];return[4,storeCreditStoreApplyCredit()];case 7:l=v.sent();if(!l.success){paypalStore.paypalErrorMessage=l.error||translate("Unable to apply store credit. Please try again.");t===null||t===void 0?void 0:t();return[2,""]}v.label=8;case 8:return[4,stripeStoreRecordPolicyConsent()];case 9:v.sent();if(!storeCreditStoreCoversFullAmount())return[3,11];return[4,storeCreditStoreCreateOrder()];case 10:d=v.sent();if(!d.success){paypalStore.paypalErrorMessage=d.error||translate("Unable to place order with store credit. Please try again.");t===null||t===void 0?void 0:t();return[2,""]}n===null||n===void 0?void 0:n({orderId:d.orderId||""});cartStoreNextStep();cartStoreClearCheckoutInterval();a=true;return[2,""];case 11:return[4,paypalStoreCreaterOrder({checkoutSessionId:r})];case 12:p=v.sent();a=!!p;return[2,p];case 13:f=v.sent();logError("Failed to create paypal order",f);paypalStore.paypalErrorMessage=translate("Failed to create PayPal order. Please try again, or consider using an alternative method.");stripeStore.hasPaymentError=false;stripeStore.customErrorMessage=null;submitAnalytics({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:r}});t===null||t===void 0?void 0:t();return[2,""];case 14:if(o&&!a){policyConsentStore.locked=false}return[7];case 15:return[2]}}))}))},onApprove:function(e,o){return __awaiter(void 0,void 0,void 0,(function(){var e,o;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,,3]);paypalStore.paypalErrorMessage=null;submitAnalytics({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:r,paymentMethod:"paypal"}});return[4,paypalStoreCaptureOrder({checkoutSessionId:r,paypalMockResponse:window.Zonos._paypalMockResponse})];case 1:e=a.sent();paypalStore.orderIdCreated=e;n===null||n===void 0?void 0:n({orderId:e});cartStoreNextStep();cartStoreClearCheckoutInterval();return[3,3];case 2:o=a.sent();logError("==== Failed to capture paypal order",o);if(o instanceof Error){return[2,paypalErrorHandler({error:o})]}t===null||t===void 0?void 0:t();return[3,3];case 3:return[2]}}))}))},style:{borderRadius:o==="SHARP"?0:10,color:s?"gold":"blue",shape:"rect"}}};var paypalStoreResetButtons=function(){if(!paypalStore.paypalButtons.length){return}paypalStore.paypalButtons.forEach((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,e.close()];case 1:r.sent();return[2]}}))}))}));paypalStore.paypalButtons=[]};var paypalInitScript=function(e){return __awaiter(void 0,[e],void 0,(function(e){var r,t,n,o,a,i;var u=e.currency;return __generator(this,(function(e){switch(e.label){case 0:t=!!((r=zonosStore.checkoutSettings.externalPaymentMethods)===null||r===void 0?void 0:r.find((function(e){return e.type==="PAYPAL"&&e.status==="ENABLED"})));if(!t){log("=== Paypal is disabled for this store","warn");return[2]}n=zonosStore.checkoutSettings.externalServiceTokens.find((function(e){return e.type==="PAYPAL_CLIENT_ID"}));if(!n){log("Failed to load paypal -- missing paypal publishable key","warn");return[2]}o=(!zonosStore.zonosMode||zonosStore.zonosMode==="production")&&zonosStore.checkoutSettings.mode==="LIVE"?"production":"sandbox";a=zonosStore.checkoutSettings.captureDelay&&zonosStore.checkoutSettings.captureDelay>0;paypalStore.intent=a?"authorize":"capture";log("==== Paypal order intent","info",paypalStore.intent);i=window.Zonos;return[4,loadScript({clientId:n.token,currency:u,environment:o,intent:paypalStore.intent})];case 1:i.paypal=e.sent();paypalStore.paypal=window.Zonos.paypal;log("==== Paypal script loaded");return[2]}}))}))};var paypalStoreInitButtons=function(e){var r;var t=window.Zonos.paypal;if(!t){log("Paypal is not available");return null}var n=storageStore.checkoutSessionId;if(!n){log("Paypal is not available due to checkoutSessionId is not available");return null}log("==== Loading Paypal buttons");paypalStoreResetButtons();var o=[(r=t.FUNDING)===null||r===void 0?void 0:r.PAYPAL].filter(Boolean);paypalStore.paypalButtons=o.map((function(r){var o;var a=null;try{a=((o=t.Buttons)===null||o===void 0?void 0:o.call(t,Object.assign(Object.assign({},paypalButtonOptions(Object.assign({checkoutSessionId:n,fundingSource:r},e))),{fundingSource:r})))||null}catch(e){log("===== Failed to load paypal's \"".concat(r,'" button'),"warn",e)}if(a===null||a===void 0?void 0:a.isEligible()){log("==== Paypal button ".concat(r," loaded"));return a}return null})).filter(Boolean);return paypalStore.paypalButtons};var paypalStoreHasPaypalEnabled=function(){var e,r;var t=((r=(e=zonosStore.checkoutSettings.externalPaymentMethods)===null||e===void 0?void 0:e.find((function(e){return e.type==="PAYPAL"})))===null||r===void 0?void 0:r.status)==="ENABLED";return t||!!paypalStore.paypalButtons.length};export{paypalStore as a,paypalInitScript as b,paypalStoreReset as c,paypalStoreInitButtons as d,paypalStoreOnChange as e,paypalStoreHasPaypalEnabled as p,submitAnalytics as s};
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(r,t,e,n){function o(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,i){function a(r){try{u(n.next(r))}catch(r){i(r)}}function c(r){try{u(n["throw"](r))}catch(r){i(r)}}function u(r){r.done?e(r.value):o(r.value).then(a,c)}u((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(r){return function(t){return u([r,t])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(e=0)),e)try{if(n=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;o=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1];i=c;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(c);break}if(i[2])e.ops.pop();e.trys.pop();continue}c=t.call(r,e)}catch(r){c=[6,r];o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{d as cartStore}from"./cart-d04742f5.js";import{s as storageStore}from"./localization-36a4dc22.js";import{l as logError,h as handleFetch}from"./handleFetch-a844cac1.js";var placeTestOrder=function(){return __awaiter(void 0,void 0,void 0,(function(){var r,t,e,n,o,i,a,c,u;return __generator(this,(function(s){switch(s.label){case 0:e=(r=cartStore.partiesData.find((function(r){return r.type==="DESTINATION"})))===null||r===void 0?void 0:r.id;n=(t=cartStore.partiesData.find((function(r){return r.type==="PAYOR"})))===null||t===void 0?void 0:t.id;o=storageStore.checkoutSessionId;if(!o||!n||!e){logError("Missing required data",{billToPartyId:n,checkoutSessionId:o,shipToPartyId:e});return[2,{errors:["Missing required data"],json:null}]}i={billToPartyId:n,checkoutSessionId:o,shipToPartyId:e};return[4,handleFetch("/api/zonos-elements/place-test-order",{body:i,method:"POST"})];case 1:a=s.sent(),c=a.errors,u=a.json;if(c.length||!u){logError("Error occurs when placing test order",c);return[2,{errors:c.map((function(r){return r.message})),json:null}]}return[2,{errors:[],json:u}]}}))}))};export{placeTestOrder as p};
@@ -1 +0,0 @@
1
- import{d as cartStore}from"./cart-d04742f5.js";import{x as applyInclusiveEffectiveRate,h as currencyFormat}from"./localization-36a4dc22.js";var getDisplayCurrency=function(){var r,a;var t=cartStore.displayBaseCurrency;var e=t&&((r=cartStore.exchangeRate)===null||r===void 0?void 0:r.sourceCurrencyCode)?(a=cartStore.exchangeRate)===null||a===void 0?void 0:a.sourceCurrencyCode:cartStore.currency;return e};var renderCheckoutCurrency=function(r){var a=r.amount,t=r.isForeign;var e,c;var o=((e=cartStore.exchangeRate)===null||e===void 0?void 0:e.rate)||1;var n=t?a:applyInclusiveEffectiveRate(a);var u=cartStore.currency;var v=(c=cartStore.items[0])===null||c===void 0?void 0:c.currencyCode;if(v===u){return currencyFormat({amount:n,currency:u})}var i=cartStore.displayBaseCurrency;var l=getDisplayCurrency();if(t){var y=i?n/o:n;return currencyFormat({amount:y,currency:l})}var d=i?n:n*o;return currencyFormat({amount:d,currency:l})};export{renderCheckoutCurrency as r};
@@ -1 +0,0 @@
1
- import{c as countryRequireShortAddressCode}from"./ShortAddressCode-7620e622.js";import{e as euCountryCodes,c as countryRequireTaxId}from"./TaxId-63a14057.js";var isInShortAddressCodeCountry=function(r){return countryRequireShortAddressCode.includes(r)};var shouldRenderShortAddressCodeInput=function(r){var e=r.countryCode;var o=isInShortAddressCodeCountry(e);if(o){return true}return false};var isInTaxIdCountry=function(r){return countryRequireTaxId.includes(r)};var shouldRenderTaxIdInput=function(r){var e=r.companyName,o=r.countryCode;if(euCountryCodes.includes(o)){return e.trim().length>0}var d=isInTaxIdCountry(o);if(d){return true}return false};export{shouldRenderTaxIdInput as a,shouldRenderShortAddressCodeInput as s};
@@ -1 +0,0 @@
1
- import{y as getSupportedLanguages}from"./localization-36a4dc22.js";var shouldShowLanguageSelect=function(){return getSupportedLanguages().length>1};export{shouldShowLanguageSelect as s};
@@ -1 +0,0 @@
1
- var styles=function(t){return Object.entries(t).reduce((function(t,r){var e=r[0],n=r[1];if(n){t[e]=n}return t}),{})};export{styles as s};
@@ -1 +0,0 @@
1
- import{z as zonosStore}from"./zonosStore-eca1e364.js";import{g as getIsTestMode}from"./handleFetch-a844cac1.js";import{l as log}from"./VarianceTest-572cecf5.js";var ZONOS_ANALYTIC_TYPE="zonos-analytic";var RELAY_PING_TYPE="zonos-analytics-relay-ping";var RELAY_READY_TYPE="zonos-analytics-relay-ready";var providerReady={fbq:false,gtag:false};var queue=[];var listenerAdded=false;var isInIframe=function(){return typeof window!=="undefined"&&window.parent!==window};var flushQueue=function(){var e=[];while(queue.length>0){var n=queue.shift();if(!providerReady[n.provider]){e.push(n);continue}try{window.parent.postMessage({event:n.event,fbqMode:n.fbqMode,metadata:n.payload,provider:n.provider,type:ZONOS_ANALYTIC_TYPE},"*")}catch(e){}}queue.push.apply(queue,e)};var ensureListener=function(){if(listenerAdded)return;listenerAdded=true;window.addEventListener("message",(function(e){var n;if(((n=e.data)===null||n===void 0?void 0:n.type)!==RELAY_READY_TYPE)return;var a=e.data.provider||"gtag";providerReady[a]=true;if(typeof window.Zonos!=="undefined"){if(a==="gtag"){window.Zonos.googleAnalyticReady=true}else{window.Zonos.facebookPixelReady=true}}flushQueue()}))};var sendRelayPing=function(){if(!isInIframe())return;ensureListener();try{var e=typeof window.Zonos!=="undefined"?window.Zonos:undefined;window.parent.postMessage({facebookPixelId:e===null||e===void 0?void 0:e.facebookPixelId,googleAnalyticId:e===null||e===void 0?void 0:e.googleAnalyticId,type:RELAY_PING_TYPE},"*")}catch(e){}};var ensureAnalyticsRelayPing$1=function(){if(!isInIframe())return;if(providerReady.gtag&&providerReady.fbq)return;sendRelayPing()};var enqueueRelayEvent=function(e){ensureListener();if(providerReady[e.provider]){try{window.parent.postMessage({event:e.event,fbqMode:e.fbqMode,metadata:e.payload,provider:e.provider,type:ZONOS_ANALYTIC_TYPE},"*")}catch(e){}return}queue.push(e);sendRelayPing()};var isAnalyticsRelayInIframe=isInIframe;var ensureAnalyticsRelayPing=ensureAnalyticsRelayPing$1;var isGoogleAnalyticsEnabled=function(){var e=zonosStore.checkoutSettings.analyticsProviders.find((function(e){return e.type==="GOOGLE_ANALYTICS"}));return!!e&&e.status==="ENABLED"};var submitGtag=function(e){var n=e.event,a=e.metadata;if(!isGoogleAnalyticsEnabled()){return}var r=getIsTestMode();var i=Object.assign(Object.assign({},a),r&&{isTestMode:true});var t=Object.fromEntries(Object.entries(i).filter((function(e){var n=e[0],a=e[1];return a!==null})));if(isAnalyticsRelayInIframe()){enqueueRelayEvent({event:n,payload:t,provider:"gtag"});return}if(typeof window.gtag==="function"){log("Zonos submits gtag event","log",n);window.gtag("event",n,t)}};export{ensureAnalyticsRelayPing as a,enqueueRelayEvent as e,isAnalyticsRelayInIframe as i,submitGtag as s};
@@ -1 +0,0 @@
1
- import{d as debounce_1}from"./debounce-84ade9c2.js";import{d as isObject_1}from"./zonosStore-eca1e364.js";var debounce=debounce_1,isObject=isObject_1;var FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,r){var o=true,i=true;if(typeof e!="function"){throw new TypeError(FUNC_ERROR_TEXT)}if(isObject(r)){o="leading"in r?!!r.leading:o;i="trailing"in r?!!r.trailing:i}return debounce(e,t,{leading:o,maxWait:t,trailing:i})}var throttle_1=throttle;export{throttle_1 as t};
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(u,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{d as debounce_1}from"./debounce-84ade9c2.js";import{h as handleFetch,l as logError}from"./handleFetch-a844cac1.js";var attributesToUpdate={};var debouncedFunctions={};var createDebouncedFetch=function(t){return debounce_1((function(){return __awaiter(void 0,void 0,void 0,(function(){var e,n,r,o,i,u;return __generator(this,(function(a){switch(a.label){case 0:r=Array.from(((e=attributesToUpdate[t])===null||e===void 0?void 0:e.entries())||[]).map((function(t){var e=t[0],n=t[1];return{key:e,value:n}}));return[4,handleFetch("/api/zonos-elements/update-checkout-session-attributes",{body:{attributes:r,id:t},method:"POST"})];case 1:o=a.sent(),i=o.errors,u=o.json;if(i.length){logError("Error updating checkout session attributes",i);return[2,{success:false}]}(n=attributesToUpdate[t])===null||n===void 0?void 0:n.clear();return[2,{success:!!(u===null||u===void 0?void 0:u.success)}]}}))}))}),1e3,{maxWait:5e3})};var updateCheckoutSessionAttributes=function(t){return __awaiter(void 0,[t],void 0,(function(t){var e=t.attributes,n=t.checkoutSessionId;return __generator(this,(function(t){attributesToUpdate[n]||(attributesToUpdate[n]=new Map);e.forEach((function(t){var e;if(t.value){(e=attributesToUpdate[n])===null||e===void 0?void 0:e.set(t.key,t.value)}}));if(!e.length){return[2]}if(!debouncedFunctions[n]){debouncedFunctions[n]=createDebouncedFetch(n)}return[2,debouncedFunctions[n]()]}))}))};export{updateCheckoutSessionAttributes as u};
@@ -1 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a<n;a++){if(o||!(a in r)){if(!o)o=Array.prototype.slice.call(r,0,a);o[a]=r[a]}}return e.concat(o||Array.prototype.slice.call(r))};import{S as StencilCore}from"./index-cfd394c8.js";import{a as availableTestKeys,l as log}from"./VarianceTest-572cecf5.js";var appendToMap=function(e,r,t){var a=e.get(r);if(!a){a=[];e.set(r,a)}if(!a.some((function(e){return e.deref()===t}))){a.push(new WeakRef(t))}};var debounce=function(e,r){var t;return function(){var a=[];for(var n=0;n<arguments.length;n++){a[n]=arguments[n]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;e.apply(void 0,a)}),r)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var r=0,t=e.keys();r<t.length;r++){var a=t[r];var n=e.get(a).filter((function(e){var r=e.deref();return r&&isConnected(r)}));e.set(a,n)}}),2e3);var core=StencilCore;var forceUpdate=core.forceUpdate;var getRenderingRef=core.getRenderingRef;var stencilSubscription=function(){if(typeof getRenderingRef!=="function"||typeof forceUpdate!=="function"){return{}}var e=forceUpdate;var r=getRenderingRef;var t=new Map;return{dispose:function(){return t.clear()},get:function(e){var a=r();if(a){appendToMap(t,e,a)}},set:function(r){var a=t.get(r);if(a){var n=a.filter((function(r){var t=r.deref();if(!t)return false;return e(t)}));t.set(r,n)}cleanupElements(t)},reset:function(){t.forEach((function(r){r.forEach((function(r){var t=r.deref();if(t)e(t)}))}));cleanupElements(t)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,r){if(r===void 0){r=function(e,r){return e!==r}}var t=function(){var r;return(r=unwrap(e))!==null&&r!==void 0?r:{}};var a=t();var n=new Map(Object.entries(a));var o=typeof Proxy!=="undefined";var i=o?null:{};var s={dispose:[],get:[],set:[],reset:[]};var c=new Map;var u=function(){n=new Map(Object.entries(t()));if(!o){h()}s.reset.forEach((function(e){return e()}))};var v=function(){s.dispose.forEach((function(e){return e()}));u()};var l=function(e){s.get.forEach((function(r){return r(e)}));return n.get(e)};var f=function(e,t){var a=n.get(e);if(r(t,a,e)){n.set(e,t);if(!o){p(e)}s.set.forEach((function(r){return r(e,t,a)}))}};var g=o?new Proxy(a,{get:function(e,r){return l(r)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,r){return n.has(r)},set:function(e,r,t){f(r,t);return true}}):function(){h();return i}();var y=function(e,r){s[e].push(r);return function(){removeFromArray(s[e],r)}};var $=function(e,r){var a=function(t,a){if(t===e){r(a)}};var n=function(){var a=t();r(a[e])};var o=y("set",a);var i=y("reset",n);c.set(r,{setHandler:a,resetHandler:n,propName:e});return function(){o();i();c.delete(r)}};var b=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=e.reduce((function(e,r){if(r.set){e.push(y("set",r.set))}if(r.get){e.push(y("get",r.get))}if(r.reset){e.push(y("reset",r.reset))}if(r.dispose){e.push(y("dispose",r.dispose))}return e}),[]);return function(){return t.forEach((function(e){return e()}))}};var d=function(e){var r=n.get(e);s.set.forEach((function(t){return t(e,r,r)}))};var _=function(e,r){var t=c.get(r);if(t&&t.propName===e){removeFromArray(s.set,t.setHandler);removeFromArray(s.reset,t.resetHandler);c.delete(r)}};function p(e){if(o||!i){return}if(Object.prototype.hasOwnProperty.call(i,e)){return}Object.defineProperty(i,e,{configurable:true,enumerable:true,get:function(){return l(e)},set:function(r){f(e,r)}})}function h(){if(o||!i){return}var e=new Set(n.keys());for(var r=0,t=Object.keys(i);r<t.length;r++){var a=t[r];if(!e.has(a)){delete i[a]}}for(var s=0,c=e;s<c.length;s++){var a=c[s];p(a)}}return{state:g,get:l,set:f,on:y,onChange:$,use:b,dispose:v,reset:u,forceUpdate:d,removeListener:_}};var removeFromArray=function(e,r){var t=e.indexOf(r);if(t>=0){e[t]=e[e.length-1];e.length--}};var createStore=function(e,r){var t=createObservableMap(e,r);t.use(stencilSubscription());return t};var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function listCacheClear$1(){this.__data__=[];this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(e,r){return e===r||e!==e&&r!==r}var eq_1=eq$4;var eq$3=eq_1;function assocIndexOf$4(e,r){var t=e.length;while(t--){if(eq$3(e[t][0],r)){return t}}return-1}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(e){var r=this.__data__,t=assocIndexOf$3(r,e);if(t<0){return false}var a=r.length-1;if(t==a){r.pop()}else{splice.call(r,t,1)}--this.size;return true}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var r=this.__data__,t=assocIndexOf$2(r,e);return t<0?undefined:r[t][1]}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(e,r){var t=this.__data__,a=assocIndexOf(t,e);if(a<0){++this.size;t.push([e,r])}else{t[a][1]=r}return this}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3;this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1;var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root$4=freeGlobal||freeSelf||Function("return this")();var _root=root$4;var root$3=_root;var Symbol$2=root$3.Symbol;var _Symbol=Symbol$2;var Symbol$1=_Symbol;var objectProto$a=Object.prototype;var hasOwnProperty$8=objectProto$a.hasOwnProperty;var nativeObjectToString$1=objectProto$a.toString;var symToStringTag$1=Symbol$1?Symbol$1.toStringTag:undefined;function getRawTag$1(e){var r=hasOwnProperty$8.call(e,symToStringTag$1),t=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var a=true}catch(e){}var n=nativeObjectToString$1.call(e);if(a){if(r){e[symToStringTag$1]=t}else{delete e[symToStringTag$1]}}return n}var _getRawTag=getRawTag$1;var objectProto$9=Object.prototype;var nativeObjectToString=objectProto$9.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1;var Symbol=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol?Symbol.toStringTag:undefined;function baseGetTag$4(e){if(e==null){return e===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$4;function isObject$7(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var isObject_1=isObject$7;var baseGetTag$3=_baseGetTag,isObject$6=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(e){if(!isObject$6(e)){return false}var r=baseGetTag$3(e);return r==funcTag$1||r==genTag||r==asyncTag||r==proxyTag}var isFunction_1=isFunction$3;var root$2=_root;var coreJsData$1=root$2["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1;var funcProto$2=Function.prototype;var funcToString$2=funcProto$2.toString;function toSource$1(e){if(e!=null){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$1;var isFunction$2=isFunction_1,isMasked=_isMasked,isObject$5=isObject_1,toSource=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto$1=Function.prototype,objectProto$8=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$7=objectProto$8.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){if(!isObject$5(e)||isMasked(e)){return false}var r=isFunction$2(e)?reIsNative:reIsHostCtor;return r.test(toSource(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,r){return e==null?undefined:e[r]}var _getValue=getValue$1;var baseIsNative=_baseIsNative,getValue=_getValue;function getNative$3(e,r){var t=getValue(e,r);return baseIsNative(t)?t:undefined}var _getNative=getNative$3;var getNative$2=_getNative,root$1=_root;var Map$3=getNative$2(root$1,"Map");var _Map=Map$3;var getNative$1=_getNative;var nativeCreate$4=getNative$1(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var r=this.has(e)&&delete this.__data__[e];this.size-=r?1:0;return r}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet$1(e){var r=this.__data__;if(nativeCreate$2){var t=r[e];return t===HASH_UNDEFINED$1?undefined:t}return hasOwnProperty$6.call(r,e)?r[e]:undefined}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$6=Object.prototype;var hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas$1(e){var r=this.__data__;return nativeCreate$1?r[e]!==undefined:hasOwnProperty$5.call(r,e)}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,r){var t=this.__data__;this.size+=this.has(e)?0:1;t[e]=nativeCreate&&r===undefined?HASH_UNDEFINED:r;return this}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$2=_Map;function mapCacheClear$1(){this.size=0;this.__data__={hash:new Hash,map:new(Map$2||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(e,r){var t=e.__data__;return isKeyable(r)?t[typeof r=="string"?"string":"hash"]:t.map}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(e){var r=getMapData$3(this,e)["delete"](e);this.size-=r?1:0;return r}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(e,r){var t=getMapData(this,e),a=t.size;t.set(e,r);this.size+=t.size==a?0:1;return this}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$1(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var a=e[r];this.set(a[0],a[1])}}MapCache$1.prototype.clear=mapCacheClear;MapCache$1.prototype["delete"]=mapCacheDelete;MapCache$1.prototype.get=mapCacheGet;MapCache$1.prototype.has=mapCacheHas;MapCache$1.prototype.set=mapCacheSet;var _MapCache=MapCache$1;var ListCache$1=_ListCache,Map$1=_Map,MapCache=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(e,r){var t=this.__data__;if(t instanceof ListCache$1){var a=t.__data__;if(!Map$1||a.length<LARGE_ARRAY_SIZE-1){a.push([e,r]);this.size=++t.size;return this}t=this.__data__=new MapCache(a)}t.set(e,r);this.size=t.size;return this}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e){var r=this.__data__=new ListCache(e);this.size=r.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype["delete"]=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1;var getNative=_getNative;var defineProperty$2=function(){try{var e=getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var _defineProperty=defineProperty$2;var defineProperty$1=_defineProperty;function baseAssignValue$3(e,r,t){if(r=="__proto__"&&defineProperty$1){defineProperty$1(e,r,{configurable:true,enumerable:true,value:t,writable:true})}else{e[r]=t}}var _baseAssignValue=baseAssignValue$3;var baseAssignValue$2=_baseAssignValue,eq$2=eq_1;function assignMergeValue$2(e,r,t){if(t!==undefined&&!eq$2(e[r],t)||t===undefined&&!(r in e)){baseAssignValue$2(e,r,t)}}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(e){return function(r,t,a){var n=-1,o=Object(r),i=a(r),s=i.length;while(s--){var c=i[e?s:++n];if(t(o[c],c,o)===false){break}}return r}}var _createBaseFor=createBaseFor$1;var createBaseFor=_createBaseFor;var baseFor$1=createBaseFor();var _baseFor=baseFor$1;var _cloneBuffer={exports:{}};(function(e,r){var t=_root;var a=r&&!r.nodeType&&r;var n=a&&"object"=="object"&&e&&!e.nodeType&&e;var o=n&&n.exports===a;var i=o?t.Buffer:undefined,s=i?i.allocUnsafe:undefined;function c(e,r){if(r){return e.slice()}var t=e.length,a=s?s(t):new e.constructor(t);e.copy(a);return a}e.exports=c})(_cloneBuffer,_cloneBuffer.exports);var root=_root;var Uint8Array$1=root.Uint8Array;var _Uint8Array=Uint8Array$1;var Uint8Array=_Uint8Array;function cloneArrayBuffer$1(e){var r=new e.constructor(e.byteLength);new Uint8Array(r).set(new Uint8Array(e));return r}var _cloneArrayBuffer=cloneArrayBuffer$1;var cloneArrayBuffer=_cloneArrayBuffer;function cloneTypedArray$1(e,r){var t=r?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1;function copyArray$1(e,r){var t=-1,a=e.length;r||(r=Array(a));while(++t<a){r[t]=e[t]}return r}var _copyArray=copyArray$1;var isObject$4=isObject_1;var objectCreate=Object.create;var baseCreate$1=function(){function e(){}return function(r){if(!isObject$4(r)){return{}}if(objectCreate){return objectCreate(r)}e.prototype=r;var t=new e;e.prototype=undefined;return t}}();var _baseCreate=baseCreate$1;function overArg$1(e,r){return function(t){return e(r(t))}}var _overArg=overArg$1;var overArg=_overArg;var getPrototype$2=overArg(Object.getPrototypeOf,Object);var _getPrototype=getPrototype$2;var objectProto$5=Object.prototype;function isPrototype$2(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||objectProto$5;return e===t}var _isPrototype=isPrototype$2;var baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype$1=_isPrototype;function initCloneObject$1(e){return typeof e.constructor=="function"&&!isPrototype$1(e)?baseCreate(getPrototype$1(e)):{}}var _initCloneObject=initCloneObject$1;function isObjectLike$5(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$5;var baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1;var argsTag$1="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$4(e)&&baseGetTag$2(e)==argsTag$1}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;var propertyIsEnumerable=objectProto$4.propertyIsEnumerable;var isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$3(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")};var isArguments_1=isArguments$2;var isArray$2=Array.isArray;var isArray_1=isArray$2;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength$2(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$2;var isFunction$1=isFunction_1,isLength$1=isLength_1;function isArrayLike$3(e){return e!=null&&isLength$1(e.length)&&!isFunction$1(e)}var isArrayLike_1=isArrayLike$3;var isArrayLike$2=isArrayLike_1,isObjectLike$2=isObjectLike_1;function isArrayLikeObject$1(e){return isObjectLike$2(e)&&isArrayLike$2(e)}var isArrayLikeObject_1=isArrayLikeObject$1;var isBuffer$2={exports:{}};function stubFalse(){return false}var stubFalse_1=stubFalse;(function(e,r){var t=_root,a=stubFalse_1;var n=r&&!r.nodeType&&r;var o=n&&"object"=="object"&&e&&!e.nodeType&&e;var i=o&&o.exports===n;var s=i?t.Buffer:undefined;var c=s?s.isBuffer:undefined;var u=c||a;e.exports=u})(isBuffer$2,isBuffer$2.exports);var baseGetTag$1=_baseGetTag,getPrototype=_getPrototype,isObjectLike$1=isObjectLike_1;var objectTag$1="[object Object]";var funcProto=Function.prototype,objectProto$3=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$3=objectProto$3.hasOwnProperty;var objectCtorString=funcToString.call(Object);function isPlainObject$1(e){if(!isObjectLike$1(e)||baseGetTag$1(e)!=objectTag$1){return false}var r=getPrototype(e);if(r===null){return true}var t=hasOwnProperty$3.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&funcToString.call(t)==objectCtorString}var isPlainObject_1=isPlainObject$1;var baseGetTag=_baseGetTag,isLength=isLength_1,isObjectLike=isObjectLike_1;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray$1(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e){return function(r){return e(r)}}var _baseUnary=baseUnary$1;var _nodeUtil={exports:{}};(function(e,r){var t=_freeGlobal;var a=r&&!r.nodeType&&r;var n=a&&"object"=="object"&&e&&!e.nodeType&&e;var o=n&&n.exports===a;var i=o&&t.process;var s=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s})(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports;var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$2;function safeGet$2(e,r){if(r==="constructor"&&typeof e[r]==="function"){return}if(r=="__proto__"){return}return e[r]}var _safeGet=safeGet$2;var baseAssignValue$1=_baseAssignValue,eq$1=eq_1;var objectProto$2=Object.prototype;var hasOwnProperty$2=objectProto$2.hasOwnProperty;function assignValue$1(e,r,t){var a=e[r];if(!(hasOwnProperty$2.call(e,r)&&eq$1(a,t))||t===undefined&&!(r in e)){baseAssignValue$1(e,r,t)}}var _assignValue=assignValue$1;var assignValue=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$1(e,r,t,a){var n=!t;t||(t={});var o=-1,i=r.length;while(++o<i){var s=r[o];var c=a?a(t[s],e[s],s,t,e):undefined;if(c===undefined){c=e[s]}if(n){baseAssignValue(t,s,c)}else{assignValue(t,s,c)}}return t}var _copyObject=copyObject$1;function baseTimes$1(e,r){var t=-1,a=Array(e);while(++t<e){a[t]=r(t)}return a}var _baseTimes=baseTimes$1;var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,r){var t=typeof e;r=r==null?MAX_SAFE_INTEGER:r;return!!r&&(t=="number"||t!="symbol"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<r)}var _isIndex=isIndex$2;var baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBuffer$2.exports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1;var objectProto$1=Object.prototype;var hasOwnProperty$1=objectProto$1.hasOwnProperty;function arrayLikeKeys$1(e,r){var t=isArray$1(e),a=!t&&isArguments$1(e),n=!t&&!a&&isBuffer$1(e),o=!t&&!a&&!n&&isTypedArray$1(e),i=t||a||n||o,s=i?baseTimes(e.length,String):[],c=s.length;for(var u in e){if((r||hasOwnProperty$1.call(e,u))&&!(i&&(u=="length"||n&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||isIndex$1(u,c)))){s.push(u)}}return s}var _arrayLikeKeys=arrayLikeKeys$1;function nativeKeysIn$1(e){var r=[];if(e!=null){for(var t in Object(e)){r.push(t)}}return r}var _nativeKeysIn=nativeKeysIn$1;var isObject$3=isObject_1,isPrototype=_isPrototype,nativeKeysIn=_nativeKeysIn;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$3(e)){return nativeKeysIn(e)}var r=isPrototype(e),t=[];for(var a in e){if(!(a=="constructor"&&(r||!hasOwnProperty.call(e,a)))){t.push(a)}}return t}var _baseKeysIn=baseKeysIn$1;var arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$1=isArrayLike_1;function keysIn$2(e){return isArrayLike$1(e)?arrayLikeKeys(e,true):baseKeysIn(e)}var keysIn_1=keysIn$2;var copyObject=_copyObject,keysIn$1=keysIn_1;function toPlainObject$1(e){return copyObject(e,keysIn$1(e))}var toPlainObject_1=toPlainObject$1;var assignMergeValue$1=_assignMergeValue,cloneBuffer=_cloneBuffer.exports,cloneTypedArray=_cloneTypedArray,copyArray=_copyArray,initCloneObject=_initCloneObject,isArguments=isArguments_1,isArray=isArray_1,isArrayLikeObject=isArrayLikeObject_1,isBuffer=isBuffer$2.exports,isFunction=isFunction_1,isObject$2=isObject_1,isPlainObject=isPlainObject_1,isTypedArray=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(e,r,t,a,n,o,i){var s=safeGet$1(e,t),c=safeGet$1(r,t),u=i.get(c);if(u){assignMergeValue$1(e,t,u);return}var v=o?o(s,c,t+"",e,r,i):undefined;var l=v===undefined;if(l){var f=isArray(c),g=!f&&isBuffer(c),y=!f&&!g&&isTypedArray(c);v=c;if(f||g||y){if(isArray(s)){v=s}else if(isArrayLikeObject(s)){v=copyArray(s)}else if(g){l=false;v=cloneBuffer(c,true)}else if(y){l=false;v=cloneTypedArray(c,true)}else{v=[]}}else if(isPlainObject(c)||isArguments(c)){v=s;if(isArguments(s)){v=toPlainObject(s)}else if(!isObject$2(s)||isFunction(s)){v=initCloneObject(c)}}else{l=false}}if(l){i.set(c,v);n(v,c,a,o,i);i["delete"](c)}assignMergeValue$1(e,t,v)}var _baseMergeDeep=baseMergeDeep$1;var Stack=_Stack,assignMergeValue=_assignMergeValue,baseFor=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$1=isObject_1,keysIn=keysIn_1,safeGet=_safeGet;function baseMerge$1(e,r,t,a,n){if(e===r){return}baseFor(r,(function(o,i){n||(n=new Stack);if(isObject$1(o)){baseMergeDeep(e,r,i,t,baseMerge$1,a,n)}else{var s=a?a(safeGet(e,i),o,i+"",e,r,n):undefined;if(s===undefined){s=o}assignMergeValue(e,i,s)}}),keysIn)}var _baseMerge=baseMerge$1;function identity$2(e){return e}var identity_1=identity$2;function apply$1(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var _apply=apply$1;var apply=_apply;var nativeMax=Math.max;function overRest$1(e,r,t){r=nativeMax(r===undefined?e.length-1:r,0);return function(){var a=arguments,n=-1,o=nativeMax(a.length-r,0),i=Array(o);while(++n<o){i[n]=a[r+n]}n=-1;var s=Array(r+1);while(++n<r){s[n]=a[n]}s[r]=t(i);return apply(e,this,s)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;var constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1;var baseSetToString$1=!defineProperty?identity$1:function(e,r){return defineProperty(e,"toString",{configurable:true,enumerable:false,value:constant(r),writable:true})};var _baseSetToString=baseSetToString$1;var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut$1(e){var r=0,t=0;return function(){var a=nativeNow(),n=HOT_SPAN-(a-t);t=a;if(n>0){if(++r>=HOT_COUNT){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var _shortOut=shortOut$1;var baseSetToString=_baseSetToString,shortOut=_shortOut;var setToString$1=shortOut(baseSetToString);var _setToString=setToString$1;var identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(e,r){return setToString(overRest(e,r,identity),e+"")}var _baseRest=baseRest$1;var eq=eq_1,isArrayLike=isArrayLike_1,isIndex=_isIndex,isObject=isObject_1;function isIterateeCall$1(e,r,t){if(!isObject(t)){return false}var a=typeof r;if(a=="number"?isArrayLike(t)&&isIndex(r,t.length):a=="string"&&r in t){return eq(t[r],e)}return false}var _isIterateeCall=isIterateeCall$1;var baseRest=_baseRest,isIterateeCall=_isIterateeCall;function createAssigner$1(e){return baseRest((function(r,t){var a=-1,n=t.length,o=n>1?t[n-1]:undefined,i=n>2?t[2]:undefined;o=e.length>3&&typeof o=="function"?(n--,o):undefined;if(i&&isIterateeCall(t[0],t[1],i)){o=n<3?undefined:o;n=1}r=Object(r);while(++a<n){var s=t[a];if(s){e(r,s,a,o)}}return r}))}var _createAssigner=createAssigner$1;var baseMerge=_baseMerge,createAssigner=_createAssigner;var merge=createAssigner((function(e,r,t){baseMerge(e,r,t)}));var merge_1=merge;var mergeConfig=function(e,r){var t=[];for(var a=2;a<arguments.length;a++){t[a-2]=arguments[a]}var n=__spreadArray([e,r],t,true).filter(Boolean);return merge_1.apply(null,n)};var isInAvailableTestKey=function(e){return e in availableTestKeys};var _j=createStore((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",supportedLocales:null,theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutAddressService:null,checkoutSettings:{allowedCharacterSets:"ALL",allowedSettlementCurrencies:"LOCAL",analyticsProviders:[],companyFieldsStatus:"DISABLED",defaultCartExpiration:3600,externalPaymentMethods:[],externalServiceTokens:[],merchantPolicyLinks:null,mode:"TEST",orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",disabledCountries:[],enabledVariantTestKeys:[],helloSettings:{anchorElementSelector:"",cartUrlPattern:"",countryOverrideBehavior:"URL_PARAM",currencyBehavior:"ENABLED",currencyElementSelector:".money",desktopLocation:"BOTTOM_RIGHT",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",notFoundElementFallback:null,organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED",visibilityStatus:"ENABLED",widgetSize:null},loadedConfig:false,onlineStoreSettings:{allowedDomains:[],url:""},organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:"",zonosMode:null}})),zonosStoreDispose=_j.dispose,zonosStoreOnChange=_j.onChange,reset=_j.reset,zonosStore=_j.state;var savedZonosSettings=null;var getZonosStoreTheme=function(e){if(e==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return e};var zonosStoreInitSetting=function(e){var r=e.overrideSettings,t=e.zonosSettings;var a,n,o,i,s,c,u,v;reset();if(t){savedZonosSettings=t}var l=mergeConfig(zonosStore.appearance,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,r===null||r===void 0?void 0:r.appearance);if(l.theme==="SYSTEM"){l.theme=getZonosStoreTheme(l.theme)}zonosStore.onlineStoreSettings=mergeConfig(zonosStore.onlineStoreSettings,(t===null||t===void 0?void 0:t.onlineStoreSettings)||null);zonosStore.disabledCountries=((a=t===null||t===void 0?void 0:t.checkoutSettings)===null||a===void 0?void 0:a.disabledCountries)||[];zonosStore.appearance=l;zonosStore.checkoutSettings=mergeConfig(zonosStore.checkoutSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,r===null||r===void 0?void 0:r.checkoutSettings);zonosStore.helloSettings=mergeConfig(zonosStore.helloSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,r===null||r===void 0?void 0:r.helloSettings);zonosStore.genericSettings=mergeConfig(zonosStore.genericSettings,(savedZonosSettings===null||savedZonosSettings===void 0?void 0:savedZonosSettings.genericSettings)||(t===null||t===void 0?void 0:t.genericSettings)||null);zonosStore.loadedConfig=true;zonosStore.enabledVariantTestKeys=((o=(n=t===null||t===void 0?void 0:t.checkoutSettings)===null||n===void 0?void 0:n.varianceTestRegistrations)===null||o===void 0?void 0:o.flatMap((function(e){var r=e.testKey;return isInAvailableTestKey(r)?r:[]})))||[];zonosStore.organizationId=((i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.id)||"";zonosStore.organizationName=((s=t===null||t===void 0?void 0:t.organization)===null||s===void 0?void 0:s.name)||"";zonosStore.storeId=((u=(c=t===null||t===void 0?void 0:t.organization)===null||c===void 0?void 0:c.references)===null||u===void 0?void 0:u.storeId)||null;zonosStore.currencyConverter=r===null||r===void 0?void 0:r.currencyConverter;zonosStore.onCountryChange=r===null||r===void 0?void 0:r.onCountryChange;zonosStore.overrideCurrencyFormat=r===null||r===void 0?void 0:r.overrideCurrencyFormat;zonosStore.sourceCurrency=new URLSearchParams(window.location.search).get("zonosSourceCurrencyCode")||((v=t===null||t===void 0?void 0:t.landedCostSettings)===null||v===void 0?void 0:v.defaultNativeCurrency)||"USD";log("Store base currency","info",zonosStore.sourceCurrency);if(zonosStore.storeId){window.Zonos.storeId=zonosStore.storeId}};var zonosStoreFontFamily=function(){var e=zonosStore.appearance.fontFamily||"Inter";return e};export{_root as _,commonjsGlobal as a,_baseGetTag as b,createStore as c,isObject_1 as d,zonosStoreInitSetting as e,zonosStoreFontFamily as f,getZonosStoreTheme as g,zonosStoreOnChange as h,isObjectLike_1 as i,mergeConfig as m,zonosStore as z};
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(n,e,r,o){function t(n){return n instanceof r?n:new r((function(e){e(n)}))}return new(r||(r=Promise))((function(r,i){function a(n){try{s(o.next(n))}catch(n){i(n)}}function u(n){try{s(o["throw"](n))}catch(n){i(n)}}function s(n){n.done?r(n.value):t(n.value).then(a,u)}s((o=o.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,t,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(e){return s([n,e])}}function s(u){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(o=1,t&&(i=u[0]&2?t["return"]:u[0]?t["throw"]||((i=t["return"])&&i.call(t),0):t.next)&&!(i=i.call(t,u[1])).done)return i;if(t=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;t=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=e.call(n,r)}catch(n){u=[6,n];t=0}finally{o=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,e,r){if(r||arguments.length===2)for(var o=0,t=e.length,i;o<t;o++){if(i||!(o in e)){if(!i)i=Array.prototype.slice.call(e,0,o);i[o]=e[o]}}return n.concat(i||Array.prototype.slice.call(e))};System.register(["./p-d938f42f.system.js"],(function(n){"use strict";var e;return{setters:[function(n){e=n.l}],execute:function(){var r=this;var o=n("l",(function(n){var r=[];for(var o=1;o<arguments.length;o++){r[o-1]=arguments[o]}e.apply(void 0,__spreadArray([n,"error"],r,false))}));var t=n("a",(function(){return window.location.search.includes("zonosStagingMode=1")}));var i=n("g",(function(){var n;return((n=window.Zonos.zonosApiKey)===null||n===void 0?void 0:n.includes("test"))||window.location.search.includes("zonosTestMode=1")}));var a=["cloudflare","vercel"];var u=a[0];var s=n("f",{cloudflare:"https://route.elements.zonos.com",vercel:"https://route.js.zonos.com"});var c=s[u];var d=function(n){if(n===void 0){n=u}var e=a.indexOf(n);var r=a[e+1];if(!r){return null}return r};var l=n("j",(function(n){if(typeof n==="string"){try{var e=JSON.parse(n);return e}catch(n){return null}}return null}));var f=890;var v=n("i",(function(n){return n||window.innerWidth<f}));var w=function(){var n="connection"in window.navigator?window.navigator.connection:null;var e="mozConnection"in window.navigator?window.navigator.mozConnection:null;var r="webkitConnection"in window.navigator?window.navigator.webkitConnection:null;var o=n||e||r;return o};var p=n("b",(function(){var n="userAgentData"in window.navigator?window.navigator.userAgentData:null;var e=w();return{connectionDownlink:e===null||e===void 0?void 0:e.downlink,connectionEffectiveType:e===null||e===void 0?void 0:e.effectiveType,connectionRtt:e===null||e===void 0?void 0:e.rtt,connectionSaveData:e===null||e===void 0?void 0:e.saveData,isHostedCheckout:window.Zonos.isLegacyCheckout,screenHeight:window.screen.height,screenWidth:window.innerWidth,userAgent:n&&n.brands.length>0?n:window.navigator.userAgent}}));var h=["/api/zonos-elements/log-script-load","/api/zonos-elements/log-bulk-load-data"];var b=function(n){var e=n.apiPath,r=n.apiType,o=n.loadTimeInternal,t=n.loadTimeTotal;if(h.includes(e)){return}var i=t-o;if(i<0){return}var a=e.split("?")[0]||e;var u=p();var s=typeof u.userAgent==="object"&&u.userAgent.mobile;var c={apiType:r,connectionType:u.connectionEffectiveType,href:a,isHostedCheckout:window.Zonos.isLegacyCheckout,isMobile:v(s),loadTimeBrowserApi:i,loadTimeInternal:o,loadTimeTotal:t,metadata:Object.assign({},u),screenHeight:u.screenHeight,screenWidth:u.screenWidth,userAgent:typeof u.userAgent==="string"?u.userAgent:u.userAgent["brands"].map((function(n){return n.brand})).filter((function(n){return!/Not.*A.*Brand.*/.test(n)})).join(",")};window.Zonos.loadTimeApiInfoList.push(c)};var y=1*3600*1e3;var m=n("s",(function(n){return __awaiter(r,[n],void 0,(function(n){var r,o,t,i,a;var u=n.endpoint,l=n.errors,f=n.metadata,v=n.shouldPostReleaseErrorReporting;return __generator(this,(function(n){e("sendErrorLog","warn",u,f,l);if(v){r=Number(window.Zonos.releaseDate);o=(new Date).getTime();if(o-r>y){return[2]}}t="userAgentData"in window.navigator?window.navigator.userAgentData:null;i={endpoint:u,errors:l,href:window.location.href,metadata:Object.assign({appVersion:window.Zonos.version,domain:window.Zonos.domain,publicCredential:window.Zonos.zonosApiKey,userAgent:t&&t.brands.length>0?t:window.navigator.userAgent},f)};try{void fetch("".concat(c,"/api/zonos-elements/log-error"),{body:JSON.stringify(i),headers:{"Zonos-Referer":window.location.hostname},method:"POST"})}catch(n){a=d();if(!a){return[2]}void fetch("".concat(s[a],"/api/zonos-elements/log-error"),{body:JSON.stringify(i),method:"POST"})}return[2]}))}))}));var g=undefined&&undefined.__rest||function(n,e){var r={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0)r[o]=n[o];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var t=0,o=Object.getOwnPropertySymbols(n);t<o.length;t++){if(e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(n,o[t]))r[o[t]]=n[o[t]]}return r};var _=function(n){return __awaiter(r,[n],void 0,(function(n){var e,r,o;var t=n.response,i=n.shouldLog,a=i===void 0?true:i,u=n.shouldThrow,s=u===void 0?false:u;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,t.text()];case 1:e=n.sent();r=l(e);if(!r){throw new Error("Failed to parse content: ".concat(e))}return[2,r];case 2:o=n.sent();if(s){throw o}if(a){console.error(o)}return[2,null];case 3:return[2]}}))}))};var T=function(n){try{var e=btoa(n).replace(/=/g,"");return e}catch(e){return n.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}};var j=function(n){return __awaiter(r,[n],void 0,(function(n){var e,r,o,t,i,a,c,d,l,f,v,f,w,p,c,h,c;var b=n.basePathType,y=n.options,m=n.path;return __generator(this,(function(n){switch(n.label){case 0:r=window.Zonos.zonosQaUrlApi||s[b]||u;o=r+m;t=new URL(o);i=window.Zonos.cartId?"".concat(window.location.hostname,"-").concat(window.Zonos.cartId):window.location.hostname;t.searchParams.set("zToken",T(i));n.label=1;case 1:n.trys.push([1,3,,4]);return[4,fetch(t.toString(),y)];case 2:e=n.sent();return[3,4];case 3:a=n.sent();if(a instanceof Error){return[2,{baseUrl:r,errors:[{message:a.message,type:"unknown"}],json:null,response:null,zonosMode:null}]}c="Failed to fetch";return[2,{baseUrl:r,errors:[{message:c,type:"unknown"}],json:null,response:null,zonosMode:null}];case 4:d=e.headers.get("Zonos-Mode");l=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&d&&l){window.Zonos.modeAlerted=true}if(!e.ok)return[3,6];return[4,_({response:e})];case 5:f=n.sent();return[2,{baseUrl:r,errors:[],json:f,response:e,zonosMode:d}];case 6:v=e.status.toString();n.label=7;case 7:n.trys.push([7,9,,10]);return[4,_({response:e,shouldThrow:true})];case 8:f=n.sent();if(f&&"errors"in f&&Array.isArray(f.errors)){w=f.errors;p=w.map((function(n){if(typeof n==="string"){return{message:n,type:v}}return n}));return[2,{baseUrl:r,errors:p,json:null,response:e,zonosMode:d}]}c=JSON.stringify(f);return[2,{baseUrl:r,errors:[{message:c,type:v}],json:null,response:e,zonosMode:d}];case 9:h=n.sent();c="Unknown error";return[2,{baseUrl:r,errors:[{message:"".concat(v,": ").concat(c),type:v}],json:null,response:null,zonosMode:d}];case 10:return[2]}}))}))};var k=function(n){return __awaiter(r,[n],void 0,(function(n){var r,o,t,i,a,u,c,f,v,w,p,h,y,_,T,z,O;var A=n.basePathType,S=n.options,M=n.path;return __generator(this,(function(n){switch(n.label){case 0:t=M.startsWith("/api/bigcommerce");i=t?"vercel":A;a=performance.now();return[4,j({basePathType:i,options:S,path:M})];case 1:u=n.sent(),c=u.errors,f=u.response,v=g(u,["errors","response"]);w=performance.now();p=w-a;e("".concat(M," (").concat(p.toFixed(2),"ms)"),"info");h=f===null||f===void 0?void 0:f.headers.get("Zonos-Duration");if((f===null||f===void 0?void 0:f.status)===200){b({apiPath:M,apiType:i,loadTimeInternal:h?Number(h):0,loadTimeTotal:p})}y=d(i);_=c.find((function(n){var e=n.type;return e==="unknown"}));T=c.find((function(n){var e=n.message;return typeof e==="string"&&(e.includes("signal is aborted")||e.includes("The operation was aborted")||e.includes("Fetch is aborted"))}));z=!!_||(f===null||f===void 0?void 0:f.status)===404||(f===null||f===void 0?void 0:f.status)===500;O=y&&z;if(z&&!T){void m({endpoint:s[i]+M,errors:c.map((function(n){var e=n.message;return"API: ".concat(e)})),metadata:{currentBasePath:i,nextFallbackApiType:y,requestHeaders:S===null||S===void 0?void 0:S.headers,requestPayload:l((r=S===null||S===void 0?void 0:S.body)===null||r===void 0?void 0:r.toString())||((o=S===null||S===void 0?void 0:S.body)===null||o===void 0?void 0:o.toString()),shouldCallFallback:O,status:f===null||f===void 0?void 0:f.status,statusText:f===null||f===void 0?void 0:f.statusText},shouldPostReleaseErrorReporting:true})}if(O){e('=== "'.concat(M,'" failed to fetch, trying next fallback ').concat(y));return[2,k({basePathType:y,options:S,path:M})]}return[2,Object.assign({errors:c,response:f},v)]}}))}))};var z=n("h",(function(n,e){return __awaiter(r,void 0,void 0,(function(){var r,o,a,s,c,d;return __generator(this,(function(l){r=g(e||{},[]);o=r.body?JSON.stringify(r.body):undefined;a=r.method||"GET";s=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Staging-Mode":t()?"1":undefined,"Zonos-Test-Mode":i()?"1":undefined,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},r.headers);Object.keys(s).forEach((function(n){return s[n]===undefined&&delete s[n]}));c=Object.assign(Object.assign({},r),{body:a==="GET"?undefined:o,headers:s,method:a});d=new URLSearchParams(window.location.search).get("useFallbackApi");return[2,k({basePathType:d||u,options:c,path:n})]}))}))}))}}}));
@@ -1 +0,0 @@
1
- System.register([],(function(a){"use strict";return{execute:function(){var i=a("a",(function(a,i){if(i===void 0){i=[]}var r={};i.forEach((function(i){if(a.hasAttribute(i)){var e=a.getAttribute(i);if(e!==null){r[i]=e}a.removeAttribute(i)}}));return r}));var r=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];var e=a("i",(function(a,e){var t=r;if(e&&e.length>0){t=t.filter((function(a){return!e.includes(a)}))}return i(a,t)}))}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-7261e245.system.js","./p-de58684b.system.js","./p-06f798ee.system.js","./p-23e7c655.system.js","./p-14afffa8.system.js","./p-c5d1217f.system.js","./p-6890e060.system.js","./p-1aa93d1e.system.js","./p-d938f42f.system.js"],(function(o){"use strict";var e,t,n,s,r,a,i,d,l,h,c,u,b;return{setters:[function(o){e=o.r;t=o.h;n=o.a;s=o.g},function(o){r=o.z;a=o.f},function(o){i=o.i;d=o.a},function(o){l=o.c},function(o){h=o.g},function(o){c=o.i},function(o){u=o.i},function(o){b=o.s},function(){}],execute:function(){var g=function(o){var e=o||r.appearance.colorSecondary;var t=e&&c(e)?"var(--zonos-elements-".concat(e,")"):e;var n=t&&u(t)?"DARK":"LIGHT";return n};var v=function(o){return u(window.getComputedStyle(o).getPropertyValue("--zonos-elements-gray-0"))};var m=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button{}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";var f=m;var k=o("zonos_button",function(){function o(o){var t=this;e(this,o);this.inheritedAttributes={};this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.withBoxShadow=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.justifyContent="center";this.bold=false;this.hasIcon=!!this.icon;this.hasContent=false;this.handleSlotChange=function(){t.hasContent=true};this.getColorVarProperty=function(o){return o.replace("var(","").replace(")","")};this.getButtonStyle=function(){var o=t.variant||"standard";var e=t.buttonColor&&c(t.buttonColor)?"var(--zonos-elements-".concat(t.buttonColor,")"):t.buttonColor;var n=window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(e||""))||e||"";var s=!v(t.ele);var a=!u(n);var i=s&&!a||!s&&a;switch(o){case"subtle":{return{color:e,useDarkHoverSubtle:i}}default:{var d=t.backgroundColor&&c(t.backgroundColor)?"var(--zonos-elements-".concat(t.backgroundColor,")"):t.backgroundColor;var l=d||r.appearance.colorSecondary;var h=l&&c(t.getColorVarProperty(l))?window.getComputedStyle(t.ele).getPropertyValue(t.getColorVarProperty(l)):l;var b=t.variant!=="subtle"&&h&&u(h)?"white":e;return{backgroundColor:l,color:b,spinnerColor:h&&u(h)?"white":"black",useDarkHoverSubtle:i}}}}}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler();this.inheritedAttributes=Object.assign(Object.assign({},i(this.ele)),d(this.ele,["tabindex","title","data-form-type","dir"]))};o.prototype.render=function(){var o=this.getButtonStyle(),e=o.backgroundColor,s=o.color,r=o.spinnerColor,i=o.useDarkHoverSubtle;var d=this.loading||this.isDisabled;var c=this.variant||"standard";var u=c==="standard"?g(e):undefined;var v=h({overrideBorderStyle:this.borderStyle});return t(n,{key:"df2bfe5807583d29166ccb7f5da28dcf5b41dcd3",class:l(["zonos--elements"]),"data-theme":this.theme||u,disabled:d,style:b({"--zonos--background-color":e,"--zonos--border-radius":v,"--zonos--color":s,"--zonos--font-family":a(),"--zonos--font-weight":this.bold?"bold":"normal"})},t("button",Object.assign({key:"18c6ba3797948296d847a8deed8784ee34b93113"},this.inheritedAttributes,{class:l([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",this.withBoxShadow&&"with-box-shadow",i&&"dark-hover-subtle",c,this.size,e&&c==="standard"&&"override-background"]),disabled:d,style:{justifyContent:this.justifyContent}}),this.loading&&t("div",{key:"b468795b69f4e20f7d0ca2c915b95080a53092e4",class:"zonos--spinner-wrapper"},t("zonos-spinner",{key:"368ea5d9cdb641140d78e55ac1874cbfd6b48db0",size:16,spinnerColor:r})),!this.loading&&!this.iconRight&&this.icon,t("slot",{key:"41ecf6db38ca534ed99fd8c2f6020bbfe99cddc9",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());k.style=f;var z=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--width);height:var(--zonos--height);fill:var(--zonos--color);color:var(--zonos--color)}";var p=z;var w=o("zonos_icon",function(){function o(o){e(this,o);this.autoHeight=false;this.iconColor="gray-1000";this.size=24}o.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var o=c(this.iconColor)?"var(--zonos-elements-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return t(n,{class:"zonos--elements",style:{"--zonos--color":o,"--zonos--font-family":a(),"--zonos--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--zonos--width":"".concat(this.size,"px")}})};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());w.style=p;var y=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--zonos--size);height:var(--zonos--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--size);height:var(--zonos--size);stroke:var(--zonos-elements-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--zonos-elements-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--zonos-elements-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--zonos-elements-spinner-track-black)}:host(.white) circle{stroke:var(--zonos-elements-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--zonos-elements-spinner-track-white)}:host(.info) circle{stroke:var(--zonos-elements-blue-600)}:host(.info) circle.track{stroke:var(--zonos-elements-blue-100)}:host(.success) circle{stroke:var(--zonos-elements-green-600)}:host(.success) circle.track{stroke:var(--zonos-elements-green-100)}:host(.danger) circle{stroke:var(--zonos-elements-red-600)}:host(.danger) circle.track{stroke:var(--zonos-elements-red-100)}:host(.warning) circle{stroke:var(--zonos-elements-orange-600)}:host(.warning) circle.track{stroke:var(--zonos-elements-orange-100)}";var x=y;var j=o("zonos_spinner",function(){function o(o){e(this,o);this.size=32}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return t(n,{class:l(["zonos--elements",this.spinnerColor]),style:{"--zonos--size":"".concat(this.size,"px")}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());j.style=x}}}));
@@ -1 +0,0 @@
1
- const e='<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>';export{e as R}
@@ -1 +0,0 @@
1
- import{i as o,t as r}from"./p-502d6eeb.js";import{i as f}from"./p-1cdd27ec.js";const n=({backgroundColor:n,color:c})=>{if(n===c)return o(c)?r(c).lighten(40).toHexString():r(c).darken(40).toHexString();if(f({backgroundColor1:n,backgroundColor2:c}))return c;const t=[25,50,70];for(const o of t){const t=[r(c).darken(o).toHexString(),r(c).lighten(o).toHexString()];t.sort(((o,f)=>r.readability(n,f)-r.readability(n,o)));for(const o of t)if(f({backgroundColor1:n,backgroundColor2:o}))return o}return r.readability(n,"#000000")>=r.readability(n,"#ffffff")?"#000000":"#ffffff"};export{n as g}