@zonos/elements 1.3.25 → 1.3.27
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-ab3b679e.js → cart-61caeb84.js} +472 -168
- package/dist/cjs/{getBorderRadius-ea0984bb.js → getBorderRadius-074b46ef.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -54
- package/dist/cjs/{isDarkColor-b14d5752.js → isDarkColor-371a3b1a.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-1471da9f.js → submitGtag-d3898668.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +29 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +52 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +61 -24
- package/dist/cjs/zonos-hello.cjs.entry.js +19 -12
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-3958bbeb.js → zonosStore-4c6c85da.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +20 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +49 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +8 -8
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +15 -8
- 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 +54 -20
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/hello/localization.js +9 -5
- package/dist/collection/components/store/translationStore/strings.arabic.js +23 -8
- package/dist/collection/components/store/translationStore/strings.base.js +23 -8
- package/dist/collection/components/store/translationStore/strings.chinese.js +23 -8
- package/dist/collection/components/store/translationStore/strings.danish.js +23 -8
- package/dist/collection/components/store/translationStore/strings.dutch.js +23 -8
- package/dist/collection/components/store/translationStore/strings.french.js +23 -8
- package/dist/collection/components/store/translationStore/strings.german.js +23 -8
- package/dist/collection/components/store/translationStore/strings.hebrew.js +23 -8
- package/dist/collection/components/store/translationStore/strings.indonesian.js +23 -8
- package/dist/collection/components/store/translationStore/strings.italian.js +23 -8
- package/dist/collection/components/store/translationStore/strings.japanese.js +23 -8
- package/dist/collection/components/store/translationStore/strings.korean.js +23 -8
- package/dist/collection/components/store/translationStore/strings.norwegian.js +23 -8
- package/dist/collection/components/store/translationStore/strings.polish.js +23 -8
- package/dist/collection/components/store/translationStore/strings.portuguese.js +23 -8
- package/dist/collection/components/store/translationStore/strings.russian.js +23 -8
- package/dist/collection/components/store/translationStore/strings.spanish.js +23 -8
- package/dist/collection/components/store/translationStore/strings.swedish.js +23 -8
- package/dist/collection/components/store/translationStore/strings.turkish.js +23 -8
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +23 -8
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/wrapStringWithLink.js +3 -0
- package/dist/collection/scripts/_zonosBase.js +0 -51
- package/dist/esm/{cart-564ab33a.js → cart-530a8750.js} +472 -168
- package/dist/esm/{getBorderRadius-5e5a5800.js → getBorderRadius-947c24de.js} +1 -1
- package/dist/esm/index.js +3 -54
- package/dist/esm/{isDarkColor-5185b62c.js → isDarkColor-f8324c10.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-90ebe7d0.js → submitGtag-44ba0846.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +6 -6
- package/dist/esm/zonos-badge_2.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +4 -4
- package/dist/esm/zonos-cart-items_12.entry.js +29 -12
- package/dist/esm/zonos-checkout.entry.js +52 -6
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +6 -6
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +61 -24
- package/dist/esm/zonos-hello.entry.js +19 -12
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-8b9ea19c.js → zonosStore-ba9e541e.js} +1 -0
- package/dist/esm-es5/cart-530a8750.js +1 -0
- package/dist/esm-es5/{getBorderRadius-5e5a5800.js → getBorderRadius-947c24de.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-5185b62c.js → isDarkColor-f8324c10.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-90ebe7d0.js → submitGtag-44ba0846.js} +1 -1
- package/dist/esm-es5/zonos-address_8.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.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-8b9ea19c.js → zonosStore-ba9e541e.js} +1 -1
- package/dist/scripts/index.d.ts +52 -6
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +2 -2
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -1
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +8 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.base.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.danish.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.french.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.german.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.italian.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.korean.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.polish.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.russian.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +22 -7
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +22 -7
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/wrapStringWithLink.d.ts +4 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/scripts/_zonosBase.d.ts +0 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +40 -0
- package/dist/types/types/hello/HelloConfig.d.ts +9 -2
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-088d6460.system.entry.js → p-01304a58.system.entry.js} +1 -1
- package/dist/zonos-elements/p-094bfe56.system.entry.js +1 -0
- package/dist/zonos-elements/{p-474719c5.entry.js → p-099e229a.entry.js} +1 -1
- package/dist/zonos-elements/{p-be14323b.system.js → p-0b538ed4.system.js} +1 -1
- package/dist/zonos-elements/{p-ba066673.entry.js → p-11f87d7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-1e2fbb1d.system.entry.js → p-13454044.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8b58cf8.system.entry.js → p-18d04e89.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b79753bb.system.entry.js → p-27d648c3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-87c4a2af.entry.js → p-2a5a0bae.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c0859b5.entry.js → p-2aa72606.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf9dca26.js → p-31b3d26b.js} +1 -1
- package/dist/zonos-elements/{p-c0ddef11.entry.js → p-3541e6dd.entry.js} +1 -1
- package/dist/zonos-elements/{p-b7e4a6b0.entry.js → p-35d00c30.entry.js} +1 -1
- package/dist/zonos-elements/{p-aaba6f75.entry.js → p-37685139.entry.js} +1 -1
- package/dist/zonos-elements/{p-d6796b73.system.entry.js → p-3dc59d89.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4eaae82e.entry.js +1 -0
- package/dist/zonos-elements/{p-f3feed11.entry.js → p-5441b729.entry.js} +1 -1
- package/dist/zonos-elements/{p-c53cef11.js → p-5821856c.js} +1 -1
- package/dist/zonos-elements/{p-0ea19a4d.entry.js → p-5857ad65.entry.js} +1 -1
- package/dist/zonos-elements/p-5d006b02.system.js +1 -0
- package/dist/zonos-elements/{p-f1223c14.system.entry.js → p-5f580c9b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-687dbccc.entry.js +1 -0
- package/dist/zonos-elements/p-68dfcd25.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1752853e.entry.js → p-699a5376.entry.js} +1 -1
- package/dist/zonos-elements/p-6fe27968.entry.js +1 -0
- package/dist/zonos-elements/{p-5992c6fb.system.entry.js → p-73ba4398.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-84791c5c.entry.js → p-75ba695c.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d36edfd.system.entry.js → p-7b5a0a18.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1b76a929.system.entry.js → p-84f7a3a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b45db572.system.entry.js → p-8f8baabf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5e9d372.js → p-9a1c0d02.js} +1 -1
- package/dist/zonos-elements/p-a5704be4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-33b054d9.system.js → p-a8cb25de.system.js} +1 -1
- package/dist/zonos-elements/{p-02a01106.system.entry.js → p-a90393e0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c8e83577.system.entry.js → p-acfb9be6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b4ccc72c.js +1 -0
- package/dist/zonos-elements/{p-9912a954.js → p-bb032c2f.js} +1 -1
- package/dist/zonos-elements/{p-bfc30599.entry.js → p-bb5a9eaa.entry.js} +1 -1
- package/dist/zonos-elements/{p-d7e6cad0.system.entry.js → p-c0fcc0fa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c4154737.system.js +1 -0
- package/dist/zonos-elements/{p-7fa5a6ea.entry.js → p-c4e38b85.entry.js} +1 -1
- package/dist/zonos-elements/{p-07fe47f2.system.entry.js → p-cbed004d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c8705ac.entry.js → p-d4724ac8.entry.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/{p-e2301200.system.entry.js → p-e15ef12e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8853e051.system.js → p-e37440ad.system.js} +1 -1
- package/dist/zonos-elements/{p-6b2a2f68.entry.js → p-e3978982.entry.js} +1 -1
- package/dist/zonos-elements/{p-a164ea90.system.entry.js → p-ecd994c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fb1120a2.system.js +1 -0
- package/dist/zonos-elements/p-fb1b98a8.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-564ab33a.js +0 -1
- package/dist/zonos-elements/p-233c2599.system.entry.js +0 -1
- package/dist/zonos-elements/p-2619fe29.system.js +0 -1
- package/dist/zonos-elements/p-63b0aef9.system.entry.js +0 -1
- package/dist/zonos-elements/p-6ed78fba.entry.js +0 -1
- package/dist/zonos-elements/p-9a0c5589.system.entry.js +0 -1
- package/dist/zonos-elements/p-b44de1c3.entry.js +0 -1
- package/dist/zonos-elements/p-c2688c49.system.js +0 -1
- package/dist/zonos-elements/p-d170253b.entry.js +0 -1
- package/dist/zonos-elements/p-e2bdba42.system.js +0 -1
- package/dist/zonos-elements/p-e815af26.entry.js +0 -1
- package/dist/zonos-elements/p-fc4f1e0c.js +0 -1
|
@@ -18,7 +18,7 @@ export class ZonosConfirmDialog {
|
|
|
18
18
|
};
|
|
19
19
|
this.dialogTitle = translate('Are you sure?');
|
|
20
20
|
this.dialogIntent = 'info';
|
|
21
|
-
this.dialogSubtitle =
|
|
21
|
+
this.dialogSubtitle = null;
|
|
22
22
|
this.submitBtnColor = undefined;
|
|
23
23
|
this.dialogConfirmBtnText = undefined;
|
|
24
24
|
this.dialogCancelBtnText = undefined;
|
|
@@ -82,12 +82,12 @@ export class ZonosConfirmDialog {
|
|
|
82
82
|
const borderStyle = getBorderRadius();
|
|
83
83
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
84
84
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '4e762dd84a3a04a61e855cdb8dc019d1138b5b64', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
86
86
|
'--border-radius': borderStyle,
|
|
87
87
|
'--font-family': zonosStoreFontFamily(),
|
|
88
|
-
} }, h("div", { key: '
|
|
88
|
+
} }, h("div", { key: '0fab667a9f930b1418a8c920e5766e03f3c01858', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '914885bd702f46c207c74eb32581eacf2f3817cd', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: 'dcdc0d3896153b47afbe38abc5fd4c491b8aea92', class: "zonos--confirm-dialog", onBlur: () => {
|
|
89
89
|
this.focusDialog();
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: 'acf0d24f523eb255de78e76390295ce8ff9562b8', class: "wrapper" }, h("div", { key: '10d665c1f9724c0c22c898d35af1c73ea089ee0e', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '9dd6b11b1dce47f53f39f89a2e337fc8f59aeb9c', class: "content" }, h("div", { key: '959227525b723a7d5083d8ede947772b90c6fd4b', class: "title" }, h("zonos-text", { key: '1f33ee07f6e480692911120a6fc8d071897c9d14', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'e8b142d67e72c4eb8613ebfe8961e51a1ea8c0c8', class: "subtitle" }, h("zonos-text", { key: 'a263e3da97c750c3271bf9f5b70515e298f2215f', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '5e8c54999ab9012372dd8510d14e2f1858543e26', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'd35774f8d45f9184634bb4a4aa204a35e35a3e54', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '3f98eff1184c61d163a1f9484e69ea0fca02bc1c', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "zonos-confirm-dialog"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,8 +150,8 @@ export class ZonosConfirmDialog {
|
|
|
150
150
|
"type": "string",
|
|
151
151
|
"mutable": false,
|
|
152
152
|
"complexType": {
|
|
153
|
-
"original": "string",
|
|
154
|
-
"resolved": "string",
|
|
153
|
+
"original": "string | null",
|
|
154
|
+
"resolved": "null | string",
|
|
155
155
|
"references": {}
|
|
156
156
|
},
|
|
157
157
|
"required": false,
|
|
@@ -159,13 +159,13 @@ export class ZonosConfirmDialog {
|
|
|
159
159
|
"docs": {
|
|
160
160
|
"tags": [{
|
|
161
161
|
"name": "default",
|
|
162
|
-
"text": "
|
|
162
|
+
"text": "null No subtitle"
|
|
163
163
|
}],
|
|
164
164
|
"text": "Dialog subtitle text"
|
|
165
165
|
},
|
|
166
166
|
"attribute": "dialog-subtitle",
|
|
167
167
|
"reflect": false,
|
|
168
|
-
"defaultValue": "
|
|
168
|
+
"defaultValue": "null"
|
|
169
169
|
},
|
|
170
170
|
"submitBtnColor": {
|
|
171
171
|
"type": "string",
|
|
@@ -171,18 +171,25 @@ export class ZonosHello {
|
|
|
171
171
|
return hasMoreSpaceOnRight;
|
|
172
172
|
}
|
|
173
173
|
};
|
|
174
|
-
this.
|
|
174
|
+
this.shouldRenderHello = (showLog = true) => {
|
|
175
175
|
if (!localizationStore.localizationLoaded) {
|
|
176
176
|
return false;
|
|
177
177
|
}
|
|
178
|
-
|
|
179
|
-
if (
|
|
180
|
-
if (
|
|
181
|
-
log(`Hello: not shippable country`);
|
|
178
|
+
const { showForCountries } = zonosStore.helloSettings;
|
|
179
|
+
if (showLog) {
|
|
180
|
+
if (!localizationStore.isShippableCountry) {
|
|
181
|
+
log(`Hello: not shippable country - Show for countries: ${showForCountries}`);
|
|
182
182
|
}
|
|
183
|
-
return false;
|
|
184
183
|
}
|
|
185
|
-
|
|
184
|
+
// if localization is loaded and the localization is not a shippable country, keep the original click event
|
|
185
|
+
if (showForCountries === 'ONLY_SHIPPABLE') {
|
|
186
|
+
return localizationStore.isShippableCountry;
|
|
187
|
+
}
|
|
188
|
+
// if user wants to show hello for all countries
|
|
189
|
+
if (showForCountries === 'ALL') {
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(localizationStore.selectedCountryCode || '');
|
|
186
193
|
};
|
|
187
194
|
this.mobileLocationOverride = undefined;
|
|
188
195
|
this.animateFromLeftOverride = undefined;
|
|
@@ -285,7 +292,7 @@ export class ZonosHello {
|
|
|
285
292
|
// The organization name can be changed after init with the updateOrganizationName method.
|
|
286
293
|
// This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
|
|
287
294
|
this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
|
|
288
|
-
const showHello = this.
|
|
295
|
+
const showHello = this.shouldRenderHello() && !!selectedCountryCode;
|
|
289
296
|
return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
|
|
290
297
|
'zonos--hello-widget',
|
|
291
298
|
this.showPeekMessage && 'zonos--hello-show-peek-message',
|
|
@@ -18,9 +18,9 @@ export class ZonosHelloDialogFooter {
|
|
|
18
18
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
19
19
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
20
20
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'fe8165b23a8e56d068d00ae0f6caf587094db24f', class: "zonos--elements" }, h("div", { key: '32ee04554a36a2d7017e73425166a914e1e65714', class: "zonos--hello-dialog-footer", style: {
|
|
22
22
|
'--primary-color': primaryColor,
|
|
23
|
-
} }, h("a", { key: '
|
|
23
|
+
} }, h("a", { key: '9fe05913fae1b739ec763ba32128f9004e3015f5', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'ebea8cf3264c8d75369e1f87a71e97530755f79b', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: '133b9a19a6e1cfc69fa4bf93964307ae546aead6', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'f5f5b8e8750fdf81094caa496b37b6201addab4a', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '454ef914ec4f5d9c4ffa7fdafb91dc25a27221b9', buttonColor: mainColor, 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)))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,6 +7,7 @@ import { formatStringWithLinks } from "../../utils/formatStringWithLinks";
|
|
|
7
7
|
import { currencyFormat } from "../../utils/hello/currencyConversion/currencyFormat";
|
|
8
8
|
import { getHasMoreSpaceAbove } from "../../utils/hello/getHasMoreSpaceAbove";
|
|
9
9
|
import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight";
|
|
10
|
+
import { wrapStringWithLink } from "../../utils/wrapStringWithLink";
|
|
10
11
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
11
12
|
import BagIcon from "./assets/bagIcon.svg";
|
|
12
13
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
@@ -44,6 +45,23 @@ export class ZonosHelloDialog {
|
|
|
44
45
|
this.setShowLanguageSelect = async (value) => {
|
|
45
46
|
this.showLanguageSelect = value;
|
|
46
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* Store has tax id setup in Zonos settings
|
|
50
|
+
*/
|
|
51
|
+
this.hasTaxId = () => {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = localizationStore.countryLandedCost) === null || _a === void 0 ? void 0 : _a.hasTaxId;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Some countries don't have threshold. So we need to show generic message for them
|
|
57
|
+
*/
|
|
58
|
+
this.isNoThresholdCountry = (countryCode) => {
|
|
59
|
+
// Only show threshold message if store doesn't have tax id in the settings
|
|
60
|
+
if (!countryCode || !this.hasTaxId()) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return ['AU'].includes(countryCode);
|
|
64
|
+
};
|
|
47
65
|
this.getDutyMessage = () => {
|
|
48
66
|
const { countryLandedCost } = localizationStore;
|
|
49
67
|
// Our Robby API spells deminimis wrong here
|
|
@@ -51,8 +69,11 @@ export class ZonosHelloDialog {
|
|
|
51
69
|
? currencyFormat({ amount: countryLandedCost.dutyDeminimus })
|
|
52
70
|
: null;
|
|
53
71
|
// If deminimis is undefined or null, assume it's $0
|
|
54
|
-
return dutyDeminimis
|
|
55
|
-
?
|
|
72
|
+
return dutyDeminimis &&
|
|
73
|
+
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
74
|
+
? translate('Spend [threshold] duty free', {
|
|
75
|
+
threshold: dutyDeminimis,
|
|
76
|
+
})
|
|
56
77
|
: translate('Duties will apply to all orders');
|
|
57
78
|
};
|
|
58
79
|
this.getTaxMessage = () => {
|
|
@@ -61,8 +82,11 @@ export class ZonosHelloDialog {
|
|
|
61
82
|
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
62
83
|
? currencyFormat({ amount: countryLandedCost.vatTaxDeminimus })
|
|
63
84
|
: null;
|
|
64
|
-
return taxDeminimis
|
|
65
|
-
?
|
|
85
|
+
return taxDeminimis &&
|
|
86
|
+
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
87
|
+
? translate('Spend [threshold] tax free', {
|
|
88
|
+
threshold: taxDeminimis,
|
|
89
|
+
})
|
|
66
90
|
: translate('Taxes will apply to all orders');
|
|
67
91
|
};
|
|
68
92
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
@@ -71,22 +95,31 @@ export class ZonosHelloDialog {
|
|
|
71
95
|
return null;
|
|
72
96
|
}
|
|
73
97
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
74
|
-
return
|
|
75
|
-
countryName
|
|
76
|
-
|
|
77
|
-
|
|
98
|
+
return [
|
|
99
|
+
translate('Orders to [countryName] must be over [threshold] to ship.', {
|
|
100
|
+
countryName: 'United Kingdom',
|
|
101
|
+
threshold: currencyFormat({ amount: dutyDeminimis }),
|
|
102
|
+
}),
|
|
103
|
+
];
|
|
78
104
|
};
|
|
79
105
|
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
80
|
-
return
|
|
81
|
-
percentage
|
|
82
|
-
|
|
83
|
-
|
|
106
|
+
return [
|
|
107
|
+
translate('Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders', {
|
|
108
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
109
|
+
}),
|
|
110
|
+
`${translate('The low-value GST law passed July 1st, 2018 applies to this retailer.')} ${wrapStringWithLink({
|
|
111
|
+
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
112
|
+
text: translate('Learn more.'),
|
|
113
|
+
})}`,
|
|
114
|
+
];
|
|
84
115
|
};
|
|
85
116
|
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
86
|
-
return
|
|
87
|
-
percentage
|
|
88
|
-
|
|
89
|
-
|
|
117
|
+
return [
|
|
118
|
+
translate('[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.', {
|
|
119
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
120
|
+
threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
|
|
121
|
+
}),
|
|
122
|
+
];
|
|
90
123
|
};
|
|
91
124
|
/**
|
|
92
125
|
* Get additional duty tax message if selected country has tax id
|
|
@@ -96,7 +129,7 @@ export class ZonosHelloDialog {
|
|
|
96
129
|
return null;
|
|
97
130
|
}
|
|
98
131
|
// only show the message if the store has a tax id for selected country
|
|
99
|
-
if (!
|
|
132
|
+
if (!this.hasTaxId()) {
|
|
100
133
|
return null;
|
|
101
134
|
}
|
|
102
135
|
switch (localizationStore.countryLandedCost.countryCode) {
|
|
@@ -151,17 +184,18 @@ export class ZonosHelloDialog {
|
|
|
151
184
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
152
185
|
const currentPage = this.getCurrentPageEnum();
|
|
153
186
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
154
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: 'bb2b080aaba7b85599b7e6bcb7cabee70863070f', class: "zonos--elements" }, h("div", { key: 'aabdbd8c4b47f759396d1a56fac426570385768d', "aria-hidden": "true", class: classes([
|
|
155
188
|
'zonos--hello-dialog',
|
|
156
189
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
157
190
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
158
191
|
!!this.mobileLocationOverride &&
|
|
159
192
|
'zonos--hello-dialog-mobile-override',
|
|
160
193
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
161
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
194
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'd9189f1ced79d3d3fd11c99ea1407e7b83a2573b' }, h("div", { key: '83ac2ab3583935ececea8be98ab64559d802725a', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '4f36dea145e751d63a2d0df3f472ffe674fbb580', 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: 'e8a7cebe4ca88da80b974e3a3536714fe4da47c1', spacing: 24 }, h("zonos-country-flag", { key: 'e02c72135b9c7e9e533fc46c8f4b286ba1cb1b63', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '7d199c0a5f465fe1640e690d2712f11a80e1f378', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '97bf6611bd485ace8ad9b94c3520148ae0d1eab0', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'c1e524bf689f34aed978f350676ffa957724176f', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '81a2fabb2f6c2d853f2f6619f7c6829754d80a59', spacing: 8 }, this.restrictedItems.map(item => {
|
|
162
195
|
var _a;
|
|
163
196
|
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)))));
|
|
164
|
-
}), h("zonos-card", { key: '
|
|
197
|
+
}), h("zonos-card", { key: '29ba8b81746a696ca43b88daa89a7c85af5a2b34', spacing: "12px" }, h("zonos-v-stack", { key: '8f4e79efe07a4c7c1b493178c952bfe61a151f0c', spacing: 12 }, h("div", { key: 'a17eda2b103d376f7ca8a9b528d613195b3a1fe7', class: "zonos--flex-message" }, h("zonos-icon", { key: '13c828d956198211a1fbda77840f8b91692d1582', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: 'c38511e16905f169b821d0cd8d98dee80a7c1de1' }, dutyDeMinimisMessage)), h("div", { key: '9b3165d870419732d4be1421336326f8d4e98547', class: "zonos--flex-message" }, h("zonos-icon", { key: '46248b95b97a3ec74ffc038dda29ca74a1e700c2', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: '1d698d83f9fa43746de870553d1ba1c09389aefb' }, taxDeMinimisMessage)), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
198
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'fcc21cc1e8b3de45af03c64ffc95dc2ab6f57bf3', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'bbf019b27e6da7aa3256f14bf928aae26ca92f54' }, h("zonos-country-select", { key: 'a70d55e1872ec626e8446866dbad3aafca69790c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '77f63941fcbb3bc0c668a61aa48ca2e60b8addeb' }, h("zonos-language-select", { key: '57a4d06c098662b00c3587f3b2290552dc04f2fe', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
165
199
|
}
|
|
166
200
|
static get is() { return "zonos-hello-dialog"; }
|
|
167
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -178,7 +178,7 @@ export class ZonosController {
|
|
|
178
178
|
zonosStore.organizationName = organizationName;
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return h(Host, { key: '
|
|
181
|
+
return h(Host, { key: 'cfacd00a3f5fba372425ec51cf885356353ad909', class: "zonos--elements" });
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "zonos-controller"; }
|
|
184
184
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,6 +100,7 @@ const addInternationalHideClass = () => {
|
|
|
100
100
|
const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
101
101
|
var _a, _b;
|
|
102
102
|
log('update selected country code');
|
|
103
|
+
const isFirstTime = !localizationStore.selectedCountryCode;
|
|
103
104
|
localizationStore.selectedCountryCode = newSelectedCountryCode;
|
|
104
105
|
const { selectedCountryCode, shippingZoneCountries } = localizationStore;
|
|
105
106
|
const isShippableCountry = shippingZoneCountries &&
|
|
@@ -125,11 +126,14 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
|
125
126
|
setZCountryUrlParam(selectedCountryCode);
|
|
126
127
|
(_a = document
|
|
127
128
|
.querySelector('zonos-hello')) === null || _a === void 0 ? void 0 : _a.setAttribute('z-country', selectedCountryCode);
|
|
128
|
-
//
|
|
129
|
-
(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
// Only trigger callback onCountryChange if the country code has been set before
|
|
130
|
+
if (!isFirstTime) {
|
|
131
|
+
// Trigger callback onCountryChange
|
|
132
|
+
(_b = zonosStore.onCountryChange) === null || _b === void 0 ? void 0 : _b.call(zonosStore, {
|
|
133
|
+
countryCode: selectedCountryCode,
|
|
134
|
+
currencyCode,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
133
137
|
};
|
|
134
138
|
const initLocalizationStore = async () => {
|
|
135
139
|
// all countries from countries.json, shipping zone and localization
|
|
@@ -41,6 +41,9 @@ export const stringsArabic = {
|
|
|
41
41
|
'Continue to shipping': {
|
|
42
42
|
value: 'متابعة إلى الشحن',
|
|
43
43
|
},
|
|
44
|
+
"Couldn't place order": {
|
|
45
|
+
value: 'تعذر تقديم الطلب',
|
|
46
|
+
},
|
|
44
47
|
Country: {
|
|
45
48
|
value: 'بلد',
|
|
46
49
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsArabic = {
|
|
|
59
62
|
"Don't close": {
|
|
60
63
|
value: 'لا تغلق',
|
|
61
64
|
},
|
|
65
|
+
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders': {
|
|
66
|
+
value: 'الرسوم والضرائب في أستراليا، ضريبة القيمة المضافة أو ضريبة السلع والخدمات هي [percentage] وتستحق على جميع الطلبات',
|
|
67
|
+
},
|
|
62
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
63
69
|
value: 'سيتم تطبيق الرسوم والضرائب على العناصر والشحن.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsArabic = {
|
|
|
101
107
|
'Last name': {
|
|
102
108
|
value: 'الاسم الأخير',
|
|
103
109
|
},
|
|
110
|
+
'Learn more.': {
|
|
111
|
+
value: 'تعلم المزيد.',
|
|
112
|
+
},
|
|
104
113
|
'Missing required fields. Make sure all fields are completed.': {
|
|
105
114
|
value: 'الحقول المطلوبة مفقودة. تأكد من إكمال جميع الحقول.',
|
|
106
115
|
},
|
|
@@ -170,6 +179,9 @@ export const stringsArabic = {
|
|
|
170
179
|
'Restricted items found': {
|
|
171
180
|
value: 'تم العثور على عناصر مقيدة',
|
|
172
181
|
},
|
|
182
|
+
'Return to cart': {
|
|
183
|
+
value: 'العودة إلى العربة',
|
|
184
|
+
},
|
|
173
185
|
'Search countries': {
|
|
174
186
|
value: 'ابحث عن الدول',
|
|
175
187
|
},
|
|
@@ -200,8 +212,11 @@ export const stringsArabic = {
|
|
|
200
212
|
'Something went wrong.': {
|
|
201
213
|
value: 'حدث خطأ ما.',
|
|
202
214
|
},
|
|
203
|
-
Spend: {
|
|
204
|
-
value: '
|
|
215
|
+
'Spend [threshold] duty free': {
|
|
216
|
+
value: 'أنفق [threshold] معفاة من الرسوم الجمركية',
|
|
217
|
+
},
|
|
218
|
+
'Spend [threshold] tax free': {
|
|
219
|
+
value: 'أنفق [threshold] معفاة من الضرائب',
|
|
205
220
|
},
|
|
206
221
|
State: {
|
|
207
222
|
value: 'ولاية',
|
|
@@ -215,6 +230,9 @@ export const stringsArabic = {
|
|
|
215
230
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
216
231
|
value: 'العناصر التالية لا يمكن شحنها إلى بلدك ولا تُضاف إلى إجمالي سلة مشترياتك.',
|
|
217
232
|
},
|
|
233
|
+
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
234
|
+
value: 'ينطبق قانون ضريبة السلع والخدمات منخفض القيمة الذي أُقر في 1 يوليو 2018 على هذا التاجر.',
|
|
235
|
+
},
|
|
218
236
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
219
237
|
value: 'حدث خطأ في إنشاء جلسة الخروج الخاصة بك. يرجى إعادة التحميل والمحاولة مرة أخرى أو الاتصال بالدعم إذا استمر الخطأ',
|
|
220
238
|
},
|
|
@@ -227,6 +245,9 @@ export const stringsArabic = {
|
|
|
227
245
|
'Translated address': {
|
|
228
246
|
value: 'العنوان المترجم',
|
|
229
247
|
},
|
|
248
|
+
'Unable to check inventory. Please try again.': {
|
|
249
|
+
value: 'تعذر التحقق من المخزون. حاول مرة أخرى.',
|
|
250
|
+
},
|
|
230
251
|
'Update address': {
|
|
231
252
|
value: 'تحديث العنوان',
|
|
232
253
|
},
|
|
@@ -272,13 +293,7 @@ export const stringsArabic = {
|
|
|
272
293
|
'click to learn more': {
|
|
273
294
|
value: 'انقر لمعرفة المزيد',
|
|
274
295
|
},
|
|
275
|
-
'duty free': {
|
|
276
|
-
value: 'معفى من الرسوم',
|
|
277
|
-
},
|
|
278
296
|
'restricted items': {
|
|
279
297
|
value: 'عناصر مقيدة',
|
|
280
298
|
},
|
|
281
|
-
'tax free': {
|
|
282
|
-
value: 'معفى من الضرائب',
|
|
283
|
-
},
|
|
284
299
|
};
|
|
@@ -41,6 +41,9 @@ export const stringsBase = {
|
|
|
41
41
|
'Continue to shipping': {
|
|
42
42
|
value: 'Continue to shipping',
|
|
43
43
|
},
|
|
44
|
+
"Couldn't place order": {
|
|
45
|
+
value: "Couldn't place order",
|
|
46
|
+
},
|
|
44
47
|
Country: {
|
|
45
48
|
value: 'Country',
|
|
46
49
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsBase = {
|
|
|
59
62
|
"Don't close": {
|
|
60
63
|
value: "Don't close",
|
|
61
64
|
},
|
|
65
|
+
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders': {
|
|
66
|
+
value: 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders',
|
|
67
|
+
},
|
|
62
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
63
69
|
value: 'Duties and taxes will be applied to items and shipping.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsBase = {
|
|
|
101
107
|
'Last name': {
|
|
102
108
|
value: 'Last name',
|
|
103
109
|
},
|
|
110
|
+
'Learn more.': {
|
|
111
|
+
value: 'Learn more.',
|
|
112
|
+
},
|
|
104
113
|
'Missing required fields. Make sure all fields are completed.': {
|
|
105
114
|
value: 'Missing required fields. Make sure all fields are completed.',
|
|
106
115
|
},
|
|
@@ -170,6 +179,9 @@ export const stringsBase = {
|
|
|
170
179
|
'Restricted items found': {
|
|
171
180
|
value: 'Restricted items found',
|
|
172
181
|
},
|
|
182
|
+
'Return to cart': {
|
|
183
|
+
value: 'Return to cart',
|
|
184
|
+
},
|
|
173
185
|
'Search countries': {
|
|
174
186
|
value: 'Search countries',
|
|
175
187
|
},
|
|
@@ -200,8 +212,11 @@ export const stringsBase = {
|
|
|
200
212
|
'Something went wrong.': {
|
|
201
213
|
value: 'Something went wrong.',
|
|
202
214
|
},
|
|
203
|
-
Spend: {
|
|
204
|
-
value: 'Spend',
|
|
215
|
+
'Spend [threshold] duty free': {
|
|
216
|
+
value: 'Spend [threshold] duty free',
|
|
217
|
+
},
|
|
218
|
+
'Spend [threshold] tax free': {
|
|
219
|
+
value: 'Spend [threshold] tax free',
|
|
205
220
|
},
|
|
206
221
|
State: {
|
|
207
222
|
value: 'State',
|
|
@@ -215,6 +230,9 @@ export const stringsBase = {
|
|
|
215
230
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
216
231
|
value: 'The following items are unable to be shipped to your country and are not included in your cart total.',
|
|
217
232
|
},
|
|
233
|
+
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
234
|
+
value: 'The low-value GST law passed July 1st, 2018 applies to this retailer.',
|
|
235
|
+
},
|
|
218
236
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
219
237
|
value: "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists",
|
|
220
238
|
},
|
|
@@ -227,6 +245,9 @@ export const stringsBase = {
|
|
|
227
245
|
'Translated address': {
|
|
228
246
|
value: 'Translated address',
|
|
229
247
|
},
|
|
248
|
+
'Unable to check inventory. Please try again.': {
|
|
249
|
+
value: 'Unable to check inventory. Please try again.',
|
|
250
|
+
},
|
|
230
251
|
'Update address': {
|
|
231
252
|
value: 'Update address',
|
|
232
253
|
},
|
|
@@ -272,13 +293,7 @@ export const stringsBase = {
|
|
|
272
293
|
'click to learn more': {
|
|
273
294
|
value: 'click to learn more',
|
|
274
295
|
},
|
|
275
|
-
'duty free': {
|
|
276
|
-
value: 'duty free',
|
|
277
|
-
},
|
|
278
296
|
'restricted items': {
|
|
279
297
|
value: 'restricted items',
|
|
280
298
|
},
|
|
281
|
-
'tax free': {
|
|
282
|
-
value: 'tax free',
|
|
283
|
-
},
|
|
284
299
|
};
|
|
@@ -41,6 +41,9 @@ export const stringsChinese = {
|
|
|
41
41
|
'Continue to shipping': {
|
|
42
42
|
value: '继续运送',
|
|
43
43
|
},
|
|
44
|
+
"Couldn't place order": {
|
|
45
|
+
value: '无法下单',
|
|
46
|
+
},
|
|
44
47
|
Country: {
|
|
45
48
|
value: '国家',
|
|
46
49
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsChinese = {
|
|
|
59
62
|
"Don't close": {
|
|
60
63
|
value: '不要关',
|
|
61
64
|
},
|
|
65
|
+
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders': {
|
|
66
|
+
value: '澳大利亚的关税和税款,增值税或GST为[percentage],适用于所有订单',
|
|
67
|
+
},
|
|
62
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
63
69
|
value: '商品和运费将征收关税和税款。',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsChinese = {
|
|
|
101
107
|
'Last name': {
|
|
102
108
|
value: '姓',
|
|
103
109
|
},
|
|
110
|
+
'Learn more.': {
|
|
111
|
+
value: '了解更多。',
|
|
112
|
+
},
|
|
104
113
|
'Missing required fields. Make sure all fields are completed.': {
|
|
105
114
|
value: '缺少必填字段。确保所有字段均已填写完整。',
|
|
106
115
|
},
|
|
@@ -170,6 +179,9 @@ export const stringsChinese = {
|
|
|
170
179
|
'Restricted items found': {
|
|
171
180
|
value: '发现受限制的商品',
|
|
172
181
|
},
|
|
182
|
+
'Return to cart': {
|
|
183
|
+
value: '返回购物车',
|
|
184
|
+
},
|
|
173
185
|
'Search countries': {
|
|
174
186
|
value: '搜索国家',
|
|
175
187
|
},
|
|
@@ -200,8 +212,11 @@ export const stringsChinese = {
|
|
|
200
212
|
'Something went wrong.': {
|
|
201
213
|
value: '出了些问题。',
|
|
202
214
|
},
|
|
203
|
-
Spend: {
|
|
204
|
-
value: '花费',
|
|
215
|
+
'Spend [threshold] duty free': {
|
|
216
|
+
value: '花费[threshold]免税',
|
|
217
|
+
},
|
|
218
|
+
'Spend [threshold] tax free': {
|
|
219
|
+
value: '花费[threshold]免税',
|
|
205
220
|
},
|
|
206
221
|
State: {
|
|
207
222
|
value: '州',
|
|
@@ -215,6 +230,9 @@ export const stringsChinese = {
|
|
|
215
230
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
216
231
|
value: '以下商品无法运送至您的国家,并且不包括在您购物车的总额中。',
|
|
217
232
|
},
|
|
233
|
+
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
234
|
+
value: '2018年7月1日通过的低值GST法适用于本零售商。',
|
|
235
|
+
},
|
|
218
236
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
219
237
|
value: '创建您的结账会话时出现错误。如果错误仍然存在,请重新加载页面并重试,或联系支持',
|
|
220
238
|
},
|
|
@@ -227,6 +245,9 @@ export const stringsChinese = {
|
|
|
227
245
|
'Translated address': {
|
|
228
246
|
value: '翻译地址',
|
|
229
247
|
},
|
|
248
|
+
'Unable to check inventory. Please try again.': {
|
|
249
|
+
value: '无法检查库存。请再试一次。',
|
|
250
|
+
},
|
|
230
251
|
'Update address': {
|
|
231
252
|
value: '更新地址',
|
|
232
253
|
},
|
|
@@ -272,13 +293,7 @@ export const stringsChinese = {
|
|
|
272
293
|
'click to learn more': {
|
|
273
294
|
value: '点击了解更多',
|
|
274
295
|
},
|
|
275
|
-
'duty free': {
|
|
276
|
-
value: '免征关税',
|
|
277
|
-
},
|
|
278
296
|
'restricted items': {
|
|
279
297
|
value: '限制物品',
|
|
280
298
|
},
|
|
281
|
-
'tax free': {
|
|
282
|
-
value: '免税',
|
|
283
|
-
},
|
|
284
299
|
};
|
|
@@ -41,6 +41,9 @@ export const stringsDanish = {
|
|
|
41
41
|
'Continue to shipping': {
|
|
42
42
|
value: 'Fortsæt til levering',
|
|
43
43
|
},
|
|
44
|
+
"Couldn't place order": {
|
|
45
|
+
value: 'Kunne ikke placere ordre',
|
|
46
|
+
},
|
|
44
47
|
Country: {
|
|
45
48
|
value: 'Land',
|
|
46
49
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsDanish = {
|
|
|
59
62
|
"Don't close": {
|
|
60
63
|
value: 'Luk ikke',
|
|
61
64
|
},
|
|
65
|
+
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders': {
|
|
66
|
+
value: 'Afgifter og skatter i Australien, moms eller GST er [percentage] og forfalder på alle ordrer',
|
|
67
|
+
},
|
|
62
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
63
69
|
value: 'Told og skatter vil blive pålagt varer og fragt.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsDanish = {
|
|
|
101
107
|
'Last name': {
|
|
102
108
|
value: 'Efternavn',
|
|
103
109
|
},
|
|
110
|
+
'Learn more.': {
|
|
111
|
+
value: 'Læs mere.',
|
|
112
|
+
},
|
|
104
113
|
'Missing required fields. Make sure all fields are completed.': {
|
|
105
114
|
value: 'Manglende obligatoriske felter. Sørg for, at alle felter er udfyldt.',
|
|
106
115
|
},
|
|
@@ -170,6 +179,9 @@ export const stringsDanish = {
|
|
|
170
179
|
'Restricted items found': {
|
|
171
180
|
value: 'Begrænsede varer fundet',
|
|
172
181
|
},
|
|
182
|
+
'Return to cart': {
|
|
183
|
+
value: 'Tilbage til kurven',
|
|
184
|
+
},
|
|
173
185
|
'Search countries': {
|
|
174
186
|
value: 'Søg lande',
|
|
175
187
|
},
|
|
@@ -200,8 +212,11 @@ export const stringsDanish = {
|
|
|
200
212
|
'Something went wrong.': {
|
|
201
213
|
value: 'Noget gik galt.',
|
|
202
214
|
},
|
|
203
|
-
Spend: {
|
|
204
|
-
value: 'Brug',
|
|
215
|
+
'Spend [threshold] duty free': {
|
|
216
|
+
value: 'Brug [threshold] toldfrit',
|
|
217
|
+
},
|
|
218
|
+
'Spend [threshold] tax free': {
|
|
219
|
+
value: 'Brug [threshold] skattefrit',
|
|
205
220
|
},
|
|
206
221
|
State: {
|
|
207
222
|
value: 'Stat',
|
|
@@ -215,6 +230,9 @@ export const stringsDanish = {
|
|
|
215
230
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
216
231
|
value: 'De følgende varer kan ikke sendes til dit land og er ikke inkluderet i din kurvs total.',
|
|
217
232
|
},
|
|
233
|
+
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
234
|
+
value: 'Den lavværdi-GST-lov, der blev vedtaget den 1. juli 2018, gælder for denne forhandler.',
|
|
235
|
+
},
|
|
218
236
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
219
237
|
value: 'Der opstod en fejl under oprettelsen af din betalingssession. Genindlæs venligst og prøv igen eller kontakt support, hvis fejlen fortsætter',
|
|
220
238
|
},
|
|
@@ -227,6 +245,9 @@ export const stringsDanish = {
|
|
|
227
245
|
'Translated address': {
|
|
228
246
|
value: 'Oversat adresse',
|
|
229
247
|
},
|
|
248
|
+
'Unable to check inventory. Please try again.': {
|
|
249
|
+
value: 'Kunne ikke tjekke lagerbeholdningen. Prøv venligst igen.',
|
|
250
|
+
},
|
|
230
251
|
'Update address': {
|
|
231
252
|
value: 'Opdater adresse',
|
|
232
253
|
},
|
|
@@ -272,13 +293,7 @@ export const stringsDanish = {
|
|
|
272
293
|
'click to learn more': {
|
|
273
294
|
value: 'klik for at lære mere',
|
|
274
295
|
},
|
|
275
|
-
'duty free': {
|
|
276
|
-
value: 'toldfrit',
|
|
277
|
-
},
|
|
278
296
|
'restricted items': {
|
|
279
297
|
value: 'begrænsede genstande',
|
|
280
298
|
},
|
|
281
|
-
'tax free': {
|
|
282
|
-
value: 'skattefrit',
|
|
283
|
-
},
|
|
284
299
|
};
|