@zonos/elements 1.3.12-alpha.7 → 1.3.12-alpha.9
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-fe91535c.js → cart-37e23be9.js} +199 -3
- package/dist/cjs/{sendErrorLog-fb356701.js → sendErrorLog-7b3d82e4.js} +1 -1
- package/dist/cjs/{submitGtag-62c97f6b.js → submitGtag-d0718b63.js} +1 -1
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- 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-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 +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/store/translationStore.js +19 -3
- package/dist/collection/components/utils/logging/getNavigatorConnection.js +16 -0
- package/dist/collection/components/utils/logging/sendLoadScriptLog.js +2 -13
- package/dist/collection/types/generated/graphql.customer.types.js +3 -0
- package/dist/components/stripe.js +199 -3
- package/dist/components/zonos-hello-dialog2.js +89 -25
- package/dist/esm/{cart-53f5c10c.js → cart-7961927b.js} +199 -3
- package/dist/esm/{sendErrorLog-1c2f093d.js → sendErrorLog-4d9581da.js} +1 -1
- package/dist/esm/{submitGtag-d2658ed5.js → submitGtag-4c1f09dc.js} +1 -1
- package/dist/esm/zonos-address_4.entry.js +2 -2
- 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-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/{sendErrorLog-1c2f093d.js → sendErrorLog-4d9581da.js} +1 -1
- package/dist/esm-es5/{submitGtag-d2658ed5.js → submitGtag-4c1f09dc.js} +1 -1
- 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-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 +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/store/translationStore.d.ts +24 -1
- package/dist/types/components/utils/api/getCountryLandedCost.d.ts +10 -1
- package/dist/types/components/utils/logging/getNavigatorConnection.d.ts +8 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +16 -0
- package/dist/types/types/generated/graphql.customer.types.ts +28 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/assets/importIcon.svg +4 -0
- package/dist/zonos-elements/p-0bdac452.system.js +1 -0
- package/dist/zonos-elements/{p-beb55ff1.js → p-0c5d3595.js} +1 -1
- package/dist/zonos-elements/{p-6f6850aa.entry.js → p-2191b884.entry.js} +1 -1
- package/dist/zonos-elements/{p-c30554b1.system.entry.js → p-2da8e12a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0cc5cfbd.system.entry.js → p-339c505b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-969f36b3.entry.js → p-33f5634a.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e6bc603.entry.js → p-3eb402c8.entry.js} +1 -1
- package/dist/zonos-elements/{p-9f4b0222.system.entry.js → p-431648d8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-44842b39.system.entry.js +1 -0
- package/dist/zonos-elements/{p-df6fd81f.entry.js → p-44f4dd4b.entry.js} +1 -1
- package/dist/zonos-elements/{p-09d7a0f8.system.entry.js → p-4b3923d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-af17ec7f.entry.js → p-4eba3abe.entry.js} +1 -1
- package/dist/zonos-elements/p-5a3ceb49.entry.js +1 -0
- package/dist/zonos-elements/{p-bc25e1aa.js → p-63775f6d.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-fd7ab92d.system.entry.js → p-7efb9c12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac576bd7.system.entry.js → p-8eb876e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d24296a6.system.js → p-a6c9c505.system.js} +1 -1
- package/dist/zonos-elements/{p-e9732f93.system.entry.js → p-bdb72353.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b6c83e0b.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-bece7adb.entry.js → p-e1796e2a.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff32ea53.entry.js → p-e4919505.entry.js} +1 -1
- package/dist/zonos-elements/p-e4be7bd8.js +1 -0
- package/dist/zonos-elements/{p-ea1afd2d.system.entry.js → p-e5fd850c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19dbd8c2.entry.js → p-e90e2126.entry.js} +1 -1
- package/dist/zonos-elements/{p-125043b5.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/esm-es5/cart-53f5c10c.js +0 -1
- package/dist/zonos-elements/p-176f65e1.system.entry.js +0 -1
- package/dist/zonos-elements/p-3555ce7c.system.js +0 -1
- package/dist/zonos-elements/p-4cc4aba3.system.js +0 -1
- package/dist/zonos-elements/p-aa46e052.js +0 -1
- package/dist/zonos-elements/p-ecc72526.entry.js +0 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsPolish = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} VAT należny od każdego zamówienia powyżej ${threshold}, wraz z opłatą za transakcję wprowadzania importu i opłatą MPI.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} VAT należny od każdego zamówienia powyżej ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Powyżej progu minimis dla',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsPolish = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Łączna kwota zamówienia',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Zamówienia do ${countryName} muszą przekraczać ${threshold}, aby zostały wysłane.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Zapłać',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsPortuguese = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} de GST devido em qualquer pedido acima de ${threshold}, juntamente com uma taxa de transação de entrada de importação e cobrança de MPI.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} de GST devido em qualquer pedido acima de ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Acima do limite de isenção para',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsPortuguese = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Total do pedido',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Pedidos para ${countryName} devem ser acima de ${threshold} para serem enviados.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Pagar',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsRussian = {
|
|
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
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsRussian = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Итого',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Заказы в ${countryName} должны превышать ${threshold} для отправки.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Оплатить',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsSpanish = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} del IVA debido en cualquier pedido superior a ${threshold}, junto con una tarifa de transacción de entrada de importación y un gravamen MPI.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: 'El ${percentage} del IVA se debe en cualquier pedido superior a ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Por encima del umbral mínimo para',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsSpanish = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Total del pedido',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Los pedidos a ${countryName} deben superar los ${threshold} para ser enviados.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Pagar',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsSwedish = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} moms på varje beställning över ${threshold}, inklusive en importtransaktionsavgift och MPI-avgift.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} moms på varje beställning över ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Över minimibeloppet för',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsSwedish = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Totalt belopp för beställningen',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Beställningar till ${countryName} måste överstiga ${threshold} för att skickas.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Betala',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsTurkish = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${threshold} üzerindeki her sipariş için ${percentage} KDV, ithalat giriş işlem ücreti ve MPI vergisi ile birlikte ödenir.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${threshold} üzerindeki her sipariş için ${percentage} KDV ödenir.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Minimum sınırın üzerinde',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsTurkish = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Sipariş toplamı',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: '${countryName} ülkesine yapılacak siparişlerin ${threshold} üzerinde olması gerekir.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Öde',
|
|
97
106
|
},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const stringsVietnamese = {
|
|
2
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
+
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}, cùng với phí giao dịch nhập khẩu và thuế MPI.',
|
|
4
|
+
},
|
|
5
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
+
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}.',
|
|
7
|
+
},
|
|
2
8
|
'Above de minimis threshold for': {
|
|
3
9
|
value: 'Vượt ngưỡng miễn thuế đối với',
|
|
4
10
|
},
|
|
@@ -92,6 +98,9 @@ export const stringsVietnamese = {
|
|
|
92
98
|
'Order total': {
|
|
93
99
|
value: 'Tổng đơn hàng',
|
|
94
100
|
},
|
|
101
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
102
|
+
value: 'Đơn hàng đến ${countryName} phải trên ${threshold} mới được gửi.',
|
|
103
|
+
},
|
|
95
104
|
Pay: {
|
|
96
105
|
value: 'Thanh toán',
|
|
97
106
|
},
|
|
@@ -86,8 +86,24 @@ const translationStoreUpdateLanguage = (language) => {
|
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Translate a string with variables if variable pattern is present in the string
|
|
91
|
+
* @example
|
|
92
|
+
* // Require variables:
|
|
93
|
+
* translate('${percentage} GST due on any order above ${threshold}.', { percentage: '5%', threshold: '$100' })
|
|
94
|
+
* // No variables:
|
|
95
|
+
* translate('Above de minimis threshold for')
|
|
96
|
+
*/
|
|
97
|
+
const translate = (...[key, replacement]) => {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
if (replacement) {
|
|
100
|
+
// replace all variables in the string
|
|
101
|
+
let translatedString = ((_a = translationStore.translatedChunks[key]) === null || _a === void 0 ? void 0 : _a.value) || key;
|
|
102
|
+
Object.entries(replacement).forEach(([replacementKey, replaceValue]) => {
|
|
103
|
+
translatedString = translatedString.replace(new RegExp(`\\$\\{${replacementKey}\\}`, 'g'), replaceValue);
|
|
104
|
+
});
|
|
105
|
+
return translatedString;
|
|
106
|
+
}
|
|
107
|
+
return ((_b = translationStore.translatedChunks[key]) === null || _b === void 0 ? void 0 : _b.value) || key;
|
|
92
108
|
};
|
|
93
109
|
export { translate, translationStore, translationStoreUpdateLanguage };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const getNavigatorConnection = () => {
|
|
2
|
+
const connection = 'connection' in window.navigator
|
|
3
|
+
? // connection is not yet supported in all browsers
|
|
4
|
+
window.navigator.connection
|
|
5
|
+
: null;
|
|
6
|
+
const mozConnection = 'mozConnection' in window.navigator
|
|
7
|
+
? // mozConnection is not yet supported in all browsers
|
|
8
|
+
window.navigator.mozConnection
|
|
9
|
+
: null;
|
|
10
|
+
const webkitConnection = 'webkitConnection' in window.navigator
|
|
11
|
+
? // webkitConnection is not yet supported in all browsers
|
|
12
|
+
window.navigator.webkitConnection
|
|
13
|
+
: null;
|
|
14
|
+
const baseConnection = connection || mozConnection || webkitConnection;
|
|
15
|
+
return baseConnection;
|
|
16
|
+
};
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import { handleFetch } from "../handleFetch";
|
|
2
|
+
import { getNavigatorConnection } from "./getNavigatorConnection";
|
|
2
3
|
export const sendLoadScriptLog = async (params) => {
|
|
3
4
|
const userAgentData = 'userAgentData' in window.navigator
|
|
4
5
|
? // userAgentData is not yet supported in all browsers
|
|
5
6
|
window.navigator.userAgentData
|
|
6
7
|
: null;
|
|
7
|
-
const
|
|
8
|
-
? // connection is not yet supported in all browsers
|
|
9
|
-
window.navigator.connection
|
|
10
|
-
: null;
|
|
11
|
-
const mozConnection = 'mozConnection' in window.navigator
|
|
12
|
-
? // mozConnection is not yet supported in all browsers
|
|
13
|
-
window.navigator.mozConnection
|
|
14
|
-
: null;
|
|
15
|
-
const webkitConnection = 'webkitConnection' in window.navigator
|
|
16
|
-
? // webkitConnection is not yet supported in all browsers
|
|
17
|
-
window.navigator.webkitConnection
|
|
18
|
-
: null;
|
|
19
|
-
const baseConnection = connection || mozConnection || webkitConnection;
|
|
8
|
+
const baseConnection = getNavigatorConnection();
|
|
20
9
|
const scriptLoadLogBody = Object.assign(Object.assign({ href: window.location.href }, params), { metadata: Object.assign({ connectionDownlink: baseConnection === null || baseConnection === void 0 ? void 0 : baseConnection.downlink, connectionEffectiveType: baseConnection === null || baseConnection === void 0 ? void 0 : baseConnection.effectiveType, connectionRtt: baseConnection === null || baseConnection === void 0 ? void 0 : baseConnection.rtt, connectionSaveData: baseConnection === null || baseConnection === void 0 ? void 0 : baseConnection.saveData, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
21
10
|
? userAgentData
|
|
22
11
|
: window.navigator.userAgent }, params.metadata) });
|
|
@@ -2056,6 +2056,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2056
2056
|
GetOrders(variables, requestHeaders) {
|
|
2057
2057
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetOrders', 'query');
|
|
2058
2058
|
},
|
|
2059
|
+
GetTaxIdByCountry(variables, requestHeaders) {
|
|
2060
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetTaxIdByCountry', 'query');
|
|
2061
|
+
},
|
|
2059
2062
|
OnlineStoreSettings(variables, requestHeaders) {
|
|
2060
2063
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'OnlineStoreSettings', 'query');
|
|
2061
2064
|
},
|