@zonos/elements 1.2.3 → 1.2.4-alpha.2
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/dist/cjs/cart-4ddc2af5.js +616 -0
- package/dist/cjs/getBorderRadius-a97a5f75.js +18 -0
- package/dist/cjs/getHasMoreSpaceOnRight-4c94667f.js +10 -0
- package/dist/cjs/{index-9542d2e7.js → index-20cb112f.js} +127 -26
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/isColorVariable-41cacd82.js +16 -0
- package/dist/cjs/{isDarkColor-f3446afd.js → isDarkColor-261fcf3d.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/localization-11360fed.js +3629 -0
- package/dist/cjs/submitGtag-bb093547.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 +422 -419
- package/dist/cjs/zonos-checkout.cjs.entry.js +356 -356
- package/dist/cjs/zonos-component.cjs.entry.js +15 -15
- package/dist/cjs/zonos-controller.cjs.entry.js +231 -193
- 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-a0fa5b77.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 +4 -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 +4 -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 +4 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +164 -164
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +4 -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 +4 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +559 -559
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +4 -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 +4 -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 +4 -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 +4 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +189 -186
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +4 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +140 -128
- package/dist/collection/components/common/zonos-button/zonos-button.css +5 -5
- package/dist/collection/components/common/zonos-button/zonos-button.js +407 -406
- package/dist/collection/components/common/zonos-card/zonos-card.css +4 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js +165 -162
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.css +4 -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 +4 -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 +4 -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 +4 -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 +4 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +373 -371
- package/dist/collection/components/common/zonos-icon/zonos-icon.css +4 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +123 -121
- package/dist/collection/components/common/zonos-logo/zonos-logo.css +4 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +92 -90
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +4 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +128 -125
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +4 -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 +4 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +71 -71
- package/dist/collection/components/common/zonos-text/zonos-text.css +4 -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 +4 -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 +4 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +81 -81
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +4 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +447 -446
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +4 -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 +4 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +272 -272
- package/dist/collection/components/main/zonos-controller.css +4 -1
- package/dist/collection/components/main/zonos-controller.js +400 -319
- package/dist/collection/components/store/checkout/cart.js +162 -162
- package/dist/collection/components/store/checkout/stripe.js +264 -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 +4 -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 +4 -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 +4 -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 +11 -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/getZonosSetting.js +7 -7
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +26 -26
- 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 +89 -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 +22 -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 +279 -254
- 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 +1424 -1424
- package/dist/collection/types/generated/graphql.frontend.types.js +376 -376
- 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 +497 -497
- 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 +3448 -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 +101 -101
- 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 +498 -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 +259 -219
- 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-cd87f476.js +598 -0
- package/dist/esm/getBorderRadius-35e8acce.js +16 -0
- package/dist/esm/getHasMoreSpaceOnRight-70eb913a.js +8 -0
- package/dist/esm/{index-d1aa9293.js → index-3617e24c.js} +127 -26
- package/dist/esm/index.js +6 -6
- package/dist/esm/isColorVariable-91c33804.js +14 -0
- package/dist/esm/{isDarkColor-6fbb9b14.js → isDarkColor-44e9e451.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-f573428e.js +3614 -0
- package/dist/esm/submitGtag-75af52be.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 +422 -419
- package/dist/esm/zonos-checkout.entry.js +356 -356
- package/dist/esm/zonos-component.entry.js +15 -15
- package/dist/esm/zonos-controller.entry.js +231 -193
- 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-e0b7a5cf.js} +102 -98
- package/dist/esm-es5/{cart-17650017.js → cart-cd87f476.js} +1 -1
- package/dist/esm-es5/getBorderRadius-35e8acce.js +1 -0
- package/dist/esm-es5/getHasMoreSpaceOnRight-70eb913a.js +1 -0
- package/dist/esm-es5/index-3617e24c.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-6fbb9b14.js → isDarkColor-44e9e451.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-f573428e.js +1 -0
- package/dist/esm-es5/{submitGtag-a901ece5.js → submitGtag-75af52be.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-e0b7a5cf.js +1 -0
- package/dist/scripts/extractZonosQaUrl.js +30 -0
- package/dist/scripts/loadZonos.js +99 -48
- package/dist/scripts/zonos.js +99 -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 +28 -28
- 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 +43 -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/getZonosSetting.d.ts +4 -4
- package/dist/types/components/utils/changeDeepProperty.d.ts +3 -3
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +4 -4
- 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 +50 -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 +52 -52
- package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +16 -16
- package/dist/types/types/generated/graphql.customer.types.d.ts +1968 -1968
- package/dist/types/types/generated/graphql.frontend.types.d.ts +449 -449
- 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/index.esm.js +1 -1
- package/dist/zonos-elements/p-0175125e.system.js +1 -0
- package/dist/zonos-elements/p-03923a86.system.entry.js +1 -0
- package/dist/zonos-elements/p-08298e74.entry.js +1 -0
- package/dist/zonos-elements/p-1bddc7ca.system.entry.js +1 -0
- package/dist/zonos-elements/{p-770c959e.js → p-1f8b684a.js} +1 -1
- package/dist/zonos-elements/p-2228b050.entry.js +1 -0
- package/dist/zonos-elements/p-23e7c655.system.js +1 -1
- package/dist/zonos-elements/p-2466df77.entry.js +1 -0
- package/dist/zonos-elements/p-29b993c2.system.entry.js +1 -0
- package/dist/zonos-elements/p-2a32dc0a.system.entry.js +1 -0
- package/dist/zonos-elements/p-2a666084.entry.js +1 -0
- package/dist/zonos-elements/p-2f1e9192.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f7875c40.js → p-39a5e8e0.js} +1 -1
- package/dist/zonos-elements/p-44ddebe4.system.entry.js +1 -0
- package/dist/zonos-elements/p-4e8b5d86.system.entry.js +1 -0
- package/dist/zonos-elements/p-534dcbd4.system.js +1 -0
- package/dist/zonos-elements/p-5a41b5fd.entry.js +1 -0
- package/dist/zonos-elements/p-5d0eceaa.entry.js +1 -0
- package/dist/zonos-elements/{p-a1fa50fb.entry.js → p-62ccb686.entry.js} +1 -1
- package/dist/zonos-elements/p-643eeb24.system.js +1 -0
- package/dist/zonos-elements/p-660a588b.entry.js +1 -0
- package/dist/zonos-elements/p-6affe5cc.entry.js +1 -0
- package/dist/zonos-elements/p-72ea628d.system.js +1 -0
- package/dist/zonos-elements/{p-85ab35c9.system.js → p-754bdfdb.system.js} +1 -1
- package/dist/zonos-elements/{p-164fae93.system.js → p-779621e4.system.js} +1 -1
- package/dist/zonos-elements/{p-08695f4e.js → p-77a7929b.js} +1 -1
- package/dist/zonos-elements/p-7a15d841.entry.js +1 -0
- package/dist/zonos-elements/p-7a81ccb5.system.entry.js +1 -0
- package/dist/zonos-elements/p-80ba24a8.system.js +1 -0
- package/dist/zonos-elements/p-83d100b8.entry.js +1 -0
- package/dist/zonos-elements/{p-bf070bf6.js → p-8bbad467.js} +1 -1
- package/dist/zonos-elements/p-8ebc3ca5.system.entry.js +1 -0
- package/dist/zonos-elements/p-9c78d0ca.entry.js +1 -0
- package/dist/zonos-elements/p-9ef86de7.entry.js +1 -0
- package/dist/zonos-elements/p-ab46cee9.system.entry.js +1 -0
- package/dist/zonos-elements/p-b0268bc5.entry.js +1 -0
- package/dist/zonos-elements/p-b4db1620.entry.js +1 -0
- package/dist/zonos-elements/p-bc7bf53e.system.js +1 -0
- package/dist/zonos-elements/p-bec05c21.system.js +2 -0
- package/dist/zonos-elements/p-bec21999.system.js +1 -0
- package/dist/zonos-elements/{p-8378d94e.js → p-c299049e.js} +1 -1
- package/dist/zonos-elements/p-cd4f8e13.system.entry.js +1 -0
- package/dist/zonos-elements/p-ceb2cd7b.system.entry.js +1 -0
- package/dist/zonos-elements/p-cf4545ed.system.entry.js +1 -0
- package/dist/zonos-elements/p-cf8aaa17.js +2 -0
- package/dist/zonos-elements/p-dc9b318c.system.entry.js +1 -0
- package/dist/zonos-elements/p-dcf64928.system.entry.js +1 -0
- package/dist/zonos-elements/p-e1de2a1f.js +1 -0
- package/dist/zonos-elements/{p-3f3fbcea.entry.js → p-e694312d.entry.js} +1 -1
- package/dist/zonos-elements/p-ec26fe57.entry.js +1 -0
- package/dist/zonos-elements/p-edbea8df.system.js +1 -0
- package/dist/zonos-elements/p-f8198015.system.entry.js +1 -0
- package/dist/zonos-elements/p-fcd4fc66.system.entry.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 +55 -54
- 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/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/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/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-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-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 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,i){function c(o){try{a(n.next(o))}catch(o){i(o)}}function r(o){try{a(n["throw"](o))}catch(o){i(o)}}function a(o){o.done?t(o.value):s(o.value).then(c,r)}a((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,c;return c={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function r(o){return function(e){return a([o,e])}}function a(r){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,r[0]&&(t=0)),t)try{if(n=1,s&&(i=r[0]&2?s["return"]:r[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;if(s=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++;s=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=e.call(o,t)}catch(o){r=[6,o];s=0}finally{n=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-68d06767.system.js","./p-f6add79c.system.js","./p-164fae93.system.js","./p-6dcd752e.system.js","./p-8aabbb9b.system.js","./p-23e7c655.system.js","./p-8c867835.system.js","./p-85ab35c9.system.js"],(function(o){"use strict";var e,t,n,s,i,c,r,a,u,l,h,d,p,f,m,z,v,k,g,b,y,w,x,C,_,S;return{setters:[function(o){e=o.r;t=o.h;n=o.F;s=o.H},function(o){i=o.k;c=o.c;r=o.h;a=o.g;u=o.s;l=o.l;h=o.j;d=o.m;p=o.d;f=o.n;m=o.o;z=o.e},function(o){v=o.a;k=o.l;g=o.t},function(o){b=o.z;y=o.m},function(o){w=o.s;x=o.i},function(o){C=o.c},function(o){_=o.g},function(o){S=o.i}],execute:function(){var M='<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="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var L='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var O='<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>';var B=".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-24);top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";var P=o("zonos_checkout",function(){function o(o){var t=this;e(this,o);this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,t,n;return __generator(this,(function(s){switch(s.label){case 0:n=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||b.appearance.theme;return[4,i({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideTheme:this.isMobile?n:undefined})];case 1:s.sent();return[2]}}))}))};this.isShippableCountry=function(o){if(o===void 0){o=true}if(!v.localizationLoaded){return false}if(!v.isShippableCountry){if(o){k("Checkout: not shippable country")}return false}return true};this.getCurrentLocalePageEnum=function(){switch(c.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=false;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void r(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){w("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&c.step==="finish"){a()}c.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:if(!b.checkoutSettings.buildCartDetail)return[3,3];k("build cart detail");return[4,b.checkoutSettings.buildCartDetail()];case 1:o=t.sent();return[4,r(o)];case 2:t.sent();t.label=3;case 3:if(!!u.clientSecret)return[3,5];return[4,l()];case 4:e=t.sent();k("stripeStoreInitCheckoutSession: ".concat(e));if(!e){return[2,false]}t.label=5;case 5:return[4,this.applyStripeTheme()];case 6:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;var e=b.checkoutSettings.placeOrderButtonSelector;if(!e){return}var t=document.querySelectorAll(e);t.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(t){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.isShippableCountry()){return[2]}e.preventDefault();e.stopPropagation();k("zonos checkout button clicked");u.isFetchingSession=true;this.open=true;n.label=1;case 1:n.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=n.sent();if(!o){throw new Error("Error building cart")}w("zonos-checkout-start");return[3,4];case 3:t=n.sent();u.isFetchingSession=false;h({messages:[g("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:g("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.setAttribute("data-zonos-checkout-attached","true")}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var t=this;return __generator(this,(function(n){u.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var n=t.isShippableCountry(false);var s=document.querySelectorAll(e);if(!n){s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=t||"initial"}));return}s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.style.display;e.setAttribute("data-zonos-checkout-original-display",t);e.style.display="none"}))}),100);e=setInterval((function(){u.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){k("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}k("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else{t.attachCheckout();setInterval((function(){t.attachCheckout()}),50)}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){c.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,d()];case 1:t.sent();o=setInterval((function(){if(c.landedCostData||!u.isFetchingLandedCost){if(c.landedCostData){p()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){p();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,f()];case 2:e.sent();p();return[3,4];case 3:o=e.sent();console.error(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:m();if(!this.preview)return[3,2];c.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:a();o=window.location.href;e=o.split("?")[0];window.history.replaceState({},document.title,e);this.open=false;return[2]}}))}))};o.prototype.handleBackClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(c.step==="customer-info"))return[3,2];return[4,this.closeDialogHandler()];case 1:o.sent();return[2];case 2:z();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=x(this.mobile);void this.applyStripeTheme();k("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=x(this.mobile);void this.applyStripeTheme();k("mobile: ".concat(this.isMobile))};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=x(this.mobile);k("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){m();a()};o.prototype.render=function(){var o=this;var e;var i=c.step!=="finish"&&c.step!=="error"&&!u.stripeElements||u.isFetchingSession;var r=y(b.appearance,this.appearanceSettingsOverride),a=r.colorPrimary,l=r.colorSecondary,h=r.logoUrl,d=r.style;var p=b.appearance.zonosAttribution==="ENABLED";var f=b.appearance.theme;var m=a&&S(a)?"DARK":"LIGHT";var z=this.isMobile?f:m;var k=!this.isMobile?l:undefined;var w=v.customMessages;var x=((e=w.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message)||"Know about duties and taxes before you buy. Shop with confidence!";var B=this.getCurrentLocalePageEnum();var P=w.filter((function(o){return o.pageName===B}));var E=function(){return t("div",{class:"zonos--logo"},h&&t("img",{alt:"".concat(b.organizationName," logo"),src:h,width:100}))};var H=function(){return t("zonos-v-stack",null,E(),P.map((function(o){return t("zonos-custom-message",{icon:L,message:o.message})})),t("div",null,t("zonos-button",{class:"zonos--back-button",icon:t("zonos-icon",{content:M}),noBackground:true,noPaddingLeft:true,noPaddingRight:true,onClick:function(){return o.handleBackClick()},theme:z},g("Back"))))};var j=function(){return p&&t("div",{class:"zonos--footer","data-theme":f},t("zonos-text",{type:"hintText"},g("Powered by")),t("zonos-logo",{theme:f,width:"100px"}))};var D=function(){var e;var s=o.isMobile?"primary":undefined;var i=(e=o.zonosReviewRef)===null||e===void 0?void 0:e.scrollHeight;return t("div",{class:"zonos--content",style:{"--border-radius":_(d)}},c.step!=="finish"&&c.step!=="error"&&t(n,null,t("div",{class:"zonos--left","data-theme":z,style:{"--primary-color":!o.isMobile?a:""}},!o.isMobile&&H(),c.step==="customer-info"&&t("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:k,submitBtnType:s}),c.step==="shipping"&&t("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:k,submitBtnType:s}),c.step==="payment"&&t("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:k,submitBtnType:s})),t("div",{class:"zonos--right","data-theme":f},o.isMobile&&H(),!o.isMobile&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:O}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),t("div",{class:"flex--wrapper"},t("div",{class:"zonos--wrapper"},t("zonos-collapse",{collapseSize:i,collapsed:o.collapseReviewMobile&&o.isMobile},t("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile},ref:function(e){return o.zonosReviewRef=e}}),t("zonos-cart-items",null))),t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:L,message:x}))),!o.isMobile&&j()),o.isMobile&&j()),(c.step==="finish"||c.step==="error")&&t("div",{class:"zonos--done","data-theme":f},t("div",{class:"zonos--header"},E(),t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:O}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:f})),t("zonos-checkout-finish",{borderRadius:d,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:c.step==="error"&&!!c.error?Object.assign(Object.assign({},c.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})))};return t(s,{class:C(["zonos--checkout zonos--elements",p&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?D():t("zonos-dialog",{borderStyle:d,"data-theme":f,height:"980px",isLoading:i,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},D()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());P.style=B}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,e,s){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,i){function a(t){try{c(s.next(t))}catch(t){i(t)}}function r(t){try{c(s["throw"](t))}catch(t){i(t)}}function c(t){t.done?e(t.value):o(t.value).then(a,r)}c((s=s.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,o,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(t){return function(n){return c([t,n])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(s=1,o&&(i=r[0]&2?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;if(o=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;o=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){e.label=r[1];break}if(r[0]===6&&e.label<i[1]){e.label=i[1];i=r;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(r);break}if(i[2])e.ops.pop();e.trys.pop();continue}r=n.call(t,e)}catch(t){r=[6,t];o=0}finally{s=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-68d06767.system.js","./p-f6add79c.system.js","./p-164fae93.system.js","./p-6dcd752e.system.js","./p-85ab35c9.system.js","./p-8c867835.system.js"],(function(t){"use strict";var n,e,s,o,i,a,r,c;return{setters:[function(t){n=t.r;e=t.h;s=t.H;o=t.d},function(t){i=t.s;a=t.m},function(t){r=t.b;c=t.a},function(){},function(){},function(){}],execute:function(){var l=".sc-zonos-address-h{font-family:Inter;display:block}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";var d=t("zonos_address",function(){function t(t){n(this,t);this.type=undefined;this.titleText=undefined;this.defaultAddress=null;this.stripe=window.Zonos.stripe}t.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,e,s,o;return __generator(this,(function(l){this.stripe=window.Zonos.stripe;if(!this.stripe||!i.stripeElements){r("Stripe is not initialized. Couldn't load stripe element.");return[2]}e=(t=this.defaultAddress)===null||t===void 0?void 0:t.phone;if(!e){(n=this.defaultAddress)===null||n===void 0?true:delete n.phone}s=c.shippingZoneCountries;o=i.stripeAddressElement||i.stripeElements.create("address",{allowedCountries:s?Object.values(s).map((function(t){return t.code})):[],contacts:this.defaultAddress?[this.defaultAddress]:undefined,defaultValues:{address:{country:c.selectedCountryCode||"AL"}},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});o.mount(this.el.querySelector(".zonos--address-component"));o.on("change",(function(t){var n=t.value;i.stripeAddressEventData=Object.assign(Object.assign({},t),{elementMode:"shipping",elementType:"address",empty:false,value:Object.assign(Object.assign({},n),{firstName:n.firstName||n.name.split(" ")[0],lastName:n.lastName||n.name.split(" ").pop()})});void a()}));i.stripeAddressElement=o;return[2]}))}))};t.prototype.componentDidLoad=function(){void this.watchInitStripe()};t.prototype.render=function(){return e(s,{class:"zonos--address zonos--elements"},e("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{class:"zonos--address-component"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return t}());d.style=l;var u=".sc-zonos-link-authentication-h{font-family:Inter;display:block}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";var h=t("zonos_link_authentication",function(){function t(t){n(this,t);this.titleText=undefined;this.stripe=i.stripe}t.prototype.watchInitStripe=function(){if(!this.stripe||!i.stripeElements){return}var t=i.stripeLinkElement||i.stripeElements.create("linkAuthentication");var n=this.el.querySelector(".zonos--link-authentication-component");if(!n){console.error("Cannot find container element for linkAuthenticationElement");return}t.mount(n);t.on("change",(function(t){i.stripeLinkEventData=t;void a()}));i.stripeLinkElement=t};t.prototype.componentDidLoad=function(){this.watchInitStripe()};t.prototype.render=function(){return e(s,{class:"zonos--link-authentication zonos--elements"},e("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{class:"zonos--link-authentication-component"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return t}());h.style=u}}}));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,n,t=!1,l=null,o=!1;const s=e=>{const n=new URL(e,ue.t);return n.origin!==ce.location.origin?n.href:n.pathname},i={},c=e=>"object"==(e=typeof e)||"function"===e;function r(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,r,d);const f=a(e,null);return f.o=n,r.length>0&&(f.i=r),f.u=o,f},a=(e,n)=>({v:0,h:e,l:n,m:null,i:null,o:null,u:null}),f={},d={forEach:(e,n)=>e.map(v).forEach(n),map:(e,n)=>e.map(v).map(n).map(y)},v=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.p,vtag:e.h,vtext:e.l}),y=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),u(e.vtag,n,...e.vchildren||[])}const n=a(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.p=e.vname,n},h=e=>Z(e).$,m=(e,n,t)=>{const l=h(e);return{emit:e=>p(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},p=(e,n,t)=>{const l=ue.ce(n,t);return e.dispatchEvent(l),l},$=new WeakMap,b=e=>"sc-"+e.g,w=(e,n,t,l,o,s)=>{if(t!==l){let i=te(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=j(t),s=j(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const r=c(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):te(ce,r)?r.slice(2):r[2]+n.slice(3),t&&ue.rel(e,n,t,!1),l&&ue.ael(e,n,l,!1)}},g=/\s/,j=e=>e?e.split(g):[],S=(e,n,t,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,s=e&&e.o||i,c=n.o||i;for(l in s)l in c||w(o,l,s[l],void 0,t,n.v);for(l in c)w(o,l,s[l],c[l],t,n.v)},O=(n,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=re.createTextNode(s.l);else{if(t||(t="svg"===s.h),i=s.m=re.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),t&&"foreignObject"===s.h&&(t=!1),S(null,s,t),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=O(n,s,r),c&&i.appendChild(c);"svg"===s.h?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},k=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=O(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.m;x(n),e&&e.remove()}}},C=(e,n)=>e.h===n.h&&e.u===n.u,P=(e,n)=>{const l=n.m=e.m,o=e.i,s=n.i,i=n.h,c=n.l;null===c?(t="svg"===i||"foreignObject"!==i&&t,"slot"===i||S(e,n,t),null!==o&&null!==s?((e,n,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],v=l.length-1,y=l[0],h=l[v];for(;i<=a&&c<=v;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==y)y=l[++c];else if(null==h)h=l[--v];else if(C(f,y))P(f,y),f=n[++i],y=l[++c];else if(C(d,h))P(d,h),d=n[--a],h=l[--v];else if(C(f,h))P(f,h),e.insertBefore(f.m,d.m.nextSibling),f=n[++i],h=l[--v];else if(C(d,y))P(d,y),e.insertBefore(d.m,f.m),d=n[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===y.u){r=u;break}r>=0?(s=n[r],s.h!==y.h?o=O(n&&n[c],t,r):(P(s,y),n[r]=void 0,o=s.m),y=l[++c]):(o=O(n&&n[c],t,c),y=l[++c]),o&&f.m.parentNode.insertBefore(o,f.m)}i>a?k(e,null==l[v+1]?null:l[v+1].m,t,l,c,v):c>v&&M(n,i,a)})(l,o,n,s):null!==s?(null!==e.l&&(l.textContent=""),k(l,null,n,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),t&&"svg"===i&&(t=!1)):e.l!==c&&(l.data=c)},x=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(x)},L=(e,n)=>{n&&!e.j&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.j=n)))},E=(e,n)=>{if(e.v|=16,!(4&e.v))return L(e,e.S),$e((()=>R(e,n)));e.v|=512},R=(e,n)=>{const t=e.O;let l;return n&&(e.v|=256,e.k&&(e.k.map((([e,n])=>q(t,e,n))),e.k=void 0),l=q(t,"componentWillLoad")),A(l,(()=>N(e,t,n)))},A=(e,n)=>F(e)?e.then(n):n(),F=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,N=async(e,n,t)=>{var l;const o=e.$,s=o["s-rc"];t&&(e=>{const n=e.M,t=e.$,l=n.v,o=((e,n)=>{var t;const l=b(n),o=ie.get(l);if(e=11===e.nodeType?e:re,o)if("string"==typeof o){let n,s=$.get(e=e.head||e);if(s||$.set(e,s=new Set),!s.has(l)){{n=re.createElement("style"),n.innerHTML=o;const l=null!==(t=ue.C)&&void 0!==t?t:r(re);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);T(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>W(e);0===n.length?t():(Promise.all(n).then(t),e.v|=4,n.length=0)}},T=(t,o,s,i)=>{try{l=o,o=o.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$,i=t.P||a(null,null),c=(e=>e&&e.h===f)(l)?l:u(null,null,l);if(n=s.tagName,o&&c.o)for(const e of Object.keys(c.o))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.o[e]=s[e]);c.h=null,c.v|=4,t.P=c,c.m=i.m=s.shadowRoot||s,e=s["s-sc"],P(i,c)})(t,o,i)}catch(e){le(e,t.$)}return l=null,null},U=()=>l,W=e=>{const n=e.$,t=e.O,l=e.S;q(t,"componentDidRender"),64&e.v||(e.v|=64,z(n),q(t,"componentDidLoad"),e.L(n),l||H()),e.R(n),e.j&&(e.j(),e.j=void 0),512&e.v&&pe((()=>E(e,!1))),e.v&=-517},D=e=>{{const n=Z(e),t=n.$.isConnected;return t&&2==(18&n.v)&&E(n,!1),t}},H=()=>{z(re.documentElement),pe((()=>p(ce,"appload",{detail:{namespace:"zonos-elements"}})))},q=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){le(e)}},z=e=>e.classList.add("hydrated"),V=(e,n,t)=>{var l;if(n.A){e.watchers&&(n.F=e.watchers);const o=Object.entries(n.A),s=e.prototype;if(o.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(s,e,{get(){return((e,n)=>Z(this).N.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=Z(e),s=o.$,i=o.N.get(n),r=o.v,u=o.O;if(t=((e,n)=>null==e||c(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.A[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.N.set(n,t),u)){if(l.F&&128&r){const e=l.F[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){le(e,s)}}))}2==(18&r)&&E(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(s,e,{value(...n){const t=Z(this);return t.T.then((()=>t.O[e](...n)))}})})),1&t){const t=new Map;s.attributeChangedCallback=function(e,l,o){ue.jmp((()=>{const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=Z(this),s=null==t?void 0:t.v;if(!(8&s)&&128&s&&o!==l){const s=t.O,i=n.F[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.F)&&void 0!==l?l:{}),...o.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},_=e=>{q(e,"disconnectedCallback")},B=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=ce.customElements,i=re.head,c=i.querySelector("meta[charset]"),u=re.createElement("style"),a=[];let f,d=!0;Object.assign(ue,n),ue.t=new URL(n.resourcesUrl||"./",re.baseURI).href,e.map((e=>{e[1].map((n=>{var t;const i={v:n[0],g:n[1],A:n[2],U:n[3]};i.A=n[2],i.U=n[3],i.F=null!==(t=n[4])&&void 0!==t?t:{};const c=i.g,r=class extends HTMLElement{constructor(e){super(e),ne(e=this,i),1&i.v&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):ue.jmp((()=>(e=>{if(0==(1&ue.v)){const n=Z(e),t=n.M,l=()=>{};if(1&n.v)I(e,n,t.U),(null==n?void 0:n.O)||(null==n?void 0:n.W)&&n.W.then((()=>{}));else{n.v|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(n,n.S=t);break}}t.A&&Object.entries(t.A).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.v)){n.v|=32;{if((o=se(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(t.F=o.watchers,V(o,t,2),o.isProxied=!0);const e=()=>{};n.v|=8;try{new o(n)}catch(e){le(e)}n.v&=-9,n.v|=128,e()}if(o.style){let e=o.style;const n=b(t);if(!ie.has(n)){const l=()=>{};((e,n,t)=>{let l=ie.get(e);fe&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,ie.set(e,l)})(n,e,!!(1&t.v)),l()}}}const s=n.S,i=()=>E(n,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){ue.jmp((()=>(async()=>{if(0==(1&ue.v)){const e=Z(this);e.D&&(e.D.map((e=>e())),e.D=void 0),(null==e?void 0:e.O)?_(e.O):(null==e?void 0:e.W)&&e.W.then((()=>_(e.O)))}})()))}componentOnReady(){return Z(this).W}};i.H=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,V(r,i,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=ue.C)&&void 0!==t?t:r(re);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):ue.jmp((()=>f=setTimeout(H,30)))},G=(e,n)=>n,I=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=K(e,t),i=J(n,o),c=Q(t);ue.ael(s,l,i,c),(n.D=n.D||[]).push((()=>ue.rel(s,l,i,c)))}))},J=(e,n)=>t=>{try{256&e.v?e.O[n](t):(e.k=e.k||[]).push([n,t])}catch(e){le(e)}},K=(e,n)=>4&n?re:8&n?ce:16&n?re.body:e,Q=e=>0!=(2&e),X=e=>ue.C=e,Y=new WeakMap,Z=e=>Y.get(e),ee=(e,n)=>Y.set(n.O=e,n),ne=(e,n)=>{const t={v:0,$:e,M:n,N:new Map};return t.T=new Promise((e=>t.R=e)),t.W=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],I(e,t,n.U),Y.set(e,t)},te=(e,n)=>n in e,le=(e,n)=>(0,console.error)(e,n),oe=new Map,se=e=>{const n=e.g.replace(/-/g,"_"),t=e.H,l=oe.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(oe.set(t,e),e[n])),le)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ie=new Map,ce="undefined"!=typeof window?window:{},re=ce.document||{head:{}},ue={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ae=e=>Promise.resolve(e),fe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),de=[],ve=[],ye=(e,n)=>t=>{e.push(t),o||(o=!0,n&&4&ue.v?pe(me):ue.raf(me))},he=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){le(e)}e.length=0},me=()=>{he(de),he(ve),(o=de.length>0)&&ue.raf(me)},pe=e=>ae().then(e),$e=ye(ve,!0);export{G as F,f as H,s as a,B as b,m as c,h as d,D as f,U as g,u as h,ae as p,ee as r,X as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as i,h as s,H as r}from"./p-dc8d7000.js";import{z as t}from"./p-08695f4e.js";import{c as e}from"./p-b4b7f705.js";import{g as a}from"./p-0e0b46a5.js";import{i as n}from"./p-0636859b.js";const l=class{constructor(s){o(this,s),this.radioSelected=i(this,"radioSelected",7),this.handleRichRadioSelect=o=>{var i;this.selectedItem=o,null===(i=this.radioSelected)||void 0===i||i.emit(o)},this.getRadioItemStyleVariables=()=>{const o=this.borderColor||t.appearance.colorSecondary,i=n(o)?`var(--amino-${o})`:o;return{"--border-radius":a(this.borderStyle),"--selected-border-color":i||"unset"}},this.items=void 0,this.borderColor=void 0,this.borderStyle=void 0,this.theme=void 0,this.selectedItem=null}render(){var o;return s(r,{class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:this.getRadioItemStyleVariables()},null===(o=this.items)||void 0===o?void 0:o.map((o=>{var i;const r=(null===(i=this.selectedItem)||void 0===i?void 0:i.value)===o.value;return s("div",{"aria-hidden":"true",class:e(["zonos--shipping-rich-radio-item",r&&"selected"]),onClick:()=>this.handleRichRadioSelect(o)},s("input",{checked:r,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),s("div",{class:"zonos--shipping-info"},s("div",{class:"zonos--shipping-detail"},s("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&s("div",{class:"zonos--sub-detail"},o.sublabel&&s("zonos-text",{color:"gray-800"},o.sublabel),o.caption&&s("zonos-text",{color:"gray-400"},o.caption))),s("zonos-text",{type:"semiBoldLabel"},o.price)))})))}};l.style=":host{font-family:Inter;display:block}: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 input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{l as zonos_shipping_rich_radio}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?n(e.value):i(e.value).then(o,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(n=0)),n)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-6dcd752e.system.js","./p-164fae93.system.js","./p-85ab35c9.system.js","./p-8c867835.system.js"],(function(e){"use strict";var t,n,r,i,s,o,a,l,c;return{setters:[function(e){t=e.c;n=e.z},function(e){r=e.h;i=e.l;s=e.a;o=e.b;a=e.t},function(e){l=e.i},function(e){c=e.g}],execute:function(){var u=this;var d=function(){var e=y.stripeLinkEventData;var t=y.stripeAddressEventData;if(!t||!t.complete){throw new Error("Missing stripe address data")}return{checkoutSessionId:j.checkoutSessionId||"",contact:{email:(e===null||e===void 0?void 0:e.value.email)||"",firstName:t.value.firstName||"",lastName:t.value.lastName||"",phone:t.value.phone||""},items:j.items.map((function(e){return e})),shippingAddress:{addressLine1:t.value.address.line1,addressLine2:t.value.address.line2||"",city:t.value.address.city,country:t.value.address.country,postalCode:t.value.address.postal_code,state:t.value.address.state}}};var p=function(e){return __awaiter(u,void 0,void 0,(function(){var t,n,i,s;return __generator(this,(function(o){switch(o.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/calculate-landed-cost");return[4,r(t,{body:d(),method:"POST",signal:e===null||e===void 0?void 0:e.signal})];case 1:n=o.sent(),i=n.errors,s=n.json;if(i.length||!s){throw new Error("Failed to calculate landed cost")}return[2,s]}}))}))};var v=function(e){var t=e.theme;switch(t){default:return{".Input":{padding:"0",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"8px",paddingTop:"6px"}}}};var f=function(e){var t=e.borderStyle,n=e.theme;switch(n){case"DARK":return{borderRadius:c(t),colorBackground:"#101117",colorBackgroundText:"#C5C6CA",colorText:"#C5C6CA",colorTextPlaceholder:"#C5C6CA"};default:return{borderRadius:c(t)}}};var h=t((function(){return{clientSecret:sessionStorage.getItem("zonos--client-secret")||null,fetchingLandedCostAbordController:null,isFetchingLandedCost:false,isFetchingSession:false,stripe:null,stripeAddressElement:null,stripeAddressEventData:null,stripeAddressUsedWhenFetchingLC:null,stripeElements:null,stripeElementsOptions:null,stripeLinkElement:null,stripeLinkEventData:null,stripeLinkUsedWhenFetchingLC:null,stripePaymentElement:null,stripePaymentEventData:null}})),m=h.onChange,g=h.reset,y=h.state;e("s",y);var S=function(e){var t=e.clientSecret,r=e.overrideBorderRaidus,i=e.overridePrimaryColor,o=e.overrideTheme;var a=i||n.appearance.colorPrimary;var c=a&&l(a)?"night":"flat";var u=o==="DARK"?"night":"flat";return{appearance:{labels:"floating",rules:Object.assign({},v({theme:"LIGHT"})),theme:o?u:c,variables:Object.assign({},f({borderStyle:r,theme:"LIGHT"}))},clientSecret:t,locale:s.selectedLocale}};var C=e("k",(function(e){return __awaiter(u,void 0,void 0,(function(){var t,n,r,s;return __generator(this,(function(o){n=y.clientSecret;if(!y.stripe){i("Skip. Stripe is not initialized");return[2]}if(n){r=S({clientSecret:n,overrideBorderRaidus:e===null||e===void 0?void 0:e.overrideBorderRaidus,overridePrimaryColor:e===null||e===void 0?void 0:e.overridePrimaryColor,overrideTheme:e===null||e===void 0?void 0:e.overrideTheme});s=JSON.stringify(r)===JSON.stringify(y.stripeElementsOptions);if(!y.stripeElements){y.stripeElements=(t=y.stripe)===null||t===void 0?void 0:t.elements(r);y.stripeElementsOptions=r;i("Stripe elements initialized");return[2]}if(!s){y.stripeElements.update(r);y.stripeElementsOptions=r}i("Stripe elements initialized")}return[2]}))}))}));var b=e("o",(function(){sessionStorage.removeItem("zonos--client-secret");g();y.stripe=window.Zonos.stripe}));var w=function(){var e,t,n,r;var i=y.fetchingLandedCostAbordController;if(!i){return false}var s=JSON.stringify((e=y.stripeLinkUsedWhenFetchingLC)===null||e===void 0?void 0:e.value)!==JSON.stringify((t=y.stripeLinkEventData)===null||t===void 0?void 0:t.value);var o=JSON.stringify((n=y.stripeAddressUsedWhenFetchingLC)===null||n===void 0?void 0:n.value)!==JSON.stringify((r=y.stripeAddressEventData)===null||r===void 0?void 0:r.value);return s||o};var _=e("m",(function(){return __awaiter(u,void 0,void 0,(function(){var e,t,n,r,i,s,a,l,c,u,d,v,f,h;return __generator(this,(function(m){switch(m.label){case 0:i=!!((e=y.stripeAddressEventData)===null||e===void 0?void 0:e.complete);s=!!((t=y.stripeLinkEventData)===null||t===void 0?void 0:t.complete);a=w();if(a){(n=y.fetchingLandedCostAbordController)===null||n===void 0?void 0:n.abort();y.fetchingLandedCostAbordController=null}if(!(i&&s&&(a||!y.isFetchingLandedCost)))return[3,5];y.isFetchingLandedCost=true;if(y.stripeAddressEventData){y.stripeAddressUsedWhenFetchingLC=Object.assign({},y.stripeAddressEventData)}if(y.stripeLinkEventData){y.stripeLinkUsedWhenFetchingLC=Object.assign({},y.stripeLinkEventData)}m.label=1;case 1:m.trys.push([1,3,,4]);l=new AbortController;y.fetchingLandedCostAbordController=l;return[4,p(l)];case 2:c=m.sent(),u=c.checkoutSessionWorkflow,d=c.shipmentRatingCalculateWorkflow;y.fetchingLandedCostAbordController=null;j.landedCostData=(u===null||u===void 0?void 0:u.filter(Boolean))||null;j.shippingData=(d===null||d===void 0?void 0:d.filter(Boolean))||null;v=(r=j.landedCostData)===null||r===void 0?void 0:r.find(Boolean);f=!!v?v.subtotals:null;if(f){N({exchangeRate:f.exchangeRate,items:f.items,landedCostTotal:0,presentmentCurrencyCode:f.presentmentCurrencyCode,shipping:0,total:f.items})}return[3,4];case 3:h=m.sent();o(h);return[3,4];case 4:y.isFetchingLandedCost=false;m.label=5;case 5:return[2]}}))}))}));var k=function(e){var t=[];var n=true;switch(e){case"succeeded":{t=[a("Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us."),"","",a("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.")];n=false;break}case"requires_capture":case"processing":{t=[a("Payment processing. We'll update you when payment is received.")];n=false;break}case"requires_payment_method":{t=[a("Payment failed. Please try another payment method.")];break}default:{t=[a("Something went wrong.")];break}}return{isError:n,messages:t}};var E=e("p",(function(e){var t=e.clientSecret,n=e.storybookForceStatus;return __awaiter(u,void 0,void 0,(function(){var e,r,i,s,l,c,u,d,p;return __generator(this,(function(v){switch(v.label){case 0:if(n){e=k(n),r=e.isError,i=e.messages;return[2,{error:r,messages:i}]}s=t||y.clientSecret;if(!y.stripe||!s){o("Failed to retrieve payment intent. Stripe is not initialized");return[2,{error:true,message:[a("Something went wrong.")]}]}return[4,y.stripe.retrievePaymentIntent(s)];case 1:l=v.sent().paymentIntent;c=l===null||l===void 0?void 0:l.status;u=k(c),d=u.isError,p=u.messages;return[2,{error:d,messages:p}]}}))}))}));var A=e("n",(function(){return __awaiter(u,void 0,void 0,(function(){var e,t,n,r,i,s,o,a;return __generator(this,(function(l){switch(l.label){case 0:r=!!((e=y.stripePaymentEventData)===null||e===void 0?void 0:e.complete);i=y.stripeElements;s=y.stripe;o=y.clientSecret;if(!(s&&i&&r&&o))return[3,2];return[4,s.confirmPayment({confirmParams:{receipt_email:(n=(t=y.stripeLinkEventData)===null||t===void 0?void 0:t.value)===null||n===void 0?void 0:n.email,return_url:window.location.href},elements:i,redirect:"if_required"})];case 1:a=l.sent().error;if(a){if(a.type==="card_error"||a.type==="validation_error"){throw new Error(a.message)}if(a.type==="invalid_request_error"){if(a.code==="payment_intent_unexpected_state"){return[2]}}throw new Error("An unexpected error occurred.")}l.label=2;case 2:return[2]}}))}))}));var T=e("l",(function(){return __awaiter(u,void 0,void 0,(function(){var e,t,n,a,l,c;return __generator(this,(function(u){switch(u.label){case 0:t=j.items.reduce((function(e,t){return e+t.amount*t.quantity}),0);if(!t||!s.targetCurrency){o("Fail to create checkout session - invalid total or currency");return[2,false]}y.isFetchingSession=true;return[4,r("".concat("https://v1.route.js.zonos.com","/api/create-checkout-session"),{body:{currency:((e=j.items.find(Boolean))===null||e===void 0?void 0:e.currencyCode)||"",itemsAmount:t,presentmentCountryCode:s.selectedCountryCode||null},method:"POST"})];case 1:n=u.sent(),a=n.errors,l=n.json;y.isFetchingSession=false;if(a.length||!l){o("Error occurs when creating checkout session",JSON.stringify(a,null,2));return[2,false]}c=l.checkoutSessionCreate;y.clientSecret=c.clientSecret;j.checkoutSessionId=c.id;N(Object.assign(Object.assign({},c.subtotals),{landedCostTotal:0,shipping:0,total:c.subtotals.items}));i("Exchange rate updated for cart items (checkout session create)","info",j.exchangeRate);i("done-init-checkout-session");return[2,true]}}))}))}));var x=function(e){var t=e.currency,n=e.id,i=e.itemsAmount,s=e.landedCostId,a=e.presentmentCountryCode;return __awaiter(u,void 0,void 0,(function(){var e,l,c;return __generator(this,(function(u){switch(u.label){case 0:return[4,r("".concat("https://v1.route.js.zonos.com","/api/update-checkout-session"),{body:{currency:t,id:n,itemsAmount:i,landedCostId:s,presentmentCountryCode:a},method:"POST"})];case 1:e=u.sent(),l=e.errors,c=e.json;if(l.length||!c){o("Error occurs when updating checkout session",JSON.stringify(l,null,2));return[2,{errors:l,json:c}]}return[2,{errors:[],json:c}]}}))}))};m("clientSecret",(function(e){if(e&&y.stripe){sessionStorage.setItem("zonos--client-secret",e)}if(!e){sessionStorage.removeItem("zonos--client-secret")}}));var D=function(e){var t=e.date,n=e.formatOptions,r=n===void 0?{day:"numeric",weekday:"long",year:"numeric"}:n;return new Intl.DateTimeFormat("en-US",r).format(t)};var L=function(e){var t=new Date;var n=e.getTime()-t.getTime();var r=Math.floor(n/(1e3*60*60*24));return r};var O=t((function(){return{checkoutSessionId:sessionStorage.getItem("zonos--checkout-session-id")||null,currency:"USD",dutiesTaxFees:0,error:null,exchangeRate:null,isSelectedShippingAboveDeminimis:false,isSelectedShippingGuarantee:false,items:[],landedCostData:null,selectedLandedCost:null,selectedShippingOption:null,selectedShippingOptionExpectedDate:"",selectedShippingOptionTransitTime:"",shipping:0,shippingData:null,step:"customer-info",subtotal:0,total:0}})),I=O.onChange,F=O.reset,j=O.state;e("c",j);var P=e("b",(function(e){var t=e.minTransitAt?L(new Date(e.minTransitAt)):"";var n=e.maxTransitAt?L(new Date(e.maxTransitAt)):"";var r=e.minTransitAt?D({date:new Date(e.minTransitAt)}):"";return{expectedDate:r,maxTransit:n,minTransit:t}}));var R=e("g",(function(){sessionStorage.removeItem("zonos--checkout-session-id");F()}));var z=e("j",(function(e){var t=e.messages,n=e.title;j.step="error";j.error={messages:t,title:n}}));var N=e("a",(function(e){j.exchangeRate=e.exchangeRate;j.dutiesTaxFees=e.landedCostTotal;j.subtotal=e.items;j.total=e.total;j.currency=e.presentmentCurrencyCode}));var B=e("f",(function(e){var t=e.currency,n=e.itemsAmount,r=e.landedCostId;return __awaiter(u,void 0,void 0,(function(){var e,l;return __generator(this,(function(c){switch(c.label){case 0:if(r&&j.selectedLandedCost){e=j.selectedLandedCost.subtotals;N(e);i("Exchange rate updated for cart items (landed cost subtotal)","info",j.exchangeRate)}if(!j.checkoutSessionId){o("Could update cart total without checkout session id");return[2,false]}return[4,x({currency:t,id:j.checkoutSessionId,itemsAmount:n,landedCostId:r,presentmentCountryCode:s.selectedCountryCode})];case 1:l=c.sent().json;if(!l){o("Error occurs when updating checkout session");z({messages:[a("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists")],title:a("Error updating Checkout")});return[2,false]}if(!r){N(l.checkoutSessionUpdate.subtotals);i("Exchange rate updated for cart items (checkout session update)","info",j.exchangeRate)}return[2,true]}}))}))}));var W=e("i",(function(e){return __awaiter(u,void 0,void 0,(function(){var t,n,r,i,s,o,a,l,c,u,d,p,v;return __generator(this,(function(f){switch(f.label){case 0:j.selectedShippingOption=e;o=P(j.selectedShippingOption),a=o.expectedDate,l=o.maxTransit,c=o.minTransit;j.selectedShippingOptionExpectedDate=a;j.selectedShippingOptionTransitTime=c&&l?"".concat(c,"-").concat(l):"".concat(c||l);u=(t=j.landedCostData)===null||t===void 0?void 0:t.find((function(e){var t,n,r;return((n=(t=e.landedCost)===null||t===void 0?void 0:t.shipmentRating)===null||n===void 0?void 0:n.id)===((r=j.selectedShippingOption)===null||r===void 0?void 0:r.id)}));j.selectedLandedCost=u||null;if(!u){return[2,false]}j.shipping=u.subtotals.shipping;d=((n=u===null||u===void 0?void 0:u.landedCost)===null||n===void 0?void 0:n.landedCostGuaranteeCode)==="ZONOS";p=!!((i=(r=u===null||u===void 0?void 0:u.landedCost)===null||r===void 0?void 0:r.deMinimis)===null||i===void 0?void 0:i.find((function(e){return["DUTY","TAX"].includes(e.type)&&e.threshold==="ABOVE"})));j.isSelectedShippingAboveDeminimis=p;j.isSelectedShippingGuarantee=d;return[4,B({landedCostId:(s=u.landedCost)===null||s===void 0?void 0:s.id})];case 1:v=f.sent();return[2,v]}}))}))}));I("checkoutSessionId",(function(){if(!j.checkoutSessionId){sessionStorage.removeItem("zonos--checkout-session-id");return}sessionStorage.setItem("zonos--checkout-session-id",j.checkoutSessionId)}));var U=e("h",(function(e){return __awaiter(u,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(i){switch(i.label){case 0:j.items=e;n=(t=e.find(Boolean))===null||t===void 0?void 0:t.currencyCode;r=e.reduce((function(e,t){return e+t.amount*t.quantity}),0);if(!n||!r){return[2]}j.currency=n;y.isFetchingSession=true;return[4,B({currency:n,itemsAmount:r})];case 1:i.sent();y.isFetchingSession=false;return[2]}}))}))}));var J=function(){j.selectedShippingOption=null;j.isSelectedShippingAboveDeminimis=false;j.isSelectedShippingGuarantee=false;j.selectedShippingOptionExpectedDate="";j.selectedShippingOptionTransitTime="";j.shipping=0};var G=e("d",(function(){if(j.step==="customer-info"){j.step="shipping"}else if(j.step==="shipping"){j.step="payment"}else if(j.step==="payment"){j.step="finish"}}));var q=e("e",(function(){if(j.step==="payment"){j.step="shipping"}else if(j.step==="shipping"){j.step="customer-info";J()}}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-68d06767.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-98a6e093.system",[[1,"zonos-text",{class:[1],color:[1],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-cf97cc68.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-c8ad044e.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-0ed3bb9f.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64]}]]],["p-36425562.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-cc1c785c.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-aca66238.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-23204b78.system",[[1,"zonos-notification",{class:[1],notificationArray:[32],showNotification:[64]}]]],["p-224125da.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-8b415737.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-6d82986c.system",[[1,"zonos-badge",{bold:[4],color:[1],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4],class:[1]}]]],["p-d6b8563b.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-b75ffe64.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],class:[1],hasContent:[32]}]]],["p-824395fd.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-15b71f0b.system",[[1,"zonos-icon",{autoHeight:[4,"auto-height"],color:[1],content:[1],size:[2]}]]],["p-8a75b765.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-84b00605.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]}],[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)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as a,H as t}from"./p-dc8d7000.js";import{c as o}from"./p-b4b7f705.js";const i=class{constructor(a){s(this,a),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 a(t,null,a("div",{class:o(["styled-card",this.class]),style:{padding:this.spacing}},this.label&&a("header",{class:"card-header",style:{padding:this.spacing}},a("text-component",{type:"subheader"},this.label),a("h-stack",{spacing:8},this.actions)),a("slot",null),(this.footerActions||this.footerContent)&&a("footer",{class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},a("div",null,this.footerContent),a("h-stack",{spacing:8},this.footerActions))))}};i.style=":host{font-family:Inter;display:block}: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 r=class{constructor(a){s(this,a),this.spacing=24,this.class=""}render(){return a(t,null,a("div",{class:o(["vstack",this.class]),style:{"grid-row-gap":`${this.spacing}px`}},a("slot",null)))}};r.style=":host{font-family:Inter;display:block}: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,r as zonos_v_stack}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-f6add79c.system.js","./p-6dcd752e.system.js","./p-68d06767.system.js","./p-164fae93.system.js","./p-85ab35c9.system.js","./p-8c867835.system.js"],(function(t){"use strict";return{setters:[function(e){var r={};r.cartStore=e.c;r.cartStoreApplySubtotals=e.a;r.cartStoreGetShippingTransitInfo=e.b;r.cartStoreNextStep=e.d;r.cartStorePreviousStep=e.e;r.cartStoreReCalculateTotal=e.f;r.cartStoreReset=e.g;r.cartStoreUpdateItems=e.h;r.cartStoreUpdateSelectedShippingOption=e.i;r.cartStoreUpdateToErrorState=e.j;t(r)},function(){},function(){},function(){},function(){},function(){}],execute:function(){}}}));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|