@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
|
@@ -8,9 +8,9 @@ export class ZonosCustomMessage {
|
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'b917fa2e0b2293b3423ba8910cca667b62c3b7c0', class: "zonos--elements", style: {
|
|
12
12
|
'--font-family': zonosStoreFontFamily(),
|
|
13
|
-
} }, this.message && (h("zonos-card", { class: "zonos--custom-message", spacing: "12px" }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { innerHTML: messageWithLinks }))))));
|
|
13
|
+
} }, this.message && (h("zonos-card", { key: '28d3e6d986ee9a2d56ddb173f1e1e5094d18634a', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '526de02e727a977f42e5547fc1ba0c91d682e72f', class: "zonos--flex-message" }, h("zonos-icon", { key: '0e2360d11bff3c94c3ba722a0a2b4767f04232fc', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'fa8c7e5042f1d622053ccd86bb52b51304ffc83e', innerHTML: messageWithLinks }))))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-custom-message"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,7 +47,7 @@ export class ZonosDialog {
|
|
|
47
47
|
document.body.style.overflow = 'auto';
|
|
48
48
|
}
|
|
49
49
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'b2f500bb70769f6d14d7e4002e5b11fe854e3bd1', class: classes([
|
|
51
51
|
'zonos--elements',
|
|
52
52
|
this.open && 'open',
|
|
53
53
|
this.isLoading && 'is-loading',
|
|
@@ -58,10 +58,10 @@ export class ZonosDialog {
|
|
|
58
58
|
'--font-family': zonosStoreFontFamily(),
|
|
59
59
|
'--height': this.height || 'initial',
|
|
60
60
|
'--width': this.width,
|
|
61
|
-
} }, h("div", { key: '
|
|
61
|
+
} }, h("div", { key: '9715c4765caee524a8030b2baa9352e44d0eeec0', class: "zonos--backdrop" }), h("div", { key: '05357a1ab95c995a35602517555f33e14c712bcc', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '6acbd0635fcfb95910c20db9d1803a3c2685f4ac', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '5a94b2d158ffdd5c1d5b4b6e2d1cca60ff31fb10', class: "zonos--loading" }, h("zonos-spinner", { key: '80fe57fea64e1ac4a5eb286fe19c327230748837', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '773b53526fc24469e41e927d50a0aadbc8470a4a', class: "zonos--header" }, this.headerText && (h("h3", { key: '9e9a754fdc82900b720ac5289b83d0217eb89517', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '4525da6839849fd972f9b470e280f176803921ed', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '1c9ff5924f0fa9cdb7753fbcf0c2dc51171535b0', class: classes([
|
|
62
62
|
'zonos--body',
|
|
63
63
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
64
|
-
]) }, h("slot", { key: '
|
|
64
|
+
]) }, h("slot", { key: '96b0c127f550413a5108a6f87a8397a0c6e01e64' })), h("slot", { key: 'a5c64424aadb3a56682de39b497ecc0eafdf3de7', name: "dialog-footer" })))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "zonos-dialog"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,9 +16,9 @@ export class ZonosLanguageSelect {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const { selectedLocale } = localizationStore;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'c3185eaf7f8e73d1356d6cba5a7c7ba6da9db7f8', class: "zonos--elements", style: {
|
|
20
20
|
'--font-family': zonosStoreFontFamily(),
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: '59c2af417f20ee915dfddaa08c2a9f4288a5d040', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '2cc4a3bed8e5e2c89f8ef624a9a0d2e778da9005', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'b0bb95a16d56e344833f3d6ec3b23ae6d5b65270', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "zonos-language-select"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,11 +10,11 @@ export class ZonosLogo {
|
|
|
10
10
|
const filterColor = this.theme === 'DARK'
|
|
11
11
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
12
12
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'eb9e895db6d309b91f24aaba07b6bef785d64982', class: classes(['zonos--elements zonos--logo']), style: {
|
|
14
14
|
'--filter-color': filterColor,
|
|
15
15
|
'--font-family': zonosStoreFontFamily(),
|
|
16
16
|
'--width': this.width,
|
|
17
|
-
} }, h("img", { key: '
|
|
17
|
+
} }, h("img", { key: '411e92bcfdab9d8b7362b3fbeeffb836d8d20756', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "zonos-logo"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
CHANGED
|
@@ -8,9 +8,9 @@ export class ZonosSelectDialogHeader {
|
|
|
8
8
|
this.label = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'cd3cc096f08cdb3dd2170d9e8d578f603155b0d0', class: "zonos--elements", style: {
|
|
12
12
|
'--font-family': zonosStoreFontFamily(),
|
|
13
|
-
} }, h("zonos-v-stack", { key: '
|
|
13
|
+
} }, h("zonos-v-stack", { key: '40ddbfe738428ca388cb4b3a8244d86e5e26d876', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '4706e9acb42c11b213044084e25be8a5c13119f1', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'b5c5289219bb4ff380aa5e3c0738ae9029d00cdf', type: "boldLabel" }, this.label), h("zonos-button", { key: '6d8c62ee077ab7883081a693825a00fd06cded69', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '42241292083a7041d600ac4af3034e61c5d4a6b1' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-select-dialog-header"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,10 +7,10 @@ export class ZonosTooltip {
|
|
|
7
7
|
this.showTooltip = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '5226e33bb8f9280965b254c51235c38e2e5f6ab6', class: "zonos--elements" }, h("div", { key: 'fd9bc052cc1081cbd87eaa3f4e6f0f53070c5b53', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '82d9885a2afb7e28707ddf6b24cb7c2dc148ef33' }), h("div", { key: 'c59b3beaca558dc95149455c9a15a8ce26bb0d70', class: classes([
|
|
11
11
|
this.showTooltip && 'zonos--show-tooltip',
|
|
12
12
|
'zonos--tooltip-content',
|
|
13
|
-
]) }, h("zonos-text", { key: '
|
|
13
|
+
]) }, h("zonos-text", { key: 'f5213ba0f401359e5bccd289df3eae18e7b18a1d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '3bfad7df7cf6715230ffc0bc1c0b49b8900955b7', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-tooltip"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,9 +7,9 @@ export class VStack {
|
|
|
7
7
|
this.spacing = 24;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '415d652d553042161ef364e2a8ccd226fcfe3d84', style: {
|
|
11
11
|
'--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: '1d8df528db72b8c1102742203eb53ce81efb1aae', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '66d247c7e8c8da9e311014695ce3a50b38709c33' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "zonos-v-stack"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class ZonosComponent {
|
|
|
10
10
|
return format(this.first, this.middle, this.last);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: '4d80a174a7fa12f620fc831eb7fe3f5ad8ad575b' }, "Hello, World! I'm ", this.getText());
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-component"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,9 +17,9 @@ export class ZonosHelloDialogFooter {
|
|
|
17
17
|
const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
|
|
18
18
|
const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
|
|
19
19
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '046b97e6ed7c35e5e9a244d0ffc3b59dfd206a8a', class: "zonos--elements" }, h("div", { key: '9134e27c1ec407b7661b6b92cd37cd17333e0f15', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
|
|
21
21
|
'--primary-color': (_c = this.appearanceSettings) === null || _c === void 0 ? void 0 : _c.colorPrimary,
|
|
22
|
-
} }, h("a", { key: '
|
|
22
|
+
} }, h("a", { key: '670c4627ff0297e2a4869a00e19032b3289396d7', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'b67dd84bc4a4a245a0f2117e5b063df659f12ef9', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: '823af21d0e96c52eed9cb9b6b13faf875bba13c8', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'edd4b9d15b9e2f5051bd5e3e524fcd0d93e66543', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'f350f61d47eb93d7ac8ebc5c8faddc932262f990', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -157,17 +157,17 @@ export class ZonosHelloDialog {
|
|
|
157
157
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
158
158
|
const currentPage = this.getCurrentPageEnum();
|
|
159
159
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'f300db080cf0634c72aae93aceae288ce67c500c', class: "zonos--elements" }, h("div", { key: 'e61bbf7022be71909ab56267721026f95b9fc2fc', "aria-hidden": "true", class: classes([
|
|
161
161
|
'zonos--hello-dialog',
|
|
162
162
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
163
163
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
164
164
|
!!this.mobileLocationOverride &&
|
|
165
165
|
'zonos--hello-dialog-mobile-override',
|
|
166
166
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
167
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div",
|
|
167
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '909e251587e2650dbdc1afe5b19e9b3a55f72a18' }, h("div", { key: 'a4a79886507449ba688c87474d064528cae3779b', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '1e7a3e74f3f5ab94a70983a067cc08d596d9c5be', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '1c981178390c120427d61f68a05808a95f8da72a', spacing: 24 }, h("zonos-country-flag", { key: '095e060cf50ee4525ea501e682735370c0c03cfa', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '1db18e95118922462526c7092accf42639bd4fdd', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'f494d050c90922328f3e8ea3bd05e1cf9e6d239c', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'b31645d57a3c5f25eb59b61482d4e383e3cb962c', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '1e8f0a656074cd830715d19685c2a3c9daced9be', spacing: 8 }, this.restrictedItems.map(item => {
|
|
168
168
|
var _a;
|
|
169
169
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
170
|
-
}), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text",
|
|
170
|
+
}), h("zonos-card", { key: 'fd2c574714b2e0dafacb4f9390c81b7b6003c7d3', spacing: "12px" }, h("zonos-v-stack", { key: '41a9864f58ddc28f1767113f517a7a9cf3a0be6d', spacing: 12 }, h("div", { key: 'ced705bcf185987815a898a173d08c571017a052', class: "zonos--flex-message" }, h("zonos-icon", { key: '4724edca926eec5e050c711dcb96c6b914985695', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '6c6d3b36897fd141ca83fbf008dae9f24ac56e40' }, dutyDeMinimisMessage)), h("div", { key: 'abe17715558f2ee3ded882eb2c5c1466904bfc8e', class: "zonos--flex-message" }, h("zonos-icon", { key: 'e8371f1e89a5b21947bfdcf73e6294bd6de49946', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: '952485295cfec2d7ad1b61523bb05378bae08e34' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'abc0e4c7ddecbe85dd8f4b8adab15073b1b6a2db', class: "zonos--flex-message" }, h("zonos-icon", { key: '973ea223a40648ca8cac99bd0c839dd324894f1c', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'c6460eefa388097ed27e29d3a91055afbf8a5261' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'daabdaf6f1f59e6e2ef3ad7516af60eb50a34633', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '88608070d3a34b3742eeac74cb836b98ddb171eb' }, h("zonos-country-select", { key: '91acd80a1549277528927512e9d299282a0e3d26', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '5b70e70778b8e863d1f256406f884179a01d9de2' }, h("zonos-language-select", { key: 'ba74dfc5baa25694dec9273c08644db8cd312dc1', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "zonos-hello-dialog"; }
|
|
173
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -152,7 +152,7 @@ export class ZonosController {
|
|
|
152
152
|
zonosStore.organizationName = organizationName;
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return h(Host, { key: '
|
|
155
|
+
return h(Host, { key: 'e0869cf08934b9d047adef9875c9a5f50d604bdf', class: "zonos--elements" });
|
|
156
156
|
}
|
|
157
157
|
static get is() { return "zonos-controller"; }
|
|
158
158
|
static get encapsulation() { return "shadow"; }
|
|
@@ -201,7 +201,7 @@ export class ZonosAddress {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
204
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: 'be43a9b0929211e2dd8e83950569caa12213ad91', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '2a9214eae80832c2f706f3dc2e7c837c9f615dd6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '70a039b36fe8550680c95338f1b225389f5c7fab', class: "zonos--address-component" }), this.invalidCharacterList && (h("zonos-banner", { key: 'a9cf6873645eb0ef68be0595d1f16483fccdf5df', bannerTitle: translate('Please resolve the following errors:'), intent: "error" }, Object.keys(this.invalidCharacterList).map(fieldName => (h("zonos-text", null, `- ${translate(mappedFields[fieldName])}: ${translate('only supports Latin characters (A-Z, a-z)')}`)))))));
|
|
205
205
|
}
|
|
206
206
|
static get is() { return "zonos-address"; }
|
|
207
207
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -36,7 +36,7 @@ export class ZonosLinkAuthentication {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '675de93a982a3cc558b64f24971441c227955e6f', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'd75a5a301e869325c9a249275ce10d4905c0198c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'fbf58d00fa76d7e715f2d1056a298840043e1056', class: "zonos--link-authentication-component" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-link-authentication"; }
|
|
42
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -37,7 +37,7 @@ export class ZonosPayment {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '4886087d915369f60296b6ba86fe9400ae6db8dd', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ac83371e795b8ae833087143c719cf6dfc066ab3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '2895560e50d856a071bef08c800b3112899e22e8', class: "zonos--payment-component" })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "zonos-payment"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -221,7 +221,7 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
223
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
224
|
-
return (h(Host, { key: '
|
|
224
|
+
return (h(Host, { key: 'be43a9b0929211e2dd8e83950569caa12213ad91', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '2a9214eae80832c2f706f3dc2e7c837c9f615dd6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '70a039b36fe8550680c95338f1b225389f5c7fab', class: "zonos--address-component" }), this.invalidCharacterList && (h("zonos-banner", { key: 'a9cf6873645eb0ef68be0595d1f16483fccdf5df', bannerTitle: translate('Please resolve the following errors:'), intent: "error" }, Object.keys(this.invalidCharacterList).map(fieldName => (h("zonos-text", null, `- ${translate(mappedFields[fieldName])}: ${translate('only supports Latin characters (A-Z, a-z)')}`)))))));
|
|
225
225
|
}
|
|
226
226
|
get el() { return this; }
|
|
227
227
|
static get watchers() { return {
|
|
@@ -19,16 +19,16 @@ const ZonosBadge = /*@__PURE__*/ proxyCustomElement(class ZonosBadge extends HTM
|
|
|
19
19
|
this.rounded = false;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '9113b76d0368284d8062ba73cb1433ae64648c56', class: classes(['zonos--elements zonos--badge']), style: {
|
|
23
23
|
'--font-family': zonosStoreFontFamily(),
|
|
24
|
-
} }, h("div", { key: '
|
|
24
|
+
} }, h("div", { key: '0edaabad09319fa6cc2d5b02c304e5ed77d35eac', class: classes([
|
|
25
25
|
'zonos--badge-content',
|
|
26
26
|
this.badgeColor,
|
|
27
27
|
this.rounded && 'rounded',
|
|
28
28
|
this.iconRight && 'icon-right',
|
|
29
29
|
this.size,
|
|
30
30
|
this.bold && 'bold',
|
|
31
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
31
|
+
]) }, this.icon, h("zonos-text", { key: '2d37289c26e12cb074ff7003032a1d417bbf1fdf' }, h("slot", { key: '2caa00a312b624d747dbe145b8673ced9118e49e' })))));
|
|
32
32
|
}
|
|
33
33
|
static get style() { return ZonosBadgeStyle0; }
|
|
34
34
|
}, [1, "zonos-badge", {
|
|
@@ -99,12 +99,12 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
|
|
|
99
99
|
const spinnerColor = backgroundActualColor && isDarkColor(backgroundActualColor)
|
|
100
100
|
? 'white'
|
|
101
101
|
: 'black';
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: '104b26d8b3fac6bafce6f5f852775af682d1b3f3', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
103
103
|
'--background-color': overrideBackground,
|
|
104
104
|
'--border-radius': borderStyle,
|
|
105
105
|
'--color': color,
|
|
106
106
|
'--font-family': zonosStoreFontFamily(),
|
|
107
|
-
}) }, h("button", { key: '
|
|
107
|
+
}) }, h("button", { key: '2ad1b59dd11e4460928b42f33e5d421e90f259d2', class: classes([
|
|
108
108
|
this.hasIcon && 'has-icon',
|
|
109
109
|
this.hasContent && 'has-content',
|
|
110
110
|
this.noBackground && 'no-background',
|
|
@@ -117,7 +117,7 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
|
|
|
117
117
|
overrideBackground &&
|
|
118
118
|
variant === 'standard' &&
|
|
119
119
|
'override-background',
|
|
120
|
-
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '
|
|
120
|
+
]), disabled: disabled }, this.loading && (h("div", { key: '2849e63aa713c682e61a4a0c95e9bd5e0f5f8892', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '7040089b82edd821ae997f39fbbab50c0e523924', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'b20b86b70bbb180f45880ffaf1fd13751fc4682f', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
121
121
|
}
|
|
122
122
|
get ele() { return this; }
|
|
123
123
|
static get watchers() { return {
|
|
@@ -19,12 +19,12 @@ const ZonosCard = /*@__PURE__*/ proxyCustomElement(class ZonosCard extends HTMLE
|
|
|
19
19
|
this.spacing = '24px';
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '0d8b5af14b922c5bb4664a657da1f5f40dbb80c9', style: {
|
|
23
23
|
'--font-family': zonosStoreFontFamily(),
|
|
24
|
-
} }, h("div", { key: '
|
|
24
|
+
} }, h("div", { key: '4636de2659dac17eddf05aa9ce0e3b1b3091de65', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { key: '591276139b808995cb26b54921bdbb1d55995fbb', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '017ca4195a3d2b9efdc337966203165a1f0f074d', type: "subheader" }, this.label), h("h-stack", { key: 'dc3a2c4ad7cb2a053819727fc5bff90d70438a25', spacing: 8 }, this.actions))), h("slot", { key: '0f19e23f2744b2ccbfc5ca7d1aefebf7326ab649' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'fd0adb2b5146f0542c12b2628f011417911c54ec', class: "card-footer", style: {
|
|
25
25
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
26
26
|
padding: this.spacing,
|
|
27
|
-
} }, h("div",
|
|
27
|
+
} }, h("div", { key: '82bc7d63eec3c3d716128740e86879a11befa0aa' }, this.footerContent), h("h-stack", { key: '66261eaffa40882c5bd2255649325a16a5f65f7e', spacing: 8 }, this.footerActions))))));
|
|
28
28
|
}
|
|
29
29
|
static get style() { return ZonosCardStyle0; }
|
|
30
30
|
}, [1, "zonos-card", {
|
|
@@ -46,14 +46,14 @@ const ZonosCheckbox = /*@__PURE__*/ proxyCustomElement(class ZonosCheckbox exten
|
|
|
46
46
|
? 'var(--amino-gray-800)'
|
|
47
47
|
: 'var(--amino-gray-0)';
|
|
48
48
|
const borderStyle = getBorderRadius(this.borderStyle, '4px');
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '47b3b90b44f846e49de755f2c131e79da3f34c0f', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
50
50
|
'--background-color': backgroundColor,
|
|
51
51
|
'--border-radius': borderStyle,
|
|
52
52
|
'--font-family': zonosStoreFontFamily(),
|
|
53
53
|
'--size': `${this.size}px`,
|
|
54
|
-
} }, h("label", { key: '
|
|
54
|
+
} }, h("label", { key: '6c1aac697aee17eb684d8416ae65092e3095fada', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'f75b6bff9ea136596af3489721096d862ea622c3', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
55
55
|
this.checkboxSelected.emit(e.target.checked);
|
|
56
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
56
|
+
}, type: "checkbox" }), h("span", { key: '2a2dcd8e798fdd54daf43dedcb42dac3088a6dfc', class: "checkmark-container" }, h("svg", { key: 'e74713df9adc970d0a5b8d6374eb63e69c64ff1a', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '3ae1a1a8f74a607ad5d4e4f940b45ac0b242426e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '25ff0a74e7ec6409e41d3f2998648f0c28a28ae0', size: this.fontSize }, this.label)))));
|
|
57
57
|
}
|
|
58
58
|
static get style() { return ZonosCheckboxStyle0; }
|
|
59
59
|
}, [1, "zonos-checkbox", {
|
|
@@ -172,7 +172,7 @@ const ZonosCheckoutFinish = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout
|
|
|
172
172
|
// }, 0);
|
|
173
173
|
return (h(Host, { key: '8c2087b3a0578cbbd7979fff5e6b696a4325e548', class: "zonos--checkout-finish zonos--elements", style: {
|
|
174
174
|
'--border-radius': getBorderRadius(this.borderRadius),
|
|
175
|
-
} }, this.isLoading && (h("div", { class: "loading-wrapper" }, h("zonos-spinner",
|
|
175
|
+
} }, this.isLoading && (h("div", { key: 'dd86d26aee1eb604b8e9b2e7328706db43c80467', class: "loading-wrapper" }, h("zonos-spinner", { key: 'a2f07a512a1d45df0be48461b0e989681b6cb78d' }))), !this.isLoading && (h(Fragment, null, h("div", { key: 'f147c24eefb4aa36ed556c581c2f64a096dbe17b', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '33a02654ede8a7ef7d884b0138c6e2c96406372f', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'c179ac24421803973ae8509a338cc34a4c80ac54' }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '488594968d4e957856218b0f804ed9b9947102aa', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
|
|
176
176
|
}
|
|
177
177
|
static get assetsDirs() { return ["assets"]; }
|
|
178
178
|
static get style() { return ZonosCheckoutFinishStyle0; }
|
|
@@ -55,10 +55,10 @@ const ZonosCheckoutFooter = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout
|
|
|
55
55
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
56
56
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
57
57
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1200';
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'fae1e5cb1250e834ecf3b09f11785ddea61be3b2', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'f3d48fcc675458dd38ca48e21f24a003b5ff9b56', class: "zonos--checkout-footer" }, h("div", { key: '97daec871630cf2bb33956b668abee2e715eceb5', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'cd6e12e8d1320e3e6542eef16f15ab27921748c3', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: 'bdc6d9311d2d039e87c261ead45474b7bf1fe992', class: classes([
|
|
59
59
|
'zonos--checkout-footer-dialog',
|
|
60
60
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
61
|
-
]) }, h("zonos-language-select", { key: '
|
|
61
|
+
]) }, h("zonos-language-select", { key: '7318bb4137e160e9ed05a423fb80f1806c4f0104', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '55c76c6cf6777407532c00cf167d59e3cefc5eab', class: "zonos--checkout-footer-icon-wrapper" }, h("zonos-text", { key: '41a7fae5a1a08d22b91341ccfcc0df9daeeb8f82', textColor: colorDesktop, type: "caption" }, "Powered by"), h("a", { key: '394e19392718d2a40a351692fa358f8f86366b46', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '4d8cadbb7c26e8f7888caad2b158d521ab504590', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 }))))));
|
|
62
62
|
}
|
|
63
63
|
get el() { return this; }
|
|
64
64
|
static get watchers() { return {
|
|
@@ -89,17 +89,17 @@ const ZonosCheckoutProgressTabs = /*@__PURE__*/ proxyCustomElement(class ZonosCh
|
|
|
89
89
|
color: labelSelectedColor,
|
|
90
90
|
})
|
|
91
91
|
: labelSelectedColor;
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '508d496a46dc5c97d68326e079a344f677f9cfc2', class: "zonos--elements", style: {
|
|
93
93
|
'--color': contrastLabelColor,
|
|
94
94
|
'--progress-percent': this.getTotalSuccessStep(),
|
|
95
|
-
} }, h("div", { key: '
|
|
95
|
+
} }, h("div", { key: '35892f4230914211d8aecde8bbc99fffebe44f47', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
|
|
96
96
|
const isSelected = tab.value === selectedStep;
|
|
97
97
|
return (h("button", { class: classes([
|
|
98
98
|
'zonos--tab-item',
|
|
99
99
|
tab.value === selectedStep && 'selected',
|
|
100
100
|
tab.isDone && 'done',
|
|
101
101
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cartStore.step = tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1200' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, translate(tab.label))));
|
|
102
|
-
})), h("div", { key: '
|
|
102
|
+
})), h("div", { key: '475526f811089f65ecfa1d81348f22e77662e565', class: "zonos--tab-progress" }, h("div", { key: 'b45d8170d733043c66e7d6e8f52874f3ccfa0274', class: "zonos--progress-bar-fill" }))));
|
|
103
103
|
}
|
|
104
104
|
static get assetsDirs() { return ["assets"]; }
|
|
105
105
|
get ele() { return this; }
|
|
@@ -48,10 +48,10 @@ const ZonosCollapse = /*@__PURE__*/ proxyCustomElement(class ZonosCollapse exten
|
|
|
48
48
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
49
49
|
this.el.style.overflow = 'hidden';
|
|
50
50
|
}
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'db574e5124dcd54045af65a6f429af3fddc501fd', class: 'zonos--elements zonos--collapse', style: {
|
|
52
52
|
'--font-family': zonosStoreFontFamily(),
|
|
53
53
|
height: this.getElementHeight(),
|
|
54
|
-
} }, h("div", { key: '
|
|
54
|
+
} }, h("div", { key: '9f773ededa3fb0b47b2dba74ef701fd8dc3af396' }, h("iframe", { key: '50a8449beb6272a854c34b859be04cdeea10f804', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '5c0bd94dfe7bbb6a8dc20b1bac69e81ae7f99f76' }))));
|
|
55
55
|
}
|
|
56
56
|
get el() { return this; }
|
|
57
57
|
static get style() { return ZonosCollapseStyle0; }
|
|
@@ -20,7 +20,7 @@ const ZonosComponent$1 = /*@__PURE__*/ proxyCustomElement(class ZonosComponent e
|
|
|
20
20
|
return format(this.first, this.middle, this.last);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return h("div", { key: '
|
|
23
|
+
return h("div", { key: '4d80a174a7fa12f620fc831eb7fe3f5ad8ad575b' }, "Hello, World! I'm ", this.getText());
|
|
24
24
|
}
|
|
25
25
|
static get style() { return ZonosComponentStyle0; }
|
|
26
26
|
}, [1, "zonos-component", {
|
|
@@ -267,7 +267,7 @@ const ZonosController$1 = /*@__PURE__*/ proxyCustomElement(class ZonosController
|
|
|
267
267
|
zonosStore.organizationName = organizationName;
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
|
-
return h(Host, { key: '
|
|
270
|
+
return h(Host, { key: 'e0869cf08934b9d047adef9875c9a5f50d604bdf', class: "zonos--elements" });
|
|
271
271
|
}
|
|
272
272
|
static get style() { return ZonosControllerStyle0; }
|
|
273
273
|
}, [1, "zonos-controller", {
|
|
@@ -10,9 +10,9 @@ import { d as defineCustomElement$2 } from './zonos-text2.js';
|
|
|
10
10
|
import { d as defineCustomElement$1 } from './zonos-v-stack2.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Fuse.js
|
|
13
|
+
* Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
|
|
14
14
|
*
|
|
15
|
-
* Copyright (c)
|
|
15
|
+
* Copyright (c) 2023 Kiro Risk (http://kiro.me)
|
|
16
16
|
* All Rights Reserved. Apache Software License 2.0
|
|
17
17
|
*
|
|
18
18
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -110,8 +110,6 @@ class KeyStore {
|
|
|
110
110
|
keys.forEach((key) => {
|
|
111
111
|
let obj = createKey(key);
|
|
112
112
|
|
|
113
|
-
totalWeight += obj.weight;
|
|
114
|
-
|
|
115
113
|
this._keys.push(obj);
|
|
116
114
|
this._keyMap[obj.id] = obj;
|
|
117
115
|
|
|
@@ -1775,7 +1773,7 @@ class Fuse {
|
|
|
1775
1773
|
}
|
|
1776
1774
|
}
|
|
1777
1775
|
|
|
1778
|
-
Fuse.version = '
|
|
1776
|
+
Fuse.version = '7.0.0';
|
|
1779
1777
|
Fuse.createIndex = createIndex;
|
|
1780
1778
|
Fuse.parseIndex = parseIndex;
|
|
1781
1779
|
Fuse.config = Config;
|
|
@@ -1831,9 +1829,9 @@ const ZonosCountrySelect = /*@__PURE__*/ proxyCustomElement(class ZonosCountrySe
|
|
|
1831
1829
|
const filteredCountries = this.inputValue
|
|
1832
1830
|
? fuseObject.map(country => country.item)
|
|
1833
1831
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
1834
|
-
return (h(Host, { key: '
|
|
1832
|
+
return (h(Host, { key: 'ae921c5a4aa83cdde8f42d8993603e824344f11a', class: "zonos--elements", style: {
|
|
1835
1833
|
'--font-family': zonosStoreFontFamily(),
|
|
1836
|
-
} }, h("div", { key: '
|
|
1834
|
+
} }, h("div", { key: 'b3bd4c0a0a4aeee8f4de78aadd8cd26b69e060a3', class: "zonos--country-select" }, h("zonos-v-stack", { key: 'aae54d33cc8a3b6befcbb259f92320da230df5be', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '8627db51744e70f94ce01a024ac38343d7f2ee00', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: 'affa5003e513bae802cdf029f3996cc2dd31f7d4', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: '8b892a23cb69d44d886b69a7a038e3a98c97eb1b', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
|
|
1837
1835
|
}
|
|
1838
1836
|
get ele() { return this; }
|
|
1839
1837
|
static get style() { return ZonosCountrySelectStyle0; }
|
|
@@ -31,9 +31,9 @@ const ZonosCustomMessage = /*@__PURE__*/ proxyCustomElement(class ZonosCustomMes
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'b917fa2e0b2293b3423ba8910cca667b62c3b7c0', class: "zonos--elements", style: {
|
|
35
35
|
'--font-family': zonosStoreFontFamily(),
|
|
36
|
-
} }, this.message && (h("zonos-card", { class: "zonos--custom-message", spacing: "12px" }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { innerHTML: messageWithLinks }))))));
|
|
36
|
+
} }, this.message && (h("zonos-card", { key: '28d3e6d986ee9a2d56ddb173f1e1e5094d18634a', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '526de02e727a977f42e5547fc1ba0c91d682e72f', class: "zonos--flex-message" }, h("zonos-icon", { key: '0e2360d11bff3c94c3ba722a0a2b4767f04232fc', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'fa8c7e5042f1d622053ccd86bb52b51304ffc83e', innerHTML: messageWithLinks }))))));
|
|
37
37
|
}
|
|
38
38
|
static get style() { return ZonosCustomMessageStyle0; }
|
|
39
39
|
}, [1, "zonos-custom-message", {
|
|
@@ -57,7 +57,7 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
57
57
|
document.body.style.overflow = 'auto';
|
|
58
58
|
}
|
|
59
59
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'b2f500bb70769f6d14d7e4002e5b11fe854e3bd1', class: classes([
|
|
61
61
|
'zonos--elements',
|
|
62
62
|
this.open && 'open',
|
|
63
63
|
this.isLoading && 'is-loading',
|
|
@@ -68,10 +68,10 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
68
68
|
'--font-family': zonosStoreFontFamily(),
|
|
69
69
|
'--height': this.height || 'initial',
|
|
70
70
|
'--width': this.width,
|
|
71
|
-
} }, h("div", { key: '
|
|
71
|
+
} }, h("div", { key: '9715c4765caee524a8030b2baa9352e44d0eeec0', class: "zonos--backdrop" }), h("div", { key: '05357a1ab95c995a35602517555f33e14c712bcc', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '6acbd0635fcfb95910c20db9d1803a3c2685f4ac', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '5a94b2d158ffdd5c1d5b4b6e2d1cca60ff31fb10', class: "zonos--loading" }, h("zonos-spinner", { key: '80fe57fea64e1ac4a5eb286fe19c327230748837', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '773b53526fc24469e41e927d50a0aadbc8470a4a', class: "zonos--header" }, this.headerText && (h("h3", { key: '9e9a754fdc82900b720ac5289b83d0217eb89517', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '4525da6839849fd972f9b470e280f176803921ed', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '1c9ff5924f0fa9cdb7753fbcf0c2dc51171535b0', class: classes([
|
|
72
72
|
'zonos--body',
|
|
73
73
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
74
|
-
]) }, h("slot", { key: '
|
|
74
|
+
]) }, h("slot", { key: '96b0c127f550413a5108a6f87a8397a0c6e01e64' })), h("slot", { key: 'a5c64424aadb3a56682de39b497ecc0eafdf3de7', name: "dialog-footer" })))));
|
|
75
75
|
}
|
|
76
76
|
static get assetsDirs() { return ["assets"]; }
|
|
77
77
|
static get style() { return ZonosDialogStyle0; }
|
|
@@ -36,9 +36,9 @@ const ZonosHelloDialogFooter = /*@__PURE__*/ proxyCustomElement(class ZonosHello
|
|
|
36
36
|
const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
|
|
37
37
|
const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
|
|
38
38
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '046b97e6ed7c35e5e9a244d0ffc3b59dfd206a8a', class: "zonos--elements" }, h("div", { key: '9134e27c1ec407b7661b6b92cd37cd17333e0f15', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
|
|
40
40
|
'--primary-color': (_c = this.appearanceSettings) === null || _c === void 0 ? void 0 : _c.colorPrimary,
|
|
41
|
-
} }, h("a", { key: '
|
|
41
|
+
} }, h("a", { key: '670c4627ff0297e2a4869a00e19032b3289396d7', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'b67dd84bc4a4a245a0f2117e5b063df659f12ef9', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: '823af21d0e96c52eed9cb9b6b13faf875bba13c8', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'edd4b9d15b9e2f5051bd5e3e524fcd0d93e66543', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'f350f61d47eb93d7ac8ebc5c8faddc932262f990', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
42
42
|
}
|
|
43
43
|
static get style() { return ZonosHelloDialogFooterStyle0; }
|
|
44
44
|
}, [1, "zonos-hello-dialog-footer", {
|
|
@@ -200,17 +200,17 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
200
200
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
201
201
|
const currentPage = this.getCurrentPageEnum();
|
|
202
202
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
203
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'f300db080cf0634c72aae93aceae288ce67c500c', class: "zonos--elements" }, h("div", { key: 'e61bbf7022be71909ab56267721026f95b9fc2fc', "aria-hidden": "true", class: classes([
|
|
204
204
|
'zonos--hello-dialog',
|
|
205
205
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
206
206
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
207
207
|
!!this.mobileLocationOverride &&
|
|
208
208
|
'zonos--hello-dialog-mobile-override',
|
|
209
209
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
210
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div",
|
|
210
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '909e251587e2650dbdc1afe5b19e9b3a55f72a18' }, h("div", { key: 'a4a79886507449ba688c87474d064528cae3779b', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '1e7a3e74f3f5ab94a70983a067cc08d596d9c5be', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '1c981178390c120427d61f68a05808a95f8da72a', spacing: 24 }, h("zonos-country-flag", { key: '095e060cf50ee4525ea501e682735370c0c03cfa', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '1db18e95118922462526c7092accf42639bd4fdd', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'f494d050c90922328f3e8ea3bd05e1cf9e6d239c', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'b31645d57a3c5f25eb59b61482d4e383e3cb962c', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '1e8f0a656074cd830715d19685c2a3c9daced9be', spacing: 8 }, this.restrictedItems.map(item => {
|
|
211
211
|
var _a;
|
|
212
212
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
213
|
-
}), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text",
|
|
213
|
+
}), h("zonos-card", { key: 'fd2c574714b2e0dafacb4f9390c81b7b6003c7d3', spacing: "12px" }, h("zonos-v-stack", { key: '41a9864f58ddc28f1767113f517a7a9cf3a0be6d', spacing: 12 }, h("div", { key: 'ced705bcf185987815a898a173d08c571017a052', class: "zonos--flex-message" }, h("zonos-icon", { key: '4724edca926eec5e050c711dcb96c6b914985695', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '6c6d3b36897fd141ca83fbf008dae9f24ac56e40' }, dutyDeMinimisMessage)), h("div", { key: 'abe17715558f2ee3ded882eb2c5c1466904bfc8e', class: "zonos--flex-message" }, h("zonos-icon", { key: 'e8371f1e89a5b21947bfdcf73e6294bd6de49946', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: '952485295cfec2d7ad1b61523bb05378bae08e34' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'abc0e4c7ddecbe85dd8f4b8adab15073b1b6a2db', class: "zonos--flex-message" }, h("zonos-icon", { key: '973ea223a40648ca8cac99bd0c839dd324894f1c', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'c6460eefa388097ed27e29d3a91055afbf8a5261' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'daabdaf6f1f59e6e2ef3ad7516af60eb50a34633', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '88608070d3a34b3742eeac74cb836b98ddb171eb' }, h("zonos-country-select", { key: '91acd80a1549277528927512e9d299282a0e3d26', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '5b70e70778b8e863d1f256406f884179a01d9de2' }, h("zonos-language-select", { key: 'ba74dfc5baa25694dec9273c08644db8cd312dc1', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
214
214
|
}
|
|
215
215
|
static get assetsDirs() { return ["assets"]; }
|
|
216
216
|
static get watchers() { return {
|