@zonos/elements 1.3.12-alpha.0 → 1.3.12-alpha.2
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-fe91535c.js} +540 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sendErrorLog-fb356701.js +29 -0
- package/dist/cjs/{submitGtag-ec6ead54.js → submitGtag-62c97f6b.js} +1 -20
- package/dist/cjs/zonos-address_4.cjs.entry.js +46 -18
- 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 +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +27 -0
- package/dist/collection/components/store/translationStore/strings.base.js +27 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +27 -0
- package/dist/collection/components/store/translationStore/strings.french.js +27 -0
- package/dist/collection/components/store/translationStore/strings.german.js +27 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +27 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +27 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +27 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +27 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +27 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +27 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +41 -15
- package/dist/collection/components/utils/containsNonLatinChars.js +5 -1
- package/dist/components/sendErrorLog.js +21 -0
- package/dist/components/stripe.js +541 -1
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/zonos-address2.js +46 -16
- 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.js +1 -1
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/esm/{cart-228e1ef7.js → cart-53f5c10c.js} +540 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sendErrorLog-1c2f093d.js +26 -0
- package/dist/esm/{submitGtag-c3727595.js → submitGtag-d2658ed5.js} +2 -20
- package/dist/esm/zonos-address_4.entry.js +45 -17
- 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 +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/cart-53f5c10c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/sendErrorLog-1c2f093d.js +1 -0
- package/dist/esm-es5/submitGtag-d2658ed5.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/store/translationStore/strings.arabic.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +27 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +27 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -1
- package/dist/types/types/global.d.ts +1 -2
- package/dist/zonos-elements/{p-35c328ba.system.entry.js → p-09d7a0f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-67ff446b.system.entry.js → p-0cc5cfbd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-11f1b5fb.entry.js → p-125043b5.entry.js} +1 -1
- package/dist/zonos-elements/{p-55940b5a.system.entry.js → p-176f65e1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-19dbd8c2.entry.js +1 -0
- package/dist/zonos-elements/p-3555ce7c.system.js +1 -0
- package/dist/zonos-elements/p-4cc4aba3.system.js +1 -0
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-5d5c0fbf.entry.js → p-6f6850aa.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f662cf2.entry.js → p-7e6bc603.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac5aecca.entry.js → p-969f36b3.entry.js} +1 -1
- package/dist/zonos-elements/p-9f4b0222.system.entry.js +1 -0
- package/dist/zonos-elements/p-aa46e052.js +1 -0
- package/dist/zonos-elements/{p-5dbb80df.system.entry.js → p-ac576bd7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-30cd191f.entry.js → p-af17ec7f.entry.js} +1 -1
- package/dist/zonos-elements/{p-499d7f5d.system.entry.js → p-b6c83e0b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bc25e1aa.js +1 -0
- package/dist/zonos-elements/p-beb55ff1.js +1 -0
- package/dist/zonos-elements/{p-925ae524.entry.js → p-bece7adb.entry.js} +1 -1
- package/dist/zonos-elements/{p-0082c5be.system.entry.js → p-c30554b1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d24296a6.system.js +1 -0
- package/dist/zonos-elements/{p-14a2824f.entry.js → p-df6fd81f.entry.js} +1 -1
- package/dist/zonos-elements/{p-c815e8b4.system.entry.js → p-e9732f93.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7ff3a533.system.entry.js → p-ea1afd2d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d31e5fcc.entry.js → p-ecc72526.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f6f0581.system.entry.js → p-fd7ab92d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db1adc42.entry.js → p-ff32ea53.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-397d8268.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-93dafeea.system.entry.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
|
@@ -2,6 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { s as stripeStore, l as logError, a as localizationStore, t as translate } from './stripe.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore.js';
|
|
4
4
|
import { i as isCheckoutMobile } from './isCheckoutMobile.js';
|
|
5
|
+
import { s as sendErrorLog } from './sendErrorLog.js';
|
|
5
6
|
import { d as defineCustomElement$2 } from './zonos-banner2.js';
|
|
6
7
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
7
8
|
|
|
@@ -10,18 +11,31 @@ import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
|
10
11
|
* @returns an object with the same keys as the input object, and a boolean value indicating if the value contains non-latin characters
|
|
11
12
|
*/
|
|
12
13
|
const containsNonLatinChars = (params) => {
|
|
14
|
+
const specialCharacters = /[ʼˮ՚ߴߵ']{1}/u;
|
|
13
15
|
/**
|
|
14
16
|
* This regex matches any character that is not a latin character, punctuation, symbol, number, separator, control, or mark
|
|
15
17
|
* I limited the character found to 1 in the regex, so that we can return early if we find any non-latin character
|
|
16
18
|
**/
|
|
17
19
|
const nonLatinRegex = /[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;
|
|
18
|
-
const nonLatinValueList = Object.entries(params).reduce((prev, [key, value]) => nonLatinRegex.test(value)
|
|
20
|
+
const nonLatinValueList = Object.entries(params).reduce((prev, [key, value]) => nonLatinRegex.test(value) &&
|
|
21
|
+
// allow special characters like web apostrophe and quotation mark
|
|
22
|
+
!specialCharacters.test(value)
|
|
23
|
+
? Object.assign(Object.assign({}, prev), { [key]: true }) : prev, {});
|
|
19
24
|
return nonLatinValueList;
|
|
20
25
|
};
|
|
21
26
|
|
|
22
27
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:var(--amino-space-8)}";
|
|
23
28
|
const ZonosAddressStyle0 = zonosAddressCss;
|
|
24
29
|
|
|
30
|
+
const mappedFields = {
|
|
31
|
+
city: 'City',
|
|
32
|
+
country: 'Country',
|
|
33
|
+
line1: 'Address line 1',
|
|
34
|
+
line2: 'Address line 2',
|
|
35
|
+
name: 'Name',
|
|
36
|
+
postal_code: 'Postal code',
|
|
37
|
+
state: 'State',
|
|
38
|
+
};
|
|
25
39
|
const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends HTMLElement {
|
|
26
40
|
constructor() {
|
|
27
41
|
super();
|
|
@@ -31,7 +45,8 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
31
45
|
this.titleText = undefined;
|
|
32
46
|
this.defaultAddress = null;
|
|
33
47
|
this.stripe = window.Zonos.stripe;
|
|
34
|
-
this.
|
|
48
|
+
this.reportedInvalidCharacters = false;
|
|
49
|
+
this.invalidCharacterList = null;
|
|
35
50
|
this.isDirtyAddress = false;
|
|
36
51
|
}
|
|
37
52
|
getStripeAddressInstance() {
|
|
@@ -57,13 +72,9 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
57
72
|
stripeStore.stripeAddressEventData = event;
|
|
58
73
|
break;
|
|
59
74
|
}
|
|
60
|
-
const
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
if (hasInvalidCharacters) {
|
|
64
|
-
// no need to prefetch landed cost if the address contains invalid characters
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
75
|
+
const invalidCharacterList = this.checkInvalidCharacters(event);
|
|
76
|
+
this.invalidCharacterList = invalidCharacterList;
|
|
77
|
+
this.invalidCharacters.emit(!!invalidCharacterList);
|
|
67
78
|
}
|
|
68
79
|
updateAddressElement({ stripeAddressElement, type, }) {
|
|
69
80
|
if (type === 'shipping') {
|
|
@@ -76,7 +87,7 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
76
87
|
// Do nothing if the allowed character sets is ALL or the address is incomplete
|
|
77
88
|
if (!address.complete ||
|
|
78
89
|
zonosStore.checkoutSettings.allowedCharacterSets === 'ALL') {
|
|
79
|
-
return
|
|
90
|
+
return null;
|
|
80
91
|
}
|
|
81
92
|
const { address: addressValue, firstName, lastName, name } = address.value;
|
|
82
93
|
const { city, country, line1, line2, postal_code, state } = addressValue;
|
|
@@ -89,11 +100,29 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
89
100
|
postal_code,
|
|
90
101
|
state,
|
|
91
102
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
103
|
+
if (!Object.keys(invalidList).length) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
// send error event only once so we know what value is invalid
|
|
107
|
+
if (!this.reportedInvalidCharacters) {
|
|
108
|
+
this.reportedInvalidCharacters = true;
|
|
109
|
+
void sendErrorLog({
|
|
110
|
+
endpoint: 'NonLatinInput',
|
|
111
|
+
errors: Object.keys(invalidList).map(fieldName => {
|
|
112
|
+
var _a;
|
|
113
|
+
if (fieldName !== 'name') {
|
|
114
|
+
// trim all number so we don't send sensitive information
|
|
115
|
+
const trimmedAddress = (_a = addressValue[fieldName]) === null || _a === void 0 ? void 0 : _a.replace(/[\d\w]+/g, '');
|
|
116
|
+
return `Invalid character found ${fieldName}: "${trimmedAddress}"`;
|
|
117
|
+
}
|
|
118
|
+
const customerName = name || `${firstName} ${lastName}`;
|
|
119
|
+
const trimmedName = customerName.replace(/[\d\w]+/g, '');
|
|
120
|
+
return `Invalid character found ${fieldName}: "${trimmedName}"`;
|
|
121
|
+
}),
|
|
122
|
+
metadata: {},
|
|
123
|
+
});
|
|
95
124
|
}
|
|
96
|
-
return
|
|
125
|
+
return invalidList;
|
|
97
126
|
}
|
|
98
127
|
async watchInitStripe() {
|
|
99
128
|
var _a, _b;
|
|
@@ -192,7 +221,7 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
192
221
|
}
|
|
193
222
|
render() {
|
|
194
223
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
195
|
-
return (h(Host, { key: '
|
|
224
|
+
return (h(Host, { key: 'b1ad2f6c9c23e6411bf1adccdd34b3aa4f5250b1', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '786a733a44925a670393b72bf0ae3db5ba59f9a1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'b9d58cbc17abf5daf5d13ffdebc7485c3ac6457d', class: "zonos--address-component" }), this.invalidCharacterList && (h("zonos-banner", { bannerTitle: translate('Please resolve the following errors:'), intent: "error" }, Object.keys(this.invalidCharacterList).map(fieldName => (h("zonos-text", null, `- ${translate(mappedFields[fieldName])}: ${translate('only supports Latin characters (A-Z, a-z)')}`)))))));
|
|
196
225
|
}
|
|
197
226
|
get el() { return this; }
|
|
198
227
|
static get watchers() { return {
|
|
@@ -204,7 +233,8 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
204
233
|
"titleText": [1, "title-text"],
|
|
205
234
|
"defaultAddress": [16],
|
|
206
235
|
"stripe": [32],
|
|
207
|
-
"
|
|
236
|
+
"reportedInvalidCharacters": [32],
|
|
237
|
+
"invalidCharacterList": [32],
|
|
208
238
|
"isDirtyAddress": [32]
|
|
209
239
|
}, undefined, {
|
|
210
240
|
"stripe": ["watchInitStripe"]
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { h as handleFetch, r as stripeStoreReset, c as cartStore, s as stripeStore, u as stripeStoreRetrievePayment, t as translate } from './stripe.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore.js';
|
|
4
4
|
import { t as trackConversionEvent } from './trackConversionEvent.js';
|
|
5
5
|
import { g as getBorderRadius } from './getBorderRadius.js';
|
|
6
|
+
import { s as sendErrorLog } from './sendErrorLog.js';
|
|
6
7
|
import { s as submitGtag } from './submitGtag.js';
|
|
7
8
|
import { d as defineCustomElement$4 } from './zonos-button2.js';
|
|
8
9
|
import { d as defineCustomElement$3 } from './zonos-icon2.js';
|
|
@@ -19,24 +20,6 @@ const createCustomEvent = (eventName, detail) => {
|
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
23
|
-
const userAgentData = 'userAgentData' in window.navigator
|
|
24
|
-
? // userAgentData is not yet supported in all browsers
|
|
25
|
-
window.navigator.userAgentData
|
|
26
|
-
: null;
|
|
27
|
-
const errorObject = {
|
|
28
|
-
endpoint,
|
|
29
|
-
errors,
|
|
30
|
-
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
31
|
-
? userAgentData
|
|
32
|
-
: window.navigator.userAgent }, metadata),
|
|
33
|
-
};
|
|
34
|
-
void handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
|
|
35
|
-
body: errorObject,
|
|
36
|
-
method: 'POST',
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
|
|
40
23
|
const RemoveIcon = `<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
41
24
|
|
|
42
25
|
const SuccessIcon = `<svg color="var(--amino-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--amino-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
@@ -237,4 +220,4 @@ function defineCustomElement() {
|
|
|
237
220
|
} });
|
|
238
221
|
}
|
|
239
222
|
|
|
240
|
-
export { ZonosCheckoutFinish as Z, createCustomEvent as c, defineCustomElement as d
|
|
223
|
+
export { ZonosCheckoutFinish as Z, createCustomEvent as c, defineCustomElement as d };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as localizationStore, b as log, d as stripeStoreGetDomesticShippingSession, e as localizationStoreUpdateSelectedCountryCode, f as stripeStoreCleanupDomesticShippingSession, l as logError, g as stripeStoreSaveDomesticShippingSession, i as initStripeElements, c as cartStore,
|
|
2
|
+
import { a as localizationStore, b as log, d as stripeStoreGetDomesticShippingSession, e as localizationStoreUpdateSelectedCountryCode, f as stripeStoreCleanupDomesticShippingSession, l as logError, g as stripeStoreSaveDomesticShippingSession, i as initStripeElements, c as cartStore, j as cartStoreUpdateItems, k as cartStoreReset, s as stripeStore, m as stripeStoreInitCheckoutSession, n as cartStoreUpdateToErrorState, t as translate, o as stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreConfirmPayment, r as stripeStoreReset } from './stripe.js';
|
|
3
3
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore.js';
|
|
4
4
|
import { t as trackConversionEvent } from './trackConversionEvent.js';
|
|
5
5
|
import { i as isCheckoutMobile } from './isCheckoutMobile.js';
|
|
6
|
-
import { c as createCustomEvent,
|
|
6
|
+
import { c as createCustomEvent, d as defineCustomElement$l } from './zonos-checkout-finish2.js';
|
|
7
|
+
import { s as sendErrorLog } from './sendErrorLog.js';
|
|
7
8
|
import { c as classes } from './classes.js';
|
|
8
9
|
import { g as getBorderRadius } from './getBorderRadius.js';
|
|
9
10
|
import { i as isDarkColor } from './isDarkColor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { h as handleFetch, l as logError, y as isValidSelector, b as log, s as stripeStore, z as initLocalizationStore, e as localizationStoreUpdateSelectedCountryCode } from './stripe.js';
|
|
3
3
|
import { z as zonosStore, d as zonosStoreInitSetting, a as zonosStoreFontFamily } from './zonosStore.js';
|
|
4
4
|
import { d as defineCustomElement$3 } from './zonos-notification2.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './zonos-text2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore.js';
|
|
3
|
-
import {
|
|
3
|
+
import { h as handleFetch, l as logError, a as localizationStore, y as isValidSelector, t as translate, A as getZCountryUrlParam, B as setZCountryUrlParam, b as log, C as currencyDisplay, D as currencyConvertAndFormat, E as currencyConvert, F as currencyFormat } from './stripe.js';
|
|
4
4
|
import { c as classes } from './classes.js';
|
|
5
5
|
import { g as getHasMoreSpaceOnRight, d as defineCustomElement$9 } from './zonos-hello-dialog2.js';
|
|
6
6
|
import { d as defineCustomElement$f } from './zonos-banner2.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { s as stripeStore, l as logError,
|
|
2
|
+
import { s as stripeStore, l as logError, o as stripeStorePrefetchLandedCost } from './stripe.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
4
4
|
|
|
5
5
|
const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";
|