@zonos/elements 1.3.285 → 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.
- package/README.md +9 -1
- package/dist/cjs/RemoveIcon-CuM1YmjP.js +5 -0
- package/dist/cjs/{cart-94908542.js → cart-CV4buPlT.js} +43 -30
- package/dist/cjs/{collect-0c05e2b4.js → collect-jzWKzrV7.js} +17 -113
- package/dist/cjs/debounce-5sZmmlCI.js +9 -0
- package/dist/cjs/debounce-Nu2lJW4A.js +405 -0
- package/dist/cjs/{formatStringWithLinks-c25b4018.js → formatStringWithLinks-vOVkAjlu.js} +1 -1
- package/dist/cjs/{getBorderRadius-97fd5e02.js → getBorderRadius-DGZiQu09.js} +1 -1
- package/dist/cjs/{getContrastColor-956dfaf7.js → getContrastColor-B2Kn8XHA.js} +2 -2
- package/dist/cjs/{getMissingRequiredShippingFields-124b3f20.js → getMissingRequiredShippingFields-r5vYIqoX.js} +1 -1
- package/dist/cjs/{handleFetch-954f30e1.js → handleFetch-DQLhurnE.js} +4 -3
- package/dist/cjs/{hasInclusivePrice-d0cd2007.js → hasInclusivePrice-BZMQohG9.js} +1 -1
- package/dist/cjs/{helpers-5bdbb68c.js → helpers-ClOZ11A9.js} +0 -3
- package/dist/cjs/{index-b1f95d96.js → index-DAAr465v.js} +1252 -580
- package/dist/cjs/index.cjs.js +17 -21
- package/dist/cjs/{invoice-205fb5bc.js → invoice-CHw-mJdS.js} +6 -6
- package/dist/cjs/{isContrastColor-30f84a91.js → isContrastColor-B9ldIdpa.js} +1 -1
- package/dist/cjs/isDarkColor-f-fD9c2l.js +1187 -0
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/{localization-fb2ece37.js → localization-CxXsmxs5.js} +4 -4
- package/dist/cjs/{paypal-45ca5301.js → paypal-BLuHeOJH.js} +10 -9
- package/dist/cjs/{placeTestOrder-302b6862.js → placeTestOrder-VK_CMeq0.js} +3 -3
- package/dist/cjs/{renderCheckoutCurrency-1b0cd5f2.js → renderCheckoutCurrency-CC4CAy-a.js} +2 -2
- package/dist/cjs/{renderFallback-bc20ee20.js → renderFallback-Bme86uk8.js} +1 -1
- package/dist/cjs/{shouldRenderTaxIdInput-7d19556c.js → shouldRenderTaxIdInput-TxekHCp7.js} +2 -2
- package/dist/cjs/{shouldShowLanguageSelect-82985128.js → shouldShowLanguageSelect-Bj_jKWPK.js} +1 -1
- package/dist/cjs/{submitGtag-8a25f001.js → submitGtag-CcEL-w5D.js} +3 -3
- package/dist/cjs/throttle-BcxGntLr.js +87 -0
- package/dist/cjs/{updateCheckoutSessionAttributes-de7b1466.js → updateCheckoutSessionAttributes-Dltl5RBx.js} +3 -3
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +644 -692
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +13 -17
- package/dist/cjs/zonos-address_4.cjs.entry.js +50 -40
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +15 -16
- package/dist/cjs/zonos-badge.cjs.entry.js +7 -10
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -9
- package/dist/cjs/zonos-button_3.cjs.entry.js +18 -21
- package/dist/cjs/zonos-card_5.cjs.entry.js +34 -35
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +101 -87
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +10 -14
- package/dist/cjs/zonos-checkout.cjs.entry.js +151 -37
- package/dist/cjs/zonos-collapse.cjs.entry.js +5 -8
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +18 -23
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +59 -55
- package/dist/cjs/zonos-collect.cjs.entry.js +20 -23
- package/dist/cjs/zonos-component.cjs.entry.js +3 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +13 -16
- package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -11
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +68 -57
- package/dist/cjs/zonos-elements.cjs.js +7 -7
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +22 -23
- package/dist/cjs/zonos-hello.cjs.entry.js +19 -17
- package/dist/cjs/zonos-input.cjs.entry.js +10 -11
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +17 -21
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +57 -52
- package/dist/cjs/zonos-invoice.cjs.entry.js +19 -22
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +11 -15
- package/dist/cjs/zonos-link.cjs.entry.js +3 -6
- package/dist/cjs/zonos-logo.cjs.entry.js +6 -9
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +15 -19
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +11 -14
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +15 -14
- package/dist/cjs/zonos-text.cjs.entry.js +8 -11
- package/dist/cjs/zonos-tooltip.cjs.entry.js +4 -7
- package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -9
- package/dist/cjs/zonosStore-BCNYr6Tk.js +3808 -0
- package/dist/collection/__tests__/jsxWithChildren.types.js +13 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +13 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +4 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +17 -13
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +21 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +5 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +8 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +5 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +121 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +7 -7
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +8 -6
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +6 -5
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +4 -4
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +7 -7
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +8 -6
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +6 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +4 -4
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +7 -7
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +1 -1
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +8 -7
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -4
- package/dist/collection/components/common/zonos-button/zonos-button.js +29 -25
- package/dist/collection/components/common/zonos-card/zonos-card.js +9 -8
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -12
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +9 -6
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +15 -15
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +6 -5
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +22 -21
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +3 -2
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -7
- package/dist/collection/components/common/zonos-input/zonos-input.js +7 -7
- package/dist/collection/components/common/zonos-link/zonos-link.js +7 -7
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +4 -4
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -3
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +8 -7
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +1 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +15 -12
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +2 -2
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +3 -3
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +17 -17
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +23 -20
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +19 -19
- package/dist/collection/components/common/zonos-text/zonos-text.js +15 -11
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -3
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +3 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +7 -6
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +3 -3
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +16 -12
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +3 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -11
- package/dist/collection/components/main/zonos-controller.js +18 -10
- package/dist/collection/components/store/checkout/cart.js +14 -1
- package/dist/collection/components/store/checkout/stripe.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +9 -8
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +6 -4
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +13 -10
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +4 -4
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -2
- package/dist/collection/components/utils/checkout/isEuDapRemittance.js +1 -1
- package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +1 -1
- package/dist/collection/components/utils/validateCheckoutSession.js +11 -3
- package/dist/collection/scripts/cart/_setupCartData.js +2 -2
- package/dist/collection/scripts/cart/_setupCartDataWithSettings.js +2 -2
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +76 -6
- package/dist/esm/RemoveIcon-C2QMVeWW.js +3 -0
- package/dist/esm/{cart-2e407f7b.js → cart-ekBk_gxV.js} +42 -31
- package/dist/esm/{collect-19428e18.js → collect-33rMINDo.js} +17 -113
- package/dist/esm/debounce-D4ko2kvZ.js +403 -0
- package/dist/esm/debounce-DWPsxJsW.js +7 -0
- package/dist/esm/{formatStringWithLinks-0d48f183.js → formatStringWithLinks-BcMPqGl0.js} +1 -1
- package/dist/esm/{getBorderRadius-1f7be586.js → getBorderRadius-HwG64EKM.js} +1 -1
- package/dist/esm/{getContrastColor-4c0ae8c1.js → getContrastColor-CfCPlW9U.js} +2 -2
- package/dist/esm/{getMissingRequiredShippingFields-719b206f.js → getMissingRequiredShippingFields-u1nhQzJ1.js} +1 -1
- package/dist/esm/{handleFetch-a844cac1.js → handleFetch-D5GYDF-O.js} +4 -3
- package/dist/esm/{hasInclusivePrice-d801be22.js → hasInclusivePrice-CAVXi310.js} +1 -1
- package/dist/esm/{helpers-2f6955b1.js → helpers-DJIdCwJ5.js} +0 -3
- package/dist/esm/{index-cfd394c8.js → index-_lt63o7c.js} +1253 -561
- package/dist/esm/index.js +20 -22
- package/dist/esm/{invoice-67a47785.js → invoice-BNDWuVsD.js} +6 -6
- package/dist/esm/{isContrastColor-9fa0d013.js → isContrastColor-CWLU13s9.js} +1 -1
- package/dist/esm/isDarkColor-YdrG78th.js +1184 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{localization-36a4dc22.js → localization-AOqYXGdP.js} +5 -5
- package/dist/esm/{paypal-6dca6567.js → paypal-CW1D2XqZ.js} +10 -9
- package/dist/esm/{placeTestOrder-9563c89a.js → placeTestOrder-nhmsLLOA.js} +3 -3
- package/dist/esm/{renderCheckoutCurrency-282384f0.js → renderCheckoutCurrency-BQANmZyM.js} +2 -2
- package/dist/esm/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
- package/dist/esm/{shouldRenderTaxIdInput-ef7b5860.js → shouldRenderTaxIdInput-CKyZ6Zni.js} +2 -2
- package/dist/esm/{shouldShowLanguageSelect-328f50e2.js → shouldShowLanguageSelect-BQFCXouB.js} +1 -1
- package/dist/esm/{submitGtag-71c450b6.js → submitGtag-CCGQS060.js} +4 -4
- package/dist/esm/throttle-D5GyA3yr.js +85 -0
- package/dist/esm/{updateCheckoutSessionAttributes-23b222de.js → updateCheckoutSessionAttributes-eRSqdC74.js} +3 -3
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +644 -690
- package/dist/esm/zonos-address-display_2.entry.js +13 -15
- package/dist/esm/zonos-address_4.entry.js +50 -38
- package/dist/esm/zonos-airwallex-payment.entry.js +15 -14
- package/dist/esm/zonos-badge.entry.js +7 -8
- package/dist/esm/zonos-banner.entry.js +6 -7
- package/dist/esm/zonos-button_3.entry.js +18 -19
- package/dist/esm/zonos-card_5.entry.js +34 -33
- package/dist/esm/zonos-cart-items_12.entry.js +101 -85
- package/dist/esm/zonos-checkbox_2.entry.js +10 -12
- package/dist/esm/zonos-checkout.entry.js +151 -35
- package/dist/esm/zonos-collapse.entry.js +5 -6
- package/dist/esm/zonos-collect-cart-items_3.entry.js +18 -21
- package/dist/esm/zonos-collect-finish_6.entry.js +59 -53
- package/dist/esm/zonos-collect.entry.js +20 -21
- package/dist/esm/zonos-component.entry.js +3 -4
- package/dist/esm/zonos-controller.entry.js +13 -14
- package/dist/esm/zonos-country-flag.entry.js +8 -9
- package/dist/esm/zonos-country-select_4.entry.js +68 -55
- package/dist/esm/zonos-elements.js +6 -5
- package/dist/esm/zonos-hello-dialog.entry.js +22 -21
- package/dist/esm/zonos-hello.entry.js +19 -15
- package/dist/esm/zonos-input.entry.js +10 -9
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +17 -19
- package/dist/esm/zonos-invoice-finish_5.entry.js +57 -50
- package/dist/esm/zonos-invoice.entry.js +19 -20
- package/dist/esm/zonos-language-select_2.entry.js +11 -13
- package/dist/esm/zonos-link.entry.js +3 -4
- package/dist/esm/zonos-logo.entry.js +6 -7
- package/dist/esm/zonos-policy-consent_2.entry.js +15 -17
- package/dist/esm/zonos-shipping-rich-radio.entry.js +11 -12
- package/dist/esm/zonos-stripe-input.entry.js +15 -12
- package/dist/esm/zonos-text.entry.js +8 -9
- package/dist/esm/zonos-tooltip.entry.js +4 -5
- package/dist/esm/zonos-v-stack.entry.js +6 -7
- package/dist/esm/zonosStore-DrIOAz4M.js +3795 -0
- package/dist/esm-es5/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +5 -1
- package/dist/esm-es5/VarianceTest-BJmZPrZl.js +9 -0
- package/dist/esm-es5/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +4 -0
- package/dist/esm-es5/cart-ekBk_gxV.js +517 -0
- package/dist/esm-es5/classes-BJHSB96f.js +10 -0
- package/dist/esm-es5/cleanHtmlMarkdown-ByGDytaN.js +191 -0
- package/dist/esm-es5/collect-33rMINDo.js +241 -0
- package/dist/esm-es5/containsNonLatinChars-C04AWRC2.js +11 -0
- package/dist/esm-es5/createCustomEvent-XQfWgQLB.js +6 -0
- package/dist/esm-es5/debounce-D4ko2kvZ.js +153 -0
- package/dist/esm-es5/debounce-DWPsxJsW.js +1 -0
- package/dist/esm-es5/formatStringWithLinks-BcMPqGl0.js +8 -0
- package/dist/esm-es5/getBorderRadius-HwG64EKM.js +8 -0
- package/dist/esm-es5/getContrastColor-CfCPlW9U.js +14 -0
- package/dist/esm-es5/getGenericSettingsOverride-HeAZDwVW.js +4 -0
- package/dist/esm-es5/getMissingRequiredShippingFields-u1nhQzJ1.js +20 -0
- package/dist/esm-es5/handleFetch-D5GYDF-O.js +60 -0
- package/dist/esm-es5/hasInclusivePrice-CAVXi310.js +6 -0
- package/dist/esm-es5/helpers-DJIdCwJ5.js +23 -0
- package/dist/esm-es5/index-_lt63o7c.js +162 -0
- package/dist/esm-es5/index.js +227 -1
- package/dist/esm-es5/invoice-BNDWuVsD.js +13 -0
- package/dist/esm-es5/isColorVariable-DXXUq2Lv.js +11 -0
- package/dist/esm-es5/isContrastColor-CWLU13s9.js +5 -0
- package/dist/esm-es5/isDarkColor-YdrG78th.js +204 -0
- package/dist/esm-es5/isSameHostCheckoutLink-BxAHnL5J.js +16 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-AOqYXGdP.js +332 -0
- package/dist/esm-es5/paypal-CW1D2XqZ.js +192 -0
- package/dist/esm-es5/placeTestOrder-nhmsLLOA.js +1 -0
- package/dist/esm-es5/renderCheckoutCurrency-BQANmZyM.js +13 -0
- package/dist/esm-es5/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +17 -0
- package/dist/esm-es5/shouldShowLanguageSelect-BQFCXouB.js +7 -0
- package/dist/esm-es5/styles-BTIeCf3T.js +6 -0
- package/dist/esm-es5/submitGtag-CCGQS060.js +45 -0
- package/dist/esm-es5/throttle-D5GyA3yr.js +46 -0
- package/dist/esm-es5/updateCheckoutSessionAttributes-eRSqdC74.js +8 -0
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +2966 -1
- package/dist/esm-es5/zonos-address-display_2.entry.js +46 -1
- package/dist/esm-es5/zonos-address_4.entry.js +179 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +49 -1
- package/dist/esm-es5/zonos-badge.entry.js +25 -1
- package/dist/esm-es5/zonos-banner.entry.js +7 -1
- package/dist/esm-es5/zonos-button_3.entry.js +116 -1
- package/dist/esm-es5/zonos-card_5.entry.js +33 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +666 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +21 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1043 -1
- package/dist/esm-es5/zonos-collapse.entry.js +15 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +13 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +157 -1
- package/dist/esm-es5/zonos-collect.entry.js +171 -1
- package/dist/esm-es5/zonos-component.entry.js +10 -1
- package/dist/esm-es5/zonos-controller.entry.js +198 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +6 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +152 -1
- package/dist/esm-es5/zonos-elements.js +4 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +63 -1
- package/dist/esm-es5/zonos-hello.entry.js +121 -1
- package/dist/esm-es5/zonos-input.entry.js +16 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +7 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +133 -1
- package/dist/esm-es5/zonos-invoice.entry.js +115 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +14 -1
- package/dist/esm-es5/zonos-link.entry.js +4 -1
- package/dist/esm-es5/zonos-logo.entry.js +7 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +31 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +5 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +27 -1
- package/dist/esm-es5/zonos-text.entry.js +24 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +7 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +5 -1
- package/dist/esm-es5/zonosStore-DrIOAz4M.js +1153 -0
- package/dist/scripts/index.d.ts +1167 -514
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/__tests__/jsxWithChildren.types.d.ts +14 -0
- package/dist/types/__tests__/vitest-globals.d.ts +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +14 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -10
- package/dist/types/components/utils/api/checkItemRestrictions.d.ts +2 -2
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +5 -5
- package/dist/types/components/utils/checkout/isShippableCountry.d.ts +5 -1
- package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +2 -2
- package/dist/types/components.d.ts +797 -147
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +124 -124
- package/dist/types/stencil-public-runtime.d.ts +205 -12
- package/dist/types/types/generated/graphql.frontend.types.d.ts +62 -60
- package/dist/types/types/generated/graphql.frontend.types.ts +57 -55
- package/dist/types/types/generated/graphql.internal.types.d.ts +1346 -1251
- package/dist/types/types/generated/graphql.internal.types.ts +1187 -1075
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-02ef0f99.system.entry.js +6 -0
- package/dist/zonos-elements/{p-1be53c82.entry.js → p-0466650f.entry.js} +1 -1
- package/dist/zonos-elements/p-04bfcd72.system.entry.js +152 -0
- package/dist/zonos-elements/p-04cc0dac.system.entry.js +198 -0
- package/dist/zonos-elements/p-058f07aa.system.entry.js +7 -0
- package/dist/zonos-elements/p-0f603278.system.entry.js +5 -0
- package/dist/zonos-elements/{p-bb09ee50.entry.js → p-128485dc.entry.js} +1 -1
- package/dist/zonos-elements/p-1568ab06.system.entry.js +117 -0
- package/dist/zonos-elements/p-2ba738ec.entry.js +1 -0
- package/dist/zonos-elements/{p-6afd5fab.entry.js → p-31ac495f.entry.js} +1 -1
- package/dist/zonos-elements/p-34d1545a.entry.js +1 -0
- package/dist/zonos-elements/p-39c8a898.entry.js +1 -0
- package/dist/zonos-elements/p-3ERbuo5a.js +1 -0
- package/dist/zonos-elements/p-450ed170.system.entry.js +46 -0
- package/dist/zonos-elements/p-4973f8d8.system.entry.js +180 -0
- package/dist/zonos-elements/p-49e7bb1e.system.entry.js +7 -0
- package/dist/zonos-elements/p-4a54f664.entry.js +1 -0
- package/dist/zonos-elements/p-4ab1c533.system.entry.js +4 -0
- package/dist/zonos-elements/p-5024df2d.system.entry.js +666 -0
- package/dist/zonos-elements/p-5562a955.system.entry.js +7 -0
- package/dist/zonos-elements/p-5836d426.system.entry.js +49 -0
- package/dist/zonos-elements/p-5a631080.system.entry.js +13 -0
- package/dist/zonos-elements/{p-2ce039e5.entry.js → p-5c08d36b.entry.js} +1 -1
- package/dist/zonos-elements/{p-aed4ffb2.entry.js → p-5d3079e8.entry.js} +1 -1
- package/dist/zonos-elements/p-629f09dc.system.entry.js +171 -0
- package/dist/zonos-elements/p-64e7bc5b.entry.js +1 -0
- package/dist/zonos-elements/p-6b0afaa7.entry.js +1 -0
- package/dist/zonos-elements/p-6f742021.entry.js +1 -0
- package/dist/zonos-elements/p-7681798d.entry.js +1 -0
- package/dist/zonos-elements/p-7a5d2211.system.entry.js +115 -0
- package/dist/zonos-elements/{p-b1e95f95.entry.js → p-7ae48e31.entry.js} +1 -1
- package/dist/zonos-elements/{p-f37150e8.entry.js → p-8328f44d.entry.js} +1 -1
- package/dist/zonos-elements/{p-171a7e1e.entry.js → p-844a743a.entry.js} +1 -1
- package/dist/zonos-elements/p-891b47d7.entry.js +1 -0
- package/dist/zonos-elements/p-89ddab88.entry.js +1 -0
- package/dist/zonos-elements/p-8cd3f1e2.entry.js +1 -0
- package/dist/zonos-elements/p-9818f823.entry.js +1 -0
- package/dist/zonos-elements/p-9b399685.system.entry.js +10 -0
- package/dist/zonos-elements/p-9b6482ef.entry.js +1 -0
- package/dist/zonos-elements/{p-2c44e013.entry.js → p-9ebe9a36.entry.js} +1 -1
- package/dist/zonos-elements/p-B2EZRfoq.system.js +193 -0
- package/dist/zonos-elements/p-B3GRrRtL.system.js +5 -0
- package/dist/zonos-elements/p-BANhKkF2.system.js +1 -0
- package/dist/zonos-elements/p-BDopxBpR.system.js +6 -0
- package/dist/zonos-elements/p-BJufDgh3.js +1 -0
- package/dist/zonos-elements/p-BLQFeIez.system.js +191 -0
- package/dist/zonos-elements/p-BNtWsPPP.system.js +7 -0
- package/dist/zonos-elements/p-BSgVcCxT.system.js +9 -0
- package/dist/zonos-elements/p-BXjdMMUy.js +1 -0
- package/dist/zonos-elements/p-BbgqQIHv.system.js +9 -0
- package/dist/zonos-elements/p-BgSx82zO.system.js +11 -0
- package/dist/zonos-elements/p-Bi-s0fp_.system.js +17 -0
- package/dist/zonos-elements/p-Bu9WCfUC.system.js +5 -0
- package/dist/zonos-elements/p-C19J2XSh.js +1 -0
- package/dist/zonos-elements/p-C2QMVeWW.js +1 -0
- package/dist/zonos-elements/p-C2j7R11h.system.js +11 -0
- package/dist/zonos-elements/p-CEl4pzNq.js +1 -0
- package/dist/zonos-elements/p-CICjAi70.js +1 -0
- package/dist/zonos-elements/p-CIevpRv_.system.js +162 -0
- package/dist/zonos-elements/{p-e5c76a9b.js → p-CJCoACvU.js} +2 -2
- package/dist/zonos-elements/p-CKBbIU4b.system.js +14 -0
- package/dist/zonos-elements/p-CKTIJ2Gr.js +1 -0
- package/dist/zonos-elements/p-CKhl__Kc.system.js +4 -0
- package/dist/zonos-elements/p-CPnR_T0a.system.js +1153 -0
- package/dist/zonos-elements/p-CQqNJo0D.system.js +13 -0
- package/dist/zonos-elements/p-CYdt69j5.system.js +241 -0
- package/dist/zonos-elements/p-CZl1nwqv.system.js +46 -0
- package/dist/zonos-elements/p-CaAod213.system.js +8 -0
- package/dist/zonos-elements/p-CaUXHglQ.system.js +153 -0
- package/dist/zonos-elements/{p-45bd8072.system.js → p-CeLaK0Ff.system.js} +1 -1
- package/dist/zonos-elements/p-CtEsvWI6.js +1 -0
- package/dist/zonos-elements/p-D-DawUYF.system.js +1 -0
- package/dist/zonos-elements/p-D0erXw7p.js +1 -0
- package/dist/zonos-elements/p-D31lQiWo.system.js +21 -0
- package/dist/zonos-elements/p-D5AtAlJx.system.js +13 -0
- package/dist/zonos-elements/p-DBOI98r5.system.js +7 -0
- package/dist/zonos-elements/{p-41dd1cb8.js → p-DE4a-QD5.js} +1 -1
- package/dist/zonos-elements/p-DGsEWFDU.system.js +8 -0
- package/dist/zonos-elements/p-DHwpNxG9.js +1 -0
- package/dist/zonos-elements/p-DIJaXkiE.system.js +332 -0
- package/dist/zonos-elements/{p-eef5b0cc.js → p-DJIdCwJ5.js} +1 -1
- package/dist/zonos-elements/p-DPW1yXt9.system.js +517 -0
- package/dist/zonos-elements/{p-6bdc5c96.js → p-DTgv0QpG.js} +1 -1
- package/dist/zonos-elements/p-DW-fW8yR.system.js +205 -0
- package/dist/zonos-elements/p-Dj-O6VfM.system.js +7 -0
- package/dist/zonos-elements/p-DjuFsKLG.js +1 -0
- package/dist/zonos-elements/p-DkpYo2Fs.js +1 -0
- package/dist/zonos-elements/p-DnjGkbEy.js +1 -0
- package/dist/zonos-elements/p-Dw-5yD9y.system.js +227 -0
- package/dist/zonos-elements/{p-46cd14e5.js → p-LypTHRUC.js} +1 -1
- package/dist/zonos-elements/p-MfsSJh_D.system.js +8 -0
- package/dist/zonos-elements/p-YdrG78th.js +1 -0
- package/dist/zonos-elements/p-_lt63o7c.js +3 -0
- package/dist/zonos-elements/p-a38e62cc.entry.js +1 -0
- package/dist/zonos-elements/p-a6faab6a.entry.js +1 -0
- package/dist/zonos-elements/p-adfee3a3.entry.js +1 -0
- package/dist/zonos-elements/p-b14819ab.system.entry.js +14 -0
- package/dist/zonos-elements/{p-0c972ddf.entry.js → p-b68ca96f.entry.js} +1 -1
- package/dist/zonos-elements/p-b6deae2b.system.entry.js +5 -0
- package/dist/zonos-elements/p-bdba7d9e.system.entry.js +25 -0
- package/dist/zonos-elements/p-be64d823.system.entry.js +16 -0
- package/dist/zonos-elements/p-beeb9d36.system.entry.js +21 -0
- package/dist/zonos-elements/p-cadf6b63.system.entry.js +33 -0
- package/dist/zonos-elements/p-cc5306fe.system.entry.js +24 -0
- package/dist/zonos-elements/p-cc949df1.system.entry.js +7 -0
- package/dist/zonos-elements/{p-bced320e.entry.js → p-cdffc9b6.entry.js} +1 -1
- package/dist/zonos-elements/p-cf5688f7.entry.js +1 -0
- package/dist/zonos-elements/p-d05Ku7gM.system.js +24 -0
- package/dist/zonos-elements/p-d33dfc78.system.entry.js +2966 -0
- package/dist/zonos-elements/p-d55b9664.system.entry.js +157 -0
- package/dist/zonos-elements/p-daf9fa07.system.entry.js +133 -0
- package/dist/zonos-elements/p-dcdbc610.system.entry.js +27 -0
- package/dist/zonos-elements/p-e101d722.system.entry.js +63 -0
- package/dist/zonos-elements/{p-9639a8ed.entry.js → p-e284d329.entry.js} +1 -1
- package/dist/zonos-elements/{p-8311edc7.entry.js → p-e9320825.entry.js} +1 -1
- package/dist/zonos-elements/p-ea8790aa.entry.js +1 -0
- package/dist/zonos-elements/{p-6ee4e027.entry.js → p-eadaefdc.entry.js} +1 -1
- package/dist/zonos-elements/p-f27317d3.system.entry.js +31 -0
- package/dist/zonos-elements/p-f2cedbcd.system.entry.js +121 -0
- package/dist/zonos-elements/p-f57495dc.entry.js +1 -0
- package/dist/zonos-elements/p-f6e0aeba.system.entry.js +1043 -0
- package/dist/zonos-elements/p-f8fd756a.system.entry.js +15 -0
- package/dist/zonos-elements/{p-7ada039e.entry.js → p-fe778437.entry.js} +1 -1
- package/dist/zonos-elements/{p-adfbf57b.js → p-i1iCWKdv.js} +1 -1
- package/dist/zonos-elements/p-lGLcGvEA.js +1 -0
- package/dist/zonos-elements/p-nOb4xPLF.system.js +17 -0
- package/dist/zonos-elements/p-nU86HJ5w.js +1 -0
- package/dist/zonos-elements/p-pfIceXbY.js +1 -0
- package/dist/zonos-elements/p-smUku7Ku.system.js +5 -0
- package/dist/zonos-elements/p-t_ClFAJR.js +1 -0
- package/dist/zonos-elements/p-uV7m6KrY.system.js +46 -0
- package/dist/zonos-elements/p-vN6p_rO1.system.js +11 -0
- package/dist/zonos-elements/p-zRjRcLMp.js +1 -0
- package/dist/zonos-elements/p-zVLAvre1.system.js +60 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +28 -32
- package/dist/cjs/RemoveIcon-081ac073.js +0 -5
- package/dist/cjs/debounce-7ca3c878.js +0 -357
- package/dist/cjs/isDarkColor-a6e6fd5e.js +0 -1202
- package/dist/cjs/throttle-366c204b.js +0 -76
- package/dist/cjs/zonosStore-0af0b937.js +0 -3030
- package/dist/esm/RemoveIcon-9dc5dd1a.js +0 -3
- package/dist/esm/debounce-84ade9c2.js +0 -355
- package/dist/esm/isDarkColor-939d8e9c.js +0 -1199
- package/dist/esm/throttle-c4c24e86.js +0 -74
- package/dist/esm/zonosStore-eca1e364.js +0 -3017
- package/dist/esm-es5/VarianceTest-572cecf5.js +0 -1
- package/dist/esm-es5/cart-2e407f7b.js +0 -1
- package/dist/esm-es5/classes-0d95c529.js +0 -1
- package/dist/esm-es5/cleanHtmlMarkdown-87d195f6.js +0 -1
- package/dist/esm-es5/collect-19428e18.js +0 -1
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +0 -1
- package/dist/esm-es5/createCustomEvent-58159025.js +0 -1
- package/dist/esm-es5/debounce-84ade9c2.js +0 -1
- package/dist/esm-es5/formatStringWithLinks-0d48f183.js +0 -1
- package/dist/esm-es5/getBorderRadius-1f7be586.js +0 -1
- package/dist/esm-es5/getContrastColor-4c0ae8c1.js +0 -1
- package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +0 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-719b206f.js +0 -1
- package/dist/esm-es5/handleFetch-a844cac1.js +0 -1
- package/dist/esm-es5/hasInclusivePrice-d801be22.js +0 -1
- package/dist/esm-es5/helpers-2f6955b1.js +0 -1
- package/dist/esm-es5/index-cfd394c8.js +0 -13
- package/dist/esm-es5/invoice-67a47785.js +0 -1
- package/dist/esm-es5/isColorVariable-0a94004f.js +0 -1
- package/dist/esm-es5/isContrastColor-9fa0d013.js +0 -1
- package/dist/esm-es5/isDarkColor-939d8e9c.js +0 -1
- package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +0 -1
- package/dist/esm-es5/localization-36a4dc22.js +0 -1
- package/dist/esm-es5/paypal-6dca6567.js +0 -17
- package/dist/esm-es5/placeTestOrder-9563c89a.js +0 -1
- package/dist/esm-es5/renderCheckoutCurrency-282384f0.js +0 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-ef7b5860.js +0 -1
- package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +0 -1
- package/dist/esm-es5/styles-6fc2fad9.js +0 -1
- package/dist/esm-es5/submitGtag-71c450b6.js +0 -1
- package/dist/esm-es5/throttle-c4c24e86.js +0 -1
- package/dist/esm-es5/updateCheckoutSessionAttributes-23b222de.js +0 -1
- package/dist/esm-es5/zonosStore-eca1e364.js +0 -1
- package/dist/zonos-elements/p-01174496.system.js +0 -1
- package/dist/zonos-elements/p-06f798ee.system.js +0 -1
- package/dist/zonos-elements/p-083a11cd.system.entry.js +0 -1
- package/dist/zonos-elements/p-08e7107d.js +0 -1
- package/dist/zonos-elements/p-0b29169b.js +0 -1
- package/dist/zonos-elements/p-0c9fec73.js +0 -1
- package/dist/zonos-elements/p-0d2f81ce.system.js +0 -1
- package/dist/zonos-elements/p-0e199a6c.system.entry.js +0 -1
- package/dist/zonos-elements/p-0ff845ec.js +0 -1
- package/dist/zonos-elements/p-1277abac.system.entry.js +0 -1
- package/dist/zonos-elements/p-14afffa8.system.js +0 -1
- package/dist/zonos-elements/p-1834f486.js +0 -1
- package/dist/zonos-elements/p-1aa93d1e.system.js +0 -1
- package/dist/zonos-elements/p-1ac0c631.system.js +0 -1
- package/dist/zonos-elements/p-1b8771bb.js +0 -1
- package/dist/zonos-elements/p-1cdd27ec.js +0 -1
- package/dist/zonos-elements/p-1f8648c8.system.entry.js +0 -1
- package/dist/zonos-elements/p-22e10b7d.entry.js +0 -1
- package/dist/zonos-elements/p-23e7c655.system.js +0 -1
- package/dist/zonos-elements/p-260ad739.system.entry.js +0 -1
- package/dist/zonos-elements/p-2670438c.system.js +0 -1
- package/dist/zonos-elements/p-27660512.js +0 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +0 -1
- package/dist/zonos-elements/p-2b8c96e3.system.js +0 -1
- package/dist/zonos-elements/p-2b97f7ed.js +0 -1
- package/dist/zonos-elements/p-2bbe9d91.js +0 -1
- package/dist/zonos-elements/p-2c2afed4.entry.js +0 -1
- package/dist/zonos-elements/p-2c7a425d.entry.js +0 -1
- package/dist/zonos-elements/p-2cab1746.system.entry.js +0 -1
- package/dist/zonos-elements/p-2cdd1b49.system.entry.js +0 -1
- package/dist/zonos-elements/p-3490b6d0.entry.js +0 -1
- package/dist/zonos-elements/p-398d9022.system.js +0 -1
- package/dist/zonos-elements/p-3a13e58c.system.js +0 -1
- package/dist/zonos-elements/p-40a4c8a2.system.js +0 -1
- package/dist/zonos-elements/p-4160bbc2.system.js +0 -1
- package/dist/zonos-elements/p-4671fde7.entry.js +0 -1
- package/dist/zonos-elements/p-4a20893e.system.js +0 -1
- package/dist/zonos-elements/p-4b159ff3.system.js +0 -1
- package/dist/zonos-elements/p-502d6eeb.js +0 -1
- package/dist/zonos-elements/p-51e4e61a.system.entry.js +0 -1
- package/dist/zonos-elements/p-551fa762.system.js +0 -1
- package/dist/zonos-elements/p-5a491f28.js +0 -1
- package/dist/zonos-elements/p-5b990c91.entry.js +0 -1
- package/dist/zonos-elements/p-5ebb7ae6.entry.js +0 -1
- package/dist/zonos-elements/p-60832726.system.js +0 -1
- package/dist/zonos-elements/p-60a6b71d.system.js +0 -1
- package/dist/zonos-elements/p-62f6a757.entry.js +0 -1
- package/dist/zonos-elements/p-65c1f51e.entry.js +0 -1
- package/dist/zonos-elements/p-6695de06.system.js +0 -1
- package/dist/zonos-elements/p-67426156.system.js +0 -1
- package/dist/zonos-elements/p-6890e060.system.js +0 -1
- package/dist/zonos-elements/p-6dde1e85.system.entry.js +0 -1
- package/dist/zonos-elements/p-7176f582.entry.js +0 -1
- package/dist/zonos-elements/p-7261e245.system.js +0 -13
- package/dist/zonos-elements/p-76834a0a.system.entry.js +0 -1
- package/dist/zonos-elements/p-7ac8846c.system.js +0 -1
- package/dist/zonos-elements/p-7fbbdb0f.system.js +0 -1
- package/dist/zonos-elements/p-8a0b8175.system.entry.js +0 -1
- package/dist/zonos-elements/p-8a6c4017.js +0 -1
- package/dist/zonos-elements/p-8b298971.system.entry.js +0 -1
- package/dist/zonos-elements/p-8be02f3a.system.js +0 -1
- package/dist/zonos-elements/p-8bfe5b2b.entry.js +0 -1
- package/dist/zonos-elements/p-8e6338b9.entry.js +0 -1
- package/dist/zonos-elements/p-916228fb.system.js +0 -1
- package/dist/zonos-elements/p-94722bf6.system.entry.js +0 -1
- package/dist/zonos-elements/p-947e4402.system.entry.js +0 -1
- package/dist/zonos-elements/p-9ad640b2.system.entry.js +0 -1
- package/dist/zonos-elements/p-9ecb9afc.system.entry.js +0 -1
- package/dist/zonos-elements/p-a04e2750.system.entry.js +0 -1
- package/dist/zonos-elements/p-a07e5011.entry.js +0 -1
- package/dist/zonos-elements/p-a1bd3a53.system.js +0 -1
- package/dist/zonos-elements/p-a553e132.js +0 -1
- package/dist/zonos-elements/p-a9ad74e5.system.entry.js +0 -1
- package/dist/zonos-elements/p-acb7dee1.system.entry.js +0 -1
- package/dist/zonos-elements/p-ae0de3e4.entry.js +0 -1
- package/dist/zonos-elements/p-aecb5d61.entry.js +0 -1
- package/dist/zonos-elements/p-af19722c.system.js +0 -1
- package/dist/zonos-elements/p-b4ae66cb.system.entry.js +0 -1
- package/dist/zonos-elements/p-bcaffb85.system.entry.js +0 -1
- package/dist/zonos-elements/p-be6cd28c.system.entry.js +0 -1
- package/dist/zonos-elements/p-bf37ccc7.system.js +0 -1
- package/dist/zonos-elements/p-c1631c9c.js +0 -1
- package/dist/zonos-elements/p-c5d1217f.system.js +0 -1
- package/dist/zonos-elements/p-c77b049c.entry.js +0 -1
- package/dist/zonos-elements/p-ca87ada5.system.entry.js +0 -1
- package/dist/zonos-elements/p-cb49dcfe.entry.js +0 -1
- package/dist/zonos-elements/p-cb4cb5a3.system.js +0 -1
- package/dist/zonos-elements/p-ce75b047.js +0 -2
- package/dist/zonos-elements/p-d20fe2c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-d42bd250.system.entry.js +0 -1
- package/dist/zonos-elements/p-d6a73125.system.entry.js +0 -1
- package/dist/zonos-elements/p-d938f42f.system.js +0 -1
- package/dist/zonos-elements/p-dc80cb87.js +0 -1
- package/dist/zonos-elements/p-dd3c00d6.system.entry.js +0 -1
- package/dist/zonos-elements/p-de58684b.system.js +0 -1
- package/dist/zonos-elements/p-e160b75f.js +0 -1
- package/dist/zonos-elements/p-e1ef3984.system.entry.js +0 -1
- package/dist/zonos-elements/p-e27b8e18.entry.js +0 -1
- package/dist/zonos-elements/p-e2b4c082.system.entry.js +0 -1
- package/dist/zonos-elements/p-e32ee011.system.entry.js +0 -1
- package/dist/zonos-elements/p-e4b07f7d.system.entry.js +0 -1
- package/dist/zonos-elements/p-e8587f9f.system.entry.js +0 -1
- package/dist/zonos-elements/p-eb5f3451.system.js +0 -18
- package/dist/zonos-elements/p-ebbda085.system.js +0 -1
- package/dist/zonos-elements/p-f4720b0a.js +0 -1
- package/dist/zonos-elements/p-f4acce01.js +0 -1
- package/dist/zonos-elements/p-f59a0129.system.entry.js +0 -1
- package/dist/zonos-elements/p-f8356934.system.entry.js +0 -1
- package/dist/zonos-elements/p-fe5f05fc.system.js +0 -1
- package/dist/zonos-elements/p-ff4e6811.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{CheckoutConfig-27c82f94.js → CheckoutConfig-B7JRM7yr.js} +0 -0
- /package/dist/cjs/{ShortAddressCode-bec338b0.js → ShortAddressCode-C5l520-F.js} +0 -0
- /package/dist/cjs/{TaxId-cd9d490e.js → TaxId-Q6aDqqWv.js} +0 -0
- /package/dist/cjs/{VarianceTest-bec00ea8.js → VarianceTest-C98whVgO.js} +0 -0
- /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
- /package/dist/cjs/{buildCartItemsByTempCart-edddbf4b.js → buildCartItemsByTempCart-ILzonEjb.js} +0 -0
- /package/dist/cjs/{classes-b7918f56.js → classes-D_DL168u.js} +0 -0
- /package/dist/cjs/{cleanHtmlMarkdown-57147de7.js → cleanHtmlMarkdown-DpT-nZLH.js} +0 -0
- /package/dist/cjs/{containsNonLatinChars-2be5129b.js → containsNonLatinChars-D_OggJN6.js} +0 -0
- /package/dist/cjs/{createCustomEvent-7b6fad95.js → createCustomEvent-Cs5zGImL.js} +0 -0
- /package/dist/cjs/{getGenericSettingsOverride-c0ca32b9.js → getGenericSettingsOverride-CL6l6wvX.js} +0 -0
- /package/dist/cjs/{getHasMoreSpaceOnRight-4c94667f.js → getHasMoreSpaceOnRight-Cl50u1mb.js} +0 -0
- /package/dist/cjs/{isCollectMobileTablet-884d4280.js → isCollectMobileTablet-Cx2nZ15_.js} +0 -0
- /package/dist/cjs/{isColorVariable-525dbfa7.js → isColorVariable-CKoJdu9G.js} +0 -0
- /package/dist/cjs/{isInvoiceMobileTablet-dde41e4e.js → isInvoiceMobileTablet-CCqFYV6m.js} +0 -0
- /package/dist/cjs/{isSameHostCheckoutLink-6148cabb.js → isSameHostCheckoutLink-DbmQ7Ha4.js} +0 -0
- /package/dist/cjs/{styles-d1e64fb9.js → styles-nowYls3K.js} +0 -0
- /package/dist/esm/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +0 -0
- /package/dist/esm/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
- /package/dist/esm/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
- /package/dist/esm/{VarianceTest-572cecf5.js → VarianceTest-BJmZPrZl.js} +0 -0
- /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/esm/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +0 -0
- /package/dist/esm/{classes-0d95c529.js → classes-BJHSB96f.js} +0 -0
- /package/dist/esm/{cleanHtmlMarkdown-87d195f6.js → cleanHtmlMarkdown-ByGDytaN.js} +0 -0
- /package/dist/esm/{containsNonLatinChars-2d8810c3.js → containsNonLatinChars-C04AWRC2.js} +0 -0
- /package/dist/esm/{createCustomEvent-58159025.js → createCustomEvent-XQfWgQLB.js} +0 -0
- /package/dist/esm/{getGenericSettingsOverride-0bc3e118.js → getGenericSettingsOverride-HeAZDwVW.js} +0 -0
- /package/dist/esm/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
- /package/dist/esm/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
- /package/dist/esm/{isColorVariable-0a94004f.js → isColorVariable-DXXUq2Lv.js} +0 -0
- /package/dist/esm/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
- /package/dist/esm/{isSameHostCheckoutLink-c1b88ab7.js → isSameHostCheckoutLink-BxAHnL5J.js} +0 -0
- /package/dist/esm/{styles-6fc2fad9.js → styles-BTIeCf3T.js} +0 -0
- /package/dist/esm-es5/{RemoveIcon-9dc5dd1a.js → RemoveIcon-C2QMVeWW.js} +0 -0
- /package/dist/esm-es5/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
- /package/dist/esm-es5/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
- /package/dist/esm-es5/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/esm-es5/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
- /package/dist/esm-es5/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
- /package/dist/esm-es5/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
- /package/dist/zonos-elements/{p-2770ba48.system.js → p-0D0aCMu6.system.js} +0 -0
- /package/dist/zonos-elements/{p-b4b7f705.js → p-BJHSB96f.js} +0 -0
- /package/dist/zonos-elements/{p-0a377722.js → p-BJmZPrZl.js} +0 -0
- /package/dist/zonos-elements/{p-96d77739.js → p-BTIeCf3T.js} +0 -0
- /package/dist/zonos-elements/{p-56ba5cbf.system.js → p-BbPAtVJG.system.js} +0 -0
- /package/dist/zonos-elements/{p-11206fe2.js → p-BxAHnL5J.js} +0 -0
- /package/dist/zonos-elements/{p-cc6ad18a.js → p-ByGDytaN.js} +0 -0
- /package/dist/zonos-elements/{p-83666056.js → p-BycjkdlE.js} +0 -0
- /package/dist/zonos-elements/{p-0c64dbbb.js → p-C04AWRC2.js} +0 -0
- /package/dist/zonos-elements/{p-655ec440.system.js → p-C29tlYn0.system.js} +0 -0
- /package/dist/zonos-elements/{p-2adbbce7.system.js → p-CLDnjFm5.system.js} +0 -0
- /package/dist/zonos-elements/{p-989cb22b.system.js → p-Cby4EkFu.system.js} +0 -0
- /package/dist/zonos-elements/{p-1f3549c6.js → p-Clej0Ffe.js} +0 -0
- /package/dist/zonos-elements/{p-bcf5cffb.js → p-Cye-evFK.js} +0 -0
- /package/dist/zonos-elements/{p-b2d81c98.js → p-D5SpFsQJ.js} +0 -0
- /package/dist/zonos-elements/{p-5883217a.js → p-DAscqB23.js} +0 -0
- /package/dist/zonos-elements/{p-579932a7.js → p-DGlnuxEX.js} +0 -0
- /package/dist/zonos-elements/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
- /package/dist/zonos-elements/{p-ae393255.js → p-DXXUq2Lv.js} +0 -0
- /package/dist/zonos-elements/{p-e7b0c156.js → p-HeAZDwVW.js} +0 -0
- /package/dist/zonos-elements/{p-595f5dd2.js → p-XQfWgQLB.js} +0 -0
- /package/dist/zonos-elements/{p-bc7bf53e.system.js → p-Z99tSPFR.system.js} +0 -0
- /package/dist/zonos-elements/{p-6f23a26a.system.js → p-_GDmY2H7.system.js} +0 -0
- /package/dist/zonos-elements/{p-1d42cd20.js → p-nJ6oI8-n.js} +0 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,r,e,t){function o(n){return n instanceof e?n:new e((function(r){r(n)}))}return new(e||(e=Promise))((function(e,i){function a(n){try{c(t.next(n))}catch(n){i(n)}}function u(n){try{c(t["throw"](n))}catch(n){i(n)}}function c(n){n.done?e(n.value):o(n.value).then(a,u)}c((t=t.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(r){return c([n,r])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=r.call(n,e)}catch(n){u=[6,n];o=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CPnR_T0a.system.js","./p-DPW1yXt9.system.js","./p-DIJaXkiE.system.js","./p-zVLAvre1.system.js","./p-B3GRrRtL.system.js","./p-BbgqQIHv.system.js","./p-uV7m6KrY.system.js"],(function(n){"use strict";var r,e,t,o,i,a,u,c,s,f,d,l,v,p,y,h,b,w,m,_,j,P,k,g,E,O,I;return{setters:[function(n){r=n.z;e=n.c},function(n){t=n.x;o=n.j;i=n.t;a=n.y;u=n.G;c=n.C;s=n.b;f=n.d;d=n.n;l=n.A;v=n.T;p=n.B;y=n.D;h=n.K},function(n){b=n.s;w=n.t},function(n){m=n.h;_=n.g;j=n.l;P=n.j},function(n){k=n.i},function(n){g=n.l},function(n){E=n.i;O=n.a;I=n.s}],execute:function(){
|
|
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
|
+
*/
|
|
18
|
+
/******************************************************************************
|
|
19
|
+
Copyright (c) Microsoft Corporation.
|
|
20
|
+
|
|
21
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
22
|
+
purpose with or without fee is hereby granted.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
25
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
26
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
27
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
28
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
+
***************************************************************************** */
|
|
32
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
33
|
+
var S=this;function A(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e}typeof SuppressedError==="function"?SuppressedError:function(n,r,e){var t=new Error(e);return t.name="SuppressedError",t.error=n,t.suppressed=r,t};function x(n,r){var e=document.querySelector('script[src="'.concat(n,'"]'));if(e===null)return null;var t=M(n,r);
|
|
34
|
+
// ignore the data-uid-auto attribute that gets auto-assigned to every script tag
|
|
35
|
+
var o=e.cloneNode();delete o.dataset.uidAuto;
|
|
36
|
+
// check if the new script has the same number of data attributes
|
|
37
|
+
if(Object.keys(o.dataset).length!==Object.keys(t.dataset).length){return null}var i=true;
|
|
38
|
+
// check if the data attribute values are the same
|
|
39
|
+
Object.keys(o.dataset).forEach((function(n){if(o.dataset[n]!==t.dataset[n]){i=false}}));return i?e:null}function B(n){var r=n.url,e=n.attributes,t=n.onSuccess,o=n.onError;var i=M(r,e);i.onerror=o;i.onload=t;document.head.insertBefore(i,document.head.firstElementChild)}function L(n){var r=n.sdkBaseUrl,e=n.environment,t=A(n,["sdkBaseUrl","environment"]);var o=r||C(e);var i=t;var a=Object.keys(i).filter((function(n){return typeof i[n]!=="undefined"&&i[n]!==null&&i[n]!==""})).reduce((function(n,r){var e=i[r].toString();r=T(r);if(r.substring(0,4)==="data"||r==="crossorigin"){n.attributes[r]=e}else{n.queryParams[r]=e}return n}),{queryParams:{},attributes:{}}),u=a.queryParams,c=a.attributes;if(u["merchant-id"]&&u["merchant-id"].indexOf(",")!==-1){c["data-merchant-id"]=u["merchant-id"];u["merchant-id"]="*"}return{url:"".concat(o,"?").concat(z(u)),attributes:c}}function T(n){var r=function(n,r){return(r?"-":"")+n.toLowerCase()};return n.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)}function z(n){var r="";Object.keys(n).forEach((function(e){if(r.length!==0)r+="&";r+=e+"="+n[e]}));return r}function C(n){
|
|
40
|
+
// Keeping production as default to maintain backward compatibility.
|
|
41
|
+
// In the future this logic needs to be changed to use sandbox domain as default instead of production.
|
|
42
|
+
return n==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function M(n,r){if(r===void 0){r={}}var e=document.createElement("script");e.src=n;Object.keys(r).forEach((function(n){e.setAttribute(n,r[n]);if(n==="data-csp-nonce"){e.setAttribute("nonce",r["data-csp-nonce"])}}));return e}
|
|
43
|
+
/**
|
|
44
|
+
* Load the Paypal JS SDK script asynchronously.
|
|
45
|
+
*
|
|
46
|
+
* @param {Object} options - used to configure query parameters and data attributes for the JS SDK.
|
|
47
|
+
* @param {PromiseConstructor} [PromisePonyfill=window.Promise] - optional Promise Constructor ponyfill.
|
|
48
|
+
* @return {Promise<Object>} paypalObject - reference to the global window PayPal object.
|
|
49
|
+
*/function R(n,r){if(r===void 0){r=Promise}F(n,r);
|
|
50
|
+
// resolve with null when running in Node or Deno
|
|
51
|
+
if(typeof document==="undefined")return r.resolve(null);var e=L(n),t=e.url,o=e.attributes;var i=o["data-namespace"]||"paypal";var a=q(i);if(!o["data-js-sdk-library"]){o["data-js-sdk-library"]="paypal-js"}
|
|
52
|
+
// resolve with the existing global paypal namespace when a script with the same params already exists
|
|
53
|
+
if(x(t,o)&&a){return r.resolve(a)}return D({url:t,attributes:o},r).then((function(){var n=q(i);if(n){return n}throw new Error("The window.".concat(i," global variable is not available."))}))}
|
|
54
|
+
/**
|
|
55
|
+
* Load a custom script asynchronously.
|
|
56
|
+
*
|
|
57
|
+
* @param {Object} options - used to set the script url and attributes.
|
|
58
|
+
* @param {PromiseConstructor} [PromisePonyfill=window.Promise] - optional Promise Constructor ponyfill.
|
|
59
|
+
* @return {Promise<void>} returns a promise to indicate if the script was successfully loaded.
|
|
60
|
+
*/function D(n,r){if(r===void 0){r=Promise}F(n,r);var e=n.url,t=n.attributes;if(typeof e!=="string"||e.length===0){throw new Error("Invalid url.")}if(typeof t!=="undefined"&&typeof t!=="object"){throw new Error("Expected attributes to be an object.")}return new r((function(n,r){
|
|
61
|
+
// resolve with undefined when running in Node or Deno
|
|
62
|
+
if(typeof document==="undefined")return n();B({url:e,attributes:t,onSuccess:function(){return n()},onError:function(){var n=new Error('The script "'.concat(e,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return r(n)}})}))}function q(n){
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
+
return window[n]}function F(n,r){if(typeof n!=="object"||n===null){throw new Error("Expected an options object.")}var e=n.environment;if(e&&e!=="production"&&e!=="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 N=function(n){return __awaiter(S,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4/*yield*/,m("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:o,paypalMockResponse:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2/*return*/,{errors:e,json:t}]}}))}))};var U=function(n){return __awaiter(S,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.intent;return __generator(this,(function(n){switch(n.label){case 0:return[4/*yield*/,m("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:o,intent:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2/*return*/,{errors:e,json:t}]}}))}))};var Y=undefined&&undefined.__rest||function(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e};
|
|
65
|
+
/**
|
|
66
|
+
* Mapping from our internal event names (GA-style) to Facebook Pixel standard event names.
|
|
67
|
+
* @see https://developers.facebook.com/docs/meta-pixel/reference#standard-events
|
|
68
|
+
*
|
|
69
|
+
* Events without an entry have no FB standard equivalent — they are still fired as a custom event
|
|
70
|
+
* via `fbq('trackCustom', ...)` so merchants can target them.
|
|
71
|
+
*/var H={purchase:"Purchase","zonos-checkout-payment-info":"AddPaymentInfo","zonos-checkout-start":"InitiateCheckout"};var V=function(n){var r;return(r=H[n])!==null&&r!==void 0?r:null};var X=function(n){if(!n)return false;return Array.isArray(n.items)};
|
|
72
|
+
/**
|
|
73
|
+
* Convert a GA-style event payload into a Facebook Pixel parameter object.
|
|
74
|
+
*
|
|
75
|
+
* GA `items: [{ item_id, item_name, price, quantity }]` is converted into FB's
|
|
76
|
+
* `contents: [{ id, quantity, item_price }]` with derived `content_ids`, `num_items`,
|
|
77
|
+
* and `content_type: 'product'`. Other primitive params (e.g. `checkoutSessionId`,
|
|
78
|
+
* `paymentMethod`, `serviceLevelId`) are forwarded as-is so merchants can build
|
|
79
|
+
* custom audiences on them.
|
|
80
|
+
*/var Z=function(n){if(!n)return{};if(!X(n)){
|
|
81
|
+
// Forward primitive metadata as-is for custom events
|
|
82
|
+
return Object.assign({},n)}var r=n.currency,e=n.items,t=n.transaction_id,o=n.value,i=Y(n,["currency","items","transaction_id","value"]);var a=e.map((function(n){return{id:n.item_id,item_price:n.price,quantity:n.quantity}}));var u=e.map((function(n){return n.item_id}));var c=e.reduce((function(n,r){return n+r.quantity}),0);var s=Object.assign(Object.assign({},i),{content_ids:u,content_type:"product",contents:a,num_items:c});if(t){s.order_id=t}if(r!==undefined){s.currency=r}if(o!==undefined){s.value=o}return s};var G=function(){var n=r.checkoutSettings.analyticsProviders.find((function(n){return n.type==="FACEBOOK_PIXEL"}));return!!n&&n.status==="ENABLED"};var K=function(n,r,e){if(E()){
|
|
83
|
+
// fbq does not work in the iframe (Facebook Pixel must be on the parent for proper attribution).
|
|
84
|
+
// Relay to parent which will call fbq() once the FB Pixel script is ready.
|
|
85
|
+
O({event:r,fbqMode:n,payload:e,provider:"fbq"});return}if(typeof window.fbq==="function"){g("Zonos submits fbq event","log","".concat(n,":").concat(r));window.fbq(n,r,e)}};
|
|
86
|
+
/**
|
|
87
|
+
* Submit a Facebook Pixel event matching the gtag event payload shape.
|
|
88
|
+
*
|
|
89
|
+
* Behavior:
|
|
90
|
+
* - Always fires `fbq('trackCustom', event, params)` so merchants see `zonos-xxx` events.
|
|
91
|
+
* - If the event has a Facebook standard equivalent (e.g. `purchase` → `Purchase`,
|
|
92
|
+
* `zonos-checkout-start` → `InitiateCheckout`, `zonos-checkout-payment-info` →
|
|
93
|
+
* `AddPaymentInfo`), additionally fires `fbq('track', standardEvent, params)` with
|
|
94
|
+
* FB-formatted parameters.
|
|
95
|
+
*
|
|
96
|
+
* @see https://developers.facebook.com/docs/meta-pixel/reference
|
|
97
|
+
*/var J=function(n){var r=n.event,e=n.metadata;if(!G()){return}var t=_();var o=Z(e);var i=Object.assign(Object.assign({},o),t&&{isTestMode:true});
|
|
98
|
+
// filter null values
|
|
99
|
+
var a=Object.fromEntries(Object.entries(i).filter((function(n){var r=n[0],e=n[1];return e!==null})));
|
|
100
|
+
// 1) Always emit the original event as a custom event so merchants can target zonos-xxx names.
|
|
101
|
+
K("trackCustom",r,a);
|
|
102
|
+
// 2) Emit FB standard equivalent if one exists. Skipped when the event itself is the standard
|
|
103
|
+
// name to avoid double-firing (e.g. 'purchase' -> 'Purchase').
|
|
104
|
+
var u=V(r);if(u&&u!==r){K("track",u,a)}};
|
|
105
|
+
/**
|
|
106
|
+
* Fan out an analytics event to every enabled provider.
|
|
107
|
+
*
|
|
108
|
+
* - Calls `submitGtag` (Google Analytics) — always sends the original event name.
|
|
109
|
+
* - Calls `submitFbq` (Facebook Pixel) — sends the original event name as a custom event,
|
|
110
|
+
* and additionally fires the matching FB standard event when one exists
|
|
111
|
+
* (e.g. `purchase` → `Purchase`, `zonos-checkout-start` → `InitiateCheckout`).
|
|
112
|
+
*
|
|
113
|
+
* Each submitter no-ops when its provider is disabled in `analyticsProviders` settings.
|
|
114
|
+
*/var Q=n("s",(function(n){I(n);J(n)}));var W=e((function(){return{intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}})),$=W.onChange,nn=W.reset,rn=W.state;n({e:$,c:nn,a:rn});var en=function(n){return __awaiter(S,[n],void 0,(function(n){var r,e,t,o,i,a,u;var c=n.checkoutSessionId;return __generator(this,(function(n){switch(n.label){case 0:t=rn.intent.toUpperCase();return[4/*yield*/,U({checkoutSessionId:c,intent:t})];case 1:o=n.sent(),i=o.errors,a=o.json;u=(r=a===null||a===void 0?void 0:a.paypalOrderCreate)===null||r===void 0?void 0:r.paypalOrderId;if(i.length||!u){throw new Error(((e=i.find(Boolean))===null||e===void 0?void 0:e.message)||"An unexpected error occurred when creating paypal order.")}return[2/*return*/,u]}}))}))};var tn=function(n){return __awaiter(S,[n],void 0,(function(n){var r,e,t,o,i,a;var u=n.checkoutSessionId,c=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4/*yield*/,N({checkoutSessionId:u,paypalMockResponse:c})];case 1:t=n.sent(),o=t.errors,i=t.json;a=(r=i===null||i===void 0?void 0:i.paypalOrderCapture.order)===null||r===void 0?void 0:r.id;if(o.length||!a){throw new Error(((e=o.find(Boolean))===null||e===void 0?void 0:e.message)||w("An unexpected error occurred when processing PayPal order."))}return[2/*return*/,a]}}))}))};var on=function(n){var r=n.error;var e;var t=P(r.message);var o=(e=t===null||t===void 0?void 0:t.errors.find(Boolean))===null||e===void 0?void 0:e.message;var i=(o===null||o===void 0?void 0:o.match(/\[(.*?)\] (.*)/i))||[];if(!i){rn.paypalErrorMessage=w("An unexpected error occurred when processing PayPal order.")}var a=i[2]||w("An unexpected error occurred when processing PayPal order.");
|
|
115
|
+
// show the error message
|
|
116
|
+
rn.paypalErrorMessage=a};
|
|
117
|
+
/**
|
|
118
|
+
* This function generates the options for the PayPal button component.
|
|
119
|
+
* It first retrieves the primary color from the store and checks if it contrasts with PayPal's gold color.
|
|
120
|
+
* It then returns an object with the createOrder function and the style for the PayPal button.
|
|
121
|
+
* The createOrder function makes a call to the PayPal API to create an order and returns the order ID.
|
|
122
|
+
* The style object sets the border radius, color, and shape of the PayPal button.
|
|
123
|
+
*/var an=function(n){var e=n.checkoutSessionId,b=n.onPaypalFail,m=n.onPaypalSessionDone,_=n.overrideBorderRaidus,P=n.overridePrimaryColor;var g=P||r.appearance.colorPrimary;
|
|
124
|
+
// Paypal gold color
|
|
125
|
+
var E="#ffc33a";
|
|
126
|
+
// check if the paypal gold color is contrast to the background
|
|
127
|
+
var O=k({backgroundColor1:E,backgroundColor2:g||""});return{createOrder:function(){return __awaiter(S,void 0,void 0,(function(){var n,r,_,P,k,g,E,O,I,S,A;return __generator(this,(function(x){switch(x.label){case 0:
|
|
128
|
+
// Clicking on the paypal button should trigger the paymentInfoCompleted event
|
|
129
|
+
void i({checkoutSessionId:e,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});
|
|
130
|
+
// Block PayPal submit when the merchant requires policy consent and the
|
|
131
|
+
// buyer hasn't accepted. Mirrors the Pay-button gate so both flows enforce
|
|
132
|
+
// the same legal contract.
|
|
133
|
+
if(a()&&!u.accepted){u.showError=true;(n=document.querySelector("zonos-policy-consent"))===null||n===void 0?void 0:n.scrollIntoView({behavior:"smooth"});b===null||b===void 0?void 0:b();return[2/*return*/,""]}r=a();if(r){u.locked=true}_=false;x.label=1;case 1:x.trys.push([1,13,14,15]);return[4/*yield*/,c()];case 2:P=x.sent();if(!P.valid){rn.paypalErrorMessage=P.errorMessage;
|
|
134
|
+
// reset stripe error message
|
|
135
|
+
s.hasPaymentError=false;s.customErrorMessage=null;Q({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});b===null||b===void 0?void 0:b();return[2/*return*/,""]}
|
|
136
|
+
// reset paypal error banner
|
|
137
|
+
rn.paypalErrorMessage=null;
|
|
138
|
+
// reset inventory check error message
|
|
139
|
+
f.inventoryCheckErrorMessage=null;x.label=3;case 3:x.trys.push([3,5,,6]);
|
|
140
|
+
// check inventory before proceeding to payment
|
|
141
|
+
k=f;return[4/*yield*/,d()];case 4:
|
|
142
|
+
// check inventory before proceeding to payment
|
|
143
|
+
k.inventoryCheckErrorMessage=x.sent();return[3/*break*/,6];case 5:g=x.sent();
|
|
144
|
+
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
145
|
+
f.inventoryCheckErrorMessage=w("Unable to check inventory. Please try again.");return[3/*break*/,6];case 6:
|
|
146
|
+
// Don't proceed to payment if there's an error message
|
|
147
|
+
if(f.inventoryCheckErrorMessage){return[2/*return*/,""]}E=h();if(!(E>0))return[3/*break*/,8];return[4/*yield*/,l()];case 7:O=x.sent();if(!O.success){rn.paypalErrorMessage=O.error||w("Unable to apply store credit. Please try again.");b===null||b===void 0?void 0:b();return[2/*return*/,""]}x.label=8;case 8:
|
|
148
|
+
// Persist consent into the checkout session metadata BEFORE either
|
|
149
|
+
// branch creates the order — both the store-credit-only path and the
|
|
150
|
+
// real PayPal path need the consent recorded. A transient failure here
|
|
151
|
+
// is logged (via `logError` inside the helper) but does NOT block the
|
|
152
|
+
// order: blocking on a flaky network would gate buyers from paying,
|
|
153
|
+
// and the buyer's consent intent is already captured client-side.
|
|
154
|
+
return[4/*yield*/,v()];case 9:
|
|
155
|
+
// Persist consent into the checkout session metadata BEFORE either
|
|
156
|
+
// branch creates the order — both the store-credit-only path and the
|
|
157
|
+
// real PayPal path need the consent recorded. A transient failure here
|
|
158
|
+
// is logged (via `logError` inside the helper) but does NOT block the
|
|
159
|
+
// order: blocking on a flaky network would gate buyers from paying,
|
|
160
|
+
// and the buyer's consent intent is already captured client-side.
|
|
161
|
+
x.sent();if(!p())return[3/*break*/,11];return[4/*yield*/,y()];case 10:I=x.sent();if(!I.success){rn.paypalErrorMessage=I.error||w("Unable to place order with store credit. Please try again.");b===null||b===void 0?void 0:b();return[2/*return*/,""]}m===null||m===void 0?void 0:m({orderId:I.orderId||""});t();o();
|
|
162
|
+
// Store-credit-only success: the cart advances to the next step
|
|
163
|
+
// and the store reset on close will handle the lock cleanup.
|
|
164
|
+
_=true;return[2/*return*/,""];case 11:return[4/*yield*/,en({checkoutSessionId:e})];case 12:S=x.sent();
|
|
165
|
+
// Successful hand-off to PayPal — the popup opens next and onApprove
|
|
166
|
+
// will fire on completion. Keep the lock set so closes/resets later
|
|
167
|
+
// clean up; an empty ID falls through to the unlock in `finally`.
|
|
168
|
+
_=!!S;return[2/*return*/,S];case 13:A=x.sent();j("Failed to create paypal order",A);rn.paypalErrorMessage=w("Failed to create PayPal order. Please try again, or consider using an alternative method.");
|
|
169
|
+
// reset stripe error message
|
|
170
|
+
s.hasPaymentError=false;s.customErrorMessage=null;Q({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});
|
|
171
|
+
// trigger fail event
|
|
172
|
+
b===null||b===void 0?void 0:b();return[2/*return*/,""];case 14:
|
|
173
|
+
// Clear the lock unless we successfully handed off the order — on
|
|
174
|
+
// failures the buyer needs to be able to uncheck and retry.
|
|
175
|
+
if(r&&!_){u.locked=false}return[7/*endfinally*/];case 15:return[2/*return*/]}}))}))},onApprove:function(n,r){return __awaiter(S,void 0,void 0,(function(){var n,r;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);
|
|
176
|
+
// reset paypal error banner
|
|
177
|
+
rn.paypalErrorMessage=null;
|
|
178
|
+
// submit google tag when the form is complete
|
|
179
|
+
Q({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:e,paymentMethod:"paypal"}});return[4/*yield*/,tn({checkoutSessionId:e,paypalMockResponse:window.Zonos._paypalMockResponse})];case 1:n=i.sent();rn.orderIdCreated=n;m===null||m===void 0?void 0:m({orderId:n});t();
|
|
180
|
+
// clear the checkout session timeout timer when purchase is complete
|
|
181
|
+
o();return[3/*break*/,3];case 2:r=i.sent();j("==== Failed to capture paypal order",r);if(r instanceof Error){return[2/*return*/,on({error:r})]}b===null||b===void 0?void 0:b();return[3/*break*/,3];case 3:return[2/*return*/]}}))}))},style:{
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
borderRadius:_==="SHARP"?0:10,color:O?"gold":"blue",shape:"rect"}}};var un=function(){if(!rn.paypalButtons.length){
|
|
184
|
+
// Do nothing if the buttons array is already empty
|
|
185
|
+
return}
|
|
186
|
+
// Close all paypal buttons so we can re-init them
|
|
187
|
+
rn.paypalButtons.forEach((function(n){return __awaiter(S,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4/*yield*/,n.close()];case 1:r.sent();return[2/*return*/]}}))}))}));
|
|
188
|
+
// clean up the buttons
|
|
189
|
+
rn.paypalButtons=[]};var cn=n("b",(function(n){return __awaiter(S,[n],void 0,(function(n){var e,t,o,i,a,u;var c=n.currency;return __generator(this,(function(n){switch(n.label){case 0:t=!!((e=r.checkoutSettings.externalPaymentMethods)===null||e===void 0?void 0:e.find((function(n){return n.type==="PAYPAL"&&n.status==="ENABLED"})));if(!t){g("=== Paypal is disabled for this store","warn");return[2/*return*/]}o=r.checkoutSettings.externalServiceTokens.find((function(n){return n.type==="PAYPAL_CLIENT_ID"}));if(!o){g("Failed to load paypal -- missing paypal publishable key","warn");return[2/*return*/]}i=(!r.zonosMode||r.zonosMode==="production")&&r.checkoutSettings.mode==="LIVE"?"production":"sandbox";a=r.checkoutSettings.captureDelay&&r.checkoutSettings.captureDelay>0;rn.intent=a?"authorize":"capture";g("==== Paypal order intent","info",rn.intent);
|
|
190
|
+
// send paypal publishable key out to load paypal
|
|
191
|
+
u=window.Zonos;return[4/*yield*/,R({clientId:o.token,currency:c,environment:i,intent:rn.intent})];case 1:
|
|
192
|
+
// send paypal publishable key out to load paypal
|
|
193
|
+
u.paypal=n.sent();rn.paypal=window.Zonos.paypal;g("==== Paypal script loaded");return[2/*return*/]}}))}))}));var sn=n("d",(function(n){var r;var e=window.Zonos.paypal;if(!e){g("Paypal is not available");return null}var t=b.checkoutSessionId;if(!t){g("Paypal is not available due to checkoutSessionId is not available");return null}g("==== Loading Paypal buttons");un();var o=[(r=e.FUNDING)===null||r===void 0?void 0:r.PAYPAL].filter(Boolean);rn.paypalButtons=o.map((function(r){var o;var i=null;try{i=((o=e.Buttons)===null||o===void 0?void 0:o.call(e,Object.assign(Object.assign({},an(Object.assign({checkoutSessionId:t,fundingSource:r},n))),{fundingSource:r})))||null}catch(n){g("===== Failed to load paypal's \"".concat(r,'" button'),"warn",n)}if(i===null||i===void 0?void 0:i.isEligible()){g("==== Paypal button ".concat(r," loaded"));return i}return null})).filter(Boolean);return rn.paypalButtons}));var fn=n("p",(function(){var n,e;var t=((e=(n=r.checkoutSettings.externalPaymentMethods)===null||n===void 0?void 0:n.find((function(n){return n.type==="PAYPAL"})))===null||e===void 0?void 0:e.status)==="ENABLED";return t||!!rn.paypalButtons.length}))}}}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
System.register(["./p-DW-fW8yR.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.t}],execute:function(){var n=t("i",(function(t){var n=t.backgroundColor1,r=t.backgroundColor2;
|
|
2
|
+
// get readibility of the color
|
|
3
|
+
var s=e.readability(n,r);
|
|
4
|
+
// If the readibility is less than 2.5, then we need to use different color
|
|
5
|
+
return s>2.5}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-CPnR_T0a.system.js","./p-CaUXHglQ.system.js"],(function(t){"use strict";var s,e;return{setters:[function(t){s=t.e},function(t){e=t.r}],execute:function(){var n=e();var r=t("d",s(n))}}}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
System.register([],(function(t){"use strict";return{execute:function(){
|
|
2
|
+
/**
|
|
3
|
+
* Map the items from tempCart like how we do it in dgs
|
|
4
|
+
* @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L393
|
|
5
|
+
*/
|
|
6
|
+
var e=t("b",(function(t){var e=t.items.map((function(t){return{amount:t.amount,attributes:t.attributes||[],countryOfOrigin:t.countryOfOrigin||undefined,currencyCode:t.currencyCode,description:t.description||"",imageUrl:t.imageUrl||"",itemType:t.itemType||"PHYSICAL_GOOD",measurements:t.measurements||[],metadata:t.metadata||[],name:t.name||t.description||"",productId:t.productId||"",quantity:t.quantity||0,sku:t.sku||""}}))||[];return{adjustments:t.adjustments,cartItems:e}}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,e as n}from"./p-CtEsvWI6.js";import{r as t}from"./p-D0erXw7p.js";var i,a,e=n(function(){if(a)return i;a=1;var n=t(),e=r();return i=function(r,t,i){var a=!0,o=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return e(i)&&(a="leading"in i?!!i.leading:a,o="trailing"in i?!!i.trailing:o),n(r,t,{leading:a,maxWait:t,trailing:o})}}());export{e as t}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
System.register([],(function(n){"use strict";return{execute:function(){function r(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t){if(Object.prototype.hasOwnProperty.call(t,e))n[e]=t[e]}}return n}function t(n,r){return Array(r+1).join(n)}function e(n){return n.replace(/^\n*/,"")}function i(n){
|
|
2
|
+
// avoid match-at-end regexp bottleneck, see #370
|
|
3
|
+
var r=n.length;while(r>0&&n[r-1]==="\n")r--;return n.substring(0,r)}function u(n){return i(e(n))}var f=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function a(n){return g(n,f)}var o=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function c(n){return g(n,o)}function l(n){return m(n,o)}var s=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function v(n){return g(n,s)}function h(n){return m(n,s)}function g(n,r){return r.indexOf(n.nodeName)>=0}function m(n,r){return n.getElementsByTagName&&r.some((function(r){return n.getElementsByTagName(r).length}))}var E=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function d(n){return E.reduce((function(n,r){return n.replace(r[0],r[1])}),n)}var p={};p.paragraph={filter:"p",replacement:function(n){return"\n\n"+n+"\n\n"}};p.lineBreak={filter:"br",replacement:function(n,r,t){return t.br+"\n"}};p.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(n,r,e){var i=Number(r.nodeName.charAt(1));if(e.headingStyle==="setext"&&i<3){var u=t(i===1?"=":"-",n.length);return"\n\n"+n+"\n"+u+"\n\n"}else{return"\n\n"+t("#",i)+" "+n+"\n\n"}}};p.blockquote={filter:"blockquote",replacement:function(n){n=u(n).replace(/^/gm,"> ");return"\n\n"+n+"\n\n"}};p.list={filter:["ul","ol"],replacement:function(n,r){var t=r.parentNode;if(t.nodeName==="LI"&&t.lastElementChild===r){return"\n"+n}else{return"\n\n"+n+"\n\n"}}};p.listItem={filter:"li",replacement:function(n,r,t){var e=t.bulletListMarker+" ";var i=r.parentNode;if(i.nodeName==="OL"){var f=i.getAttribute("start");var a=Array.prototype.indexOf.call(i.children,r);e=(f?Number(f)+a:a+1)+". "}var o=/\n$/.test(n);n=u(n)+(o?"\n":"");n=n.replace(/\n/gm,"\n"+" ".repeat(e.length));// indent
|
|
4
|
+
return e+n+(r.nextSibling?"\n":"")}};p.indentedCodeBlock={filter:function(n,r){return r.codeBlockStyle==="indented"&&n.nodeName==="PRE"&&n.firstChild&&n.firstChild.nodeName==="CODE"},replacement:function(n,r,t){return"\n\n "+r.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}};p.fencedCodeBlock={filter:function(n,r){return r.codeBlockStyle==="fenced"&&n.nodeName==="PRE"&&n.firstChild&&n.firstChild.nodeName==="CODE"},replacement:function(n,r,e){var i=r.firstChild.getAttribute("class")||"";var u=(i.match(/language-(\S+)/)||[null,""])[1];var f=r.firstChild.textContent;var a=e.fence.charAt(0);var o=3;var c=new RegExp("^"+a+"{3,}","gm");var l;while(l=c.exec(f)){if(l[0].length>=o){o=l[0].length+1}}var s=t(a,o);return"\n\n"+s+u+"\n"+f.replace(/\n$/,"")+"\n"+s+"\n\n"}};p.horizontalRule={filter:"hr",replacement:function(n,r,t){return"\n\n"+t.hr+"\n\n"}};p.inlineLink={filter:function(n,r){return r.linkStyle==="inlined"&&n.nodeName==="A"&&n.getAttribute("href")},replacement:function(n,r){var t=R(r.getAttribute("href"));var e=T(A(r.getAttribute("title")));var i=e?' "'+e+'"':"";return"["+n+"]("+t+i+")"}};p.referenceLink={filter:function(n,r){return r.linkStyle==="referenced"&&n.nodeName==="A"&&n.getAttribute("href")},replacement:function(n,r,t){var e=R(r.getAttribute("href"));var i=A(r.getAttribute("title"));if(i)i=' "'+T(i)+'"';var u;var f;switch(t.linkReferenceStyle){case"collapsed":u="["+n+"][]";f="["+n+"]: "+e+i;break;case"shortcut":u="["+n+"]";f="["+n+"]: "+e+i;break;default:var a=this.references.length+1;u="["+n+"]["+a+"]";f="["+a+"]: "+e+i}this.references.push(f);return u},references:[],append:function(n){var r="";if(this.references.length){r="\n\n"+this.references.join("\n")+"\n\n";this.references=[];// Reset references
|
|
5
|
+
}return r}};p.emphasis={filter:["em","i"],replacement:function(n,r,t){if(!n.trim())return"";return t.emDelimiter+n+t.emDelimiter}};p.strong={filter:["strong","b"],replacement:function(n,r,t){if(!n.trim())return"";return t.strongDelimiter+n+t.strongDelimiter}};p.code={filter:function(n){var r=n.previousSibling||n.nextSibling;var t=n.parentNode.nodeName==="PRE"&&!r;return n.nodeName==="CODE"&&!t},replacement:function(n){if(!n)return"";n=n.replace(/\r?\n|\r/g," ");var r=/^`|^ .*?[^ ].* $|`$/.test(n)?" ":"";var t="`";var e=n.match(/`+/gm)||[];while(e.indexOf(t)!==-1)t=t+"`";return t+r+n+r+t}};p.image={filter:"img",replacement:function(n,r){var t=d(A(r.getAttribute("alt")));var e=R(r.getAttribute("src")||"");var i=A(r.getAttribute("title"));var u=i?' "'+T(i)+'"':"";return e?"!["+t+"]"+"("+e+u+")":""}};function A(n){return n?n.replace(/(\n+\s*)+/g,"\n"):""}function R(n){var r=n.replace(/([<>()])/g,"\\$1");return r.indexOf(" ")>=0?"<"+r+">":r}function T(n){return n.replace(/"/g,'\\"')}
|
|
6
|
+
/**
|
|
7
|
+
* Manages a collection of rules used to convert HTML to Markdown
|
|
8
|
+
*/function O(n){this.options=n;this._keep=[];this._remove=[];this.blankRule={replacement:n.blankReplacement};this.keepReplacement=n.keepReplacement;this.defaultRule={replacement:n.defaultReplacement};this.array=[];for(var r in n.rules)this.array.push(n.rules[r])}O.prototype={add:function(n,r){this.array.unshift(r)},keep:function(n){this._keep.unshift({filter:n,replacement:this.keepReplacement})},remove:function(n){this._remove.unshift({filter:n,replacement:function(){return""}})},forNode:function(n){if(n.isBlank)return this.blankRule;var r;if(r=D(this.array,n,this.options))return r;if(r=D(this._keep,n,this.options))return r;if(r=D(this._remove,n,this.options))return r;return this.defaultRule},forEach:function(n){for(var r=0;r<this.array.length;r++)n(this.array[r],r)}};function D(n,r,t){for(var e=0;e<n.length;e++){var i=n[e];if(w(i,r,t))return i}return undefined}function w(n,r,t){var e=n.filter;if(typeof e==="string"){if(e===r.nodeName.toLowerCase())return true}else if(Array.isArray(e)){if(e.indexOf(r.nodeName.toLowerCase())>-1)return true}else if(typeof e==="function"){if(e.call(n,r,t))return true}else{throw new TypeError("`filter` needs to be a string, array, or function")}}
|
|
9
|
+
/**
|
|
10
|
+
* The collapseWhitespace function is adapted from collapse-whitespace
|
|
11
|
+
* by Luc Thevenard.
|
|
12
|
+
*
|
|
13
|
+
* The MIT License (MIT)
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
|
|
16
|
+
*
|
|
17
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
* in the Software without restriction, including without limitation the rights
|
|
20
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
* furnished to do so, subject to the following conditions:
|
|
23
|
+
*
|
|
24
|
+
* The above copyright notice and this permission notice shall be included in
|
|
25
|
+
* all copies or substantial portions of the Software.
|
|
26
|
+
*
|
|
27
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
33
|
+
* THE SOFTWARE.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* collapseWhitespace(options) removes extraneous whitespace from an the given element.
|
|
37
|
+
*
|
|
38
|
+
* @param {Object} options
|
|
39
|
+
*/function y(n){var r=n.element;var t=n.isBlock;var e=n.isVoid;var i=n.isPre||function(n){return n.nodeName==="PRE"};if(!r.firstChild||i(r))return;var u=null;var f=false;var a=null;var o=S(a,r,i);while(o!==r){if(o.nodeType===3||o.nodeType===4){
|
|
40
|
+
// Node.TEXT_NODE or Node.CDATA_SECTION_NODE
|
|
41
|
+
var c=o.data.replace(/[ \r\n\t]+/g," ");if((!u||/ $/.test(u.data))&&!f&&c[0]===" "){c=c.substr(1)}
|
|
42
|
+
// `text` might be empty at this point.
|
|
43
|
+
if(!c){o=I(o);continue}o.data=c;u=o}else if(o.nodeType===1){
|
|
44
|
+
// Node.ELEMENT_NODE
|
|
45
|
+
if(t(o)||o.nodeName==="BR"){if(u){u.data=u.data.replace(/ $/,"")}u=null;f=false}else if(e(o)||i(o)){
|
|
46
|
+
// Avoid trimming space around non-block, non-BR void elements and inline PRE.
|
|
47
|
+
u=null;f=true}else if(u){
|
|
48
|
+
// Drop protection if set previously.
|
|
49
|
+
f=false}}else{o=I(o);continue}var l=S(a,o,i);a=o;o=l}if(u){u.data=u.data.replace(/ $/,"");if(!u.data){I(u)}}}
|
|
50
|
+
/**
|
|
51
|
+
* remove(node) removes the given node from the DOM and returns the
|
|
52
|
+
* next node in the sequence.
|
|
53
|
+
*
|
|
54
|
+
* @param {Node} node
|
|
55
|
+
* @return {Node} node
|
|
56
|
+
*/function I(n){var r=n.nextSibling||n.parentNode;n.parentNode.removeChild(n);return r}
|
|
57
|
+
/**
|
|
58
|
+
* next(prev, current, isPre) returns the next node in the sequence, given the
|
|
59
|
+
* current and previous nodes.
|
|
60
|
+
*
|
|
61
|
+
* @param {Node} prev
|
|
62
|
+
* @param {Node} current
|
|
63
|
+
* @param {Function} isPre
|
|
64
|
+
* @return {Node}
|
|
65
|
+
*/function S(n,r,t){if(n&&n.parentNode===r||t(r)){return r.nextSibling||r.parentNode}return r.firstChild||r.nextSibling||r.parentNode}
|
|
66
|
+
/*
|
|
67
|
+
* Set up window for Node.js
|
|
68
|
+
*/var C=typeof window!=="undefined"?window:{};
|
|
69
|
+
/*
|
|
70
|
+
* Parsing HTML strings
|
|
71
|
+
*/function N(){var n=C.DOMParser;var r=false;
|
|
72
|
+
// Adapted from https://gist.github.com/1129031
|
|
73
|
+
// Firefox/Opera/IE throw errors on unsupported types
|
|
74
|
+
try{
|
|
75
|
+
// WebKit returns null on unsupported types
|
|
76
|
+
if((new n).parseFromString("","text/html")){r=true}}catch(n){}return r}function H(){var n=function(){};{if(L()){n.prototype.parseFromString=function(n){var r=new window.ActiveXObject("htmlfile");r.designMode="on";// disable on-page scripts
|
|
77
|
+
r.open();r.write(n);r.close();return r}}else{n.prototype.parseFromString=function(n){var r=document.implementation.createHTMLDocument("");r.open();r.write(n);r.close();return r}}}return n}function L(){var n=false;try{document.implementation.createHTMLDocument("").open()}catch(r){if(C.ActiveXObject)n=true}return n}var M=N()?C.DOMParser:H();function P(n,r){var t;if(typeof n==="string"){var e=b().parseFromString(
|
|
78
|
+
// DOM parsers arrange elements in the <head> and <body>.
|
|
79
|
+
// Wrapping in a custom element ensures elements are reliably arranged in
|
|
80
|
+
// a single element.
|
|
81
|
+
'<x-turndown id="turndown-root">'+n+"</x-turndown>","text/html");t=e.getElementById("turndown-root")}else{t=n.cloneNode(true)}y({element:t,isBlock:a,isVoid:c,isPre:r.preformattedCode?B:null});return t}var $;function b(){$=$||new M;return $}function B(n){return n.nodeName==="PRE"||n.nodeName==="CODE"}function k(n,r){n.isBlock=a(n);n.isCode=n.nodeName==="CODE"||n.parentNode.isCode;n.isBlank=F(n);n.flankingWhitespace=U(n,r);return n}function F(n){return!c(n)&&!v(n)&&/^\s*$/i.test(n.textContent)&&!l(n)&&!h(n)}function U(n,r){if(n.isBlock||r.preformattedCode&&n.isCode){return{leading:"",trailing:""}}var t=x(n.textContent);
|
|
82
|
+
// abandon leading ASCII WS if left-flanked by ASCII WS
|
|
83
|
+
if(t.leadingAscii&&G("left",n,r)){t.leading=t.leadingNonAscii}
|
|
84
|
+
// abandon trailing ASCII WS if right-flanked by ASCII WS
|
|
85
|
+
if(t.trailingAscii&&G("right",n,r)){t.trailing=t.trailingNonAscii}return{leading:t.leading,trailing:t.trailing}}function x(n){var r=n.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:r[1],
|
|
86
|
+
// whole string for whitespace-only strings
|
|
87
|
+
leadingAscii:r[2],leadingNonAscii:r[3],trailing:r[4],
|
|
88
|
+
// empty for whitespace-only strings
|
|
89
|
+
trailingNonAscii:r[5],trailingAscii:r[6]}}function G(n,r,t){var e;var i;var u;if(n==="left"){e=r.previousSibling;i=/ $/}else{e=r.nextSibling;i=/^ /}if(e){if(e.nodeType===3){u=i.test(e.nodeValue)}else if(t.preformattedCode&&e.nodeName==="CODE"){u=false}else if(e.nodeType===1&&!a(e)){u=i.test(e.textContent)}}return u}var V=Array.prototype.reduce;function K(n){if(!(this instanceof K))return new K(n);var t={rules:p,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:false,blankReplacement:function(n,r){return r.isBlock?"\n\n":""},keepReplacement:function(n,r){return r.isBlock?"\n\n"+r.outerHTML+"\n\n":r.outerHTML},defaultReplacement:function(n,r){return r.isBlock?"\n\n"+n+"\n\n":n}};this.options=r({},t,n);this.rules=new O(this.options)}K.prototype={
|
|
90
|
+
/**
|
|
91
|
+
* The entry point for converting a string or DOM node to Markdown
|
|
92
|
+
* @public
|
|
93
|
+
* @param {String|HTMLElement} input The string or DOM node to convert
|
|
94
|
+
* @returns A Markdown representation of the input
|
|
95
|
+
* @type String
|
|
96
|
+
*/
|
|
97
|
+
turndown:function(n){if(!Q(n)){throw new TypeError(n+" is not a string, or an element/document/fragment node.")}if(n==="")return"";var r=Y.call(this,new P(n,this.options));return _.call(this,r)},
|
|
98
|
+
/**
|
|
99
|
+
* Add one or more plugins
|
|
100
|
+
* @public
|
|
101
|
+
* @param {Function|Array} plugin The plugin or array of plugins to add
|
|
102
|
+
* @returns The Turndown instance for chaining
|
|
103
|
+
* @type Object
|
|
104
|
+
*/
|
|
105
|
+
use:function(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)this.use(n[r])}else if(typeof n==="function"){n(this)}else{throw new TypeError("plugin must be a Function or an Array of Functions")}return this},
|
|
106
|
+
/**
|
|
107
|
+
* Adds a rule
|
|
108
|
+
* @public
|
|
109
|
+
* @param {String} key The unique key of the rule
|
|
110
|
+
* @param {Object} rule The rule
|
|
111
|
+
* @returns The Turndown instance for chaining
|
|
112
|
+
* @type Object
|
|
113
|
+
*/
|
|
114
|
+
addRule:function(n,r){this.rules.add(n,r);return this},
|
|
115
|
+
/**
|
|
116
|
+
* Keep a node (as HTML) that matches the filter
|
|
117
|
+
* @public
|
|
118
|
+
* @param {String|Array|Function} filter The unique key of the rule
|
|
119
|
+
* @returns The Turndown instance for chaining
|
|
120
|
+
* @type Object
|
|
121
|
+
*/
|
|
122
|
+
keep:function(n){this.rules.keep(n);return this},
|
|
123
|
+
/**
|
|
124
|
+
* Remove a node that matches the filter
|
|
125
|
+
* @public
|
|
126
|
+
* @param {String|Array|Function} filter The unique key of the rule
|
|
127
|
+
* @returns The Turndown instance for chaining
|
|
128
|
+
* @type Object
|
|
129
|
+
*/
|
|
130
|
+
remove:function(n){this.rules.remove(n);return this},
|
|
131
|
+
/**
|
|
132
|
+
* Escapes Markdown syntax
|
|
133
|
+
* @public
|
|
134
|
+
* @param {String} string The string to escape
|
|
135
|
+
* @returns A string with Markdown syntax escaped
|
|
136
|
+
* @type String
|
|
137
|
+
*/
|
|
138
|
+
escape:function(n){return d(n)}};
|
|
139
|
+
/**
|
|
140
|
+
* Reduces a DOM node down to its Markdown string equivalent
|
|
141
|
+
* @private
|
|
142
|
+
* @param {HTMLElement} parentNode The node to convert
|
|
143
|
+
* @returns A Markdown representation of the node
|
|
144
|
+
* @type String
|
|
145
|
+
*/function Y(n){var r=this;return V.call(n.childNodes,(function(n,t){t=new k(t,r.options);var e="";if(t.nodeType===3){e=t.isCode?t.nodeValue:r.escape(t.nodeValue)}else if(t.nodeType===1){e=j.call(r,t)}return q(n,e)}),"")}
|
|
146
|
+
/**
|
|
147
|
+
* Appends strings as each rule requires and trims the output
|
|
148
|
+
* @private
|
|
149
|
+
* @param {String} output The conversion output
|
|
150
|
+
* @returns A trimmed version of the ouput
|
|
151
|
+
* @type String
|
|
152
|
+
*/function _(n){var r=this;this.rules.forEach((function(t){if(typeof t.append==="function"){n=q(n,t.append(r.options))}}));return n.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}
|
|
153
|
+
/**
|
|
154
|
+
* Converts an element node to its Markdown equivalent
|
|
155
|
+
* @private
|
|
156
|
+
* @param {HTMLElement} node The node to convert
|
|
157
|
+
* @returns A Markdown representation of the node
|
|
158
|
+
* @type String
|
|
159
|
+
*/function j(n){var r=this.rules.forNode(n);var t=Y.call(this,n);var e=n.flankingWhitespace;if(e.leading||e.trailing)t=t.trim();return e.leading+r.replacement(t,n,this.options)+e.trailing}
|
|
160
|
+
/**
|
|
161
|
+
* Joins replacement to the current output with appropriate number of new lines
|
|
162
|
+
* @private
|
|
163
|
+
* @param {String} output The current conversion output
|
|
164
|
+
* @param {String} replacement The string to append to the output
|
|
165
|
+
* @returns Joined output
|
|
166
|
+
* @type String
|
|
167
|
+
*/function q(n,r){var t=i(n);var u=e(r);var f=Math.max(n.length-t.length,r.length-u.length);var a="\n\n".substring(0,f);return t+a+u}
|
|
168
|
+
/**
|
|
169
|
+
* Determines whether an input can be converted
|
|
170
|
+
* @private
|
|
171
|
+
* @param {String|HTMLElement} input Describe this parameter
|
|
172
|
+
* @returns Describe what it returns
|
|
173
|
+
* @type String|Object|Array|Boolean|Number
|
|
174
|
+
*/function Q(n){return n!=null&&(typeof n==="string"||n.nodeType&&(n.nodeType===1||n.nodeType===9||n.nodeType===11))}var W=new K;
|
|
175
|
+
/**
|
|
176
|
+
* Converts an HTML string to Markdown format, strips unnecessary Markdown tags,
|
|
177
|
+
* and returns an array of cleaned Markdown text blocks..
|
|
178
|
+
*
|
|
179
|
+
* This utility function is useful for transforming HTML into Markdown and cleaning
|
|
180
|
+
* it by removing extra or unwanted Markdown elements, resulting in an array of
|
|
181
|
+
* plain Markdown text segments.
|
|
182
|
+
*
|
|
183
|
+
* @param {string} htmlString - The input HTML string to be converted and cleaned.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
|
|
187
|
+
* const result = cleanHtmlMarkdown(htmlInput);
|
|
188
|
+
* console.info(result); // Outputs cleaned HTML after conversion and processing
|
|
189
|
+
*/var X=n("c",(function(n){var r=W.turndown(n);var t=
|
|
190
|
+
// remove header tags
|
|
191
|
+
r.replace(/^\#+\s+/gm,"").trim();if(!t){return[]}var e=t.split(/[\n\r]+/gm);return e}))}}}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
System.register([],(function(t){"use strict";return{execute:function(){
|
|
2
|
+
/**
|
|
3
|
+
* Filter out all of the undefined values from the object so we don't have undefined css variable values
|
|
4
|
+
*/
|
|
5
|
+
var n=t("s",(function(t){
|
|
6
|
+
// loop through the object and filter out all of the underfined values
|
|
7
|
+
return Object.entries(t).reduce((function(t,n){var e=n[0],r=n[1];if(r){t[e]=r}return t}),{})}))}}}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
System.register(["./p-CPnR_T0a.system.js"],(function(n){"use strict";var t;return{setters:[function(n){t=n.z}],execute:function(){
|
|
2
|
+
/**
|
|
3
|
+
* Get the border radius for the elements based on the style
|
|
4
|
+
* @param overrideBorderStyle
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
var r=n("g",(function(n){var r=(n===null||n===void 0?void 0:n.customRoundRadius)||"10px";var e=n===null||n===void 0?void 0:n.overrideBorderStyle;if(e){
|
|
8
|
+
// If the override is set, use that, otherwise use the default radius style
|
|
9
|
+
return e==="SHARP"?"0px":r}return t.appearance.style==="SHARP"?"0px":r}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-_lt63o7c.js";const e=({content:e,isLoading:o,skeletonHeight:n,skeletonWidth:s})=>o?t("zonos-skeleton",{skeletonHeight:n,skeletonWidth:s}):e;export{e as r}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,a,e){if(e||arguments.length===2)for(var n=0,i=a.length,t;n<i;n++){if(t||!(n in a)){if(!t)t=Array.prototype.slice.call(a,0,n);t[n]=a[n]}}return r.concat(t||Array.prototype.slice.call(a))};System.register([],(function(r){"use strict";return{execute:function(){var a=performance.now();var e=r("b",[]);var n=r("g",(function(){var r=performance.now()-a;var e=
|
|
2
|
+
// format the time to seconds if over 1 second
|
|
3
|
+
r>1e3?"".concat((r/1e3).toFixed(2),"s"):"".concat(r.toFixed(2),"ms");return{elapsedTime:r,elapsedTimePretty:e}}));var i=function(r){if(typeof r==="string"){return r}try{var a=JSON.stringify(r);return a}catch(a){if(r&&typeof r.toString==="function"){var e=r.toString();return e}return"Unable to stringify info"}};var t=r("l",(function(r,a){var t=[];for(var o=2;o<arguments.length;o++){t[o-2]=arguments[o]}var s,f;var v=n().elapsedTimePretty;var u=__spreadArray(["(".concat(v,")")],t,true);var d=u.map(i).join(" ");e.push([a,r,d].filter(Boolean).join(" "));var l=!!((s=window.Zonos)===null||s===void 0?void 0:s.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
4
|
+
// if debug is false, do not log
|
|
5
|
+
if(!l){return}var c=document.querySelector("iframe#zonos---debug-logging-iframe");if(!c){
|
|
6
|
+
// add a hidden iframe
|
|
7
|
+
c=document.createElement("iframe");c.id="zonos---debug-logging-iframe";c.style.display="none";c.style.opacity="0";c.style.position="absolute";c.style.top="-9999px";c.style.left="-9999px";c.style.width="1px";c.style.height="1px";c.style.border="none";c.style.overflow="hidden";c.style.visibility="hidden";document.body.appendChild(c)}
|
|
8
|
+
// use the logging iframe's console to log just in case the console is disabled (overridden) by the site owner
|
|
9
|
+
var p=((f=c.contentWindow)===null||f===void 0?void 0:f.window.console)||window.console;switch(a){case"warn":p.warn.apply(p,__spreadArray([r],u,false));break;case"info":p.info.apply(p,__spreadArray([r],u,false));break;case"error":p.error.apply(p,__spreadArray([r],u,false));break;default:p.groupCollapsed.apply(p,__spreadArray([r],u,false));p.trace();p.groupEnd();break}}));var o=r("a",{hosted_vs_native:{availableVariants:["hosted","native"]},test_A_B:{availableVariants:["A","B"]}})}}}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
System.register([],(function(t){"use strict";return{execute:function(){var r=t("i",(function(t){var r=/[ʼˮ՚ߴߵ']{1}/u;
|
|
2
|
+
/**
|
|
3
|
+
* This regex matches any character that is not a latin character, punctuation, symbol, number, separator, control, or mark
|
|
4
|
+
* I limited the character found to 1 in the regex, so that we can return early if we find any non-latin character
|
|
5
|
+
**/var n=/[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;return n.test(t)&&
|
|
6
|
+
// allow special characters like web apostrophe and quotation mark
|
|
7
|
+
!r.test(t)}));
|
|
8
|
+
/**
|
|
9
|
+
* Check if the given address object contains non-latin characters
|
|
10
|
+
* @returns an object with the same keys as the input object, and a boolean value indicating if the value contains non-latin characters
|
|
11
|
+
*/var n=t("c",(function(t){var n=Object.entries(t).reduce((function(t,n){var u;var e=n[0],c=n[1];return r(c)?Object.assign(Object.assign({},t),(u={},u[e]=true,u)):t}),{});return n}))}}}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
System.register(["./p-C29tlYn0.system.js","./p-Cby4EkFu.system.js"],(function(r){"use strict";var t,n,e;return{setters:[function(r){t=r.c},function(r){n=r.e;e=r.c}],execute:function(){var u=function(r){return t.includes(r)};
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the short address code input should be rendered based on the country code.
|
|
4
|
+
*/var s=r("s",(function(r){var t=r.countryCode;
|
|
5
|
+
// If country require short address code, show the input
|
|
6
|
+
var n=u(t);if(n){return true}
|
|
7
|
+
// If country doesn't require short address code, no need to show the input
|
|
8
|
+
return false}));var f=function(r){return e.includes(r)};
|
|
9
|
+
/**
|
|
10
|
+
* Checks if the tax ID input should be rendered based on the company name and country code.
|
|
11
|
+
*/var a=r("a",(function(r){var t=r.companyName,e=r.countryCode;
|
|
12
|
+
// Only show the tax ID input if the country is in the EU and the company name is provided
|
|
13
|
+
if(n.includes(e)){return t.trim().length>0}
|
|
14
|
+
// If country require tax id, show the input
|
|
15
|
+
var u=f(e);if(u){return true}
|
|
16
|
+
// If country doesn't require tax ID, no need to show the input
|
|
17
|
+
return false}))}}}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,o,t,i){function n(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i["throw"](e))}catch(e){s(e)}}function l(e){e.done?t(e.value):n(e.value).then(r,a)}l((i=i.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(o){return l([e,o])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(i=1,n&&(s=a[0]&2?n["return"]:a[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;if(n=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;n=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];n=0}finally{i=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CIevpRv_.system.js","./p-BbPAtVJG.system.js"],(function(e,o){"use strict";var t,i,n,s,r,a,l,d;return{setters:[function(o){t=o.p;i=o.B;n=o.c;s=o.w;r=o.N;a=o.H;l=o.b;e("setNonce",o.s)},function(e){d=e.g}],execute:function(){
|
|
2
|
+
/*
|
|
3
|
+
Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
4
|
+
*/
|
|
5
|
+
var e=this;var c=function(){if(i.isDev&&!i.isTesting){n("Running in development mode.")}if(i.cloneNodeFix){u(a.prototype)}var e=i.scriptDataOpts?s.document&&Array.from(s.document.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(r,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===r})):null;var l=o.meta.url;var d=i.scriptDataOpts?(e||{})["data-opts"]||{}:{};if(l!==""){d.resourcesUrl=new URL(".",l).href}return t(d)};var u=function(e){var o=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return o.call(this,e)}var t=o.call(this,false);var i=this.childNodes;if(e){for(var n=0;n<i.length;n++){if(i[n].nodeType!==2){t.appendChild(i[n].cloneNode(true))}}}return t}};c().then((function(o){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4/*yield*/,d()];case 1:e.sent();return[2/*return*/,l(JSON.parse('[["p-cc5306fe.system",[[257,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["p-f6e0aeba.system",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"hiddenMode":[4,"hidden-mode"],"mobile":[4],"overrideStagingMode":[4,"override-staging-mode"],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"defaultAddressParams":[32],"defaultCustomerProfileAddress":[32],"customerProfile":[32],"open":[32],"isOverlayLoading":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"isIframed":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"placedOrderInfo":[32],"shouldShowFedexShippingConsentDialog":[32],"detectedDomesticCheckoutDialogOpen":[32],"redirectToDomesticCheckoutDialogOpen":[32],"loggedInIntlAddressConfirmDialogOpen":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64],"mockCheckoutSession":[64],"triggerCheckoutInternational":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":[{"appearanceSettingsOverrideChanged":0},{"handleAppearanceSettingsOverrideChange":0}],"overrideStagingMode":[{"overrideStagingModeChanged":0}],"mobile":[{"handleMobileChange":0}],"defaultAddress":[{"handleAddressChange":0}],"customerProfile":[{"handleCustomerProfileChange":0}],"clientSecret":[{"handleClientSecretChange":0}],"stripeCustomerSessionClientSecret":[{"handleClientSecretChange":0}],"open":[{"handleOpenChange":0}]}]]],["p-629f09dc.system",[[2,"zonos-collect",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReview":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-7a5d2211.system",[[2,"zonos-invoice",{"mobile":[4],"tablet":[4],"stripe":[32],"showLanguageDialogMobile":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isMobile":[32],"isTablet":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"isOverlayLoading":[32],"isCartCollected":[32],"isCartExpired":[32],"payInUsdConfirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"confirmationId":[32],"clientSecret":[32],"stripeCustomerSessionClientSecret":[32]},[[9,"resize","resizeListener"]]]]],["p-f2cedbcd.system",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"desktopLocationOverride":[1,"desktop-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"isMobile":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"showDialog":[{"showDialogHandler":0}],"appearanceSettingsOverride":[{"handleAppearanceSettingsOverrideChange":0}]}]]],["p-04cc0dac.system",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"initCollectElement":[64],"initInvoiceElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["p-49e7bb1e.system",[[257,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["p-9b399685.system",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["p-058f07aa.system",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["p-1568ab06.system",[[273,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"bold":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":[{"iconChangeHandler":0}]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["p-e101d722.system",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":[{"isOpenHandler":0}]}]]],["p-5836d426.system",[[2,"zonos-airwallex-payment",{"hasError":[32],"clientSecret":[32]},null,{"clientSecret":[{"clientSecretWatcher":0}]}]]],["p-0f603278.system",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"isMobile":[4,"is-mobile"],"selectedItem":[16]}]]],["p-f27317d3.system",[[1,"zonos-store-credit",{"enabled":[4],"customAmountInput":[32]}],[1,"zonos-policy-consent"]]],["p-4ab1c533.system",[[257,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["p-5562a955.system",[[1,"zonos-invoice-cart-items",{"isMobile":[4,"is-mobile"],"errorImages":[32],"locale":[32]}],[1,"zonos-invoice-subtotal",{"isMobile":[4,"is-mobile"]}]]],["p-bdba7d9e.system",[[257,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4],"loading":[4],"dismissHandler":[16]}]]],["p-cc949df1.system",[[257,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["p-daf9fa07.system",[[2,"zonos-invoice-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":[{"continueLoadingWatcher":0}],"hasStripePaymentError":[{"stripePaymentErrorWatcher":0}]}],[1,"zonos-invoice-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":[{"handleMobileChange":0}],"tablet":[{"handleTabletChange":0}]}],[1,"zonos-invoice-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":[{"handleCollapseChangeFromProp":0}],"collapseState":[{"handleCollapseChange":0}]}],[1,"zonos-invoice-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-invoice-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]]]],["p-5a631080.system",[[1,"zonos-collect-cart-items",{"errorImages":[32]}],[1,"zonos-skeleton",{"skeletonWidth":[1,"skeleton-width"],"skeletonHeight":[1,"skeleton-height"],"dismissHandler":[16]}],[257,"zonos-h-stack",{"spacing":[2]}]]],["p-d55b9664.system",[[2,"zonos-collect-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":[{"continueLoadingWatcher":0}],"hasStripePaymentError":[{"stripePaymentErrorWatcher":0}]}],[1,"zonos-collect-footer",{"mobile":[4],"tablet":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32],"isTablet":[32]},[[4,"click","handleGlobalClick"]],{"mobile":[{"handleMobileChange":0}],"tablet":[{"handleTabletChange":0}]}],[1,"zonos-collect-order-details",{"mobile":[4],"collapsed":[4],"landedCostId":[1,"landed-cost-id"],"isMobile":[32],"collapseState":[32]},[[9,"resize","handleWindowResize"]],{"collapsed":[{"handleCollapseChangeFromProp":0}],"collapseState":[{"handleCollapseChange":0}]}],[1,"zonos-collect-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"confirmationId":[1,"confirmation-id"],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32]}],[1,"zonos-collect-review",{"mobile":[4],"tablet":[4],"collapsed":[4],"isMobile":[32],"isTablet":[32],"isLoading":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-collect-subtotal",{"subtotals":[32]}]]],["p-dcdbc610.system",[[2,"zonos-stripe-input",{"name":[1],"autoComplete":[1,"auto-complete"],"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"inputPlaceholder":[1,"input-placeholder"],"value":[1025],"required":[4],"internalValue":[32]},null,{"inputValue":[{"onInputValueChange":0}],"value":[{"onValueChange":0}]}]]],["p-450ed170.system",[[257,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"loadingTitle":[1,"loading-title"],"loadingText":[1,"loading-text"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}]]],["p-beeb9d36.system",[[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[1,"zonos-toggle",{"options":[16],"value":[1]}]]],["p-f8fd756a.system",[[257,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["p-be64d823.system",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":[{"onInputValueChange":0}]}]]],["p-02ef0f99.system",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["p-b6deae2b.system",[[257,"zonos-v-stack",{"spacing":[2]}]]],["p-04bfcd72.system",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[2,"zonos-virtual-scroll",{"renderItem":[16],"itemWidth":[2,"item-width"],"fallbackItemHeight":[2,"fallback-item-height"],"itemHeights":[16],"buffer":[2],"scrollTop":[32],"totalHeight":[32],"containerDimensions":[32]},null,{"itemHeights":[{"updateTotalHeight":0}],"fallbackItemHeight":[{"updateTotalHeight":0}]}]]],["p-4973f8d8.system",[[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogWidth":[2,"dialog-width"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-loading-overlay",{"open":[4],"spinnerColor":[1,"spinner-color"],"size":[2]}],[262,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"checkoutSessionId":[32],"prevCountry":[32],"prevPostalCode":[32]},null,{"checkoutSessionId":[{"isAddressFilledChanged":0}],"isAddressFilled":[{"isAddressFilledChanged":0}],"stripe":[{"watchInitStripe":0}],"defaultAddress":[{"defaultAddressChanged":0}]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"isEmailError":[4,"is-email-error"],"stripe":[32],"isStagingMode":[32],"clientSecret":[32],"retriesInitializeLink":[32]},null,{"isStagingMode":[{"watchIsStagingMode":0}],"stripe":[{"watchInitStripe":0}],"clientSecret":[{"watchInitStripe":0}],"defaultEmail":[{"watchDefaultEmail":0}]}]]],["p-d33dfc78.system",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":[{"watchTranslatedShippingAddress":0}],"translatedBillingAddress":[{"watchTranslatedBillingAddress":0}]}],[262,"zonos-custom-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"taxIdErrorMessage":[1,"tax-id-error-message"],"shortAddressCodeErrorMessage":[1,"short-address-code-error-message"],"stripe":[32],"isDirtyAddress":[32],"isAddressFilled":[32],"isAddressLine1Entered":[32],"addressSuggestions":[32],"countryField":[32],"startGooglePlaceSuggestions":[32],"city":[32],"country":[32],"firstName":[32],"lastName":[32],"line1":[32],"line2":[32],"phone":[32],"postalCode":[32],"state":[32],"cityError":[32],"stateError":[32],"postalCodeError":[32],"phoneError":[32],"firstNameError":[32],"lastNameError":[32],"isFirstInitialization":[32],"addressService":[32],"checkoutSessionId":[32]},null,{"checkoutSessionId":[{"isAddressFilledChanged":0}],"isAddressFilled":[{"isAddressFilledChanged":0}],"defaultAddress":[{"defaultAddressChanged":0}],"line1":[{"line1Changed":0}],"city":[{"formFieldsChanged":0}],"country":[{"formFieldsChanged":0},{"countryChanged":0}],"firstName":[{"formFieldsChanged":0}],"lastName":[{"formFieldsChanged":0}],"line2":[{"formFieldsChanged":0}],"phone":[{"formFieldsChanged":0}],"postalCode":[{"formFieldsChanged":0}],"state":[{"formFieldsChanged":0}],"addressService":[{"shouldEnabledCustomAddressChanged":0}]}],[1,"zonos-address-completion-dialog",{"continueLoading":[4,"continue-loading"],"dialogOpen":[4,"dialog-open"],"isMobile":[4,"is-mobile"],"missingFields":[16],"shippingAddress":[16],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"values":[32],"showError":[32]},null,{"dialogOpen":[{"watchDialogOpen":0}]}],[1,"zonos-address-suggestions",{"type":[1],"suggestions":[16],"selectedSuggestionId":[32],"localSuggestions":[32],"lastHoveredSuggestionId":[32]},null,{"suggestions":[{"suggestionsChanged":0}]}],[2,"zonos-stripe-phone-input",{"autoComplete":[1,"auto-complete"],"countryOptions":[16],"disabled":[4],"error":[1],"inputLabel":[1,"input-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"inputValue":[1,"input-value"],"countryCode":[1,"country-code"],"minWidth":[1,"min-width"],"selectedCountry":[32],"phoneNumber":[32],"isFocused":[32],"isSelectOpen":[32]},null,{"countryCode":[{"onCountryCodeChange":0}],"countryOptions":[{"onCountryOptionsChange":0}],"selectedCountry":[{"onSelectedCountryChange":0}],"inputValue":[{"onPhoneNumberChange":0}]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":[{"watchCurrentAddress":0}]}],[1,"zonos-stripe-select",{"name":[1],"selectedValue":[1,"selected-value"],"selectLabel":[1,"select-label"],"overridePrimaryColor":[1,"override-primary-color"],"overrideSecondaryColor":[1,"override-secondary-color"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"error":[1],"selectPlaceholder":[1,"select-placeholder"],"options":[16],"autoComplete":[1,"auto-complete"],"value":[1025],"required":[4],"isClearable":[4,"is-clearable"],"minWidth":[1,"min-width"],"internalValue":[32],"internalOptions":[32]},null,{"options":[{"onOptionsChange":0}],"selectedValue":[{"onSelectedValueChange":0}],"value":[{"onValueChange":0}]}]]],["p-b14819ab.system",[[1,"zonos-language-select",{"handleOnClose":[16]}],[257,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["p-cadf6b63.system",[[1,"zonos-empty-state-payment",{"emptyStateText":[1,"empty-state-text"],"theme":[1]}],[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32],"isPaymentInfoFilled":[32]},null,{"isPaymentInfoFilled":[{"watchIsPaymentInfoFilled":0}],"stripeElements":[{"watchInitStripe":0}],"stripe":[{"watchInitStripe":0}]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}],[257,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["p-5024df2d.system",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"shouldUseCustomAddressFormOverride":[4,"should-use-custom-address-form-override"],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"taxIdErrorMessage":[32],"shortAddressCodeErrorMessage":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32],"openCompletionDialog":[32],"missingShippingFields":[32],"isEmailError":[32],"recordedFormTypeUsed":[32],"selectedCountryCode":[32],"genericSettings":[32],"addressFormRenderType":[32],"exceededCharacterLimitErrorFieldList":[32]},null,{"showErrorBanner":[{"watchShowErrorBanner":0}],"shouldUseCustomAddressFormOverride":[{"watchShouldEnabledCustomAddress":0}],"genericSettings":[{"watchShouldEnabledCustomAddress":0}],"selectedCountryCode":[{"watchShouldEnabledCustomAddress":0}]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"overridePrimaryColor":[1,"override-primary-color"],"showErrorBanner":[32],"hasStripePaymentError":[32],"stagingOrderCreateErrorMessage":[32],"internalContinueLoading":[32]},null,{"continueLoading":[{"continueLoadingWatcher":0}],"hasStripePaymentError":[{"stripePaymentErrorWatcher":0}]}],[1,"zonos-cart-subtotal",{"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"loading":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":[{"handleMobileChange":0}]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"isMobile":[4,"is-mobile"],"selectedShippingMethod":[32],"collapsedDAPOptions":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevelsDDP":[32],"serviceLevelsDAP":[32],"serviceLevelsOther":[32],"serviceLevelsAll":[32],"displayBaseCurrency":[32],"shippingData":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32],"isWaitingToRedirect":[32],"isImmediateRedirecting":[32]}],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-currency-toggle",{"errorImages":[32]}],[257,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]]'),o)]}}))}))}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o}from"./p-DTgv0QpG.js";const r="gkjqw123",v="Kq93wqw3",i=()=>{var i;return null===(i=o.inclusivePricingConfigurations)||void 0===i?void 0:i.some((o=>{var i,l;return"ENABLED"===(null===(i=o.configurations[r])||void 0===i?void 0:i.status)||"ENABLED"===(null===(l=o.configurations[v])||void 0===l?void 0:l.status)}))};export{r as D,v as T,i as h}
|