1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/public/build/assets/app-253efa47.js

10 lines
11 KiB
JavaScript
Raw Normal View History

2023-09-26 00:24:51 +02:00
import{A as J}from"./index-08e160a7.js";import{c as u,g as X}from"./_commonjsHelpers-725317a4.js";var q={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},W=q,P={},b={};Object.defineProperty(b,"__esModule",{value:!0});b.clone=void 0;function K(e){return e?JSON.parse(JSON.stringify(e)):null}b.clone=K;var A={};Object.defineProperty(A,"__esModule",{value:!0});A.matches=void 0;function Q(e,r,t){var n=String(r).length,a=e.substr(0,n),i=parseInt(a,10);return r=parseInt(String(r).substr(0,a.length),10),t=parseInt(String(t).substr(0,a.length),10),i>=r&&i<=t}function Z(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function k(e,r){return Array.isArray(r)?Q(e,r[0],r[1]):Z(e,r)}A.matches=k;Object.defineProperty(P,"__esModule",{value:!0});P.addMatchingCardsToResults=void 0;var ee=b,re=A;function te(e,r,t){var n,a;for(n=0;n<r.patterns.length;n++){var i=r.patterns[n];if(re.matches(e,i)){var l=ee.clone(r);Array.isArray(i)?a=String(i[0]).length:a=String(i).length,e.length>=a&&(l.matchStrength=a),t.push(l);break}}}P.addMatchingCardsToResults=te;var R={};Object.defineProperty(R,"__esModule",{value:!0});R.isValidInputType=void 0;function ne(e){return typeof e=="string"||e instanceof String}R.isValidInputType=ne;var D={};Object.defineProperty(D,"__esModule",{value:!0});D.findBestMatch=void 0;function ae(e){var r=e.filter(function(t){return t.matchStrength}).length;return r>0&&r===e.length}function ie(e){return ae(e)?e.reduce(function(r,t){return!r||Number(r.matchStrength)<Number(t.matchStrength)?t:r}):null}D.findBestMatch=ie;var T=u&&u.__assign||function(){return T=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},T.apply(this,arguments)},z=W,se=P,oe=R,le=D,M=b,C={},o={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unio
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/window.axios=J;window.valid=Je;document.querySelectorAll(".disposable-alert").forEach(e=>{setTimeout(()=>{e.remove()},5e3)});