@zonos/elements 1.3.14 → 1.3.15-alpha.1
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-5d196917.js → cart-1b1d39af.js} +162 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sendErrorLog-3e181984.js → sendErrorLog-29e50f7e.js} +1 -1
- package/dist/cjs/{submitGtag-44e3a996.js → submitGtag-ab287a34.js} +1 -1
- package/dist/cjs/zonos-address_4.cjs.entry.js +9 -9
- package/dist/cjs/zonos-badge_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +90 -69
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -3
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +2 -2
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +17 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +40 -28
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +23 -23
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +3 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +5 -10
- package/dist/collection/components/store/checkout/stripe.js +18 -8
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -3
- package/dist/collection/components/store/translationStore/strings.base.js +6 -3
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -3
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -3
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -3
- package/dist/collection/components/store/translationStore/strings.french.js +6 -3
- package/dist/collection/components/store/translationStore/strings.german.js +6 -3
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -3
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -3
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -3
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -3
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -3
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -3
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -3
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -3
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -3
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -3
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -3
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -3
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +1 -0
- package/dist/collection/components/utils/formatDate.js +6 -2
- package/dist/collection/types/generated/graphql.customer.types.js +45 -44
- package/dist/collection/types/generated/graphql.frontend.types.js +48 -48
- package/dist/components/stripe.js +162 -71
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +3 -3
- package/dist/components/zonos-card2.js +3 -3
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +1 -1
- package/dist/components/zonos-checkout-payment2.js +18 -17
- package/dist/components/zonos-checkout-progress-tabs2.js +4 -4
- package/dist/components/zonos-checkout.js +3 -1
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +2 -2
- package/dist/components/zonos-custom-message2.js +2 -2
- package/dist/components/zonos-customer-info2.js +41 -28
- package/dist/components/zonos-dialog2.js +3 -3
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +4 -4
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +2 -2
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping2.js +25 -24
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/{cart-515aac56.js → cart-10bcd2e0.js} +162 -71
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sendErrorLog-e4546d7b.js → sendErrorLog-8642e94a.js} +1 -1
- package/dist/esm/{submitGtag-6767c31f.js → submitGtag-84886899.js} +1 -1
- package/dist/esm/zonos-address_4.entry.js +9 -9
- package/dist/esm/zonos-badge_2.entry.js +5 -5
- package/dist/esm/zonos-button_2.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +6 -6
- package/dist/esm/zonos-cart-items_10.entry.js +90 -69
- package/dist/esm/zonos-checkout.entry.js +5 -3
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +7 -7
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +2 -2
- package/dist/esm/zonos-select-dialog-header_2.entry.js +4 -4
- package/dist/esm-es5/cart-10bcd2e0.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/sendErrorLog-8642e94a.js +1 -0
- package/dist/esm-es5/{submitGtag-6767c31f.js → submitGtag-84886899.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.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.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-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.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/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +4 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +3 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -4
- package/dist/types/components/store/checkout/cart.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -3
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -3
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +1 -0
- package/dist/types/components/utils/formatDate.d.ts +1 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +36 -35
- package/dist/types/types/generated/graphql.customer.types.ts +100 -99
- package/dist/types/types/generated/graphql.frontend.types.d.ts +34 -34
- package/dist/types/types/generated/graphql.frontend.types.ts +110 -110
- package/dist/zonos-elements/{p-aa671fa6.entry.js → p-056a453e.entry.js} +1 -1
- package/dist/zonos-elements/{p-3b4225b2.entry.js → p-0fc08944.entry.js} +1 -1
- package/dist/zonos-elements/{p-a583e3c6.system.entry.js → p-19f0392f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d9aa8599.entry.js → p-1a5f8df7.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd449b56.entry.js → p-24bd40ec.entry.js} +1 -1
- package/dist/zonos-elements/{p-05f749dc.system.entry.js → p-262b8e1e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f48a613e.system.entry.js → p-26c55472.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1f5c2d7b.entry.js → p-2ffcc816.entry.js} +1 -1
- package/dist/zonos-elements/p-33abdb30.js +1 -0
- package/dist/zonos-elements/{p-8ec3995a.system.entry.js → p-34565753.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9da65d62.entry.js → p-440eb12c.entry.js} +1 -1
- package/dist/zonos-elements/{p-f6bbff95.entry.js → p-44e8e803.entry.js} +1 -1
- package/dist/zonos-elements/p-450942a3.system.js +1 -0
- package/dist/zonos-elements/{p-bc2bd266.system.entry.js → p-51afdc14.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7aef7d5d.system.entry.js → p-536b62a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa3c0e8.system.entry.js → p-596a4beb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-16b59229.system.entry.js → p-5c41ac7d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f0b4e58a.js → p-5ff27485.js} +1 -1
- package/dist/zonos-elements/{p-257af88b.entry.js → p-66b42924.entry.js} +1 -1
- package/dist/zonos-elements/{p-4fbd0ce6.entry.js → p-6adbe3e4.entry.js} +1 -1
- package/dist/zonos-elements/p-6f5761e8.js +1 -0
- package/dist/zonos-elements/p-6fb15797.system.entry.js +1 -0
- package/dist/zonos-elements/{p-522294b9.system.entry.js → p-7411d43e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa5e2f7c.system.entry.js → p-7432179a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cb8fa93.entry.js → p-74c8aa64.entry.js} +1 -1
- package/dist/zonos-elements/p-8126011d.entry.js +1 -0
- package/dist/zonos-elements/{p-c5bc49b5.system.entry.js → p-8b44b059.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bdd775f2.system.js → p-8b44e558.system.js} +1 -1
- package/dist/zonos-elements/{p-3f713699.entry.js → p-8d1f81e1.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab06e5c8.system.entry.js → p-8e5796a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4f626a90.system.entry.js → p-b2f56dcb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b4c3dcda.entry.js +1 -0
- package/dist/zonos-elements/p-b4e704c7.entry.js +1 -0
- package/dist/zonos-elements/{p-808413f8.entry.js → p-b6393a04.entry.js} +1 -1
- package/dist/zonos-elements/p-b8e8330b.system.js +1 -1
- package/dist/zonos-elements/p-c6170bec.system.js +1 -0
- package/dist/zonos-elements/{p-3d8254a2.system.entry.js → p-ca8ae8a4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a48e7c84.entry.js → p-dd1ba8fb.entry.js} +1 -1
- package/dist/zonos-elements/p-e7b5cf0d.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-515aac56.js +0 -1
- package/dist/esm-es5/sendErrorLog-e4546d7b.js +0 -1
- package/dist/zonos-elements/p-17ded5a1.system.entry.js +0 -1
- package/dist/zonos-elements/p-2d404058.system.js +0 -1
- package/dist/zonos-elements/p-3e38990b.entry.js +0 -1
- package/dist/zonos-elements/p-418c056d.entry.js +0 -1
- package/dist/zonos-elements/p-816f1aee.js +0 -1
- package/dist/zonos-elements/p-882ec68e.system.js +0 -1
- package/dist/zonos-elements/p-93698719.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca6cf075.js +0 -1
- package/dist/zonos-elements/p-e9a41fd8.entry.js +0 -1
|
@@ -751,7 +751,7 @@ export function getSdk(
|
|
|
751
751
|
withWrapper: SdkFunctionWrapper = defaultWrapper,
|
|
752
752
|
) {
|
|
753
753
|
return {
|
|
754
|
-
|
|
754
|
+
allSettings(
|
|
755
755
|
variables?: { [x: string]: never },
|
|
756
756
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
757
757
|
): Promise<AllSettingsQuery> {
|
|
@@ -761,11 +761,40 @@ export function getSdk(
|
|
|
761
761
|
...requestHeaders,
|
|
762
762
|
...wrappedRequestHeaders,
|
|
763
763
|
}),
|
|
764
|
-
'
|
|
764
|
+
'allSettings',
|
|
765
765
|
'query',
|
|
766
766
|
);
|
|
767
767
|
},
|
|
768
|
-
|
|
768
|
+
cleanupTestErrors(
|
|
769
|
+
variables?: { [x: string]: never },
|
|
770
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
771
|
+
): Promise<CleanupTestErrorsMutation> {
|
|
772
|
+
return withWrapper(
|
|
773
|
+
wrappedRequestHeaders =>
|
|
774
|
+
client.request<CleanupTestErrorsMutation>('', variables, {
|
|
775
|
+
...requestHeaders,
|
|
776
|
+
...wrappedRequestHeaders,
|
|
777
|
+
}),
|
|
778
|
+
'cleanupTestErrors',
|
|
779
|
+
'mutation',
|
|
780
|
+
);
|
|
781
|
+
},
|
|
782
|
+
cleanupTestZonosElementSetting(
|
|
783
|
+
variables?: { [x: string]: never },
|
|
784
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
785
|
+
): Promise<CleanupTestZonosElementSettingMutation> {
|
|
786
|
+
return withWrapper(
|
|
787
|
+
wrappedRequestHeaders =>
|
|
788
|
+
client.request<CleanupTestZonosElementSettingMutation>(
|
|
789
|
+
'',
|
|
790
|
+
variables,
|
|
791
|
+
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
792
|
+
),
|
|
793
|
+
'cleanupTestZonosElementSetting',
|
|
794
|
+
'mutation',
|
|
795
|
+
);
|
|
796
|
+
},
|
|
797
|
+
createErrorEvent(
|
|
769
798
|
variables?: { [x: string]: never },
|
|
770
799
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
771
800
|
): Promise<CreateErrorEventMutation> {
|
|
@@ -775,11 +804,11 @@ export function getSdk(
|
|
|
775
804
|
...requestHeaders,
|
|
776
805
|
...wrappedRequestHeaders,
|
|
777
806
|
}),
|
|
778
|
-
'
|
|
807
|
+
'createErrorEvent',
|
|
779
808
|
'mutation',
|
|
780
809
|
);
|
|
781
810
|
},
|
|
782
|
-
|
|
811
|
+
createScriptLoadEvent(
|
|
783
812
|
variables?: { [x: string]: never },
|
|
784
813
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
785
814
|
): Promise<CreateScriptLoadEventMutation> {
|
|
@@ -789,11 +818,11 @@ export function getSdk(
|
|
|
789
818
|
...requestHeaders,
|
|
790
819
|
...wrappedRequestHeaders,
|
|
791
820
|
}),
|
|
792
|
-
'
|
|
821
|
+
'createScriptLoadEvent',
|
|
793
822
|
'mutation',
|
|
794
823
|
);
|
|
795
824
|
},
|
|
796
|
-
|
|
825
|
+
deleteAllStoreReserveOrders(
|
|
797
826
|
variables?: { [x: string]: never },
|
|
798
827
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
799
828
|
): Promise<DeleteAllStoreReserveOrdersMutation> {
|
|
@@ -803,11 +832,11 @@ export function getSdk(
|
|
|
803
832
|
...requestHeaders,
|
|
804
833
|
...wrappedRequestHeaders,
|
|
805
834
|
}),
|
|
806
|
-
'
|
|
835
|
+
'deleteAllStoreReserveOrders',
|
|
807
836
|
'mutation',
|
|
808
837
|
);
|
|
809
838
|
},
|
|
810
|
-
|
|
839
|
+
deleteBigCommerceSettings(
|
|
811
840
|
variables?: { [x: string]: never },
|
|
812
841
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
813
842
|
): Promise<DeleteBigCommerceSettingsMutation> {
|
|
@@ -817,11 +846,11 @@ export function getSdk(
|
|
|
817
846
|
...requestHeaders,
|
|
818
847
|
...wrappedRequestHeaders,
|
|
819
848
|
}),
|
|
820
|
-
'
|
|
849
|
+
'deleteBigCommerceSettings',
|
|
821
850
|
'mutation',
|
|
822
851
|
);
|
|
823
852
|
},
|
|
824
|
-
|
|
853
|
+
deleteOrderImportLock(
|
|
825
854
|
variables?: { [x: string]: never },
|
|
826
855
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
827
856
|
): Promise<DeleteOrderImportLockMutation> {
|
|
@@ -831,11 +860,11 @@ export function getSdk(
|
|
|
831
860
|
...requestHeaders,
|
|
832
861
|
...wrappedRequestHeaders,
|
|
833
862
|
}),
|
|
834
|
-
'
|
|
863
|
+
'deleteOrderImportLock',
|
|
835
864
|
'mutation',
|
|
836
865
|
);
|
|
837
866
|
},
|
|
838
|
-
|
|
867
|
+
deleteReserveOrders(
|
|
839
868
|
variables?: { [x: string]: never },
|
|
840
869
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
841
870
|
): Promise<DeleteReserveOrdersMutation> {
|
|
@@ -845,11 +874,11 @@ export function getSdk(
|
|
|
845
874
|
...requestHeaders,
|
|
846
875
|
...wrappedRequestHeaders,
|
|
847
876
|
}),
|
|
848
|
-
'
|
|
877
|
+
'deleteReserveOrders',
|
|
849
878
|
'mutation',
|
|
850
879
|
);
|
|
851
880
|
},
|
|
852
|
-
|
|
881
|
+
getAudienceByAspectKey(
|
|
853
882
|
variables?: { [x: string]: never },
|
|
854
883
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
855
884
|
): Promise<GetAudienceByAspectKeyQuery> {
|
|
@@ -859,11 +888,11 @@ export function getSdk(
|
|
|
859
888
|
...requestHeaders,
|
|
860
889
|
...wrappedRequestHeaders,
|
|
861
890
|
}),
|
|
862
|
-
'
|
|
891
|
+
'getAudienceByAspectKey',
|
|
863
892
|
'query',
|
|
864
893
|
);
|
|
865
894
|
},
|
|
866
|
-
|
|
895
|
+
getBigCommerceSettings(
|
|
867
896
|
variables?: { [x: string]: never },
|
|
868
897
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
869
898
|
): Promise<GetBigCommerceSettingsQuery> {
|
|
@@ -873,11 +902,26 @@ export function getSdk(
|
|
|
873
902
|
...requestHeaders,
|
|
874
903
|
...wrappedRequestHeaders,
|
|
875
904
|
}),
|
|
876
|
-
'
|
|
905
|
+
'getBigCommerceSettings',
|
|
906
|
+
'query',
|
|
907
|
+
);
|
|
908
|
+
},
|
|
909
|
+
getConversionEventBySessionIdAndOrgId(
|
|
910
|
+
variables?: { [x: string]: never },
|
|
911
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
912
|
+
): Promise<GetConversionEventBySessionIdAndOrgIdQuery> {
|
|
913
|
+
return withWrapper(
|
|
914
|
+
wrappedRequestHeaders =>
|
|
915
|
+
client.request<GetConversionEventBySessionIdAndOrgIdQuery>(
|
|
916
|
+
'',
|
|
917
|
+
variables,
|
|
918
|
+
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
919
|
+
),
|
|
920
|
+
'getConversionEventBySessionIdAndOrgId',
|
|
877
921
|
'query',
|
|
878
922
|
);
|
|
879
923
|
},
|
|
880
|
-
|
|
924
|
+
getReserveOrder(
|
|
881
925
|
variables?: { [x: string]: never },
|
|
882
926
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
883
927
|
): Promise<GetReserveOrderQuery> {
|
|
@@ -887,11 +931,11 @@ export function getSdk(
|
|
|
887
931
|
...requestHeaders,
|
|
888
932
|
...wrappedRequestHeaders,
|
|
889
933
|
}),
|
|
890
|
-
'
|
|
934
|
+
'getReserveOrder',
|
|
891
935
|
'query',
|
|
892
936
|
);
|
|
893
937
|
},
|
|
894
|
-
|
|
938
|
+
getSettingsReserveOrders(
|
|
895
939
|
variables?: { [x: string]: never },
|
|
896
940
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
897
941
|
): Promise<GetSettingsReserveOrdersQuery> {
|
|
@@ -901,11 +945,25 @@ export function getSdk(
|
|
|
901
945
|
...requestHeaders,
|
|
902
946
|
...wrappedRequestHeaders,
|
|
903
947
|
}),
|
|
904
|
-
'
|
|
948
|
+
'getSettingsReserveOrders',
|
|
949
|
+
'query',
|
|
950
|
+
);
|
|
951
|
+
},
|
|
952
|
+
hasPreviousErrors(
|
|
953
|
+
variables?: { [x: string]: never },
|
|
954
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
955
|
+
): Promise<HasPreviousErrorsQuery> {
|
|
956
|
+
return withWrapper(
|
|
957
|
+
wrappedRequestHeaders =>
|
|
958
|
+
client.request<HasPreviousErrorsQuery>('', variables, {
|
|
959
|
+
...requestHeaders,
|
|
960
|
+
...wrappedRequestHeaders,
|
|
961
|
+
}),
|
|
962
|
+
'hasPreviousErrors',
|
|
905
963
|
'query',
|
|
906
964
|
);
|
|
907
965
|
},
|
|
908
|
-
|
|
966
|
+
insertBigCommerceSettingsEvent(
|
|
909
967
|
variables?: { [x: string]: never },
|
|
910
968
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
911
969
|
): Promise<InsertBigCommerceSettingsEventMutation> {
|
|
@@ -916,11 +974,25 @@ export function getSdk(
|
|
|
916
974
|
variables,
|
|
917
975
|
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
918
976
|
),
|
|
919
|
-
'
|
|
977
|
+
'insertBigCommerceSettingsEvent',
|
|
978
|
+
'mutation',
|
|
979
|
+
);
|
|
980
|
+
},
|
|
981
|
+
insertConversionEvent(
|
|
982
|
+
variables?: { [x: string]: never },
|
|
983
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
984
|
+
): Promise<InsertConversionEventMutation> {
|
|
985
|
+
return withWrapper(
|
|
986
|
+
wrappedRequestHeaders =>
|
|
987
|
+
client.request<InsertConversionEventMutation>('', variables, {
|
|
988
|
+
...requestHeaders,
|
|
989
|
+
...wrappedRequestHeaders,
|
|
990
|
+
}),
|
|
991
|
+
'insertConversionEvent',
|
|
920
992
|
'mutation',
|
|
921
993
|
);
|
|
922
994
|
},
|
|
923
|
-
|
|
995
|
+
insertOrderImportLock(
|
|
924
996
|
variables?: { [x: string]: never },
|
|
925
997
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
926
998
|
): Promise<InsertOrderImportLockMutation> {
|
|
@@ -930,11 +1002,11 @@ export function getSdk(
|
|
|
930
1002
|
...requestHeaders,
|
|
931
1003
|
...wrappedRequestHeaders,
|
|
932
1004
|
}),
|
|
933
|
-
'
|
|
1005
|
+
'insertOrderImportLock',
|
|
934
1006
|
'mutation',
|
|
935
1007
|
);
|
|
936
1008
|
},
|
|
937
|
-
|
|
1009
|
+
insertReserveOrder(
|
|
938
1010
|
variables?: { [x: string]: never },
|
|
939
1011
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
940
1012
|
): Promise<InsertReserveOrderMutation> {
|
|
@@ -944,11 +1016,11 @@ export function getSdk(
|
|
|
944
1016
|
...requestHeaders,
|
|
945
1017
|
...wrappedRequestHeaders,
|
|
946
1018
|
}),
|
|
947
|
-
'
|
|
1019
|
+
'insertReserveOrder',
|
|
948
1020
|
'mutation',
|
|
949
1021
|
);
|
|
950
1022
|
},
|
|
951
|
-
|
|
1023
|
+
insertReserveOrderEvent(
|
|
952
1024
|
variables?: { [x: string]: never },
|
|
953
1025
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
954
1026
|
): Promise<InsertReserveOrderEventMutation> {
|
|
@@ -958,11 +1030,11 @@ export function getSdk(
|
|
|
958
1030
|
...requestHeaders,
|
|
959
1031
|
...wrappedRequestHeaders,
|
|
960
1032
|
}),
|
|
961
|
-
'
|
|
1033
|
+
'insertReserveOrderEvent',
|
|
962
1034
|
'mutation',
|
|
963
1035
|
);
|
|
964
1036
|
},
|
|
965
|
-
|
|
1037
|
+
localeCountryMessages(
|
|
966
1038
|
variables?: { [x: string]: never },
|
|
967
1039
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
968
1040
|
): Promise<LocaleCountryMessagesQuery> {
|
|
@@ -972,11 +1044,11 @@ export function getSdk(
|
|
|
972
1044
|
...requestHeaders,
|
|
973
1045
|
...wrappedRequestHeaders,
|
|
974
1046
|
}),
|
|
975
|
-
'
|
|
1047
|
+
'localeCountryMessages',
|
|
976
1048
|
'query',
|
|
977
1049
|
);
|
|
978
1050
|
},
|
|
979
|
-
|
|
1051
|
+
updateCacheStoreVersion(
|
|
980
1052
|
variables?: { [x: string]: never },
|
|
981
1053
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
982
1054
|
): Promise<UpdateCacheStoreVersionMutation> {
|
|
@@ -986,11 +1058,11 @@ export function getSdk(
|
|
|
986
1058
|
...requestHeaders,
|
|
987
1059
|
...wrappedRequestHeaders,
|
|
988
1060
|
}),
|
|
989
|
-
'
|
|
1061
|
+
'updateCacheStoreVersion',
|
|
990
1062
|
'mutation',
|
|
991
1063
|
);
|
|
992
1064
|
},
|
|
993
|
-
|
|
1065
|
+
updateReserveOrder(
|
|
994
1066
|
variables?: { [x: string]: never },
|
|
995
1067
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
996
1068
|
): Promise<UpdateReserveOrderMutation> {
|
|
@@ -1000,11 +1072,11 @@ export function getSdk(
|
|
|
1000
1072
|
...requestHeaders,
|
|
1001
1073
|
...wrappedRequestHeaders,
|
|
1002
1074
|
}),
|
|
1003
|
-
'
|
|
1075
|
+
'updateReserveOrder',
|
|
1004
1076
|
'mutation',
|
|
1005
1077
|
);
|
|
1006
1078
|
},
|
|
1007
|
-
|
|
1079
|
+
upsertBigCommerceSettings(
|
|
1008
1080
|
variables?: { [x: string]: never },
|
|
1009
1081
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1010
1082
|
): Promise<UpsertBigCommerceSettingsMutation> {
|
|
@@ -1014,79 +1086,7 @@ export function getSdk(
|
|
|
1014
1086
|
...requestHeaders,
|
|
1015
1087
|
...wrappedRequestHeaders,
|
|
1016
1088
|
}),
|
|
1017
|
-
'
|
|
1018
|
-
'mutation',
|
|
1019
|
-
);
|
|
1020
|
-
},
|
|
1021
|
-
cleanupTestErrors(
|
|
1022
|
-
variables?: { [x: string]: never },
|
|
1023
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1024
|
-
): Promise<CleanupTestErrorsMutation> {
|
|
1025
|
-
return withWrapper(
|
|
1026
|
-
wrappedRequestHeaders =>
|
|
1027
|
-
client.request<CleanupTestErrorsMutation>('', variables, {
|
|
1028
|
-
...requestHeaders,
|
|
1029
|
-
...wrappedRequestHeaders,
|
|
1030
|
-
}),
|
|
1031
|
-
'cleanupTestErrors',
|
|
1032
|
-
'mutation',
|
|
1033
|
-
);
|
|
1034
|
-
},
|
|
1035
|
-
cleanupTestZonosElementSetting(
|
|
1036
|
-
variables?: { [x: string]: never },
|
|
1037
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1038
|
-
): Promise<CleanupTestZonosElementSettingMutation> {
|
|
1039
|
-
return withWrapper(
|
|
1040
|
-
wrappedRequestHeaders =>
|
|
1041
|
-
client.request<CleanupTestZonosElementSettingMutation>(
|
|
1042
|
-
'',
|
|
1043
|
-
variables,
|
|
1044
|
-
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
1045
|
-
),
|
|
1046
|
-
'cleanupTestZonosElementSetting',
|
|
1047
|
-
'mutation',
|
|
1048
|
-
);
|
|
1049
|
-
},
|
|
1050
|
-
getConversionEventBySessionIdAndOrgId(
|
|
1051
|
-
variables?: { [x: string]: never },
|
|
1052
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1053
|
-
): Promise<GetConversionEventBySessionIdAndOrgIdQuery> {
|
|
1054
|
-
return withWrapper(
|
|
1055
|
-
wrappedRequestHeaders =>
|
|
1056
|
-
client.request<GetConversionEventBySessionIdAndOrgIdQuery>(
|
|
1057
|
-
'',
|
|
1058
|
-
variables,
|
|
1059
|
-
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
1060
|
-
),
|
|
1061
|
-
'getConversionEventBySessionIdAndOrgId',
|
|
1062
|
-
'query',
|
|
1063
|
-
);
|
|
1064
|
-
},
|
|
1065
|
-
hasPreviousErrors(
|
|
1066
|
-
variables?: { [x: string]: never },
|
|
1067
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1068
|
-
): Promise<HasPreviousErrorsQuery> {
|
|
1069
|
-
return withWrapper(
|
|
1070
|
-
wrappedRequestHeaders =>
|
|
1071
|
-
client.request<HasPreviousErrorsQuery>('', variables, {
|
|
1072
|
-
...requestHeaders,
|
|
1073
|
-
...wrappedRequestHeaders,
|
|
1074
|
-
}),
|
|
1075
|
-
'hasPreviousErrors',
|
|
1076
|
-
'query',
|
|
1077
|
-
);
|
|
1078
|
-
},
|
|
1079
|
-
insertConversionEvent(
|
|
1080
|
-
variables?: { [x: string]: never },
|
|
1081
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
1082
|
-
): Promise<InsertConversionEventMutation> {
|
|
1083
|
-
return withWrapper(
|
|
1084
|
-
wrappedRequestHeaders =>
|
|
1085
|
-
client.request<InsertConversionEventMutation>('', variables, {
|
|
1086
|
-
...requestHeaders,
|
|
1087
|
-
...wrappedRequestHeaders,
|
|
1088
|
-
}),
|
|
1089
|
-
'insertConversionEvent',
|
|
1089
|
+
'upsertBigCommerceSettings',
|
|
1090
1090
|
'mutation',
|
|
1091
1091
|
);
|
|
1092
1092
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,H as o,d as i}from"./p-2244534c.js";import{j as n,d as a,l as r,t as c,n as h}from"./p-816f1aee.js";import{z as d,d as l}from"./p-d41b5762.js";import{s as p,i as f}from"./p-ca6cf075.js";import{c as m}from"./p-b4b7f705.js";import{g as u}from"./p-ed2e94d2.js";import{i as b}from"./p-d01576d7.js";const z={city:"City",country:"Country",line1:"Address line 1",line2:"Address line 2",name:"Name",postal_code:"Postal code",state:"State"},k=class{constructor(e){s(this,e),this.invalidCharacters=t(this,"invalidCharacters",7),this.type=void 0,this.titleText=void 0,this.defaultAddress=null,this.stripe=window.Zonos.stripe,this.reportedInvalidCharacters=!1,this.invalidCharacterList=null,this.isDirtyAddress=!1}getStripeAddressInstance(){return"billing"===this.type?{stripeAddressElement:n.stripeBillingAddressElement,stripeAddressEventData:n.stripeBillingAddressEventData,stripeElements:n.stripeElementsForBillingAddress}:{stripeAddressElement:n.stripeAddressElement,stripeAddressEventData:n.stripeAddressEventData,stripeElements:n.stripeElements}}updateAddressEventData({event:s,type:t}){"billing"===t?n.stripeBillingAddressEventData=s:n.stripeAddressEventData=s;const e=this.checkInvalidCharacters(s);this.invalidCharacterList=e,this.invalidCharacters.emit(!!e)}updateAddressElement({stripeAddressElement:s,type:t}){"shipping"!==t?n.stripeBillingAddressElement=s:n.stripeAddressElement=s}checkInvalidCharacters(s){if(!s.complete||"ALL"===d.checkoutSettings.allowedCharacterSets)return null;const{address:t,firstName:e,lastName:o,name:i}=s.value,{city:n,country:a,line1:r,line2:c,postal_code:h,state:l}=t,f=(s=>{const t=/[ʼˮ՚ߴߵ']{1}/u,e=/[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;return Object.entries(s).reduce(((s,[o,i])=>e.test(i)&&!t.test(i)?Object.assign(Object.assign({},s),{[o]:!0}):s),{})})({city:n,country:a,line1:r,line2:c||"",name:i||`${e} ${o}`,postal_code:h,state:l});return Object.keys(f).length?(this.reportedInvalidCharacters||(this.reportedInvalidCharacters=!0,p({endpoint:"NonLatinInput",errors:Object.keys(f).map((s=>{var n;return"name"!==s?`Invalid character found ${s}: "${null===(n=t[s])||void 0===n?void 0:n.replace(/[\d\w]+/g,"")}"`:`Invalid character found ${s}: "${(i||`${e} ${o}`).replace(/[\d\w]+/g,"")}"`})),metadata:{}})),f):null}async watchInitStripe(){var s,t;this.stripe=window.Zonos.stripe;const{stripeAddressEventData:e,stripeElements:o}=this.getStripeAddressInstance();if(!this.stripe||!o)return void a("Stripe is not initialized. Couldn't load stripe element.");(null===(s=this.defaultAddress)||void 0===s?void 0:s.phone)||null===(t=this.defaultAddress)||void 0===t||delete t.phone;const i=r.shippingZoneCountries,n=i?Object.values(i).map((s=>s.code)):[],c=o.create("address",{allowedCountries:"shipping"===this.type?n:[],contacts:this.defaultAddress&&!e?[this.defaultAddress]:[],defaultValues:{address:Object.assign(Object.assign({},null==e?void 0:e.value.address),{country:(null==e?void 0:e.value.address.country)||r.selectedCountryCode||"AL"}),firstName:null==e?void 0:e.value.firstName,lastName:null==e?void 0:e.value.lastName,phone:null==e?void 0:e.value.phone},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});c.mount(this.el.querySelector(".zonos--address-component")),c.on("change",(s=>{const t=s.value;!this.isDirtyAddress&&t.address.line1.length>=3&&(this.isDirtyAddress=!0,setTimeout((()=>{if(f())this.el.scrollIntoView({behavior:"smooth",block:"end"});else{const s="shipping"===this.type?100:600,t=this.el.closest(".zonos--group"),e=this.el.getBoundingClientRect().top+s;null==t||t.scrollTo({behavior:"smooth",top:e})}}),600)),this.updateAddressEventData({event:Object.assign(Object.assign({},s),{elementMode:this.type,elementType:"address",value:Object.assign(Object.assign({},t),{firstName:t.firstName||t.name.split(" ")[0],lastName:t.lastName||t.name.split(" ")[1]})}),type:this.type})})),this.updateAddressElement({stripeAddressElement:c,type:this.type})}disconnectedCallback(){const s=this.getStripeAddressInstance().stripeAddressElement;null==s||s.destroy()}componentDidLoad(){const s=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!s&&s.value.address.line1.length>0,this.watchInitStripe(),setTimeout((()=>{const s=this.getStripeAddressInstance().stripeAddressEventData;s&&this.checkInvalidCharacters(s)}),500)}render(){return e(o,{key:"be43a9b0929211e2dd8e83950569caa12213ad91",class:"zonos--address zonos--elements"},e("zonos-text",{key:"2a9214eae80832c2f706f3dc2e7c837c9f615dd6",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"70a039b36fe8550680c95338f1b225389f5c7fab",class:"zonos--address-component"}),this.invalidCharacterList&&e("zonos-banner",{key:"a9cf6873645eb0ef68be0595d1f16483fccdf5df",bannerTitle:c("Please resolve the following errors:"),intent:"error"},Object.keys(this.invalidCharacterList).map((s=>e("zonos-text",null,`- ${c(z[s])}: ${c("only supports Latin characters (A-Z, a-z)")}`)))))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};k.style=".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)}";const y=["blue","cyan","green","orange","purple","red","gray","glass"],v=class{constructor(e){s(this,e),this.checkboxSelected=t(this,"checkboxSelected",7),this.backgroundColor="blue",this.label=void 0,this.isChecked=!1,this.isDisabled=!1,this.size=12,this.fontSize="base",this.borderStyle=void 0}render(){const s=y.includes(this.backgroundColor),t=s?`var(--amino-${this.backgroundColor}-600)`:this.backgroundColor,i=s?`var(--amino-${this.backgroundColor}-200)`:b(t)?"var(--amino-gray-0)":"var(--amino-gray-800)",n=u(this.borderStyle,"4px");return e(o,{key:"47b3b90b44f846e49de755f2c131e79da3f34c0f",class:m(["zonos--elements zonos--checkbox"]),style:{"--background-color":t,"--border-radius":n,"--font-family":l(),"--size":`${this.size}px`}},e("label",{key:"6c1aac697aee17eb684d8416ae65092e3095fada",class:m([this.isDisabled&&"disabled"])},e("input",{key:"f75b6bff9ea136596af3489721096d862ea622c3",checked:this.isChecked,disabled:this.isDisabled,hidden:!0,onChange:s=>{this.checkboxSelected.emit(s.target.checked)},type:"checkbox"}),e("span",{key:"2a2dcd8e798fdd54daf43dedcb42dac3088a6dfc",class:"checkmark-container"},e("svg",{key:"e74713df9adc970d0a5b8d6374eb63e69c64ff1a",class:"checkmark",color:i,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"3ae1a1a8f74a607ad5d4e4f940b45ac0b242426e","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&e("zonos-text",{key:"25ff0a74e7ec6409e41d3f2998648f0c28a28ae0",size:this.fontSize},this.label)))}};v.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:var(--amino-space-8);-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--amino-gray-400);position:relative;border-radius:var(--border-radius, var(--amino-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--amino-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";const g=class{constructor(t){s(this,t),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight,this.iframe=null}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var s,t,e;this.iframe=(null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("iframe"))||null,null===(e=null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)||void 0===e||e.addEventListener("resize",(()=>{this.iframe&&(this.height=parseFloat(getComputedStyle(this.iframe).height))}))}render(){return this.collapsed?this.el.style.overflow="hidden":setTimeout((()=>{this.collapsed||(this.el.style.overflow="visible")}),300),e(o,{key:"db574e5124dcd54045af65a6f429af3fddc501fd",class:"zonos--elements zonos--collapse",style:{"--font-family":l(),height:this.getElementHeight()}},e("div",{key:"9f773ededa3fb0b47b2dba74ef701fd8dc3af396"},e("iframe",{key:"50a8449beb6272a854c34b859be04cdeea10f804",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),e("slot",{key:"5c0bd94dfe7bbb6a8dc20b1bac69e81ae7f99f76"})))}get el(){return i(this)}};g.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";const w=class{constructor(t){s(this,t),this.titleText=void 0,this.stripe=n.stripe}watchInitStripe(){if(!this.stripe||!n.stripeElements)return;const s=n.stripeLinkElement||n.stripeElements.create("linkAuthentication"),t=this.el.querySelector(".zonos--link-authentication-component");t?(s.mount(t),s.on("change",(s=>{n.stripeLinkEventData=s,h()})),n.stripeLinkElement=s):a("Cannot find container element for linkAuthenticationElement")}componentDidLoad(){this.watchInitStripe()}render(){return e(o,{key:"675de93a982a3cc558b64f24971441c227955e6f",class:"zonos--link-authentication zonos--elements"},e("zonos-text",{key:"d75a5a301e869325c9a249275ce10d4905c0198c",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"fbf58d00fa76d7e715f2d1056a298840043e1056",class:"zonos--link-authentication-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};w.style=".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";export{k as zonos_address,v as zonos_checkbox,g as zonos_collapse,w as zonos_link_authentication}
|
|
1
|
+
import{r as s,c as t,h as e,H as o,d as i}from"./p-2244534c.js";import{k as n,d as a,l as c,t as r,o as h}from"./p-6f5761e8.js";import{z as d,d as l}from"./p-d41b5762.js";import{s as p,i as f}from"./p-33abdb30.js";import{c as m}from"./p-b4b7f705.js";import{g as u}from"./p-ed2e94d2.js";import{i as b}from"./p-d01576d7.js";const z={city:"City",country:"Country",line1:"Address line 1",line2:"Address line 2",name:"Name",postal_code:"Postal code",state:"State"},k=class{constructor(e){s(this,e),this.invalidCharacters=t(this,"invalidCharacters",7),this.type=void 0,this.titleText=void 0,this.defaultAddress=null,this.stripe=window.Zonos.stripe,this.reportedInvalidCharacters=!1,this.invalidCharacterList=null,this.isDirtyAddress=!1}getStripeAddressInstance(){return"billing"===this.type?{stripeAddressElement:n.stripeBillingAddressElement,stripeAddressEventData:n.stripeBillingAddressEventData,stripeElements:n.stripeElementsForBillingAddress}:{stripeAddressElement:n.stripeAddressElement,stripeAddressEventData:n.stripeAddressEventData,stripeElements:n.stripeElements}}updateAddressEventData({event:s,type:t}){"billing"===t?n.stripeBillingAddressEventData=s:n.stripeAddressEventData=s;const e=this.checkInvalidCharacters(s);this.invalidCharacterList=e,this.invalidCharacters.emit(!!e)}updateAddressElement({stripeAddressElement:s,type:t}){"shipping"!==t?n.stripeBillingAddressElement=s:n.stripeAddressElement=s}checkInvalidCharacters(s){if(!s.complete||"ALL"===d.checkoutSettings.allowedCharacterSets)return null;const{address:t,firstName:e,lastName:o,name:i}=s.value,{city:n,country:a,line1:c,line2:r,postal_code:h,state:l}=t,f=(s=>{const t=/[ʼˮ՚ߴߵ']{1}/u,e=/[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;return Object.entries(s).reduce(((s,[o,i])=>e.test(i)&&!t.test(i)?Object.assign(Object.assign({},s),{[o]:!0}):s),{})})({city:n,country:a,line1:c,line2:r||"",name:i||`${e} ${o}`,postal_code:h,state:l});return Object.keys(f).length?(this.reportedInvalidCharacters||(this.reportedInvalidCharacters=!0,p({endpoint:"NonLatinInput",errors:Object.keys(f).map((s=>{var n;return"name"!==s?`Invalid character found ${s}: "${null===(n=t[s])||void 0===n?void 0:n.replace(/[\d\w]+/g,"")}"`:`Invalid character found ${s}: "${(i||`${e} ${o}`).replace(/[\d\w]+/g,"")}"`})),metadata:{}})),f):null}async watchInitStripe(){var s,t;this.stripe=window.Zonos.stripe;const{stripeAddressEventData:e,stripeElements:o}=this.getStripeAddressInstance();if(!this.stripe||!o)return void a("Stripe is not initialized. Couldn't load stripe element.");(null===(s=this.defaultAddress)||void 0===s?void 0:s.phone)||null===(t=this.defaultAddress)||void 0===t||delete t.phone;const i=c.shippingZoneCountries,n=i?Object.values(i).map((s=>s.code)):[],r=o.create("address",{allowedCountries:"shipping"===this.type?n:[],contacts:this.defaultAddress&&!e?[this.defaultAddress]:[],defaultValues:{address:Object.assign(Object.assign({},null==e?void 0:e.value.address),{country:(null==e?void 0:e.value.address.country)||c.selectedCountryCode||"AL"}),firstName:null==e?void 0:e.value.firstName,lastName:null==e?void 0:e.value.lastName,phone:null==e?void 0:e.value.phone},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});r.mount(this.el.querySelector(".zonos--address-component")),r.on("change",(s=>{const t=s.value;!this.isDirtyAddress&&t.address.line1.length>=3&&(this.isDirtyAddress=!0,setTimeout((()=>{if(f())this.el.scrollIntoView({behavior:"smooth",block:"end"});else{const s="shipping"===this.type?100:600,t=this.el.closest(".zonos--group"),e=this.el.getBoundingClientRect().top+s;null==t||t.scrollTo({behavior:"smooth",top:e})}}),600)),this.updateAddressEventData({event:Object.assign(Object.assign({},s),{elementMode:this.type,elementType:"address",value:Object.assign(Object.assign({},t),{firstName:t.firstName||t.name.split(" ")[0],lastName:t.lastName||t.name.split(" ")[1]})}),type:this.type})})),this.updateAddressElement({stripeAddressElement:r,type:this.type})}disconnectedCallback(){const s=this.getStripeAddressInstance().stripeAddressElement;null==s||s.destroy()}componentDidLoad(){const s=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!s&&s.value.address.line1.length>0,this.watchInitStripe(),setTimeout((()=>{const s=this.getStripeAddressInstance().stripeAddressEventData;s&&this.checkInvalidCharacters(s)}),500)}render(){return e(o,{key:"549fc102d06aa0fd138ca03afb2e6fc691108ac2",class:"zonos--address zonos--elements"},e("zonos-text",{key:"6e8853dccc44714d21c9c0417d068dab9f10bd2e",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"2c28a21f87720427b9a98d0d6e2fa638232855dc",class:"zonos--address-component"}),this.invalidCharacterList&&e("zonos-banner",{key:"6fc1f7445d51531c8f4009d1f2f82831a9351c4c",bannerTitle:r("Please resolve the following errors:"),intent:"error"},Object.keys(this.invalidCharacterList).map((s=>e("zonos-text",null,`- ${r(z[s])}: ${r("only supports Latin characters (A-Z, a-z)")}`)))))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};k.style=".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)}";const y=["blue","cyan","green","orange","purple","red","gray","glass"],v=class{constructor(e){s(this,e),this.checkboxSelected=t(this,"checkboxSelected",7),this.backgroundColor="blue",this.label=void 0,this.isChecked=!1,this.isDisabled=!1,this.size=12,this.fontSize="base",this.borderStyle=void 0}render(){const s=y.includes(this.backgroundColor),t=s?`var(--amino-${this.backgroundColor}-600)`:this.backgroundColor,i=s?`var(--amino-${this.backgroundColor}-200)`:b(t)?"var(--amino-gray-0)":"var(--amino-gray-800)",n=u(this.borderStyle,"4px");return e(o,{key:"3cf37521b3f7dc267bdcd23f0c023cdff9f73048",class:m(["zonos--elements zonos--checkbox"]),style:{"--background-color":t,"--border-radius":n,"--font-family":l(),"--size":`${this.size}px`}},e("label",{key:"6771cc475d111684518492cbff6204a9cad5ec33",class:m([this.isDisabled&&"disabled"])},e("input",{key:"832a30d4aa546a5c7b5ab9e8437428aa08f20c17",checked:this.isChecked,disabled:this.isDisabled,hidden:!0,onChange:s=>{this.checkboxSelected.emit(s.target.checked)},type:"checkbox"}),e("span",{key:"9fe422aee5af96df40176d7d96006c578fe9273f",class:"checkmark-container"},e("svg",{key:"7097c01f50d8cca92ee1bb531e0ac316cfca1036",class:"checkmark",color:i,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"2fb6af94baa97412ce3dd49ceca12397886ce50b","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&e("zonos-text",{key:"f1c02b4377be2e48936a6e32049117b7a81a292b",size:this.fontSize},this.label)))}};v.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:var(--amino-space-8);-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--amino-gray-400);position:relative;border-radius:var(--border-radius, var(--amino-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--amino-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";const g=class{constructor(t){s(this,t),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight,this.iframe=null}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var s,t,e;this.iframe=(null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("iframe"))||null,null===(e=null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)||void 0===e||e.addEventListener("resize",(()=>{this.iframe&&(this.height=parseFloat(getComputedStyle(this.iframe).height))}))}render(){return this.collapsed?this.el.style.overflow="hidden":setTimeout((()=>{this.collapsed||(this.el.style.overflow="visible")}),300),e(o,{key:"7e0d608d6bfe0ffa5b04b2a30fb27e956c7cb255",class:"zonos--elements zonos--collapse",style:{"--font-family":l(),height:this.getElementHeight()}},e("div",{key:"94f69d9e0e6c849a9b609567036ff5cfd2f8ce9c"},e("iframe",{key:"66ad13c9e08d2ece856543af98c440fec4fd5975",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),e("slot",{key:"9d0f92e6d22f3e365bc3cec1e5d23325e045bc1a"})))}get el(){return i(this)}};g.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";const w=class{constructor(t){s(this,t),this.titleText=void 0,this.stripe=n.stripe}watchInitStripe(){if(!this.stripe||!n.stripeElements)return;const s=n.stripeLinkElement||n.stripeElements.create("linkAuthentication"),t=this.el.querySelector(".zonos--link-authentication-component");t?(s.mount(t),s.on("change",(s=>{n.stripeLinkEventData=s,h()})),n.stripeLinkElement=s):a("Cannot find container element for linkAuthenticationElement")}componentDidLoad(){this.watchInitStripe()}render(){return e(o,{key:"31c41fa819b53a3de0b772f2a808bbc2a5954f0b",class:"zonos--link-authentication zonos--elements"},e("zonos-text",{key:"79168635348479523ac726458ac4fdc5c791f6a7",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"1eb99df8b3ca8d92b0bdbbd1ef8fd5f561294904",class:"zonos--link-authentication-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};w.style=".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";export{k as zonos_address,v as zonos_checkbox,g as zonos_collapse,w as zonos_link_authentication}
|