@zonos/elements 1.3.12-alpha.1 → 1.3.12-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-fcddc0e6.js → cart-fe91535c.js} +540 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sendErrorLog-fb356701.js +29 -0
- package/dist/cjs/{submitGtag-ec6ead54.js → submitGtag-62c97f6b.js} +1 -20
- package/dist/cjs/zonos-address_4.cjs.entry.js +41 -17
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +27 -0
- package/dist/collection/components/store/translationStore/strings.base.js +27 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +27 -0
- package/dist/collection/components/store/translationStore/strings.french.js +27 -0
- package/dist/collection/components/store/translationStore/strings.german.js +27 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +27 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +27 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +27 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +41 -15
- package/dist/components/sendErrorLog.js +21 -0
- package/dist/components/stripe.js +541 -1
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/zonos-address2.js +41 -15
- package/dist/components/zonos-checkout-finish2.js +3 -20
- package/dist/components/zonos-checkout.js +3 -2
- package/dist/components/zonos-controller.js +1 -1
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/esm/{cart-228e1ef7.js → cart-53f5c10c.js} +540 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sendErrorLog-1c2f093d.js +26 -0
- package/dist/esm/{submitGtag-c3727595.js → submitGtag-d2658ed5.js} +2 -20
- package/dist/esm/zonos-address_4.entry.js +40 -16
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/cart-53f5c10c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/sendErrorLog-1c2f093d.js +1 -0
- package/dist/esm-es5/submitGtag-d2658ed5.js +1 -0
- package/dist/esm-es5/zonos-address_4.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-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.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-payment.entry.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +27 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -1
- package/dist/types/types/global.d.ts +1 -2
- package/dist/zonos-elements/{p-35c328ba.system.entry.js → p-09d7a0f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-67ff446b.system.entry.js → p-0cc5cfbd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-11f1b5fb.entry.js → p-125043b5.entry.js} +1 -1
- package/dist/zonos-elements/{p-55940b5a.system.entry.js → p-176f65e1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-19dbd8c2.entry.js +1 -0
- package/dist/zonos-elements/p-3555ce7c.system.js +1 -0
- package/dist/zonos-elements/p-4cc4aba3.system.js +1 -0
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-5d5c0fbf.entry.js → p-6f6850aa.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f662cf2.entry.js → p-7e6bc603.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac5aecca.entry.js → p-969f36b3.entry.js} +1 -1
- package/dist/zonos-elements/p-9f4b0222.system.entry.js +1 -0
- package/dist/zonos-elements/p-aa46e052.js +1 -0
- package/dist/zonos-elements/{p-5dbb80df.system.entry.js → p-ac576bd7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-30cd191f.entry.js → p-af17ec7f.entry.js} +1 -1
- package/dist/zonos-elements/{p-499d7f5d.system.entry.js → p-b6c83e0b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bc25e1aa.js +1 -0
- package/dist/zonos-elements/p-beb55ff1.js +1 -0
- package/dist/zonos-elements/{p-925ae524.entry.js → p-bece7adb.entry.js} +1 -1
- package/dist/zonos-elements/{p-0082c5be.system.entry.js → p-c30554b1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d24296a6.system.js +1 -0
- package/dist/zonos-elements/{p-14a2824f.entry.js → p-df6fd81f.entry.js} +1 -1
- package/dist/zonos-elements/{p-c815e8b4.system.entry.js → p-e9732f93.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7ff3a533.system.entry.js → p-ea1afd2d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d31e5fcc.entry.js → p-ecc72526.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f6f0581.system.entry.js → p-fd7ab92d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db1adc42.entry.js → p-ff32ea53.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +0 -8
- package/dist/esm/isCheckoutMobile-8846dccb.js +0 -6
- package/dist/esm-es5/cart-228e1ef7.js +0 -1
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +0 -1
- package/dist/esm-es5/submitGtag-c3727595.js +0 -1
- package/dist/zonos-elements/p-0679e872.system.entry.js +0 -1
- package/dist/zonos-elements/p-09dbb0e9.entry.js +0 -1
- package/dist/zonos-elements/p-770e5b9e.js +0 -1
- package/dist/zonos-elements/p-81a54668.js +0 -1
- package/dist/zonos-elements/p-94bbf247.system.js +0 -1
- package/dist/zonos-elements/p-960e4021.system.js +0 -1
- package/dist/zonos-elements/p-aed0098c.system.js +0 -1
- package/dist/zonos-elements/p-d11b2449.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["zonos-checkout.cjs",[[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],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[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],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"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],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"
|
|
11
|
+
return index.bootstrapLazy([["zonos-checkout.cjs",[[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],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[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],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"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],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"reportedInvalidCharacters":[32],"invalidCharacterList":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32],"hasInvalidShippingCharacters":[32],"hasInvalidBillingCharacters":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[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-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"disabled":[32],"serviceLevels":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cart = require('./cart-fe91535c.js');
|
|
4
|
+
|
|
5
|
+
const checkoutBreakpoint = 890;
|
|
6
|
+
const isCheckoutMobile = (isMobile) => {
|
|
7
|
+
return isMobile || window.innerWidth < checkoutBreakpoint;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
11
|
+
const userAgentData = 'userAgentData' in window.navigator
|
|
12
|
+
? // userAgentData is not yet supported in all browsers
|
|
13
|
+
window.navigator.userAgentData
|
|
14
|
+
: null;
|
|
15
|
+
const errorObject = {
|
|
16
|
+
endpoint,
|
|
17
|
+
errors,
|
|
18
|
+
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
19
|
+
? userAgentData
|
|
20
|
+
: window.navigator.userAgent }, metadata),
|
|
21
|
+
};
|
|
22
|
+
void cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
|
|
23
|
+
body: errorObject,
|
|
24
|
+
method: 'POST',
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.isCheckoutMobile = isCheckoutMobile;
|
|
29
|
+
exports.sendErrorLog = sendErrorLog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
3
|
+
const cart = require('./cart-fe91535c.js');
|
|
4
4
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
5
5
|
|
|
6
6
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
@@ -38,24 +38,6 @@ const createCustomEvent = (eventName, detail) => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
42
|
-
const userAgentData = 'userAgentData' in window.navigator
|
|
43
|
-
? // userAgentData is not yet supported in all browsers
|
|
44
|
-
window.navigator.userAgentData
|
|
45
|
-
: null;
|
|
46
|
-
const errorObject = {
|
|
47
|
-
endpoint,
|
|
48
|
-
errors,
|
|
49
|
-
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
50
|
-
? userAgentData
|
|
51
|
-
: window.navigator.userAgent }, metadata),
|
|
52
|
-
};
|
|
53
|
-
void cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
|
|
54
|
-
body: errorObject,
|
|
55
|
-
method: 'POST',
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
|
|
59
41
|
/**
|
|
60
42
|
* Submit a gtag event if the gtag function is available.
|
|
61
43
|
*/
|
|
@@ -72,6 +54,5 @@ const submitGtag = (event) => {
|
|
|
72
54
|
};
|
|
73
55
|
|
|
74
56
|
exports.createCustomEvent = createCustomEvent;
|
|
75
|
-
exports.sendErrorLog = sendErrorLog;
|
|
76
57
|
exports.submitGtag = submitGtag;
|
|
77
58
|
exports.trackConversionEvent = trackConversionEvent;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
|
-
const
|
|
8
|
+
const sendErrorLog = require('./sendErrorLog-fb356701.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const getBorderRadius = require('./getBorderRadius-4fa738c3.js');
|
|
11
11
|
const isDarkColor = require('./isDarkColor-7faf0a82.js');
|
|
@@ -31,6 +31,15 @@ const containsNonLatinChars = (params) => {
|
|
|
31
31
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.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)}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:var(--amino-space-8)}";
|
|
32
32
|
const ZonosAddressStyle0 = zonosAddressCss;
|
|
33
33
|
|
|
34
|
+
const mappedFields = {
|
|
35
|
+
city: 'City',
|
|
36
|
+
country: 'Country',
|
|
37
|
+
line1: 'Address line 1',
|
|
38
|
+
line2: 'Address line 2',
|
|
39
|
+
name: 'Name',
|
|
40
|
+
postal_code: 'Postal code',
|
|
41
|
+
state: 'State',
|
|
42
|
+
};
|
|
34
43
|
const ZonosAddress = class {
|
|
35
44
|
constructor(hostRef) {
|
|
36
45
|
index.registerInstance(this, hostRef);
|
|
@@ -39,7 +48,8 @@ const ZonosAddress = class {
|
|
|
39
48
|
this.titleText = undefined;
|
|
40
49
|
this.defaultAddress = null;
|
|
41
50
|
this.stripe = window.Zonos.stripe;
|
|
42
|
-
this.
|
|
51
|
+
this.reportedInvalidCharacters = false;
|
|
52
|
+
this.invalidCharacterList = null;
|
|
43
53
|
this.isDirtyAddress = false;
|
|
44
54
|
}
|
|
45
55
|
getStripeAddressInstance() {
|
|
@@ -65,13 +75,9 @@ const ZonosAddress = class {
|
|
|
65
75
|
cart.stripeStore.stripeAddressEventData = event;
|
|
66
76
|
break;
|
|
67
77
|
}
|
|
68
|
-
const
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
if (hasInvalidCharacters) {
|
|
72
|
-
// no need to prefetch landed cost if the address contains invalid characters
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
78
|
+
const invalidCharacterList = this.checkInvalidCharacters(event);
|
|
79
|
+
this.invalidCharacterList = invalidCharacterList;
|
|
80
|
+
this.invalidCharacters.emit(!!invalidCharacterList);
|
|
75
81
|
}
|
|
76
82
|
updateAddressElement({ stripeAddressElement, type, }) {
|
|
77
83
|
if (type === 'shipping') {
|
|
@@ -84,7 +90,7 @@ const ZonosAddress = class {
|
|
|
84
90
|
// Do nothing if the allowed character sets is ALL or the address is incomplete
|
|
85
91
|
if (!address.complete ||
|
|
86
92
|
zonosStore.zonosStore.checkoutSettings.allowedCharacterSets === 'ALL') {
|
|
87
|
-
return
|
|
93
|
+
return null;
|
|
88
94
|
}
|
|
89
95
|
const { address: addressValue, firstName, lastName, name } = address.value;
|
|
90
96
|
const { city, country, line1, line2, postal_code, state } = addressValue;
|
|
@@ -97,11 +103,29 @@ const ZonosAddress = class {
|
|
|
97
103
|
postal_code,
|
|
98
104
|
state,
|
|
99
105
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
if (!Object.keys(invalidList).length) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
// send error event only once so we know what value is invalid
|
|
110
|
+
if (!this.reportedInvalidCharacters) {
|
|
111
|
+
this.reportedInvalidCharacters = true;
|
|
112
|
+
void sendErrorLog.sendErrorLog({
|
|
113
|
+
endpoint: 'NonLatinInput',
|
|
114
|
+
errors: Object.keys(invalidList).map(fieldName => {
|
|
115
|
+
var _a;
|
|
116
|
+
if (fieldName !== 'name') {
|
|
117
|
+
// trim all number so we don't send sensitive information
|
|
118
|
+
const trimmedAddress = (_a = addressValue[fieldName]) === null || _a === void 0 ? void 0 : _a.replace(/[\d\w]+/g, '');
|
|
119
|
+
return `Invalid character found ${fieldName}: "${trimmedAddress}"`;
|
|
120
|
+
}
|
|
121
|
+
const customerName = name || `${firstName} ${lastName}`;
|
|
122
|
+
const trimmedName = customerName.replace(/[\d\w]+/g, '');
|
|
123
|
+
return `Invalid character found ${fieldName}: "${trimmedName}"`;
|
|
124
|
+
}),
|
|
125
|
+
metadata: {},
|
|
126
|
+
});
|
|
103
127
|
}
|
|
104
|
-
return
|
|
128
|
+
return invalidList;
|
|
105
129
|
}
|
|
106
130
|
async watchInitStripe() {
|
|
107
131
|
var _a, _b;
|
|
@@ -156,7 +180,7 @@ const ZonosAddress = class {
|
|
|
156
180
|
// stripe element started with just address line 1, so scroll bar is not yet available. Wait for a moment before scrolling
|
|
157
181
|
setTimeout(() => {
|
|
158
182
|
// scroll directly into view if it's mobile
|
|
159
|
-
if (
|
|
183
|
+
if (sendErrorLog.isCheckoutMobile()) {
|
|
160
184
|
this.el.scrollIntoView({ behavior: 'smooth', block: 'end' });
|
|
161
185
|
}
|
|
162
186
|
else {
|
|
@@ -200,7 +224,7 @@ const ZonosAddress = class {
|
|
|
200
224
|
}
|
|
201
225
|
render() {
|
|
202
226
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
203
|
-
return (index.h(index.Host, { key: '
|
|
227
|
+
return (index.h(index.Host, { key: 'b1ad2f6c9c23e6411bf1adccdd34b3aa4f5250b1', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '786a733a44925a670393b72bf0ae3db5ba59f9a1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'b9d58cbc17abf5daf5d13ffdebc7485c3ac6457d', class: "zonos--address-component" }), this.invalidCharacterList && (index.h("zonos-banner", { bannerTitle: cart.translate('Please resolve the following errors:'), intent: "error" }, Object.keys(this.invalidCharacterList).map(fieldName => (index.h("zonos-text", null, `- ${cart.translate(mappedFields[fieldName])}: ${cart.translate('only supports Latin characters (A-Z, a-z)')}`)))))));
|
|
204
228
|
}
|
|
205
229
|
get el() { return index.getElement(this); }
|
|
206
230
|
static get watchers() { return {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-fe91535c.js');
|
|
9
9
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
10
10
|
require('./isDarkColor-7faf0a82.js');
|
|
11
11
|
require('./getBorderRadius-4fa738c3.js');
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
8
|
+
const submitGtag = require('./submitGtag-62c97f6b.js');
|
|
9
9
|
const getBorderRadius = require('./getBorderRadius-4fa738c3.js');
|
|
10
|
-
const
|
|
10
|
+
const sendErrorLog = require('./sendErrorLog-fb356701.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
12
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
13
13
|
const isDarkColor = require('./isDarkColor-7faf0a82.js');
|
|
@@ -159,7 +159,7 @@ const ZonosCheckoutFinish = class {
|
|
|
159
159
|
this.isLoading = false;
|
|
160
160
|
const baseUrl = "https://v1.route.js.zonos.com";
|
|
161
161
|
const checkoutSessionId = cart.cartStore.checkoutSessionId;
|
|
162
|
-
void
|
|
162
|
+
void sendErrorLog.sendErrorLog({
|
|
163
163
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`,
|
|
164
164
|
errors: ['Order not found after multiple attempts'],
|
|
165
165
|
metadata: {
|
|
@@ -282,10 +282,10 @@ const ZonosCheckoutFooter = class {
|
|
|
282
282
|
this.showLanguageDialog = !this.showLanguageDialog;
|
|
283
283
|
}
|
|
284
284
|
handleMobileChange() {
|
|
285
|
-
this.isMobile =
|
|
285
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
286
286
|
}
|
|
287
287
|
componentWillLoad() {
|
|
288
|
-
this.isMobile =
|
|
288
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
291
|
var _a;
|
|
@@ -597,10 +597,10 @@ const ZonosReview = class {
|
|
|
597
597
|
this.isMobile = false;
|
|
598
598
|
}
|
|
599
599
|
handleWindowResize() {
|
|
600
|
-
this.isMobile =
|
|
600
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
601
601
|
}
|
|
602
602
|
componentWillLoad() {
|
|
603
|
-
this.isMobile =
|
|
603
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
604
604
|
}
|
|
605
605
|
render() {
|
|
606
606
|
const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
9
|
-
const
|
|
8
|
+
const submitGtag = require('./submitGtag-62c97f6b.js');
|
|
9
|
+
const sendErrorLog = require('./sendErrorLog-fb356701.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-4fa738c3.js');
|
|
12
12
|
const isDarkColor = require('./isDarkColor-7faf0a82.js');
|
|
@@ -244,7 +244,7 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
|
|
|
244
244
|
};
|
|
245
245
|
if (Object.values(shippingAddress).some(value => value === undefined || value === null)) {
|
|
246
246
|
cart.logError('One or more shipping address field is missing', Object.entries(shippingAddress));
|
|
247
|
-
void
|
|
247
|
+
void sendErrorLog.sendErrorLog({
|
|
248
248
|
endpoint: 'No endpoint, domestic checkout form missing fields',
|
|
249
249
|
errors: [
|
|
250
250
|
'Bigcommerce: One or more shipping address field is missing in the domestic checkout form',
|
|
@@ -654,13 +654,13 @@ const ZonosCheckout = class {
|
|
|
654
654
|
window.location.reload();
|
|
655
655
|
}
|
|
656
656
|
handleWindowResize() {
|
|
657
|
-
this.isMobile =
|
|
657
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
658
658
|
// apply theme to stripe elements
|
|
659
659
|
void this.applyStripeTheme();
|
|
660
660
|
cart.log(`mobile: ${this.isMobile}`);
|
|
661
661
|
}
|
|
662
662
|
handleMobileChange() {
|
|
663
|
-
this.isMobile =
|
|
663
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
664
664
|
// apply theme to stripe elements
|
|
665
665
|
void this.applyStripeTheme();
|
|
666
666
|
cart.log(`mobile: ${this.isMobile}`);
|
|
@@ -674,7 +674,7 @@ const ZonosCheckout = class {
|
|
|
674
674
|
}
|
|
675
675
|
componentWillLoad() {
|
|
676
676
|
void this.init();
|
|
677
|
-
this.isMobile =
|
|
677
|
+
this.isMobile = sendErrorLog.isCheckoutMobile(this.mobile);
|
|
678
678
|
// update theme to browser preference theme if appearance theme is system
|
|
679
679
|
this.handleAppearanceSettingsOverrideChange();
|
|
680
680
|
cart.log(`mobile: ${this.isMobile}`);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
require('./isDarkColor-7faf0a82.js');
|
|
9
9
|
require('./getBorderRadius-4fa738c3.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./isDarkColor-7faf0a82.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-7faf0a82.js');
|
|
@@ -19,7 +19,7 @@ const patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["zonos-checkout.cjs",[[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],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[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],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"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],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"
|
|
22
|
+
return index.bootstrapLazy([["zonos-checkout.cjs",[[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],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[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],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-icon.cjs",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-button_2.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"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],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"reportedInvalidCharacters":[32],"invalidCharacterList":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_10.cjs",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32],"hasInvalidShippingCharacters":[32],"hasInvalidBillingCharacters":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[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-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"disabled":[32],"serviceLevels":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-fe91535c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
10
|
require('./isDarkColor-7faf0a82.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-fe91535c.js');
|
|
7
7
|
require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
require('./isDarkColor-7faf0a82.js');
|
|
9
9
|
require('./getBorderRadius-4fa738c3.js');
|
|
@@ -5,6 +5,12 @@ export const stringsArabic = {
|
|
|
5
5
|
Address: {
|
|
6
6
|
value: 'العنوان',
|
|
7
7
|
},
|
|
8
|
+
'Address line 1': {
|
|
9
|
+
value: 'سطر العنوان 1',
|
|
10
|
+
},
|
|
11
|
+
'Address line 2': {
|
|
12
|
+
value: 'سطر العنوان 2',
|
|
13
|
+
},
|
|
8
14
|
Back: {
|
|
9
15
|
value: 'رجوع',
|
|
10
16
|
},
|
|
@@ -14,12 +20,18 @@ export const stringsArabic = {
|
|
|
14
20
|
'Cart subtotal': {
|
|
15
21
|
value: 'المجموع الفرعي للسلة',
|
|
16
22
|
},
|
|
23
|
+
City: {
|
|
24
|
+
value: 'مدينة',
|
|
25
|
+
},
|
|
17
26
|
Contact: {
|
|
18
27
|
value: 'اتصل بنا',
|
|
19
28
|
},
|
|
20
29
|
'Continue to shipping': {
|
|
21
30
|
value: 'متابعة إلى الشحن',
|
|
22
31
|
},
|
|
32
|
+
Country: {
|
|
33
|
+
value: 'بلد',
|
|
34
|
+
},
|
|
23
35
|
Customer: {
|
|
24
36
|
value: 'العميل',
|
|
25
37
|
},
|
|
@@ -59,6 +71,9 @@ export const stringsArabic = {
|
|
|
59
71
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
60
72
|
value: 'تعرف على الرسوم والضرائب قبل الشراء. اشترِ بثقة!',
|
|
61
73
|
},
|
|
74
|
+
Name: {
|
|
75
|
+
value: 'اسم',
|
|
76
|
+
},
|
|
62
77
|
'No shipping method selected': {
|
|
63
78
|
value: 'لم يتم تحديد طريقة الشحن',
|
|
64
79
|
},
|
|
@@ -98,6 +113,12 @@ export const stringsArabic = {
|
|
|
98
113
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
99
114
|
value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
|
|
100
115
|
},
|
|
116
|
+
'Please resolve the following errors:': {
|
|
117
|
+
value: 'الرجاء حل الأخطاء التالية:',
|
|
118
|
+
},
|
|
119
|
+
'Postal code': {
|
|
120
|
+
value: 'الرمز البريدي',
|
|
121
|
+
},
|
|
101
122
|
'Powered by': {
|
|
102
123
|
value: 'مشغل بواسطة',
|
|
103
124
|
},
|
|
@@ -140,6 +161,9 @@ export const stringsArabic = {
|
|
|
140
161
|
Spend: {
|
|
141
162
|
value: 'إنفاق',
|
|
142
163
|
},
|
|
164
|
+
State: {
|
|
165
|
+
value: 'ولاية',
|
|
166
|
+
},
|
|
143
167
|
'Taxes will apply to all orders': {
|
|
144
168
|
value: 'ستنطبق الضرائب على جميع الطلبات',
|
|
145
169
|
},
|
|
@@ -176,6 +200,9 @@ export const stringsArabic = {
|
|
|
176
200
|
'duty free': {
|
|
177
201
|
value: 'معفى من الرسوم',
|
|
178
202
|
},
|
|
203
|
+
'only supports Latin characters (A-Z, a-z)': {
|
|
204
|
+
value: 'يدعم فقط الأحرف اللاتينية (A-Z, a-z)',
|
|
205
|
+
},
|
|
179
206
|
'tax free': {
|
|
180
207
|
value: 'معفى من الضرائب',
|
|
181
208
|
},
|
|
@@ -5,6 +5,12 @@ export const stringsBase = {
|
|
|
5
5
|
Address: {
|
|
6
6
|
value: 'Address',
|
|
7
7
|
},
|
|
8
|
+
'Address line 1': {
|
|
9
|
+
value: 'Address line 1',
|
|
10
|
+
},
|
|
11
|
+
'Address line 2': {
|
|
12
|
+
value: 'Address line 2',
|
|
13
|
+
},
|
|
8
14
|
Back: {
|
|
9
15
|
value: 'Back',
|
|
10
16
|
},
|
|
@@ -14,12 +20,18 @@ export const stringsBase = {
|
|
|
14
20
|
'Cart subtotal': {
|
|
15
21
|
value: 'Cart subtotal',
|
|
16
22
|
},
|
|
23
|
+
City: {
|
|
24
|
+
value: 'City',
|
|
25
|
+
},
|
|
17
26
|
Contact: {
|
|
18
27
|
value: 'Contact',
|
|
19
28
|
},
|
|
20
29
|
'Continue to shipping': {
|
|
21
30
|
value: 'Continue to shipping',
|
|
22
31
|
},
|
|
32
|
+
Country: {
|
|
33
|
+
value: 'Country',
|
|
34
|
+
},
|
|
23
35
|
Customer: {
|
|
24
36
|
value: 'Customer',
|
|
25
37
|
},
|
|
@@ -59,6 +71,9 @@ export const stringsBase = {
|
|
|
59
71
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
60
72
|
value: 'Know about duties and taxes before you buy. Shop with confidence!',
|
|
61
73
|
},
|
|
74
|
+
Name: {
|
|
75
|
+
value: 'Name',
|
|
76
|
+
},
|
|
62
77
|
'No shipping method selected': {
|
|
63
78
|
value: 'No shipping method selected',
|
|
64
79
|
},
|
|
@@ -98,6 +113,12 @@ export const stringsBase = {
|
|
|
98
113
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
99
114
|
value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
|
|
100
115
|
},
|
|
116
|
+
'Please resolve the following errors:': {
|
|
117
|
+
value: 'Please resolve the following errors:',
|
|
118
|
+
},
|
|
119
|
+
'Postal code': {
|
|
120
|
+
value: 'Postal code',
|
|
121
|
+
},
|
|
101
122
|
'Powered by': {
|
|
102
123
|
value: 'Powered by',
|
|
103
124
|
},
|
|
@@ -140,6 +161,9 @@ export const stringsBase = {
|
|
|
140
161
|
Spend: {
|
|
141
162
|
value: 'Spend',
|
|
142
163
|
},
|
|
164
|
+
State: {
|
|
165
|
+
value: 'State',
|
|
166
|
+
},
|
|
143
167
|
'Taxes will apply to all orders': {
|
|
144
168
|
value: 'Taxes will apply to all orders',
|
|
145
169
|
},
|
|
@@ -176,6 +200,9 @@ export const stringsBase = {
|
|
|
176
200
|
'duty free': {
|
|
177
201
|
value: 'duty free',
|
|
178
202
|
},
|
|
203
|
+
'only supports Latin characters (A-Z, a-z)': {
|
|
204
|
+
value: 'only supports Latin characters (A-Z, a-z)',
|
|
205
|
+
},
|
|
179
206
|
'tax free': {
|
|
180
207
|
value: 'tax free',
|
|
181
208
|
},
|