2024-08-15 23:27:17 +02:00
|
|
|
import{A as Sl}from"./index-08e160a7.js";import{c as zt,g as El}from"./_commonjsHelpers-725317a4.js";var Ol={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}}},Cl=Ol,ni={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.clone=void 0;function Al(e){return e?JSON.parse(JSON.stringify(e)):null}Sn.clone=Al;var ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.matches=void 0;function Tl(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 Pl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function Rl(e,r){return Array.isArray(r)?Tl(e,r[0],r[1]):Pl(e,r)}ii.matches=Rl;Object.defineProperty(ni,"__esModule",{value:!0});ni.addMatchingCardsToResults=void 0;var Ml=Sn,kl=ii;function Nl(e,r,n){var a,s;for(a=0;a<r.patterns.length;a++){var l=r.patterns[a];if(kl.matches(e,l)){var v=Ml.clone(r);Array.isArray(l)?s=String(l[0]).length:s=String(l).length,e.length>=s&&(v.matchStrength=s),n.push(v);break}}}ni.addMatchingCardsToResults=Nl;var ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.isValidInputType=void 0;function Ll(e){return typeof e=="string"||e instanceof String}ai.isValidInputType=Ll;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.findBestMatch=void 0;function jl(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function Il(e){return jl(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)<Number(n.matchStrength)?n:r}):null}oi.findBestMatch=Il;var ti=zt&&zt.__assign||function(){return ti=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},ti.apply(this,arguments)},Fo=Cl,Dl=ni,$l=ai,Fl=oi,En=Sn,xn={},Pt={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-
|
|
|
|
`)}var M="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z=i(M),Me=i(M+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Qe=/[>/="'\u0009\u000a\u000c\u0020]/,De={};function Je(b){if(De.hasOwnProperty(b))return De[b];const W=Qe.test(b);return W&&console.error(`unsafe attribute name: ${b}`),De[b]=!W}var Tt={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ut=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"),we=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(Dt(b)){const W={};for(let ee=0;ee<b.length;ee++){const fe=b[ee],qe=Ue(vr(fe)?_t(fe):fe);if(qe)for(const et in qe)W[et]=qe[et]}return W}else if(qt(b))return b}var Ne=/;(?![^(]*\))/g,He=/:(.+)/;function _t(b){const W={};return b.split(Ne).forEach(ee=>{if(ee){const fe=ee.split(He);fe.length>1&&(W[fe[0].trim()]=fe[1].trim())}}),W}function It(b){let W="";if(!b)return W;for(const ee in b){const fe=b[ee],qe=ee.startsWith("--")?ee:Xn(ee);(vr(fe)||typeof fe=="number"&&Ut(qe))&&(W+=`${qe}:${fe};`)}return W}function Ht(b){let W="";if(vr(b))W=b;else if(Dt(b))for(let ee=0;ee<b.length;ee++){const fe=Ht(b[ee]);fe&&(W+=fe+" ")}else if(qt(b))for(const ee in b)b[ee]&&(W+=ee+" ");return W.trim()}var Tr="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",sn="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",ln="area,base,br,col,embed,hr,img,input,link,meta,param,source
|
|
|
|
|
|
|
|
${o?'Expression: "'+o+`"
|
|
|
|
|
|
|
|
`:""}`,i),setTimeout(()=>{throw t},0)}var cr=!0;function An(t){let i=cr;cr=!1;let o=t();return cr=i,o}function Kt(t,i,o={}){let c;return bt(t,i)(d=>c=d,o),c}function bt(...t){return Tn(...t)}var Tn=Qr;function Pn(t){Tn=t}function Qr(t,i){let o={};Wt(o,t);let c=[o,...q(t)],d=typeof i=="function"?yi(c,i):_i(c,i,t);return ur.bind(null,t,i,d)}function yi(t,i){return(o=()=>{},{scope:c={},params:d=[]}={})=>{let p=i.apply(ce([c,...t]),d);Cr(o,p)}}var Zr={};function bi(t,i){if(Zr[t])return Zr[t];let o=Object.getPrototypeOf(async function(){}).constructor,c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,p=(()=>{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 er(g,i,t),Promise.resolve()}})();return Zr[t]=p,p}function _i(t,i,o){let c=bi(i,o);return(d=()=>{},{scope:p={},params:g=[]}={})=>{c.result=void 0,c.finished=!1;let x=ce([p,...t]);if(typeof c=="function"){let M=c(c,x).catch(Z=>er(Z,o,i));c.finished?(Cr(d,c.result,x,g,o),c.result=void 0):M.then(Z=>{Cr(d,Z,x,g,o)}).catch(Z=>er(Z,o,i)).finally(()=>c.result=void 0)}}}function Cr(t,i,o,c,d){if(cr&&typeof i=="function"){let p=i.apply(o,c);p instanceof Promise?p.then(g=>Cr(t,g,o,c)).catch(g=>er(g,d,i)):t(p)}else typeof i=="object"&&i instanceof Promise?i.then(p=>t(p)):t(i)}var en="x-";function Jt(t=""){return en+t}function Rn(t){en=t}var fr={};function st(t,i){return fr[t]=i,{before(o){if(!fr[o]){console.warn(String.raw`Cannot find directive \`${o}\`. \`${t}\` will use the default order of execution`);return}const c=Ke.indexOf(o);Ke.splice(c>=0?c:Ke.indexOf("DEFAULT"),0,t)}}}function f(t){return Object.keys(fr).includes(t)}function h(t,i,o){if(i=Array.from(i),t._x_virtualDirectives){let p=Object.entries(t._x_virtualDirectives).map(([x,M])=>({name:x,value:M})),g=w(p);p=p.map(x=>g.find(M=>M.name===x.name)?{name:`x-bind:${x.name}`,value:`"${x.value}"`}:x),i=i.concat(p)}let c={};return i.map(Pe((p,g)=>c[p]=g)).filter(Re).map(rt(c,o)).sort(ct).map(p=>se(t,p))}function w(t){return Array.from(t).map(Pe()).filter(i=>!Re(i))}var E=!1,R=new Map,F=Symbol();function B(t){E=!0;let i=Symbol();F=i,R.set(i,[]);let o=()=>{for(;R.get(i).length;)R.get(i).shift()();R.delete(i)},c=()=>{E=!1,o()};t(o),c()}function G(t){let i=[],o=x=>i.push(x),[c,d]=yt(t);return i.push(d),[{Alpine:on,effect:c,cleanup:o,evaluateLater:bt.bind(bt,t),evaluate:Kt.bind(Kt,t)},()=>i.forEach(x=>x())]}function se(t,i){let o=()=>{},c=fr[i.type]||o,[d,p]=G(t);Ve(t,i.original,p);let g=()=>{t._x_ignore||t._x_ignoreSelf||(c.inline&&c.inline(t,i,d),c=c.bind(c,t,i,d),E?R.get(F).push(c):c())};return g.runCleanups=p,g}var le=(t,i)=>({name:o,value:c})=>(o.startsWith(t)&&(o=o.replace(t,i)),{name:o,value:c}),ke=t=>t;function Pe(t=()=>{}){return({name:i,value:o})=>{let{name:c,value:d}=Fe.reduce((p,g)=>g(p),{name:i,value:o});return c!==i&&t(c,i),{name:c,value:d}}}var Fe=[];function _e(t){Fe.push(t)}function Re({name:t}){return je().test(t)}var je=()=>new RegExp(`^${en}([^:^.]+)\\b`);function rt(t,i){return({name:o,value:c})=>{let d=o.match(je()),p=o.match(/:([a-zA-Z0-9\-_:]+)/),g=o.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],x=i||t[o]||o;return{type:d?d[1]:null,value:p?p[1]:null,modifiers:g.map(M=>M.replace(".","")),expression:c,original:x}}}var Ie="DEFAULT",Ke=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Ie,"teleport"];function ct(t,i){let o=Ke.indexOf(t.type)===-1?Ie:t.type,c=Ke.indexOf(i.type)===-1?Ie:i.type;return Ke.indexOf(o)-Ke.indexOf(c)}function mt(t,i,o={}){t.dispatchEvent(new CustomEvent(i,{detail:o,bubbles:!0,composed:!0,cancelable:!0}))}function Xe(t,i){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(d=>Xe(d,i));return}let o=!1;if(i(t,()=>o=!0),o)return;let c=t.firstElementChild;for(;c;)Xe(c,i),c=c.nextElementSibling}function ft(t,...i){console.warn(`Alpine Warning: ${t}`,...i)}var dr=!1;function pr(){dr&&ft("Alpine has already been initialize
|
|
|
|
Would you like to refresh the page?`)&&window.location.reload()}function tc(e){Qo(e)}var ts=tt(Ot()),ba={},rs;function pt(e,r,n=null){ba[e]=r}function rc(e){rs=e}var po={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 nc(e,r){return new Proxy({},{get(n,a){if(a==="__instance")return e;if(a in po)return ho(e,po[a]);if(a in ba)return ho(e,a);if(a in r)return r[a];if(!["then"].includes(a))return ic(e)(a)},set(n,a,s){return a in r&&(r[a]=s),!0}})}function ho(e,r){return ba[r](e)}function ic(e){return rs(e)}ts.default.magic("wire",(e,{cleanup:r})=>{let n;return new Proxy({},{get(a,s){return n||(n=or(e)),["$entangle","entangle"].includes(s)?Go(n,r):n.$wire[s]},set(a,s,l){return n||(n=or(e)),n.$wire[s]=l,!0}})});pt("__instance",e=>e);pt("$get",e=>(r,n=!0)=>Xt(n?e.reactive:e.ephemeral,r));pt("$el",e=>e.el);pt("$id",e=>e.id);pt("$set",e=>async(r,n,a=!0)=>(hi(e.reactive,r,n),a?(e.queueUpdate(r,n),await es(e)):Promise.resolve()));pt("$call",e=>async(r,...n)=>await e.$wire[r](...n));pt("$entangle",e=>(r,n=!1)=>Go(e)(r,n));pt("$toggle",e=>(r,n=!0)=>e.$wire.set(r,!e.$wire.get(r),n));pt("$watch",e=>(r,n)=>{let a=()=>Xt(e.reactive,r),s=ts.default.watch(a,n);e.addCleanup(s)});pt("$refresh",e=>e.$wire.$commit);pt("$commit",e=>async()=>await es(e));pt("$on",e=>(...r)=>gc(e,...r));pt("$dispatch",e=>(...r)=>is(e,...r));pt("$dispatchSelf",e=>(...r)=>Jr(e,...r));pt("$dispatchTo",()=>(...e)=>_a(...e));pt("$upload",e=>(...r)=>qu(e,...r));pt("$uploadMultiple",e=>(...r)=>Vu(e,...r));pt("$removeUpload",e=>(...r)=>zu(e,...r));pt("$cancelUpload",e=>(...r)=>Wu(e,...r));var Zi=new WeakMap;pt("$parent",e=>{if(Zi.has(e))return Zi.get(e).$wire;let r=e.parent;return Zi.set(e,r),r.$wire});var Kr=new WeakMap;function ac(e,r,n){Kr.has(e)||Kr.set(e,{});let a=Kr.get(e);a[r]=n,Kr.set(e,a)}rc(e=>r=>async(...n)=>{if(n.length===1&&n[0]instanceof Event&&(n=[]),Kr.has(e)){let a=Kr.get(e);if(typeof a[r]=="function")return a[r](n)}return await Qu(e,r,n)});var oc=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=xr(this.effects),this.canonical=Wr(xr(this.snapshot.data)),this.ephemeral=Wr(xr(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=nc(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(e,r,n={}){let a=JSON.parse(e),s=xr(this.canonical),l=this.applyUpdates(s,n),v=Wr(xr(a.data)),m=ya(l,v);this.snapshotEncoded=e,this.snapshot=a,this.effects=r,this.canonical=Wr(xr(a.data));let P=Wr(xr(a.data));return Object.entries(m).forEach(([U,ne])=>{let ie=U.split(".")[0];this.reactive[ie]=P[ie]}),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)hi(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=>uc(n))}get parent(){return or(this.el.parentElement)}inscribeSnapshotAndEffectsOnElement(){let e=this.el;e.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEff
|
|
|
|
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}}},_c=tt(Pu()),wc=tt(Ru()),xc=tt(Mu()),Sc=tt(ku()),Ec=tt(Nu()),oa=class{constructor(e,r){this.url=e,this.html=r}},Vt={currentKey:null,currentUrl:null,keys:[],lookup:{},limit:10,has(e){return this.lookup[e]!==void 0},retrieve(e){let r=this.lookup[e];if(r===void 0)throw"No back button cache found for current location: "+e;return r},replace(e,r){this.has(e)?this.lookup[e]=r:this.push(e,r)},push(e,r){this.lookup[e]=r;let n=this.keys.indexOf(e);n>-1&&this.keys.splice(n,1),this.keys.unshift(e),this.trim()},trim(){for(let e of this.keys.splice(this.limit))delete this.lookup[e]}};function Oc(){let e=new URL(window.location.href,document.baseURI);as(e,document.documentElement.outerHTML)}function Cc(e,r){let n=document.documentElement.outerHTML;Vt.replace(e,new oa(r,n))}function Ac(e,r){let n;e(a=>n=a),window.addEventListener("popstate",a=>{let s=a.state||{},l=s.alpine||{};if(Object.keys(s).length!==0&&l.snapshotIdx)if(Vt.has(l.snapshotIdx)){let v=Vt.retrieve(l.snapshotIdx);r(v.html,v.url,Vt.currentUrl,Vt.currentKey)}else n(l.url)})}function Tc(e,r){Pc(r,e)}function Pc(e,r){os("pushState",e,r)}function as(e,r){os("replaceState",e,r)}function os(e,r,n){let a=r.toString()+"-"+Math.random();e==="pushState"?Vt.push(a,new oa(r,n)):Vt.replace(a=Vt.currentKey??a,new oa(r,n));let s=history.state||{};s.alpine||(s.alpine={}),s.alpine.snapshotIdx=a,s.alpine.url=r.toString();try{history[e](s,JSON.stringify(document.title),r),Vt.currentKey=a,Vt.currentUrl=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 Rc(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(v=>v());return}a(l)||l.preventDefault()}),e.addEventListener("mousedown",l=>{a(l)||(l.preventDefault(),r(v=>{let m=P=>{P.preventDefault(),v(),e.removeEventListener("mouseup",m)};e.addEventListener("mouseup",m)}))}),e.addEventListener("keydown",l=>{s(l)||(l.preventDefault(),r(v=>v()))})}function Mc(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 go(e){return Yr(e.getAttribute("href"))}function Yr(e){return new URL(e,document.baseURI)}function mi(e){return e.pathname+e.search+e.hash}function kc(e,r){let n=mi(e);ss(n,(a,s)=>{r(a,s)})}function ss(e,r){let n={headers:{"X-Livewire-Navigate":""}};lt("navigate.request",{url:e,options:n});let a;fetch(e,n).then(s=>{let l=Yr(e);return a=Yr(s.url),l.pathname+l.search===a.pathname+a.search&&(a.hash=l.hash),s.text()}).then(s=>{r(s,a)})}var kt={};function mo(e,r){let n=mi(e);kt[n]||(kt[n]={finished:!1,html:null,whenFinished:()=>{}},ss(n,(a,s)=>{r(a,s)}))}function vo(e,r,n){let a=kt[mi(r)];a.html=e,a.finished=!0,a.finalDestination=n,a.whenFinished()}function Nc(e,r,n){let a=mi(e);if(!kt[a])return n();if(kt[a].finished){let s=kt[a].html,l=kt[a].finalDestination;return delete kt[a],r(s,l)}else kt[a].whenFinished=()=>{let s=kt[a].html,l=kt[a].finalDestination;delete kt[a],r(s,l)}}var xa=tt(Ot());function yo(e){xa.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(r=>r._x_teleport.remove())})}function bo(e){xa.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(r=>r.remove())})}function _o(e){xa.default.walk(e,(r,n)=>{r._x_teleport&&(r._x_teleportPutBack(),n())})}function Lc(e){return e.hasAttribute("data-teleport-target")}function wo(){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 xo(){let e=r=>{r.hasAttribute("data-scroll-x")?(r.scrollTo({top:Number
|
|
|
|
|
|
|
|
#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); }
|
|
|
|
}
|
2024-08-26 23:42:39 +02:00
|
|
|
`;let r=$u();r&&(e.nonce=r),document.head.appendChild(e)}var ea=[],ls=["data-csrf","aria-hidden"];function Oo(e,r){let n=new DOMParser().parseFromString(e,"text/html"),a=document.adoptNode(n.body),s=document.adoptNode(n.head);ea=ea.concat(Array.from(document.body.querySelectorAll("script")).map(m=>ds(ps(m.outerHTML,ls))));let l=()=>{};Uc(s).finally(()=>{l()}),Bc(a,ea);let v=document.body;document.body.replaceWith(a),Alpine.destroyTree(v),r(m=>l=m)}function Bc(e,r){e.querySelectorAll("script").forEach(n=>{if(n.hasAttribute("data-navigate-once")){let a=ds(ps(n.outerHTML,ls));if(r.includes(a))return}n.replaceWith(us(n))})}function Uc(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(Ao(l))if(n.includes(l.outerHTML))a.appendChild(l);else if(cs(l)&&qc(l,r)&&setTimeout(()=>window.location.reload()),fs(l))try{s.push(Hc(us(l)))}catch{}else document.head.appendChild(l);for(let l of Array.from(document.head.children))Ao(l)||l.remove();for(let l of Array.from(e.children))document.head.appendChild(l);return Promise.all(s)}async function Hc(e){return new Promise((r,n)=>{e.src?(e.onload=()=>r(),e.onerror=()=>n()):r(),document.head.appendChild(e)})}function us(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 cs(e){return e.hasAttribute("data-navigate-track")}function qc(e,r){let[n,a]=Co(e);return r.some(s=>{if(!cs(s))return!1;let[l,v]=Co(s);if(l===n&&a!==v)return!0})}function Co(e){return(fs(e)?e.src:e.href).split("?")}function Ao(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function fs(e){return e.tagName.toLowerCase()==="script"}function ds(e){return e.split("").reduce((r,n)=>(r=(r<<5)-r+n.charCodeAt(0),r&r),0)}function ps(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 ta=!0;function Vc(e){e.navigate=n=>{let a=Yr(n);Yt("alpine:navigate",{url:a,history:!1,cached:!1})||r(a)},e.navigate.disableProgressBar=()=>{ta=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(n,{modifiers:a})=>{a.includes("hover")&&Mc(n,60,()=>{let l=go(n);mo(l,(v,m)=>{vo(v,l,m)})}),Rc(n,l=>{let v=go(n);mo(v,(m,P)=>{vo(m,v,P)}),l(()=>{Yt("alpine:navigate",{url:v,history:!1,cached:!1})||r(v)})})});function r(n,a=!0){ta&&Ic(),zc(n,(s,l)=>{Yt("alpine:navigating"),wo(),ta&&Dc(),Wc(),Oc(),To(e,v=>{So(m=>{yo(m)}),a?Tc(s,l):as(l,s),Oo(s,m=>{bo(document.body),Eo((P,U)=>{_o(P)}),xo(),m(()=>{v(()=>{setTimeout(()=>{}),Po(e),Yt("alpine:navigated")})})})})})}Ac(n=>{n(a=>{let s=Yr(a);if(Yt("alpine:navigate",{url:s,history:!0,cached:!1}))return;r(s,!1)})},(n,a,s,l)=>{let v=Yr(a);Yt("alpine:navigate",{url:v,history:!0,cached:!0})||(wo(),Yt("alpine:navigating"),Cc(s,l),To(e,P=>{So(U=>{yo(U)}),Oo(n,()=>{$c(),bo(document.body),Eo((U,ne)=>{_o(U)}),xo(),P(()=>{Po(e),Yt("alpine:navigated")})})}))}),setTimeout(()=>{Yt("alpine:navigated")})}function zc(e,r){Nc(e,r,()=>{kc(e,r)})}function To(e,r){e.stopObservingMutations(),r(n=>{e.startObservingMutations(),queueMicrotask(()=>{n()})})}function Yt(e,r){let n=new CustomEvent(e,{cancelable:!0,bubbles:!0,detail:r});return document.dispatchEvent(n),n.defaultPrevented}function Po(e){e.initTree(document.body,void 0,(r,n)=>{r._x_wasPersisted&&n()})}function Wc(){let e=function(r,n){Alpine.walk(r,(a,s)=>{jc(a)&&s(),Lc(a)?s():n(a,s)})};Alpine.destroyTree(document.body,e)}function Kc(e){e.magic("queryString",(r,{interceptor:n})=>{let a,s=!1,l=!1;return n((v,m,P,U,ne)=>{let ie=a||U,{initial:K,replace:Y,push:O,pop:y}=ua(ie,v,s);return P(K),l?(e.effect(()=>O(m())),y(async _=>{P(_),await(()=>Promise.resolve())()})):e.effect(()=>Y(m())),K},v=>{v.alwaysShow=()=>(s=!0,v),v.usePush=()=>(l=!0,v),v.as=m=>(a=m,v)})}),e.history={track:ua}}function ua(e,r,n=!1,a=null){let{has:s,get:l,set:v,remove:m}=Gc(),P=new UR
|
2024-08-15 23:27:17 +02:00
|
|
|
`),n===""&&(n="Are you sure?"),e.__livewire_confirm=(s,l)=>{if(a){let[v,m]=n.split("|");m?prompt(v)===m?s():l():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(n)?s():l()}});function Or(e,r,n,a=null){if(n=r.modifiers.includes("remove")?!n:n,r.modifiers.includes("class")){let s=r.expression.split(" ").filter(String);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(v=>r.modifiers.includes(v))[0]||"inline-block";l=r.modifiers.includes("remove")&&!n?s:l,e.style.display=n?l:"none"}}var pa=new Set,ha=new Set;window.addEventListener("offline",()=>pa.forEach(e=>e()));window.addEventListener("online",()=>ha.forEach(e=>e()));Nt("offline",({el:e,directive:r,cleanup:n})=>{let a=()=>Or(e,r,!0),s=()=>Or(e,r,!1);pa.add(a),ha.add(s),n(()=>{pa.delete(a),ha.delete(s)})});Nt("loading",({el:e,directive:r,component:n,cleanup:a})=>{let{targets:s,inverted:l}=kf(e),[v,m]=Tf(r),P=Pf(n,s,l,[()=>v(()=>Or(e,r,!0)),()=>m(()=>Or(e,r,!1))]),U=Rf(n,s,[()=>v(()=>Or(e,r,!0)),()=>m(()=>Or(e,r,!1))]);a(()=>{P(),U()})});function Tf(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,s]){return ze("commit",({component:l,commit:v,respond:m})=>{l===e&&(r.length>0&&Mf(v,r)===n||(a(),m(()=>{s()})))})}function Rf(e,r,[n,a]){let s=P=>{let{id:U,property:ne}=P.detail;return U!==e.id||r.length>0&&!r.map(ie=>ie.target).includes(ne)},l=Yi(window,"livewire-upload-start",P=>{s(P)||n()}),v=Yi(window,"livewire-upload-finish",P=>{s(P)||a()}),m=Yi(window,"livewire-upload-error",P=>{s(P)||a()});return()=>{l(),v(),m()}}function Mf(e,r){let{updates:n,calls:a}=e;return r.some(({target:s,params:l})=>{if(l)return a.some(({method:m,params:P})=>s===m&&l===ys(JSON.stringify(P)));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 kf(e){let r=wa(e),n=[],a=!1;if(r.has("target")){let s=r.get("target"),l=s.expression;s.modifiers.includes("except")&&(a=!0),l.includes("(")&&l.includes(")")?n.push({target:s.method,params:ys(JSON.stringify(s.params))}):l.includes(",")?l.split(",").map(v=>v.trim()).forEach(v=>{n.push({target:v})}):n.push({target:l})}else{let s=["init","dirty","offline","target","loading","poll","ignore","key","id"];r.all().filter(l=>!s.includes(l.value)).map(l=>l.expression.split("(")[0]).forEach(l=>n.push({target:l}))}return{targets:n,inverted:a}}function ys(e){return btoa(encodeURIComponent(e))}Nt("stream",({el:e,directive:r,cleanup:n})=>{let{expression:a,modifiers:s}=r,l=ze("stream",({name:v,content:m,replace:P})=>{v===a&&(s.includes("replace")||P?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 Nf(n,s=>{lt("stream",s)});return Jo(a)&&(this.ok=!1),a}})})});async function Nf(e,r){let n=e.body.getReader(),a="";for(;;){let{done:s,value:l}=await n.read(),m=new TextDecoder().decode(l),[P,U]=Lf(a+m);if(P.forEach(ne=>{r(ne)}),a=U,s)return a}}function Lf(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]}Nt("replace",({el:e,directive:r})=>{r.modifiers.includes("self")?e.__livewire_replace_self=!0:e.__livewire_replace=!0});Nt("ignore",({el:e,directive:r})=>{r.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var bs=new zo;ze("commit",({component:e,respond:r})=>{r(()=>{setTimeout(()=>{bs.each(e,n=>n(!1))})})});Nt("dirty",({e
|
|
|
|
* @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
|
|
|
|
*/Aa.start();window.axios=Sl;window.valid=Su;document.querySelectorAll(".disposable-alert").forEach(e=>{setTimeout(()=>{e.remove()},5e3)});
|