mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
110 lines
166 KiB
JavaScript
110 lines
166 KiB
JavaScript
|
import{A as pl}from"./index-08e160a7.js";import{c as Ht,g as hl}from"./_commonjsHelpers-725317a4.js";var gl={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}}},ml=gl,ti={},bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.clone=void 0;function vl(e){return e?JSON.parse(JSON.stringify(e)):null}bn.clone=vl;var ri={};Object.defineProperty(ri,"__esModule",{value:!0});ri.matches=void 0;function yl(e,r,n){var a=String(r).length,s=e.substr(0,a),l=parseInt(s,10);return r=parseInt(String(r).substr(0,s.length),10),n=parseInt(String(n).substr(0,s.length),10),l>=r&&l<=n}function bl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function _l(e,r){return Array.isArray(r)?yl(e,r[0],r[1]):bl(e,r)}ri.matches=_l;Object.defineProperty(ti,"__esModule",{value:!0});ti.addMatchingCardsToResults=void 0;var wl=bn,xl=ri;function Sl(e,r,n){var a,s;for(a=0;a<r.patterns.length;a++){var l=r.patterns[a];if(xl.matches(e,l)){var y=wl.clone(r);Array.isArray(l)?s=String(l[0]).length:s=String(l).length,e.length>=s&&(y.matchStrength=s),n.push(y);break}}}ti.addMatchingCardsToResults=Sl;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.isValidInputType=void 0;function El(e){return typeof e=="string"||e instanceof String}ni.isValidInputType=El;var ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.findBestMatch=void 0;function Ol(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function Cl(e){return Ol(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)<Number(n.matchStrength)?n:r}):null}ii.findBestMatch=Cl;var Qn=Ht&&Ht.__assign||function(){return Qn=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Qn.apply(this,arguments)},Po=ml,Al=ti,Tl=ni,Pl=ii,_n=bn,yn={},Tt={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-
|
||
|
`)}var k="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z=i(k),Me=i(k+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Qe=/[>/="'\u0009\u000a\u000c\u0020]/,$e={};function Ke(b){if($e.hasOwnProperty(b))return $e[b];const W=Qe.test(b);return W&&console.error(`unsafe attribute name: ${b}`),$e[b]=!W}var At={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ft=i("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),Se=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function Ue(b){if(Nt(b)){const W={};for(let ee=0;ee<b.length;ee++){const le=b[ee],qe=Ue(fr(le)?mt(le):le);if(qe)for(const tt in qe)W[tt]=qe[tt]}return W}else if(Ut(b))return b}var Le=/;(?![^(]*\))/g,He=/:(.+)/;function mt(b){const W={};return b.split(Le).forEach(ee=>{if(ee){const le=ee.split(He);le.length>1&&(W[le[0].trim()]=le[1].trim())}}),W}function Rt(b){let W="";if(!b)return W;for(const ee in b){const le=b[ee],qe=ee.startsWith("--")?ee:Kn(ee);(fr(le)||typeof le=="number"&&Ft(qe))&&(W+=`${qe}:${le};`)}return W}function Bt(b){let W="";if(fr(b))W=b;else if(Nt(b))for(let ee=0;ee<b.length;ee++){const le=Bt(b[ee]);le&&(W+=le+" ")}else if(Ut(b))for(const ee in b)b[ee]&&(W+=ee+" ");return W.trim()}var xr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",rn="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",nn="area,base,br,col,embed,hr,img,input,link,meta,param,source
|
||
|
|
||
|
${o?'Expression: "'+o+`"
|
||
|
|
||
|
`:""}`,i),setTimeout(()=>{throw t},0)}var h=!0;function w(t){let i=h;h=!1;let o=t();return h=i,o}function S(t,i,o={}){let c;return A(t,i)(p=>c=p,o),c}function A(...t){return $(...t)}var $=G;function B(t){$=t}function G(t,i){let o={};_r(o,t);let c=[o,...Vt(t)],p=typeof i=="function"?ae(c,i):Ne(c,i,t);return bi.bind(null,t,i,p)}function ae(t,i){return(o=()=>{},{scope:c={},params:p=[]}={})=>{let d=i.apply(Xt([c,...t]),p);Ie(o,d)}}var oe={};function ke(t,i){if(oe[t])return oe[t];let o=Object.getPrototypeOf(async function(){}).constructor,c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,d=(()=>{try{let g=new o(["__self","scope"],`with (scope) { __self.result = ${c} }; __self.finished = true; return __self.result;`);return Object.defineProperty(g,"name",{value:`[Alpine] ${t}`}),g}catch(g){return f(g,i,t),Promise.resolve()}})();return oe[t]=d,d}function Ne(t,i,o){let c=ke(i,o);return(p=()=>{},{scope:d={},params:g=[]}={})=>{c.result=void 0,c.finished=!1;let x=Xt([d,...t]);if(typeof c=="function"){let k=c(c,x).catch(Z=>f(Z,o,i));c.finished?(Ie(p,c.result,x,g,o),c.result=void 0):k.then(Z=>{Ie(p,Z,x,g,o)}).catch(Z=>f(Z,o,i)).finally(()=>c.result=void 0)}}}function Ie(t,i,o,c,p){if(h&&typeof i=="function"){let d=i.apply(o,c);d instanceof Promise?d.then(g=>Ie(t,g,o,c)).catch(g=>f(g,p,i)):t(d)}else typeof i=="object"&&i instanceof Promise?i.then(d=>t(d)):t(i)}var xe="x-";function Ae(t=""){return xe+t}function De(t){xe=t}var Xe={};function ye(t,i){return Xe[t]=i,{before(o){if(!Xe[o]){console.warn(String.raw`Cannot find directive \`${o}\`. \`${t}\` will use the default order of execution`);return}const c=sr.indexOf(o);sr.splice(c>=0?c:sr.indexOf("DEFAULT"),0,t)}}}function et(t,i,o){if(i=Array.from(i),t._x_virtualDirectives){let d=Object.entries(t._x_virtualDirectives).map(([x,k])=>({name:x,value:k})),g=ut(d);d=d.map(x=>g.find(k=>k.name===x.name)?{name:`x-bind:${x.name}`,value:`"${x.value}"`}:x),i=i.concat(d)}let c={};return i.map($t((d,g)=>c[d]=g)).filter(Wt).map(or(c,o)).sort(ds).map(d=>An(t,d))}function ut(t){return Array.from(t).map($t()).filter(i=>!Wt(i))}var St=!1,ot=new Map,Dt=Symbol();function wr(t){St=!0;let i=Symbol();Dt=i,ot.set(i,[]);let o=()=>{for(;ot.get(i).length;)ot.get(i).shift()();ot.delete(i)},c=()=>{St=!1,o()};t(o),c()}function Qt(t){let i=[],o=x=>i.push(x),[c,p]=xt(t);return i.push(p),[{Alpine:tn,effect:c,cleanup:o,evaluateLater:A.bind(A,t),evaluate:S.bind(S,t)},()=>i.forEach(x=>x())]}function An(t,i){let o=()=>{},c=Xe[i.type]||o,[p,d]=Qt(t);ge(t,i.original,d);let g=()=>{t._x_ignore||t._x_ignoreSelf||(c.inline&&c.inline(t,i,p),c=c.bind(c,t,i,p),St?ot.get(Dt).push(c):c())};return g.runCleanups=d,g}var Yr=(t,i)=>({name:o,value:c})=>(o.startsWith(t)&&(o=o.replace(t,i)),{name:o,value:c}),Xr=t=>t;function $t(t=()=>{}){return({name:i,value:o})=>{let{name:c,value:p}=Qr.reduce((d,g)=>g(d),{name:i,value:o});return c!==i&&t(c,i),{name:c,value:p}}}var Qr=[];function zt(t){Qr.push(t)}function Wt({name:t}){return Kt().test(t)}var Kt=()=>new RegExp(`^${xe}([^:^.]+)\\b`);function or(t,i){return({name:o,value:c})=>{let p=o.match(Kt()),d=o.match(/:([a-zA-Z0-9\-_:]+)/),g=o.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],x=i||t[o]||o;return{type:p?p[1]:null,value:d?d[1]:null,modifiers:g.map(k=>k.replace(".","")),expression:c,original:x}}}var Zr="DEFAULT",sr=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Zr,"teleport"];function ds(t,i){let o=sr.indexOf(t.type)===-1?Zr:t.type,c=sr.indexOf(i.type)===-1?Zr:i.type;return sr.indexOf(o)-sr.indexOf(c)}var _i=[],wi=!1;function xi(t=()=>{}){return queueMicrotask(()=>{wi||setTimeout(()=>{Si()})}),new Promise(i=>{_i.push(()=>{t(),i()})})}function Si(){for(wi=!1;_i.length;)_i.shift()()}function ps(){wi=!0}function Ei(t,i){return Array.isArray(i)?wa(t,i.join(" ")):typeof i=="object"&&i!==null?hs(t,i):typeof i=="function"?Ei(t,i()):wa(t,i)}function wa(t,i){let o=p=>p.split(" ").filter(d=>!t.classList.contains(d)).filter(Boolean),c=p=>(t.classList.add(...p),()=>{t.classList.remove(...p)});return i=i===!0?i="":i|
|
||
|
Would you like to refresh the page?`)&&window.location.reload()}function Vu(e){Ho(e)}var zo=rt(wt()),pa={},Wo;function ft(e,r,n=null){pa[e]=r}function zu(e){Wo=e}var ro={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function Wu(e,r){return new Proxy({},{get(n,a){if(a==="__instance")return e;if(a in ro)return no(e,ro[a]);if(a in pa)return no(e,a);if(a in r)return r[a];if(!["then"].includes(a))return Ku(e)(a)},set(n,a,s){return a in r&&(r[a]=s),!0}})}function no(e,r){return pa[r](e)}function Ku(e){return Wo(e)}zo.default.magic("wire",(e,{cleanup:r})=>{let n;return new Proxy({},{get(a,s){return n||(n=rr(e)),["$entangle","entangle"].includes(s)?Fo(n,r):n.$wire[s]},set(a,s,l){return n||(n=rr(e)),n.$wire[s]=l,!0}})});ft("__instance",e=>e);ft("$get",e=>(r,n=!0)=>Jt(n?e.reactive:e.ephemeral,r));ft("$el",e=>e.el);ft("$id",e=>e.id);ft("$set",e=>async(r,n,a=!0)=>(di(e.reactive,r,n),a?(e.queueUpdate(r,n),await Vo(e)):Promise.resolve()));ft("$call",e=>async(r,...n)=>await e.$wire[r](...n));ft("$entangle",e=>(r,n=!1)=>Fo(e)(r,n));ft("$toggle",e=>(r,n=!0)=>e.$wire.set(r,!e.$wire.get(r),n));ft("$watch",e=>(r,n)=>{let a=!0,s;zo.default.effect(()=>{let l=Jt(e.reactive,r);JSON.stringify(l),a?s=l:queueMicrotask(()=>{n(l,s),s=l}),a=!1})});ft("$refresh",e=>e.$wire.$commit);ft("$commit",e=>async()=>await Vo(e));ft("$on",e=>(...r)=>ic(e,...r));ft("$dispatch",e=>(...r)=>Jo(e,...r));ft("$dispatchSelf",e=>(...r)=>Hr(e,...r));ft("$dispatchTo",()=>(...e)=>ha(...e));ft("$upload",e=>(...r)=>Mu(e,...r));ft("$uploadMultiple",e=>(...r)=>ku(e,...r));ft("$removeUpload",e=>(...r)=>Lu(e,...r));ft("$cancelUpload",e=>(...r)=>ju(e,...r));var Yi=new WeakMap;ft("$parent",e=>{if(Yi.has(e))return Yi.get(e).$wire;let r=rr(e.el.parentElement);return Yi.set(e,r),r.$wire});var Ur=new WeakMap;function Ju(e,r,n){Ur.has(e)||Ur.set(e,{});let a=Ur.get(e);a[r]=n,Ur.set(e,a)}zu(e=>r=>async(...n)=>{if(n.length===1&&n[0]instanceof Event&&(n=[]),Ur.has(e)){let a=Ur.get(e);if(typeof a[r]=="function")return a[r](n)}return await Uu(e,r,n)});var Gu=class{constructor(e){if(e.__livewire)throw"Component already initialized";if(e.__livewire=this,this.el=e,this.id=e.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=e.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(e.getAttribute("wire:effects")),this.originalEffects=mr(this.effects),this.canonical=Br(mr(this.snapshot.data)),this.ephemeral=Br(mr(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=Wu(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(e,r,n={}){let a=JSON.parse(e),s=mr(this.canonical),l=this.applyUpdates(s,n),y=Br(mr(a.data)),m=da(l,y);this.snapshotEncoded=e,this.snapshot=a,this.effects=r,this.canonical=Br(mr(a.data));let L=Br(mr(a.data));return Object.entries(m).forEach(([q,ce])=>{let se=q.split(".")[0];this.reactive[se]=L[se]}),m}queueUpdate(e,r){this.queuedUpdates[e]=r}mergeQueuedUpdates(e){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(e).forEach(([a,s])=>{a.startsWith(n)&&delete e[a]}),e[r]=n}),this.queuedUpdates=[],e}applyUpdates(e,r){for(let n in r)di(e,n,r[n]);return e}replayUpdate(e,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(e),n),this.processEffects({html:r})}processEffects(e){lt("effects",this,e),lt("effect",{component:this,effects:e,cleanup:r=>this.addCleanup(r)})}get children(){let e=this.snapshot.memo;return Object.values(e.children).map(n=>n[1]).map(n=>Qu(n))}inscribeSnapshotAndEffectsOnElement(){let e=this.el;e.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listener
|
||
|
for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {
|
||
|
p[k] = arguments[k];
|
||
|
}
|
||
|
return [].concat(p);
|
||
|
})(${a[2]})`)(this.eventContext)),{method:r,params:n}}},lc=rt(bu()),uc=rt(_u()),cc=rt(wu()),fc=rt(xu()),dc=rt(Su());function pc(){let e=new URL(window.location.href,document.baseURI);vc(e,document.documentElement.outerHTML)}function hc(e){window.addEventListener("popstate",r=>{let a=(r.state||{}).alpine||{};if(!a._html)return;let s=yc(a._html);e(s)})}function gc(e,r){mc(r,e)}function mc(e,r){Go("pushState",e,r)}function vc(e,r){Go("replaceState",e,r)}function Go(e,r,n){let a=new Date().getTime();Yo(a,n);let s=history.state||{};s.alpine||(s.alpine={}),s.alpine._html=a;try{history[e](s,document.title,r)}catch(l){l instanceof DOMException&&l.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+r),console.error(l)}}function yc(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function Yo(e,r){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(r))}catch(n){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(n.code))return;let a=Object.keys(sessionStorage).map(s=>Number(s.replace("alpine:",""))).sort().shift();if(!a)return;sessionStorage.removeItem("alpine:"+a),Yo(e,r)}}function bc(e,r){let n=l=>!l.isTrusted,a=l=>l.which>1||l.altKey||l.ctrlKey||l.metaKey||l.shiftKey,s=l=>l.which!==13||l.altKey||l.ctrlKey||l.metaKey||l.shiftKey;e.addEventListener("click",l=>{if(n(l)){l.preventDefault(),r(y=>y());return}a(l)||l.preventDefault()}),e.addEventListener("mousedown",l=>{a(l)||(l.preventDefault(),r(y=>{let m=L=>{L.preventDefault(),y(),e.removeEventListener("mouseup",m)};e.addEventListener("mouseup",m)}))}),e.addEventListener("keydown",l=>{s(l)||(l.preventDefault(),r(y=>y()))})}function _c(e,r=60,n){e.addEventListener("mouseenter",a=>{let s=setTimeout(()=>{n(a)},r),l=()=>{clearTimeout(s),e.removeEventListener("mouseleave",l)};e.addEventListener("mouseleave",l)})}function io(e){return ga(e.getAttribute("href"))}function ga(e){return new URL(e,document.baseURI)}function wc(e,r){let n=e.pathname+e.search;Xo(n,(a,s)=>{r(a,s)})}function Xo(e,r){let n={headers:{"X-Livewire-Navigate":""}};lt("navigate.request",{url:e,options:n});let a;fetch(e,n).then(s=>(a=ga(s.url),s.text())).then(s=>{r(s,a)})}var Pt={};function ao(e,r){let n=e.pathname;Pt[n]||(Pt[n]={finished:!1,html:null,whenFinished:()=>{}},Xo(n,(a,s)=>{r(a,s)}))}function oo(e,r,n){let a=Pt[r.pathname];a.html=e,a.finished=!0,a.finalDestination=n,a.whenFinished()}function xc(e,r,n){let a=e.pathname+e.search;if(!Pt[a])return n();if(Pt[a].finished){let s=Pt[a].html,l=Pt[a].finalDestination;return delete Pt[a],r(s,l)}else Pt[a].whenFinished=()=>{let s=Pt[a].html,l=Pt[a].finalDestination;delete Pt[a],r(s,l)}}var ma=rt(wt());function so(e){ma.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(r=>r._x_teleport.remove())})}function lo(e){ma.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(r=>r.remove())})}function uo(e){ma.default.walk(e,(r,n)=>{r._x_teleport&&(r._x_teleportPutBack(),n())})}function Sc(e){return e.hasAttribute("data-teleport-target")}function co(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function fo(){let e=r=>{r.hasAttribute("data-scroll-x")?(r.scrollTo({top:Number(r.getAttribute("data-scroll-y")),left:Number(r.getAttribute("data-scroll-x")),behavior:"instant"}),r.removeAttribute("data-scroll-x"),r.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var ra=rt(wt()),vn={};function po(e){vn={},document.querySelectorAll("[x-persist]").forEach(r=>{vn[r.getAttribute("x-persist")]=r,e(r),ra.default.mutateDom(()=>{r.remove()})})}function ho(e){let r=[];document.querySelectorAll("[x-persist]").forEach(n=>{let a=vn[n.getAttribute("
|
||
|
|
||
|
#nprogress {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
#nprogress .bar {
|
||
|
background: var(--livewire-progress-bar-color, #29d);
|
||
|
|
||
|
position: fixed;
|
||
|
z-index: 1031;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
|
||
|
width: 100%;
|
||
|
height: 2px;
|
||
|
}
|
||
|
|
||
|
/* Fancy blur effect */
|
||
|
#nprogress .peg {
|
||
|
display: block;
|
||
|
position: absolute;
|
||
|
right: 0px;
|
||
|
width: 100px;
|
||
|
height: 100%;
|
||
|
box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);
|
||
|
opacity: 1.0;
|
||
|
|
||
|
-webkit-transform: rotate(3deg) translate(0px, -4px);
|
||
|
-ms-transform: rotate(3deg) translate(0px, -4px);
|
||
|
transform: rotate(3deg) translate(0px, -4px);
|
||
|
}
|
||
|
|
||
|
/* Remove these to get rid of the spinner */
|
||
|
#nprogress .spinner {
|
||
|
display: block;
|
||
|
position: fixed;
|
||
|
z-index: 1031;
|
||
|
top: 15px;
|
||
|
right: 15px;
|
||
|
}
|
||
|
|
||
|
#nprogress .spinner-icon {
|
||
|
width: 18px;
|
||
|
height: 18px;
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
border: solid 2px transparent;
|
||
|
border-top-color: var(--livewire-progress-bar-color, #29d);
|
||
|
border-left-color: var(--livewire-progress-bar-color, #29d);
|
||
|
border-radius: 50%;
|
||
|
|
||
|
-webkit-animation: nprogress-spinner 400ms linear infinite;
|
||
|
animation: nprogress-spinner 400ms linear infinite;
|
||
|
}
|
||
|
|
||
|
.nprogress-custom-parent {
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.nprogress-custom-parent #nprogress .spinner,
|
||
|
.nprogress-custom-parent #nprogress .bar {
|
||
|
position: absolute;
|
||
|
}
|
||
|
|
||
|
@-webkit-keyframes nprogress-spinner {
|
||
|
0% { -webkit-transform: rotate(0deg); }
|
||
|
100% { -webkit-transform: rotate(360deg); }
|
||
|
}
|
||
|
@keyframes nprogress-spinner {
|
||
|
0% { transform: rotate(0deg); }
|
||
|
100% { transform: rotate(360deg); }
|
||
|
}
|
||
|
`;let r=Au();r&&(e.nonce=r),document.head.appendChild(e)}var Xi=[],Qo=["data-csrf","aria-hidden"];function go(e,r){let n=new DOMParser().parseFromString(e,"text/html"),a=document.adoptNode(n.body),s=document.adoptNode(n.head);Xi=Xi.concat(Array.from(document.body.querySelectorAll("script")).map(m=>rs(ns(m.outerHTML,Qo))));let l=()=>{};Pc(s).finally(()=>{l()}),Tc(a,Xi);let y=document.body;document.body.replaceWith(a),Alpine.destroyTree(y),r(m=>l=m)}function Tc(e,r){e.querySelectorAll("script").forEach(n=>{if(n.hasAttribute("data-navigate-once")){let a=rs(ns(n.outerHTML,Qo));if(r.includes(a))return}n.replaceWith(Zo(n))})}function Pc(e){let r=Array.from(document.head.children),n=r.map(l=>l.outerHTML),a=document.createDocumentFragment(),s=[];for(let l of Array.from(e.children))if(vo(l))if(n.includes(l.outerHTML))a.appendChild(l);else if(es(l)&&Nc(l,r)&&setTimeout(()=>window.location.reload()),ts(l))try{s.push(Rc(Zo(l)))}catch{}else document.head.appendChild(l);for(let l of Array.from(document.head.children))vo(l)||l.remove();for(let l of Array.from(e.children))document.head.appendChild(l);return Promise.all(s)}async function Rc(e){return new Promise((r,n)=>{e.src?(e.onload=()=>r(),e.onerror=()=>n()):r(),document.head.appendChild(e)})}function Zo(e){let r=document.createElement("script");r.textContent=e.textContent,r.async=e.async;for(let n of e.attributes)r.setAttribute(n.name,n.value);return r}function es(e){return e.hasAttribute("data-navigate-track")}function Nc(e,r){let[n,a]=mo(e);return r.some(s=>{if(!es(s))return!1;let[l,y]=mo(s);if(l===n&&a!==y)return!0})}function mo(e){return(ts(e)?e.src:e.href).split("?")}function vo(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function ts(e){return e.tagName.toLowerCase()==="script"}function rs(e){return e.split("").reduce((r,n)=>(r=(r<<5)-r+n.charCodeAt(0),r&r),0)}function ns(e,r){let n=e;return r.forEach(a=>{const s=new RegExp(`${a}="[^"]*"|${a}='[^']*'`,"g");n=n.replace(s,"")}),n=n.replaceAll(" ",""),n.trim()}var Qi=!0;function Mc(e){e.navigate=n=>{r(ga(n))},e.navigate.disableProgressBar=()=>{Qi=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(n,{modifiers:a})=>{a.includes("hover")&&_c(n,60,()=>{let l=io(n);ao(l,(y,m)=>{oo(y,l,m)})}),bc(n,l=>{let y=io(n);ao(y,(m,L)=>{oo(m,y,L)}),l(()=>{r(y)})})});function r(n){Qi&&Oc(),kc(n,(a,s)=>{Yn("alpine:navigating"),co(),Qi&&Cc(),Lc(),pc(),yo(e,l=>{po(y=>{so(y)}),go(a,y=>{lo(document.body),ho((m,L)=>{uo(m)}),fo(),gc(a,s),Yn("alpine:navigated"),y(()=>{l(()=>{setTimeout(()=>{}),bo(e)})})})})})}hc(n=>{co(),yo(e,a=>{po(s=>{so(s)}),go(n,()=>{lo(document.body),ho((s,l)=>{uo(s)}),fo(),Yn("alpine:navigated"),a(()=>{bo(e)})})})}),setTimeout(()=>{Yn("alpine:navigated")})}function kc(e,r){xc(e,r,()=>{wc(e,r)})}function yo(e,r){e.stopObservingMutations(),r(n=>{e.startObservingMutations(),queueMicrotask(()=>{n()})})}function Yn(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function bo(e){e.initTree(document.body,void 0,(r,n)=>{r._x_wasPersisted&&n()})}function Lc(){let e=function(r,n){Alpine.walk(r,(a,s)=>{Ec(a)&&s(),Sc(a)?s():n(a,s)})};Alpine.destroyTree(document.body,e)}function jc(e){e.magic("queryString",(r,{interceptor:n})=>{let a,s=!1,l=!1;return n((y,m,L,q,ce)=>{let se=a||q,{initial:K,replace:Y,push:E,pop:v}=ia(se,y,s);return L(K),l?(e.effect(()=>E(m())),v(async _=>{L(_),await(()=>Promise.resolve())()})):e.effect(()=>Y(m())),K},y=>{y.alwaysShow=()=>(s=!0,y),y.usePush=()=>(l=!0,y),y.as=m=>(a=m,y)})}),e.history={track:ia}}function ia(e,r,n=!1){let{has:a,get:s,set:l,remove:y}=Dc(),m=new URL(window.location.href),L=a(m,e),q=L?s(m,e):r,ce=JSON.stringify(q),se=E=>JSON.stringify(E)===ce;n&&(m=l(m,e,q)),_o(m,e,{value:q});let K=!1,Y=(E,v)=>{if(K)return;let _=new URL(window.location.href);!n&&!L&&se(v)||v===void 0?_=y(_,e):_=l(_,e,v),E(_,e,{value:v})};return{initial:q,replace(E){Y(_o,E)},push(E){Y(Ic,E)},pop(E){let v=_=>{!_.state||!_.state.alpine||Object.entries(_.state.alpine).forEach((
|
||
|
`),n===""&&(n="Are you sure?"),e.__livewire_confirm=(s,l)=>{if(a){let[y,m]=n.split("|");m?prompt(y)===m?s():l():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(n)?s():l()}});function br(e,r,n,a=null){if(n=r.modifiers.includes("remove")?!n:n,r.modifiers.includes("class")){let s=r.expression.split(" ");n?e.classList.add(...s):e.classList.remove(...s)}else if(r.modifiers.includes("attr"))n?e.setAttribute(r.expression,!0):e.removeAttribute(r.expression);else{let s=a??window.getComputedStyle(e,null).getPropertyValue("display"),l=["inline","block","table","flex","grid","inline-flex"].filter(y=>r.modifiers.includes(y))[0]||"inline-block";l=r.modifiers.includes("remove")?s:l,e.style.display=n?l:"none"}}var sa=new Set,la=new Set;window.addEventListener("offline",()=>sa.forEach(e=>e()));window.addEventListener("online",()=>la.forEach(e=>e()));Lt("offline",({el:e,directive:r,cleanup:n})=>{let a=()=>br(e,r,!0),s=()=>br(e,r,!1);sa.add(a),la.add(s),n(()=>{sa.delete(a),la.delete(s)})});Lt("loading",({el:e,directive:r,component:n})=>{let a=mf(e),[s,l]=df(r);pf(n,a,[()=>s(()=>br(e,r,!0)),()=>l(()=>br(e,r,!1))]),hf(n,a,[()=>s(()=>br(e,r,!0)),()=>l(()=>br(e,r,!1))])});function df(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[l=>l(),l=>l()];let r=200,n={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(n).some(l=>{if(e.modifiers.includes(l))return r=n[l],!0});let a,s=!1;return[l=>{a=setTimeout(()=>{l(),s=!0},r)},async l=>{s?(await l(),s=!1):clearTimeout(a)}]}function pf(e,r,[n,a]){ze("commit",({component:s,commit:l,respond:y})=>{s===e&&(r.length>0&&!gf(l,r)||(n(),y(()=>{a()})))})}function hf(e,r,[n,a]){let s=l=>{let{id:y,property:m}=l.detail;return y!==e.id||r.length>0&&!r.map(L=>L.target).includes(m)};window.addEventListener("livewire-upload-start",l=>{s(l)||n()}),window.addEventListener("livewire-upload-finish",l=>{s(l)||a()}),window.addEventListener("livewire-upload-error",l=>{s(l)||a()})}function gf(e,r){let{updates:n,calls:a}=e;return r.some(({target:s,params:l})=>{if(l)return a.some(({method:m,params:L})=>s===m&&l===ls(JSON.stringify(L)));if(Object.keys(n).some(m=>m.includes(".")&&m.split(".")[0]===s?!0:m===s)||a.map(m=>m.method).includes(s))return!0})}function mf(e){let r=hi(e),n=[];if(r.has("target")){let a=r.get("target"),s=a.expression;s.includes("(")&&s.includes(")")?n.push({target:a.method,params:ls(JSON.stringify(a.params))}):s.includes(",")?s.split(",").map(l=>l.trim()).forEach(l=>{n.push({target:l})}):n.push({target:s})}else{let a=["init","dirty","offline","target","loading","poll","ignore","key","id"];r.all().filter(s=>!a.includes(s.value)).map(s=>s.expression.split("(")[0]).forEach(s=>n.push({target:s}))}return n}function ls(e){return btoa(encodeURIComponent(e))}Lt("stream",({el:e,directive:r,cleanup:n})=>{let{expression:a,modifiers:s}=r,l=ze("stream",({name:y,content:m,replace:L})=>{y===a&&(s.includes("replace")||L?e.innerHTML=m:e.innerHTML=e.innerHTML+m)});n(l)});ze("request",({respond:e})=>{e(r=>{let n=r.response;n.headers.has("X-Livewire-Stream")&&(r.response={ok:!0,redirected:!1,status:200,async text(){let a=await vf(n,s=>{lt("stream",s)});return $o(a)&&(this.ok=!1),a}})})});async function vf(e,r){let n=e.body.getReader(),a="";for(;;){let{done:s,value:l}=await n.read(),m=new TextDecoder().decode(l),[L,q]=yf(a+m);if(L.forEach(ce=>{r(ce)}),a=q,s)return a}}function yf(e){let r=/({"stream":true.*?"endStream":true})/g,n=e.match(r),a=[];if(n)for(let l=0;l<n.length;l++)a.push(JSON.parse(n[l]).body);let s=e.replace(r,"");return[a,s]}Lt("ignore",({el:e,directive:r})=>{r.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var us=new jo;ze("commit",({component:e,respond:r})=>{r(()=>{setTimeout(()=>{us.each(e,n=>n(!1))})})});Lt("dirty",({el:e,directive:r,component:n})=>{let a=bf(e);Alpine.reactive({state:!1});let s=!1,l=e.style.display,y=m=>{br(e,r,m,l),s=m};us.add(n,y),Alpine.effect(()=>{let m=!1;if(a.length===0)m=JSON.stringify(n.canonical)!==JSON.stringify(n.reactive);else for(let L=0;L<a.le
|
||
|
* @license MIT *//*! Bundled license information:
|
||
|
|
||
|
tabbable/dist/index.js:
|
||
|
(*!
|
||
|
* tabbable 5.3.3
|
||
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||
|
*)
|
||
|
|
||
|
focus-trap/dist/focus-trap.js:
|
||
|
(*!
|
||
|
* focus-trap 6.9.4
|
||
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||
|
*)
|
||
|
*//**
|
||
|
* 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
|
||
|
*/_a.start();window.axios=pl;window.valid=pu;document.querySelectorAll(".disposable-alert").forEach(e=>{setTimeout(()=>{e.remove()},5e3)});
|