@basis-theory/web-elements 1.5.0 → 1.6.0
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/CHANGELOG.md +10 -0
- package/dist/bundle/index.js +1 -1
- package/dist/main/index.js +590 -2
- package/dist/module/module.js +607 -3
- package/dist/package.json +1 -1
- package/dist/types/index.d.ts +126 -84
- package/dist/types/types/elements/elements.d.ts +2 -0
- package/dist/types/types/elements/services/sessions.d.ts +11 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.6.0] - 2025-02-11
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- 95bd0a5 2025-02-11 feat: adds sessions.create (#385) by kevin@basistheory.com
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- e692cd8 2025-02-11 fix: fix double log (#387) by lucas@basistheory.com
|
|
10
|
+
|
|
1
11
|
## [1.5.0] - 2025-02-06
|
|
2
12
|
|
|
3
13
|
### Features
|
package/dist/bundle/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e,r,t,n,o,i,l){try{var s=e[i](l),c=s.value}catch(e){t(e);return}s.done?r(c):Promise.resolve(c).then(n,o)}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,i){var l=r.apply(t,n);function s(r){e(l,o,i,s,c,"next",r)}function c(r){e(l,o,i,s,c,"throw",r)}s(void 0)})}}function t(e,r){var t,n,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw TypeError("Generator is already executing.");for(;l;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,n=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=r.call(e,l)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var n,o,i,l,s,c=function(e){var r=document.querySelector('script[src^="'.concat(e,'"]'));if(r)return r;var t=document.head||document.body;if(!t)throw Error("No <head> or <body> elements found in the document.");var n=Object.assign(document.createElement("script"),{src:e});return t.append(n),n},
|
|
1
|
+
!function(){function e(e,r,t,n,o,i,l){try{var s=e[i](l),c=s.value}catch(e){t(e);return}s.done?r(c):Promise.resolve(c).then(n,o)}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,i){var l=r.apply(t,n);function s(r){e(l,o,i,s,c,"next",r)}function c(r){e(l,o,i,s,c,"throw",r)}s(void 0)})}}function t(e,r){var t,n,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw TypeError("Generator is already executing.");for(;l;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,n=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=r.call(e,l)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var n,o,i,l,s,c,a=function(e){var r=document.querySelector('script[src^="'.concat(e,'"]'));if(r)return r;var t=document.head||document.body;if(!t)throw Error("No <head> or <body> elements found in the document.");var n=Object.assign(document.createElement("script"),{src:e});return t.append(n),n},u="Tried to load BasisTheoryElements in a non-DOM environment.",d="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.",f="https://".concat(void 0),h=(o=!0,i=r(function(e,r){var n,i,l,s,c,a,u=arguments;return t(this,function(t){switch(t.label){case 0:if(n=u.length>2&&void 0!==u[2]?u[2]:{},!o)return[2];a=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({level:r,message:e,service:"web-elements-loader",env:f.includes("localhost")?"local":f.includes("dev")?"dev":"prod",referrer:null===(i=document)||void 0===i?void 0:i.referrer,origin:null===(l=window)||void 0===l?void 0:l.location.origin,url:null===(s=window)||void 0===s?void 0:s.location.href,userAgent:null===(c=navigator)||void 0===c?void 0:c.userAgent},n),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,fetch("https://http-intake.logs.datadoghq.com/v1/input/".concat("pubb96b84a13912504f4354f2d794ea4fab"),{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}})];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("There was an error sending telemetry."),[3,4];case 4:return[2]}})}),l=function(e,r){return i.apply(this,arguments)},{setTelemetryEnabled:function(e){o=e},log:{error:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(e,"error",r)},info:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(e,"info",r)},warn:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(e,"warn",r)}}}),p=function(e,n){return new Promise(function(o,i){var l,s=a(e),c=!1;s.addEventListener("load",function(){window.BasisTheoryElements?o(window.BasisTheoryElements):(r(function(){return t(this,function(e){switch(e.label){case 0:return[4,h.log.error("Elements not found on window on load",{logType:"elementsNotFoundOnWindow",logOrigin:"loadScript",retryCount:n})];case 1:return e.sent(),[2]}})})(),i(Error("Basis Theory Elements did not load properly. Check network tab for more details.")))}),s.addEventListener("error",(l=r(function(r){var l,a,f;return t(this,function(t){switch(t.label){case 0:if(c)return[2];return c=!0,[4,h.log.error("Elements script onError event",{logType:"elementsScriptOnError",logOrigin:"loadScript",retryCount:n,event:{message:null==r?void 0:r.message,source:null==r?void 0:r.filename,lineno:null==r?void 0:r.lineno,colno:null==r?void 0:r.colno,error:null==r?void 0:r.error,target:null==r?void 0:r.target}})];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,3,,5]),null==s||s.remove(),[3,5];case 3:return l=t.sent(),[4,h.log.error("Error removing script from DOM on retry attempt ".concat(n),{logType:"scriptRemovalError",logOrigin:"loadScript",retryCount:n,removalError:l})];case 4:return t.sent(),[3,5];case 5:if(0===n)return p(e,n+1).then(o).catch(i),[2];t.label=6;case 6:return t.trys.push([6,12,,14]),[4,fetch(e)];case 7:if((a=t.sent()).ok)return[3,9];return[4,h.log.error("Second attempt to load elements script failed, fetch failed with status: ".concat(a.status,"."),{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:n,fetchResult:"error",fetchResponse:a})];case 8:return t.sent(),i(Error(u)),[3,11];case 9:return[4,h.log.error("Second attempt to load elements script failed, fetch success",{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:n,fetchResult:"success",fetchResponse:a})];case 10:t.sent(),i(Error(d)),t.label=11;case 11:return[3,14];case 12:return f=t.sent(),[4,h.log.error("Second attempt failed to load elements script failed, fetch network error.",{logType:"elementsScriptFetchError",logOrigin:"loadScript",retryCount:n,fetchResult:"error",fetchError:f})];case 13:return t.sent(),i(Error(d)),[3,14];case 14:return i((null==r?void 0:r.error)||(null==r?void 0:r.message)||Error(d)),[2]}})}),function(e){return l.apply(this,arguments)}))})},v={};v={version:"1.6.0"};var m=(s=r(function(e,o){var i,l,s;return t(this,function(c){switch(c.label){case 0:var a;if(!e)throw Error("API key is required");return i=(null==o?void 0:o._devMode)?"js.flock-dev.com":"js.basistheory.com",[4,(a="https://".concat(i,"/web-elements/").concat(v.version,"/client/index.js"),n||(n=new Promise(function(e,n){if(("undefined"==typeof window?"undefined":(o=window)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)!="object"){r(function(){return t(this,function(e){switch(e.label){case 0:return[4,h.log.warn(u,{logType:"elementsNonDomError",logOrigin:"loadElements"})];case 1:return e.sent(),n(Error(u)),[2]}})})();return}if(window.BasisTheoryElements){e(window.BasisTheoryElements);return}var o,i="https://".concat(void 0,"/elements");if(void 0!==a)try{i=new URL(a).toString().replace(RegExp("\\/$","u"),"")}catch(e){throw r(function(){return t(this,function(e){switch(e.label){case 0:return[4,h.log.warn("Invalid format for the given Elements client url.",{logType:"invalidClientUrlError",logOrigin:"loadElements"})];case 1:return e.sent(),[2]}})})(),Error("Invalid format for the given Elements client url.")}p(i,0).then(e).catch(function(e){n(e)})})),n)];case 1:return[2,c.sent().init(e,"https://".concat(i,"/web-elements/").concat(v.version,"/hosted-elements/"),!1,null!==(l=null==o?void 0:o.disableTelemetry)&&void 0!==l&&l,null!==(s=null==o?void 0:o.useSameOriginApi)&&void 0!==s&&s)]}})}),function(e,r){return s.apply(this,arguments)}),y=((c=y||{}).DECIMAL="decimal",c.EMAIL="email",c.NONE="none",c.NUMERIC="numeric",c.SEARCH="search",c.TEL="tel",c.TEXT="text",c.URL="url",c);"undefined"!=typeof window&&document.currentScript&&!window.basistheory&&(window.basistheory=m)}();
|
package/dist/main/index.js
CHANGED
|
@@ -284,6 +284,7 @@ const $6477b722f43d24f2$export$2b0a6e5a1c78018f = (elementsClientUrl)=>{
|
|
|
284
284
|
resolve(window.BasisTheoryElements);
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
|
+
// TODO refactor/remove this fallback
|
|
287
288
|
let url = `https://${undefined}/elements`;
|
|
288
289
|
if (typeof elementsClientUrl !== 'undefined') try {
|
|
289
290
|
const urlObject = new URL(elementsClientUrl);
|
|
@@ -308,7 +309,7 @@ const $6477b722f43d24f2$export$2b0a6e5a1c78018f = (elementsClientUrl)=>{
|
|
|
308
309
|
|
|
309
310
|
|
|
310
311
|
var $eef42ce81412d9ae$exports = {};
|
|
311
|
-
const $eef42ce81412d9ae$var$version = '1.
|
|
312
|
+
const $eef42ce81412d9ae$var$version = '1.6.0';
|
|
312
313
|
$eef42ce81412d9ae$exports = {
|
|
313
314
|
version: $eef42ce81412d9ae$var$version
|
|
314
315
|
};
|
|
@@ -320,13 +321,600 @@ const $316c9c8f85cead13$export$cbe2892587230861 = async (apiKey, options)=>{
|
|
|
320
321
|
if (!apiKey) throw new Error('API key is required');
|
|
321
322
|
const env = options?._devMode ? $316c9c8f85cead13$var$TEST_ENV : $316c9c8f85cead13$var$DEFAULT_ENV;
|
|
322
323
|
const elements = await (0, $6477b722f43d24f2$export$2b0a6e5a1c78018f)(`https://${env}/web-elements/${(0, $eef42ce81412d9ae$exports.version)}/client/index.js`);
|
|
323
|
-
return elements.init(apiKey, `https://${env}/web-elements/${(0, $eef42ce81412d9ae$exports.version)}/hosted-elements/`, false, false, false);
|
|
324
|
+
return elements.init(apiKey, `https://${env}/web-elements/${(0, $eef42ce81412d9ae$exports.version)}/hosted-elements/`, false, options?.disableTelemetry ?? false, options?.useSameOriginApi ?? false);
|
|
324
325
|
};
|
|
325
326
|
|
|
326
327
|
|
|
328
|
+
var $001f46d7c9d998c1$exports = {};
|
|
329
|
+
var $94e2e5607fad631e$exports = {};
|
|
330
|
+
var $eb72fa80cc6cce99$exports = {};
|
|
331
|
+
|
|
332
|
+
$parcel$export($eb72fa80cc6cce99$exports, "VISA", () => $eb72fa80cc6cce99$export$1748c2651c2c6e25);
|
|
333
|
+
$parcel$export($eb72fa80cc6cce99$exports, "MASTERCARD", () => $eb72fa80cc6cce99$export$1c604828de4cf9cf);
|
|
334
|
+
$parcel$export($eb72fa80cc6cce99$exports, "AMERICAN_EXPRESS", () => $eb72fa80cc6cce99$export$67c5e4e99638ee87);
|
|
335
|
+
$parcel$export($eb72fa80cc6cce99$exports, "DINERS_CLUB", () => $eb72fa80cc6cce99$export$fcf88132c9601d5d);
|
|
336
|
+
$parcel$export($eb72fa80cc6cce99$exports, "DISCOVER", () => $eb72fa80cc6cce99$export$27b2e48e28163360);
|
|
337
|
+
$parcel$export($eb72fa80cc6cce99$exports, "JCB", () => $eb72fa80cc6cce99$export$bf30f1ca7b266454);
|
|
338
|
+
$parcel$export($eb72fa80cc6cce99$exports, "UNION_PAY", () => $eb72fa80cc6cce99$export$8ed8e9ea6bbca19f);
|
|
339
|
+
$parcel$export($eb72fa80cc6cce99$exports, "MAESTRO", () => $eb72fa80cc6cce99$export$f08651c87c943e8);
|
|
340
|
+
$parcel$export($eb72fa80cc6cce99$exports, "ELO", () => $eb72fa80cc6cce99$export$c4b8f606caaecf2c);
|
|
341
|
+
$parcel$export($eb72fa80cc6cce99$exports, "MIR", () => $eb72fa80cc6cce99$export$58f9d4150439d06e);
|
|
342
|
+
$parcel$export($eb72fa80cc6cce99$exports, "HIPER", () => $eb72fa80cc6cce99$export$8f50e2757841117b);
|
|
343
|
+
$parcel$export($eb72fa80cc6cce99$exports, "HIPERCARD", () => $eb72fa80cc6cce99$export$adb072c9761d9e59);
|
|
344
|
+
$parcel$export($eb72fa80cc6cce99$exports, "DEFAULT_CARD_TYPES", () => $eb72fa80cc6cce99$export$35b475386df8059d);
|
|
345
|
+
const $eb72fa80cc6cce99$export$1748c2651c2c6e25 = {
|
|
346
|
+
niceType: 'Visa',
|
|
347
|
+
type: 'visa',
|
|
348
|
+
patterns: [
|
|
349
|
+
4
|
|
350
|
+
],
|
|
351
|
+
gaps: [
|
|
352
|
+
4,
|
|
353
|
+
8,
|
|
354
|
+
12
|
|
355
|
+
],
|
|
356
|
+
lengths: [
|
|
357
|
+
16,
|
|
358
|
+
18,
|
|
359
|
+
19
|
|
360
|
+
],
|
|
361
|
+
code: {
|
|
362
|
+
name: 'CVV',
|
|
363
|
+
size: 3
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
const $eb72fa80cc6cce99$export$1c604828de4cf9cf = {
|
|
367
|
+
niceType: 'Mastercard',
|
|
368
|
+
type: 'mastercard',
|
|
369
|
+
patterns: [
|
|
370
|
+
[
|
|
371
|
+
51,
|
|
372
|
+
55
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
2221,
|
|
376
|
+
2229
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
223,
|
|
380
|
+
229
|
|
381
|
+
],
|
|
382
|
+
[
|
|
383
|
+
23,
|
|
384
|
+
26
|
|
385
|
+
],
|
|
386
|
+
[
|
|
387
|
+
270,
|
|
388
|
+
271
|
|
389
|
+
],
|
|
390
|
+
2720
|
|
391
|
+
],
|
|
392
|
+
gaps: [
|
|
393
|
+
4,
|
|
394
|
+
8,
|
|
395
|
+
12
|
|
396
|
+
],
|
|
397
|
+
lengths: [
|
|
398
|
+
16
|
|
399
|
+
],
|
|
400
|
+
code: {
|
|
401
|
+
name: 'CVC',
|
|
402
|
+
size: 3
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const $eb72fa80cc6cce99$export$67c5e4e99638ee87 = {
|
|
406
|
+
niceType: 'American Express',
|
|
407
|
+
type: 'american-express',
|
|
408
|
+
patterns: [
|
|
409
|
+
34,
|
|
410
|
+
37
|
|
411
|
+
],
|
|
412
|
+
gaps: [
|
|
413
|
+
4,
|
|
414
|
+
10
|
|
415
|
+
],
|
|
416
|
+
lengths: [
|
|
417
|
+
15
|
|
418
|
+
],
|
|
419
|
+
code: {
|
|
420
|
+
name: 'CID',
|
|
421
|
+
size: 4
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
const $eb72fa80cc6cce99$export$fcf88132c9601d5d = {
|
|
425
|
+
niceType: 'Diners Club',
|
|
426
|
+
type: 'diners-club',
|
|
427
|
+
patterns: [
|
|
428
|
+
[
|
|
429
|
+
300,
|
|
430
|
+
305
|
|
431
|
+
],
|
|
432
|
+
36,
|
|
433
|
+
38,
|
|
434
|
+
39
|
|
435
|
+
],
|
|
436
|
+
gaps: [
|
|
437
|
+
4,
|
|
438
|
+
10
|
|
439
|
+
],
|
|
440
|
+
lengths: [
|
|
441
|
+
14,
|
|
442
|
+
16,
|
|
443
|
+
19
|
|
444
|
+
],
|
|
445
|
+
code: {
|
|
446
|
+
name: 'CVV',
|
|
447
|
+
size: 3
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
const $eb72fa80cc6cce99$export$27b2e48e28163360 = {
|
|
451
|
+
niceType: 'Discover',
|
|
452
|
+
type: 'discover',
|
|
453
|
+
patterns: [
|
|
454
|
+
6011,
|
|
455
|
+
[
|
|
456
|
+
644,
|
|
457
|
+
649
|
|
458
|
+
],
|
|
459
|
+
65
|
|
460
|
+
],
|
|
461
|
+
gaps: [
|
|
462
|
+
4,
|
|
463
|
+
8,
|
|
464
|
+
12
|
|
465
|
+
],
|
|
466
|
+
lengths: [
|
|
467
|
+
16,
|
|
468
|
+
19
|
|
469
|
+
],
|
|
470
|
+
code: {
|
|
471
|
+
name: 'CID',
|
|
472
|
+
size: 3
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
const $eb72fa80cc6cce99$export$bf30f1ca7b266454 = {
|
|
476
|
+
niceType: 'JCB',
|
|
477
|
+
type: 'jcb',
|
|
478
|
+
patterns: [
|
|
479
|
+
2131,
|
|
480
|
+
1800,
|
|
481
|
+
[
|
|
482
|
+
3528,
|
|
483
|
+
3589
|
|
484
|
+
]
|
|
485
|
+
],
|
|
486
|
+
gaps: [
|
|
487
|
+
4,
|
|
488
|
+
8,
|
|
489
|
+
12
|
|
490
|
+
],
|
|
491
|
+
lengths: [
|
|
492
|
+
16,
|
|
493
|
+
17,
|
|
494
|
+
18,
|
|
495
|
+
19
|
|
496
|
+
],
|
|
497
|
+
code: {
|
|
498
|
+
name: 'CVV',
|
|
499
|
+
size: 3
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
const $eb72fa80cc6cce99$export$8ed8e9ea6bbca19f = {
|
|
503
|
+
niceType: 'UnionPay',
|
|
504
|
+
type: 'unionpay',
|
|
505
|
+
patterns: [
|
|
506
|
+
620,
|
|
507
|
+
[
|
|
508
|
+
62100,
|
|
509
|
+
62182
|
|
510
|
+
],
|
|
511
|
+
[
|
|
512
|
+
62184,
|
|
513
|
+
62187
|
|
514
|
+
],
|
|
515
|
+
[
|
|
516
|
+
62185,
|
|
517
|
+
62197
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
62200,
|
|
521
|
+
62205
|
|
522
|
+
],
|
|
523
|
+
[
|
|
524
|
+
622010,
|
|
525
|
+
622999
|
|
526
|
+
],
|
|
527
|
+
622018,
|
|
528
|
+
[
|
|
529
|
+
62207,
|
|
530
|
+
62209
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
623,
|
|
534
|
+
626
|
|
535
|
+
],
|
|
536
|
+
6270,
|
|
537
|
+
6272,
|
|
538
|
+
6276,
|
|
539
|
+
[
|
|
540
|
+
627700,
|
|
541
|
+
627779
|
|
542
|
+
],
|
|
543
|
+
[
|
|
544
|
+
627781,
|
|
545
|
+
627799
|
|
546
|
+
],
|
|
547
|
+
[
|
|
548
|
+
6282,
|
|
549
|
+
6289
|
|
550
|
+
],
|
|
551
|
+
6291,
|
|
552
|
+
6292,
|
|
553
|
+
810,
|
|
554
|
+
[
|
|
555
|
+
8110,
|
|
556
|
+
8131
|
|
557
|
+
],
|
|
558
|
+
[
|
|
559
|
+
8132,
|
|
560
|
+
8151
|
|
561
|
+
],
|
|
562
|
+
[
|
|
563
|
+
8152,
|
|
564
|
+
8163
|
|
565
|
+
],
|
|
566
|
+
[
|
|
567
|
+
8164,
|
|
568
|
+
8171
|
|
569
|
+
]
|
|
570
|
+
],
|
|
571
|
+
gaps: [
|
|
572
|
+
4,
|
|
573
|
+
8,
|
|
574
|
+
12
|
|
575
|
+
],
|
|
576
|
+
lengths: [
|
|
577
|
+
14,
|
|
578
|
+
15,
|
|
579
|
+
16,
|
|
580
|
+
17,
|
|
581
|
+
18,
|
|
582
|
+
19
|
|
583
|
+
],
|
|
584
|
+
code: {
|
|
585
|
+
name: 'CVN',
|
|
586
|
+
size: 3
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const $eb72fa80cc6cce99$export$f08651c87c943e8 = {
|
|
590
|
+
niceType: 'Maestro',
|
|
591
|
+
type: 'maestro',
|
|
592
|
+
patterns: [
|
|
593
|
+
493698,
|
|
594
|
+
[
|
|
595
|
+
500000,
|
|
596
|
+
504174
|
|
597
|
+
],
|
|
598
|
+
[
|
|
599
|
+
504176,
|
|
600
|
+
506698
|
|
601
|
+
],
|
|
602
|
+
[
|
|
603
|
+
506779,
|
|
604
|
+
508999
|
|
605
|
+
],
|
|
606
|
+
[
|
|
607
|
+
56,
|
|
608
|
+
59
|
|
609
|
+
],
|
|
610
|
+
63,
|
|
611
|
+
67,
|
|
612
|
+
6
|
|
613
|
+
],
|
|
614
|
+
gaps: [
|
|
615
|
+
4,
|
|
616
|
+
8,
|
|
617
|
+
12
|
|
618
|
+
],
|
|
619
|
+
lengths: [
|
|
620
|
+
12,
|
|
621
|
+
13,
|
|
622
|
+
14,
|
|
623
|
+
15,
|
|
624
|
+
16,
|
|
625
|
+
17,
|
|
626
|
+
18,
|
|
627
|
+
19
|
|
628
|
+
],
|
|
629
|
+
code: {
|
|
630
|
+
name: 'CVC',
|
|
631
|
+
size: 3
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
const $eb72fa80cc6cce99$export$c4b8f606caaecf2c = {
|
|
635
|
+
niceType: 'Elo',
|
|
636
|
+
type: 'elo',
|
|
637
|
+
patterns: [
|
|
638
|
+
401178,
|
|
639
|
+
401179,
|
|
640
|
+
438935,
|
|
641
|
+
457631,
|
|
642
|
+
457632,
|
|
643
|
+
431274,
|
|
644
|
+
451416,
|
|
645
|
+
457393,
|
|
646
|
+
504175,
|
|
647
|
+
[
|
|
648
|
+
506699,
|
|
649
|
+
506778
|
|
650
|
+
],
|
|
651
|
+
[
|
|
652
|
+
509000,
|
|
653
|
+
509999
|
|
654
|
+
],
|
|
655
|
+
627780,
|
|
656
|
+
636297,
|
|
657
|
+
636368,
|
|
658
|
+
[
|
|
659
|
+
650031,
|
|
660
|
+
650033
|
|
661
|
+
],
|
|
662
|
+
[
|
|
663
|
+
650035,
|
|
664
|
+
650051
|
|
665
|
+
],
|
|
666
|
+
[
|
|
667
|
+
650405,
|
|
668
|
+
650439
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
650485,
|
|
672
|
+
650538
|
|
673
|
+
],
|
|
674
|
+
[
|
|
675
|
+
650541,
|
|
676
|
+
650598
|
|
677
|
+
],
|
|
678
|
+
[
|
|
679
|
+
650700,
|
|
680
|
+
650718
|
|
681
|
+
],
|
|
682
|
+
[
|
|
683
|
+
650720,
|
|
684
|
+
650727
|
|
685
|
+
],
|
|
686
|
+
[
|
|
687
|
+
650901,
|
|
688
|
+
650978
|
|
689
|
+
],
|
|
690
|
+
[
|
|
691
|
+
651652,
|
|
692
|
+
651679
|
|
693
|
+
],
|
|
694
|
+
[
|
|
695
|
+
655000,
|
|
696
|
+
655019
|
|
697
|
+
],
|
|
698
|
+
[
|
|
699
|
+
655021,
|
|
700
|
+
655058
|
|
701
|
+
]
|
|
702
|
+
],
|
|
703
|
+
gaps: [
|
|
704
|
+
4,
|
|
705
|
+
8,
|
|
706
|
+
12
|
|
707
|
+
],
|
|
708
|
+
lengths: [
|
|
709
|
+
16
|
|
710
|
+
],
|
|
711
|
+
code: {
|
|
712
|
+
name: 'CVE',
|
|
713
|
+
size: 3
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
const $eb72fa80cc6cce99$export$58f9d4150439d06e = {
|
|
717
|
+
niceType: 'Mir',
|
|
718
|
+
type: 'mir',
|
|
719
|
+
patterns: [
|
|
720
|
+
[
|
|
721
|
+
2200,
|
|
722
|
+
2204
|
|
723
|
+
]
|
|
724
|
+
],
|
|
725
|
+
gaps: [
|
|
726
|
+
4,
|
|
727
|
+
8,
|
|
728
|
+
12
|
|
729
|
+
],
|
|
730
|
+
lengths: [
|
|
731
|
+
16,
|
|
732
|
+
17,
|
|
733
|
+
18,
|
|
734
|
+
19
|
|
735
|
+
],
|
|
736
|
+
code: {
|
|
737
|
+
name: 'CVP2',
|
|
738
|
+
size: 3
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
const $eb72fa80cc6cce99$export$8f50e2757841117b = {
|
|
742
|
+
niceType: 'Hiper',
|
|
743
|
+
type: 'hiper',
|
|
744
|
+
patterns: [
|
|
745
|
+
637095,
|
|
746
|
+
63737423,
|
|
747
|
+
63743358,
|
|
748
|
+
637568,
|
|
749
|
+
637599,
|
|
750
|
+
637609,
|
|
751
|
+
637612
|
|
752
|
+
],
|
|
753
|
+
gaps: [
|
|
754
|
+
4,
|
|
755
|
+
8,
|
|
756
|
+
12
|
|
757
|
+
],
|
|
758
|
+
lengths: [
|
|
759
|
+
16
|
|
760
|
+
],
|
|
761
|
+
code: {
|
|
762
|
+
name: 'CVC',
|
|
763
|
+
size: 3
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
const $eb72fa80cc6cce99$export$adb072c9761d9e59 = {
|
|
767
|
+
niceType: 'Hipercard',
|
|
768
|
+
type: 'hipercard',
|
|
769
|
+
patterns: [
|
|
770
|
+
606282
|
|
771
|
+
],
|
|
772
|
+
gaps: [
|
|
773
|
+
4,
|
|
774
|
+
8,
|
|
775
|
+
12
|
|
776
|
+
],
|
|
777
|
+
lengths: [
|
|
778
|
+
16
|
|
779
|
+
],
|
|
780
|
+
code: {
|
|
781
|
+
name: 'CVC',
|
|
782
|
+
size: 3
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
const $eb72fa80cc6cce99$export$35b475386df8059d = [
|
|
786
|
+
$eb72fa80cc6cce99$export$1748c2651c2c6e25,
|
|
787
|
+
$eb72fa80cc6cce99$export$1c604828de4cf9cf,
|
|
788
|
+
$eb72fa80cc6cce99$export$67c5e4e99638ee87,
|
|
789
|
+
$eb72fa80cc6cce99$export$fcf88132c9601d5d,
|
|
790
|
+
$eb72fa80cc6cce99$export$27b2e48e28163360,
|
|
791
|
+
$eb72fa80cc6cce99$export$bf30f1ca7b266454,
|
|
792
|
+
$eb72fa80cc6cce99$export$8ed8e9ea6bbca19f,
|
|
793
|
+
$eb72fa80cc6cce99$export$f08651c87c943e8,
|
|
794
|
+
$eb72fa80cc6cce99$export$c4b8f606caaecf2c,
|
|
795
|
+
$eb72fa80cc6cce99$export$58f9d4150439d06e,
|
|
796
|
+
$eb72fa80cc6cce99$export$8f50e2757841117b,
|
|
797
|
+
$eb72fa80cc6cce99$export$adb072c9761d9e59
|
|
798
|
+
];
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
var $79ead0bc3913e130$exports = {};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
var $51f46e0a98159b45$exports = {};
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
var $2ac94b510629d419$exports = {};
|
|
808
|
+
|
|
809
|
+
$parcel$export($2ac94b510629d419$exports, "ELEMENTS_TYPES", () => $2ac94b510629d419$export$8141e4f9a897abe6);
|
|
810
|
+
const $2ac94b510629d419$export$8141e4f9a897abe6 = [
|
|
811
|
+
'card',
|
|
812
|
+
'cardExpirationDate',
|
|
813
|
+
'cardNumber',
|
|
814
|
+
'cardVerificationCode',
|
|
815
|
+
'data',
|
|
816
|
+
'text'
|
|
817
|
+
];
|
|
818
|
+
var $2ac94b510629d419$var$InputMode = /*#__PURE__*/ function(InputMode) {
|
|
819
|
+
InputMode["DECIMAL"] = "decimal";
|
|
820
|
+
InputMode["EMAIL"] = "email";
|
|
821
|
+
InputMode["NONE"] = "none";
|
|
822
|
+
InputMode["NUMERIC"] = "numeric";
|
|
823
|
+
InputMode["SEARCH"] = "search";
|
|
824
|
+
InputMode["TEL"] = "tel";
|
|
825
|
+
InputMode["TEXT"] = "text";
|
|
826
|
+
InputMode["URL"] = "url";
|
|
827
|
+
return InputMode;
|
|
828
|
+
}($2ac94b510629d419$var$InputMode || {});
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
var $b2b484f7f4e683ed$exports = {};
|
|
832
|
+
var $861e638a4cd54cf0$exports = {};
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
var $b7dd0235b8b0802d$exports = {};
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
var $95d20f79008dab8c$exports = {};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
var $9ec3cc37d519e141$exports = {};
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $861e638a4cd54cf0$exports);
|
|
845
|
+
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $b7dd0235b8b0802d$exports);
|
|
846
|
+
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $95d20f79008dab8c$exports);
|
|
847
|
+
$parcel$exportWildcard($b2b484f7f4e683ed$exports, $9ec3cc37d519e141$exports);
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
var $e6da8ffa145ef6b4$exports = {};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
var $79ee1b48c572ec2c$exports = {};
|
|
854
|
+
|
|
855
|
+
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES", () => $79ee1b48c572ec2c$export$e2bf52fc7723ec89);
|
|
856
|
+
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES_ALTERNATES", () => $79ee1b48c572ec2c$export$e22a44f86989e3f4);
|
|
857
|
+
$parcel$export($79ee1b48c572ec2c$exports, "SAFE_CSS_PROPERTIES_WITH_ALTERNATES", () => $79ee1b48c572ec2c$export$b5b27feb4cf29129);
|
|
858
|
+
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_VARIANT_SELECTORS", () => $79ee1b48c572ec2c$export$fc323aec0bf844b);
|
|
859
|
+
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_VARIANTS", () => $79ee1b48c572ec2c$export$a15fff7fac404fd9);
|
|
860
|
+
$parcel$export($79ee1b48c572ec2c$exports, "CARD_ELEMENT_STYLE_FONTS_ATTR", () => $79ee1b48c572ec2c$export$c3a88e1ff160bfd6);
|
|
861
|
+
const $79ee1b48c572ec2c$export$e2bf52fc7723ec89 = [
|
|
862
|
+
'backgroundColor',
|
|
863
|
+
'color',
|
|
864
|
+
'fontFamily',
|
|
865
|
+
'fontSize',
|
|
866
|
+
'fontSmooth',
|
|
867
|
+
'fontStyle',
|
|
868
|
+
'fontVariant',
|
|
869
|
+
'fontWeight',
|
|
870
|
+
'lineHeight',
|
|
871
|
+
'letterSpacing',
|
|
872
|
+
'textAlign',
|
|
873
|
+
'padding',
|
|
874
|
+
'textDecoration',
|
|
875
|
+
'textShadow',
|
|
876
|
+
'textTransform'
|
|
877
|
+
];
|
|
878
|
+
const $79ee1b48c572ec2c$export$e22a44f86989e3f4 = {
|
|
879
|
+
fontSmooth: [
|
|
880
|
+
'-webkit-font-smoothing',
|
|
881
|
+
'-moz-osx-font-smoothing'
|
|
882
|
+
]
|
|
883
|
+
};
|
|
884
|
+
const $79ee1b48c572ec2c$export$b5b27feb4cf29129 = Object.keys($79ee1b48c572ec2c$export$e22a44f86989e3f4);
|
|
885
|
+
const $79ee1b48c572ec2c$export$fc323aec0bf844b = [
|
|
886
|
+
':hover',
|
|
887
|
+
':focus',
|
|
888
|
+
':read-only',
|
|
889
|
+
'::placeholder',
|
|
890
|
+
'::selection',
|
|
891
|
+
':disabled'
|
|
892
|
+
];
|
|
893
|
+
const $79ee1b48c572ec2c$export$a15fff7fac404fd9 = [
|
|
894
|
+
'base',
|
|
895
|
+
'complete',
|
|
896
|
+
'invalid',
|
|
897
|
+
'empty'
|
|
898
|
+
];
|
|
899
|
+
const $79ee1b48c572ec2c$export$c3a88e1ff160bfd6 = 'fonts';
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $eb72fa80cc6cce99$exports);
|
|
903
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $79ead0bc3913e130$exports);
|
|
904
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $51f46e0a98159b45$exports);
|
|
905
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $2ac94b510629d419$exports);
|
|
906
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $b2b484f7f4e683ed$exports);
|
|
907
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $e6da8ffa145ef6b4$exports);
|
|
908
|
+
$parcel$exportWildcard($94e2e5607fad631e$exports, $79ee1b48c572ec2c$exports);
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
$parcel$exportWildcard($001f46d7c9d998c1$exports, $94e2e5607fad631e$exports);
|
|
912
|
+
|
|
913
|
+
|
|
327
914
|
/**
|
|
328
915
|
* Attaches to window when importing via `<script>` tags.
|
|
329
916
|
*/ if (typeof window !== 'undefined' && document.currentScript && !window.basistheory) window.basistheory = (0, $316c9c8f85cead13$export$cbe2892587230861);
|
|
330
917
|
$parcel$exportWildcard(module.exports, $316c9c8f85cead13$exports);
|
|
918
|
+
$parcel$exportWildcard(module.exports, $001f46d7c9d998c1$exports);
|
|
331
919
|
|
|
332
920
|
|