@zonos/elements 1.3.12-alpha.1 → 1.3.12-alpha.11
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-fcddc0e6.js → cart-37e23be9.js} +739 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sendErrorLog-7b3d82e4.js +29 -0
- package/dist/cjs/{submitGtag-ec6ead54.js → submitGtag-79dbdad0.js} +12 -23
- package/dist/cjs/zonos-address_4.cjs.entry.js +41 -17
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +90 -26
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/assets/importIcon.svg +4 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +85 -25
- package/dist/collection/components/store/translationStore/strings.arabic.js +36 -0
- package/dist/collection/components/store/translationStore/strings.base.js +36 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +36 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +36 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +36 -0
- package/dist/collection/components/store/translationStore/strings.french.js +36 -0
- package/dist/collection/components/store/translationStore/strings.german.js +36 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +36 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +36 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +36 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +36 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +36 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +36 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +36 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +36 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -0
- package/dist/collection/components/store/translationStore.js +19 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +41 -15
- package/dist/collection/components/utils/api/trackConversionEvent.js +12 -3
- package/dist/collection/components/utils/logging/getNavigatorConnection.js +16 -0
- package/dist/collection/components/utils/logging/sendLoadScriptLog.js +16 -0
- package/dist/collection/scripts/zonosBase.js +1 -0
- package/dist/collection/types/LogLoadScriptRequestBody.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +64 -14
- package/dist/collection/types/generated/graphql.frontend.types.js +7 -0
- package/dist/components/sendErrorLog.js +21 -0
- package/dist/components/stripe.js +740 -4
- package/dist/components/trackConversionEvent.js +12 -4
- package/dist/components/zonos-address2.js +41 -15
- package/dist/components/zonos-checkout-finish2.js +3 -20
- package/dist/components/zonos-checkout.js +3 -2
- package/dist/components/zonos-controller.js +1 -1
- package/dist/components/zonos-hello-dialog2.js +89 -25
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/esm/{cart-228e1ef7.js → cart-7961927b.js} +739 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sendErrorLog-4d9581da.js +26 -0
- package/dist/esm/{submitGtag-c3727595.js → submitGtag-9ec64109.js} +13 -23
- package/dist/esm/zonos-address_4.entry.js +40 -16
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +90 -26
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/cart-7961927b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/sendErrorLog-4d9581da.js +1 -0
- package/dist/esm-es5/submitGtag-9ec64109.js +1 -0
- package/dist/esm-es5/zonos-address_4.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-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-payment.entry.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +36 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +36 -0
- package/dist/types/components/store/translationStore.d.ts +24 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -1
- package/dist/types/components/utils/api/getCountryLandedCost.d.ts +10 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/logging/getNavigatorConnection.d.ts +8 -0
- package/dist/types/components/utils/logging/sendLoadScriptLog.d.ts +4 -0
- package/dist/types/scripts/zonosBase.d.ts +5 -0
- package/dist/types/types/LogLoadScriptRequestBody.d.ts +12 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +91 -18
- package/dist/types/types/generated/graphql.customer.types.ts +132 -22
- package/dist/types/types/generated/graphql.frontend.types.d.ts +28 -3
- package/dist/types/types/generated/graphql.frontend.types.ts +51 -3
- package/dist/types/types/global.d.ts +1 -2
- package/dist/zonos-elements/assets/importIcon.svg +4 -0
- package/dist/zonos-elements/p-0bdac452.system.js +1 -0
- package/dist/zonos-elements/{p-5d5c0fbf.entry.js → p-2191b884.entry.js} +1 -1
- package/dist/zonos-elements/p-2b916526.js +1 -0
- package/dist/zonos-elements/{p-5f662cf2.entry.js → p-2d5c8eb7.entry.js} +1 -1
- package/dist/zonos-elements/{p-67ff446b.system.entry.js → p-339c505b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac5aecca.entry.js → p-33f5634a.entry.js} +1 -1
- package/dist/zonos-elements/p-431648d8.system.entry.js +1 -0
- package/dist/zonos-elements/p-44842b39.system.entry.js +1 -0
- package/dist/zonos-elements/{p-14a2824f.entry.js → p-44f4dd4b.entry.js} +1 -1
- package/dist/zonos-elements/{p-35c328ba.system.entry.js → p-4b3923d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-30cd191f.entry.js → p-4eba3abe.entry.js} +1 -1
- package/dist/zonos-elements/p-5a3ceb49.entry.js +1 -0
- package/dist/zonos-elements/p-5fdf59db.system.js +1 -0
- package/dist/zonos-elements/p-63775f6d.js +1 -0
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-5f6f0581.system.entry.js → p-7efb9c12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5dbb80df.system.entry.js → p-8de91e15.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c815e8b4.system.entry.js → p-bdb72353.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0082c5be.system.entry.js → p-d117ea39.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-499d7f5d.system.entry.js → p-d6aa3011.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dd4f3724.system.js +1 -0
- package/dist/zonos-elements/{p-925ae524.entry.js → p-e1796e2a.entry.js} +1 -1
- package/dist/zonos-elements/p-e4be7bd8.js +1 -0
- package/dist/zonos-elements/{p-7ff3a533.system.entry.js → p-e5fd850c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e90e2126.entry.js +1 -0
- package/dist/zonos-elements/{p-db1adc42.entry.js → p-ea06d683.entry.js} +1 -1
- package/dist/zonos-elements/{p-11f1b5fb.entry.js → p-f0b5d2fb.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +0 -8
- package/dist/esm/isCheckoutMobile-8846dccb.js +0 -6
- package/dist/esm-es5/cart-228e1ef7.js +0 -1
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +0 -1
- package/dist/esm-es5/submitGtag-c3727595.js +0 -1
- package/dist/zonos-elements/p-0679e872.system.entry.js +0 -1
- package/dist/zonos-elements/p-09dbb0e9.entry.js +0 -1
- package/dist/zonos-elements/p-55940b5a.system.entry.js +0 -1
- package/dist/zonos-elements/p-770e5b9e.js +0 -1
- package/dist/zonos-elements/p-81a54668.js +0 -1
- package/dist/zonos-elements/p-94bbf247.system.js +0 -1
- package/dist/zonos-elements/p-960e4021.system.js +0 -1
- package/dist/zonos-elements/p-aed0098c.system.js +0 -1
- package/dist/zonos-elements/p-d11b2449.js +0 -1
- package/dist/zonos-elements/p-d31e5fcc.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-37e23be9.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -23,6 +23,12 @@ const BagIcon = `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xml
|
|
|
23
23
|
</svg>
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
+
const ImportIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
|
+
<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>
|
|
28
|
+
<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>
|
|
29
|
+
</svg>
|
|
30
|
+
`;
|
|
31
|
+
|
|
26
32
|
const MessageIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">
|
|
27
33
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>
|
|
28
34
|
</svg>
|
|
@@ -67,6 +73,81 @@ const ZonosHelloDialog = class {
|
|
|
67
73
|
this.setShowLanguageSelect = async (value) => {
|
|
68
74
|
this.showLanguageSelect = value;
|
|
69
75
|
};
|
|
76
|
+
this.getDutyMessage = () => {
|
|
77
|
+
const { countryLandedCost } = cart.localizationStore;
|
|
78
|
+
// Our Robby API spells deminimis wrong here
|
|
79
|
+
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
80
|
+
? cart.currencyFormat(countryLandedCost.dutyDeminimus)
|
|
81
|
+
: null;
|
|
82
|
+
// If Canada, use 40 CAD (courier duty de minimis)
|
|
83
|
+
const dutyDeminimisToUse = cart.localizationStore.selectedCountryCode === 'CA'
|
|
84
|
+
? cart.currencyFormat(40)
|
|
85
|
+
: dutyDeminimis;
|
|
86
|
+
// If deminimis is undefined or null, assume it's $0
|
|
87
|
+
return dutyDeminimisToUse
|
|
88
|
+
? `${cart.translate('Spend')} ${dutyDeminimisToUse} ${cart.translate('duty free')}`
|
|
89
|
+
: cart.translate('Duties will apply to all orders');
|
|
90
|
+
};
|
|
91
|
+
this.getTaxMessage = () => {
|
|
92
|
+
const { countryLandedCost } = cart.localizationStore;
|
|
93
|
+
// Our Robby API spells deminimis wrong here
|
|
94
|
+
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
95
|
+
? cart.currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
96
|
+
: null;
|
|
97
|
+
// If Canada, use 150 CAD (courier tax de minimis)
|
|
98
|
+
const taxDeminimisToUse = cart.localizationStore.selectedCountryCode === 'CA'
|
|
99
|
+
? cart.currencyFormat(150)
|
|
100
|
+
: taxDeminimis;
|
|
101
|
+
return taxDeminimisToUse
|
|
102
|
+
? `${cart.translate('Spend')} ${taxDeminimisToUse} ${cart.translate('tax free')}`
|
|
103
|
+
: cart.translate('Taxes will apply to all orders');
|
|
104
|
+
};
|
|
105
|
+
this.getUkDutyTaxMessage = (landedCost) => {
|
|
106
|
+
if (landedCost.allowLowValueOrders) {
|
|
107
|
+
// show nothing if low value orders are allowed
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
111
|
+
return cart.translate('Orders to ${countryName} must be over ${threshold} to ship.', {
|
|
112
|
+
countryName: 'United Kingdom',
|
|
113
|
+
threshold: cart.currencyFormat(dutyDeminimis),
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
117
|
+
return cart.translate('${percentage} GST due on any order above ${threshold}.', {
|
|
118
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
119
|
+
threshold: cart.currencyFormat(landedCost.vatTaxDeminimus),
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
123
|
+
return cart.translate('${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.', {
|
|
124
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
125
|
+
threshold: cart.currencyFormat(landedCost.vatTaxDeminimus),
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Get additional duty tax message if selected country has tax id
|
|
130
|
+
*/
|
|
131
|
+
this.getAdditionalDutyTaxMessage = () => {
|
|
132
|
+
if (!cart.localizationStore.countryLandedCost) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
// only show the message if the store has a tax id for selected country
|
|
136
|
+
if (!cart.localizationStore.countryLandedCost.hasTaxId) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
switch (cart.localizationStore.countryLandedCost.countryCode) {
|
|
140
|
+
case 'GB':
|
|
141
|
+
return this.getUkDutyTaxMessage(cart.localizationStore.countryLandedCost);
|
|
142
|
+
case 'AU':
|
|
143
|
+
return this.getAustraliaDutyTaxMessage(cart.localizationStore.countryLandedCost);
|
|
144
|
+
case 'NZ':
|
|
145
|
+
return this.getNewZealandDutyTaxMessge(cart.localizationStore.countryLandedCost);
|
|
146
|
+
default:
|
|
147
|
+
// show nothing
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
70
151
|
this.isOpen = false;
|
|
71
152
|
this.setIsOpen = () => { };
|
|
72
153
|
this.mobileLocationOverride = undefined;
|
|
@@ -88,30 +169,13 @@ const ZonosHelloDialog = class {
|
|
|
88
169
|
}
|
|
89
170
|
render() {
|
|
90
171
|
var _a;
|
|
91
|
-
const {
|
|
92
|
-
//
|
|
93
|
-
const
|
|
94
|
-
? cart.currencyFormat(countryLandedCost.dutyDeminimus)
|
|
95
|
-
: null;
|
|
96
|
-
// If Canada, use 40 CAD (courier duty de minimis)
|
|
97
|
-
const dutyDeminimisToUse = cart.localizationStore.selectedCountryCode === 'CA'
|
|
98
|
-
? cart.currencyFormat(40)
|
|
99
|
-
: dutyDeminimis;
|
|
172
|
+
const { selectedCountryCode } = cart.localizationStore;
|
|
173
|
+
// If deminimis is undefined or null, assume it's $0
|
|
174
|
+
const dutyDeMinimisMessage = this.getDutyMessage();
|
|
100
175
|
// If deminimis is undefined or null, assume it's $0
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// Our Robby API spells deminimis wrong here
|
|
105
|
-
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
106
|
-
? cart.currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
107
|
-
: null;
|
|
108
|
-
// If Canada, use 150 CAD (courier tax de minimis)
|
|
109
|
-
const taxDeminimisToUse = cart.localizationStore.selectedCountryCode === 'CA'
|
|
110
|
-
? cart.currencyFormat(150)
|
|
111
|
-
: taxDeminimis;
|
|
112
|
-
const taxDeMinimisMessage = taxDeminimisToUse
|
|
113
|
-
? `${cart.translate('Spend')} ${taxDeminimisToUse} ${cart.translate('tax free')}`
|
|
114
|
-
: cart.translate('Taxes will apply to all orders');
|
|
176
|
+
const taxDeMinimisMessage = this.getTaxMessage();
|
|
177
|
+
// Show additional information if selected country has tax id
|
|
178
|
+
const additionalInformation = this.getAdditionalDutyTaxMessage();
|
|
115
179
|
const animateLeft = this.animateFromLeftOverride ||
|
|
116
180
|
(this.dialogRef && getHasMoreSpaceOnRight.getHasMoreSpaceOnRight(this.dialogRef));
|
|
117
181
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
@@ -122,7 +186,7 @@ const ZonosHelloDialog = class {
|
|
|
122
186
|
const defaultMessage = formatStringWithLinks.formatStringWithLinks(defaultMessageStr);
|
|
123
187
|
const currentPage = this.getCurrentPageEnum();
|
|
124
188
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
125
|
-
return (index.h(index.Host, { key: '
|
|
189
|
+
return (index.h(index.Host, { key: 'ccabd686943b009ed6bb9c0ec64a6a4e7cc917f5', class: "zonos--elements" }, index.h("div", { key: '6bfbae15f5b43413fc76d21b94d0d56a2ce48f4d', "aria-hidden": "true", class: classes.classes([
|
|
126
190
|
'zonos--hello-dialog',
|
|
127
191
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
128
192
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
@@ -132,7 +196,7 @@ const ZonosHelloDialog = class {
|
|
|
132
196
|
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", null, index.h("div", { class: "zonos--hello-dialog-content" }, index.h("zonos-button", { class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), index.h("zonos-v-stack", { spacing: 24 }, index.h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), index.h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, index.h("zonos-text", { type: "boldSubheader" }, welcomeMessage), index.h("zonos-text", { innerHTML: defaultMessage, textColor: "gray-800" })), index.h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
|
|
133
197
|
var _a;
|
|
134
198
|
return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
135
|
-
}), index.h("zonos-card", { spacing: "12px" }, index.h("zonos-v-stack", { spacing: 12 }, index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content:
|
|
199
|
+
}), index.h("zonos-card", { spacing: "12px" }, index.h("zonos-v-stack", { spacing: 12 }, index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), index.h("zonos-text", null, dutyDeMinimisMessage)), index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), index.h("zonos-text", null, taxDeMinimisMessage)), additionalInformation && (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Low value order shipping restriction", content: BagIcon }), index.h("zonos-text", null, additionalInformation))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", null, index.h("zonos-country-select", { handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", null, index.h("zonos-language-select", { handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
136
200
|
}
|
|
137
201
|
static get assetsDirs() { return ["assets"]; }
|
|
138
202
|
static get watchers() { return {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-37e23be9.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
10
|
require('./isDarkColor-7faf0a82.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-37e23be9.js');
|
|
7
7
|
require('./zonosStore-bd2a0c59.js');
|
|
8
8
|
require('./isDarkColor-7faf0a82.js');
|
|
9
9
|
require('./getBorderRadius-4fa738c3.js');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>
|
|
3
|
+
<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>
|
|
4
|
+
</svg>
|
|
@@ -10,6 +10,8 @@ import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight
|
|
|
10
10
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
11
11
|
import BagIcon from "./assets/bagIcon.svg";
|
|
12
12
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
13
|
+
import ImportIcon from "./assets/importIcon.svg";
|
|
14
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
13
15
|
import MessageIcon from "./assets/messageIcon.svg";
|
|
14
16
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
15
17
|
import MoneyIcon from "./assets/moneyIcon.svg";
|
|
@@ -42,6 +44,81 @@ export class ZonosHelloDialog {
|
|
|
42
44
|
this.setShowLanguageSelect = async (value) => {
|
|
43
45
|
this.showLanguageSelect = value;
|
|
44
46
|
};
|
|
47
|
+
this.getDutyMessage = () => {
|
|
48
|
+
const { countryLandedCost } = localizationStore;
|
|
49
|
+
// Our Robby API spells deminimis wrong here
|
|
50
|
+
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
51
|
+
? currencyFormat(countryLandedCost.dutyDeminimus)
|
|
52
|
+
: null;
|
|
53
|
+
// If Canada, use 40 CAD (courier duty de minimis)
|
|
54
|
+
const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
55
|
+
? currencyFormat(40)
|
|
56
|
+
: dutyDeminimis;
|
|
57
|
+
// If deminimis is undefined or null, assume it's $0
|
|
58
|
+
return dutyDeminimisToUse
|
|
59
|
+
? `${translate('Spend')} ${dutyDeminimisToUse} ${translate('duty free')}`
|
|
60
|
+
: translate('Duties will apply to all orders');
|
|
61
|
+
};
|
|
62
|
+
this.getTaxMessage = () => {
|
|
63
|
+
const { countryLandedCost } = localizationStore;
|
|
64
|
+
// Our Robby API spells deminimis wrong here
|
|
65
|
+
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
66
|
+
? currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
67
|
+
: null;
|
|
68
|
+
// If Canada, use 150 CAD (courier tax de minimis)
|
|
69
|
+
const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
70
|
+
? currencyFormat(150)
|
|
71
|
+
: taxDeminimis;
|
|
72
|
+
return taxDeminimisToUse
|
|
73
|
+
? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
|
|
74
|
+
: translate('Taxes will apply to all orders');
|
|
75
|
+
};
|
|
76
|
+
this.getUkDutyTaxMessage = (landedCost) => {
|
|
77
|
+
if (landedCost.allowLowValueOrders) {
|
|
78
|
+
// show nothing if low value orders are allowed
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
82
|
+
return translate('Orders to ${countryName} must be over ${threshold} to ship.', {
|
|
83
|
+
countryName: 'United Kingdom',
|
|
84
|
+
threshold: currencyFormat(dutyDeminimis),
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
88
|
+
return translate('${percentage} GST due on any order above ${threshold}.', {
|
|
89
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
90
|
+
threshold: currencyFormat(landedCost.vatTaxDeminimus),
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
94
|
+
return translate('${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.', {
|
|
95
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
96
|
+
threshold: currencyFormat(landedCost.vatTaxDeminimus),
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Get additional duty tax message if selected country has tax id
|
|
101
|
+
*/
|
|
102
|
+
this.getAdditionalDutyTaxMessage = () => {
|
|
103
|
+
if (!localizationStore.countryLandedCost) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
// only show the message if the store has a tax id for selected country
|
|
107
|
+
if (!localizationStore.countryLandedCost.hasTaxId) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
switch (localizationStore.countryLandedCost.countryCode) {
|
|
111
|
+
case 'GB':
|
|
112
|
+
return this.getUkDutyTaxMessage(localizationStore.countryLandedCost);
|
|
113
|
+
case 'AU':
|
|
114
|
+
return this.getAustraliaDutyTaxMessage(localizationStore.countryLandedCost);
|
|
115
|
+
case 'NZ':
|
|
116
|
+
return this.getNewZealandDutyTaxMessge(localizationStore.countryLandedCost);
|
|
117
|
+
default:
|
|
118
|
+
// show nothing
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
45
122
|
this.isOpen = false;
|
|
46
123
|
this.setIsOpen = () => { };
|
|
47
124
|
this.mobileLocationOverride = undefined;
|
|
@@ -63,30 +140,13 @@ export class ZonosHelloDialog {
|
|
|
63
140
|
}
|
|
64
141
|
render() {
|
|
65
142
|
var _a;
|
|
66
|
-
const {
|
|
67
|
-
//
|
|
68
|
-
const
|
|
69
|
-
? currencyFormat(countryLandedCost.dutyDeminimus)
|
|
70
|
-
: null;
|
|
71
|
-
// If Canada, use 40 CAD (courier duty de minimis)
|
|
72
|
-
const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
73
|
-
? currencyFormat(40)
|
|
74
|
-
: dutyDeminimis;
|
|
143
|
+
const { selectedCountryCode } = localizationStore;
|
|
144
|
+
// If deminimis is undefined or null, assume it's $0
|
|
145
|
+
const dutyDeMinimisMessage = this.getDutyMessage();
|
|
75
146
|
// If deminimis is undefined or null, assume it's $0
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// Our Robby API spells deminimis wrong here
|
|
80
|
-
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
81
|
-
? currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
82
|
-
: null;
|
|
83
|
-
// If Canada, use 150 CAD (courier tax de minimis)
|
|
84
|
-
const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
85
|
-
? currencyFormat(150)
|
|
86
|
-
: taxDeminimis;
|
|
87
|
-
const taxDeMinimisMessage = taxDeminimisToUse
|
|
88
|
-
? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
|
|
89
|
-
: translate('Taxes will apply to all orders');
|
|
147
|
+
const taxDeMinimisMessage = this.getTaxMessage();
|
|
148
|
+
// Show additional information if selected country has tax id
|
|
149
|
+
const additionalInformation = this.getAdditionalDutyTaxMessage();
|
|
90
150
|
const animateLeft = this.animateFromLeftOverride ||
|
|
91
151
|
(this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
|
|
92
152
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
@@ -97,7 +157,7 @@ export class ZonosHelloDialog {
|
|
|
97
157
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
98
158
|
const currentPage = this.getCurrentPageEnum();
|
|
99
159
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
100
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'ccabd686943b009ed6bb9c0ec64a6a4e7cc917f5', class: "zonos--elements" }, h("div", { key: '6bfbae15f5b43413fc76d21b94d0d56a2ce48f4d', "aria-hidden": "true", class: classes([
|
|
101
161
|
'zonos--hello-dialog',
|
|
102
162
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
103
163
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
@@ -107,7 +167,7 @@ export class ZonosHelloDialog {
|
|
|
107
167
|
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", null, h("div", { class: "zonos--hello-dialog-content" }, h("zonos-button", { 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", { spacing: 24 }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { type: "boldSubheader" }, welcomeMessage), h("zonos-text", { innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
|
|
108
168
|
var _a;
|
|
109
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)))));
|
|
110
|
-
}), 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:
|
|
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", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)), additionalInformation && (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", null, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", null, h("zonos-country-select", { handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", null, h("zonos-language-select", { handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
111
171
|
}
|
|
112
172
|
static get is() { return "zonos-hello-dialog"; }
|
|
113
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
export const stringsArabic = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold} بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'أعلى من الحد الأدنى لـ',
|
|
4
10
|
},
|
|
5
11
|
Address: {
|
|
6
12
|
value: 'العنوان',
|
|
7
13
|
},
|
|
14
|
+
'Address line 1': {
|
|
15
|
+
value: 'سطر العنوان 1',
|
|
16
|
+
},
|
|
17
|
+
'Address line 2': {
|
|
18
|
+
value: 'سطر العنوان 2',
|
|
19
|
+
},
|
|
8
20
|
Back: {
|
|
9
21
|
value: 'رجوع',
|
|
10
22
|
},
|
|
@@ -14,12 +26,18 @@ export const stringsArabic = {
|
|
|
14
26
|
'Cart subtotal': {
|
|
15
27
|
value: 'المجموع الفرعي للسلة',
|
|
16
28
|
},
|
|
29
|
+
City: {
|
|
30
|
+
value: 'مدينة',
|
|
31
|
+
},
|
|
17
32
|
Contact: {
|
|
18
33
|
value: 'اتصل بنا',
|
|
19
34
|
},
|
|
20
35
|
'Continue to shipping': {
|
|
21
36
|
value: 'متابعة إلى الشحن',
|
|
22
37
|
},
|
|
38
|
+
Country: {
|
|
39
|
+
value: 'بلد',
|
|
40
|
+
},
|
|
23
41
|
Customer: {
|
|
24
42
|
value: 'العميل',
|
|
25
43
|
},
|
|
@@ -59,6 +77,9 @@ export const stringsArabic = {
|
|
|
59
77
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
60
78
|
value: 'تعرف على الرسوم والضرائب قبل الشراء. اشترِ بثقة!',
|
|
61
79
|
},
|
|
80
|
+
Name: {
|
|
81
|
+
value: 'اسم',
|
|
82
|
+
},
|
|
62
83
|
'No shipping method selected': {
|
|
63
84
|
value: 'لم يتم تحديد طريقة الشحن',
|
|
64
85
|
},
|
|
@@ -77,6 +98,9 @@ export const stringsArabic = {
|
|
|
77
98
|
'Order total': {
|
|
78
99
|
value: 'إجمالي الطلبية',
|
|
79
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'يجب أن تتجاوز الطلبيات إلى ${countryName} ${threshold} ليتم شحنها.',
|
|
103
|
+
},
|
|
80
104
|
Pay: {
|
|
81
105
|
value: 'دفع',
|
|
82
106
|
},
|
|
@@ -98,6 +122,12 @@ export const stringsArabic = {
|
|
|
98
122
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
99
123
|
value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
|
|
100
124
|
},
|
|
125
|
+
'Please resolve the following errors:': {
|
|
126
|
+
value: 'الرجاء حل الأخطاء التالية:',
|
|
127
|
+
},
|
|
128
|
+
'Postal code': {
|
|
129
|
+
value: 'الرمز البريدي',
|
|
130
|
+
},
|
|
101
131
|
'Powered by': {
|
|
102
132
|
value: 'مشغل بواسطة',
|
|
103
133
|
},
|
|
@@ -140,6 +170,9 @@ export const stringsArabic = {
|
|
|
140
170
|
Spend: {
|
|
141
171
|
value: 'إنفاق',
|
|
142
172
|
},
|
|
173
|
+
State: {
|
|
174
|
+
value: 'ولاية',
|
|
175
|
+
},
|
|
143
176
|
'Taxes will apply to all orders': {
|
|
144
177
|
value: 'ستنطبق الضرائب على جميع الطلبات',
|
|
145
178
|
},
|
|
@@ -176,6 +209,9 @@ export const stringsArabic = {
|
|
|
176
209
|
'duty free': {
|
|
177
210
|
value: 'معفى من الرسوم',
|
|
178
211
|
},
|
|
212
|
+
'only supports Latin characters (A-Z, a-z)': {
|
|
213
|
+
value: 'يدعم فقط الأحرف اللاتينية (A-Z, a-z)',
|
|
214
|
+
},
|
|
179
215
|
'tax free': {
|
|
180
216
|
value: 'معفى من الضرائب',
|
|
181
217
|
},
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
export const stringsBase = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} GST due on any order above ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Above de minimis threshold for',
|
|
4
10
|
},
|
|
5
11
|
Address: {
|
|
6
12
|
value: 'Address',
|
|
7
13
|
},
|
|
14
|
+
'Address line 1': {
|
|
15
|
+
value: 'Address line 1',
|
|
16
|
+
},
|
|
17
|
+
'Address line 2': {
|
|
18
|
+
value: 'Address line 2',
|
|
19
|
+
},
|
|
8
20
|
Back: {
|
|
9
21
|
value: 'Back',
|
|
10
22
|
},
|
|
@@ -14,12 +26,18 @@ export const stringsBase = {
|
|
|
14
26
|
'Cart subtotal': {
|
|
15
27
|
value: 'Cart subtotal',
|
|
16
28
|
},
|
|
29
|
+
City: {
|
|
30
|
+
value: 'City',
|
|
31
|
+
},
|
|
17
32
|
Contact: {
|
|
18
33
|
value: 'Contact',
|
|
19
34
|
},
|
|
20
35
|
'Continue to shipping': {
|
|
21
36
|
value: 'Continue to shipping',
|
|
22
37
|
},
|
|
38
|
+
Country: {
|
|
39
|
+
value: 'Country',
|
|
40
|
+
},
|
|
23
41
|
Customer: {
|
|
24
42
|
value: 'Customer',
|
|
25
43
|
},
|
|
@@ -59,6 +77,9 @@ export const stringsBase = {
|
|
|
59
77
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
60
78
|
value: 'Know about duties and taxes before you buy. Shop with confidence!',
|
|
61
79
|
},
|
|
80
|
+
Name: {
|
|
81
|
+
value: 'Name',
|
|
82
|
+
},
|
|
62
83
|
'No shipping method selected': {
|
|
63
84
|
value: 'No shipping method selected',
|
|
64
85
|
},
|
|
@@ -77,6 +98,9 @@ export const stringsBase = {
|
|
|
77
98
|
'Order total': {
|
|
78
99
|
value: 'Order total',
|
|
79
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Orders to ${countryName} must be over ${threshold} to ship.',
|
|
103
|
+
},
|
|
80
104
|
Pay: {
|
|
81
105
|
value: 'Pay',
|
|
82
106
|
},
|
|
@@ -98,6 +122,12 @@ export const stringsBase = {
|
|
|
98
122
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
99
123
|
value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
|
|
100
124
|
},
|
|
125
|
+
'Please resolve the following errors:': {
|
|
126
|
+
value: 'Please resolve the following errors:',
|
|
127
|
+
},
|
|
128
|
+
'Postal code': {
|
|
129
|
+
value: 'Postal code',
|
|
130
|
+
},
|
|
101
131
|
'Powered by': {
|
|
102
132
|
value: 'Powered by',
|
|
103
133
|
},
|
|
@@ -140,6 +170,9 @@ export const stringsBase = {
|
|
|
140
170
|
Spend: {
|
|
141
171
|
value: 'Spend',
|
|
142
172
|
},
|
|
173
|
+
State: {
|
|
174
|
+
value: 'State',
|
|
175
|
+
},
|
|
143
176
|
'Taxes will apply to all orders': {
|
|
144
177
|
value: 'Taxes will apply to all orders',
|
|
145
178
|
},
|
|
@@ -176,6 +209,9 @@ export const stringsBase = {
|
|
|
176
209
|
'duty free': {
|
|
177
210
|
value: 'duty free',
|
|
178
211
|
},
|
|
212
|
+
'only supports Latin characters (A-Z, a-z)': {
|
|
213
|
+
value: 'only supports Latin characters (A-Z, a-z)',
|
|
214
|
+
},
|
|
179
215
|
'tax free': {
|
|
180
216
|
value: 'tax free',
|
|
181
217
|
},
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
export const stringsChinese = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '任何订单超过${threshold},除了需缴纳${percentage}的商品及服务税外,还包括进口货物申报费和MPI征费。',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '任何订单超过${threshold},需缴纳${percentage}的商品及服务税。',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: '超过最低征税门槛',
|
|
4
10
|
},
|
|
5
11
|
Address: {
|
|
6
12
|
value: '地址',
|
|
7
13
|
},
|
|
14
|
+
'Address line 1': {
|
|
15
|
+
value: '地址行1',
|
|
16
|
+
},
|
|
17
|
+
'Address line 2': {
|
|
18
|
+
value: '地址行2',
|
|
19
|
+
},
|
|
8
20
|
Back: {
|
|
9
21
|
value: '返回',
|
|
10
22
|
},
|
|
@@ -14,12 +26,18 @@ export const stringsChinese = {
|
|
|
14
26
|
'Cart subtotal': {
|
|
15
27
|
value: '购物车小计',
|
|
16
28
|
},
|
|
29
|
+
City: {
|
|
30
|
+
value: '城市',
|
|
31
|
+
},
|
|
17
32
|
Contact: {
|
|
18
33
|
value: '联系方式',
|
|
19
34
|
},
|
|
20
35
|
'Continue to shipping': {
|
|
21
36
|
value: '继续运送',
|
|
22
37
|
},
|
|
38
|
+
Country: {
|
|
39
|
+
value: '国家',
|
|
40
|
+
},
|
|
23
41
|
Customer: {
|
|
24
42
|
value: '顾客',
|
|
25
43
|
},
|
|
@@ -59,6 +77,9 @@ export const stringsChinese = {
|
|
|
59
77
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
60
78
|
value: '在购买之前了解关税和税款。放心购物!',
|
|
61
79
|
},
|
|
80
|
+
Name: {
|
|
81
|
+
value: '名称',
|
|
82
|
+
},
|
|
62
83
|
'No shipping method selected': {
|
|
63
84
|
value: '未选择运输方式',
|
|
64
85
|
},
|
|
@@ -77,6 +98,9 @@ export const stringsChinese = {
|
|
|
77
98
|
'Order total': {
|
|
78
99
|
value: '订单总计',
|
|
79
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: '寄往${countryName}的订单必须超过${threshold}才能发货。',
|
|
103
|
+
},
|
|
80
104
|
Pay: {
|
|
81
105
|
value: '支付',
|
|
82
106
|
},
|
|
@@ -98,6 +122,12 @@ export const stringsChinese = {
|
|
|
98
122
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
99
123
|
value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
|
|
100
124
|
},
|
|
125
|
+
'Please resolve the following errors:': {
|
|
126
|
+
value: '请解决以下错误:',
|
|
127
|
+
},
|
|
128
|
+
'Postal code': {
|
|
129
|
+
value: '邮政编码',
|
|
130
|
+
},
|
|
101
131
|
'Powered by': {
|
|
102
132
|
value: '由...提供支持',
|
|
103
133
|
},
|
|
@@ -140,6 +170,9 @@ export const stringsChinese = {
|
|
|
140
170
|
Spend: {
|
|
141
171
|
value: '花费',
|
|
142
172
|
},
|
|
173
|
+
State: {
|
|
174
|
+
value: '州',
|
|
175
|
+
},
|
|
143
176
|
'Taxes will apply to all orders': {
|
|
144
177
|
value: '税款将适用于所有订单',
|
|
145
178
|
},
|
|
@@ -176,6 +209,9 @@ export const stringsChinese = {
|
|
|
176
209
|
'duty free': {
|
|
177
210
|
value: '免征关税',
|
|
178
211
|
},
|
|
212
|
+
'only supports Latin characters (A-Z, a-z)': {
|
|
213
|
+
value: '仅支持拉丁字符 (A-Z, a-z)',
|
|
214
|
+
},
|
|
179
215
|
'tax free': {
|
|
180
216
|
value: '免税',
|
|
181
217
|
},
|