@zonos/elements 1.2.4-alpha.1 → 1.2.4-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/cjs/{cart-4ddc2af5.js → cart-90f7c8c0.js} +36 -8
- package/dist/cjs/{getBorderRadius-a97a5f75.js → getBorderRadius-bf4a4276.js} +1 -1
- package/dist/cjs/{index-20cb112f.js → index-0dcccc22.js} +27 -16
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{isDarkColor-261fcf3d.js → isDarkColor-ff6ff183.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localization-11360fed.js → localization-9caf3397.js} +46 -8
- package/dist/cjs/{submitGtag-bb093547.js → submitGtag-b141b45d.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-banner.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +60 -18
- package/dist/cjs/zonos-checkout.cjs.entry.js +10 -8
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +12 -12
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-icon.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +3 -3
- package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-a0fa5b77.js → zonosStore-b43ef5db.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +48 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +1 -0
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +1 -0
- package/dist/collection/components/common/zonos-button/zonos-button.css +1 -0
- package/dist/collection/components/common/zonos-card/zonos-card.css +1 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.css +1 -0
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.css +1 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +1 -0
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +1 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -0
- package/dist/collection/components/common/zonos-icon/zonos-icon.css +1 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.css +1 -0
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +1 -0
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +1 -0
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +1 -0
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.css +1 -0
- package/dist/collection/components/component-template/zonos-component/zonos-component.css +1 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +1 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +9 -6
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +1 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +1 -0
- package/dist/collection/components/main/zonos-controller.css +1 -0
- package/dist/collection/components/main/zonos-controller.js +18 -16
- package/dist/collection/components/store/checkout/cart.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +3 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +1 -0
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +1 -0
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +1 -0
- package/dist/collection/components/utils/api/calculateLandedCost.js +9 -1
- package/dist/collection/components/utils/api/checkItemRestrictions.js +1 -1
- package/dist/collection/components/utils/api/getCountries.js +1 -1
- package/dist/collection/components/utils/api/getCountryLandedCost.js +1 -1
- package/dist/collection/components/utils/api/getExchangeRate.js +1 -1
- package/dist/collection/components/utils/api/getLocaleMessages.js +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +1 -1
- package/dist/collection/components/utils/api/getShippingZones.js +1 -1
- package/dist/collection/components/utils/api/{getZonosSetting.js → getZonosSettings.js} +3 -3
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +22 -0
- package/dist/collection/components/utils/handleFetch.js +19 -1
- package/dist/collection/components/utils/logging/log.js +20 -0
- package/dist/collection/environment.js +11 -10
- package/dist/collection/scripts/zonos.js +53 -0
- package/dist/collection/types/generated/graphql.customer.types.js +89 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +80 -6
- package/dist/components/cart.js +33 -5
- package/dist/components/localization.js +45 -7
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-badge2.js +1 -1
- package/dist/components/zonos-banner2.js +1 -1
- package/dist/components/zonos-button2.js +1 -1
- package/dist/components/zonos-card2.js +1 -1
- package/dist/components/zonos-cart-items2.js +1 -1
- package/dist/components/zonos-cart-subtotal2.js +1 -1
- package/dist/components/zonos-checkout-finish2.js +48 -5
- package/dist/components/zonos-checkout-payment2.js +1 -1
- package/dist/components/zonos-checkout.js +3 -1
- package/dist/components/zonos-collapse2.js +1 -1
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +6 -6
- package/dist/components/zonos-country-flag2.js +1 -1
- package/dist/components/zonos-country-select2.js +1 -1
- package/dist/components/zonos-custom-message2.js +1 -1
- package/dist/components/zonos-customer-info2.js +1 -1
- package/dist/components/zonos-dialog2.js +1 -1
- package/dist/components/zonos-hello-dialog-footer2.js +1 -1
- package/dist/components/zonos-hello-dialog2.js +1 -1
- package/dist/components/zonos-hello.js +2 -2
- package/dist/components/zonos-icon2.js +1 -1
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-logo2.js +1 -1
- package/dist/components/zonos-notification2.js +1 -1
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +1 -1
- package/dist/components/zonos-shipping-rich-radio2.js +1 -1
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/components/zonos-spinner2.js +1 -1
- package/dist/components/zonos-text2.js +1 -1
- package/dist/components/zonos-v-stack2.js +1 -1
- package/dist/esm/{cart-cd87f476.js → cart-b439be00.js} +36 -8
- package/dist/esm/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
- package/dist/esm/{index-3617e24c.js → index-36ff6342.js} +27 -16
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localization-f573428e.js → localization-a51ccbc2.js} +46 -8
- package/dist/esm/{submitGtag-75af52be.js → submitGtag-521826a2.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +8 -8
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-banner.entry.js +3 -3
- package/dist/esm/zonos-button_2.entry.js +6 -6
- package/dist/esm/zonos-card_2.entry.js +4 -4
- package/dist/esm/zonos-cart-items_10.entry.js +60 -18
- package/dist/esm/zonos-checkout.entry.js +10 -8
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +12 -12
- package/dist/esm/zonos-country-flag_4.entry.js +8 -8
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-icon.entry.js +3 -3
- package/dist/esm/zonos-notification.entry.js +3 -3
- package/dist/esm/zonos-payment.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +3 -3
- package/dist/esm/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
- package/dist/esm-es5/cart-b439be00.js +1 -0
- package/dist/esm-es5/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
- package/dist/esm-es5/index-36ff6342.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-f573428e.js → localization-a51ccbc2.js} +1 -1
- package/dist/esm-es5/{submitGtag-75af52be.js → submitGtag-521826a2.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
- package/dist/scripts/loadZonos.js +76 -3
- package/dist/scripts/zonos.js +76 -3
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -1
- package/dist/types/components/store/checkout/stripe.d.ts +1 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/{getZonosSetting.d.ts → getZonosSettings.d.ts} +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +5 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/scripts/zonos.d.ts +1 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +254 -7
- package/dist/types/types/generated/graphql.customer.types.ts +310 -7
- package/dist/types/types/generated/graphql.frontend.types.d.ts +210 -11
- package/dist/types/types/generated/graphql.frontend.types.ts +358 -11
- package/dist/types/types/global.d.ts +12 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-06fb9d1f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-77a7929b.js → p-089ba905.js} +1 -1
- package/dist/zonos-elements/{p-39a5e8e0.js → p-1685c8df.js} +1 -1
- package/dist/zonos-elements/p-18904b7c.system.js +2 -0
- package/dist/zonos-elements/p-1d4a970b.entry.js +1 -0
- package/dist/zonos-elements/{p-80ba24a8.system.js → p-24eed2a8.system.js} +1 -1
- package/dist/zonos-elements/{p-bec21999.system.js → p-24fbe845.system.js} +1 -1
- package/dist/zonos-elements/p-2801d868.entry.js +1 -0
- package/dist/zonos-elements/p-2a307c55.system.entry.js +1 -0
- package/dist/zonos-elements/p-2f43da39.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1f8b684a.js → p-3c6988d7.js} +1 -1
- package/dist/zonos-elements/p-3cea383b.system.entry.js +1 -0
- package/dist/zonos-elements/p-47390db7.system.entry.js +1 -0
- package/dist/zonos-elements/p-4846796a.js +1 -0
- package/dist/zonos-elements/p-494c77a7.entry.js +1 -0
- package/dist/zonos-elements/p-49f09b91.entry.js +1 -0
- package/dist/zonos-elements/p-4a15c5c7.system.entry.js +1 -0
- package/dist/zonos-elements/p-4bee0bff.system.entry.js +1 -0
- package/dist/zonos-elements/p-4d93275c.entry.js +1 -0
- package/dist/zonos-elements/p-4ed71bd7.entry.js +1 -0
- package/dist/zonos-elements/{p-8bbad467.js → p-55f49f1e.js} +1 -1
- package/dist/zonos-elements/p-560aa686.system.entry.js +1 -0
- package/dist/zonos-elements/p-639396bb.entry.js +1 -0
- package/dist/zonos-elements/p-67154df2.system.entry.js +1 -0
- package/dist/zonos-elements/p-67aec665.entry.js +1 -0
- package/dist/zonos-elements/p-684ed483.entry.js +1 -0
- package/dist/zonos-elements/p-89c210d6.entry.js +1 -0
- package/dist/zonos-elements/{p-0175125e.system.js → p-8c48b75e.system.js} +1 -1
- package/dist/zonos-elements/p-8c5595d9.system.entry.js +1 -0
- package/dist/zonos-elements/p-938803f4.entry.js +1 -0
- package/dist/zonos-elements/p-956efa27.js +2 -0
- package/dist/zonos-elements/{p-e694312d.entry.js → p-a0e36ed3.entry.js} +1 -1
- package/dist/zonos-elements/p-a376a37f.entry.js +1 -0
- package/dist/zonos-elements/{p-534dcbd4.system.js → p-a504f64f.system.js} +1 -1
- package/dist/zonos-elements/p-afe26069.entry.js +1 -0
- package/dist/zonos-elements/p-b4601210.system.entry.js +1 -0
- package/dist/zonos-elements/{p-779621e4.system.js → p-b51de536.system.js} +1 -1
- package/dist/zonos-elements/p-b6148206.entry.js +1 -0
- package/dist/zonos-elements/{p-643eeb24.system.js → p-b85be1ab.system.js} +1 -1
- package/dist/zonos-elements/p-c9348bb0.system.entry.js +1 -0
- package/dist/zonos-elements/p-d2217f09.system.js +1 -0
- package/dist/zonos-elements/p-d856a200.system.entry.js +1 -0
- package/dist/zonos-elements/{p-754bdfdb.system.js → p-da060b1c.system.js} +1 -1
- package/dist/zonos-elements/{p-08298e74.entry.js → p-e1f6ab97.entry.js} +1 -1
- package/dist/zonos-elements/p-e5ae22a9.system.entry.js +1 -0
- package/dist/zonos-elements/p-e98be2d0.system.entry.js +1 -0
- package/dist/zonos-elements/p-e9b832c5.entry.js +1 -0
- package/dist/zonos-elements/p-f141519c.system.entry.js +1 -0
- package/dist/zonos-elements/p-f367f2fe.system.entry.js +1 -0
- package/dist/zonos-elements/p-ff95f098.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +7 -6
- package/dist/esm-es5/cart-cd87f476.js +0 -1
- package/dist/esm-es5/index-3617e24c.js +0 -2
- package/dist/zonos-elements/p-03923a86.system.entry.js +0 -1
- package/dist/zonos-elements/p-1bddc7ca.system.entry.js +0 -1
- package/dist/zonos-elements/p-2228b050.entry.js +0 -1
- package/dist/zonos-elements/p-2466df77.entry.js +0 -1
- package/dist/zonos-elements/p-29b993c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-2a32dc0a.system.entry.js +0 -1
- package/dist/zonos-elements/p-2a666084.entry.js +0 -1
- package/dist/zonos-elements/p-2f1e9192.system.entry.js +0 -1
- package/dist/zonos-elements/p-44ddebe4.system.entry.js +0 -1
- package/dist/zonos-elements/p-4e8b5d86.system.entry.js +0 -1
- package/dist/zonos-elements/p-5a41b5fd.entry.js +0 -1
- package/dist/zonos-elements/p-5d0eceaa.entry.js +0 -1
- package/dist/zonos-elements/p-62ccb686.entry.js +0 -1
- package/dist/zonos-elements/p-660a588b.entry.js +0 -1
- package/dist/zonos-elements/p-6affe5cc.entry.js +0 -1
- package/dist/zonos-elements/p-72ea628d.system.js +0 -1
- package/dist/zonos-elements/p-7a15d841.entry.js +0 -1
- package/dist/zonos-elements/p-7a81ccb5.system.entry.js +0 -1
- package/dist/zonos-elements/p-83d100b8.entry.js +0 -1
- package/dist/zonos-elements/p-8ebc3ca5.system.entry.js +0 -1
- package/dist/zonos-elements/p-9c78d0ca.entry.js +0 -1
- package/dist/zonos-elements/p-9ef86de7.entry.js +0 -1
- package/dist/zonos-elements/p-ab46cee9.system.entry.js +0 -1
- package/dist/zonos-elements/p-b0268bc5.entry.js +0 -1
- package/dist/zonos-elements/p-b4db1620.entry.js +0 -1
- package/dist/zonos-elements/p-bec05c21.system.js +0 -2
- package/dist/zonos-elements/p-c299049e.js +0 -1
- package/dist/zonos-elements/p-cd4f8e13.system.entry.js +0 -1
- package/dist/zonos-elements/p-ceb2cd7b.system.entry.js +0 -1
- package/dist/zonos-elements/p-cf4545ed.system.entry.js +0 -1
- package/dist/zonos-elements/p-cf8aaa17.js +0 -2
- package/dist/zonos-elements/p-dc9b318c.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcf64928.system.entry.js +0 -1
- package/dist/zonos-elements/p-e1de2a1f.js +0 -1
- package/dist/zonos-elements/p-ec26fe57.entry.js +0 -1
- package/dist/zonos-elements/p-f8198015.system.entry.js +0 -1
- package/dist/zonos-elements/p-fcd4fc66.system.entry.js +0 -1
|
@@ -58,6 +58,10 @@ export const carrierAccountRateType = {
|
|
|
58
58
|
export const carrierAccountUsageCategoryCode = {
|
|
59
59
|
Shipping: 'SHIPPING',
|
|
60
60
|
};
|
|
61
|
+
export const carrierApiAccountProvider = {
|
|
62
|
+
General: 'GENERAL',
|
|
63
|
+
Organization: 'ORGANIZATION',
|
|
64
|
+
};
|
|
61
65
|
export const carrierApiRateTypeCode = {
|
|
62
66
|
Negotiated: 'NEGOTIATED',
|
|
63
67
|
Retail: 'RETAIL',
|
|
@@ -140,6 +144,11 @@ export const classificationBulkJobStatus = {
|
|
|
140
144
|
Initialized: 'INITIALIZED',
|
|
141
145
|
Processing: 'PROCESSING',
|
|
142
146
|
};
|
|
147
|
+
export const classificationCalculateSource = {
|
|
148
|
+
External: 'EXTERNAL',
|
|
149
|
+
Internal: 'INTERNAL',
|
|
150
|
+
Legacy: 'LEGACY',
|
|
151
|
+
};
|
|
143
152
|
export const clearanceType = {
|
|
144
153
|
Commercial: 'COMMERCIAL',
|
|
145
154
|
Postal: 'POSTAL',
|
|
@@ -862,6 +871,15 @@ export const currencySymbolLocation = {
|
|
|
862
871
|
After: 'AFTER',
|
|
863
872
|
Before: 'BEFORE',
|
|
864
873
|
};
|
|
874
|
+
export const customsDocumentFileType = {
|
|
875
|
+
Pdf: 'PDF',
|
|
876
|
+
Txt: 'TXT',
|
|
877
|
+
};
|
|
878
|
+
export const customsDocumentType = {
|
|
879
|
+
CertificateOfOrigin: 'CERTIFICATE_OF_ORIGIN',
|
|
880
|
+
CommercialInvoice: 'COMMERCIAL_INVOICE',
|
|
881
|
+
Other: 'OTHER',
|
|
882
|
+
};
|
|
865
883
|
export const customsSpecAttributeType = {
|
|
866
884
|
AccountNumber: 'ACCOUNT_NUMBER',
|
|
867
885
|
B13A: 'B13A',
|
|
@@ -960,6 +978,20 @@ export const elementsUiTheme = {
|
|
|
960
978
|
Light: 'LIGHT',
|
|
961
979
|
System: 'SYSTEM',
|
|
962
980
|
};
|
|
981
|
+
export const emailTemplateProviderType = {
|
|
982
|
+
Sendgrid: 'SENDGRID',
|
|
983
|
+
};
|
|
984
|
+
export const emailTemplateStatus = {
|
|
985
|
+
Primary: 'PRIMARY',
|
|
986
|
+
Standard: 'STANDARD',
|
|
987
|
+
};
|
|
988
|
+
export const emailTemplateType = {
|
|
989
|
+
AbandonedCart: 'ABANDONED_CART',
|
|
990
|
+
OrderCanceled: 'ORDER_CANCELED',
|
|
991
|
+
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
992
|
+
OrderShipped: 'ORDER_SHIPPED',
|
|
993
|
+
Unknown: 'UNKNOWN',
|
|
994
|
+
};
|
|
963
995
|
export const endOfDayBehavior = {
|
|
964
996
|
Exempt: 'EXEMPT',
|
|
965
997
|
Required: 'REQUIRED',
|
|
@@ -1207,6 +1239,11 @@ export const labelStatusType = {
|
|
|
1207
1239
|
Created: 'CREATED',
|
|
1208
1240
|
Voided: 'VOIDED',
|
|
1209
1241
|
};
|
|
1242
|
+
export const landedCostAdjustmentType = {
|
|
1243
|
+
CartTotal: 'CART_TOTAL',
|
|
1244
|
+
Item: 'ITEM',
|
|
1245
|
+
Shipping: 'SHIPPING',
|
|
1246
|
+
};
|
|
1210
1247
|
export const landedCostCalculationMethod = {
|
|
1211
1248
|
Dap: 'DAP',
|
|
1212
1249
|
Ddp: 'DDP',
|
|
@@ -1229,12 +1266,15 @@ export const landedCostFeeType = {
|
|
|
1229
1266
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
1230
1267
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
1231
1268
|
Duty: 'DUTY',
|
|
1269
|
+
InclusivePriceAdjustment: 'INCLUSIVE_PRICE_ADJUSTMENT',
|
|
1270
|
+
InclusivePricing: 'INCLUSIVE_PRICING',
|
|
1232
1271
|
Item: 'ITEM',
|
|
1233
1272
|
Other: 'OTHER',
|
|
1234
1273
|
Shipping: 'SHIPPING',
|
|
1235
1274
|
ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
|
|
1236
1275
|
};
|
|
1237
1276
|
export const landedCostGuaranteeCode = {
|
|
1277
|
+
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1238
1278
|
NotApplicable: 'NOT_APPLICABLE',
|
|
1239
1279
|
Zonos: 'ZONOS',
|
|
1240
1280
|
};
|
|
@@ -1248,6 +1288,11 @@ export const landedCostMethod = {
|
|
|
1248
1288
|
DdpForced: 'DDP_FORCED',
|
|
1249
1289
|
DdpPreferred: 'DDP_PREFERRED',
|
|
1250
1290
|
};
|
|
1291
|
+
export const landedCostQuoteType = {
|
|
1292
|
+
Auditing: 'AUDITING',
|
|
1293
|
+
Checkout: 'CHECKOUT',
|
|
1294
|
+
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1295
|
+
};
|
|
1251
1296
|
export const landedCostTariffRate = {
|
|
1252
1297
|
Exact: 'EXACT',
|
|
1253
1298
|
Maximum: 'MAXIMUM',
|
|
@@ -1397,6 +1442,10 @@ export const notificationActiveStatus = {
|
|
|
1397
1442
|
Disabled: 'DISABLED',
|
|
1398
1443
|
Enabled: 'ENABLED',
|
|
1399
1444
|
};
|
|
1445
|
+
export const orderCompleteBillingMethod = {
|
|
1446
|
+
BillingDgs: 'BILLING_DGS',
|
|
1447
|
+
Legacy: 'LEGACY',
|
|
1448
|
+
};
|
|
1400
1449
|
export const orderStatus = {
|
|
1401
1450
|
Canceled: 'CANCELED',
|
|
1402
1451
|
Completed: 'COMPLETED',
|
|
@@ -1409,6 +1458,10 @@ export const orderTransactionBillingMethod = {
|
|
|
1409
1458
|
BillingDgs: 'BILLING_DGS',
|
|
1410
1459
|
Legacy: 'LEGACY',
|
|
1411
1460
|
};
|
|
1461
|
+
export const organizationBusinessUnit = {
|
|
1462
|
+
Ecommerce: 'ECOMMERCE',
|
|
1463
|
+
SupplyChain: 'SUPPLY_CHAIN',
|
|
1464
|
+
};
|
|
1412
1465
|
export const organizationStatus = {
|
|
1413
1466
|
Active: 'ACTIVE',
|
|
1414
1467
|
Churned: 'CHURNED',
|
|
@@ -1436,6 +1489,10 @@ export const packageLocation = {
|
|
|
1436
1489
|
Rear: 'REAR',
|
|
1437
1490
|
Side: 'SIDE',
|
|
1438
1491
|
};
|
|
1492
|
+
export const packagingOptionDeleteAction = {
|
|
1493
|
+
Delete: 'DELETE',
|
|
1494
|
+
Disable: 'DISABLE',
|
|
1495
|
+
};
|
|
1439
1496
|
export const packagingOptionSource = {
|
|
1440
1497
|
Default: 'DEFAULT',
|
|
1441
1498
|
Dynamic: 'DYNAMIC',
|
|
@@ -1536,6 +1593,10 @@ export const shipmentCartonSpecialService = {
|
|
|
1536
1593
|
DryIce: 'DRY_ICE',
|
|
1537
1594
|
SignatureOption: 'SIGNATURE_OPTION',
|
|
1538
1595
|
};
|
|
1596
|
+
export const shipmentConsolidationStatus = {
|
|
1597
|
+
Closed: 'CLOSED',
|
|
1598
|
+
Open: 'OPEN',
|
|
1599
|
+
};
|
|
1539
1600
|
export const shipmentSpecialService = {
|
|
1540
1601
|
Consolidation: 'CONSOLIDATION',
|
|
1541
1602
|
CutFlowers: 'CUT_FLOWERS',
|
|
@@ -1569,6 +1630,20 @@ export const stripeBillingFrequency = {
|
|
|
1569
1630
|
Week: 'WEEK',
|
|
1570
1631
|
Year: 'YEAR',
|
|
1571
1632
|
};
|
|
1633
|
+
export const stripeChargeStatus = {
|
|
1634
|
+
Failed: 'FAILED',
|
|
1635
|
+
Pending: 'PENDING',
|
|
1636
|
+
Succeeded: 'SUCCEEDED',
|
|
1637
|
+
};
|
|
1638
|
+
export const stripePaymentIntentStatus = {
|
|
1639
|
+
Canceled: 'CANCELED',
|
|
1640
|
+
Processing: 'PROCESSING',
|
|
1641
|
+
RequiresAction: 'REQUIRES_ACTION',
|
|
1642
|
+
RequiresCapture: 'REQUIRES_CAPTURE',
|
|
1643
|
+
RequiresConfirmation: 'REQUIRES_CONFIRMATION',
|
|
1644
|
+
RequiresPaymentMethod: 'REQUIRES_PAYMENT_METHOD',
|
|
1645
|
+
Succeeded: 'SUCCEEDED',
|
|
1646
|
+
};
|
|
1572
1647
|
export const stripePriceBillingScheme = {
|
|
1573
1648
|
PerUnit: 'PER_UNIT',
|
|
1574
1649
|
Tiered: 'TIERED',
|
|
@@ -1637,6 +1712,7 @@ export const transitTypeCode = {
|
|
|
1637
1712
|
export const usageRecordTypeCode = {
|
|
1638
1713
|
ApiUsage: 'API_USAGE',
|
|
1639
1714
|
LcgInvoicing: 'LCG_INVOICING',
|
|
1715
|
+
OrderComplete: 'ORDER_COMPLETE',
|
|
1640
1716
|
OrderTransactionInvoicing: 'ORDER_TRANSACTION_INVOICING',
|
|
1641
1717
|
};
|
|
1642
1718
|
export const visibilityCode = {
|
|
@@ -1679,8 +1755,12 @@ export const volumeUnitCode = {
|
|
|
1679
1755
|
QuartUsDry: 'QUART_US_DRY',
|
|
1680
1756
|
};
|
|
1681
1757
|
export const wcoVersion = {
|
|
1758
|
+
Wco_1997: 'WCO_1997',
|
|
1759
|
+
Wco_2002: 'WCO_2002',
|
|
1760
|
+
Wco_2007: 'WCO_2007',
|
|
1682
1761
|
Wco_2017: 'WCO_2017',
|
|
1683
1762
|
Wco_2022: 'WCO_2022',
|
|
1763
|
+
Wco_2027: 'WCO_2027',
|
|
1684
1764
|
};
|
|
1685
1765
|
export const weightUnitCode = {
|
|
1686
1766
|
Gram: 'GRAM',
|
|
@@ -1720,9 +1800,18 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1720
1800
|
FulfillmentCenter(variables, requestHeaders) {
|
|
1721
1801
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'FulfillmentCenter', 'query');
|
|
1722
1802
|
},
|
|
1803
|
+
GetCheckoutSession(variables, requestHeaders) {
|
|
1804
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetCheckoutSession', 'query');
|
|
1805
|
+
},
|
|
1806
|
+
GetOrder(variables, requestHeaders) {
|
|
1807
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetOrder', 'query');
|
|
1808
|
+
},
|
|
1723
1809
|
OnlineStoreSettings(variables, requestHeaders) {
|
|
1724
1810
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'OnlineStoreSettings', 'query');
|
|
1725
1811
|
},
|
|
1812
|
+
OrderUpdateAccountOrderNumber(variables, requestHeaders) {
|
|
1813
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'OrderUpdateAccountOrderNumber', 'mutation');
|
|
1814
|
+
},
|
|
1726
1815
|
ShippingZones(variables, requestHeaders) {
|
|
1727
1816
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'ShippingZones', 'query');
|
|
1728
1817
|
},
|
|
@@ -2,6 +2,44 @@ export const cursorOrdering = {
|
|
|
2
2
|
Asc: 'ASC',
|
|
3
3
|
Desc: 'DESC',
|
|
4
4
|
};
|
|
5
|
+
export const featureAspectKeyEnum = {
|
|
6
|
+
Checkout_2_0: 'checkout_2_0',
|
|
7
|
+
ClassifySingleRequest: 'classify_single_request',
|
|
8
|
+
ComConsolidation: 'com_consolidation',
|
|
9
|
+
DashboardCheckout_2Settings: 'dashboard_checkout_2_settings',
|
|
10
|
+
DashboardHello_2Settings: 'dashboard_hello_2_settings',
|
|
11
|
+
DashboardOrderApprove: 'dashboard_order_approve',
|
|
12
|
+
DashboardOrderApproveNoCapture: 'dashboard_order_approve_no_capture',
|
|
13
|
+
Dashboard_909Settings: 'dashboard_909_settings',
|
|
14
|
+
DocsSearchOpenAiQa: 'docs_search_open_ai_qa',
|
|
15
|
+
ExploreFrontendMutation: 'explore_frontend_mutation',
|
|
16
|
+
ExploreWeaviateMutation: 'explore_weaviate_mutation',
|
|
17
|
+
FeatureAspect: 'feature_aspect',
|
|
18
|
+
LocaleMessage: 'locale_message',
|
|
19
|
+
NewCheckoutBeta: 'new_checkout_beta',
|
|
20
|
+
PageAuditor: 'page_auditor',
|
|
21
|
+
PromptExplorer: 'prompt_explorer',
|
|
22
|
+
TeamAuditor: 'team_auditor',
|
|
23
|
+
};
|
|
24
|
+
export const featureAudienceNameEnum = {
|
|
25
|
+
AccountsReceivable: 'accounts_receivable',
|
|
26
|
+
CheckoutSales: 'checkout_sales',
|
|
27
|
+
CustomerSuccess: 'customer_success',
|
|
28
|
+
Designer: 'designer',
|
|
29
|
+
DocsContributor: 'docs_contributor',
|
|
30
|
+
Executive: 'executive',
|
|
31
|
+
ExecutiveAssistant: 'executive_assistant',
|
|
32
|
+
Finance: 'finance',
|
|
33
|
+
FrontendEngineer: 'frontend_engineer',
|
|
34
|
+
I18nKnownLanguage: 'i18n_known_language',
|
|
35
|
+
I18nSales: 'i18n_sales',
|
|
36
|
+
NewCheckoutMerchant: 'new_checkout_merchant',
|
|
37
|
+
Onboarding: 'onboarding',
|
|
38
|
+
PrincipalEngineer: 'principal_engineer',
|
|
39
|
+
ProServeHead: 'pro_serve_head',
|
|
40
|
+
ProductManager: 'product_manager',
|
|
41
|
+
TechLead: 'tech_lead',
|
|
42
|
+
};
|
|
5
43
|
export const localeElementsSupportedLocationCodeEnum = {
|
|
6
44
|
Ar: 'ar',
|
|
7
45
|
Da: 'da',
|
|
@@ -376,20 +414,56 @@ export const promptBulkJobStatusEnum = {
|
|
|
376
414
|
InProgress: 'in_progress',
|
|
377
415
|
Queued: 'queued',
|
|
378
416
|
};
|
|
379
|
-
export const promptCategoryCodeEnum = {
|
|
380
|
-
SeoMetaDescription: 'seo_meta_description',
|
|
381
|
-
SeoMetaTitle: 'seo_meta_title',
|
|
382
|
-
SeoStructuredData: 'seo_structured_data',
|
|
383
|
-
SeoSummary: 'seo_summary',
|
|
384
|
-
};
|
|
385
417
|
const defaultWrapper = (action, _operationName, _operationType) => action();
|
|
386
418
|
export function getSdk(client, withWrapper = defaultWrapper) {
|
|
387
419
|
return {
|
|
388
420
|
CreateErrorEvent(variables, requestHeaders) {
|
|
389
421
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateErrorEvent', 'mutation');
|
|
390
422
|
},
|
|
423
|
+
DeleteAllStoreReserveOrders(variables, requestHeaders) {
|
|
424
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteAllStoreReserveOrders', 'mutation');
|
|
425
|
+
},
|
|
426
|
+
DeleteBigCommerceSettings(variables, requestHeaders) {
|
|
427
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteBigCommerceSettings', 'mutation');
|
|
428
|
+
},
|
|
429
|
+
DeleteOrderImportLock(variables, requestHeaders) {
|
|
430
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteOrderImportLock', 'mutation');
|
|
431
|
+
},
|
|
432
|
+
DeleteReserveOrders(variables, requestHeaders) {
|
|
433
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteReserveOrders', 'mutation');
|
|
434
|
+
},
|
|
435
|
+
GetAudienceByAspectKey(variables, requestHeaders) {
|
|
436
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetAudienceByAspectKey', 'query');
|
|
437
|
+
},
|
|
438
|
+
GetBigCommerceSettings(variables, requestHeaders) {
|
|
439
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetBigCommerceSettings', 'query');
|
|
440
|
+
},
|
|
441
|
+
GetReserveOrder(variables, requestHeaders) {
|
|
442
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetReserveOrder', 'query');
|
|
443
|
+
},
|
|
444
|
+
GetSettingsReserveOrders(variables, requestHeaders) {
|
|
445
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSettingsReserveOrders', 'query');
|
|
446
|
+
},
|
|
447
|
+
InsertBigCommerceSettingsEvent(variables, requestHeaders) {
|
|
448
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'InsertBigCommerceSettingsEvent', 'mutation');
|
|
449
|
+
},
|
|
450
|
+
InsertOrderImportLock(variables, requestHeaders) {
|
|
451
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'InsertOrderImportLock', 'mutation');
|
|
452
|
+
},
|
|
453
|
+
InsertReserveOrder(variables, requestHeaders) {
|
|
454
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'InsertReserveOrder', 'mutation');
|
|
455
|
+
},
|
|
456
|
+
InsertReserveOrderEvent(variables, requestHeaders) {
|
|
457
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'InsertReserveOrderEvent', 'mutation');
|
|
458
|
+
},
|
|
391
459
|
LocaleCountryMessages(variables, requestHeaders) {
|
|
392
460
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'LocaleCountryMessages', 'query');
|
|
393
461
|
},
|
|
462
|
+
UpdateReserveOrder(variables, requestHeaders) {
|
|
463
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'UpdateReserveOrder', 'mutation');
|
|
464
|
+
},
|
|
465
|
+
UpsertBigCommerceSettings(variables, requestHeaders) {
|
|
466
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'UpsertBigCommerceSettings', 'mutation');
|
|
467
|
+
},
|
|
394
468
|
};
|
|
395
469
|
}
|
package/dist/components/cart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as zonosStore, c as createStore } from './zonosStore.js';
|
|
2
2
|
import { h as handleFetch, l as logError, a as log, b as localizationStore, t as translate } from './localization.js';
|
|
3
3
|
import { i as isDarkColor } from './isDarkColor.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius.js';
|
|
@@ -32,9 +32,36 @@ const prepCalculateLandedCost = () => {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
36
|
+
var _a;
|
|
37
|
+
const data = prepCalculateLandedCost();
|
|
38
|
+
const landedCost = await buildLandedCost(data.checkoutSessionId, data.contact, data.shippingAddress);
|
|
39
|
+
if (!landedCost) {
|
|
40
|
+
throw new Error('Failed to build landed cost');
|
|
41
|
+
}
|
|
42
|
+
// Validate the landed cost object to make sure the returned value from buildLandedCost has a valid schema
|
|
43
|
+
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/validate-landed-cost`, {
|
|
44
|
+
body: landedCost,
|
|
45
|
+
headers: {
|
|
46
|
+
'Content-Type': 'application/json',
|
|
47
|
+
},
|
|
48
|
+
method: 'POST',
|
|
49
|
+
});
|
|
50
|
+
if (!json || errors.length) {
|
|
51
|
+
throw new Error(`Invalid landed cost object: ${((_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message) || 'Unknown error'}`);
|
|
52
|
+
}
|
|
53
|
+
return landedCost;
|
|
54
|
+
};
|
|
55
|
+
|
|
35
56
|
const calculateLandedCost = async (abortController) => {
|
|
57
|
+
// If buildLandedCost callback is supplied, use that instead of our regular request to '/calculate-landed-cost'
|
|
58
|
+
const buildLandedCost = zonosStore.checkoutSettings.buildLandedCost;
|
|
59
|
+
if (buildLandedCost) {
|
|
60
|
+
const json = await triggerBuildLandedCost(buildLandedCost);
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
36
63
|
// request to get landed cost info
|
|
37
|
-
const url = `${"https://v1.route.js.zonos.com"}/api/calculate-landed-cost`;
|
|
64
|
+
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/calculate-landed-cost`;
|
|
38
65
|
const { errors, json } = await handleFetch(url, {
|
|
39
66
|
body: prepCalculateLandedCost(),
|
|
40
67
|
method: 'POST',
|
|
@@ -89,6 +116,7 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStor
|
|
|
89
116
|
stripeAddressElement: null,
|
|
90
117
|
stripeAddressEventData: null,
|
|
91
118
|
stripeAddressUsedWhenFetchingLC: null,
|
|
119
|
+
stripeBillingAddressElement: null,
|
|
92
120
|
stripeElements: null,
|
|
93
121
|
stripeElementsOptions: null,
|
|
94
122
|
stripeLinkElement: null,
|
|
@@ -334,7 +362,7 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
334
362
|
return false;
|
|
335
363
|
}
|
|
336
364
|
stripeStore.isFetchingSession = true;
|
|
337
|
-
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/create-checkout-session`, {
|
|
365
|
+
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/create-checkout-session`, {
|
|
338
366
|
body: {
|
|
339
367
|
currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
|
|
340
368
|
itemsAmount: total,
|
|
@@ -362,7 +390,7 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
362
390
|
const stripeStoreUpdateCheckoutSession = async ({ currency, id, itemsAmount, landedCostId, presentmentCountryCode, }) => {
|
|
363
391
|
// No need to set loading state here because this function will be called under the hood to update
|
|
364
392
|
// landed cost id for the section.
|
|
365
|
-
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/update-checkout-session`, {
|
|
393
|
+
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/update-checkout-session`, {
|
|
366
394
|
body: {
|
|
367
395
|
currency,
|
|
368
396
|
id,
|
|
@@ -474,7 +502,7 @@ const cartStoreReCalculateTotal = async ({ currency, itemsAmount, landedCostId,
|
|
|
474
502
|
}
|
|
475
503
|
// update checkout session
|
|
476
504
|
if (!cartStore.checkoutSessionId) {
|
|
477
|
-
logError('Could update cart total without checkout session id');
|
|
505
|
+
logError('Could not update cart total without checkout session id');
|
|
478
506
|
return false;
|
|
479
507
|
}
|
|
480
508
|
const { json } = await stripeStoreUpdateCheckoutSession({
|
|
@@ -3161,20 +3161,38 @@ const handleRequest = async (url, options) => {
|
|
|
3161
3161
|
};
|
|
3162
3162
|
}
|
|
3163
3163
|
};
|
|
3164
|
+
function encodeString(text) {
|
|
3165
|
+
try {
|
|
3166
|
+
// encode the string, remove the "=" at the end of the encoded string
|
|
3167
|
+
const encodedString = btoa(text).replace(/=/g, '');
|
|
3168
|
+
return encodedString;
|
|
3169
|
+
}
|
|
3170
|
+
catch (error) {
|
|
3171
|
+
// return the reverse string if the encoding failed
|
|
3172
|
+
return text
|
|
3173
|
+
.replace(/[^A-Za-z0-9]/g, '')
|
|
3174
|
+
.split('')
|
|
3175
|
+
.reverse()
|
|
3176
|
+
.join('');
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3164
3179
|
const handleFetch = async (url, _opts) => {
|
|
3165
3180
|
const opts = __rest(_opts || {}, []);
|
|
3166
3181
|
const body = opts.body ? JSON.stringify(opts.body) : undefined;
|
|
3167
3182
|
const method = opts.method || 'GET';
|
|
3183
|
+
// adding credentialtoken to the url so that the request will be cached differently for each store
|
|
3184
|
+
const modifiedUrl = new URL(url);
|
|
3185
|
+
modifiedUrl.searchParams.set('zToken', encodeString(window.location.hostname));
|
|
3168
3186
|
// headers content type
|
|
3169
3187
|
const headers = Object.assign({ 'Content-Type': 'application/json', 'Zonos-Is-BigCommerce': window.Zonos.isBigCommerce.toString(), 'Zonos-Referer': window.location.hostname, 'Zonos-Version': window.Zonos.version, credentialtoken: window.Zonos.zonosApiKey }, opts.headers);
|
|
3170
3188
|
const options = Object.assign(Object.assign({}, opts), { body: method === 'GET' ? undefined : body, headers,
|
|
3171
3189
|
method });
|
|
3172
|
-
return handleRequest(
|
|
3190
|
+
return handleRequest(modifiedUrl.toString(), options);
|
|
3173
3191
|
};
|
|
3174
3192
|
|
|
3175
3193
|
const getCountries = async () => {
|
|
3176
3194
|
try {
|
|
3177
|
-
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/get-countries`, {
|
|
3195
|
+
const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/get-countries`, {
|
|
3178
3196
|
method: 'GET',
|
|
3179
3197
|
});
|
|
3180
3198
|
if (errors.length || !json) {
|
|
@@ -3197,7 +3215,7 @@ const getCountryLandedCost = async (countryCode) => {
|
|
|
3197
3215
|
if (!countryCode) {
|
|
3198
3216
|
return null;
|
|
3199
3217
|
}
|
|
3200
|
-
const url = `${"https://v1.route.js.zonos.com"}/api/country-landed-cost/${countryCode}`;
|
|
3218
|
+
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/country-landed-cost/${countryCode}`;
|
|
3201
3219
|
const { errors, json } = await handleFetch(url);
|
|
3202
3220
|
if (errors.length || !json) {
|
|
3203
3221
|
logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
|
|
@@ -3212,7 +3230,7 @@ const getExchangeRate = async ({ country, isGuaranteed, sourceCurrency, targetCu
|
|
|
3212
3230
|
if (sourceCurrency === targetCurrency && !isGuaranteed) {
|
|
3213
3231
|
return { exchangeRate: null, maxAge: null };
|
|
3214
3232
|
}
|
|
3215
|
-
const url = `${"https://v1.route.js.zonos.com"}/api/exchange-rates?sourceCurrency=${sourceCurrency}&targetCurrency=${targetCurrency}&isGuaranteed=${isGuaranteed}&country=${country}
|
|
3233
|
+
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/exchange-rates?sourceCurrency=${sourceCurrency}&targetCurrency=${targetCurrency}&isGuaranteed=${isGuaranteed}&country=${country}`;
|
|
3216
3234
|
const { errors, json } = await handleFetch(url);
|
|
3217
3235
|
if (errors.length || !json) {
|
|
3218
3236
|
logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
|
|
@@ -3229,7 +3247,7 @@ const getExchangeRate = async ({ country, isGuaranteed, sourceCurrency, targetCu
|
|
|
3229
3247
|
|
|
3230
3248
|
const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
|
|
3231
3249
|
var _a;
|
|
3232
|
-
const url = `${"https://v1.route.js.zonos.com"}/api/locale-messages?countryCode=${countryCode}&storeId=${storeId}&localeTo=${localeTo}`;
|
|
3250
|
+
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/locale-messages?countryCode=${countryCode}&storeId=${storeId}&localeTo=${localeTo}`;
|
|
3233
3251
|
const { errors, json } = await handleFetch(url);
|
|
3234
3252
|
if (errors.length || !json) {
|
|
3235
3253
|
// eslint-disable-next-line no-console
|
|
@@ -3251,7 +3269,7 @@ const getLocalization = async () => {
|
|
|
3251
3269
|
// load and use country from session storage when zCountry query param is not present
|
|
3252
3270
|
const countryLoadedSession = window.sessionStorage.getItem('zonos--country');
|
|
3253
3271
|
const zCountry = getZCountryUrlParam(currentUrl.searchParams) || countryLoadedSession;
|
|
3254
|
-
const localizationUrl = new URL(`${"https://v1.route.js.zonos.com"}/api/localization`);
|
|
3272
|
+
const localizationUrl = new URL(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/localization`);
|
|
3255
3273
|
if (zCountry) {
|
|
3256
3274
|
localizationUrl.searchParams.set('zCountry', zCountry);
|
|
3257
3275
|
}
|
|
@@ -3274,7 +3292,7 @@ const getLocalization = async () => {
|
|
|
3274
3292
|
|
|
3275
3293
|
const getShippingZones = async () => {
|
|
3276
3294
|
var _a, _b;
|
|
3277
|
-
const url = `${"https://v1.route.js.zonos.com"}/api/shipping-zones`;
|
|
3295
|
+
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/shipping-zones`;
|
|
3278
3296
|
const { errors, json } = await handleFetch(url);
|
|
3279
3297
|
if (errors.length || !json) {
|
|
3280
3298
|
logError(`Error fetching shipping zones: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
|
|
@@ -3352,10 +3370,30 @@ const isValidSelector = (selector) => {
|
|
|
3352
3370
|
};
|
|
3353
3371
|
|
|
3354
3372
|
const log = (message, type, ...additionalInfo) => {
|
|
3373
|
+
var _a;
|
|
3355
3374
|
// if type is error and debug is false, do not log
|
|
3356
3375
|
if (!window.Zonos.debug) {
|
|
3357
3376
|
return;
|
|
3358
3377
|
}
|
|
3378
|
+
let loggingIframe = document.querySelector('iframe#zonos---debug-logging-iframe');
|
|
3379
|
+
if (!loggingIframe) {
|
|
3380
|
+
// add a hidden iframe
|
|
3381
|
+
loggingIframe = document.createElement('iframe');
|
|
3382
|
+
loggingIframe.id = 'zonos---debug-logging-iframe';
|
|
3383
|
+
loggingIframe.style.display = 'none';
|
|
3384
|
+
loggingIframe.style.opacity = '0';
|
|
3385
|
+
loggingIframe.style.position = 'absolute';
|
|
3386
|
+
loggingIframe.style.top = '-9999px';
|
|
3387
|
+
loggingIframe.style.left = '-9999px';
|
|
3388
|
+
loggingIframe.style.width = '1px';
|
|
3389
|
+
loggingIframe.style.height = '1px';
|
|
3390
|
+
loggingIframe.style.border = 'none';
|
|
3391
|
+
loggingIframe.style.overflow = 'hidden';
|
|
3392
|
+
loggingIframe.style.visibility = 'hidden';
|
|
3393
|
+
document.body.appendChild(loggingIframe);
|
|
3394
|
+
}
|
|
3395
|
+
// use the logging iframe's console to log just in case the console is disabled (overriden) by the site owner
|
|
3396
|
+
const console = ((_a = loggingIframe.contentWindow) === null || _a === void 0 ? void 0 : _a.window.console) || window.console;
|
|
3359
3397
|
switch (type) {
|
|
3360
3398
|
case 'warn':
|
|
3361
3399
|
// eslint-disable-next-line no-console
|
|
@@ -3,7 +3,7 @@ import { s as stripeStore, k as stripeStorePrefetchLandedCost } from './cart.js'
|
|
|
3
3
|
import { l as logError, b as localizationStore } from './localization.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
|
-
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block}.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)}";
|
|
6
|
+
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)}";
|
|
7
7
|
|
|
8
8
|
const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { d as zonosStoreFontFamily } from './zonosStore.js';
|
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
|
-
const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
6
|
+
const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
7
7
|
|
|
8
8
|
const ZonosBadge = /*@__PURE__*/ proxyCustomElement(class ZonosBadge extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { d as zonosStoreFontFamily } from './zonosStore.js';
|
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
|
-
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
6
|
+
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
7
7
|
|
|
8
8
|
const ZonosBanner = /*@__PURE__*/ proxyCustomElement(class ZonosBanner extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -20,7 +20,7 @@ const getButtonTheme = (overrideBackground) => {
|
|
|
20
20
|
return buttonTheme;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";
|
|
23
|
+
const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";
|
|
24
24
|
|
|
25
25
|
const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends HTMLElement {
|
|
26
26
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { d as zonosStoreFontFamily } from './zonosStore.js';
|
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
|
-
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
6
|
+
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
7
7
|
|
|
8
8
|
const ZonosCard = /*@__PURE__*/ proxyCustomElement(class ZonosCard extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { c as cartStore } from './cart.js';
|
|
|
3
3
|
import { f as formatCurrency } from './formatCurrency.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
|
-
const zonosCartItemsCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";
|
|
6
|
+
const zonosCartItemsCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";
|
|
7
7
|
|
|
8
8
|
const ZonosCartItems = /*@__PURE__*/ proxyCustomElement(class ZonosCartItems extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -12,7 +12,7 @@ const InfoIcon = `<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org
|
|
|
12
12
|
</svg>
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
|
-
const zonosCartSubtotalCss = ":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";
|
|
15
|
+
const zonosCartSubtotalCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";
|
|
16
16
|
|
|
17
17
|
const ZonosCartSubtotal = /*@__PURE__*/ proxyCustomElement(class ZonosCartSubtotal extends HTMLElement {
|
|
18
18
|
constructor() {
|