@zonos/elements 1.3.13-alpha.2 → 1.3.14-alpha.0
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-b32bfb92.js → cart-5d196917.js} +3 -3
- package/dist/cjs/{getBorderRadius-4fa738c3.js → getBorderRadius-c8cc2bb3.js} +1 -1
- package/dist/cjs/{index-564fe383.js → index-3b4816ef.js} +20 -2
- package/dist/cjs/{isDarkColor-7faf0a82.js → isDarkColor-f5473002.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sendErrorLog-5f732a8a.js → sendErrorLog-3e181984.js} +1 -1
- package/dist/cjs/{submitGtag-fe94f3a0.js → submitGtag-44e3a996.js} +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-badge_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -10
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +17 -17
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +14 -16
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-icon.cjs.entry.js +2 -2
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-bd2a0c59.js → zonosStore-aee974e0.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- 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.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/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/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-footer2.js +2 -2
- package/dist/components/zonos-checkout-progress-tabs2.js +3 -3
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +1 -1
- package/dist/components/zonos-country-select2.js +5 -7
- package/dist/components/zonos-custom-message2.js +2 -2
- 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 +3 -3
- package/dist/components/zonos-language-select2.js +2 -2
- package/dist/components/zonos-link-authentication2.js +1 -1
- 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 +1 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/{cart-9f9f26f9.js → cart-515aac56.js} +3 -3
- package/dist/esm/{getBorderRadius-a89e45fb.js → getBorderRadius-8129b0cb.js} +1 -1
- package/dist/esm/{index-dd40cc85.js → index-0e31d804.js} +20 -2
- package/dist/esm/{isDarkColor-6bf71e51.js → isDarkColor-7a6d2d14.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{sendErrorLog-283f65ab.js → sendErrorLog-e4546d7b.js} +1 -1
- package/dist/esm/{submitGtag-5847d1a1.js → submitGtag-6767c31f.js} +2 -2
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-badge_2.entry.js +7 -7
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_2.entry.js +7 -7
- package/dist/esm/zonos-card_2.entry.js +10 -10
- package/dist/esm/zonos-cart-items_10.entry.js +17 -17
- package/dist/esm/zonos-checkout.entry.js +7 -7
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +14 -16
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +8 -8
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-icon.entry.js +2 -2
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-c4c45591.js → zonosStore-f3eef64b.js} +1 -1
- package/dist/esm-es5/{cart-9f9f26f9.js → cart-515aac56.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-a89e45fb.js → getBorderRadius-8129b0cb.js} +1 -1
- package/dist/esm-es5/index-0e31d804.js +2 -0
- package/dist/esm-es5/{isDarkColor-6bf71e51.js → isDarkColor-7a6d2d14.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{sendErrorLog-283f65ab.js → sendErrorLog-e4546d7b.js} +1 -1
- package/dist/esm-es5/{submitGtag-5847d1a1.js → submitGtag-6767c31f.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-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.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-icon.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-notification.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/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-c4c45591.js → zonosStore-f3eef64b.js} +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.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-shipping/zonos-shipping.d.ts +1 -1
- package/dist/types/components/store/checkout/stripe.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +1 -1
- package/dist/types/components/utils/darkenColor.d.ts +1 -1
- package/dist/types/components/utils/formatCurrency.d.ts +1 -1
- package/dist/types/components/utils/handleFetch.d.ts +1 -1
- package/dist/types/components/utils/lightenColor.d.ts +2 -2
- package/dist/types/components/utils/styles.d.ts +1 -2
- package/dist/types/environment.d.ts +2 -4
- package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +17 -17
- package/dist/types/types/generated/graphql.frontend.types.d.ts +24 -24
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/{p-62c458ac.system.entry.js → p-05f749dc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-160cdf4e.system.entry.js → p-0a0d45e9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c9c2973.system.entry.js → p-16b59229.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb1b1d4a.entry.js → p-1744bddb.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5f28531.system.entry.js → p-17ded5a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4515ec7b.entry.js → p-1f5c2d7b.entry.js} +1 -1
- package/dist/zonos-elements/p-2244534c.js +2 -0
- package/dist/zonos-elements/{p-ad499520.entry.js → p-257af88b.entry.js} +1 -1
- package/dist/zonos-elements/p-2825570c.system.js +2 -0
- package/dist/zonos-elements/{p-4d7b27af.system.entry.js → p-2aa3c0e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3639f458.system.js → p-2d404058.system.js} +1 -1
- package/dist/zonos-elements/{p-215cd7ec.entry.js → p-2ee0d779.entry.js} +1 -1
- package/dist/zonos-elements/p-3b4225b2.entry.js +1 -0
- package/dist/zonos-elements/{p-20b080d1.system.entry.js → p-3d8254a2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3e38990b.entry.js +1 -0
- package/dist/zonos-elements/p-3f713699.entry.js +1 -0
- package/dist/zonos-elements/{p-e55d8394.system.entry.js → p-4029034e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b2d9dc9d.entry.js → p-418c056d.entry.js} +1 -1
- package/dist/zonos-elements/{p-f42bffad.system.entry.js → p-4f626a90.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4fbd0ce6.entry.js +1 -0
- package/dist/zonos-elements/{p-15cd4a76.system.entry.js → p-509717bc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-167b3369.system.js → p-520e8e63.system.js} +1 -1
- package/dist/zonos-elements/{p-72c6bf0f.entry.js → p-5ca09163.entry.js} +1 -1
- package/dist/zonos-elements/p-7aef7d5d.system.entry.js +1 -0
- package/dist/zonos-elements/p-808413f8.entry.js +1 -0
- package/dist/zonos-elements/{p-c5321a31.js → p-816f1aee.js} +1 -1
- package/dist/zonos-elements/{p-5a464374.system.js → p-882ec68e.system.js} +1 -1
- package/dist/zonos-elements/{p-f1037168.entry.js → p-8cb8fa93.entry.js} +1 -1
- package/dist/zonos-elements/{p-70c1f877.system.entry.js → p-8ec3995a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-93698719.system.entry.js +1 -0
- package/dist/zonos-elements/{p-470284a3.entry.js → p-97534044.entry.js} +1 -1
- package/dist/zonos-elements/p-9da65d62.entry.js +1 -0
- package/dist/zonos-elements/{p-b62aee3d.entry.js → p-a48e7c84.entry.js} +1 -1
- package/dist/zonos-elements/{p-e237784c.system.entry.js → p-a583e3c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d833f22.system.entry.js → p-a6bbf6de.system.entry.js} +1 -1
- package/dist/zonos-elements/p-aa5e2f7c.system.entry.js +1 -0
- package/dist/zonos-elements/p-aa671fa6.entry.js +1 -0
- package/dist/zonos-elements/p-ab06e5c8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6e81adba.system.js → p-b8e8330b.system.js} +1 -1
- package/dist/zonos-elements/{p-001518eb.system.entry.js → p-bc2bd266.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad9c7245.system.js → p-bdd775f2.system.js} +1 -1
- package/dist/zonos-elements/{p-4c9367f1.entry.js → p-be022d8e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f62b49aa.system.entry.js → p-c5bc49b5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-03da9e9d.js → p-ca6cf075.js} +1 -1
- package/dist/zonos-elements/{p-e3de496a.entry.js → p-cd449b56.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a90fb56.js → p-d01576d7.js} +1 -1
- package/dist/zonos-elements/{p-6c5c5377.system.entry.js → p-d0d78094.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1bbdfae5.js → p-d41b5762.js} +1 -1
- package/dist/zonos-elements/{p-9726ff53.entry.js → p-d9aa8599.entry.js} +1 -1
- package/dist/zonos-elements/{p-a144d26a.system.entry.js → p-e1ac5b2a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-171eb334.entry.js → p-e703c902.entry.js} +1 -1
- package/dist/zonos-elements/{p-10dec8e6.entry.js → p-e9a41fd8.entry.js} +1 -1
- package/dist/zonos-elements/p-ed2e94d2.js +1 -0
- package/dist/zonos-elements/{p-c43da0c6.js → p-f0b4e58a.js} +1 -1
- package/dist/zonos-elements/p-f48a613e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-41c2b1c5.system.js → p-f4c38bfc.system.js} +1 -1
- package/dist/zonos-elements/{p-86034f1e.system.js → p-fc4da55c.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +42 -40
- package/dist/esm-es5/index-dd40cc85.js +0 -2
- package/dist/zonos-elements/p-07022f11.js +0 -1
- package/dist/zonos-elements/p-07bb1bed.js +0 -2
- package/dist/zonos-elements/p-0b3cb5c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-14c7d651.system.entry.js +0 -1
- package/dist/zonos-elements/p-29034d9c.entry.js +0 -1
- package/dist/zonos-elements/p-50777610.entry.js +0 -1
- package/dist/zonos-elements/p-52de4d70.system.js +0 -2
- package/dist/zonos-elements/p-6f5cc827.entry.js +0 -1
- package/dist/zonos-elements/p-76ac5680.system.entry.js +0 -1
- package/dist/zonos-elements/p-887bfef2.system.entry.js +0 -1
- package/dist/zonos-elements/p-9ab6e2b5.entry.js +0 -1
- package/dist/zonos-elements/p-b4a086e0.entry.js +0 -1
- package/dist/zonos-elements/p-e1bb026f.entry.js +0 -1
- package/dist/zonos-elements/p-f7da5199.system.entry.js +0 -1
- package/dist/zonos-elements/p-ff699d46.entry.js +0 -1
|
@@ -13,4 +13,4 @@ export type RequestOptions<ResponseBody, RequestBody> = {
|
|
|
13
13
|
body?: NoInfer<RequestBody>;
|
|
14
14
|
testExpectedData?: (data: ResponseBody) => boolean;
|
|
15
15
|
} & Omit<RequestInit, 'body'>;
|
|
16
|
-
export declare const handleFetch: <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody>
|
|
16
|
+
export declare const handleFetch: <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody>) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Filter out all of the undefined values from the object so we don't have undefined css variable values
|
|
4
3
|
*/
|
|
5
|
-
export declare const styles: (props:
|
|
4
|
+
export declare const styles: (props: React.CSSProperties & {
|
|
6
5
|
[key: string]: string | undefined;
|
|
7
6
|
}) => Record<string, string>;
|
|
@@ -5,17 +5,15 @@ export declare const inTestEnvironment: boolean;
|
|
|
5
5
|
export declare const inStorybook: boolean;
|
|
6
6
|
export declare const inVercel: boolean;
|
|
7
7
|
export declare const inCI: boolean;
|
|
8
|
-
declare const isVercelPreview: boolean;
|
|
9
8
|
export declare const isVercelProd: boolean;
|
|
10
|
-
declare const packageVersion: string;
|
|
11
9
|
export declare const formattedUrl: ({ branchName, inCI: _inCI, inVercel: _inVercel, isVercelPreview: _isVercelPreview, packageVersion: _packageVersion, type, url, }: {
|
|
12
|
-
branchName?: string
|
|
10
|
+
branchName?: string;
|
|
13
11
|
inCI: boolean;
|
|
14
12
|
inVercel: boolean;
|
|
15
13
|
isVercelPreview: boolean;
|
|
16
14
|
packageVersion: string;
|
|
17
15
|
type: 'major' | 'full' | 'vercel-git';
|
|
18
|
-
url?: string
|
|
16
|
+
url?: string;
|
|
19
17
|
}) => string | undefined;
|
|
20
18
|
declare const envClientSchema: z.ZodObject<{
|
|
21
19
|
NEXT_PUBLIC_FLAG_URL: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Appearance } from '@stripe/stripe-js';
|
|
2
2
|
import type { ElementsUiStyle, ElementsUiTheme } from "../../types/generated/graphql.customer.types";
|
|
3
3
|
export declare const defaultVariable: ({ borderStyle, theme, }: {
|
|
4
|
-
borderStyle?: ElementsUiStyle
|
|
4
|
+
borderStyle?: ElementsUiStyle;
|
|
5
5
|
theme: ElementsUiTheme;
|
|
6
6
|
}) => Appearance['variables'];
|
|
@@ -3098,54 +3098,54 @@ export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, st
|
|
|
3098
3098
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
3099
3099
|
BulkClassify(variables?: {
|
|
3100
3100
|
[x: string]: never;
|
|
3101
|
-
}
|
|
3101
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<BulkClassifyMutation>;
|
|
3102
3102
|
CalculateLandedCost(variables?: {
|
|
3103
3103
|
[x: string]: never;
|
|
3104
|
-
}
|
|
3104
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CalculateLandedCostMutation>;
|
|
3105
3105
|
CheckItemRestrictions(variables?: {
|
|
3106
3106
|
[x: string]: never;
|
|
3107
|
-
}
|
|
3107
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckItemRestrictionsMutation>;
|
|
3108
3108
|
CheckoutSessionCreate(variables?: {
|
|
3109
3109
|
[x: string]: never;
|
|
3110
|
-
}
|
|
3110
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionCreateMutation>;
|
|
3111
3111
|
CheckoutSessionUpdate(variables?: {
|
|
3112
3112
|
[x: string]: never;
|
|
3113
|
-
}
|
|
3113
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionUpdateMutation>;
|
|
3114
3114
|
CheckoutSessionUpdateMetadata(variables?: {
|
|
3115
3115
|
[x: string]: never;
|
|
3116
|
-
}
|
|
3116
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionUpdateMetadataMutation>;
|
|
3117
3117
|
ExchangeRateCreate(variables?: {
|
|
3118
3118
|
[x: string]: never;
|
|
3119
|
-
}
|
|
3119
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<ExchangeRateCreateMutation>;
|
|
3120
3120
|
FulfillmentCenter(variables?: {
|
|
3121
3121
|
[x: string]: never;
|
|
3122
|
-
}
|
|
3122
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<FulfillmentCenterQuery>;
|
|
3123
3123
|
GetCheckoutSession(variables?: {
|
|
3124
3124
|
[x: string]: never;
|
|
3125
|
-
}
|
|
3125
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutSessionQuery>;
|
|
3126
3126
|
GetOrder(variables?: {
|
|
3127
3127
|
[x: string]: never;
|
|
3128
|
-
}
|
|
3128
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetOrderQuery>;
|
|
3129
3129
|
GetOrders(variables?: {
|
|
3130
3130
|
[x: string]: never;
|
|
3131
|
-
}
|
|
3131
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetOrdersQuery>;
|
|
3132
3132
|
GetTaxIdByCountry(variables?: {
|
|
3133
3133
|
[x: string]: never;
|
|
3134
|
-
}
|
|
3134
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetTaxIdByCountryQuery>;
|
|
3135
3135
|
OnlineStoreSettings(variables?: {
|
|
3136
3136
|
[x: string]: never;
|
|
3137
|
-
}
|
|
3137
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OnlineStoreSettingsQuery>;
|
|
3138
3138
|
OrderUpdateAccountOrderNumber(variables?: {
|
|
3139
3139
|
[x: string]: never;
|
|
3140
|
-
}
|
|
3140
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OrderUpdateAccountOrderNumberMutation>;
|
|
3141
3141
|
ShippingZones(variables?: {
|
|
3142
3142
|
[x: string]: never;
|
|
3143
|
-
}
|
|
3143
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<ShippingZonesQuery>;
|
|
3144
3144
|
ZonosSettings(variables?: {
|
|
3145
3145
|
[x: string]: never;
|
|
3146
|
-
}
|
|
3146
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosSettingsQuery>;
|
|
3147
3147
|
getCheckoutPlaceOrderButtonSelector(variables?: {
|
|
3148
3148
|
[x: string]: never;
|
|
3149
|
-
}
|
|
3149
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutPlaceOrderButtonSelectorQuery>;
|
|
3150
3150
|
};
|
|
3151
3151
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
@@ -737,75 +737,75 @@ export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, st
|
|
|
737
737
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
738
738
|
AllSettings(variables?: {
|
|
739
739
|
[x: string]: never;
|
|
740
|
-
}
|
|
740
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<AllSettingsQuery>;
|
|
741
741
|
CreateErrorEvent(variables?: {
|
|
742
742
|
[x: string]: never;
|
|
743
|
-
}
|
|
743
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateErrorEventMutation>;
|
|
744
744
|
CreateScriptLoadEvent(variables?: {
|
|
745
745
|
[x: string]: never;
|
|
746
|
-
}
|
|
746
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateScriptLoadEventMutation>;
|
|
747
747
|
DeleteAllStoreReserveOrders(variables?: {
|
|
748
748
|
[x: string]: never;
|
|
749
|
-
}
|
|
749
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteAllStoreReserveOrdersMutation>;
|
|
750
750
|
DeleteBigCommerceSettings(variables?: {
|
|
751
751
|
[x: string]: never;
|
|
752
|
-
}
|
|
752
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteBigCommerceSettingsMutation>;
|
|
753
753
|
DeleteOrderImportLock(variables?: {
|
|
754
754
|
[x: string]: never;
|
|
755
|
-
}
|
|
755
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteOrderImportLockMutation>;
|
|
756
756
|
DeleteReserveOrders(variables?: {
|
|
757
757
|
[x: string]: never;
|
|
758
|
-
}
|
|
758
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteReserveOrdersMutation>;
|
|
759
759
|
GetAudienceByAspectKey(variables?: {
|
|
760
760
|
[x: string]: never;
|
|
761
|
-
}
|
|
761
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetAudienceByAspectKeyQuery>;
|
|
762
762
|
GetBigCommerceSettings(variables?: {
|
|
763
763
|
[x: string]: never;
|
|
764
|
-
}
|
|
764
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetBigCommerceSettingsQuery>;
|
|
765
765
|
GetReserveOrder(variables?: {
|
|
766
766
|
[x: string]: never;
|
|
767
|
-
}
|
|
767
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetReserveOrderQuery>;
|
|
768
768
|
GetSettingsReserveOrders(variables?: {
|
|
769
769
|
[x: string]: never;
|
|
770
|
-
}
|
|
770
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetSettingsReserveOrdersQuery>;
|
|
771
771
|
InsertBigCommerceSettingsEvent(variables?: {
|
|
772
772
|
[x: string]: never;
|
|
773
|
-
}
|
|
773
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertBigCommerceSettingsEventMutation>;
|
|
774
774
|
InsertOrderImportLock(variables?: {
|
|
775
775
|
[x: string]: never;
|
|
776
|
-
}
|
|
776
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertOrderImportLockMutation>;
|
|
777
777
|
InsertReserveOrder(variables?: {
|
|
778
778
|
[x: string]: never;
|
|
779
|
-
}
|
|
779
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertReserveOrderMutation>;
|
|
780
780
|
InsertReserveOrderEvent(variables?: {
|
|
781
781
|
[x: string]: never;
|
|
782
|
-
}
|
|
782
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertReserveOrderEventMutation>;
|
|
783
783
|
LocaleCountryMessages(variables?: {
|
|
784
784
|
[x: string]: never;
|
|
785
|
-
}
|
|
785
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<LocaleCountryMessagesQuery>;
|
|
786
786
|
UpdateCacheStoreVersion(variables?: {
|
|
787
787
|
[x: string]: never;
|
|
788
|
-
}
|
|
788
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateCacheStoreVersionMutation>;
|
|
789
789
|
UpdateReserveOrder(variables?: {
|
|
790
790
|
[x: string]: never;
|
|
791
|
-
}
|
|
791
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateReserveOrderMutation>;
|
|
792
792
|
UpsertBigCommerceSettings(variables?: {
|
|
793
793
|
[x: string]: never;
|
|
794
|
-
}
|
|
794
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpsertBigCommerceSettingsMutation>;
|
|
795
795
|
cleanupTestZonosElementSetting(variables?: {
|
|
796
796
|
[x: string]: never;
|
|
797
|
-
}
|
|
797
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestZonosElementSettingMutation>;
|
|
798
798
|
getConversionEventBySessionIdAndOrgId(variables?: {
|
|
799
799
|
[x: string]: never;
|
|
800
|
-
}
|
|
800
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetConversionEventBySessionIdAndOrgIdQuery>;
|
|
801
801
|
hasPreviousErrors(variables?: {
|
|
802
802
|
[x: string]: never;
|
|
803
|
-
}
|
|
803
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<HasPreviousErrorsQuery>;
|
|
804
804
|
insertConversionEvent(variables?: {
|
|
805
805
|
[x: string]: never;
|
|
806
|
-
}
|
|
806
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertConversionEventMutation>;
|
|
807
807
|
zonosElementsSetting(variables?: {
|
|
808
808
|
[x: string]: never;
|
|
809
|
-
}
|
|
809
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosElementsSettingQuery>;
|
|
810
810
|
};
|
|
811
811
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--amino-
|
|
1
|
+
<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2825570c.system.js","./p-2d404058.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(t){"use strict";var s,o,e,n,i,a,h;return{setters:[function(t){s=t.r;o=t.h;e=t.H;n=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){}],execute:function(){var r=":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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return o(e,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},o("div",{class:h(["flag-container"])},o("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2825570c.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-f4c38bfc.system.js","./p-9db2f9d1.system.js"],(function(i){"use strict";var o,s,t,e,n,r,a,l,d;return{setters:[function(i){o=i.r;s=i.c;t=i.h;e=i.H},function(i){n=i.d;r=i.z},function(i){a=i.c},function(i){l=i.g},function(i){d=i.i}],execute:function(){var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";var c=h;var p=i("zonos_shipping_rich_radio",function(){function i(i){var t=this;o(this,i);this.radioSelected=s(this,"radioSelected",7);this.handleRichRadioSelect=function(i){var o;t.selectedItem=i;(o=t.radioSelected)===null||o===void 0?void 0:o.emit(i)};this.getRadioItemStyleVariables=function(){var i=t.borderColor||r.appearance.colorSecondary;var o=d(i)?"var(--amino-".concat(i,")"):i;return{"--border-radius":l(t.borderStyle),"--selected-border-color":o||"unset"}};this.items=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.theme=undefined;this.initialSelectedValue=undefined;this.selectedItem=null}i.prototype.componentWillLoad=function(){var i=this;if(this.initialSelectedValue){this.selectedItem=this.items.find((function(o){return o.value===i.initialSelectedValue}))||null}};i.prototype.render=function(){var i=this;var o;return t(e,{key:"a1c2ace211e4d0b9d63a784028cc725bab7229e7",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":n()})},(o=this.items)===null||o===void 0?void 0:o.map((function(o){var s;var e=((s=i.selectedItem)===null||s===void 0?void 0:s.value)===o.value;return t("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",e&&"selected"]),onClick:function(){return i.handleRichRadioSelect(o)}},t("input",{checked:e,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),t("div",{class:"zonos--shipping-info"},t("div",{class:"zonos--shipping-detail"},t("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&t("div",{class:"zonos--sub-detail"},o.sublabel&&t("zonos-text",{textColor:"gray-800"},o.sublabel),o.caption&&t("zonos-text",{textColor:"gray-600"},o.caption))),t("zonos-text",{type:"semiBoldLabel"},o.price)))})))};return i}());p.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-52de4d70.system.js","./p-167b3369.system.js","./p-23e7c655.system.js","./p-41c2b1c5.system.js","./p-9db2f9d1.system.js","./p-86034f1e.system.js"],(function(o){"use strict";var t,n,r,a,e,i,s,d,c,u;return{setters:[function(o){t=o.r;n=o.h;r=o.H;a=o.d},function(o){e=o.z;i=o.d},function(o){s=o.c},function(o){d=o.g},function(o){c=o.i},function(o){u=o.i}],execute:function(){var h=function(o){var t=o||e.appearance.colorSecondary;var n=t&&c(t)?"var(--amino-".concat(t,")"):t;var r=n&&u(n)?"DARK":"LIGHT";return r};var b=function(o){return Object.entries(o).reduce((function(o,t){var n=t[0],r=t[1];if(r){o[n]=r}return o}),{})};var l=":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;border-radius:var(--border-radius, var(--amino-radius-10))}: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));margin:1px;}: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(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--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)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}: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);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-500)}: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)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";var g=l;var v=o("zonos_button",function(){function o(o){var n=this;t(this,o);this.handleSlotChange=function(){n.hasContent=true};this.buttonColor=undefined;this.backgroundColor=undefined;this.borderStyle=undefined;this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.theme=undefined;this.hasIcon=!!this.icon;this.hasContent=false}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler()};o.prototype.render=function(){var o=this.loading||this.isDisabled;var t=this.variant||"standard";var a=this.buttonColor&&c(this.buttonColor)?"var(--amino-".concat(this.buttonColor,")"):this.buttonColor;var l=this.backgroundColor||e.appearance.colorSecondary;var g=t==="standard"?h(l):undefined;var v=d(this.borderStyle);var m=c(l)&&l?window.getComputedStyle(this.ele).getPropertyValue(l):l;var f=m&&u(m)?"white":"black";return n(r,{key:"284820ccca8e757e0223e3cc5fb13b7ed89a1eba",class:s(["zonos--elements"]),"data-theme":this.theme||g,disabled:o,style:b({"--background-color":l,"--border-radius":v,"--color":a,"--font-family":i()})},n("button",{key:"635799fed660c88d0a2a3f3b6f5490149bb5edc3",class:s([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",t,this.size,l&&t==="standard"&&"override-background"]),disabled:o},this.loading&&n("div",{class:"zonos--spinner-wrapper"},n("zonos-spinner",{size:16,spinnerColor:f})),!this.loading&&!this.iconRight&&this.icon,n("slot",{key:"35af5f49e65bb8cf93d538fa741302b41887da67",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o.prototype,"ele",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());v.style=g;var m=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";var f=m;var k=o("zonos_spinner",function(){function o(o){t(this,o);this.size=32;this.spinnerColor=undefined}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return n(r,{class:s(["zonos--elements",this.spinnerColor]),style:{"--size":"".concat(this.size,"px")}},n("svg",{viewBox:"0 0 50 50"},n("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),n("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return o}());k.style=f}}}));
|
|
1
|
+
System.register(["./p-2825570c.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-f4c38bfc.system.js","./p-9db2f9d1.system.js","./p-fc4da55c.system.js"],(function(o){"use strict";var t,n,r,a,e,i,s,d,c,u;return{setters:[function(o){t=o.r;n=o.h;r=o.H;a=o.d},function(o){e=o.z;i=o.d},function(o){s=o.c},function(o){d=o.g},function(o){c=o.i},function(o){u=o.i}],execute:function(){var b=function(o){var t=o||e.appearance.colorSecondary;var n=t&&c(t)?"var(--amino-".concat(t,")"):t;var r=n&&u(n)?"DARK":"LIGHT";return r};var h=function(o){return Object.entries(o).reduce((function(o,t){var n=t[0],r=t[1];if(r){o[n]=r}return o}),{})};var l=":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;border-radius:var(--border-radius, var(--amino-radius-10))}: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));margin:1px;}: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(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--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)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}: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);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-500)}: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)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";var g=l;var v=o("zonos_button",function(){function o(o){var n=this;t(this,o);this.handleSlotChange=function(){n.hasContent=true};this.buttonColor=undefined;this.backgroundColor=undefined;this.borderStyle=undefined;this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.theme=undefined;this.hasIcon=!!this.icon;this.hasContent=false}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler()};o.prototype.render=function(){var o=this.loading||this.isDisabled;var t=this.variant||"standard";var a=this.buttonColor&&c(this.buttonColor)?"var(--amino-".concat(this.buttonColor,")"):this.buttonColor;var l=this.backgroundColor||e.appearance.colorSecondary;var g=t==="standard"?b(l):undefined;var v=d(this.borderStyle);var m=c(l)&&l?window.getComputedStyle(this.ele).getPropertyValue(l):l;var f=m&&u(m)?"white":"black";return n(r,{key:"104b26d8b3fac6bafce6f5f852775af682d1b3f3",class:s(["zonos--elements"]),"data-theme":this.theme||g,disabled:o,style:h({"--background-color":l,"--border-radius":v,"--color":a,"--font-family":i()})},n("button",{key:"2ad1b59dd11e4460928b42f33e5d421e90f259d2",class:s([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",t,this.size,l&&t==="standard"&&"override-background"]),disabled:o},this.loading&&n("div",{key:"2849e63aa713c682e61a4a0c95e9bd5e0f5f8892",class:"zonos--spinner-wrapper"},n("zonos-spinner",{key:"7040089b82edd821ae997f39fbbab50c0e523924",size:16,spinnerColor:f})),!this.loading&&!this.iconRight&&this.icon,n("slot",{key:"b20b86b70bbb180f45880ffaf1fd13751fc4682f",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o.prototype,"ele",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());v.style=g;var m=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";var f=m;var k=o("zonos_spinner",function(){function o(o){t(this,o);this.size=32;this.spinnerColor=undefined}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return n(r,{class:s(["zonos--elements",this.spinnerColor]),style:{"--size":"".concat(this.size,"px")}},n("svg",{viewBox:"0 0 50 50"},n("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),n("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return o}());k.style=f}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as n,H as e}from"./p-
|
|
1
|
+
import{r as o,c as t,h as n,H as e}from"./p-2244534c.js";import{r as s,d as i,u as r,a,j as c,v as l,b as d}from"./p-816f1aee.js";import{z as h,b as u,d as m}from"./p-d41b5762.js";import"./p-d01576d7.js";import"./p-ed2e94d2.js";const f=o=>{const t=document.querySelector(o);if(!document.querySelector("zonos-hello")&&t){const o=document.createElement("zonos-hello");return t.appendChild(o),!0}return!1},p=class{constructor(n){o(this,n),this.stripeInitEvent=t(this,"stripeInitEvent",7),this.config=void 0,this.zonosApiKey=void 0}async initCheckoutElement(o){var t;o?(c.stripe=o,(t=h.checkoutSettings).placeOrderButtonSelector&&(r(t.placeOrderButtonSelector)?(()=>{if(!document.querySelector("zonos-checkout")){const o=document.createElement("zonos-checkout");document.body.appendChild(o)}})():i(`Selector checkoutButtonAnchor "${t.placeOrderButtonSelector}" is not a valid selector`)),a("init checkout element")):a("Stripe is not loaded yet - cannot init checkout element","warn")}initZonosNotification(){if(document.querySelector("zonos-notification"))return;const o=document.createElement("zonos-notification");document.body.appendChild(o)}async setupGoogleFont(o){var t,n;const e=o||m();if("Inter"===e){if(!o)return;a("[FONT] Just applied Inter , but no need to inject since we already inject Inter on start","warn"),h.appearance=Object.assign(Object.assign({},h.appearance),{fontFamily:o})}const{errors:i,json:r}=await s(`https://v1.route.js.zonos.com/api/zonos-elements/get-font-detail?family=${e}`);i.length>0||!r?a(`Failed to load font ${e}`,"warn"):(null===(n=(t=window.Zonos).injectSupportGoogleFont)||void 0===n||n.call(t,r.fontUrl),o&&(a(`[FONT] ${o} font override applied`),h.appearance=Object.assign(Object.assign({},h.appearance),{fontFamily:o})))}async componentWillLoad(){h.zonosApiKey=this.zonosApiKey,(async()=>{var o,t;const{errors:n,json:e}=await(async()=>{const{errors:o,json:t}=await s("https://v1.route.js.zonos.com/api/zonos-elements/zonos-settings");return o.length?(i("Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings"),{errors:o,json:null}):{errors:[],json:t}})();if("403"===(null===(o=n[0])||void 0===o?void 0:o.type.toString()))return void a("Failed to load zonos settings. This domain may not have access","warn");this.initZonosNotification(),u({overrideSettings:this.config,zonosSettings:e}),this.setupGoogleFont(),h.helloSettings&&(async o=>{const{anchorElementSelector:t}=o,n=(({position:o="bottom-right"})=>{const t=".zonos--hello-mobile-wrapper";if(document.querySelector(t))return t;const n=document.createElement("div");return n.className="zonos--hello-mobile-wrapper",n.style.position="fixed","top-right"===o&&(n.style.top="72px",n.style.right="24px"),"top-left"===o&&(n.style.top="72px",n.style.left="24px"),"bottom-right"===o&&(n.style.bottom="72px",n.style.right="24px"),"bottom-left"===o&&(n.style.bottom="72px",n.style.left="24px"),n.style.zIndex="2147483007",document.body.appendChild(n),t})({position:"bottom-right"}),e=window.Zonos.isBigCommerce?t||n:t;if(e&&r(e)){if(a("Hello init complete"),!f(e)){const o=new MutationObserver((()=>{f(e)&&o.disconnect()}));o.observe(document.body,{childList:!0,subtree:!0}),setTimeout((()=>{o.disconnect()}),5e3)}}else i(`Selector anchorElementSelector "${o.anchorElementSelector}" is not a valid selector.`)})(h.helloSettings),await l();const c=(null===(t=null==e?void 0:e.checkoutSettings)||void 0===t?void 0:t.externalServiceTokens.find((o=>"STRIPE_PUBLISHABLE_TOKEN"===o.type)))||null;if(c&&this.stripeInitEvent){if("INACTIVE"===h.checkoutSettings.subscriptionStatus)return a('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn"),void a("zonos controller loaded");if("DISABLED"===h.checkoutSettings.visibilityStatus)return a("=== Checkout is disabled by store owner ===","warn"),void a("zonos controller loaded");this.stripeInitEvent.emit({publishableKey:c.token}),a("zonos controller loaded")}else a("Checkout failed to load -- missing publishable key","warn")})()}async showNotification(o){const t=document.querySelector("zonos-notification");t?t.showNotification(o):a("Failed to show notification - zonos-notification not found","warn")}async overrideConfig(o){u({overrideSettings:o,zonosSettings:null})}async overrideCountry(o){d(o)}async getAppearanceSetting(){return h.appearance}async updateOrganizationName(o){h.organizationName=o}render(){return n(e,{key:"e0869cf08934b9d047adef9875c9a5f50d604bdf",class:"zonos--elements"})}};p.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{visibility:hidden;opacity:0;height:0}";export{p as zonos_controller}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(o,e,n,t){function s(o){return o instanceof n?o:new n((function(e){e(o)}))}return new(n||(n=Promise))((function(n,c){function r(o){try{u(t.next(o))}catch(o){c(o)}}function i(o){try{u(t["throw"](o))}catch(o){c(o)}}function u(o){o.done?n(o.value):s(o.value).then(r,i)}u((t=t.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},t,s,c,r;return r={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function i(o){return function(e){return u([o,e])}}function u(i){if(t)throw new TypeError("Generator is already executing.");while(r&&(r=0,i[0]&&(n=0)),n)try{if(t=1,s&&(c=i[0]&2?s["return"]:i[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,i[1])).done)return c;if(s=0,c)i=[i[0]&2,c.value];switch(i[0]){case 0:case 1:c=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;s=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!c||i[1]>c[0]&&i[1]<c[3])){n.label=i[1];break}if(i[0]===6&&n.label<c[1]){n.label=c[1];c=i;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(i);break}if(c[2])n.ops.pop();n.trys.pop();continue}i=e.call(o,n)}catch(o){i=[6,o];s=0}finally{t=c=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-52de4d70.system.js","./p-3639f458.system.js","./p-167b3369.system.js","./p-ad9c7245.system.js","./p-5a464374.system.js","./p-23e7c655.system.js","./p-41c2b1c5.system.js","./p-86034f1e.system.js"],(function(o){"use strict";var e,n,t,s,c,r,i,u,a,h,d,l,f,z,m,v,k,p,g,b,w,y,x,C,_,O,I,A,S,L,N,j,H,B;return{setters:[function(o){e=o.r;n=o.h;t=o.F;s=o.H},function(o){c=o.l;r=o.a;i=o.s;u=o.b;a=o.c;h=o.d;d=o.e;l=o.i;f=o.f;z=o.g;m=o.h;v=o.j;k=o.k;p=o.m;g=o.t;b=o.n;w=o.o;y=o.p;x=o.q},function(o){C=o.z;_=o.g;O=o.m},function(o){I=o.c;A=o.s;S=o.t},function(o){L=o.s;N=o.i},function(o){j=o.c},function(o){H=o.g},function(o){B=o.i}],execute:function(){var M=this;var E=function(o){var e=o.key,n=o.value;return n?{key:e,value:n}:null};var D=function(o){return[E({key:"brand",value:o.itemBrand}),E({key:"material",value:o.itemMaterial}),E({key:"category",value:o.itemCategory}),E({key:"color",value:o.itemColor}),E({key:"customization",value:o.itemCustomization}),E({key:"descriptionDetailed",value:o.itemDescriptionDetailed}),E({key:"fabricContent",value:o.itemFabricContent}),E({key:"ltlClass",value:o.itemLtlClass}),E({key:"pickingLocation",value:o.itemPickingLocation}),E({key:"shipFromLocation",value:o.itemShipFromLocation}),E({key:"size",value:o.itemSize}),E({key:"status",value:o.status})].filter(Boolean)};var P=function(o){if(!o){return"POUND"}switch(o.toUpperCase()){case"KG":return"KILOGRAM";case"OZ":return"OUNCE";case"G":return"GRAM";default:return"POUND"}};var T=function(o){if(!o){return[]}var e=[];if(o.length){e.push({type:"LENGTH",unitOfMeasure:"INCH",value:o.length})}if(o.width){e.push({type:"WIDTH",unitOfMeasure:"INCH",value:o.width})}if(o.weight){e.push({type:"WEIGHT",unitOfMeasure:P(o.weightUnits),value:o.weight})}if(o.height){e.push({type:"HEIGHT",unitOfMeasure:"INCH",value:o.height})}return e};var G=function(o){var e;var n=((e=o===null||o===void 0?void 0:o.items)===null||e===void 0?void 0:e.map((function(o){return{amount:o.unitPrice||0,attributes:D(o),countryOfOrigin:o.countryOfOrigin||undefined,currencyCode:"USD",description:o.itemDescriptionLong||"",imageUrl:o.imageURL||"",itemType:"PHYSICAL_GOOD",measurements:T(o),name:o.description||"",productId:o.productId||"",quantity:o.quantity||0,sku:o.sku||""}})))||[];return n};var Z=function(o){if(o===void 0){o=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){document.dispatchEvent(I("legacyCheckoutError","Unable to initiate checkout process in a country where shipping is not available"));if(o){r("Checkout: not shippable country")}return false}return true};var R=function(o){var e=o.domesticRedirectedBtnSelector,n=o.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var t=new MutationObserver((function(){return __awaiter(M,void 0,void 0,(function(){var o,s,c,r,l;var f=this;return __generator(this,(function(z){o=document.querySelector(e);s=i();if(!o&&s){c=document.createElement("button");c.style.display="none";c.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(c);n===null||n===void 0?void 0:n(s);t.disconnect();return[2]}r=document.querySelector('select[name="shippingAddress.countryCode"]');l=document.querySelector("#checkout-shipping-continue");if(!r||!l){return[2]}t.disconnect();l.addEventListener("click",(function(o){return __awaiter(f,void 0,void 0,(function(){var e,n,t,s,c,i,l;return __generator(this,(function(f){t=r.value;if(!t){return[2]}u(t);if(!Z(false)){a();return[2]}s=document.querySelector("form");if(!s){return[2]}c=new FormData(s);i=document.querySelector("input#addressLine1Input");l={address1:(e=c.get("shippingAddress.address1"))!==null&&e!==void 0?e:i&&i.value,address2:c.get("shippingAddress.address2"),city:c.get("shippingAddress.city"),countryCode:c.get("shippingAddress.countryCode"),firstName:c.get("shippingAddress.firstName"),lastName:c.get("shippingAddress.lastName"),phone:c.get("shippingAddress.phone"),postalCode:c.get("shippingAddress.postalCode"),stateOrProvince:(n=c.get("shippingAddress.stateOrProvince"))!==null&&n!==void 0?n:c.get("shippingAddress.stateOrProvinceCode")};if(Object.values(l).some((function(o){return o===undefined||o===null}))){h("One or more shipping address field is missing",Object.entries(l));void L({endpoint:"No endpoint, domestic checkout form missing fields",errors:["Bigcommerce: One or more shipping address field is missing in the domestic checkout form",JSON.stringify(Object.entries(l))],metadata:{domain:window.location.hostname,storeId:C.storeId}});return[2]}d({address1:l.address1,address2:l.address2,city:l.city,countryCode:l.countryCode,firstName:l.firstName,lastName:l.lastName,phone:l.phone,postalCode:l.postalCode,state:l.stateOrProvince});o.preventDefault();o.stopPropagation();window.location.href="/";return[2]}))}))}));return[2]}))}))}));t.observe(document.body,{childList:true,subtree:true})};var U='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var F='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var V=".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-24);top:var(--amino-space-24);z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12);padding-bottom:var(--amino-space-76)}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:var(--amino-space-0)}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:var(--amino-space-8)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";var K=V;var W=o("zonos_checkout",function(){function o(o){var n=this;e(this,o);this.applyStripeTheme=function(){return __awaiter(n,void 0,void 0,(function(){var o,e,n,t,s;return __generator(this,(function(c){switch(c.label){case 0:s=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||C.appearance.theme;return[4,l({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(n=this.appearanceSettingsOverride)===null||n===void 0?void 0:n.colorPrimary,overrideSecondaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorSecondary,overrideTheme:this.isMobile?s:undefined})];case 1:c.sent();return[2]}}))}))};this.getCurrentLocalePageEnum=function(){switch(f.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined;this.domesticRedirectedBtnSelector="#zonos--domestic-redirected-checkout-button";this.legacyCheckoutHiddenBtnSelector="#legacy-checkout-hidden-button";this.isLegacyCheckout=false}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=o.detail;void z(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){A("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&f.step==="finish"){m()}f.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,n;return __generator(this,(function(t){switch(t.label){case 0:if(!window.Zonos.tempCartData)return[3,2];o=G(window.Zonos.tempCartData);return[4,z(o)];case 1:t.sent();return[3,5];case 2:if(!C.checkoutSettings.buildCartDetail)return[3,5];r("build cart detail");return[4,C.checkoutSettings.buildCartDetail()];case 3:e=t.sent();return[4,z(e)];case 4:t.sent();t.label=5;case 5:if(!!v.clientSecret)return[3,7];return[4,k()];case 6:n=t.sent();r("stripeStoreInitCheckoutSession: ".concat(n));if(!n){return[2,false]}t.label=7;case 7:return[4,this.applyStripeTheme()];case 8:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;var e=C.checkoutSettings.placeOrderButtonSelector;r("attach checkout ".concat(e));if(!e){return}var n=document.querySelectorAll("".concat(e,", ").concat(this.domesticRedirectedBtnSelector));n.forEach((function(e){var n=e.getAttribute("data-zonos-checkout-attached");if(n){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,n;return __generator(this,(function(t){switch(t.label){case 0:if(!Z()){return[2]}e.preventDefault();e.stopPropagation();r("zonos checkout button clicked");v.isFetchingSession=true;this.open=true;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=t.sent();if(!o){throw new Error("Error building cart")}A("zonos-checkout-start");void S("checkout_open");return[3,4];case 3:n=t.sent();v.isFetchingSession=false;p({messages:[g("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:g("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.removeAttribute("disabled");e.setAttribute("data-zonos-checkout-attached","true");if(e.matches(o.domesticRedirectedBtnSelector)){e.dispatchEvent(I("click"));a();e.remove()}if(e.matches(o.legacyCheckoutHiddenBtnSelector)){o.isLegacyCheckout=true;e.dispatchEvent(I("click"));e.remove()}}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.useLegacyQueryParam=function(){var o=new URLSearchParams(window.location.search);var e={country:o.get("country"),customerAddress1:o.get("customerAddress1"),customerAddress2:o.get("customerAddress2"),customerCity:o.get("customerCity"),customerEmail:o.get("customerEmail"),customerName:o.get("customerName"),customerPhone:o.get("customerPhone"),customerState:o.get("customerState"),customerZip:o.get("customerZip")};if(!e.customerAddress1||!e.customerCity||!e.customerName||!e.customerPhone||!e.customerState||!e.customerZip||!e.country){return}this.defaultAddress={address:{city:e.customerCity,country:e.country,line1:e.customerAddress1,line2:e.customerAddress2||"",postal_code:e.customerZip,state:e.customerState},name:e.customerName,phone:e.customerPhone}};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var n=this;return __generator(this,(function(t){v.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;R({domesticRedirectedBtnSelector:this.domesticRedirectedBtnSelector,onShippingAddressSessionFound:function(o){n.defaultAddress={address:{city:o.city,country:o.countryCode,line1:o.address1,line2:o.address2,postal_code:o.postalCode,state:o.state},name:"".concat(o.firstName," ").concat(o.lastName),phone:o.phone}}});if(window.Zonos.tempCartData){this.useLegacyQueryParam()}o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var n=Z(false);var t=document.querySelectorAll(e);if(!n){t===null||t===void 0?void 0:t.forEach((function(o){var e=o;var n=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=n||"initial"}));return}t===null||t===void 0?void 0:t.forEach((function(o){var e=o;var n=e.style.display;e.setAttribute("data-zonos-checkout-original-display",n);e.style.display="none"}))}),100);e=setInterval((function(){v.stripe=window.Zonos.stripe;n.stripe=window.Zonos.stripe;if(!n.stripe){r("waiting for stripe to be loaded");return}if(n.storybookPaymentStatusOverride){clearInterval(e);return}r("init checkout");if(n.preview||n.forceDialogOpen){void n.buildCartAndInit()}else{n.attachCheckout();var o=new MutationObserver((function(){n.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){f.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(n){switch(n.label){case 0:this.submitLoading=true;return[4,b()];case 1:n.sent();o=setInterval((function(){if(f.landedCostData||!v.isFetchingLandedCost){if(f.landedCostData){w()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){w();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,y()];case 2:e.sent();w();return[3,4];case 3:o=e.sent();h(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,n;return __generator(this,(function(t){switch(t.label){case 0:x();if(!this.preview)return[3,2];f.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:m();if(this.isLegacyCheckout&&window.Zonos.tempCartData){o=window.Zonos.tempCartData.contShoppingURL;window.location.href=o;return[2]}e=window.location.href;n=e.split("?")[0];window.history.replaceState({},document.title,n);this.open=false;window.location.reload();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();r("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();r("mobile: ".concat(this.isMobile))};o.prototype.handleAppearanceSettingsOverrideChange=function(){var o;if((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme){this.appearanceSettingsOverride.theme=_(this.appearanceSettingsOverride.theme)}};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=N(this.mobile);this.handleAppearanceSettingsOverrideChange();r("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){x();m()};o.prototype.render=function(){var o=this;var e;var r=f.step!=="finish"&&f.step!=="error"&&!v.stripeElements||v.isFetchingSession;var i=O(C.appearance,this.appearanceSettingsOverride),u=i.colorPrimary,a=i.colorSecondary,h=i.logoUrl,d=i.style;var l=C.appearance.zonosAttribution==="ENABLED";var z=C.appearance.theme;var m=u&&B(u)?"DARK":"LIGHT";var k=this.isMobile?z:m;var p=!this.isMobile?a:undefined;var g=c.customMessages;var b=(e=g.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message;var w=this.getCurrentLocalePageEnum();var y=g.filter((function(o){return o.pageName===w}));var x=function(){var e=o.preview?"".concat(h,"?timestamp=").concat(Date.now()):h;return n("div",{class:"zonos--logo"},e&&n("img",{alt:"".concat(C.organizationName," logo"),src:e,width:100}))};var _=function(){return n("zonos-v-stack",null,x(),n("zonos-checkout-progress-tabs",{backgroundColor:o.isMobile?"--amino-gray-0":null}),y.map((function(o){return n("zonos-custom-message",{icon:U,message:o.message})})))};var I=function(){return n("div",{class:"zonos--content",style:{"--border-radius":H(d)}},f.step!=="finish"&&f.step!=="error"&&n(t,null,n("div",{class:"zonos--left","data-theme":k,style:{"--primary-color":!o.isMobile?u:""}},!o.isMobile&&_(),f.step==="customer-info"&&n("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:p}),f.step==="shipping"&&n("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:p}),f.step==="payment"&&n("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:p})),n("div",{class:"zonos--right","data-theme":z},o.isMobile&&_(),!o.isLegacyCheckout&&n("zonos-button",{class:"zonos--close-button",icon:n("zonos-icon",{"aria-label":"Close checkout dialog",content:F}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),n("div",{class:"flex--wrapper"},n("div",{class:"zonos--wrapper"},n("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile}}),n("zonos-collapse",{collapsed:o.collapseReviewMobile&&o.isMobile},n("zonos-cart-items",null),o.isMobile&&n("zonos-v-stack",{spacing:16},n("zonos-cart-subtotal",null),n("zonos-custom-message",{class:"zonos--checkout-default-message",icon:U,message:b})))),!o.isMobile&&n("zonos-v-stack",{spacing:16},n("zonos-cart-subtotal",null),n("zonos-custom-message",{class:"zonos--checkout-default-message",icon:U,message:b}))))),(f.step==="finish"||f.step==="error")&&n("div",{class:"zonos--done","data-theme":z},n("div",{class:"zonos--header"},x(),n("zonos-button",{class:"zonos--close-button",icon:n("zonos-icon",{"aria-label":"Close checkout dialog",content:F}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:z})),n("zonos-checkout-finish",{borderRadius:d,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:f.step==="error"&&!!f.error?Object.assign(Object.assign({},f.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})),n("zonos-checkout-footer",{"data-theme":z,mobile:o.isMobile,slot:!o.isMobile?"dialog-footer":undefined}))};return n(s,{class:j(["zonos--checkout zonos--elements",l&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?I():n("zonos-dialog",{borderStyle:d,height:"980px",isLoading:r,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},I()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());W.style=K}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,e,n,t){function s(o){return o instanceof n?o:new n((function(e){e(o)}))}return new(n||(n=Promise))((function(n,c){function r(o){try{u(t.next(o))}catch(o){c(o)}}function i(o){try{u(t["throw"](o))}catch(o){c(o)}}function u(o){o.done?n(o.value):s(o.value).then(r,i)}u((t=t.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},t,s,c,r;return r={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function i(o){return function(e){return u([o,e])}}function u(i){if(t)throw new TypeError("Generator is already executing.");while(r&&(r=0,i[0]&&(n=0)),n)try{if(t=1,s&&(c=i[0]&2?s["return"]:i[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,i[1])).done)return c;if(s=0,c)i=[i[0]&2,c.value];switch(i[0]){case 0:case 1:c=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;s=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!c||i[1]>c[0]&&i[1]<c[3])){n.label=i[1];break}if(i[0]===6&&n.label<c[1]){n.label=c[1];c=i;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(i);break}if(c[2])n.ops.pop();n.trys.pop();continue}i=e.call(o,n)}catch(o){i=[6,o];s=0}finally{t=c=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-2825570c.system.js","./p-2d404058.system.js","./p-520e8e63.system.js","./p-bdd775f2.system.js","./p-882ec68e.system.js","./p-23e7c655.system.js","./p-f4c38bfc.system.js","./p-fc4da55c.system.js"],(function(o){"use strict";var e,n,t,s,c,r,i,u,a,h,d,l,f,z,m,v,k,p,g,b,w,y,x,C,_,O,I,A,S,L,N,j,H,B;return{setters:[function(o){e=o.r;n=o.h;t=o.F;s=o.H},function(o){c=o.l;r=o.a;i=o.s;u=o.b;a=o.c;h=o.d;d=o.e;l=o.i;f=o.f;z=o.g;m=o.h;v=o.j;k=o.k;p=o.m;g=o.t;b=o.n;w=o.o;y=o.p;x=o.q},function(o){C=o.z;_=o.g;O=o.m},function(o){I=o.c;A=o.s;S=o.t},function(o){L=o.s;N=o.i},function(o){j=o.c},function(o){H=o.g},function(o){B=o.i}],execute:function(){var M=this;var E=function(o){var e=o.key,n=o.value;return n?{key:e,value:n}:null};var D=function(o){return[E({key:"brand",value:o.itemBrand}),E({key:"material",value:o.itemMaterial}),E({key:"category",value:o.itemCategory}),E({key:"color",value:o.itemColor}),E({key:"customization",value:o.itemCustomization}),E({key:"descriptionDetailed",value:o.itemDescriptionDetailed}),E({key:"fabricContent",value:o.itemFabricContent}),E({key:"ltlClass",value:o.itemLtlClass}),E({key:"pickingLocation",value:o.itemPickingLocation}),E({key:"shipFromLocation",value:o.itemShipFromLocation}),E({key:"size",value:o.itemSize}),E({key:"status",value:o.status})].filter(Boolean)};var P=function(o){if(!o){return"POUND"}switch(o.toUpperCase()){case"KG":return"KILOGRAM";case"OZ":return"OUNCE";case"G":return"GRAM";default:return"POUND"}};var T=function(o){if(!o){return[]}var e=[];if(o.length){e.push({type:"LENGTH",unitOfMeasure:"INCH",value:o.length})}if(o.width){e.push({type:"WIDTH",unitOfMeasure:"INCH",value:o.width})}if(o.weight){e.push({type:"WEIGHT",unitOfMeasure:P(o.weightUnits),value:o.weight})}if(o.height){e.push({type:"HEIGHT",unitOfMeasure:"INCH",value:o.height})}return e};var G=function(o){var e;var n=((e=o===null||o===void 0?void 0:o.items)===null||e===void 0?void 0:e.map((function(o){return{amount:o.unitPrice||0,attributes:D(o),countryOfOrigin:o.countryOfOrigin||undefined,currencyCode:"USD",description:o.itemDescriptionLong||"",imageUrl:o.imageURL||"",itemType:"PHYSICAL_GOOD",measurements:T(o),name:o.description||"",productId:o.productId||"",quantity:o.quantity||0,sku:o.sku||""}})))||[];return n};var Z=function(o){if(o===void 0){o=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){document.dispatchEvent(I("legacyCheckoutError","Unable to initiate checkout process in a country where shipping is not available"));if(o){r("Checkout: not shippable country")}return false}return true};var R=function(o){var e=o.domesticRedirectedBtnSelector,n=o.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var t=new MutationObserver((function(){return __awaiter(M,void 0,void 0,(function(){var o,s,c,r,l;var f=this;return __generator(this,(function(z){o=document.querySelector(e);s=i();if(!o&&s){c=document.createElement("button");c.style.display="none";c.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(c);n===null||n===void 0?void 0:n(s);t.disconnect();return[2]}r=document.querySelector('select[name="shippingAddress.countryCode"]');l=document.querySelector("#checkout-shipping-continue");if(!r||!l){return[2]}t.disconnect();l.addEventListener("click",(function(o){return __awaiter(f,void 0,void 0,(function(){var e,n,t,s,c,i,l;return __generator(this,(function(f){t=r.value;if(!t){return[2]}u(t);if(!Z(false)){a();return[2]}s=document.querySelector("form");if(!s){return[2]}c=new FormData(s);i=document.querySelector("input#addressLine1Input");l={address1:(e=c.get("shippingAddress.address1"))!==null&&e!==void 0?e:i&&i.value,address2:c.get("shippingAddress.address2"),city:c.get("shippingAddress.city"),countryCode:c.get("shippingAddress.countryCode"),firstName:c.get("shippingAddress.firstName"),lastName:c.get("shippingAddress.lastName"),phone:c.get("shippingAddress.phone"),postalCode:c.get("shippingAddress.postalCode"),stateOrProvince:(n=c.get("shippingAddress.stateOrProvince"))!==null&&n!==void 0?n:c.get("shippingAddress.stateOrProvinceCode")};if(Object.values(l).some((function(o){return o===undefined||o===null}))){h("One or more shipping address field is missing",Object.entries(l));void L({endpoint:"No endpoint, domestic checkout form missing fields",errors:["Bigcommerce: One or more shipping address field is missing in the domestic checkout form",JSON.stringify(Object.entries(l))],metadata:{domain:window.location.hostname,storeId:C.storeId}});return[2]}d({address1:l.address1,address2:l.address2,city:l.city,countryCode:l.countryCode,firstName:l.firstName,lastName:l.lastName,phone:l.phone,postalCode:l.postalCode,state:l.stateOrProvince});o.preventDefault();o.stopPropagation();window.location.href="/";return[2]}))}))}));return[2]}))}))}));t.observe(document.body,{childList:true,subtree:true})};var U='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var F='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var V=".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-24);top:var(--amino-space-24);z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12);padding-bottom:var(--amino-space-76)}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:var(--amino-space-0)}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:var(--amino-space-8)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";var K=V;var W=o("zonos_checkout",function(){function o(o){var n=this;e(this,o);this.applyStripeTheme=function(){return __awaiter(n,void 0,void 0,(function(){var o,e,n,t,s;return __generator(this,(function(c){switch(c.label){case 0:s=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||C.appearance.theme;return[4,l({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(n=this.appearanceSettingsOverride)===null||n===void 0?void 0:n.colorPrimary,overrideSecondaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorSecondary,overrideTheme:this.isMobile?s:undefined})];case 1:c.sent();return[2]}}))}))};this.getCurrentLocalePageEnum=function(){switch(f.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined;this.domesticRedirectedBtnSelector="#zonos--domestic-redirected-checkout-button";this.legacyCheckoutHiddenBtnSelector="#legacy-checkout-hidden-button";this.isLegacyCheckout=false}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=o.detail;void z(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){A("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&f.step==="finish"){m()}f.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,n;return __generator(this,(function(t){switch(t.label){case 0:if(!window.Zonos.tempCartData)return[3,2];o=G(window.Zonos.tempCartData);return[4,z(o)];case 1:t.sent();return[3,5];case 2:if(!C.checkoutSettings.buildCartDetail)return[3,5];r("build cart detail");return[4,C.checkoutSettings.buildCartDetail()];case 3:e=t.sent();return[4,z(e)];case 4:t.sent();t.label=5;case 5:if(!!v.clientSecret)return[3,7];return[4,k()];case 6:n=t.sent();r("stripeStoreInitCheckoutSession: ".concat(n));if(!n){return[2,false]}t.label=7;case 7:return[4,this.applyStripeTheme()];case 8:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;var e=C.checkoutSettings.placeOrderButtonSelector;r("attach checkout ".concat(e));if(!e){return}var n=document.querySelectorAll("".concat(e,", ").concat(this.domesticRedirectedBtnSelector));n.forEach((function(e){var n=e.getAttribute("data-zonos-checkout-attached");if(n){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,n;return __generator(this,(function(t){switch(t.label){case 0:if(!Z()){return[2]}e.preventDefault();e.stopPropagation();r("zonos checkout button clicked");v.isFetchingSession=true;this.open=true;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=t.sent();if(!o){throw new Error("Error building cart")}A("zonos-checkout-start");void S("checkout_open");return[3,4];case 3:n=t.sent();v.isFetchingSession=false;p({messages:[g("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:g("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.removeAttribute("disabled");e.setAttribute("data-zonos-checkout-attached","true");if(e.matches(o.domesticRedirectedBtnSelector)){e.dispatchEvent(I("click"));a();e.remove()}if(e.matches(o.legacyCheckoutHiddenBtnSelector)){o.isLegacyCheckout=true;e.dispatchEvent(I("click"));e.remove()}}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.useLegacyQueryParam=function(){var o=new URLSearchParams(window.location.search);var e={country:o.get("country"),customerAddress1:o.get("customerAddress1"),customerAddress2:o.get("customerAddress2"),customerCity:o.get("customerCity"),customerEmail:o.get("customerEmail"),customerName:o.get("customerName"),customerPhone:o.get("customerPhone"),customerState:o.get("customerState"),customerZip:o.get("customerZip")};if(!e.customerAddress1||!e.customerCity||!e.customerName||!e.customerPhone||!e.customerState||!e.customerZip||!e.country){return}this.defaultAddress={address:{city:e.customerCity,country:e.country,line1:e.customerAddress1,line2:e.customerAddress2||"",postal_code:e.customerZip,state:e.customerState},name:e.customerName,phone:e.customerPhone}};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var n=this;return __generator(this,(function(t){v.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;R({domesticRedirectedBtnSelector:this.domesticRedirectedBtnSelector,onShippingAddressSessionFound:function(o){n.defaultAddress={address:{city:o.city,country:o.countryCode,line1:o.address1,line2:o.address2,postal_code:o.postalCode,state:o.state},name:"".concat(o.firstName," ").concat(o.lastName),phone:o.phone}}});if(window.Zonos.tempCartData){this.useLegacyQueryParam()}o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var n=Z(false);var t=document.querySelectorAll(e);if(!n){t===null||t===void 0?void 0:t.forEach((function(o){var e=o;var n=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=n||"initial"}));return}t===null||t===void 0?void 0:t.forEach((function(o){var e=o;var n=e.style.display;e.setAttribute("data-zonos-checkout-original-display",n);e.style.display="none"}))}),100);e=setInterval((function(){v.stripe=window.Zonos.stripe;n.stripe=window.Zonos.stripe;if(!n.stripe){r("waiting for stripe to be loaded");return}if(n.storybookPaymentStatusOverride){clearInterval(e);return}r("init checkout");if(n.preview||n.forceDialogOpen){void n.buildCartAndInit()}else{n.attachCheckout();var o=new MutationObserver((function(){n.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){f.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(n){switch(n.label){case 0:this.submitLoading=true;return[4,b()];case 1:n.sent();o=setInterval((function(){if(f.landedCostData||!v.isFetchingLandedCost){if(f.landedCostData){w()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){w();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,y()];case 2:e.sent();w();return[3,4];case 3:o=e.sent();h(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,n;return __generator(this,(function(t){switch(t.label){case 0:x();if(!this.preview)return[3,2];f.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:m();if(this.isLegacyCheckout&&window.Zonos.tempCartData){o=window.Zonos.tempCartData.contShoppingURL;window.location.href=o;return[2]}e=window.location.href;n=e.split("?")[0];window.history.replaceState({},document.title,n);this.open=false;window.location.reload();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();r("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();r("mobile: ".concat(this.isMobile))};o.prototype.handleAppearanceSettingsOverrideChange=function(){var o;if((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme){this.appearanceSettingsOverride.theme=_(this.appearanceSettingsOverride.theme)}};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=N(this.mobile);this.handleAppearanceSettingsOverrideChange();r("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){x();m()};o.prototype.render=function(){var o=this;var e;var r=f.step!=="finish"&&f.step!=="error"&&!v.stripeElements||v.isFetchingSession;var i=O(C.appearance,this.appearanceSettingsOverride),u=i.colorPrimary,a=i.colorSecondary,h=i.logoUrl,d=i.style;var l=C.appearance.zonosAttribution==="ENABLED";var z=C.appearance.theme;var m=u&&B(u)?"DARK":"LIGHT";var k=this.isMobile?z:m;var p=!this.isMobile?a:undefined;var g=c.customMessages;var b=(e=g.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message;var w=this.getCurrentLocalePageEnum();var y=g.filter((function(o){return o.pageName===w}));var x=function(){var e=o.preview?"".concat(h,"?timestamp=").concat(Date.now()):h;return n("div",{class:"zonos--logo"},e&&n("img",{alt:"".concat(C.organizationName," logo"),src:e,width:100}))};var _=function(){return n("zonos-v-stack",null,x(),n("zonos-checkout-progress-tabs",{backgroundColor:o.isMobile?"--amino-gray-0":null}),y.map((function(o){return n("zonos-custom-message",{icon:U,message:o.message})})))};var I=function(){return n("div",{class:"zonos--content",style:{"--border-radius":H(d)}},f.step!=="finish"&&f.step!=="error"&&n(t,null,n("div",{class:"zonos--left","data-theme":k,style:{"--primary-color":!o.isMobile?u:""}},!o.isMobile&&_(),f.step==="customer-info"&&n("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:p}),f.step==="shipping"&&n("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:p}),f.step==="payment"&&n("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:p})),n("div",{class:"zonos--right","data-theme":z},o.isMobile&&_(),!o.isLegacyCheckout&&n("zonos-button",{class:"zonos--close-button",icon:n("zonos-icon",{"aria-label":"Close checkout dialog",content:F}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),n("div",{class:"flex--wrapper"},n("div",{class:"zonos--wrapper"},n("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile}}),n("zonos-collapse",{collapsed:o.collapseReviewMobile&&o.isMobile},n("zonos-cart-items",null),o.isMobile&&n("zonos-v-stack",{spacing:16},n("zonos-cart-subtotal",null),n("zonos-custom-message",{class:"zonos--checkout-default-message",icon:U,message:b})))),!o.isMobile&&n("zonos-v-stack",{spacing:16},n("zonos-cart-subtotal",null),n("zonos-custom-message",{class:"zonos--checkout-default-message",icon:U,message:b}))))),(f.step==="finish"||f.step==="error")&&n("div",{class:"zonos--done","data-theme":z},n("div",{class:"zonos--header"},x(),n("zonos-button",{class:"zonos--close-button",icon:n("zonos-icon",{"aria-label":"Close checkout dialog",content:F}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:z})),n("zonos-checkout-finish",{borderRadius:d,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:f.step==="error"&&!!f.error?Object.assign(Object.assign({},f.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})),n("zonos-checkout-footer",{"data-theme":z,mobile:o.isMobile,slot:!o.isMobile?"dialog-footer":undefined}))};return n(s,{class:j(["zonos--checkout zonos--elements",l&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?I():n("zonos-dialog",{borderStyle:d,height:"980px",isLoading:r,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},I()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());W.style=K}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as o,H as e}from"./p-
|
|
1
|
+
import{r as t,h as s,a as o,H as e}from"./p-2244534c.js";import{d as a}from"./p-d41b5762.js";import{c as r}from"./p-b4b7f705.js";const i=class{constructor(s){t(this,s),this.theme="LIGHT",this.width="auto"}render(){const t="DARK"===this.theme?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return s(e,{key:"eb9e895db6d309b91f24aaba07b6bef785d64982",class:r(["zonos--elements zonos--logo"]),style:{"--filter-color":t,"--font-family":a(),"--width":this.width}},s("img",{key:"411e92bcfdab9d8b7362b3fbeeffb836d8d20756",alt:"Zonos Logo",src:o("./assets/ZonosLogo.png")}))}static get assetsDirs(){return["assets"]}};i.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";export{i as zonos_logo}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,n,t=!1,l=!1,o=null,s=!1;const i=e=>{const n=new URL(e,ye.t);return n.origin!==ve.location.origin?n.href:n.pathname},r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const f=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!u(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?d(null,l):l),i=s)};if(c(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,r,p);const a=d(e,null);return a.o=n,r.length>0&&(a.i=r),a.u=o,a},d=(e,n)=>({v:0,p:e,l:n,h:null,i:null,o:null,u:null}),v={},p={forEach:(e,n)=>e.map(y).forEach(n),map:(e,n)=>e.map(y).map(n).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.m,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),f(e.vtag,n,...e.vchildren||[])}const n=d(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.m=e.vname,n},m=e=>se(e).$hostElement$,b=(e,n,t)=>{const l=m(e);return{emit:e=>$(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},$=(e,n,t)=>{const l=ye.ce(n,t);return e.dispatchEvent(l),l},w=new WeakMap,g=e=>"sc-"+e.$,j=(e,n,t,l,o,s)=>{if(t!==l){let i=ce(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=S(t),s=S(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const r=u(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):ce(ve,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(k);n=n.replace(C,""),t&&ye.rel(e,n,t,o),l&&ye.ael(e,n,l,o)}}},O=/\s/,S=e=>e?e.split(O):[],k="Capture",C=RegExp(k+"$"),M=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,s=e&&e.o||c,i=n.o||c;for(l of x(Object.keys(s)))l in i||j(o,l,s[l],void 0,t,n.v);for(l of x(Object.keys(i)))j(o,l,s[l],i[l],t,n.v)};function x(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}const E=(t,o,s)=>{const i=o.i[s];let r,c,u=0;if(null!==i.l)r=i.h=pe.createTextNode(i.l);else{if(l||(l="svg"===i.p),r=i.h=pe.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.p),l&&"foreignObject"===i.p&&(l=!1),M(null,i,l),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),i.i)for(u=0;u<i.i.length;++u)c=E(t,i,u),c&&r.appendChild(c);"svg"===i.p?l=!1:"foreignObject"===r.tagName&&(l=!0)}return r["s-hn"]=n,r},P=(e,t,l,o,s,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=E(null,l,s),r&&(o[s].h=r,c.insertBefore(r,t)))},L=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;F(n),e&&e.remove()}}},R=(e,n,t=!1)=>e.p===n.p&&(!!t||e.u===n.u),A=(e,n,o=!1)=>{const s=n.h=e.h,i=e.i,r=n.i,c=n.p,u=n.l;null===u?(l="svg"===c||"foreignObject"!==c&&l,("slot"!==c||t)&&M(e,n,l),null!==i&&null!==r?((e,n,t,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=n.length-1,d=n[0],v=n[f],p=l.length-1,y=l[0],h=l[p];for(;r<=f&&c<=p;)if(null==d)d=n[++r];else if(null==v)v=n[--f];else if(null==y)y=l[++c];else if(null==h)h=l[--p];else if(R(d,y,o))A(d,y,o),d=n[++r],y=l[++c];else if(R(v,h,o))A(v,h,o),v=n[--f],h=l[--p];else if(R(d,h,o))A(d,h,o),e.insertBefore(d.h,v.h.nextSibling),d=n[++r],h=l[--p];else if(R(v,y,o))A(v,y,o),e.insertBefore(v.h,d.h),v=n[--f],y=l[++c];else{for(u=-1,a=r;a<=f;++a)if(n[a]&&null!==n[a].u&&n[a].u===y.u){u=a;break}u>=0?(i=n[u],i.p!==y.p?s=E(n&&n[c],t,u):(A(i,y,o),n[u]=void 0,s=i.h),y=l[++c]):(s=E(n&&n[c],t,c),y=l[++c]),s&&d.h.parentNode.insertBefore(s,d.h)}r>f?P(e,null==l[p+1]?null:l[p+1].h,t,l,c,p):c>p&&L(n,r,f)})(s,i,n,r,o):null!==r?(null!==e.l&&(s.textContent=""),P(s,null,n,r,0,r.length-1)):null!==i&&L(i,0,i.length-1),l&&"svg"===c&&(l=!1)):e.l!==u&&(s.data=u)},F=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(F)},N=(e,n)=>{n&&!e.j&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.j=n)))},T=(e,n)=>{if(e.v|=16,!(4&e.v))return N(e,e.O),Se((()=>U(e,n)));e.v|=512},U=(e,n)=>{const t=e.S;let l;return n&&(e.v|=256,e.k&&(e.k.map((([e,n])=>G(t,e,n))),e.k=void 0),l=G(t,"componentWillLoad")),W(l,(()=>H(e,t,n)))},W=(e,n)=>D(e)?e.then(n):n(),D=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,H=async(e,n,t)=>{var l;const o=e.$hostElement$,s=o["s-rc"];t&&(e=>{const n=e.C,t=e.$hostElement$,l=n.v,o=((e,n)=>{var t;const l=g(n),o=de.get(l);if(e=11===e.nodeType?e:pe,o)if("string"==typeof o){let s,i=w.get(e=e.head||e);if(i||w.set(e,i=new Set),!i.has(l)){{s=pe.createElement("style"),s.innerHTML=o;const n=null!==(t=ye.M)&&void 0!==t?t:a(pe);null!=n&&s.setAttribute("nonce",n),e.insertBefore(s,e.querySelector("link"))}4&n.v&&(s.innerHTML+=r),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);q(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>V(e);0===n.length?t():(Promise.all(n).then(t),e.v|=4,n.length=0)}},q=(l,s,i,r)=>{try{o=s,s=s.render(),l.v&=-17,l.v|=2,((l,o,s=!1)=>{const i=l.$hostElement$,r=l.C,c=l.P||d(null,null),u=(e=>e&&e.p===v)(o)?o:f(null,null,o);if(n=i.tagName,s&&u.o)for(const e of Object.keys(u.o))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.o[e]=i[e]);u.p=null,u.v|=4,l.P=u,u.h=c.h=i.shadowRoot||i,e=i["s-sc"],t=!!(1&r.v),A(c,u,s)})(l,s,r)}catch(e){ue(e,l.$hostElement$)}return o=null,null},z=()=>o,V=e=>{const n=e.$hostElement$,t=e.S,l=e.O;G(t,"componentDidRender"),64&e.v||(e.v|=64,I(n),G(t,"componentDidLoad"),e.L(n),l||B()),e.R(n),e.j&&(e.j(),e.j=void 0),512&e.v&&Oe((()=>T(e,!1))),e.v&=-517},_=e=>{{const n=se(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.v)&&T(n,!1),t}},B=()=>{I(pe.documentElement),Oe((()=>$(ve,"appload",{detail:{namespace:"zonos-elements"}})))},G=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){ue(e)}},I=e=>e.classList.add("hydrated"),J=(e,n,t)=>{var l;const o=e.prototype;if(n.A){e.watchers&&(n.F=e.watchers);const s=Object.entries(n.A);if(s.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,e,{get(){return((e,n)=>se(this).N.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=se(e),s=o.$hostElement$,i=o.N.get(n),r=o.v,c=o.S;if(t=((e,n)=>null==e||u(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.A[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.N.set(n,t),c)){if(l.F&&128&r){const e=l.F[n];e&&e.map((e=>{try{c[e](t,i,n)}catch(e){ue(e,s)}}))}2==(18&r)&&T(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,e,{value(...n){var t;const l=se(this);return null===(t=null==l?void 0:l.T)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.S)||void 0===t?void 0:t[e](...n)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){ye.jmp((()=>{var i;const r=t.get(e);if(this.hasOwnProperty(r))s=this[r],delete this[r];else{if(o.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==s)return;if(null==r){const t=se(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,r=null===(i=n.F)||void 0===i?void 0:i[e];null==r||r.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[r]=(null!==s||"boolean"!=typeof this[r])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.F)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},K=async(e,n,t)=>{let l;if(!(32&n.v)){if(n.v|=32,t.U){if(l=fe(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.F=l.watchers,J(l,t,2),l.isProxied=!0);const e=()=>{};n.v|=8;try{new l(n)}catch(e){ue(e)}n.v&=-9,n.v|=128,e()}else l=e.constructor,customElements.whenDefined(t.$).then((()=>n.v|=128));if(l.style){let e=l.style;const n=g(t);if(!de.has(n)){const l=()=>{};((e,n,t)=>{let l=de.get(e);me&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,de.set(e,l)})(n,e,!!(1&t.v)),l()}}}const o=n.O,s=()=>T(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},Q=e=>{G(e,"disconnectedCallback")},X=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=ve.customElements,i=pe.head,c=i.querySelector("meta[charset]"),u=pe.createElement("style"),f=[];let d,v=!0;Object.assign(ye,n),ye.t=new URL(n.resourcesUrl||"./",pe.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{var t;const i={v:n[0],$:n[1],A:n[2],W:n[3]};4&i.v&&(p=!0),i.A=n[2],i.W=n[3],i.F=null!==(t=n[4])&&void 0!==t?t:{};const r=i.$,c=class extends HTMLElement{constructor(e){super(e),re(e=this,i),1&i.v&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):ye.jmp((()=>(e=>{if(!(1&ye.v)){const n=se(e),t=n.C,l=()=>{};if(1&n.v)Z(e,n,t.W),(null==n?void 0:n.S)||(null==n?void 0:n.D)&&n.D.then((()=>{}));else{n.v|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){N(n,n.O=t);break}}t.A&&Object.entries(t.A).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),K(e,n,t)}l()}})(this)))}disconnectedCallback(){ye.jmp((()=>(async()=>{if(!(1&ye.v)){const e=se(this);e.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.S)?Q(e.S):(null==e?void 0:e.D)&&e.D.then((()=>Q(e.S)))}})()))}componentOnReady(){return se(this).D}};i.U=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,J(c,i,1)))}))})),l.length>0&&(p&&(u.textContent+=r),u.textContent+=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!==(t=ye.M)&&void 0!==t?t:a(pe);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}v=!1,f.length?f.map((e=>e.connectedCallback())):ye.jmp((()=>d=setTimeout(B,30)))},Y=(e,n)=>n,Z=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=ne(e,t),i=ee(n,o),r=te(t);ye.ael(s,l,i,r),(n.H=n.H||[]).push((()=>ye.rel(s,l,i,r)))}))},ee=(e,n)=>t=>{try{256&e.v?e.S[n](t):(e.k=e.k||[]).push([n,t])}catch(e){ue(e)}},ne=(e,n)=>4&n?pe:8&n?ve:16&n?pe.body:e,te=e=>({passive:!!(1&e),capture:!!(2&e)}),le=e=>ye.M=e,oe=new WeakMap,se=e=>oe.get(e),ie=(e,n)=>oe.set(n.S=e,n),re=(e,n)=>{const t={v:0,$hostElement$:e,C:n,N:new Map};return t.T=new Promise((e=>t.R=e)),t.D=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],Z(e,t,n.W),oe.set(e,t)},ce=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),ae=new Map,fe=e=>{const n=e.$.replace(/-/g,"_"),t=e.U,l=ae.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(ae.set(t,e),e[n])),ue)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,ve="undefined"!=typeof window?window:{},pe=ve.document||{head:{}},ye={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},he=e=>Promise.resolve(e),me=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),be=[],$e=[],we=(e,n)=>t=>{e.push(t),s||(s=!0,n&&4&ye.v?Oe(je):ye.raf(je))},ge=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){ue(e)}e.length=0},je=()=>{ge(be),ge($e),(s=be.length>0)&&ye.raf(je)},Oe=e=>he().then(e),Se=we($e,!0);export{Y as F,v as H,i as a,X as b,b as c,m as d,_ as f,z as g,f as h,he as p,ie as r,le as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as a}from"./p-
|
|
1
|
+
import{r as o,h as t,H as a}from"./p-2244534c.js";const s=class{constructor(t){o(this,t),this.href="",this.rel=void 0,this.target=void 0,this.linkTitle=void 0}render(){return t(a,{key:"7af1c9dfc60d61837c25ed586b34d03737e190b7",class:"zonos--elements"},t("a",{key:"6be4c2839936832d9d512e9afe4b8fe4e69889bf",href:this.href,rel:this.rel,target:this.target,title:this.linkTitle},t("slot",{key:"897ec8e65f325161cf80d71b6efbcf05c4a444ae"})))}};s.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:inline-block}:host a{padding-bottom:2px;color:var(--amino-primary);-webkit-box-shadow:none;box-shadow:none;text-decoration:none;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}:host a:link,:host a:visited{color:var(--amino-primary);-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out}:host a:hover,:host a:active{color:var(--amino-primary);-webkit-box-shadow:0 1px 0 var(--amino-primary);box-shadow:0 1px 0 var(--amino-primary)}";export{s as zonos_link}
|