@zonos/elements 1.3.149 → 1.3.151
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-a19315fd.js → cart-0ce9e90b.js} +80 -80
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-5d326579.js → paypal-d4d0bb3c.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +19 -6
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +19 -15
- 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_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +0 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +16 -12
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +3 -3
- package/dist/collection/components/store/translationStore/strings.arabic.js +4 -4
- package/dist/collection/components/store/translationStore/strings.base.js +4 -4
- package/dist/collection/components/store/translationStore/strings.chinese.js +4 -4
- package/dist/collection/components/store/translationStore/strings.danish.js +4 -4
- package/dist/collection/components/store/translationStore/strings.dutch.js +4 -4
- package/dist/collection/components/store/translationStore/strings.french.js +4 -4
- package/dist/collection/components/store/translationStore/strings.german.js +4 -4
- package/dist/collection/components/store/translationStore/strings.hebrew.js +4 -4
- package/dist/collection/components/store/translationStore/strings.indonesian.js +4 -4
- package/dist/collection/components/store/translationStore/strings.italian.js +4 -4
- package/dist/collection/components/store/translationStore/strings.japanese.js +4 -4
- package/dist/collection/components/store/translationStore/strings.korean.js +4 -4
- package/dist/collection/components/store/translationStore/strings.norwegian.js +4 -4
- package/dist/collection/components/store/translationStore/strings.polish.js +4 -4
- package/dist/collection/components/store/translationStore/strings.portuguese.js +4 -4
- package/dist/collection/components/store/translationStore/strings.russian.js +4 -4
- package/dist/collection/components/store/translationStore/strings.spanish.js +4 -4
- package/dist/collection/components/store/translationStore/strings.swedish.js +4 -4
- package/dist/collection/components/store/translationStore/strings.turkish.js +4 -4
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +4 -4
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +15 -2
- package/dist/esm/{cart-260f8518.js → cart-eadc7067.js} +80 -80
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-5453a7db.js → paypal-897e2b5c.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +19 -6
- package/dist/esm/zonos-cart-items_13.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +19 -15
- 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_4.entry.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/cart-eadc7067.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-5453a7db.js → paypal-897e2b5c.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.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_4.entry.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-language-select_2.entry.js +1 -1
- 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/store/translationStore/strings.arabic.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.base.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.danish.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.french.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.german.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.italian.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.korean.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.polish.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.russian.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +2 -2
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +4 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-1cace07e.system.entry.js → p-06af7849.system.entry.js} +1 -1
- package/dist/zonos-elements/p-11063d30.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a5a1a1d9.system.js → p-28a516f8.system.js} +1 -1
- package/dist/zonos-elements/{p-430ac090.system.js → p-2f8909b0.system.js} +1 -1
- package/dist/zonos-elements/p-353b2453.entry.js +1 -0
- package/dist/zonos-elements/{p-0728843a.entry.js → p-3e20fb8f.entry.js} +1 -1
- package/dist/zonos-elements/{p-cb4500cc.entry.js → p-3e3e7800.entry.js} +1 -1
- package/dist/zonos-elements/{p-7cad853b.entry.js → p-3ea350e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-08be2f4d.entry.js → p-43b8406e.entry.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
- package/dist/zonos-elements/{p-84bcd390.system.entry.js → p-5784a0fc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebe1a0bb.system.entry.js → p-57d31762.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-50bbb2f5.entry.js → p-5d9c5413.entry.js} +1 -1
- package/dist/zonos-elements/p-5ee576e3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7ccbd8cb.system.entry.js → p-65dda2b5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1859837.entry.js → p-7c7f0c32.entry.js} +1 -1
- package/dist/zonos-elements/p-8a4c6a42.js +1 -0
- package/dist/zonos-elements/{p-caf27d12.entry.js → p-8cb90d9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-a50c36b5.system.entry.js → p-8fe71612.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dca47550.system.entry.js → p-aaecde60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ea5b3c72.js → p-c36f823b.js} +1 -1
- package/dist/zonos-elements/{p-fbf89adf.entry.js → p-c94d82fb.entry.js} +1 -1
- package/dist/zonos-elements/{p-85e7f592.system.entry.js → p-d642f149.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dec30fa4.entry.js +1 -0
- package/dist/zonos-elements/p-eb192fa3.system.js +1 -0
- package/dist/zonos-elements/{p-526d2758.system.entry.js → p-ee871492.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-260f8518.js +0 -1
- package/dist/zonos-elements/p-366be853.system.entry.js +0 -1
- package/dist/zonos-elements/p-92d5df16.js +0 -1
- package/dist/zonos-elements/p-93eaf4d0.entry.js +0 -1
- package/dist/zonos-elements/p-cc7bcbc2.system.entry.js +0 -1
- package/dist/zonos-elements/p-d512afcf.system.js +0 -1
- package/dist/zonos-elements/p-ea866dd3.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-3673a0c2.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-2acf30d1.js');
|
|
@@ -6,9 +6,9 @@ const index = require('./index-2f90486e.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
|
|
9
|
-
const cart = require('./cart-
|
|
9
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
11
|
-
const paypal = require('./paypal-
|
|
11
|
+
const paypal = require('./paypal-d4d0bb3c.js');
|
|
12
12
|
require('./isDarkColor-2acf30d1.js');
|
|
13
13
|
|
|
14
14
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-0ce9e90b.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-3673a0c2.js');
|
|
@@ -571,16 +571,16 @@ export class ZonosCheckout {
|
|
|
571
571
|
customerZip,
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
|
-
applyPrefillAddress(
|
|
575
|
-
const line1 = customerAddress1 || '';
|
|
576
|
-
const country = customerCountry || '';
|
|
577
|
-
const line2 = customerAddress2 || '';
|
|
578
|
-
const city = customerCity || '';
|
|
579
|
-
const email = customerEmail || '';
|
|
580
|
-
const name = customerName || '';
|
|
581
|
-
const phone = customerPhone || '';
|
|
582
|
-
const postal_code = customerZip || '';
|
|
583
|
-
const state = customerState || '';
|
|
574
|
+
applyPrefillAddress(address) {
|
|
575
|
+
const line1 = address.customerAddress1 || '';
|
|
576
|
+
const country = address.customerCountry || '';
|
|
577
|
+
const line2 = address.customerAddress2 || '';
|
|
578
|
+
const city = address.customerCity || '';
|
|
579
|
+
const email = address.customerEmail || '';
|
|
580
|
+
const name = address.customerName || '';
|
|
581
|
+
const phone = address.customerPhone || '';
|
|
582
|
+
const postal_code = address.customerZip || '';
|
|
583
|
+
const state = address.customerState || '';
|
|
584
584
|
/**
|
|
585
585
|
* If one of the value is null, no need to preset the default address.
|
|
586
586
|
* City and state are optional (they are not always provided for example Puerto Rico)
|
|
@@ -609,6 +609,10 @@ export class ZonosCheckout {
|
|
|
609
609
|
name,
|
|
610
610
|
phone,
|
|
611
611
|
};
|
|
612
|
+
log('Prefill address applied', 'info', {
|
|
613
|
+
prefillAddress: this.defaultAddressParams,
|
|
614
|
+
providedAddress: address,
|
|
615
|
+
});
|
|
612
616
|
}
|
|
613
617
|
overrideStagingModeChanged() {
|
|
614
618
|
cartStore.isStagingMode = !!this.overrideStagingMode;
|
|
@@ -1018,12 +1022,12 @@ export class ZonosCheckout {
|
|
|
1018
1022
|
* Show order number if it's available, otherwise just show the time
|
|
1019
1023
|
*/
|
|
1020
1024
|
((_b = this.placedOrderInfo) === null || _b === void 0 ? void 0 : _b.zonosOrderNumber)
|
|
1021
|
-
? translate('It looks like you placed an order
|
|
1025
|
+
? translate('It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?', {
|
|
1022
1026
|
date: this.formatDate(this.placedOrderInfo.time),
|
|
1023
1027
|
orderNumber: this.placedOrderInfo.zonosOrderNumber,
|
|
1024
1028
|
time: this.formatTime(this.placedOrderInfo.time),
|
|
1025
1029
|
})
|
|
1026
|
-
: translate('It looks like you placed an order
|
|
1030
|
+
: translate('It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?', {
|
|
1027
1031
|
date: this.formatDate(((_c = this.placedOrderInfo) === null || _c === void 0 ? void 0 : _c.time) || null),
|
|
1028
1032
|
time: this.formatTime(((_d = this.placedOrderInfo) === null || _d === void 0 ? void 0 : _d.time) || null),
|
|
1029
1033
|
}), dialogTitle: translate('Are you sure?'), dialogWidth: 530, onCancelClicked: () => {
|
|
@@ -43,17 +43,17 @@ export class ZonosStripeInput {
|
|
|
43
43
|
} }, h("div", { key: 'a3e7f765b0081a564c5955e387ff4b521a28d1a5', class: classes([
|
|
44
44
|
'zonos--label-wrapper',
|
|
45
45
|
this.isDisabled && 'disabled',
|
|
46
|
-
]) }, h("input", { key: '
|
|
46
|
+
]) }, h("input", { key: '181c5230ddeb02e9cea646b7f0a8efa3a530796e', class: classes([
|
|
47
47
|
'zonos--floated-input',
|
|
48
48
|
!!this.inputLabel && 'has-label',
|
|
49
49
|
this.internalValue && 'has-content',
|
|
50
50
|
this.isError && 'has-error',
|
|
51
|
-
]), disabled: this.isDisabled, id: "zonos--input",
|
|
51
|
+
]), disabled: this.isDisabled, id: "zonos--input", onChange: e => {
|
|
52
52
|
const input = e.target;
|
|
53
53
|
this.inputChange.emit(input.value);
|
|
54
54
|
this.el.inputValue = input.value;
|
|
55
55
|
this.el.dispatchEvent(new Event('change'));
|
|
56
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), h("div", { key: '
|
|
56
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), h("div", { key: 'ac6e97971905ba130c3533da6a409de60f99ed6d', class: "zonos--floated-label" }, h("label", { key: '1643ab4ef5b9449332351c854f8e43db8d192164', htmlFor: "zonos--input" }, this.inputLabel)))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "zonos-stripe-input"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -146,11 +146,11 @@ export const stringsArabic = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'رمز ترويجي غير صالح',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'يبدو أنك
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'يبدو أنك قمت بتقديم طلب مؤخرًا ([date] في [time]) تحت رقم الطلب #[orderNumber]. تحقق من بريدك الإلكتروني لتأكيد الطلب. هل أنت متأكد أنك تريد تقديم طلب آخر؟',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'يبدو أنك قدمت طلبًا
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'يبدو أنك قدمت طلبًا مؤخرًا ([date] في [time]). تحقق من بريدك الإلكتروني لتأكيد الطلب. هل أنت متأكد أنك تريد تقديم طلب آخر؟',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'استمر في التسوق',
|
|
@@ -146,11 +146,11 @@ export const stringsBase = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Invalid promo code',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'It looks like you placed an order
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'It looks like you placed an order
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Keep shopping',
|
|
@@ -146,11 +146,11 @@ export const stringsChinese = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: '无效的促销代码',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: '
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: '您似乎最近下了一个订单([date] [time]),订单号为 #[orderNumber]。请检查您的电子邮件以获取订单确认。您确定要下另一个订单吗?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: '
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: '您似乎最近下了订单([date] [time])。请检查您的电子邮件以获取订单确认。您确定要再下一个订单吗?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: '继续购物',
|
|
@@ -146,11 +146,11 @@ export const stringsDanish = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Ugyldig kampagnekode',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Det ser ud til, at du
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Det ser ud til, at du for nylig har afgivet en ordre ([date] kl. [time]) under ordrenummer #[orderNumber]. Tjek din e-mail for ordrebekræftelsen. Er du sikker på, at du vil afgive en ny ordre?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Det ser ud til, at du har afgivet en ordre for
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Det ser ud til, at du har afgivet en ordre for nylig ([date] kl. [time]). Tjek din e-mail for ordrebekræftelsen. Er du sikker på, at du vil afgive en til?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Fortsæt med at handle',
|
|
@@ -146,11 +146,11 @@ export const stringsDutch = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Ongeldige promotiecode',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Het lijkt erop dat je
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Het lijkt erop dat je onlangs een bestelling hebt geplaatst ([date] om [time]) onder bestelnummer #[orderNumber]. Controleer je e-mail voor de orderbevestiging. Weet je zeker dat je nog een bestelling wilt plaatsen?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Het lijkt erop dat je
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Het lijkt erop dat je onlangs een bestelling hebt geplaatst ([date] om [time]). Controleer je e-mail voor de orderbevestiging. Weet je zeker dat je er nog een wilt plaatsen?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Blijf winkelen',
|
|
@@ -146,11 +146,11 @@ export const stringsFrench = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Code promo invalide',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Il semble que vous ayez passé une commande
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Il semble que vous ayez passé une commande récemment ([date] à [time]) sous le numéro de commande #[orderNumber]. Vérifiez votre e-mail pour la confirmation de commande. Êtes-vous sûr de vouloir passer une autre commande?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Il semble que vous ayez passé une commande
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Il semble que vous ayez passé une commande récemment ([date] à [time]). Vérifiez votre e-mail pour la confirmation de commande. Êtes-vous sûr de vouloir en passer une autre?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Continuez vos achats',
|
|
@@ -146,11 +146,11 @@ export const stringsGerman = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Ungültiger Aktionscode',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Es sieht so aus, als hätten Sie
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Es sieht so aus, als hätten Sie kürzlich eine Bestellung aufgegeben ([date] um [time]) unter der Bestellnummer #[orderNumber]. Überprüfen Sie Ihre E-Mails auf die Bestellbestätigung. Sind Sie sicher, dass Sie eine weitere Bestellung aufgeben möchten?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Es sieht so aus, als hätten Sie
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Es sieht so aus, als hätten Sie kürzlich eine Bestellung aufgegeben ([date] um [time]). Überprüfen Sie Ihre E-Mails auf die Bestellbestätigung. Sind Sie sicher, dass Sie eine weitere aufgeben möchten?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Weiter einkaufen',
|
|
@@ -146,11 +146,11 @@ export const stringsHebrew = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'קוד קידום מכירות לא חוקי',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'נראה כי ביצעת הזמנה
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'נראה כי ביצעת הזמנה לאחרונה ([date] ב-[time]) תחת מספר הזמנה #[orderNumber]. בדוק את הדוא"ל שלך לאישור ההזמנה. האם אתה בטוח שברצונך לבצע הזמנה נוספת?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'נראה
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'נראה כי ביצעת הזמנה לאחרונה ([date] ב-[time]). בדוק את הדוא"ל שלך לאישור ההזמנה. האם אתה בטוח שברצונך לבצע הזמנה נוספת?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'המשך לקנות',
|
|
@@ -146,11 +146,11 @@ export const stringsIndonesian = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Kode promo tidak valid',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Sepertinya Anda baru saja melakukan pemesanan
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Sepertinya Anda baru saja melakukan pemesanan ([date] pada [time]) dengan nomor pesanan #[orderNumber]. Periksa email Anda untuk konfirmasi pesanan. Apakah Anda yakin ingin melakukan pemesanan lain?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Sepertinya Anda baru saja melakukan pemesanan
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Sepertinya Anda baru saja melakukan pemesanan ([date] pada [time]). Periksa email Anda untuk konfirmasi pesanan. Apakah Anda yakin ingin melakukan pemesanan lagi?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Lanjutkan berbelanja',
|
|
@@ -146,11 +146,11 @@ export const stringsItalian = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Codice promozionale non valido',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: "Sembra che tu abbia effettuato un ordine
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: "Sembra che tu abbia effettuato un ordine di recente ([date] alle [time]) con il numero d'ordine #[orderNumber]. Controlla la tua email per la conferma dell'ordine. Sei sicuro di voler effettuare un altro ordine?",
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: "Sembra che tu abbia effettuato un ordine
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: "Sembra che tu abbia effettuato un ordine di recente ([date] alle [time]). Controlla la tua email per la conferma dell'ordine. Sei sicuro di volerne fare un altro?",
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Continua a fare acquisti',
|
|
@@ -146,11 +146,11 @@ export const stringsJapanese = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: '無効なプロモーションコード',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: '
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: '最近注文をしたようです([date] [time])注文番号 #[orderNumber] で。注文確認のメールをチェックしてください。別の注文を確定してもよろしいですか?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: '
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: '最近注文をしたようです([date] [time])。注文確認のメールを確認してください。もう一つ注文してもよろしいですか?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: '買い物を続ける',
|
|
@@ -146,11 +146,11 @@ export const stringsKorean = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: '유효하지 않은 프로모션 코드',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: '
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: '최근에 주문하신 것 같습니다 ([date] [time]) 주문 번호 #[orderNumber]로. 주문 확인 이메일을 확인하세요. 다른 주문을 하시겠습니까?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: '
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: '최근에 주문을 하신 것 같습니다 ([date] [time]). 주문 확인 이메일을 확인하세요. 또 다른 주문을 하시겠습니까?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: '쇼핑 계속하기',
|
|
@@ -146,11 +146,11 @@ export const stringsNorwegian = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Ugyldig kampanjekode',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Det ser ut som du
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Det ser ut som du nylig har lagt inn en bestilling ([date] kl. [time]) under ordrenummer #[orderNumber]. Sjekk e-posten din for ordrebekreftelsen. Er du sikker på at du vil legge inn en ny bestilling?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Det ser ut som du la inn en bestilling
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Det ser ut som du la inn en bestilling nylig ([date] kl. [time]). Sjekk e-posten din for ordrebekreftelsen. Er du sikker på at du vil legge inn en til?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Fortsett å handle',
|
|
@@ -146,11 +146,11 @@ export const stringsPolish = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Nieprawidłowy kod promocyjny',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Wygląda na to, że złożyłeś zamówienie
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Wygląda na to, że niedawno złożyłeś zamówienie ([date] o [time]) pod numerem zamówienia #[orderNumber]. Sprawdź swoją skrzynkę e-mail, aby potwierdzić zamówienie. Czy na pewno chcesz złożyć kolejne zamówienie?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Wygląda na to, że złożyłeś zamówienie
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Wygląda na to, że niedawno złożyłeś zamówienie ([date] o [time]). Sprawdź swoją pocztę e-mail, aby potwierdzić zamówienie. Czy na pewno chcesz złożyć kolejne?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Kontynuuj zakupy',
|
|
@@ -146,11 +146,11 @@ export const stringsPortuguese = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Código promocional inválido',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Parece que você fez um pedido
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Parece que você fez um pedido recentemente ([date] às [time]) sob o número de pedido #[orderNumber]. Verifique seu e-mail para a confirmação do pedido. Tem certeza de que deseja fazer outro pedido?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Parece que você fez um pedido
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Parece que você fez um pedido recentemente ([date] às [time]). Verifique seu e-mail para a confirmação do pedido. Tem certeza de que deseja fazer outro?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Continue comprando',
|
|
@@ -146,11 +146,11 @@ export const stringsRussian = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Недействительный промо-код',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Похоже, вы сделали заказ
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Похоже, вы недавно сделали заказ ([date] в [time]) под номером заказа #[orderNumber]. Проверьте свою электронную почту для подтверждения заказа. Вы уверены, что хотите сделать еще один заказ?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Похоже, вы сделали заказ
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Похоже, вы недавно сделали заказ ([date] в [time]). Проверьте свою электронную почту для подтверждения заказа. Вы уверены, что хотите сделать еще один?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Продолжайте покупки',
|
|
@@ -146,11 +146,11 @@ export const stringsSpanish = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Código promocional no válido',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Parece que realizaste un pedido
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Parece que realizaste un pedido recientemente ([date] a las [time]) bajo el número de pedido #[orderNumber]. Revisa tu correo electrónico para la confirmación del pedido. ¿Estás seguro de que quieres hacer otro pedido?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Parece que
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Parece que hiciste un pedido recientemente ([date] a las [time]). Revisa tu correo electrónico para la confirmación del pedido. ¿Estás seguro de que quieres hacer otro?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Sigue comprando',
|
|
@@ -146,11 +146,11 @@ export const stringsSwedish = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Ogiltig kampanjkod',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Det verkar som att du
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Det verkar som att du nyligen har gjort en beställning ([date] kl. [time]) under ordernummer #[orderNumber]. Kontrollera din e-post för orderbekräftelsen. Är du säker på att du vill göra en ny beställning?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Det verkar som att du
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Det verkar som att du nyligen har gjort en beställning ([date] kl. [time]). Kontrollera din e-post för orderbekräftelsen. Är du säker på att du vill göra en till?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Fortsätt handla',
|
|
@@ -146,11 +146,11 @@ export const stringsTurkish = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Geçersiz promosyon kodu',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Görünüşe göre
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Görünüşe göre yakın zamanda bir sipariş verdiniz ([date] tarihinde [time] saatinde) #[orderNumber] sipariş numarasıyla. Sipariş onayı için e-postanızı kontrol edin. Başka bir sipariş vermek istediğinizden emin misiniz?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Görünüşe göre
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Görünüşe göre yakın zamanda bir sipariş verdiniz ([date] saat [time]). Sipariş onayı için e-postanızı kontrol edin. Başka bir sipariş vermek istediğinizden emin misiniz?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Alışverişe devam et',
|
|
@@ -146,11 +146,11 @@ export const stringsVietnamese = {
|
|
|
146
146
|
'Invalid promo code': {
|
|
147
147
|
value: 'Mã khuyến mãi không hợp lệ',
|
|
148
148
|
},
|
|
149
|
-
'It looks like you placed an order
|
|
150
|
-
value: 'Có vẻ như bạn đã đặt hàng
|
|
149
|
+
'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
|
|
150
|
+
value: 'Có vẻ như bạn đã đặt hàng gần đây ([date] lúc [time]) với số đơn hàng #[orderNumber]. Kiểm tra email của bạn để xác nhận đơn hàng. Bạn có chắc chắn muốn đặt hàng khác không?',
|
|
151
151
|
},
|
|
152
|
-
'It looks like you placed an order
|
|
153
|
-
value: 'Có vẻ như bạn đã đặt hàng
|
|
152
|
+
'It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
153
|
+
value: 'Có vẻ như bạn đã đặt hàng gần đây ([date] lúc [time]). Kiểm tra email của bạn để xác nhận đơn hàng. Bạn có chắc chắn muốn đặt thêm một cái nữa không?',
|
|
154
154
|
},
|
|
155
155
|
'Keep shopping': {
|
|
156
156
|
value: 'Tiếp tục mua sắm',
|
|
@@ -9,6 +9,10 @@ import { logError } from "../../utils/logging/logError";
|
|
|
9
9
|
*/
|
|
10
10
|
export class ZonosAddress {
|
|
11
11
|
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
|
|
14
|
+
*/
|
|
15
|
+
this.isAutoCompleteAdjusted = false;
|
|
12
16
|
this.type = undefined;
|
|
13
17
|
this.titleText = undefined;
|
|
14
18
|
this.defaultAddress = null;
|
|
@@ -64,12 +68,14 @@ export class ZonosAddress {
|
|
|
64
68
|
const shippingZone = shippableCountries
|
|
65
69
|
? Object.values(shippableCountries).map(country => country.code)
|
|
66
70
|
: [];
|
|
71
|
+
// Show all countries in checkout if the query param is present
|
|
72
|
+
const checkoutAllCountries = new URLSearchParams(window.location.search).has('zonosCheckoutAllCountries');
|
|
67
73
|
const allowedCountries = this.type === 'shipping' ? shippingZone : [];
|
|
68
74
|
const defaultAddressCountry = (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
|
|
69
75
|
getFallbackDefaultCountryCode(allowedCountries);
|
|
70
76
|
log(`Stripe country code: ${defaultAddressCountry}`, 'info');
|
|
71
77
|
const addressElement = stripeElements.create('address', {
|
|
72
|
-
allowedCountries,
|
|
78
|
+
allowedCountries: checkoutAllCountries ? [] : allowedCountries,
|
|
73
79
|
// only show the default address if stripeAddressEventData is not provided
|
|
74
80
|
contacts: this.defaultAddress && !stripeAddressEventData
|
|
75
81
|
? [this.defaultAddress]
|
|
@@ -100,6 +106,13 @@ export class ZonosAddress {
|
|
|
100
106
|
this.isDirtyAddress = true;
|
|
101
107
|
// stripe element started with just address line 1, so scroll bar is not yet available. Wait for a moment before scrolling
|
|
102
108
|
setTimeout(() => {
|
|
109
|
+
if (!this.isAutoCompleteAdjusted) {
|
|
110
|
+
const googleAutoComplete = this.el.querySelector('iframe[src*="autocomplete-suggestions"]');
|
|
111
|
+
if (googleAutoComplete) {
|
|
112
|
+
googleAutoComplete.style.zIndex = '2';
|
|
113
|
+
}
|
|
114
|
+
this.isAutoCompleteAdjusted = true;
|
|
115
|
+
}
|
|
103
116
|
// scroll directly into view if it's mobile
|
|
104
117
|
if (isCheckoutMobile()) {
|
|
105
118
|
this.el.scrollIntoView({ behavior: 'smooth', block: 'end' });
|
|
@@ -138,7 +151,7 @@ export class ZonosAddress {
|
|
|
138
151
|
}
|
|
139
152
|
render() {
|
|
140
153
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
141
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: '2bc89330a07e2f14f21805d8d38a5455b85cf295', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '17f156c41379d68822f605e7fd4a8329d32b7dee', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '5f032eab47ca5751ee38ea644d00255d9d12a588', class: "zonos--address-component" })));
|
|
142
155
|
}
|
|
143
156
|
static get is() { return "zonos-address"; }
|
|
144
157
|
static get encapsulation() { return "scoped"; }
|