@zonos/elements 1.2.3 → 1.2.4-alpha.10
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 +15 -1
- package/dist/cjs/cart-90f7c8c0.js +644 -0
- package/dist/cjs/getBorderRadius-bf4a4276.js +18 -0
- package/dist/cjs/getHasMoreSpaceOnRight-4c94667f.js +10 -0
- package/dist/cjs/{index-9542d2e7.js → index-0dcccc22.js} +154 -42
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/isColorVariable-41cacd82.js +16 -0
- package/dist/cjs/{isDarkColor-f3446afd.js → isDarkColor-ff6ff183.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/localization-9caf3397.js +3667 -0
- package/dist/cjs/submitGtag-b141b45d.js +27 -0
- package/dist/cjs/zonos-address_2.cjs.entry.js +108 -108
- package/dist/cjs/zonos-badge.cjs.entry.js +25 -22
- package/dist/cjs/zonos-banner.cjs.entry.js +65 -53
- package/dist/cjs/zonos-button_2.cjs.entry.js +100 -99
- package/dist/cjs/zonos-card_2.cjs.entry.js +32 -27
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +464 -419
- package/dist/cjs/zonos-checkout.cjs.entry.js +358 -356
- package/dist/cjs/zonos-component.cjs.entry.js +15 -15
- package/dist/cjs/zonos-controller.cjs.entry.js +232 -194
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +85 -77
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +101 -101
- package/dist/cjs/zonos-hello.cjs.entry.js +349 -349
- package/dist/cjs/zonos-icon.cjs.entry.js +22 -20
- package/dist/cjs/zonos-notification.cjs.entry.js +60 -57
- package/dist/cjs/zonos-payment.cjs.entry.js +45 -45
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +40 -40
- package/dist/cjs/zonos-text.cjs.entry.js +145 -143
- package/dist/cjs/{zonosStore-a430ec5b.js → zonosStore-b43ef5db.js} +102 -97
- package/dist/collection/__mocks__/vercel-app/loadZonos.js +492 -0
- package/dist/collection/__mocks__/vercel-app/localization.js +1 -0
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +1 -0
- package/dist/collection/__mocks__/zonos-url/loadZonos.js +492 -0
- package/dist/{esm-es5/localization-f3828793.js → collection/__mocks__/zonos-url/localization.js} +1 -1
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +1 -0
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +59 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +37 -37
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +44 -44
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +209 -163
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +149 -149
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +562 -559
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +153 -153
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +107 -107
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +164 -164
- package/dist/collection/components/common/countries.js +261 -261
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +5 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +189 -186
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +5 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +140 -128
- package/dist/collection/components/common/zonos-button/zonos-button.css +6 -5
- package/dist/collection/components/common/zonos-button/zonos-button.js +407 -406
- package/dist/collection/components/common/zonos-card/zonos-card.css +5 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js +165 -162
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.css +5 -1
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +85 -83
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.css +5 -1
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +101 -96
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +5 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +73 -70
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +5 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +62 -59
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +5 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +373 -371
- package/dist/collection/components/common/zonos-icon/zonos-icon.css +5 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +123 -121
- package/dist/collection/components/common/zonos-logo/zonos-logo.css +5 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +92 -90
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +5 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +129 -125
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +5 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +168 -168
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +5 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +71 -71
- package/dist/collection/components/common/zonos-text/zonos-text.css +5 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js +193 -191
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.css +5 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +70 -67
- package/dist/collection/components/component-template/zonos-component/zonos-component.css +5 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +81 -81
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +5 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +450 -446
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +5 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +70 -70
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +5 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +272 -272
- package/dist/collection/components/main/zonos-controller.css +5 -1
- package/dist/collection/components/main/zonos-controller.js +403 -320
- package/dist/collection/components/store/checkout/cart.js +162 -162
- package/dist/collection/components/store/checkout/stripe.js +265 -264
- package/dist/collection/components/store/hello/localization.js +112 -112
- package/dist/collection/components/store/translationStore/strings.arabic.js +147 -147
- package/dist/collection/components/store/translationStore/strings.base.js +147 -147
- package/dist/collection/components/store/translationStore/strings.chinese.js +147 -147
- package/dist/collection/components/store/translationStore/strings.danish.js +147 -147
- package/dist/collection/components/store/translationStore/strings.dutch.js +147 -147
- package/dist/collection/components/store/translationStore/strings.french.js +147 -147
- package/dist/collection/components/store/translationStore/strings.german.js +147 -147
- package/dist/collection/components/store/translationStore/strings.hebrew.js +147 -147
- package/dist/collection/components/store/translationStore/strings.indonesian.js +147 -147
- package/dist/collection/components/store/translationStore/strings.italian.js +147 -147
- package/dist/collection/components/store/translationStore/strings.japanese.js +147 -147
- package/dist/collection/components/store/translationStore/strings.korean.js +147 -147
- package/dist/collection/components/store/translationStore/strings.norwegian.js +147 -147
- package/dist/collection/components/store/translationStore/strings.polish.js +147 -147
- package/dist/collection/components/store/translationStore/strings.portuguese.js +147 -147
- package/dist/collection/components/store/translationStore/strings.russian.js +147 -147
- package/dist/collection/components/store/translationStore/strings.spanish.js +147 -147
- package/dist/collection/components/store/translationStore/strings.swedish.js +147 -147
- package/dist/collection/components/store/translationStore/strings.turkish.js +147 -147
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +147 -147
- package/dist/collection/components/store/translationStore.js +65 -65
- package/dist/collection/components/store/zonosStore.js +98 -94
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +5 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +142 -142
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +5 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +76 -76
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +5 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +81 -81
- package/dist/collection/components/utils/addDays.js +5 -5
- package/dist/collection/components/utils/api/calculateLandedCost.js +19 -11
- package/dist/collection/components/utils/api/checkItemRestrictions.js +13 -13
- package/dist/collection/components/utils/api/getCountries.js +11 -11
- package/dist/collection/components/utils/api/getCountryLandedCost.js +11 -11
- package/dist/collection/components/utils/api/getExchangeRate.js +17 -17
- package/dist/collection/components/utils/api/getLocaleMessages.js +9 -9
- package/dist/collection/components/utils/api/getLocalization.js +24 -19
- package/dist/collection/components/utils/api/getShippingZones.js +9 -9
- package/dist/collection/components/utils/api/getZonosSettings.js +11 -0
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +26 -26
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +22 -0
- package/dist/collection/components/utils/checkout/initCheckout.js +16 -16
- package/dist/collection/components/utils/checkout/isCheckoutMobile.js +1 -1
- package/dist/collection/components/utils/darkenColor.js +4 -4
- package/dist/collection/components/utils/formatCurrency.js +8 -8
- package/dist/collection/components/utils/formatDate.js +2 -2
- package/dist/collection/components/utils/getBorderRadius.js +5 -5
- package/dist/collection/components/utils/getButtonTheme.js +8 -8
- package/dist/collection/components/utils/getDaysDifference.js +4 -4
- package/dist/collection/components/utils/handleFetch.js +107 -77
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +9 -9
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +3 -3
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +10 -10
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +29 -29
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +35 -35
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +6 -6
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +13 -13
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +12 -12
- package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +6 -6
- package/dist/collection/components/utils/hello/detectItemRestrictions.js +23 -23
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +17 -17
- package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +5 -5
- package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +5 -5
- package/dist/collection/components/utils/hello/getProductsOnPage.js +42 -42
- package/dist/collection/components/utils/hello/getZCountryUrlParam.js +5 -0
- package/dist/collection/components/utils/hello/initHello.js +15 -15
- package/dist/collection/components/utils/hello/setZCountryUrlParam.js +9 -0
- package/dist/collection/components/utils/isColorVariable.js +10 -10
- package/dist/collection/components/utils/isDarkColor.js +1 -1
- package/dist/collection/components/utils/isValidSelector.js +8 -8
- package/dist/collection/components/utils/jsonParse.js +10 -10
- package/dist/collection/components/utils/lightenColor.js +4 -4
- package/dist/collection/components/utils/logging/log.js +42 -22
- package/dist/collection/components/utils/logging/logError.js +2 -2
- package/dist/collection/components/utils/mergeConfig.js +3 -3
- package/dist/collection/components/utils/submitGtag.js +9 -9
- package/dist/collection/environment.js +139 -116
- package/dist/collection/scripts/extractZonosQaUrl.js +26 -0
- package/dist/collection/scripts/loadStripe.js +7 -7
- package/dist/collection/scripts/stripe.js +80 -80
- package/dist/collection/scripts/zonos.js +331 -253
- package/dist/collection/styles/stripe/addressRuleStyle.js +14 -14
- package/dist/collection/styles/stripe/defaultVariable.js +14 -14
- package/dist/collection/types/generated/graphql.customer.types.js +1513 -1424
- package/dist/collection/types/generated/graphql.frontend.types.js +452 -378
- package/dist/collection/types/stripe/Apperance.js +56 -56
- package/dist/collection/types/styles/Color.js +18 -18
- package/dist/collection/types/styles/Text.js +97 -97
- package/dist/collection/utils/format.js +1 -1
- package/dist/collection/utils/generateVercelDeployUrl.js +17 -17
- package/dist/components/cart.js +529 -501
- package/dist/components/formatCurrency.js +8 -8
- package/dist/components/getBorderRadius.js +5 -5
- package/dist/components/isColorVariable.js +10 -10
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/localization.js +3486 -3426
- package/dist/components/submitGtag.js +9 -9
- package/dist/components/zonos-address.d.ts +2 -2
- package/dist/components/zonos-address2.js +90 -90
- package/dist/components/zonos-badge.d.ts +2 -2
- package/dist/components/zonos-badge2.js +52 -43
- package/dist/components/zonos-banner.d.ts +2 -2
- package/dist/components/zonos-banner2.js +88 -76
- package/dist/components/zonos-button.d.ts +2 -2
- package/dist/components/zonos-button2.js +120 -119
- package/dist/components/zonos-card.d.ts +2 -2
- package/dist/components/zonos-card2.js +48 -39
- package/dist/components/zonos-cart-items.d.ts +2 -2
- package/dist/components/zonos-cart-items2.js +43 -43
- package/dist/components/zonos-cart-subtotal.d.ts +2 -2
- package/dist/components/zonos-cart-subtotal2.js +65 -65
- package/dist/components/zonos-checkout-finish.d.ts +2 -2
- package/dist/components/zonos-checkout-finish2.js +146 -103
- package/dist/components/zonos-checkout-payment.d.ts +2 -2
- package/dist/components/zonos-checkout-payment2.js +82 -82
- package/dist/components/zonos-checkout.d.ts +2 -2
- package/dist/components/zonos-checkout.js +500 -498
- package/dist/components/zonos-collapse.d.ts +2 -2
- package/dist/components/zonos-collapse2.js +48 -46
- package/dist/components/zonos-component.d.ts +2 -2
- package/dist/components/zonos-component.js +32 -32
- package/dist/components/zonos-controller.d.ts +2 -2
- package/dist/components/zonos-controller.js +260 -220
- package/dist/components/zonos-country-flag.d.ts +2 -2
- package/dist/components/zonos-country-flag2.js +41 -36
- package/dist/components/zonos-country-select.d.ts +2 -2
- package/dist/components/zonos-country-select2.js +82 -79
- package/dist/components/zonos-custom-message.d.ts +2 -2
- package/dist/components/zonos-custom-message2.js +44 -41
- package/dist/components/zonos-customer-info.d.ts +2 -2
- package/dist/components/zonos-customer-info2.js +82 -82
- package/dist/components/zonos-dialog.d.ts +2 -2
- package/dist/components/zonos-dialog2.js +105 -103
- package/dist/components/zonos-hello-dialog-footer.d.ts +2 -2
- package/dist/components/zonos-hello-dialog-footer2.js +46 -46
- package/dist/components/zonos-hello-dialog.d.ts +2 -2
- package/dist/components/zonos-hello-dialog2.js +182 -182
- package/dist/components/zonos-hello.d.ts +2 -2
- package/dist/components/zonos-hello.js +437 -437
- package/dist/components/zonos-icon.d.ts +2 -2
- package/dist/components/zonos-icon2.js +40 -38
- package/dist/components/zonos-link-authentication.d.ts +2 -2
- package/dist/components/zonos-link-authentication2.js +60 -60
- package/dist/components/zonos-logo.d.ts +2 -2
- package/dist/components/zonos-logo2.js +37 -35
- package/dist/components/zonos-notification.d.ts +2 -2
- package/dist/components/zonos-notification2.js +82 -79
- package/dist/components/zonos-payment.d.ts +2 -2
- package/dist/components/zonos-payment2.js +64 -64
- package/dist/components/zonos-review.d.ts +2 -2
- package/dist/components/zonos-review2.js +72 -72
- package/dist/components/zonos-shipping-rich-radio.d.ts +2 -2
- package/dist/components/zonos-shipping-rich-radio2.js +62 -62
- package/dist/components/zonos-shipping.d.ts +2 -2
- package/dist/components/zonos-shipping2.js +114 -114
- package/dist/components/zonos-spinner.d.ts +2 -2
- package/dist/components/zonos-spinner2.js +31 -31
- package/dist/components/zonos-text.d.ts +2 -2
- package/dist/components/zonos-text2.js +166 -164
- package/dist/components/zonos-v-stack.d.ts +2 -2
- package/dist/components/zonos-v-stack2.js +29 -26
- package/dist/components/zonosStore.js +101 -97
- package/dist/esm/cart-b439be00.js +626 -0
- package/dist/esm/getBorderRadius-178a0a05.js +16 -0
- package/dist/esm/getHasMoreSpaceOnRight-70eb913a.js +8 -0
- package/dist/esm/{index-d1aa9293.js → index-36ff6342.js} +154 -42
- package/dist/esm/index.js +6 -6
- package/dist/esm/isColorVariable-91c33804.js +14 -0
- package/dist/esm/{isDarkColor-6fbb9b14.js → isDarkColor-416d6047.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-a51ccbc2.js +3652 -0
- package/dist/esm/submitGtag-521826a2.js +24 -0
- package/dist/esm/zonos-address_2.entry.js +108 -108
- package/dist/esm/zonos-badge.entry.js +25 -22
- package/dist/esm/zonos-banner.entry.js +65 -53
- package/dist/esm/zonos-button_2.entry.js +100 -99
- package/dist/esm/zonos-card_2.entry.js +32 -27
- package/dist/esm/zonos-cart-items_10.entry.js +464 -419
- package/dist/esm/zonos-checkout.entry.js +358 -356
- package/dist/esm/zonos-component.entry.js +15 -15
- package/dist/esm/zonos-controller.entry.js +232 -194
- package/dist/esm/zonos-country-flag_4.entry.js +85 -77
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +101 -101
- package/dist/esm/zonos-hello.entry.js +349 -349
- package/dist/esm/zonos-icon.entry.js +22 -20
- package/dist/esm/zonos-notification.entry.js +60 -57
- package/dist/esm/zonos-payment.entry.js +45 -45
- package/dist/esm/zonos-shipping-rich-radio.entry.js +40 -40
- package/dist/esm/zonos-text.entry.js +145 -143
- package/dist/esm/{zonosStore-05a62104.js → zonosStore-61e74f58.js} +102 -98
- package/dist/esm-es5/cart-b439be00.js +1 -0
- package/dist/esm-es5/getBorderRadius-178a0a05.js +1 -0
- package/dist/esm-es5/getHasMoreSpaceOnRight-70eb913a.js +1 -0
- package/dist/esm-es5/index-36ff6342.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-6fbb9b14.js → isDarkColor-416d6047.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-a51ccbc2.js +1 -0
- package/dist/esm-es5/{submitGtag-a901ece5.js → submitGtag-521826a2.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonosStore-61e74f58.js +1 -0
- package/dist/scripts/extractZonosQaUrl.js +30 -0
- package/dist/scripts/loadZonos.js +172 -48
- package/dist/scripts/zonos.js +172 -48
- package/dist/types/__tests__/build-utils/urlCheckOne.d.ts +6 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.d.ts +2 -2
- package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +33 -29
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +31 -31
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +77 -77
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +31 -31
- package/dist/types/components/checkout/zonos-checkout/zonos-review/zonos-review.d.ts +14 -14
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +29 -29
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +35 -35
- package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +21 -21
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +92 -92
- package/dist/types/components/common/zonos-card/zonos-card.d.ts +29 -29
- package/dist/types/components/common/zonos-collapse/zonos-collapse.d.ts +14 -14
- package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +16 -16
- package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +9 -9
- package/dist/types/components/common/zonos-custom-message/zonos-custom-message.d.ts +9 -9
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +75 -75
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +27 -27
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +13 -13
- package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +28 -28
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +35 -35
- package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +11 -11
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +30 -30
- package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +10 -10
- package/dist/types/components/component-template/zonos-component/zonos-component.d.ts +14 -14
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +68 -68
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +10 -10
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +41 -41
- package/dist/types/components/main/zonos-controller.d.ts +47 -38
- package/dist/types/components/store/checkout/cart.d.ts +64 -64
- package/dist/types/components/store/checkout/stripe.d.ts +44 -43
- package/dist/types/components/store/hello/localization.d.ts +15 -15
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.base.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.danish.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.french.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.german.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.italian.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.korean.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.polish.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.russian.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +147 -147
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +147 -147
- package/dist/types/components/store/translationStore.d.ts +2 -2
- package/dist/types/components/store/zonosStore.d.ts +23 -22
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +17 -17
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +9 -9
- package/dist/types/components/stripe/zonos-payment/zonos-payment.d.ts +10 -10
- package/dist/types/components/utils/addDays.d.ts +6 -6
- package/dist/types/components/utils/api/checkItemRestrictions.d.ts +14 -14
- package/dist/types/components/utils/api/getCountryLandedCost.d.ts +6 -6
- package/dist/types/components/utils/api/getExchangeRate.d.ts +17 -17
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +15 -15
- package/dist/types/components/utils/api/getLocalization.d.ts +2 -2
- package/dist/types/components/utils/api/getZonosSettings.d.ts +8 -0
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +5 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +4 -4
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +5 -5
- package/dist/types/components/utils/darkenColor.d.ts +2 -2
- package/dist/types/components/utils/formatCurrency.d.ts +3 -3
- package/dist/types/components/utils/formatDate.d.ts +6 -6
- package/dist/types/components/utils/handleFetch.d.ts +7 -7
- package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +10 -10
- package/dist/types/components/utils/hello/getZCountryUrlParam.d.ts +2 -0
- package/dist/types/components/utils/hello/setZCountryUrlParam.d.ts +2 -0
- package/dist/types/components/utils/lightenColor.d.ts +2 -2
- package/dist/types/components/utils/mergeConfig.d.ts +1 -1
- package/dist/types/components/utils/submitGtag.d.ts +3 -3
- package/dist/types/components.d.ts +96 -0
- package/dist/types/environment.d.ts +39 -34
- package/dist/types/scripts/extractZonosQaUrl.d.ts +11 -0
- package/dist/types/scripts/stripe.d.ts +2 -2
- package/dist/types/scripts/zonos.d.ts +51 -40
- package/dist/types/stencil-public-runtime.d.ts +29 -0
- package/dist/types/styles/stripe/addressRuleStyle.d.ts +1 -1
- package/dist/types/styles/stripe/defaultVariable.d.ts +2 -2
- package/dist/types/types/ICountryJson.d.ts +20 -20
- package/dist/types/types/JsonError.d.ts +3 -3
- package/dist/types/types/Translation.d.ts +1 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +55 -53
- package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +16 -16
- package/dist/types/types/generated/graphql.customer.types.d.ts +2217 -1970
- package/dist/types/types/generated/graphql.customer.types.ts +310 -7
- package/dist/types/types/generated/graphql.frontend.types.d.ts +649 -450
- package/dist/types/types/generated/graphql.frontend.types.ts +358 -11
- package/dist/types/types/global.d.ts +12 -0
- package/dist/types/types/hello/HelloConfig.d.ts +20 -20
- package/dist/types/types/hello/Product.d.ts +3 -3
- package/dist/types/types/hello/RestrictedItem.d.ts +1 -1
- package/dist/types/types/online-store/OnlineStoreConfig.d.ts +1 -1
- package/dist/types/types/stripe/Apperance.d.ts +3 -3
- package/dist/types/types/styles/Text.d.ts +90 -90
- package/dist/types/types/utils/deep/IDeepKeyof.d.ts +1 -1
- package/dist/types/types/utils/deep/IDeepKeyofAtIndex.d.ts +2 -2
- package/dist/types/utils/generateVercelDeployUrl.d.ts +2 -2
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-06fb9d1f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-08695f4e.js → p-089ba905.js} +1 -1
- package/dist/zonos-elements/{p-f7875c40.js → p-1685c8df.js} +1 -1
- package/dist/zonos-elements/p-18904b7c.system.js +2 -0
- package/dist/zonos-elements/p-1d4a970b.entry.js +1 -0
- package/dist/zonos-elements/p-23e7c655.system.js +1 -1
- package/dist/zonos-elements/p-24eed2a8.system.js +1 -0
- package/dist/zonos-elements/p-24fbe845.system.js +1 -0
- package/dist/zonos-elements/p-2801d868.entry.js +1 -0
- package/dist/zonos-elements/p-2a307c55.system.entry.js +1 -0
- package/dist/zonos-elements/p-2f43da39.system.entry.js +1 -0
- package/dist/zonos-elements/{p-770c959e.js → p-3c6988d7.js} +1 -1
- package/dist/zonos-elements/p-3cea383b.system.entry.js +1 -0
- package/dist/zonos-elements/p-47390db7.system.entry.js +1 -0
- package/dist/zonos-elements/p-4846796a.js +1 -0
- package/dist/zonos-elements/p-494c77a7.entry.js +1 -0
- package/dist/zonos-elements/p-49f09b91.entry.js +1 -0
- package/dist/zonos-elements/p-4a15c5c7.system.entry.js +1 -0
- package/dist/zonos-elements/p-4bee0bff.system.entry.js +1 -0
- package/dist/zonos-elements/p-4d93275c.entry.js +1 -0
- package/dist/zonos-elements/p-4ed71bd7.entry.js +1 -0
- package/dist/zonos-elements/{p-bf070bf6.js → p-55f49f1e.js} +1 -1
- package/dist/zonos-elements/p-560aa686.system.entry.js +1 -0
- package/dist/zonos-elements/p-639396bb.entry.js +1 -0
- package/dist/zonos-elements/p-67154df2.system.entry.js +1 -0
- package/dist/zonos-elements/p-67aec665.entry.js +1 -0
- package/dist/zonos-elements/p-684ed483.entry.js +1 -0
- package/dist/zonos-elements/p-89c210d6.entry.js +1 -0
- package/dist/zonos-elements/p-8c48b75e.system.js +1 -0
- package/dist/zonos-elements/p-8c5595d9.system.entry.js +1 -0
- package/dist/zonos-elements/p-938803f4.entry.js +1 -0
- package/dist/zonos-elements/p-956efa27.js +2 -0
- package/dist/zonos-elements/{p-3f3fbcea.entry.js → p-a0e36ed3.entry.js} +1 -1
- package/dist/zonos-elements/p-a376a37f.entry.js +1 -0
- package/dist/zonos-elements/p-a504f64f.system.js +1 -0
- package/dist/zonos-elements/p-afe26069.entry.js +1 -0
- package/dist/zonos-elements/p-b4601210.system.entry.js +1 -0
- package/dist/zonos-elements/{p-164fae93.system.js → p-b51de536.system.js} +1 -1
- package/dist/zonos-elements/p-b6148206.entry.js +1 -0
- package/dist/zonos-elements/p-b85be1ab.system.js +1 -0
- package/dist/zonos-elements/p-bc7bf53e.system.js +1 -0
- package/dist/zonos-elements/p-c9348bb0.system.entry.js +1 -0
- package/dist/zonos-elements/p-d2217f09.system.js +1 -0
- package/dist/zonos-elements/p-d856a200.system.entry.js +1 -0
- package/dist/zonos-elements/{p-85ab35c9.system.js → p-da060b1c.system.js} +1 -1
- package/dist/zonos-elements/p-e1f6ab97.entry.js +1 -0
- package/dist/zonos-elements/p-e5ae22a9.system.entry.js +1 -0
- package/dist/zonos-elements/p-e98be2d0.system.entry.js +1 -0
- package/dist/zonos-elements/p-e9b832c5.entry.js +1 -0
- package/dist/zonos-elements/p-edbea8df.system.js +1 -0
- package/dist/zonos-elements/p-f141519c.system.entry.js +1 -0
- package/dist/zonos-elements/p-f367f2fe.system.entry.js +1 -0
- package/dist/zonos-elements/p-ff95f098.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +15 -15
- package/package.json +60 -58
- package/dist/cjs/cart-55512e32.js +0 -616
- package/dist/cjs/getBorderRadius-fdd605c6.js +0 -18
- package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -10
- package/dist/cjs/isColorVariable-c1ed7303.js +0 -16
- package/dist/cjs/localization-d7fe7290.js +0 -3606
- package/dist/cjs/submitGtag-d65003f9.js +0 -27
- package/dist/collection/components/utils/api/getZonosSetting.js +0 -11
- package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +0 -9
- package/dist/esm/cart-17650017.js +0 -598
- package/dist/esm/getBorderRadius-45764ad7.js +0 -16
- package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -8
- package/dist/esm/isColorVariable-4cda28c9.js +0 -14
- package/dist/esm/localization-f3828793.js +0 -3592
- package/dist/esm/submitGtag-a901ece5.js +0 -24
- package/dist/esm-es5/cart-17650017.js +0 -1
- package/dist/esm-es5/getBorderRadius-45764ad7.js +0 -1
- package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +0 -1
- package/dist/esm-es5/index-d1aa9293.js +0 -2
- package/dist/esm-es5/zonosStore-05a62104.js +0 -1
- package/dist/types/components/utils/api/getZonosSetting.d.ts +0 -8
- package/dist/types/components/utils/hello/setZonosCountryUrlParam.d.ts +0 -2
- package/dist/zonos-elements/p-0190f7c4.entry.js +0 -1
- package/dist/zonos-elements/p-0e0b46a5.js +0 -1
- package/dist/zonos-elements/p-0ed3bb9f.system.entry.js +0 -1
- package/dist/zonos-elements/p-15b71f0b.system.entry.js +0 -1
- package/dist/zonos-elements/p-224125da.system.entry.js +0 -1
- package/dist/zonos-elements/p-23204b78.system.entry.js +0 -1
- package/dist/zonos-elements/p-28681677.entry.js +0 -1
- package/dist/zonos-elements/p-2b6325ab.entry.js +0 -1
- package/dist/zonos-elements/p-36425562.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a56c240.entry.js +0 -1
- package/dist/zonos-elements/p-43a25dab.entry.js +0 -1
- package/dist/zonos-elements/p-4a5096d2.system.js +0 -1
- package/dist/zonos-elements/p-64fdb7b6.system.js +0 -1
- package/dist/zonos-elements/p-68d06767.system.js +0 -2
- package/dist/zonos-elements/p-6d82986c.system.entry.js +0 -1
- package/dist/zonos-elements/p-6dcd752e.system.js +0 -1
- package/dist/zonos-elements/p-6e7cd3f7.entry.js +0 -1
- package/dist/zonos-elements/p-7bacecf7.entry.js +0 -1
- package/dist/zonos-elements/p-824395fd.system.entry.js +0 -1
- package/dist/zonos-elements/p-8378d94e.js +0 -1
- package/dist/zonos-elements/p-84b00605.system.entry.js +0 -1
- package/dist/zonos-elements/p-8a75b765.system.entry.js +0 -1
- package/dist/zonos-elements/p-8aabbb9b.system.js +0 -1
- package/dist/zonos-elements/p-8b415737.system.entry.js +0 -1
- package/dist/zonos-elements/p-8c867835.system.js +0 -1
- package/dist/zonos-elements/p-9202375f.entry.js +0 -1
- package/dist/zonos-elements/p-9688bb12.entry.js +0 -1
- package/dist/zonos-elements/p-98a6e093.system.entry.js +0 -1
- package/dist/zonos-elements/p-a1fa50fb.entry.js +0 -1
- package/dist/zonos-elements/p-aca66238.system.entry.js +0 -1
- package/dist/zonos-elements/p-b618cf03.entry.js +0 -1
- package/dist/zonos-elements/p-b75ffe64.system.entry.js +0 -1
- package/dist/zonos-elements/p-bc2c42f5.entry.js +0 -1
- package/dist/zonos-elements/p-c8ad044e.system.entry.js +0 -1
- package/dist/zonos-elements/p-cc070c1c.entry.js +0 -1
- package/dist/zonos-elements/p-cc1c785c.system.entry.js +0 -1
- package/dist/zonos-elements/p-cd71e41e.entry.js +0 -1
- package/dist/zonos-elements/p-cf97cc68.system.entry.js +0 -1
- package/dist/zonos-elements/p-d6b8563b.system.entry.js +0 -1
- package/dist/zonos-elements/p-dc8d7000.js +0 -2
- package/dist/zonos-elements/p-e5908de2.entry.js +0 -1
- package/dist/zonos-elements/p-f6add79c.system.js +0 -1
- package/dist/zonos-elements/p-f8491335.system.js +0 -1
- package/dist/zonos-elements/p-f868ed42.entry.js +0 -1
- package/dist/zonos-elements/p-f95ac9ec.system.js +0 -1
- /package/dist/esm-es5/{isColorVariable-4cda28c9.js → isColorVariable-91c33804.js} +0 -0
- /package/dist/zonos-elements/{p-0636859b.js → p-4c414a92.js} +0 -0
- /package/dist/zonos-elements/{p-b6c499d4.js → p-5883217a.js} +0 -0
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
export declare const textOptions: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
2
|
+
readonly pageHeader: {
|
|
3
|
+
readonly label: "Page Header (3XL) · 34px (2.125rem)";
|
|
4
|
+
readonly size: "3xl";
|
|
5
|
+
readonly tag: "h2";
|
|
6
|
+
readonly weight: 900;
|
|
7
|
+
};
|
|
8
|
+
readonly secondaryPageHeader: {
|
|
9
|
+
readonly label: "Secondary Page Header (3XL) • 34px, 500 \"Medium\"";
|
|
10
|
+
readonly size: "3xl";
|
|
11
|
+
readonly tag: "h2";
|
|
12
|
+
readonly weight: 500;
|
|
13
|
+
};
|
|
14
|
+
readonly header: {
|
|
15
|
+
readonly label: "Header (2XL) · 28px (1.75rem)";
|
|
16
|
+
readonly size: "2xl";
|
|
17
|
+
readonly tag: "h3";
|
|
18
|
+
readonly weight: 700;
|
|
19
|
+
};
|
|
20
|
+
readonly descriptionHeader: {
|
|
21
|
+
readonly label: "Description Header (2XL) · 28px (1.75rem)";
|
|
22
|
+
readonly size: "2xl";
|
|
23
|
+
readonly tag: "h3";
|
|
24
|
+
readonly weight: 700;
|
|
25
|
+
};
|
|
26
|
+
readonly title: {
|
|
27
|
+
readonly label: "Title (XL) • 22px (1.375rem)";
|
|
28
|
+
readonly size: "xl";
|
|
29
|
+
readonly tag: "h4";
|
|
30
|
+
readonly weight: 600;
|
|
31
|
+
};
|
|
32
|
+
readonly boldSubheader: {
|
|
33
|
+
readonly label: "Bold Subheader (L) • 18px (1.125rem)";
|
|
34
|
+
readonly size: "l";
|
|
35
|
+
readonly tag: "h5";
|
|
36
|
+
readonly weight: 700;
|
|
37
|
+
};
|
|
38
|
+
readonly semiBoldSubheader: {
|
|
39
|
+
readonly label: "Semi Bold Subheader (L / H4) • 18px (1.125rem)";
|
|
40
|
+
readonly size: "l";
|
|
41
|
+
readonly tag: "h5";
|
|
42
|
+
readonly weight: 600;
|
|
43
|
+
};
|
|
44
|
+
readonly subheader: {
|
|
45
|
+
readonly label: "Subheader (L) • 18px (1.125rem)";
|
|
46
|
+
readonly size: "l";
|
|
47
|
+
readonly tag: "h5";
|
|
48
|
+
readonly weight: 500;
|
|
49
|
+
};
|
|
50
|
+
readonly boldLabel: {
|
|
51
|
+
readonly label: "Bold Label (Base) • 14px (.875rem)";
|
|
52
|
+
readonly size: "base";
|
|
53
|
+
readonly tag: "span";
|
|
54
|
+
readonly weight: 700;
|
|
55
|
+
};
|
|
56
|
+
readonly semiBoldLabel: {
|
|
57
|
+
readonly label: "Semi Bold Label (Base) • 14px (.875rem)";
|
|
58
|
+
readonly size: "base";
|
|
59
|
+
readonly tag: "span";
|
|
60
|
+
readonly weight: 600;
|
|
61
|
+
};
|
|
62
|
+
readonly label: {
|
|
63
|
+
readonly label: "Label (Base) • 14px (.875rem)";
|
|
64
|
+
readonly size: "base";
|
|
65
|
+
readonly tag: "span";
|
|
66
|
+
readonly weight: 500;
|
|
67
|
+
};
|
|
68
|
+
readonly body: {
|
|
69
|
+
readonly label: "Body (Base) • 14px (.875rem)";
|
|
70
|
+
readonly size: "base";
|
|
71
|
+
readonly tag: "span";
|
|
72
|
+
readonly weight: 400;
|
|
73
|
+
};
|
|
74
|
+
readonly smallHeader: {
|
|
75
|
+
readonly label: "Small header (S) • 12px (.75rem)";
|
|
76
|
+
readonly size: "s";
|
|
77
|
+
readonly tag: "span";
|
|
78
|
+
readonly weight: 600;
|
|
79
|
+
};
|
|
80
|
+
readonly caption: {
|
|
81
|
+
readonly label: "Caption (S) • 12px (.75rem)";
|
|
82
|
+
readonly size: "s";
|
|
83
|
+
readonly tag: "span";
|
|
84
|
+
readonly weight: 400;
|
|
85
|
+
};
|
|
86
|
+
readonly hintText: {
|
|
87
|
+
readonly label: "Hint text (XS) • 10px (.625rem)";
|
|
88
|
+
readonly size: "xs";
|
|
89
|
+
readonly tag: "span";
|
|
90
|
+
readonly weight: 400;
|
|
91
|
+
};
|
|
92
92
|
};
|
|
93
93
|
type TextOptions = typeof textOptions;
|
|
94
94
|
export type Size = TextOptions[keyof TextOptions]['size'];
|
|
@@ -10,7 +10,7 @@ type IDelimiter = '.';
|
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
export type IDeepKeyof<T extends object, Depth extends IRecursiveDepth = 4> = IRecursionLimited<Depth, {
|
|
13
|
-
|
|
13
|
+
[K in Extract<keyof T, string>]: T[K] extends Array<unknown> ? K : T[K] extends object ? `${K}${IDelimiter}${IDeepKeyof<T[K], IPrev[Depth]>}` : K;
|
|
14
14
|
}[Extract<keyof T, string>]>;
|
|
15
15
|
/**
|
|
16
16
|
* Extracts a type for a field given a property path string.
|
|
@@ -2,10 +2,10 @@ import type { IRecursionLimited } from "../../index";
|
|
|
2
2
|
type IPrev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
3
3
|
type IRecursiveDepth = IPrev[number];
|
|
4
4
|
type IDeepKeyofObjAndArray<T extends object, Depth extends IRecursiveDepth = 4> = IRecursionLimited<Depth, {
|
|
5
|
-
|
|
5
|
+
[K in Extract<keyof T, string>]: T[K] extends unknown[] ? T[K][number] extends object ? `${K}[number].${IDeepKeyofObjAndArray<T[K][number], IPrev[Depth]>}` : `${K}[number]` : T[K] extends object ? `${K}.${IDeepKeyofObjAndArray<T[K], IPrev[Depth]>}` : K;
|
|
6
6
|
}[Extract<keyof T, string>]>;
|
|
7
7
|
export type IDeepKeyofAtIndex<T extends object, Depth extends IRecursiveDepth = 4> = {
|
|
8
|
-
|
|
8
|
+
[Path in IDeepKeyofObjAndArray<T, Depth>]: Path extends `${string}[number]${string}` ? Path : Path extends `${string}[number]` ? Path : never;
|
|
9
9
|
}[IDeepKeyofObjAndArray<T, Depth>];
|
|
10
10
|
/**
|
|
11
11
|
* Extracts a type for a field given a property path string.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @urlExample zonos-elements-serverless-git-fe-525-ref-shipping-b14253-zonos.vercel.app
|
|
7
7
|
*/
|
|
8
8
|
export declare const generateVercelDeployUrl: ({ branchName, projectName, }: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
branchName: string;
|
|
10
|
+
projectName: string;
|
|
11
11
|
}) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--amino-
|
|
1
|
+
<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as cartStore,a as cartStoreApplySubtotals,b as cartStoreGetShippingTransitInfo,d as cartStoreNextStep,e as cartStorePreviousStep,f as cartStoreReCalculateTotal,g as cartStoreReset,h as cartStoreUpdateItems,i as cartStoreUpdateSelectedShippingOption,j as cartStoreUpdateToErrorState}from"./p-
|
|
1
|
+
export{c as cartStore,a as cartStoreApplySubtotals,b as cartStoreGetShippingTransitInfo,d as cartStoreNextStep,e as cartStorePreviousStep,f as cartStoreReCalculateTotal,g as cartStoreReset,h as cartStoreUpdateItems,i as cartStoreUpdateSelectedShippingOption,j as cartStoreUpdateToErrorState}from"./p-4846796a.js";import"./p-089ba905.js";import"./p-956efa27.js";import"./p-3c6988d7.js";import"./p-55f49f1e.js";import"./p-ff95f098.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,s,t,n){function e(o){return o instanceof t?o:new t((function(s){s(o)}))}return new(t||(t=Promise))((function(t,i){function a(o){try{c(n.next(o))}catch(o){i(o)}}function r(o){try{c(n["throw"](o))}catch(o){i(o)}}function c(o){o.done?t(o.value):e(o.value).then(a,r)}c((n=n.apply(o,s||[])).next())}))};var __generator=this&&this.__generator||function(o,s){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,e,i,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(o){return function(s){return c([o,s])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(t=0)),t)try{if(n=1,e&&(i=r[0]&2?e["return"]:r[0]?e["throw"]||((i=e["return"])&&i.call(e),0):e.next)&&!(i=i.call(e,r[1])).done)return i;if(e=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;e=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){t.label=r[1];break}if(r[0]===6&&t.label<i[1]){t.label=i[1];i=r;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(r);break}if(i[2])t.ops.pop();t.trys.pop();continue}r=s.call(o,t)}catch(o){r=[6,o];e=0}finally{n=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,s,t){if(t||arguments.length===2)for(var n=0,e=s.length,i;n<e;n++){if(i||!(n in s)){if(!i)i=Array.prototype.slice.call(s,0,n);i[n]=s[n]}}return o.concat(i||Array.prototype.slice.call(s))};System.register(["./p-18904b7c.system.js","./p-d2217f09.system.js","./p-b51de536.system.js","./p-24eed2a8.system.js","./p-a504f64f.system.js","./p-b85be1ab.system.js","./p-23e7c655.system.js","./p-da060b1c.system.js"],(function(o){"use strict";var s,t,n,e,i,a,r,c,l,h,u,d,p,m,f,z,g,v,b,y,x,w;return{setters:[function(o){s=o.r;t=o.a;n=o.h;e=o.H;i=o.F;a=o.c;r=o.d},function(o){c=o.c;l=o.s;h=o.p;u=o.o;d=o.i;p=o.b},function(o){m=o.t;f=o.h;z=o.b},function(o){g=o.g},function(o){v=o.s;b=o.i},function(o){y=o.e;x=o.z},function(o){w=o.c},function(){}],execute:function(){var k=function(o){var s=o.amount,t=o.currency,n=o.showCurrencyText;return n?"".concat(new Intl.NumberFormat("en-US",{currency:t,style:"currency"}).format(s)," ").concat(t):new Intl.NumberFormat("en-US",{currency:t,style:"currency"}).format(s)};var C=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";var I=o("zonos_cart_items",function(){function o(o){s(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var s;var i=t("./assets/empty-item.jpeg");var a=((s=c.exchangeRate)===null||s===void 0?void 0:s.rate)||1;return n(e,{class:"zonos--cart-items zonos--elements"},n("table",{class:"zonos--cart-table"},n("tbody",null,c.items.map((function(s){var t=s.imageUrl;return n("tr",{class:"zonos--cart-item"},n("td",{class:"zonos--column zonos--cart-item-image"},t&&!o.errorImages.includes(t)?n("img",{alt:s.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[t],false)},src:s.imageUrl,style:{"min-width":"40px"},width:40}):n("img",{alt:s.name,src:i,width:40})),n("td",{class:"zonos--column zonos--cart-item-name"},n("zonos-text",{type:"label"},s.name)),n("td",{class:"zonos--column zonos--cart-item-price"},n("zonos-text",{type:"semiBoldLabel"},k({amount:s.amount*s.quantity*a,currency:c.currency}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());I.style=C;var _='<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>\n</svg>\n';var j=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";var L=o("zonos_cart_subtotal",function(){function o(o){s(this,o)}o.prototype.render=function(){var o=c.total-c.dutiesTaxFees;var s=c.step==="payment"||c.step==="shipping";var t=function(){if(!c.selectedShippingOption){return n(i,null,n("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Shipping")),n("zonos-text",{class:"zonos--caption",type:"caption"},m("No shipping method selected")))}return n(i,null,n("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},c.selectedShippingOption.displayName),c.selectedShippingOptionTransitTime&&n("zonos-text",{class:"zonos--caption",type:"caption"},c.selectedShippingOptionTransitTime," ",m("business days")))};return n(e,{class:"zonos--cart-subtotal zonos--elements"},n("table",{class:"zonos--cart-table"},n("tr",{class:"zonos--row zonos--cart-subtotal"},n("td",{class:"zonos--column"}),n("td",{class:"zonos--column zonos--cart-subtotal-title"},n("zonos-text",{type:"semiBoldLabel"},m("Cart subtotal"))),n("td",{class:"zonos--column zonos--cart-subtotal-price"},n("zonos-text",{type:"semiBoldLabel"},k({amount:c.subtotal,currency:c.currency})))),n("tr",{class:"zonos--row zonos--cart-shipping"},n("td",{class:"zonos--column"}),n("td",{class:"zonos--column zonos--cart-subtotal-title"},t()),n("td",{class:"zonos--column zonos--cart-subtotal-price"},c.shipping?k({amount:c.shipping,currency:c.currency}):"-")),s&&n("tr",{class:"zonos--row zonos--cart-duties"},n("td",{class:"zonos--column"}),n("td",{class:"zonos--column zonos--cart-subtotal-title"},n("div",{class:"zonos--title-with-icon"},n("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Duties, taxes, and fees")),n("zonos-icon",{content:_,size:16})),!!c.isSelectedShippingAboveDeminimis&&n("zonos-text",{color:"gray-800",type:"body"},m("Order is over the de minimis threshold for both duty and tax"))),n("td",{class:"zonos--column zonos--cart-subtotal-price"},n("div",{class:"zonos--cart-duty-tax-price"},c.dutiesTaxFees?k({amount:c.dutiesTaxFees,currency:c.currency}):"-",c.isSelectedShippingGuarantee&&n("zonos-badge",null,m("Guaranteed"))))),n("tr",{class:"zonos--row zonos--cart-pay-total"},n("td",{class:"zonos--column"}),n("td",{class:"zonos--column"},n("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Order total"))),n("td",{class:"zonos--column"},n("zonos-text",{type:"semiBoldLabel"},k({amount:c.step==="shipping"?o:c.total,currency:c.currency}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());L.style=j;var B='<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var S='<svg color="var(--amino-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--amino-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var D=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--amino-space-24);border-radius:var(--border-radius, 10px);gap:var(--amino-space-24);max-width:360px;width:auto;margin:auto;margin-top:var(--amino-space-24);background-color:var(--amino-gray-50);padding:var(--amino-space-20)}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";var Z=o("zonos_checkout_finish",function(){function o(o){var t=this;s(this,o);this.closeClick=a(this,"closeClick",7);this.pullOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o,s,t,n,e,i,a,r,l;return __generator(this,(function(h){switch(h.label){case 0:t="https://v1.route.js.zonos.com";n=c.checkoutSessionId;return[4,f("".concat(t,"/api/zonos-elements/get-order?checkoutSessionId=").concat(n))];case 1:e=h.sent(),i=e.errors,a=e.json;if(i.length||!(a===null||a===void 0?void 0:a.id)){return[2,null]}if(window.Zonos.isBigCommerce){r=a===null||a===void 0?void 0:a.id;l=(s=(o=a===null||a===void 0?void 0:a.metadata)===null||o===void 0?void 0:o.find((function(o){return(o===null||o===void 0?void 0:o.key)==="storeHash"})))===null||s===void 0?void 0:s.value;if(!r||!l){return[2,z("Unable to trigger BigCommerce /success: Missing orderId or storeHash")]}void f("".concat(t,"/api/bigcommerce/success?orderId=").concat(r,"&storeHash=").concat(l))}return[2,a]}}))}))};this.getPullOrder=function(o){if(o===void 0){o=0}return __awaiter(t,void 0,void 0,(function(){var s;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.pullOrder()];case 1:s=t.sent();if(!s)return[3,2];this.order=s;return[3,5];case 2:if(!(!s&&o<5))return[3,5];return[4,new Promise((function(o){return setTimeout(o,1e3)}))];case 3:t.sent();return[4,this.getPullOrder(o+1)];case 4:t.sent();t.label=5;case 5:return[2]}}))}))};this.checkPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,s,t,n,e;return __generator(this,(function(i){switch(i.label){case 0:this.isLoading=true;o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||l.clientSecret;if(!(o||this.storybookForceStatus))return[3,2];return[4,h({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:s=i.sent(),t=s.error,n=s.messages;this.notificationType=t?"error":"success";this.notificationMessages=n||[];this.notificationTitle=t?m("Payment failed"):m("You're all set!");if(t){v("zonos-checkout-payment-fail")}else{v("zonos-checkout-success");e=new CustomEvent("zonos-checkout-success",{detail:{message:"Zonos Checkout successfully processed order"}});document.dispatchEvent(e)}if(this.notificationType==="success"){void this.getPullOrder()}i.label=2;case 2:u();this.isLoading=false;return[2]}}))}))};this.closeClickHandler=function(){t.closeClick.emit()};this.borderRadius="ROUNDED";this.storybookForceStatus=undefined;this.overrideNotification=undefined;this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[];this.order=null}o.prototype.componentDidLoad=function(){if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;this.isLoading=false;return}void this.checkPaymentStatus()};o.prototype.render=function(){var o=this;return n(e,{class:"zonos--checkout-finish zonos--elements",style:{"--border-radius":g(this.borderRadius)}},this.isLoading&&n("div",{class:"loading-wrapper"},n("zonos-spinner",null)),!this.isLoading&&n(i,null,n("div",{class:"zonos--group"},this.notificationType==="success"?n("zonos-icon",{color:"blue-800",content:S,size:50}):n("zonos-icon",{color:"red-800",content:B,size:50}),n("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),n("zonos-text",null,this.notificationMessages.map((function(o){return n(i,null,o,n("br",null))}))),n("zonos-button",{onClick:function(){return o.closeClickHandler()},size:"md",variant:"primary"},m("Keep shopping")))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());Z.style=D;var O=".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:calc(100% - 10px)}";var A=o("zonos_checkout_payment",function(){function o(o){var t=this;s(this,o);this.continueClicked=a(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.paymentError=false;this.submitBtnType=undefined;this.continueLoading=false;this.submitBtnColor=undefined;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){v("zonos-checkout-payment-info")}};o.prototype.render=function(){var o=this;var s;if(!l.stripeElements){return null}this.disabled=!((s=l.stripePaymentEventData)===null||s===void 0?void 0:s.complete);return n(e,{class:"zonos--checkout-payment zonos--elements"},n("div",{class:"zonos--group"},n("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Payment method")),this.paymentError&&n("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},m("We couldn't complete your payment. Please verify the payment details and try again.")),n("zonos-payment",null)),n("div",{class:"zonos--group-btn"},n("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},"Pay"," ",k({amount:c.total,currency:c.currency}))))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}());A.style=O;var M=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var P=o("zonos_collapse",function(){function o(o){s(this,o);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight}o.prototype.getElementHeight=function(){var o="".concat(this.height,"px");var s="".concat(this.collapseSize,"px");return this.collapsed?s:o};o.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};o.prototype.componentDidRender=function(){var o=this;var s,t,n;(n=(t=(s=this.el.shadowRoot)===null||s===void 0?void 0:s.querySelector("iframe"))===null||t===void 0?void 0:t.contentWindow)===null||n===void 0?void 0:n.addEventListener("resize",(function(){o.height=o.el.scrollHeight}))};o.prototype.render=function(){this.height=this.el.scrollHeight;return n(e,{class:"zonos--elements zonos--collapse",style:{"--font-family":y(),height:this.getElementHeight()}},n("div",null,n("iframe",{class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),n("slot",null)))};Object.defineProperty(o.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return o}());P.style=M;var T=".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:calc(100% - 10px)}";var E=o("zonos_customer_info",function(){function o(o){var t=this;s(this,o);this.continueClicked=a(this,"continueClicked",7);this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnType=undefined;this.submitBtnColor=undefined;this.defaultAddress=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){v("zonos-checkout-customer-info")}};o.prototype.render=function(){var o=this;var s,t;if(!l.stripeElements){return null}this.disabled=!((s=l.stripeAddressEventData)===null||s===void 0?void 0:s.complete)||!((t=l.stripeLinkEventData)===null||t===void 0?void 0:t.complete);return n(e,{class:"zonos--customer-info zonos--elements"},n("div",{class:"zonos--group"},n("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Customer information")),n("zonos-link-authentication",{titleText:m("Contact")}),n("zonos-address",{defaultAddress:this.defaultAddress,titleText:m("Address"),type:"shipping"})),n("div",{class:"zonos--group-btn"},n("zonos-button",{backgroundColor:this.submitBtnColor,isDisabled:this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},m("Continue to shipping"))))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}());E.style=T;var H='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var U=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0px;top:0px;background:var(--amino-backdrop-color);z-index:-999;opacity:0;visibility:hidden;position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1002;background:white}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--amino-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:1001;background:var(--amino-gray-0);max-width:90vw;max-height:90vh;min-height:500px;height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--amino-radius-10));outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);border:var(--amino-border);overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-16) var(--amino-space-24)}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--amino-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--amino-hover-color)}:host .zonos--body{padding:var(--amino-space-8) var(--amino-space-24);max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:var(--amino-space-16) var(--amino-space-24)}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:1001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:1002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";var F=o("zonos_dialog",function(){function o(o){var t=this;s(this,o);this.closeDialog=a(this,"closeDialog",7);this.isMobileMode=function(){return t.mobile||window.innerWidth<=768};this.closeButtonHandler=function(){t.closeDialog.emit()};this.clickOutsideDialogHandler=function(o){if(o.target===o.currentTarget&&!t.noClickOutside){t.closeDialog.emit()}};this.open=false;this.headerText="";this.width="460px";this.height=undefined;this.noHeader=false;this.noBodyPadding=false;this.noBorder=false;this.footerRightAction=null;this.borderStyle=undefined;this.noCloseButton=false;this.noClickOutside=false;this.mobile=false;this.isLoading=true;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=this.isMobileMode()};o.prototype.componentDidLoad=function(){this.isMobile=this.isMobileMode()};o.prototype.render=function(){if(this.open){document.body.style.overflow="hidden"}else{document.body.style.overflow="auto"}var o=g(this.borderStyle);return n(e,{class:w(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":o,"--font-family":y(),"--height":this.height||"initial","--width":this.width}},n("div",{class:"zonos--backdrop"}),n("div",{"aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},n("div",{class:"zonos--dialog"},this.isLoading&&n("div",{class:"zonos--loading"},n("zonos-spinner",{size:30})),(this.headerText||!this.noCloseButton)&&n("div",{class:"zonos--header"},this.headerText&&n("h3",{class:"zonos--header-text"},this.headerText),!this.noCloseButton&&n("zonos-button",{class:"zonos--close-button",icon:n("zonos-icon",{content:H}),noBackground:true,onClick:this.closeButtonHandler})),n("div",{class:w(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},n("slot",null)),this.footerRightAction&&n("div",{class:"zonos--footer"},n("div",{class:"zonos--footer-right-action"},this.footerRightAction)))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());F.style=U;var G=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";var R=o("zonos_logo",function(){function o(o){s(this,o);this.theme="LIGHT";this.width="auto";this.class=""}o.prototype.render=function(){var o=this.theme==="DARK"?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return n(e,{class:w(["zonos--elements zonos--logo",this.class]),style:{"--filter-color":o,"--font-family":y(),"--width":this.width}},n("img",{alt:"Zonos Logo",src:t("./assets/ZonosLogo.png")}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());R.style=G;var V='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var N='<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var K=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--total-pay{margin:var(--amino-space-16) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8)}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";var W=o("zonos_review",function(){function o(o){s(this,o);this.mobile=false;this.collapsed=false;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=b(this.mobile)};o.prototype.componentWillLoad=function(){this.isMobile=b(this.mobile)};o.prototype.render=function(){var o=this;var s=this.isMobile?"boldSubheader":"semiBoldLabel";var t=this.isMobile?"boldSubheader":"secondaryPageHeader";var i=this.isMobile?"gray-1200":"gray-800";var a=c.total-c.dutiesTaxFees;var r=function(){if(!o.isMobile){return null}if(!o.collapsed){return n("zonos-icon",{color:"gray-1200",content:V})}return n("zonos-icon",{color:"gray-1200",content:N})};return n(e,{class:w(["zonos--review zonos--elements",this.isMobile&&"mobile"])},n("div",{class:"zonos--title"},n("zonos-text",{color:i,type:s},m("Pay")," ",x.organizationName),r()),n("div",{class:"zonos--total-pay"},n("zonos-text",{type:t},k({amount:c.step==="shipping"?a:c.total,currency:c.currency}))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());W.style=K;var Y=".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:calc(100% - 10px)}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";var q=o("zonos_shipping",function(){function o(o){var t=this;s(this,o);this.continueClicked=a(this,"continueClicked",7);this.handleRadioSelected=function(o){return __awaiter(t,void 0,void 0,(function(){var s,t,n;var e=this;return __generator(this,(function(i){switch(i.label){case 0:this.selectedShippingMethod=o.detail;if(!this.selectedShippingMethod){return[2]}t=((s=c.shippingData)===null||s===void 0?void 0:s.find((function(o){var s;return o.id===((s=e.selectedShippingMethod)===null||s===void 0?void 0:s.value)})))||null;if(!t){return[2]}return[4,d(t)];case 1:n=i.sent();if(!n){return[2]}this.disabled=false;return[2]}}))}))};this.continueClickHandler=function(){t.continueClicked.emit()};this.continueLoading=false;this.submitBtnColor=undefined;this.submitBtnType=undefined;this.selectedShippingMethod=null;this.disabled=true}o.prototype.watchFormComplete=function(){if(!this.disabled){v("zonos-checkout-shipping-info")}};o.prototype.render=function(){var o=this;var s;var t=(s=c.shippingData)===null||s===void 0?void 0:s.flatMap((function(o){var s,t;var n=p(o),e=n.expectedDate,i=n.maxTransit,a=n.minTransit;var r=e?"".concat(m("Expected delivery")," ").concat(e):"";var l=a&&i?"(".concat(a,"-").concat(i," ").concat(m("business days"),")"):"";var h=((t=(s=c.landedCostData)===null||s===void 0?void 0:s.find((function(s){var t;return((t=s.landedCost)===null||t===void 0?void 0:t.shipmentRating.id)===o.id})))===null||t===void 0?void 0:t.subtotals.shipping)||0;return{caption:l,label:o.displayName,price:k({amount:h,currency:c.currency}),sublabel:r,value:o.id}}));return n(e,{class:"zonos--shipping zonos--elements"},n("div",{class:"zonos--group"},n("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Shipping information")),n("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},m("Shipping method")),!(t===null||t===void 0?void 0:t.length)?n("zonos-banner",{bannerTitle:"No shipping methods found - try editing your address or contacting support if the error persists",intent:"error"}):n("zonos-shipping-rich-radio",{items:t||[],onRadioSelected:function(s){return o.handleRadioSelected(s)}})),n("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},m("Go to payment")))};Object.defineProperty(o,"watchers",{get:function(){return{disabled:["watchFormComplete"]}},enumerable:false,configurable:true});return o}());q.style=Y}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as n,f as t}from"./p-dc8d7000.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},I=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return L(r)?r:void 0},U=I(b,"Map"),N=I(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=I(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},Ln=Object.prototype.hasOwnProperty,In=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&Ln.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):In(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter};export{b as _,v as a,l as b,i as c,Jn as d,_ as e,D as f,un as i,Hn as m,qn as z}
|
|
1
|
+
import{g as n,f as t}from"./p-956efa27.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},L=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return I(r)?r:void 0},U=L(b,"Map"),N=L(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=L(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},In=Object.prototype.hasOwnProperty,Ln=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&In.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):Ln(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter},Qn=()=>qn.appearance.fontFamily||"Inter";export{b as _,v as a,l as b,i as c,Jn as d,Qn as e,_ as f,D as g,un as i,Hn as m,qn as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o}from"./p-
|
|
1
|
+
import{z as o}from"./p-089ba905.js";import{l as s}from"./p-3c6988d7.js";const n=o=>o||window.innerWidth<890,t=n=>{const t=o.checkoutSettings.analyticsProviders.find((o=>"GOOGLE_ANALYTICS"===o.type));t&&"DISABLED"!==(null==t?void 0:t.status)&&"function"==typeof window.gtag&&(s("Zonos submits gtag event","log",n),window.gtag("event",n,{}))};export{n as i,t as s}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,f){function a(r){try{o(t.next(r))}catch(r){f(r)}}function u(r){try{o(t["throw"](r))}catch(r){f(r)}}function o(r){r.done?e(r.value):i(r.value).then(a,u)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},t,i,f,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(r){return function(n){return o([r,n])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,i&&(f=u[0]&2?i["return"]:u[0]?i["throw"]||((f=i["return"])&&f.call(i),0):i.next)&&!(f=f.call(i,u[1])).done)return f;if(i=0,f)u=[u[0]&2,f.value];switch(u[0]){case 0:case 1:f=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1]<f[3])){e.label=u[1];break}if(u[0]===6&&e.label<f[1]){e.label=f[1];f=u;break}if(f&&e.label<f[2]){e.label=f[2];e.ops.push(u);break}if(f[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];i=0}finally{t=f=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,f;t<i;t++){if(f||!(t in n)){if(!f)f=Array.prototype.slice.call(n,0,t);f[t]=n[t]}}return r.concat(f||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="zonos-elements";var i;var f;var a=false;var u=null;var o=false;var v=r("a",(function(r){var n=new URL(r,Ur.t);return n.origin!==Lr.location.origin?n.href:n.pathname}));var l=function(r,n){if(n===void 0){n=""}{return function(){return}}};var c=function(r,n){{return function(){return}}};var s="{visibility:hidden}.hydrated{visibility:inherit}";var d="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h={};var y="http://www.w3.org/2000/svg";var p="http://www.w3.org/1999/xhtml";var w=function(r){return r!=null};var b=function(r){r=typeof r;return r==="object"||r==="function"};function m(r){var n,e,t;return(t=(e=(n=r.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var _=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var f=null;var a=false;var u=false;var o=[];var v=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof r!=="function"&&!b(i)){i=String(i)}if(a&&u){o[o.length-1].i+=i}else{o.push(a?g(null,i):i)}u=a}}};v(e);if(n){if(n.key){f=n.key}{var l=n.className||n.class;if(l){n.class=typeof l!=="object"?l:Object.keys(l).filter((function(r){return l[r]})).join(" ")}}}if(typeof r==="function"){return r(n===null?{}:n,o,j)}var c=g(r,null);c.u=n;if(o.length>0){c.o=o}{c.v=f}return c}));var g=function(r,n){var e={l:0,h:r,i:n,p:null,o:null};{e.u=null}{e.v=null}return e};var $=r("H",{});var S=function(r){return r&&r.h===$};var j={forEach:function(r,n){return r.map(O).forEach(n)},map:function(r,n){return r.map(O).map(n).map(k)}};var O=function(r){return{vattrs:r.u,vchildren:r.o,vkey:r.v,vname:r.m,vtag:r.h,vtext:r.i}};var k=function(r){if(typeof r.vtag==="function"){var n=Object.assign({},r.vattrs);if(r.vkey){n.key=r.vkey}if(r.vname){n.name=r.vname}return _.apply(void 0,__spreadArray([r.vtag,n],r.vchildren||[],false))}var e=g(r.vtag,r.vtext);e.u=r.vattrs;e.o=r.vchildren;e.v=r.vkey;e.m=r.vname;return e};var A=function(r,n){if(r!=null&&!b(r)){if(n&4){return r==="false"?false:r===""||!!r}if(n&2){return parseFloat(r)}if(n&1){return String(r)}return r}return r};var x=r("d",(function(r){return Or(r).$hostElement$}));var C=r("c",(function(r,n,e){var t=x(r);return{emit:function(r){return M(t,n,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:r})}}}));var M=function(r,n,e){var t=Ur.ce(n,e);r.dispatchEvent(t);return t};var E=new WeakMap;var P=function(r,n,e){var t=Pr.get(r);if(Fr&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}Pr.set(r,t)};var L=function(r,n,e){var t;var i=U(n);var f=Pr.get(i);r=r.nodeType===11?r:Tr;if(f){if(typeof f==="string"){r=r.head||r;var a=E.get(r);var u=void 0;if(!a){E.set(r,a=new Set)}if(!a.has(i)){{u=Tr.createElement("style");u.innerHTML=f;var o=(t=Ur._)!==null&&t!==void 0?t:m(Tr);if(o!=null){u.setAttribute("nonce",o)}r.insertBefore(u,r.querySelector("link"))}if(n.l&4){u.innerHTML+=d}if(a){a.add(i)}}}else if(!r.adoptedStyleSheets.includes(f)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[f],false)}}return i};var T=function(r){var n=r.$;var e=r.$hostElement$;var t=n.l;var i=l("attachStyles",n.S);var f=L(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10){e["s-sc"]=f;e.classList.add(f+"-h");if(t&2){e.classList.add(f+"-s")}}i()};var U=function(r,n){return"sc-"+r.S};var R=function(r,n,e,t,i,f){if(e!==t){var a=xr(r,n);var u=n.toLowerCase();if(n==="class"){var o=r.classList;var v=N(e);var l=N(t);o.remove.apply(o,v.filter((function(r){return r&&!l.includes(r)})));o.add.apply(o,l.filter((function(r){return r&&!v.includes(r)})))}else if(n==="style"){{for(var c in e){if(!t||t[c]==null){if(c.includes("-")){r.style.removeProperty(c)}else{r.style[c]=""}}}}for(var c in t){if(!e||t[c]!==e[c]){if(c.includes("-")){r.style.setProperty(c,t[c])}else{r.style[c]=t[c]}}}}else if(n==="key");else if(n==="ref"){if(t){t(r)}}else if(!a&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(xr(Lr,u)){n=u.slice(2)}else{n=u[2]+n.slice(3)}if(e||t){var s=n.endsWith(W);n=n.replace(D,"");if(e){Ur.rel(r,n,e,s)}if(t){Ur.ael(r,n,t,s)}}}else{var d=b(t);if((a||d&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var h=t==null?"":t;if(n==="list"){a=false}else if(e==null||r[n]!=h){r[n]=h}}else{r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){{r.removeAttribute(n)}}}else if((!a||f&4||i)&&!d){t=t===true?"":t;{r.setAttribute(n,t)}}}}};var F=/\s/;var N=function(r){return!r?[]:r.split(F)};var W="Capture";var D=new RegExp(W+"$");var H=function(r,n,e,t){var i=n.p.nodeType===11&&n.p.host?n.p.host:n.p;var f=r&&r.u||h;var a=n.u||h;{for(t in f){if(!(t in a)){R(i,t,f[t],undefined,e,n.l)}}}for(t in a){R(i,t,f[t],a[t],e,n.l)}};var q=function(r,n,e,t){var u=n.o[e];var o=0;var v;var l;if(u.i!==null){v=u.p=Tr.createTextNode(u.i)}else{if(!a){a=u.h==="svg"}v=u.p=Tr.createElementNS(a?y:p,u.h);if(a&&u.h==="foreignObject"){a=false}{H(null,u,a)}if(w(i)&&v["s-si"]!==i){v.classList.add(v["s-si"]=i)}if(u.o){for(o=0;o<u.o.length;++o){l=q(r,u,o);if(l){v.appendChild(l)}}}{if(u.h==="svg"){a=false}else if(v.tagName==="foreignObject"){a=true}}}v["s-hn"]=f;return v};var z=function(r,n,e,t,i,a){var u=r;var o;if(u.shadowRoot&&u.tagName===f){u=u.shadowRoot}for(;i<=a;++i){if(t[i]){o=q(null,e,i);if(o){t[i].p=o;u.insertBefore(o,n)}}}};var G=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var f=i.p;J(i);if(f){f.remove()}}}};var I=function(r,n,e,t,i){if(i===void 0){i=false}var f=0;var a=0;var u=0;var o=0;var v=n.length-1;var l=n[0];var c=n[v];var s=t.length-1;var d=t[0];var h=t[s];var y;var p;while(f<=v&&a<=s){if(l==null){l=n[++f]}else if(c==null){c=n[--v]}else if(d==null){d=t[++a]}else if(h==null){h=t[--s]}else if(V(l,d,i)){B(l,d,i);l=n[++f];d=t[++a]}else if(V(c,h,i)){B(c,h,i);c=n[--v];h=t[--s]}else if(V(l,h,i)){B(l,h,i);r.insertBefore(l.p,c.p.nextSibling);l=n[++f];h=t[--s]}else if(V(c,d,i)){B(c,d,i);r.insertBefore(c.p,l.p);c=n[--v];d=t[++a]}else{u=-1;{for(o=f;o<=v;++o){if(n[o]&&n[o].v!==null&&n[o].v===d.v){u=o;break}}}if(u>=0){p=n[u];if(p.h!==d.h){y=q(n&&n[a],e,u)}else{B(p,d,i);n[u]=undefined;y=p.p}d=t[++a]}else{y=q(n&&n[a],e,a);d=t[++a]}if(y){{l.p.parentNode.insertBefore(y,l.p)}}}}if(f>v){z(r,t[s+1]==null?null:t[s+1].p,e,t,a,s)}else if(a>s){G(n,f,v)}};var V=function(r,n,e){if(e===void 0){e=false}if(r.h===n.h){if(!e){return r.v===n.v}return true}return false};var B=function(r,n,e){if(e===void 0){e=false}var t=n.p=r.p;var i=r.o;var f=n.o;var u=n.h;var o=n.i;if(o===null){{a=u==="svg"?true:u==="foreignObject"?false:a}{if(u==="slot");else{H(r,n,a)}}if(i!==null&&f!==null){I(t,i,n,f,e)}else if(f!==null){if(r.i!==null){t.textContent=""}z(t,null,n,f,0,f.length-1)}else if(i!==null){G(i,0,i.length-1)}if(a&&u==="svg"){a=false}}else if(r.i!==o){t.data=o}};var J=function(r){{r.u&&r.u.ref&&r.u.ref(null);r.o&&r.o.map(J)}};var K=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var a=r.j||g(null,null);var u=S(n)?n:_(null,null,n);f=t.tagName;if(e&&u.u){for(var o=0,v=Object.keys(u.u);o<v.length;o++){var l=v[o];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){u.u[l]=t[l]}}}u.h=null;u.l|=4;r.j=u;u.p=a.p=t.shadowRoot||t;{i=t["s-sc"]}B(a,u,e)};var Q=function(r,n){if(n&&!r.O&&n["s-p"]){n["s-p"].push(new Promise((function(n){return r.O=n})))}};var X=function(r,n){{r.l|=16}if(r.l&4){r.l|=512;return}Q(r,r.k);var e=function(){return Y(r,n)};return Gr(e)};var Y=function(r,n){var e=l("scheduleUpdate",r.$.S);var t=r.A;var i;if(n){{r.l|=256;if(r.C){r.C.map((function(r){var n=r[0],e=r[1];return ur(t,n,e)}));r.C=undefined}}{i=ur(t,"componentWillLoad")}}e();return Z(i,(function(){return nr(r,t,n)}))};var Z=function(r,n){return rr(r)?r.then(n):n()};var rr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var nr=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,f,a,u,o,v;return __generator(this,(function(c){i=r.$hostElement$;f=l("update",r.$.S);a=i["s-rc"];if(t){T(r)}u=l("render",r.$.S);{er(r,n,i,t)}if(a){a.map((function(r){return r()}));i["s-rc"]=undefined}u();f();{o=(e=i["s-p"])!==null&&e!==void 0?e:[];v=function(){return ir(r)};if(o.length===0){v()}else{Promise.all(o).then(v);r.l|=4;o.length=0}}return[2]}))}))};var er=function(r,n,e,t){try{u=n;n=n.render();{r.l&=~16}{r.l|=2}{{{K(r,n,t)}}}}catch(n){Cr(n,r.$hostElement$)}u=null;return null};var tr=r("g",(function(){return u}));var ir=function(r){var n=r.$.S;var e=r.$hostElement$;var t=l("postUpdate",n);var i=r.A;var f=r.k;{ur(i,"componentDidRender")}if(!(r.l&64)){r.l|=64;{or(e)}{ur(i,"componentDidLoad")}t();{r.M(e);if(!f){ar()}}}else{t()}{r.P(e)}{if(r.O){r.O();r.O=undefined}if(r.l&512){zr((function(){return X(r,false)}))}r.l&=~(4|512)}};var fr=r("f",(function(r){{var n=Or(r);var e=n.$hostElement$.isConnected;if(e&&(n.l&(2|16))===2){X(n,false)}return e}}));var ar=function(r){{or(Tr.documentElement)}zr((function(){return M(Lr,"appload",{detail:{namespace:t}})}))};var ur=function(r,n,e){if(r&&r[n]){try{return r[n](e)}catch(r){Cr(r)}}return undefined};var or=function(r){return r.classList.add("hydrated")};var vr=function(r,n){return Or(r).L.get(n)};var lr=function(r,n,e,t){var i=Or(r);var f=i.$hostElement$;var a=i.L.get(n);var u=i.l;var o=i.A;e=A(e,t.T[n][0]);var v=Number.isNaN(a)&&Number.isNaN(e);var l=e!==a&&!v;if((!(u&8)||a===undefined)&&l){i.L.set(n,e);if(o){if(t.U&&u&128){var c=t.U[n];if(c){c.map((function(r){try{o[r](e,a,n)}catch(r){Cr(r,f)}}))}}if((u&(2|16))===2){X(i,false)}}}};var cr=function(r,n,e){var t;var i=r.prototype;if(n.T){if(r.watchers){n.U=r.watchers}var f=Object.entries(n.T);f.map((function(r){var t=r[0],f=r[1][0];if(f&31||e&2&&f&32){Object.defineProperty(i,t,{get:function(){return vr(this,t)},set:function(r){lr(this,t,r,n)},configurable:true,enumerable:true})}else if(e&1&&f&64){Object.defineProperty(i,t,{value:function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var e;var i=Or(this);return(e=i===null||i===void 0?void 0:i.R)===null||e===void 0?void 0:e.then((function(){var n;return(n=i.A)===null||n===void 0?void 0:n[t].apply(n,r)}))}})}}));if(e&1){var a=new Map;i.attributeChangedCallback=function(r,e,t){var f=this;Ur.jmp((function(){var u;var o=a.get(r);if(f.hasOwnProperty(o)){t=f[o];delete f[o]}else if(i.hasOwnProperty(o)&&typeof f[o]==="number"&&f[o]==t){return}else if(o==null){var v=Or(f);var l=v===null||v===void 0?void 0:v.l;if(l&&!(l&8)&&l&128&&t!==e){var c=v.A;var s=(u=n.U)===null||u===void 0?void 0:u[r];s===null||s===void 0?void 0:s.forEach((function(n){if(c[n]!=null){c[n].call(c,t,e,r)}}))}return}f[o]=t===null&&typeof f[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.U)!==null&&t!==void 0?t:{}),true),f.filter((function(r){var n=r[0],e=r[1];return e[0]&15})).map((function(r){var n=r[0],e=r[1];var t=e[1]||n;a.set(t,n);return t})),true)))}}return r};var sr=function(r,n,t,i){return __awaiter(e,void 0,void 0,(function(){var r,e,i,f,a,u,o,v;return __generator(this,(function(s){switch(s.label){case 0:if(!((n.l&32)===0))return[3,3];n.l|=32;r=Er(t);if(!r.then)return[3,2];e=c();return[4,r];case 1:r=s.sent();e();s.label=2;case 2:if(!r.isProxied){{t.U=r.watchers}cr(r,t,2);r.isProxied=true}i=l("createInstance",t.S);{n.l|=8}try{new r(n)}catch(r){Cr(r)}{n.l&=~8}{n.l|=128}i();if(r.style){f=r.style;a=U(t);if(!Pr.has(a)){u=l("registerStyles",t.S);P(a,f,!!(t.l&1));u()}}s.label=3;case 3:o=n.k;v=function(){return X(n,true)};if(o&&o["s-rc"]){o["s-rc"].push(v)}else{v()}return[2]}}))}))};var dr=function(r){};var hr=function(r){if((Ur.l&1)===0){var n=Or(r);var e=n.$;var t=l("connectedCallback",e.S);if(!(n.l&1)){n.l|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){Q(n,n.k=i);break}}}if(e.T){Object.entries(e.T).map((function(n){var e=n[0],t=n[1][0];if(t&31&&r.hasOwnProperty(e)){var i=r[e];delete r[e];r[e]=i}}))}{sr(r,n,e)}}else{mr(r,n,e.F);if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.N){n.N.then((function(){return dr()}))}}t()}};var yr=function(r){{ur(r,"disconnectedCallback")}};var pr=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((Ur.l&1)===0){n=Or(r);{if(n.W){n.W.map((function(r){return r()}));n.W=undefined}}if(n===null||n===void 0?void 0:n.A){yr(n.A)}else if(n===null||n===void 0?void 0:n.N){n.N.then((function(){return yr(n.A)}))}}return[2]}))}))};var wr=r("b",(function(r,n){if(n===void 0){n={}}var e;var t=l();var i=[];var f=n.exclude||[];var a=Lr.customElements;var u=Tr.head;var o=u.querySelector("meta[charset]");var v=Tr.createElement("style");var c=[];var h;var y=true;Object.assign(Ur,n);Ur.t=new URL(n.resourcesUrl||"./",Tr.baseURI).href;var p=false;r.map((function(r){r[1].map((function(n){var e;var t={l:n[0],S:n[1],T:n[2],F:n[3]};if(t.l&4){p=true}{t.T=n[2]}{t.F=n[3]}{t.U=(e=n[4])!==null&&e!==void 0?e:{}}var u=t.S;var o=function(r){__extends(n,r);function n(n){var e=r.call(this,n)||this;n=e;Ar(n,t);if(t.l&1){{{n.attachShadow({mode:"open"})}}}return e}n.prototype.connectedCallback=function(){var r=this;if(h){clearTimeout(h);h=null}if(y){c.push(this)}else{Ur.jmp((function(){return hr(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;Ur.jmp((function(){return pr(r)}))};n.prototype.componentOnReady=function(){return Or(this).N};return n}(HTMLElement);t.D=r[0];if(!f.includes(u)&&!a.get(u)){i.push(u);a.define(u,cr(o,t,1))}}))}));if(p){v.innerHTML+=d}{v.innerHTML+=i+s}if(v.innerHTML.length){v.setAttribute("data-styles","");var w=(e=Ur._)!==null&&e!==void 0?e:m(Tr);if(w!=null){v.setAttribute("nonce",w)}u.insertBefore(v,o?o.nextSibling:u.firstChild)}y=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{Ur.jmp((function(){return h=setTimeout(ar,30)}))}}t()}));var br=r("F",(function(r,n){return n}));var mr=function(r,n,e,t){if(e){e.map((function(e){var t=e[0],i=e[1],f=e[2];var a=gr(r,t);var u=_r(n,f);var o=$r(t);Ur.ael(a,i,u,o);(n.W=n.W||[]).push((function(){return Ur.rel(a,i,u,o)}))}))}};var _r=function(r,n){return function(e){try{{if(r.l&256){r.A[n](e)}else{(r.C=r.C||[]).push([n,e])}}}catch(r){Cr(r)}}};var gr=function(r,n){if(n&4)return Tr;if(n&8)return Lr;if(n&16)return Tr.body;return r};var $r=function(r){return(r&2)!==0};var Sr=r("s",(function(r){return Ur._=r}));var jr=new WeakMap;var Or=function(r){return jr.get(r)};var kr=r("r",(function(r,n){return jr.set(n.A=r,n)}));var Ar=function(r,n){var e={l:0,$hostElement$:r,$:n,L:new Map};{e.R=new Promise((function(r){return e.P=r}))}{e.N=new Promise((function(r){return e.M=r}));r["s-p"]=[];r["s-rc"]=[]}mr(r,e,n.F);return jr.set(r,e)};var xr=function(r,n){return n in r};var Cr=function(r,n){return(0,console.error)(r,n)};var Mr=new Map;var Er=function(r,e,t){var i=r.S.replace(/-/g,"_");var f=r.D;var a=Mr.get(f);if(a){return a[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(f,".entry.js").concat("")).then((function(r){{Mr.set(f,r)}return r[i]}),Cr)};var Pr=new Map;var Lr=typeof window!=="undefined"?window:{};var Tr=Lr.document||{head:{}};var Ur={l:0,t:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var Rr=r("p",(function(r){return Promise.resolve(r)}));var Fr=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var Nr=[];var Wr=[];var Dr=function(r,n){return function(e){r.push(e);if(!o){o=true;if(n&&Ur.l&4){zr(qr)}else{Ur.raf(qr)}}}};var Hr=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){Cr(r)}}r.length=0};var qr=function(){Hr(Nr);{Hr(Wr);if(o=Nr.length>0){Ur.raf(qr)}}};var zr=function(r){return Rr().then(r)};var Gr=Dr(Wr,true)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as a}from"./p-956efa27.js";import{e as o}from"./p-089ba905.js";import{c as r}from"./p-b4b7f705.js";const i=class{constructor(t){s(this,t),this.actions=void 0,this.class=void 0,this.footerActions=void 0,this.footerContent=void 0,this.footerHeight=void 0,this.label=void 0,this.spacing="24px"}render(){return t(a,{style:{"--font-family":o()}},t("div",{class:r(["styled-card",this.class]),style:{padding:this.spacing}},this.label&&t("header",{class:"card-header",style:{padding:this.spacing}},t("zonos-text",{type:"subheader"},this.label),t("h-stack",{spacing:8},this.actions)),t("slot",null),(this.footerActions||this.footerContent)&&t("footer",{class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},t("div",null,this.footerContent),t("h-stack",{spacing:8},this.footerActions))))}};i.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";const e=class{constructor(t){s(this,t),this.spacing=24,this.class=""}render(){return t(a,{style:{"--font-family":o()}},t("div",{class:r(["vstack",this.class]),style:{"grid-row-gap":`${this.spacing}px`}},t("slot",null)))}};e.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";export{i as zonos_card,e as zonos_v_stack}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(
|
|
1
|
+
System.register([],(function(n){"use strict";return{execute:function(){var t=n("c",(function(n){return n.filter(Boolean).join(" ")}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-b85be1ab.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.z}],execute:function(){var n=t("g",(function(t){if(t){return t==="SHARP"?"0px":"10px"}return e.appearance.style==="SHARP"?"0px":"10px"}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-18904b7c.system.js"],(function(e,o){"use strict";var t,i;return{setters:[function(o){t=o.p;i=o.b;e("setNonce",o.s)}],execute:function(){var e=function(){var e=o.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){return i([["p-f367f2fe.system",[[1,"zonos-text",{class:[1],color:[1],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-f141519c.system",[[2,"zonos-checkout",{appearanceSettingsOverride:[16],preview:[4],mobile:[4],defaultAddress:[16],forceDialogOpen:[4,"force-dialog-open"],open:[32],stripe:[32],submitLoading:[32],paymentError:[32],collapseReviewMobile:[32],isAttachError:[32],isMobile:[32],zonosReviewRef:[32],storybookPaymentStatusOverride:[32],closeDialogHandler:[64],init:[64],setToFinishStep:[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}]]],["p-3cea383b.system",[[1,"zonos-hello",{mobileLocationOverride:[1,"mobile-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],displayCurrency:[64],convertAndFormat:[64],convert:[64],format:[64]},[[9,"resize","handleResize"]]]]],["p-2a307c55.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],setupGoogleFont:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64],getAppearanceSetting:[64]}]]],["p-67154df2.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-8c5595d9.system",[[1,"zonos-country-select",{closeCountrySelect:[16],inputValue:[32]}],[1,"zonos-hello-dialog-footer",{appearanceSettings:[16],setShowCountrySelect:[16]}],[1,"zonos-custom-message",{icon:[1],message:[1]}],[1,"zonos-country-flag",{class:[1],countryCode:[1,"country-code"],size:[2]}]]],["p-b4601210.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]},[[4,"click","globalClickHandler"]],{isOpen:["isOpenHandler"]}]]],["p-d856a200.system",[[1,"zonos-notification",{class:[1],notificationArray:[32],showNotification:[64]}]]],["p-2f43da39.system",[[1,"zonos-badge",{bold:[4],color:[1],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4],class:[1]}]]],["p-4a15c5c7.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-e98be2d0.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-4bee0bff.system",[[2,"zonos-address",{type:[1],titleText:[1,"title-text"],defaultAddress:[16],stripe:[32]},null,{stripe:["watchInitStripe"]}],[2,"zonos-link-authentication",{titleText:[1,"title-text"],stripe:[32]},null,{stripe:["watchInitStripe"]}]]],["p-c9348bb0.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],class:[1],hasContent:[32]}]]],["p-560aa686.system",[[1,"zonos-card",{actions:[16],class:[1],footerActions:[16],footerContent:[16],footerHeight:[2,"footer-height"],label:[16],spacing:[1]}],[1,"zonos-v-stack",{spacing:[2],class:[1]}]]],["p-e5ae22a9.system",[[1,"zonos-icon",{autoHeight:[4,"auto-height"],color:[1],content:[1],size:[2]}]]],["p-47390db7.system",[[1,"zonos-button",{class:[1],color:[1],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"],noPaddingLeft:[4,"no-padding-left"],noPaddingRight:[4,"no-padding-right"],loading:[4],theme:[1],hasIcon:[32],hasContent:[32]},[[2,"click","clickHandler"]],{icon:["iconChangeHandler"]}],[1,"zonos-spinner",{size:[2],color:[1]}]]],["p-06fb9d1f.system",[[2,"zonos-checkout-payment",{paymentError:[4,"payment-error"],submitBtnType:[1,"submit-btn-type"],continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-customer-info",{continueLoading:[4,"continue-loading"],submitBtnType:[1,"submit-btn-type"],submitBtnColor:[1,"submit-btn-color"],defaultAddress:[16],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-shipping",{continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],submitBtnType:[1,"submit-btn-type"],selectedShippingMethod:[32],disabled:[32]},null,{disabled:["watchFormComplete"]}],[1,"zonos-checkout-finish",{borderRadius:[1,"border-radius"],storybookForceStatus:[1,"storybook-force-status"],overrideNotification:[16],isLoading:[32],notificationType:[32],notificationTitle:[32],notificationMessages:[32],order:[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{open:[4],headerText:[1,"header-text"],width:[1],height:[1],noHeader:[4,"no-header"],noBodyPadding:[4,"no-body-padding"],noBorder:[4,"no-border"],footerRightAction:[16],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"]]],[1,"zonos-review",{mobile:[4],collapsed:[4],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{errorImages:[32]}],[1,"zonos-collapse",{collapsed:[4],collapseSize:[2,"collapse-size"],height:[32]}],[1,"zonos-logo",{theme:[1],width:[1],class:[1]}]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,d as o,H as h}from"./p-956efa27.js";import{e as i}from"./p-089ba905.js";const a=class{constructor(s){t(this,s),this.autoHeight=!1,this.color="gray-1200",this.content=void 0,this.size=24}render(){return this.content&&this.el.shadowRoot?(this.el.shadowRoot.innerHTML=this.content,s(h,{class:"zonos--elements",style:{"--color":`var(--amino-${this.color})`,"--font-family":i(),"--height":this.autoHeight?"auto":`${this.size}px`,"--width":`${this.size}px`}})):null}get el(){return o(this)}};a.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";export{a as zonos_icon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,i){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function u(t){try{a(i["throw"](t))}catch(t){r(t)}}function a(t){t.done?e(t.value):o(t.value).then(s,u)}a((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(n){return a([t,n])}}function a(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(e=0)),e)try{if(i=1,o&&(r=u[0]&2?o["return"]:u[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;if(o=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=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(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){e.label=u[1];break}if(u[0]===6&&e.label<r[1]){e.label=r[1];r=u;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(u);break}if(r[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];o=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-18904b7c.system.js","./p-d2217f09.system.js","./p-b51de536.system.js","./p-b85be1ab.system.js","./p-da060b1c.system.js","./p-24eed2a8.system.js"],(function(t){"use strict";var n,e,i,o,r,s,u,a,c,f,d,l,h,v;return{setters:[function(t){n=t.r;e=t.c;i=t.h;o=t.H},function(t){r=t.s},function(t){s=t.h;u=t.b;a=t.i;c=t.l;f=t.c;d=t.d},function(t){l=t.z;h=t.d;v=t.e},function(){},function(){}],execute:function(){var m=this;var _=function(){return __awaiter(m,void 0,void 0,(function(){var t,n,e,i;return __generator(this,(function(o){switch(o.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-elements/zonos-settings");return[4,s(t)];case 1:n=o.sent(),e=n.errors,i=n.json;if(e.length){u("Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings");return[2,{errors:e,json:null}]}return[2,{errors:[],json:i}]}}))}))};var w=function(){var t=document.querySelector("zonos-checkout");if(!t){var n=document.createElement("zonos-checkout");document.body.appendChild(n)}};var b=function(t){if(!t.placeOrderButtonSelector){return}if(!a(t.placeOrderButtonSelector)){u('Selector checkoutButtonAnchor "'.concat(t.placeOrderButtonSelector,'" is not a valid selector'));return}w()};var y=function(t){var n=document.querySelector("zonos-hello");if(!n&&t){var e=document.createElement("zonos-hello");t.appendChild(e)}};var g=function(t){return __awaiter(m,void 0,void 0,(function(){var n,e;return __generator(this,(function(i){n=t.anchorElementSelector;if(!n||!a(n)){u('Selector anchorElementSelector "'.concat(t.anchorElementSelector,'" is not a valid selector.'));return[2]}e=document.querySelector(n);c("Hello init complete");y(e);return[2]}))}))};var p=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{visibility:hidden;opacity:0;height:0}";var z=t("zonos_controller",function(){function t(t){n(this,t);this.stripeInitEvent=e(this,"stripeInitEvent",7);this.disablePlaceOrderButtons=function(t){var n=t.disable;var e=l.checkoutSettings.placeOrderButtonSelector;if(!e){return}var i=function(t){var n=t.target;if(n.getAttribute("disabled")){t.preventDefault();t.stopPropagation()}};var o=document.querySelectorAll(e);o.forEach((function(t){if(n){t.setAttribute("disabled","true");t.addEventListener("click",i)}else{t.removeAttribute("disabled");t.removeEventListener("click",i)}}));if(n){setTimeout((function(){o.forEach((function(t){t.removeAttribute("disabled");t.removeEventListener("click",i)}))}),5e3)}};this.config=undefined;this.zonosApiKey=undefined}t.prototype.initCheckoutElement=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(!t){c("Stripe is not loaded yet - cannot init checkout element","warn");return[2]}r.stripe=t;void b(l.checkoutSettings);c("init checkout element");this.disablePlaceOrderButtons({disable:false});return[2]}))}))};t.prototype.initZonosNotification=function(){var t=document.querySelector("zonos-notification");if(t){return}var n=document.createElement("zonos-notification");document.body.appendChild(n)};t.prototype.setupGoogleFont=function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,o,r,u,a,f;return __generator(this,(function(d){switch(d.label){case 0:i=t||v();if(i==="Inter"){if(!t){return[2]}c("[FONT] Just applied Inter , but no need to inject since we already inject Inter on start","warn");l.appearance=Object.assign(Object.assign({},l.appearance),{fontFamily:t})}o="https://v1.route.js.zonos.com";return[4,s("".concat(o,"/api/zonos-elements/get-font-detail?family=").concat(i))];case 1:r=d.sent(),u=r.errors,a=r.json;if(u.length>0||!a){c("Failed to load font ".concat(i),"warn");return[2]}f=a.fontUrl;(e=(n=window.Zonos).injectSupportGoogleFont)===null||e===void 0?void 0:e.call(n,f);if(!t){return[2]}c("[FONT] ".concat(t," font override applied"));l.appearance=Object.assign(Object.assign({},l.appearance),{fontFamily:t});return[2]}}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){l.zonosApiKey=this.zonosApiKey;(function(){return __awaiter(t,void 0,void 0,(function(){var t,n,e,i,o,r;return __generator(this,(function(s){switch(s.label){case 0:return[4,_()];case 1:e=s.sent(),i=e.errors,o=e.json;if(((t=i[0])===null||t===void 0?void 0:t.type.toString())==="403"){c("Failed to load zonos settings. This domain may not have access","warn");return[2]}this.disablePlaceOrderButtons({disable:true});this.initZonosNotification();h({overrideSettings:this.config,zonosSettings:o});void this.setupGoogleFont();if(l.helloSettings){void g(l.helloSettings)}return[4,f()];case 2:s.sent();r=((n=o===null||o===void 0?void 0:o.checkoutSettings)===null||n===void 0?void 0:n.externalServiceTokens.find((function(t){return t.type==="STRIPE_PUBLISHABLE_TOKEN"})))||null;if(!r||!this.stripeInitEvent){c("Checkout failed to load -- missing publishable key","warn");return[2]}if(l.checkoutSettings.subscriptionStatus==="INACTIVE"){c('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn");c("zonos controller loaded");return[2]}if(l.checkoutSettings.visibilityStatus==="DISABLED"){c("=== Checkout is disabled by store owner ===","warn");c("zonos controller loaded");return[2]}this.stripeInitEvent.emit({publishableKey:r.token});c("zonos controller loaded");return[2]}}))}))})();return[2]}))}))};t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){n=document.querySelector("zonos-notification");if(!n){c("Failed to show notification - zonos-notification not found","warn");return[2]}void n.showNotification(t);return[2]}))}))};t.prototype.overrideConfig=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){h({overrideSettings:t,zonosSettings:null});return[2]}))}))};t.prototype.overrideCountry=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){void d(t);return[2]}))}))};t.prototype.getAppearanceSetting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,l.appearance]}))}))};t.prototype.render=function(){return i(o,{class:"zonos--elements"})};return t}());z.style=p}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-18904b7c.system.js","./p-b85be1ab.system.js","./p-23e7c655.system.js"],(function(o){"use strict";var r,a,n,t,e;return{setters:[function(o){r=o.r;a=o.h;n=o.H},function(o){t=o.e},function(o){e=o.c}],execute:function(){var s=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";var i=o("zonos_badge",function(){function o(o){r(this,o);this.bold=false;this.color="gray";this.icon=undefined;this.iconRight=false;this.size="default";this.rounded=false;this.class=""}o.prototype.render=function(){return a(n,{class:e(["zonos--elements zonos--badge",this.class]),style:{"--font-family":t()}},a("div",{class:e(["zonos--badge-content",this.color,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,a("zonos-text",null,a("slot",null))))};return o}());i.style=s}}}));
|