@basis-theory/web-elements 2.11.1 → 3.0.0-beta.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/README.md +668 -2
- package/dist/.vite/manifest.json +27 -0
- package/dist/api-client/src/api-client.d.ts +11 -0
- package/dist/api-client/src/api-client.d.ts.map +1 -0
- package/dist/api-client/src/http-client.d.ts +24 -0
- package/dist/api-client/src/http-client.d.ts.map +1 -0
- package/dist/api-client/src/index.d.ts +9 -0
- package/dist/api-client/src/index.d.ts.map +1 -0
- package/dist/api-client/src/services/sessions.d.ts +19 -0
- package/dist/api-client/src/services/sessions.d.ts.map +1 -0
- package/dist/api-client/src/services/token-intents.d.ts +17 -0
- package/dist/api-client/src/services/token-intents.d.ts.map +1 -0
- package/dist/api-client/src/services/tokens.d.ts +19 -0
- package/dist/api-client/src/services/tokens.d.ts.map +1 -0
- package/dist/api-client/src/types.d.ts +313 -0
- package/dist/api-client/src/types.d.ts.map +1 -0
- package/dist/basis-theory-sdk.es.js +6 -0
- package/dist/basis-theory-sdk.es.js.map +1 -0
- package/dist/basis-theory-sdk.umd.js +1 -0
- package/dist/basis-theory-sdk.umd.js.map +1 -0
- package/dist/create-card-BuOvimjH.js +232 -0
- package/dist/create-card-BuOvimjH.js.map +1 -0
- package/dist/index-oREjBjga.js +2317 -0
- package/dist/index-oREjBjga.js.map +1 -0
- package/dist/loader/basis-theory.min.js +1 -0
- package/dist/postmessage/src/client.d.ts +7 -0
- package/dist/postmessage/src/client.d.ts.map +1 -0
- package/dist/postmessage/src/event-map.d.ts +135 -0
- package/dist/postmessage/src/event-map.d.ts.map +1 -0
- package/dist/postmessage/src/index.d.ts +9 -0
- package/dist/postmessage/src/index.d.ts.map +1 -0
- package/dist/postmessage/src/server.d.ts +11 -0
- package/dist/postmessage/src/server.d.ts.map +1 -0
- package/dist/postmessage/src/types.d.ts +71 -0
- package/dist/postmessage/src/types.d.ts.map +1 -0
- package/dist/shared/src/api-url-resolver.d.ts +22 -0
- package/dist/shared/src/api-url-resolver.d.ts.map +1 -0
- package/dist/shared/src/debug-logger.d.ts +16 -0
- package/dist/shared/src/debug-logger.d.ts.map +1 -0
- package/dist/shared/src/deep-sanitization.d.ts +24 -0
- package/dist/shared/src/deep-sanitization.d.ts.map +1 -0
- package/dist/shared/src/errors.d.ts +93 -0
- package/dist/shared/src/errors.d.ts.map +1 -0
- package/dist/shared/src/generate-id.d.ts +13 -0
- package/dist/shared/src/generate-id.d.ts.map +1 -0
- package/dist/shared/src/index.d.ts +13 -0
- package/dist/shared/src/index.d.ts.map +1 -0
- package/dist/shared/src/logger-context.d.ts +25 -0
- package/dist/shared/src/logger-context.d.ts.map +1 -0
- package/dist/sri.json +22 -0
- package/dist/stats.html +4949 -0
- package/dist/web-elements/src/BasisTheory.d.ts +47 -0
- package/dist/web-elements/src/BasisTheory.d.ts.map +1 -0
- package/dist/web-elements/src/basis-theory.d.ts +62 -0
- package/dist/web-elements/src/basis-theory.d.ts.map +1 -0
- package/dist/web-elements/src/elements/create-card-number.d.ts +14 -0
- package/dist/web-elements/src/elements/create-card-number.d.ts.map +1 -0
- package/dist/web-elements/src/elements/create-card.d.ts +37 -0
- package/dist/web-elements/src/elements/create-card.d.ts.map +1 -0
- package/dist/web-elements/src/elements/create-cvv.d.ts +10 -0
- package/dist/web-elements/src/elements/create-cvv.d.ts.map +1 -0
- package/dist/web-elements/src/elements/create-expiry.d.ts +10 -0
- package/dist/web-elements/src/elements/create-expiry.d.ts.map +1 -0
- package/dist/web-elements/src/elements/create-text.d.ts +13 -0
- package/dist/web-elements/src/elements/create-text.d.ts.map +1 -0
- package/dist/web-elements/src/index.d.ts +27 -0
- package/dist/web-elements/src/index.d.ts.map +1 -0
- package/dist/web-elements/src/mounter/create-mounter.d.ts +11 -0
- package/dist/web-elements/src/mounter/create-mounter.d.ts.map +1 -0
- package/dist/web-elements/src/theme/default-theme.d.ts +22 -0
- package/dist/web-elements/src/theme/default-theme.d.ts.map +1 -0
- package/dist/web-elements/src/theme/inject-theme-dark.d.ts +13 -0
- package/dist/web-elements/src/theme/inject-theme-dark.d.ts.map +1 -0
- package/dist/web-elements/src/theme/inject-theme.d.ts +20 -0
- package/dist/web-elements/src/theme/inject-theme.d.ts.map +1 -0
- package/dist/web-elements/src/types/events.d.ts +137 -0
- package/dist/web-elements/src/types/events.d.ts.map +1 -0
- package/dist/web-elements/src/types/theme.d.ts +91 -0
- package/dist/web-elements/src/types/theme.d.ts.map +1 -0
- package/dist/web-elements/src/types.d.ts +537 -0
- package/dist/web-elements/src/types.d.ts.map +1 -0
- package/dist/web-elements/src/utils/create-event-dispatcher.d.ts +47 -0
- package/dist/web-elements/src/utils/create-event-dispatcher.d.ts.map +1 -0
- package/dist/web-elements/src/utils/create-iframe.d.ts +10 -0
- package/dist/web-elements/src/utils/create-iframe.d.ts.map +1 -0
- package/dist/web-elements/src/utils/resolve-element-references.d.ts +20 -0
- package/dist/web-elements/src/utils/resolve-element-references.d.ts.map +1 -0
- package/dist/web-elements/src/utils/validate-element-options.d.ts +11 -0
- package/dist/web-elements/src/utils/validate-element-options.d.ts.map +1 -0
- package/dist/web-elements/src/utils/validate-sdk-config.d.ts +15 -0
- package/dist/web-elements/src/utils/validate-sdk-config.d.ts.map +1 -0
- package/dist/web-elements/src/utils/warn-unknown-keys.d.ts +15 -0
- package/dist/web-elements/src/utils/warn-unknown-keys.d.ts.map +1 -0
- package/dist/web-elements/src/version.d.ts +25 -0
- package/dist/web-elements/src/version.d.ts.map +1 -0
- package/package.json +53 -72
- package/LICENSE +0 -202
- package/dist/LICENSE +0 -202
- package/dist/README.md +0 -3
- package/dist/bundle/index.js +0 -1
- package/dist/main/index.js +0 -1160
- package/dist/module/module.js +0 -1158
- package/dist/package.json +0 -37
- package/dist/types/index.d.ts +0 -732
package/dist/main/index.js
DELETED
|
@@ -1,1160 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function $parcel$exportWildcard(dest, source) {
|
|
3
|
-
Object.keys(source).forEach(function(key) {
|
|
4
|
-
if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(dest, key, {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return source[key];
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
return dest;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function $parcel$export(e, n, v, s) {
|
|
20
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
21
|
-
}
|
|
22
|
-
var $316c9c8f85cead13$exports = {};
|
|
23
|
-
|
|
24
|
-
$parcel$export($316c9c8f85cead13$exports, "basistheory", () => $316c9c8f85cead13$export$cbe2892587230861);
|
|
25
|
-
const $fe2ec396f58502a3$export$af88d00dbe7f521 = (()=>{
|
|
26
|
-
const ddTok = 'pubb96b84a13912504f4354f2d794ea4fab';
|
|
27
|
-
let _disableTelemetry;
|
|
28
|
-
let _baseUrl;
|
|
29
|
-
const _log = async (message, level, attributes = {})=>{
|
|
30
|
-
if (_disableTelemetry) return;
|
|
31
|
-
let env;
|
|
32
|
-
if (!_baseUrl || _baseUrl?.includes('localhost')) env = 'local';
|
|
33
|
-
else if (_baseUrl.includes('dev')) env = 'dev';
|
|
34
|
-
else env = 'prod';
|
|
35
|
-
const payload = {
|
|
36
|
-
level: // dd info
|
|
37
|
-
level,
|
|
38
|
-
message: message,
|
|
39
|
-
// for basis theory tracking
|
|
40
|
-
service: 'web-elements-loader',
|
|
41
|
-
env: env,
|
|
42
|
-
// browser information
|
|
43
|
-
referrer: document?.referrer,
|
|
44
|
-
origin: window?.location.origin,
|
|
45
|
-
url: window?.location.href,
|
|
46
|
-
userAgent: navigator?.userAgent,
|
|
47
|
-
// custom values
|
|
48
|
-
...attributes
|
|
49
|
-
};
|
|
50
|
-
if ([
|
|
51
|
-
'local',
|
|
52
|
-
'dev'
|
|
53
|
-
].includes(env)) console.log(payload);
|
|
54
|
-
try {
|
|
55
|
-
await fetch(`https://http-intake.logs.datadoghq.com/v1/input/${ddTok}`, {
|
|
56
|
-
method: 'POST',
|
|
57
|
-
body: JSON.stringify(payload),
|
|
58
|
-
headers: {
|
|
59
|
-
'Content-Type': 'application/json'
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
} catch {
|
|
63
|
-
// eslint-disable-next-line no-console
|
|
64
|
-
console.warn('There was an error sending telemetry.');
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const disableTelemetry = (val)=>{
|
|
68
|
-
_disableTelemetry = val;
|
|
69
|
-
};
|
|
70
|
-
const setBaseUrl = (baseUrl)=>{
|
|
71
|
-
_baseUrl = baseUrl;
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
disableTelemetry: disableTelemetry,
|
|
75
|
-
setBaseUrl: setBaseUrl,
|
|
76
|
-
log: {
|
|
77
|
-
error: (message, attributes = {})=>_log(message, 'error', attributes),
|
|
78
|
-
info: (message, attributes = {})=>_log(message, 'info', attributes),
|
|
79
|
-
warn: (message, attributes = {})=>_log(message, 'warn', attributes)
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
})();
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class $3c527b4ad66b1eeb$export$925a29a6f046f0b5 extends Error {
|
|
86
|
-
constructor(message, details, /**
|
|
87
|
-
* @deprecated use {@link details}
|
|
88
|
-
*/ validation){
|
|
89
|
-
super(message), this.details = details, this.validation = validation;
|
|
90
|
-
this.name = 'BasisTheoryValidationError';
|
|
91
|
-
Object.setPrototypeOf(this, $3c527b4ad66b1eeb$export$925a29a6f046f0b5.prototype);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const $bf863f47081878c5$export$8ec0597b01ce7a1a = (domain)=>{
|
|
97
|
-
if (typeof domain !== 'string' || !domain.trim()) throw new Error('Custom domain must be a non-empty string.');
|
|
98
|
-
let url;
|
|
99
|
-
try {
|
|
100
|
-
url = new URL(domain.toLowerCase().startsWith('http') ? domain : `https://${domain}`);
|
|
101
|
-
} catch {
|
|
102
|
-
throw new (0, $3c527b4ad66b1eeb$export$925a29a6f046f0b5)(`Invalid custom domain: "${domain}"`, {});
|
|
103
|
-
}
|
|
104
|
-
if (url.protocol !== 'https:') throw new (0, $3c527b4ad66b1eeb$export$925a29a6f046f0b5)(`Custom domain must use HTTPS (got "${url.protocol}")`, {});
|
|
105
|
-
if (url.pathname !== '/' || url.search || url.hash) throw new (0, $3c527b4ad66b1eeb$export$925a29a6f046f0b5)(`Custom domain must not include path, query, or hash (got "${url.href}")`, {});
|
|
106
|
-
if (url.port) throw new (0, $3c527b4ad66b1eeb$export$925a29a6f046f0b5)(`Custom domain must not include a port (got ":${url.port}")`, {});
|
|
107
|
-
const hostRegex = /^(?=.{1,253}$)([a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/;
|
|
108
|
-
if (!hostRegex.test(url.hostname)) throw new (0, $3c527b4ad66b1eeb$export$925a29a6f046f0b5)(`Invalid hostname: "${url.hostname}"`, {});
|
|
109
|
-
return url.origin;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const $426651baf7085210$export$74dcf80d122cf64e = (url)=>{
|
|
114
|
-
const existingScript = document.querySelector(`script[src^="${url}"]`);
|
|
115
|
-
if (existingScript) return existingScript;
|
|
116
|
-
const parent = document.head || document.body;
|
|
117
|
-
if (!parent) throw new Error('No <head> or <body> elements found in the document.');
|
|
118
|
-
const script = Object.assign(document.createElement('script'), {
|
|
119
|
-
src: url
|
|
120
|
-
});
|
|
121
|
-
parent.append(script);
|
|
122
|
-
return script;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const $ef6e1b024b683770$export$6b1a35ff3caa965f = 'Tried to load BasisTheoryElements in a non-DOM environment.';
|
|
127
|
-
const $ef6e1b024b683770$export$e3797f3a93015b7b = 'Basis Theory Elements did not load properly. Check network tab for more details.';
|
|
128
|
-
const $ef6e1b024b683770$export$56e79dc97980170 = 'Unable to load the Elements script. This may be due to network restrictions or browser extensions like ad blockers interfering with script loading. Check browser settings or network connection and try again.';
|
|
129
|
-
const $ef6e1b024b683770$export$9fe15478e8fc6bac = 'Failed to deliver Elements script from Basis Theory. Check your network connection and try again or contact support@basistheory.com';
|
|
130
|
-
const $ef6e1b024b683770$export$51be6d94c4fcf45 = [
|
|
131
|
-
'accel',
|
|
132
|
-
'bancontact',
|
|
133
|
-
'cartes-bancaires',
|
|
134
|
-
'culiance',
|
|
135
|
-
'dankort',
|
|
136
|
-
'ebt',
|
|
137
|
-
'eftpos-australia',
|
|
138
|
-
'nyce',
|
|
139
|
-
'private-label',
|
|
140
|
-
'prop',
|
|
141
|
-
'pulse',
|
|
142
|
-
'rupay',
|
|
143
|
-
'star',
|
|
144
|
-
'uatp',
|
|
145
|
-
'korean-local',
|
|
146
|
-
'visa',
|
|
147
|
-
'mastercard',
|
|
148
|
-
'american-express',
|
|
149
|
-
'discover',
|
|
150
|
-
'diners-club',
|
|
151
|
-
'jcb',
|
|
152
|
-
'unionpay',
|
|
153
|
-
'maestro',
|
|
154
|
-
'elo',
|
|
155
|
-
'hiper',
|
|
156
|
-
'hipercard',
|
|
157
|
-
'mir',
|
|
158
|
-
'unknown'
|
|
159
|
-
];
|
|
160
|
-
const $ef6e1b024b683770$export$829c91d8f039f695 = [
|
|
161
|
-
'left',
|
|
162
|
-
'right',
|
|
163
|
-
'none'
|
|
164
|
-
];
|
|
165
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
166
|
-
const $ef6e1b024b683770$export$dea6ebbc92df4fa3 = [
|
|
167
|
-
'additional-name',
|
|
168
|
-
'address-level1',
|
|
169
|
-
'address-level2',
|
|
170
|
-
'address-level3',
|
|
171
|
-
'address-level4',
|
|
172
|
-
'address-line1',
|
|
173
|
-
'address-line2',
|
|
174
|
-
'address-line3',
|
|
175
|
-
'bday-day',
|
|
176
|
-
'bday-month',
|
|
177
|
-
'bday-year',
|
|
178
|
-
'bday',
|
|
179
|
-
'billing',
|
|
180
|
-
'cc-additional-name',
|
|
181
|
-
'cc-csc',
|
|
182
|
-
'cc-exp-month',
|
|
183
|
-
'cc-exp-year',
|
|
184
|
-
'cc-exp',
|
|
185
|
-
'cc-family-name',
|
|
186
|
-
'cc-given-name',
|
|
187
|
-
'cc-name',
|
|
188
|
-
'cc-number',
|
|
189
|
-
'cc-type',
|
|
190
|
-
'country-name',
|
|
191
|
-
'country',
|
|
192
|
-
'current-password',
|
|
193
|
-
'email',
|
|
194
|
-
'family-name',
|
|
195
|
-
'fax',
|
|
196
|
-
'given-name',
|
|
197
|
-
'home',
|
|
198
|
-
'honorific-prefix',
|
|
199
|
-
'honorific-suffix',
|
|
200
|
-
'language',
|
|
201
|
-
'mobile',
|
|
202
|
-
'name',
|
|
203
|
-
'new-password',
|
|
204
|
-
'nickname',
|
|
205
|
-
'off',
|
|
206
|
-
'on',
|
|
207
|
-
'one-time-code',
|
|
208
|
-
'organization-title',
|
|
209
|
-
'organization',
|
|
210
|
-
'page',
|
|
211
|
-
'postal-code',
|
|
212
|
-
'sex',
|
|
213
|
-
'shipping',
|
|
214
|
-
'street-address',
|
|
215
|
-
'tel-area-code',
|
|
216
|
-
'tel-country-code',
|
|
217
|
-
'tel-extension',
|
|
218
|
-
'tel-local-prefix',
|
|
219
|
-
'tel-local-suffix',
|
|
220
|
-
'tel-local',
|
|
221
|
-
'tel-national',
|
|
222
|
-
'tel',
|
|
223
|
-
'transaction-amount',
|
|
224
|
-
'transaction-currency',
|
|
225
|
-
'url',
|
|
226
|
-
'username',
|
|
227
|
-
'work'
|
|
228
|
-
];
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
let $6477b722f43d24f2$var$elementsPromise;
|
|
234
|
-
const $6477b722f43d24f2$var$loadScript = (url, retryCount)=>new Promise((resolve, reject)=>{
|
|
235
|
-
let script = (0, $426651baf7085210$export$74dcf80d122cf64e)(url);
|
|
236
|
-
// flag to prevent double rejection (if somehow script was not removed)
|
|
237
|
-
let isSettled = false;
|
|
238
|
-
// script load success
|
|
239
|
-
script.addEventListener('load', ()=>{
|
|
240
|
-
if (window.BasisTheoryElements) resolve(window.BasisTheoryElements);
|
|
241
|
-
else {
|
|
242
|
-
(async ()=>{
|
|
243
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error('Elements not found on window on load', {
|
|
244
|
-
logType: 'elementsNotFoundOnWindow',
|
|
245
|
-
logOrigin: 'loadScript',
|
|
246
|
-
retryCount: retryCount
|
|
247
|
-
});
|
|
248
|
-
})();
|
|
249
|
-
reject(new Error((0, $ef6e1b024b683770$export$e3797f3a93015b7b)));
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
// script error event
|
|
253
|
-
script.addEventListener('error', async (event)=>{
|
|
254
|
-
if (isSettled) return;
|
|
255
|
-
isSettled = true;
|
|
256
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error('Elements script onError event', {
|
|
257
|
-
logType: 'elementsScriptOnError',
|
|
258
|
-
logOrigin: 'loadScript',
|
|
259
|
-
retryCount: retryCount,
|
|
260
|
-
event: {
|
|
261
|
-
message: event?.message,
|
|
262
|
-
source: event?.filename,
|
|
263
|
-
lineno: event?.lineno,
|
|
264
|
-
colno: event?.colno,
|
|
265
|
-
error: event?.error,
|
|
266
|
-
target: event?.target
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
// remove from dom to avoid duplicates
|
|
270
|
-
try {
|
|
271
|
-
script?.remove();
|
|
272
|
-
} catch (error) {
|
|
273
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error(`Error removing script from DOM on retry attempt ${retryCount}`, {
|
|
274
|
-
logType: 'scriptRemovalError',
|
|
275
|
-
logOrigin: 'loadScript',
|
|
276
|
-
retryCount: retryCount,
|
|
277
|
-
removalError: error
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
// retry 1x if first attempt
|
|
281
|
-
if (retryCount === 0) {
|
|
282
|
-
$6477b722f43d24f2$var$loadScript(url, retryCount + 1).then(resolve).catch(reject);
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
// second attempt has failed: try fetching the script to inspect the response
|
|
286
|
-
try {
|
|
287
|
-
const response = await fetch(url);
|
|
288
|
-
if (!response.ok) {
|
|
289
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error(`Second attempt to load elements script failed, fetch failed with status: ${response.status}.`, {
|
|
290
|
-
logType: 'elementsScriptFetchFailure',
|
|
291
|
-
logOrigin: 'loadScript',
|
|
292
|
-
retryCount: retryCount,
|
|
293
|
-
fetchResult: 'error',
|
|
294
|
-
fetchResponse: response
|
|
295
|
-
});
|
|
296
|
-
reject(new Error((0, $ef6e1b024b683770$export$6b1a35ff3caa965f)));
|
|
297
|
-
} else {
|
|
298
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error(`Second attempt to load elements script failed, fetch success`, {
|
|
299
|
-
logType: 'elementsScriptFetchFailure',
|
|
300
|
-
logOrigin: 'loadScript',
|
|
301
|
-
retryCount: retryCount,
|
|
302
|
-
fetchResult: 'success',
|
|
303
|
-
fetchResponse: response
|
|
304
|
-
});
|
|
305
|
-
reject(new Error((0, $ef6e1b024b683770$export$56e79dc97980170)));
|
|
306
|
-
}
|
|
307
|
-
} catch (error) {
|
|
308
|
-
// fetch also failed
|
|
309
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.error('Second attempt failed to load elements script failed, fetch network error.', {
|
|
310
|
-
logType: 'elementsScriptFetchError',
|
|
311
|
-
logOrigin: 'loadScript',
|
|
312
|
-
retryCount: retryCount,
|
|
313
|
-
fetchResult: 'error',
|
|
314
|
-
fetchError: error
|
|
315
|
-
});
|
|
316
|
-
reject(new Error((0, $ef6e1b024b683770$export$56e79dc97980170)));
|
|
317
|
-
}
|
|
318
|
-
// ultimately reject with browser message
|
|
319
|
-
reject(event?.error || event?.message || new Error((0, $ef6e1b024b683770$export$56e79dc97980170)));
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
const $6477b722f43d24f2$export$2b0a6e5a1c78018f = (elementsUrl)=>{
|
|
323
|
-
if (!$6477b722f43d24f2$var$elementsPromise) $6477b722f43d24f2$var$elementsPromise = new Promise((resolve, reject)=>{
|
|
324
|
-
if (typeof window !== 'object') {
|
|
325
|
-
(async ()=>{
|
|
326
|
-
await (0, $fe2ec396f58502a3$export$af88d00dbe7f521).log.warn((0, $ef6e1b024b683770$export$6b1a35ff3caa965f), {
|
|
327
|
-
logType: 'elementsNonDomError',
|
|
328
|
-
logOrigin: 'loadElements'
|
|
329
|
-
});
|
|
330
|
-
reject(new Error((0, $ef6e1b024b683770$export$6b1a35ff3caa965f)));
|
|
331
|
-
})();
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
if (window.BasisTheoryElements) {
|
|
335
|
-
resolve(window.BasisTheoryElements);
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
const url = new URL(elementsUrl).toString().replace(/\/$/u, '');
|
|
339
|
-
$6477b722f43d24f2$var$loadScript(url, 0).then(resolve).catch((error)=>{
|
|
340
|
-
reject(error);
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
return $6477b722f43d24f2$var$elementsPromise;
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
// Build-time generated URLs for regular deployment
|
|
350
|
-
const $5dbc1ef1648671b0$export$67c92c3b857d033a = null;
|
|
351
|
-
const $5dbc1ef1648671b0$export$9c5c779c8690dca6 = null;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
// Auto-generated version file
|
|
355
|
-
const $eef42ce81412d9ae$export$83d89fbfd8236492 = '2.11.1';
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const $316c9c8f85cead13$var$TEST_ORIGIN = 'https://js.flock-dev.com';
|
|
359
|
-
const $316c9c8f85cead13$var$DEFAULT_ORIGIN = 'https://js.basistheory.com';
|
|
360
|
-
const $316c9c8f85cead13$var$resolveUrls = (options)=>{
|
|
361
|
-
if (options?._devMode && options?.customDomain) console.warn('Dev mode and domain whitelabeling are both enabled - dev mode takes precedence.');
|
|
362
|
-
let origin;
|
|
363
|
-
if (options?._devMode) origin = $316c9c8f85cead13$var$TEST_ORIGIN;
|
|
364
|
-
else if (options?.customDomain) origin = (0, $bf863f47081878c5$export$8ec0597b01ce7a1a)(options.customDomain);
|
|
365
|
-
else origin = $316c9c8f85cead13$var$DEFAULT_ORIGIN;
|
|
366
|
-
const base = `${origin}/web-elements/${(0, $eef42ce81412d9ae$export$83d89fbfd8236492)}`;
|
|
367
|
-
const client = `${base}/client/index.js`;
|
|
368
|
-
const hosted = `${base}/hosted-elements/`;
|
|
369
|
-
if (options?.customDomain && !options._devMode) return {
|
|
370
|
-
origin: origin,
|
|
371
|
-
clientJsUrl: client,
|
|
372
|
-
hostedElementsBaseUrl: hosted
|
|
373
|
-
};
|
|
374
|
-
return {
|
|
375
|
-
origin: origin,
|
|
376
|
-
clientJsUrl: (0, $5dbc1ef1648671b0$export$67c92c3b857d033a) ?? client,
|
|
377
|
-
hostedElementsBaseUrl: (0, $5dbc1ef1648671b0$export$9c5c779c8690dca6) ?? hosted
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
const $316c9c8f85cead13$export$cbe2892587230861 = async (apiKey, options)=>{
|
|
381
|
-
if (!apiKey || apiKey.length === 0) throw new Error('API key is required');
|
|
382
|
-
const { origin: origin, clientJsUrl: clientJsUrl, hostedElementsBaseUrl: hostedElementsBaseUrl } = $316c9c8f85cead13$var$resolveUrls(options);
|
|
383
|
-
(0, $fe2ec396f58502a3$export$af88d00dbe7f521).setBaseUrl(origin);
|
|
384
|
-
(0, $fe2ec396f58502a3$export$af88d00dbe7f521).disableTelemetry(Boolean(options?.disableTelemetry));
|
|
385
|
-
const elements = await (0, $6477b722f43d24f2$export$2b0a6e5a1c78018f)(clientJsUrl);
|
|
386
|
-
return elements.init(apiKey, hostedElementsBaseUrl, false, options?.useSameOriginApi ?? true, options?.disableTelemetry ?? false, options?.debug ?? false, options?.environment ?? 'production', options?.useNetworkCheck ?? false, options?.customDomain ? origin : undefined);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
var $001f46d7c9d998c1$exports = {};
|
|
391
|
-
|
|
392
|
-
$parcel$export($001f46d7c9d998c1$exports, "AUTOCOMPLETE_VALUES", () => $ef6e1b024b683770$export$dea6ebbc92df4fa3);
|
|
393
|
-
$parcel$export($001f46d7c9d998c1$exports, "CARD_BRANDS", () => $ef6e1b024b683770$export$51be6d94c4fcf45);
|
|
394
|
-
$parcel$export($001f46d7c9d998c1$exports, "CARD_ICON_POSITIONS", () => $ef6e1b024b683770$export$829c91d8f039f695);
|
|
395
|
-
var $94e2e5607fad631e$exports = {};
|
|
396
|
-
var $eb72fa80cc6cce99$exports = {};
|
|
397
|
-
|
|
398
|
-
$parcel$export($eb72fa80cc6cce99$exports, "VISA", () => $eb72fa80cc6cce99$export$1748c2651c2c6e25);
|
|
399
|
-
$parcel$export($eb72fa80cc6cce99$exports, "MASTERCARD", () => $eb72fa80cc6cce99$export$1c604828de4cf9cf);
|
|
400
|
-
$parcel$export($eb72fa80cc6cce99$exports, "AMERICAN_EXPRESS", () => $eb72fa80cc6cce99$export$67c5e4e99638ee87);
|
|
401
|
-
$parcel$export($eb72fa80cc6cce99$exports, "DINERS_CLUB", () => $eb72fa80cc6cce99$export$fcf88132c9601d5d);
|
|
402
|
-
$parcel$export($eb72fa80cc6cce99$exports, "DISCOVER", () => $eb72fa80cc6cce99$export$27b2e48e28163360);
|
|
403
|
-
$parcel$export($eb72fa80cc6cce99$exports, "JCB", () => $eb72fa80cc6cce99$export$bf30f1ca7b266454);
|
|
404
|
-
$parcel$export($eb72fa80cc6cce99$exports, "UNION_PAY", () => $eb72fa80cc6cce99$export$8ed8e9ea6bbca19f);
|
|
405
|
-
$parcel$export($eb72fa80cc6cce99$exports, "MAESTRO", () => $eb72fa80cc6cce99$export$f08651c87c943e8);
|
|
406
|
-
$parcel$export($eb72fa80cc6cce99$exports, "ELO", () => $eb72fa80cc6cce99$export$c4b8f606caaecf2c);
|
|
407
|
-
$parcel$export($eb72fa80cc6cce99$exports, "MIR", () => $eb72fa80cc6cce99$export$58f9d4150439d06e);
|
|
408
|
-
$parcel$export($eb72fa80cc6cce99$exports, "HIPER", () => $eb72fa80cc6cce99$export$8f50e2757841117b);
|
|
409
|
-
$parcel$export($eb72fa80cc6cce99$exports, "HIPERCARD", () => $eb72fa80cc6cce99$export$adb072c9761d9e59);
|
|
410
|
-
$parcel$export($eb72fa80cc6cce99$exports, "DEFAULT_CARD_TYPES", () => $eb72fa80cc6cce99$export$35b475386df8059d);
|
|
411
|
-
const $eb72fa80cc6cce99$export$1748c2651c2c6e25 = {
|
|
412
|
-
niceType: 'Visa',
|
|
413
|
-
type: 'visa',
|
|
414
|
-
patterns: [
|
|
415
|
-
4
|
|
416
|
-
],
|
|
417
|
-
gaps: [
|
|
418
|
-
4,
|
|
419
|
-
8,
|
|
420
|
-
12
|
|
421
|
-
],
|
|
422
|
-
lengths: [
|
|
423
|
-
16,
|
|
424
|
-
18,
|
|
425
|
-
19
|
|
426
|
-
],
|
|
427
|
-
code: {
|
|
428
|
-
name: 'CVV',
|
|
429
|
-
size: 3
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
const $eb72fa80cc6cce99$export$1c604828de4cf9cf = {
|
|
433
|
-
niceType: 'Mastercard',
|
|
434
|
-
type: 'mastercard',
|
|
435
|
-
patterns: [
|
|
436
|
-
[
|
|
437
|
-
51,
|
|
438
|
-
55
|
|
439
|
-
],
|
|
440
|
-
[
|
|
441
|
-
2221,
|
|
442
|
-
2229
|
|
443
|
-
],
|
|
444
|
-
[
|
|
445
|
-
223,
|
|
446
|
-
229
|
|
447
|
-
],
|
|
448
|
-
[
|
|
449
|
-
23,
|
|
450
|
-
26
|
|
451
|
-
],
|
|
452
|
-
[
|
|
453
|
-
270,
|
|
454
|
-
271
|
|
455
|
-
],
|
|
456
|
-
2720
|
|
457
|
-
],
|
|
458
|
-
gaps: [
|
|
459
|
-
4,
|
|
460
|
-
8,
|
|
461
|
-
12
|
|
462
|
-
],
|
|
463
|
-
lengths: [
|
|
464
|
-
16
|
|
465
|
-
],
|
|
466
|
-
code: {
|
|
467
|
-
name: 'CVC',
|
|
468
|
-
size: 3
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
const $eb72fa80cc6cce99$export$67c5e4e99638ee87 = {
|
|
472
|
-
niceType: 'American Express',
|
|
473
|
-
type: 'american-express',
|
|
474
|
-
patterns: [
|
|
475
|
-
34,
|
|
476
|
-
37
|
|
477
|
-
],
|
|
478
|
-
gaps: [
|
|
479
|
-
4,
|
|
480
|
-
10
|
|
481
|
-
],
|
|
482
|
-
lengths: [
|
|
483
|
-
15
|
|
484
|
-
],
|
|
485
|
-
code: {
|
|
486
|
-
name: 'CID',
|
|
487
|
-
size: 4
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
const $eb72fa80cc6cce99$export$fcf88132c9601d5d = {
|
|
491
|
-
niceType: 'Diners Club',
|
|
492
|
-
type: 'diners-club',
|
|
493
|
-
patterns: [
|
|
494
|
-
[
|
|
495
|
-
300,
|
|
496
|
-
305
|
|
497
|
-
],
|
|
498
|
-
36,
|
|
499
|
-
38,
|
|
500
|
-
39
|
|
501
|
-
],
|
|
502
|
-
gaps: [
|
|
503
|
-
4,
|
|
504
|
-
10
|
|
505
|
-
],
|
|
506
|
-
lengths: [
|
|
507
|
-
14,
|
|
508
|
-
16,
|
|
509
|
-
19
|
|
510
|
-
],
|
|
511
|
-
code: {
|
|
512
|
-
name: 'CVV',
|
|
513
|
-
size: 3
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
const $eb72fa80cc6cce99$export$27b2e48e28163360 = {
|
|
517
|
-
niceType: 'Discover',
|
|
518
|
-
type: 'discover',
|
|
519
|
-
patterns: [
|
|
520
|
-
6011,
|
|
521
|
-
[
|
|
522
|
-
644,
|
|
523
|
-
649
|
|
524
|
-
],
|
|
525
|
-
65
|
|
526
|
-
],
|
|
527
|
-
gaps: [
|
|
528
|
-
4,
|
|
529
|
-
8,
|
|
530
|
-
12
|
|
531
|
-
],
|
|
532
|
-
lengths: [
|
|
533
|
-
16,
|
|
534
|
-
19
|
|
535
|
-
],
|
|
536
|
-
code: {
|
|
537
|
-
name: 'CID',
|
|
538
|
-
size: 3
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
const $eb72fa80cc6cce99$export$bf30f1ca7b266454 = {
|
|
542
|
-
niceType: 'JCB',
|
|
543
|
-
type: 'jcb',
|
|
544
|
-
patterns: [
|
|
545
|
-
2131,
|
|
546
|
-
1800,
|
|
547
|
-
[
|
|
548
|
-
3528,
|
|
549
|
-
3589
|
|
550
|
-
]
|
|
551
|
-
],
|
|
552
|
-
gaps: [
|
|
553
|
-
4,
|
|
554
|
-
8,
|
|
555
|
-
12
|
|
556
|
-
],
|
|
557
|
-
lengths: [
|
|
558
|
-
16,
|
|
559
|
-
17,
|
|
560
|
-
18,
|
|
561
|
-
19
|
|
562
|
-
],
|
|
563
|
-
code: {
|
|
564
|
-
name: 'CVV',
|
|
565
|
-
size: 3
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
const $eb72fa80cc6cce99$export$8ed8e9ea6bbca19f = {
|
|
569
|
-
niceType: 'UnionPay',
|
|
570
|
-
type: 'unionpay',
|
|
571
|
-
patterns: [
|
|
572
|
-
620,
|
|
573
|
-
[
|
|
574
|
-
62100,
|
|
575
|
-
62182
|
|
576
|
-
],
|
|
577
|
-
[
|
|
578
|
-
62184,
|
|
579
|
-
62187
|
|
580
|
-
],
|
|
581
|
-
[
|
|
582
|
-
62185,
|
|
583
|
-
62197
|
|
584
|
-
],
|
|
585
|
-
[
|
|
586
|
-
62200,
|
|
587
|
-
62205
|
|
588
|
-
],
|
|
589
|
-
[
|
|
590
|
-
622010,
|
|
591
|
-
622999
|
|
592
|
-
],
|
|
593
|
-
622018,
|
|
594
|
-
[
|
|
595
|
-
62207,
|
|
596
|
-
62209
|
|
597
|
-
],
|
|
598
|
-
[
|
|
599
|
-
623,
|
|
600
|
-
626
|
|
601
|
-
],
|
|
602
|
-
6270,
|
|
603
|
-
6272,
|
|
604
|
-
6276,
|
|
605
|
-
[
|
|
606
|
-
627700,
|
|
607
|
-
627779
|
|
608
|
-
],
|
|
609
|
-
[
|
|
610
|
-
627781,
|
|
611
|
-
627799
|
|
612
|
-
],
|
|
613
|
-
[
|
|
614
|
-
6282,
|
|
615
|
-
6289
|
|
616
|
-
],
|
|
617
|
-
6291,
|
|
618
|
-
6292,
|
|
619
|
-
810,
|
|
620
|
-
[
|
|
621
|
-
8110,
|
|
622
|
-
8131
|
|
623
|
-
],
|
|
624
|
-
[
|
|
625
|
-
8132,
|
|
626
|
-
8151
|
|
627
|
-
],
|
|
628
|
-
[
|
|
629
|
-
8152,
|
|
630
|
-
8163
|
|
631
|
-
],
|
|
632
|
-
[
|
|
633
|
-
8164,
|
|
634
|
-
8171
|
|
635
|
-
]
|
|
636
|
-
],
|
|
637
|
-
gaps: [
|
|
638
|
-
4,
|
|
639
|
-
8,
|
|
640
|
-
12
|
|
641
|
-
],
|
|
642
|
-
lengths: [
|
|
643
|
-
14,
|
|
644
|
-
15,
|
|
645
|
-
16,
|
|
646
|
-
17,
|
|
647
|
-
18,
|
|
648
|
-
19
|
|
649
|
-
],
|
|
650
|
-
code: {
|
|
651
|
-
name: 'CVN',
|
|
652
|
-
size: 3
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
const $eb72fa80cc6cce99$export$f08651c87c943e8 = {
|
|
656
|
-
niceType: 'Maestro',
|
|
657
|
-
type: 'maestro',
|
|
658
|
-
patterns: [
|
|
659
|
-
493698,
|
|
660
|
-
[
|
|
661
|
-
500000,
|
|
662
|
-
504174
|
|
663
|
-
],
|
|
664
|
-
[
|
|
665
|
-
504176,
|
|
666
|
-
506698
|
|
667
|
-
],
|
|
668
|
-
[
|
|
669
|
-
506779,
|
|
670
|
-
508999
|
|
671
|
-
],
|
|
672
|
-
[
|
|
673
|
-
56,
|
|
674
|
-
59
|
|
675
|
-
],
|
|
676
|
-
63,
|
|
677
|
-
67,
|
|
678
|
-
6
|
|
679
|
-
],
|
|
680
|
-
gaps: [
|
|
681
|
-
4,
|
|
682
|
-
8,
|
|
683
|
-
12
|
|
684
|
-
],
|
|
685
|
-
lengths: [
|
|
686
|
-
12,
|
|
687
|
-
13,
|
|
688
|
-
14,
|
|
689
|
-
15,
|
|
690
|
-
16,
|
|
691
|
-
17,
|
|
692
|
-
18,
|
|
693
|
-
19
|
|
694
|
-
],
|
|
695
|
-
code: {
|
|
696
|
-
name: 'CVC',
|
|
697
|
-
size: 3
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
const $eb72fa80cc6cce99$export$c4b8f606caaecf2c = {
|
|
701
|
-
niceType: 'Elo',
|
|
702
|
-
type: 'elo',
|
|
703
|
-
patterns: [
|
|
704
|
-
401178,
|
|
705
|
-
401179,
|
|
706
|
-
438935,
|
|
707
|
-
457631,
|
|
708
|
-
457632,
|
|
709
|
-
431274,
|
|
710
|
-
451416,
|
|
711
|
-
457393,
|
|
712
|
-
504175,
|
|
713
|
-
[
|
|
714
|
-
506699,
|
|
715
|
-
506778
|
|
716
|
-
],
|
|
717
|
-
[
|
|
718
|
-
509000,
|
|
719
|
-
509999
|
|
720
|
-
],
|
|
721
|
-
627780,
|
|
722
|
-
636297,
|
|
723
|
-
636368,
|
|
724
|
-
[
|
|
725
|
-
650031,
|
|
726
|
-
650033
|
|
727
|
-
],
|
|
728
|
-
[
|
|
729
|
-
650035,
|
|
730
|
-
650051
|
|
731
|
-
],
|
|
732
|
-
[
|
|
733
|
-
650405,
|
|
734
|
-
650439
|
|
735
|
-
],
|
|
736
|
-
[
|
|
737
|
-
650485,
|
|
738
|
-
650538
|
|
739
|
-
],
|
|
740
|
-
[
|
|
741
|
-
650541,
|
|
742
|
-
650598
|
|
743
|
-
],
|
|
744
|
-
[
|
|
745
|
-
650700,
|
|
746
|
-
650718
|
|
747
|
-
],
|
|
748
|
-
[
|
|
749
|
-
650720,
|
|
750
|
-
650727
|
|
751
|
-
],
|
|
752
|
-
[
|
|
753
|
-
650901,
|
|
754
|
-
650978
|
|
755
|
-
],
|
|
756
|
-
[
|
|
757
|
-
651652,
|
|
758
|
-
651679
|
|
759
|
-
],
|
|
760
|
-
[
|
|
761
|
-
655000,
|
|
762
|
-
655019
|
|
763
|
-
],
|
|
764
|
-
[
|
|
765
|
-
655021,
|
|
766
|
-
655058
|
|
767
|
-
]
|
|
768
|
-
],
|
|
769
|
-
gaps: [
|
|
770
|
-
4,
|
|
771
|
-
8,
|
|
772
|
-
12
|
|
773
|
-
],
|
|
774
|
-
lengths: [
|
|
775
|
-
16
|
|
776
|
-
],
|
|
777
|
-
code: {
|
|
778
|
-
name: 'CVE',
|
|
779
|
-
size: 3
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
|
-
const $eb72fa80cc6cce99$export$58f9d4150439d06e = {
|
|
783
|
-
niceType: 'Mir',
|
|
784
|
-
type: 'mir',
|
|
785
|
-
patterns: [
|
|
786
|
-
[
|
|
787
|
-
2200,
|
|
788
|
-
2204
|
|
789
|
-
]
|
|
790
|
-
],
|
|
791
|
-
gaps: [
|
|
792
|
-
4,
|
|
793
|
-
8,
|
|
794
|
-
12
|
|
795
|
-
],
|
|
796
|
-
lengths: [
|
|
797
|
-
16,
|
|
798
|
-
17,
|
|
799
|
-
18,
|
|
800
|
-
19
|
|
801
|
-
],
|
|
802
|
-
code: {
|
|
803
|
-
name: 'CVP2',
|
|
804
|
-
size: 3
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const $eb72fa80cc6cce99$export$8f50e2757841117b = {
|
|
808
|
-
niceType: 'Hiper',
|
|
809
|
-
type: 'hiper',
|
|
810
|
-
patterns: [
|
|
811
|
-
637095,
|
|
812
|
-
63737423,
|
|
813
|
-
63743358,
|
|
814
|
-
637568,
|
|
815
|
-
637599,
|
|
816
|
-
637609,
|
|
817
|
-
637612
|
|
818
|
-
],
|
|
819
|
-
gaps: [
|
|
820
|
-
4,
|
|
821
|
-
8,
|
|
822
|
-
12
|
|
823
|
-
],
|
|
824
|
-
lengths: [
|
|
825
|
-
16
|
|
826
|
-
],
|
|
827
|
-
code: {
|
|
828
|
-
name: 'CVC',
|
|
829
|
-
size: 3
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
const $eb72fa80cc6cce99$export$adb072c9761d9e59 = {
|
|
833
|
-
niceType: 'Hipercard',
|
|
834
|
-
type: 'hipercard',
|
|
835
|
-
patterns: [
|
|
836
|
-
606282
|
|
837
|
-
],
|
|
838
|
-
gaps: [
|
|
839
|
-
4,
|
|
840
|
-
8,
|
|
841
|
-
12
|
|
842
|
-
],
|
|
843
|
-
lengths: [
|
|
844
|
-
16
|
|
845
|
-
],
|
|
846
|
-
code: {
|
|
847
|
-
name: 'CVC',
|
|
848
|
-
size: 3
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
const $eb72fa80cc6cce99$export$35b475386df8059d = [
|
|
852
|
-
$eb72fa80cc6cce99$export$1748c2651c2c6e25,
|
|
853
|
-
$eb72fa80cc6cce99$export$1c604828de4cf9cf,
|
|
854
|
-
$eb72fa80cc6cce99$export$67c5e4e99638ee87,
|
|
855
|
-
$eb72fa80cc6cce99$export$fcf88132c9601d5d,
|
|
856
|
-
$eb72fa80cc6cce99$export$27b2e48e28163360,
|
|
857
|
-
$eb72fa80cc6cce99$export$bf30f1ca7b266454,
|
|
858
|
-
$eb72fa80cc6cce99$export$8ed8e9ea6bbca19f,
|
|
859
|
-
$eb72fa80cc6cce99$export$f08651c87c943e8,
|
|
860
|
-
$eb72fa80cc6cce99$export$c4b8f606caaecf2c,
|
|
861
|
-
$eb72fa80cc6cce99$export$58f9d4150439d06e,
|
|
862
|
-
$eb72fa80cc6cce99$export$8f50e2757841117b,
|
|
863
|
-
$eb72fa80cc6cce99$export$adb072c9761d9e59
|
|
864
|
-
];
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
var $6be18871efab84bd$exports = {};
|
|
868
|
-
|
|
869
|
-
$parcel$export($6be18871efab84bd$exports, "CoBadgedSupport", () => $6be18871efab84bd$export$8dde18ea9019c560);
|
|
870
|
-
// Currently only cartes_bancaires is supported
|
|
871
|
-
var $6be18871efab84bd$export$8dde18ea9019c560 = /*#__PURE__*/ function(CoBadgedSupport) {
|
|
872
|
-
CoBadgedSupport["CartesBancaires"] = "cartes-bancaires";
|
|
873
|
-
return CoBadgedSupport;
|
|
874
|
-
}({});
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
var $79ead0bc3913e130$exports = {};
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
var $51f46e0a98159b45$exports = {};
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
var $2ac94b510629d419$exports = {};
|
|
884
|
-
|
|
885
|
-
$parcel$export($2ac94b510629d419$exports, "ELEMENTS_TYPES", () => $2ac94b510629d419$export$8141e4f9a897abe6);
|
|
886
|
-
const $2ac94b510629d419$export$8141e4f9a897abe6 = [
|
|
887
|
-
'card',
|
|
888
|
-
'cardExpirationDate',
|
|
889
|
-
'cardNumber',
|
|
890
|
-
'cardVerificationCode',
|
|
891
|
-
'copyButton',
|
|
892
|
-
'data',
|
|
893
|
-
'text'
|
|
894
|
-
];
|
|
895
|
-
var $2ac94b510629d419$var$InputMode = /*#__PURE__*/ function(InputMode) {
|
|
896
|
-
InputMode["DECIMAL"] = "decimal";
|
|
897
|
-
InputMode["EMAIL"] = "email";
|
|
898
|
-
InputMode["NONE"] = "none";
|
|
899
|
-
InputMode["NUMERIC"] = "numeric";
|
|
900
|
-
InputMode["SEARCH"] = "search";
|
|
901
|
-
InputMode["TEL"] = "tel";
|
|
902
|
-
InputMode["TEXT"] = "text";
|
|
903
|
-
InputMode["URL"] = "url";
|
|
904
|
-
return InputMode;
|
|
905
|
-
}($2ac94b510629d419$var$InputMode || {});
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
var $b2b484f7f4e683ed$exports = {};
|
|
909
|
-
var $861e638a4cd54cf0$exports = {};
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
var $b7dd0235b8b0802d$exports = {};
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
var $95d20f79008dab8c$exports = {};
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
var $9ec3cc37d519e141$exports = {};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $861e638a4cd54cf0$exports);
|
|
922
|
-
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $b7dd0235b8b0802d$exports);
|
|
923
|
-
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $95d20f79008dab8c$exports);
|
|
924
|
-
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $9ec3cc37d519e141$exports);
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
var $e6da8ffa145ef6b4$exports = {};
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
var $79ee1b48c572ec2c$exports = {};
|
|
931
|
-
|
|
932
|
-
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES", () => $79ee1b48c572ec2c$export$e2bf52fc7723ec89);
|
|
933
|
-
$parcel$export($79ee1b48c572ec2c$exports, "BUTTON_CSS_PROPERTIES", () => $79ee1b48c572ec2c$export$93133f730762aee4);
|
|
934
|
-
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES_ALTERNATES", () => $79ee1b48c572ec2c$export$e22a44f86989e3f4);
|
|
935
|
-
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES_WITH_ALTERNATES", () => $79ee1b48c572ec2c$export$b5b27feb4cf29129);
|
|
936
|
-
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_VARIANT_SELECTORS", () => $79ee1b48c572ec2c$export$fc323aec0bf844b);
|
|
937
|
-
$parcel$export($79ee1b48c572ec2c$exports, "BUTTON_ELEMENT_STYLE_VARIANT_SELECTORS", () => $79ee1b48c572ec2c$export$8cce4e63ba22bae);
|
|
938
|
-
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_VARIANTS", () => $79ee1b48c572ec2c$export$a15fff7fac404fd9);
|
|
939
|
-
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_FONTS_ATTR", () => $79ee1b48c572ec2c$export$c3a88e1ff160bfd6);
|
|
940
|
-
$parcel$export($79ee1b48c572ec2c$exports, "BUTTON_ELEMENT_STYLE_VARIANTS", () => $79ee1b48c572ec2c$export$612b2fbe2f6ee5db);
|
|
941
|
-
const $79ee1b48c572ec2c$export$e2bf52fc7723ec89 = [
|
|
942
|
-
'backgroundColor',
|
|
943
|
-
'color',
|
|
944
|
-
'fontFamily',
|
|
945
|
-
'fontSize',
|
|
946
|
-
'fontSmooth',
|
|
947
|
-
'fontStyle',
|
|
948
|
-
'fontVariant',
|
|
949
|
-
'fontWeight',
|
|
950
|
-
'letterSpacing',
|
|
951
|
-
'lineHeight',
|
|
952
|
-
'padding',
|
|
953
|
-
'textAlign',
|
|
954
|
-
'textDecoration',
|
|
955
|
-
'textShadow',
|
|
956
|
-
'textTransform'
|
|
957
|
-
];
|
|
958
|
-
// Button-specific CSS properties for styling interactive buttons
|
|
959
|
-
const $79ee1b48c572ec2c$export$93133f730762aee4 = [
|
|
960
|
-
'alignItems',
|
|
961
|
-
'backgroundColor',
|
|
962
|
-
'border',
|
|
963
|
-
'borderBottom',
|
|
964
|
-
'borderColor',
|
|
965
|
-
'borderLeft',
|
|
966
|
-
'borderRadius',
|
|
967
|
-
'borderRight',
|
|
968
|
-
'borderStyle',
|
|
969
|
-
'borderTop',
|
|
970
|
-
'borderWidth',
|
|
971
|
-
'boxShadow',
|
|
972
|
-
'color',
|
|
973
|
-
'cursor',
|
|
974
|
-
'display',
|
|
975
|
-
'fontFamily',
|
|
976
|
-
'fontSize',
|
|
977
|
-
'fontWeight',
|
|
978
|
-
'gap',
|
|
979
|
-
'height',
|
|
980
|
-
'justifyContent',
|
|
981
|
-
'letterSpacing',
|
|
982
|
-
'lineHeight',
|
|
983
|
-
'margin',
|
|
984
|
-
'maxHeight',
|
|
985
|
-
'maxWidth',
|
|
986
|
-
'minHeight',
|
|
987
|
-
'minWidth',
|
|
988
|
-
'opacity',
|
|
989
|
-
'outline',
|
|
990
|
-
'padding',
|
|
991
|
-
'textAlign',
|
|
992
|
-
'textTransform',
|
|
993
|
-
'transform',
|
|
994
|
-
'transition',
|
|
995
|
-
'width'
|
|
996
|
-
];
|
|
997
|
-
const $79ee1b48c572ec2c$export$e22a44f86989e3f4 = {
|
|
998
|
-
fontSmooth: [
|
|
999
|
-
'-webkit-font-smoothing',
|
|
1000
|
-
'-moz-osx-font-smoothing'
|
|
1001
|
-
]
|
|
1002
|
-
};
|
|
1003
|
-
const $79ee1b48c572ec2c$export$b5b27feb4cf29129 = Object.keys($79ee1b48c572ec2c$export$e22a44f86989e3f4);
|
|
1004
|
-
const $79ee1b48c572ec2c$export$fc323aec0bf844b = [
|
|
1005
|
-
':hover',
|
|
1006
|
-
':focus',
|
|
1007
|
-
':read-only',
|
|
1008
|
-
'::placeholder',
|
|
1009
|
-
'::selection',
|
|
1010
|
-
':disabled'
|
|
1011
|
-
];
|
|
1012
|
-
const $79ee1b48c572ec2c$export$8cce4e63ba22bae = [
|
|
1013
|
-
':hover',
|
|
1014
|
-
':focus',
|
|
1015
|
-
':active'
|
|
1016
|
-
];
|
|
1017
|
-
const $79ee1b48c572ec2c$export$a15fff7fac404fd9 = [
|
|
1018
|
-
'base',
|
|
1019
|
-
'container',
|
|
1020
|
-
'complete',
|
|
1021
|
-
'invalid',
|
|
1022
|
-
'empty'
|
|
1023
|
-
];
|
|
1024
|
-
const $79ee1b48c572ec2c$export$c3a88e1ff160bfd6 = 'fonts';
|
|
1025
|
-
const $79ee1b48c572ec2c$export$612b2fbe2f6ee5db = [
|
|
1026
|
-
'base',
|
|
1027
|
-
'container'
|
|
1028
|
-
];
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $eb72fa80cc6cce99$exports);
|
|
1032
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $6be18871efab84bd$exports);
|
|
1033
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $79ead0bc3913e130$exports);
|
|
1034
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $51f46e0a98159b45$exports);
|
|
1035
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $2ac94b510629d419$exports);
|
|
1036
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $b2b484f7f4e683ed$exports);
|
|
1037
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $e6da8ffa145ef6b4$exports);
|
|
1038
|
-
$parcel$exportWildcard($94e2e5607fad631e$exports, $79ee1b48c572ec2c$exports);
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
var $e14e406f86e7100a$exports = {};
|
|
1042
|
-
var $a3c44a53c2bce091$exports = {};
|
|
1043
|
-
|
|
1044
|
-
$parcel$export($a3c44a53c2bce091$exports, "DATA_CLASSIFICATIONS", () => $a3c44a53c2bce091$export$f9a8af5874660c13);
|
|
1045
|
-
$parcel$export($a3c44a53c2bce091$exports, "DATA_IMPACT_LEVELS", () => $a3c44a53c2bce091$export$7ea51ced9080f153);
|
|
1046
|
-
$parcel$export($a3c44a53c2bce091$exports, "DATA_RESTRICTION_POLICIES", () => $a3c44a53c2bce091$export$23716d8c8b579500);
|
|
1047
|
-
const $a3c44a53c2bce091$export$f9a8af5874660c13 = [
|
|
1048
|
-
'general',
|
|
1049
|
-
'bank',
|
|
1050
|
-
'pci',
|
|
1051
|
-
'pii'
|
|
1052
|
-
];
|
|
1053
|
-
const $a3c44a53c2bce091$export$7ea51ced9080f153 = [
|
|
1054
|
-
'low',
|
|
1055
|
-
'moderate',
|
|
1056
|
-
'high'
|
|
1057
|
-
];
|
|
1058
|
-
const $a3c44a53c2bce091$export$23716d8c8b579500 = [
|
|
1059
|
-
'mask',
|
|
1060
|
-
'redact'
|
|
1061
|
-
];
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
var $d82a32249f247054$exports = {};
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
var $5daf3f88297b1af6$exports = {};
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
var $e72a0abeab3ffd4b$exports = {};
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
var $aa49f4488b4cfae9$exports = {};
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
var $7b9b92bd9684da9e$exports = {};
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
var $8e2106ad589415ce$exports = {};
|
|
1080
|
-
/**
|
|
1081
|
-
* Make all properties in T nullable
|
|
1082
|
-
*/
|
|
1083
|
-
|
|
1084
|
-
var $ae98e92e82b55003$exports = {};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $a3c44a53c2bce091$exports);
|
|
1088
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $d82a32249f247054$exports);
|
|
1089
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $5daf3f88297b1af6$exports);
|
|
1090
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $e72a0abeab3ffd4b$exports);
|
|
1091
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $aa49f4488b4cfae9$exports);
|
|
1092
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $7b9b92bd9684da9e$exports);
|
|
1093
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $8e2106ad589415ce$exports);
|
|
1094
|
-
$parcel$exportWildcard($e14e406f86e7100a$exports, $ae98e92e82b55003$exports);
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
var $2c376b28511e5ece$exports = {};
|
|
1098
|
-
var $53ad810eb861e8f3$exports = {};
|
|
1099
|
-
var $a9395257af19d381$exports = {};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
$parcel$exportWildcard($53ad810eb861e8f3$exports, $a9395257af19d381$exports);
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
$parcel$exportWildcard($2c376b28511e5ece$exports, $53ad810eb861e8f3$exports);
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
$parcel$exportWildcard($001f46d7c9d998c1$exports, $94e2e5607fad631e$exports);
|
|
1110
|
-
$parcel$exportWildcard($001f46d7c9d998c1$exports, $e14e406f86e7100a$exports);
|
|
1111
|
-
$parcel$exportWildcard($001f46d7c9d998c1$exports, $2c376b28511e5ece$exports);
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
var $1eef531dfb8479cf$exports = {};
|
|
1115
|
-
|
|
1116
|
-
$parcel$export($1eef531dfb8479cf$exports, "BasisTheoryApiError", () => $d4608c0b4e5d8cb4$export$5a9a4feb38dee587);
|
|
1117
|
-
$parcel$export($1eef531dfb8479cf$exports, "BasisTheoryValidationError", () => $3c527b4ad66b1eeb$export$925a29a6f046f0b5);
|
|
1118
|
-
$parcel$export($1eef531dfb8479cf$exports, "BasisTheoryConfigurationError", () => $3f995098830fda86$export$8b56781fadda32af);
|
|
1119
|
-
$parcel$export($1eef531dfb8479cf$exports, "HttpClientError", () => $815b13df3d182116$export$83d862a6bd4a93c5);
|
|
1120
|
-
class $d4608c0b4e5d8cb4$export$5a9a4feb38dee587 extends Error {
|
|
1121
|
-
constructor(message, status, data, _debug){
|
|
1122
|
-
super(message), this.status = status, this.data = data, this._debug = _debug;
|
|
1123
|
-
this.name = 'BasisTheoryApiError';
|
|
1124
|
-
Object.setPrototypeOf(this, $d4608c0b4e5d8cb4$export$5a9a4feb38dee587.prototype);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
class $3f995098830fda86$export$8b56781fadda32af extends Error {
|
|
1131
|
-
constructor(message, details){
|
|
1132
|
-
super(message), this.details = details;
|
|
1133
|
-
this.name = 'BasisTheoryConfigurationError';
|
|
1134
|
-
Object.setPrototypeOf(this, $3f995098830fda86$export$8b56781fadda32af.prototype);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
class $815b13df3d182116$export$83d862a6bd4a93c5 extends Error {
|
|
1140
|
-
constructor(message, status, data, headers){
|
|
1141
|
-
super(message);
|
|
1142
|
-
this.name = 'HttpClientError';
|
|
1143
|
-
this.status = status;
|
|
1144
|
-
this.data = data;
|
|
1145
|
-
this.headers = headers;
|
|
1146
|
-
Object.setPrototypeOf(this, $815b13df3d182116$export$83d862a6bd4a93c5.prototype);
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
/**
|
|
1154
|
-
* Attaches to window when importing via `<script>` tags.
|
|
1155
|
-
*/ if (typeof window !== 'undefined' && document.currentScript && !window.basistheory) window.basistheory = (0, $316c9c8f85cead13$export$cbe2892587230861);
|
|
1156
|
-
$parcel$exportWildcard(module.exports, $316c9c8f85cead13$exports);
|
|
1157
|
-
$parcel$exportWildcard(module.exports, $001f46d7c9d998c1$exports);
|
|
1158
|
-
$parcel$exportWildcard(module.exports, $1eef531dfb8479cf$exports);
|
|
1159
|
-
|
|
1160
|
-
|