diff --git a/public/build/assets/app-01291e40.js b/public/build/assets/app-01291e40.js new file mode 100644 index 0000000000..9dc7208210 --- /dev/null +++ b/public/build/assets/app-01291e40.js @@ -0,0 +1,109 @@ +import{A as ll}from"./index-08e160a7.js";import{c as Ut,g as ul}from"./_commonjsHelpers-725317a4.js";var cl={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}}},fl=cl,Qn={},mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.clone=void 0;function dl(e){return e?JSON.parse(JSON.stringify(e)):null}mn.clone=dl;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.matches=void 0;function pl(e,r,n){var a=String(r).length,s=e.substr(0,a),u=parseInt(s,10);return r=parseInt(String(r).substr(0,s.length),10),n=parseInt(String(n).substr(0,s.length),10),u>=r&&u<=n}function hl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function gl(e,r){return Array.isArray(r)?pl(e,r[0],r[1]):hl(e,r)}Zn.matches=gl;Object.defineProperty(Qn,"__esModule",{value:!0});Qn.addMatchingCardsToResults=void 0;var ml=mn,vl=Zn;function yl(e,r,n){var a,s;for(a=0;a=s&&(b.matchStrength=s),n.push(b);break}}}Qn.addMatchingCardsToResults=yl;var ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.isValidInputType=void 0;function bl(e){return typeof e=="string"||e instanceof String}ei.isValidInputType=bl;var ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.findBestMatch=void 0;function _l(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function wl(e){return _l(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)Al?fn(!1,!1):Cl.test(e)?fn(!1,!0):fn(!0,!0)}ri.cardholderName=Tl;var ni={};function Pl(e){for(var r=0,n=!1,a=e.length-1,s;a>=0;)s=parseInt(e.charAt(a),10),n&&(s*=2,s>9&&(s=s%10+1)),n=!n,r+=s,a--;return r%10===0}var Rl=Pl;Object.defineProperty(ni,"__esModule",{value:!0});ni.cardNumber=void 0;var Nl=Rl,qa=Oo;function hr(e,r,n){return{card:e,isPotentiallyValid:r,isValid:n}}function Ml(e,r){r===void 0&&(r={});var n,a,s;if(typeof e!="string"&&typeof e!="number")return hr(null,!1,!1);var u=String(e).replace(/-|\s/g,"");if(!/^\d*$/.test(u))return hr(null,!1,!1);var b=qa(u);if(b.length===0)return hr(null,!1,!1);if(b.length!==1)return hr(null,!0,!1);var m=b[0];if(r.maxLength&&u.length>r.maxLength)return hr(m,!1,!1);m.type===qa.types.UNIONPAY&&r.luhnValidateUnionPay!==!0?a=!0:a=Nl(u),s=Math.max.apply(null,m.lengths),r.maxLength&&(s=Math.min(r.maxLength,s));for(var I=0;I4)return er(!1,!1);var m=parseInt(e,10),I=Number(String(s).substr(2,2)),U=!1;if(a===2){if(String(s).substr(0,2)===e)return er(!1,!0);n=I===m,U=m>=I&&m<=I+r}else a===4&&(n=s===m,U=m>=s&&m<=s+r);return er(U,U,n)}Vr.expirationYear=Ll;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.isArray=void 0;oi.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};Object.defineProperty(ai,"__esModule",{value:!0});ai.parseDate=void 0;var jl=Vr,Il=oi;function Dl(e){var r=Number(e[0]),n;return r===0?2:r>1||r===1&&Number(e[1])>2?1:r===1?(n=e.substr(1),jl.expirationYear(n).isPotentiallyValid?1:2):e.length===5?1:e.length>5?2:1}function $l(e){var r;if(/^\d{4}-\d{1,2}$/.test(e)?r=e.split("-").reverse():/\//.test(e)?r=e.split(/\s*\/\s*/g):/\s/.test(e)&&(r=e.split(/ +/g)),Il.isArray(r))return{month:r[0]||"",year:r.slice(1).join()};var n=Dl(e),a=e.substr(0,n);return{month:a,year:e.substr(a.length)}}ai.parseDate=$l;var yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.expirationMonth=void 0;function dn(e,r,n){return{isValid:e,isPotentiallyValid:r,isValidForThisYear:n||!1}}function Fl(e){var r=new Date().getMonth()+1;if(typeof e!="string")return dn(!1,!1);if(e.replace(/\s/g,"")===""||e==="0")return dn(!1,!0);if(!/^\d*$/.test(e))return dn(!1,!1);var n=parseInt(e,10);if(isNaN(Number(e)))return dn(!1,!1);var a=n>0&&n<13;return dn(a,a,a&&n>=r)}yn.expirationMonth=Fl;var Xi=Ut&&Ut.__assign||function(){return Xi=Object.assign||function(e){for(var r,n=1,a=arguments.length;nr?e[n]:r;return r}function jr(e,r){return{isValid:e,isPotentiallyValid:r}}function Wl(e,r){return r===void 0&&(r=Co),r=r instanceof Array?r:[r],typeof e!="string"||!/^\d*$/.test(e)?jr(!1,!1):ql(r,e.length)?jr(!0,!0):e.lengthzl(r)?jr(!1,!1):jr(!0,!0)}si.cvv=Wl;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.postalCode=void 0;var Kl=3;function qi(e,r){return{isValid:e,isPotentiallyValid:r}}function Jl(e,r){r===void 0&&(r={});var n=r.minLength||Kl;return typeof e!="string"?qi(!1,!1):e.lengthfunction(){return r||(0,e[To(e)[0]])((r={exports:{}}).exports,r),r.exports},pu=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of To(r))!du.call(e,s)&&s!==n&&Ao(e,s,{get:()=>r[s],enumerable:!(a=cu(r,s))||a.enumerable});return e},Je=(e,r,n)=>(n=e!=null?uu(fu(e)):{},pu(r||!e||!e.__esModule?Ao(n,"default",{value:e,enumerable:!0}):n,e)),ft=Yt({"../alpine/packages/alpinejs/dist/module.cjs.js"(e,r){var n=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,b=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,I=(t,i)=>function(){return i||(0,t[u(t)[0]])((i={exports:{}}).exports,i),i.exports},U=(t,i)=>{for(var o in i)a(t,o,{get:i[o],enumerable:!0})},se=(t,i,o,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of u(i))!m.call(t,p)&&p!==o&&a(t,p,{get:()=>i[p],enumerable:!(c=s(i,p))||c.enumerable});return t},V=(t,i,o)=>(o=t!=null?n(b(t)):{},se(i||!t||!t.__esModule?a(o,"default",{value:t,enumerable:!0}):o,t)),ce=t=>se(a({},"__esModule",{value:!0}),t),re=I({"node_modules/@vue/shared/dist/shared.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});function i(y,K){const Z=Object.create(null),ue=y.split(",");for(let Ue=0;Ue!!Z[Ue.toLowerCase()]:Ue=>!!Z[Ue]}var o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},c={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},p="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",d=i(p),g=2;function x(y,K=0,Z=y.length){let ue=y.split(/(\r?\n)/);const Ue=ue.filter((bt,ct)=>ct%2===1);ue=ue.filter((bt,ct)=>ct%2===0);let rt=0;const yt=[];for(let bt=0;bt=K){for(let ct=bt-g;ct<=bt+g||Z>rt;ct++){if(ct<0||ct>=ue.length)continue;const un=ct+1;yt.push(`${un}${" ".repeat(Math.max(3-String(un).length,0))}| ${ue[ct]}`);const kr=ue[ct].length,Wn=Ue[ct]&&Ue[ct].length||0;if(ct===bt){const Lr=K-(rt-(kr+Wn)),Ui=Math.max(1,Z>rt?kr-Lr:Z-K);yt.push(" | "+" ".repeat(Lr)+"^".repeat(Ui))}else if(ct>bt){if(Z>rt){const Lr=Math.max(Math.min(Z-rt,kr),1);yt.push(" | "+"^".repeat(Lr))}rt+=kr+Wn}}break}return yt.join(` +`)}var k="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Q=i(k),Ie=i(k+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Ze=/[>/="'\u0009\u000a\u000c\u0020]/,$e={};function Ke(y){if($e.hasOwnProperty(y))return $e[y];const K=Ze.test(y);return K&&console.error(`unsafe attribute name: ${y}`),$e[y]=!K}var At={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},$t=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 He(y){if(Rt(y)){const K={};for(let Z=0;Z{if(Z){const ue=Z.split(qe);ue.length>1&&(K[ue[0].trim()]=ue[1].trim())}}),K}function Pt(y){let K="";if(!y)return K;for(const Z in y){const ue=y[Z],Ue=Z.startsWith("--")?Z:qn(Z);(cr(ue)||typeof ue=="number"&&$t(Ue))&&(K+=`${Ue}:${ue};`)}return K}function Ft(y){let K="";if(cr(y))K=y;else if(Rt(y))for(let Z=0;Z]/;function Mi(y){const K=""+y,Z=Ni.exec(K);if(!Z)return K;let ue="",Ue,rt,yt=0;for(rt=Z.index;rt||--!>|Er(Z,K))}var kn=y=>y==null?"":Bt(y)?JSON.stringify(y,ji,2):String(y),ji=(y,K)=>ur(K)?{[`Map(${K.size})`]:[...K.entries()].reduce((Z,[ue,Ue])=>(Z[`${ue} =>`]=Ue,Z),{})}:Nt(K)?{[`Set(${K.size})`]:[...K.values()]}:Bt(K)&&!Rt(K)&&!Fn(K)?String(K):K,Ii=["bigInt","optionalChaining","nullishCoalescingOperator"],rn=Object.freeze({}),nn=Object.freeze([]),an=()=>{},Or=()=>!1,Cr=/^on[^a-z]/,Ar=y=>Cr.test(y),Tr=y=>y.startsWith("onUpdate:"),Ln=Object.assign,jn=(y,K)=>{const Z=y.indexOf(K);Z>-1&&y.splice(Z,1)},In=Object.prototype.hasOwnProperty,Dn=(y,K)=>In.call(y,K),Rt=Array.isArray,ur=y=>fr(y)==="[object Map]",Nt=y=>fr(y)==="[object Set]",on=y=>y instanceof Date,sn=y=>typeof y=="function",cr=y=>typeof y=="string",Di=y=>typeof y=="symbol",Bt=y=>y!==null&&typeof y=="object",Pr=y=>Bt(y)&&sn(y.then)&&sn(y.catch),$n=Object.prototype.toString,fr=y=>$n.call(y),$i=y=>fr(y).slice(8,-1),Fn=y=>fr(y)==="[object Object]",Bn=y=>cr(y)&&y!=="NaN"&&y[0]!=="-"&&""+parseInt(y,10)===y,Hn=i(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dr=y=>{const K=Object.create(null);return Z=>K[Z]||(K[Z]=y(Z))},Un=/-(\w)/g,Vn=dr(y=>y.replace(Un,(K,Z)=>Z?Z.toUpperCase():"")),Fi=/\B([A-Z])/g,qn=dr(y=>y.replace(Fi,"-$1").toLowerCase()),pr=dr(y=>y.charAt(0).toUpperCase()+y.slice(1)),Bi=dr(y=>y?`on${pr(y)}`:""),ln=(y,K)=>y!==K&&(y===y||K===K),Hi=(y,K)=>{for(let Z=0;Z{Object.defineProperty(y,K,{configurable:!0,enumerable:!1,value:Z})},Nr=y=>{const K=parseFloat(y);return isNaN(K)?y:K},Mr,zn=()=>Mr||(Mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});t.EMPTY_ARR=nn,t.EMPTY_OBJ=rn,t.NO=Or,t.NOOP=an,t.PatchFlagNames=o,t.babelParserDefaultPlugins=Ii,t.camelize=Vn,t.capitalize=pr,t.def=Rr,t.escapeHtml=Mi,t.escapeHtmlComment=ki,t.extend=Ln,t.generateCodeFrame=x,t.getGlobalThis=zn,t.hasChanged=ln,t.hasOwn=Dn,t.hyphenate=qn,t.invokeArrayFns=Hi,t.isArray=Rt,t.isBooleanAttr=Ie,t.isDate=on,t.isFunction=sn,t.isGloballyWhitelisted=d,t.isHTMLTag=xr,t.isIntegerKey=Bn,t.isKnownAttr=Se,t.isMap=ur,t.isModelListener=Tr,t.isNoUnitNumericStyleProp=$t,t.isObject=Bt,t.isOn=Ar,t.isPlainObject=Fn,t.isPromise=Pr,t.isReservedProp=Hn,t.isSSRSafeAttrName=Ke,t.isSVGTag=Ri,t.isSet=Nt,t.isSpecialBooleanAttr=Q,t.isString=cr,t.isSymbol=Di,t.isVoidTag=Sr,t.looseEqual=Er,t.looseIndexOf=Mn,t.makeMap=i,t.normalizeClass=Ft,t.normalizeStyle=He,t.objectToString=$n,t.parseStringStyle=vt,t.propsToAttrMap=At,t.remove=jn,t.slotFlagsText=c,t.stringifyStyle=Pt,t.toDisplayString=kn,t.toHandlerKey=Bi,t.toNumber=Nr,t.toRawType=$i,t.toTypeString=fr}}),E=I({"node_modules/@vue/shared/index.js"(t,i){i.exports=re()}}),v=I({"node_modules/@vue/reactivity/dist/reactivity.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var i=E(),o=new WeakMap,c=[],p,d=Symbol("iterate"),g=Symbol("Map key iterate");function x(l){return l&&l._isEffect===!0}function k(l,T=i.EMPTY_OBJ){x(l)&&(l=l.raw);const R=Ze(l,T);return T.lazy||R(),R}function Q(l){l.active&&($e(l),l.options.onStop&&l.options.onStop(),l.active=!1)}var Ie=0;function Ze(l,T){const R=function(){if(!R.active)return l();if(!c.includes(R)){$e(R);try{return Se(),c.push(R),p=R,l()}finally{c.pop(),He(),p=c[c.length-1]}}};return R.id=Ie++,R.allowRecurse=!!T.allowRecurse,R._isEffect=!0,R.active=!0,R.raw=l,R.deps=[],R.options=T,R}function $e(l){const{deps:T}=l;if(T.length){for(let R=0;R{gt&>.forEach(Mt=>{(Mt!==p||Mt.allowRecurse)&&it.add(Mt)})};if(T==="clear")ke.forEach(_t);else if(R==="length"&&i.isArray(l))ke.forEach((gt,Mt)=>{(Mt==="length"||Mt>=ne)&&_t(gt)});else switch(R!==void 0&&_t(ke.get(R)),T){case"add":i.isArray(l)?i.isIntegerKey(R)&&_t(ke.get("length")):(_t(ke.get(d)),i.isMap(l)&&_t(ke.get(g)));break;case"delete":i.isArray(l)||(_t(ke.get(d)),i.isMap(l)&&_t(ke.get(g)));break;case"set":i.isMap(l)&&_t(ke.get(d));break}const cn=gt=>{gt.options.onTrigger&>.options.onTrigger({effect:gt,target:l,key:R,type:T,newValue:ne,oldValue:J,oldTarget:ge}),gt.options.scheduler?gt.options.scheduler(gt):gt()};it.forEach(cn)}var vt=i.makeMap("__proto__,__v_isRef,__isVue"),Pt=new Set(Object.getOwnPropertyNames(Symbol).map(l=>Symbol[l]).filter(i.isSymbol)),Ft=Sr(),wr=Sr(!1,!0),en=Sr(!0),tn=Sr(!0,!0),xr=Ri();function Ri(){const l={};return["includes","indexOf","lastIndexOf"].forEach(T=>{l[T]=function(...R){const ne=y(this);for(let ge=0,ke=this.length;ge{l[T]=function(...R){$t();const ne=y(this)[T].apply(this,R);return He(),ne}}),l}function Sr(l=!1,T=!1){return function(ne,J,ge){if(J==="__v_isReactive")return!l;if(J==="__v_isReadonly")return l;if(J==="__v_raw"&&ge===(l?T?Vn:Un:T?dr:Hn).get(ne))return ne;const ke=i.isArray(ne);if(!l&&ke&&i.hasOwn(xr,J))return Reflect.get(xr,J,ge);const it=Reflect.get(ne,J,ge);return(i.isSymbol(J)?Pt.has(J):vt(J))||(l||Le(ne,"get",J),T)?it:ue(it)?!ke||!i.isIntegerKey(J)?it.value:it:i.isObject(it)?l?ln(it):pr(it):it}}var Ni=Nn(),Mi=Nn(!0);function Nn(l=!1){return function(R,ne,J,ge){let ke=R[ne];if(!l&&(J=y(J),ke=y(ke),!i.isArray(R)&&ue(ke)&&!ue(J)))return ke.value=J,!0;const it=i.isArray(R)&&i.isIntegerKey(ne)?Number(ne)i.isObject(l)?pr(l):l,nn=l=>i.isObject(l)?ln(l):l,an=l=>l,Or=l=>Reflect.getPrototypeOf(l);function Cr(l,T,R=!1,ne=!1){l=l.__v_raw;const J=y(l),ge=y(T);T!==ge&&!R&&Le(J,"get",T),!R&&Le(J,"get",ge);const{has:ke}=Or(J),it=ne?an:R?nn:rn;if(ke.call(J,T))return it(l.get(T));if(ke.call(J,ge))return it(l.get(ge));l!==J&&l.get(T)}function Ar(l,T=!1){const R=this.__v_raw,ne=y(R),J=y(l);return l!==J&&!T&&Le(ne,"has",l),!T&&Le(ne,"has",J),l===J?R.has(l):R.has(l)||R.has(J)}function Tr(l,T=!1){return l=l.__v_raw,!T&&Le(y(l),"iterate",d),Reflect.get(l,"size",l)}function Ln(l){l=y(l);const T=y(this);return Or(T).has.call(T,l)||(T.add(l),qe(T,"add",l,l)),this}function jn(l,T){T=y(T);const R=y(this),{has:ne,get:J}=Or(R);let ge=ne.call(R,l);ge?Bn(R,ne,l):(l=y(l),ge=ne.call(R,l));const ke=J.call(R,l);return R.set(l,T),ge?i.hasChanged(T,ke)&&qe(R,"set",l,T,ke):qe(R,"add",l,T),this}function In(l){const T=y(this),{has:R,get:ne}=Or(T);let J=R.call(T,l);J?Bn(T,R,l):(l=y(l),J=R.call(T,l));const ge=ne?ne.call(T,l):void 0,ke=T.delete(l);return J&&qe(T,"delete",l,void 0,ge),ke}function Dn(){const l=y(this),T=l.size!==0,R=i.isMap(l)?new Map(l):new Set(l),ne=l.clear();return T&&qe(l,"clear",void 0,void 0,R),ne}function Rt(l,T){return function(ne,J){const ge=this,ke=ge.__v_raw,it=y(ke),_t=T?an:l?nn:rn;return!l&&Le(it,"iterate",d),ke.forEach((cn,gt)=>ne.call(J,_t(cn),_t(gt),ge))}}function ur(l,T,R){return function(...ne){const J=this.__v_raw,ge=y(J),ke=i.isMap(ge),it=l==="entries"||l===Symbol.iterator&&ke,_t=l==="keys"&&ke,cn=J[l](...ne),gt=R?an:T?nn:rn;return!T&&Le(ge,"iterate",_t?g:d),{next(){const{value:Mt,done:Vi}=cn.next();return Vi?{value:Mt,done:Vi}:{value:it?[gt(Mt[0]),gt(Mt[1])]:gt(Mt),done:Vi}},[Symbol.iterator](){return this}}}}function Nt(l){return function(...T){{const R=T[0]?`on key "${T[0]}" `:"";console.warn(`${i.capitalize(l)} operation ${R}failed: target is readonly.`,y(this))}return l==="delete"?!1:this}}function on(){const l={get(ge){return Cr(this,ge)},get size(){return Tr(this)},has:Ar,add:Ln,set:jn,delete:In,clear:Dn,forEach:Rt(!1,!1)},T={get(ge){return Cr(this,ge,!1,!0)},get size(){return Tr(this)},has:Ar,add:Ln,set:jn,delete:In,clear:Dn,forEach:Rt(!1,!0)},R={get(ge){return Cr(this,ge,!0)},get size(){return Tr(this,!0)},has(ge){return Ar.call(this,ge,!0)},add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear"),forEach:Rt(!0,!1)},ne={get(ge){return Cr(this,ge,!0,!0)},get size(){return Tr(this,!0)},has(ge){return Ar.call(this,ge,!0)},add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear"),forEach:Rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ge=>{l[ge]=ur(ge,!1,!1),R[ge]=ur(ge,!0,!1),T[ge]=ur(ge,!1,!0),ne[ge]=ur(ge,!0,!0)}),[l,R,T,ne]}var[sn,cr,Di,Bt]=on();function Pr(l,T){const R=T?l?Bt:Di:l?cr:sn;return(ne,J,ge)=>J==="__v_isReactive"?!l:J==="__v_isReadonly"?l:J==="__v_raw"?ne:Reflect.get(i.hasOwn(R,J)&&J in ne?R:ne,J,ge)}var $n={get:Pr(!1,!1)},fr={get:Pr(!1,!0)},$i={get:Pr(!0,!1)},Fn={get:Pr(!0,!0)};function Bn(l,T,R){const ne=y(R);if(ne!==R&&T.call(l,ne)){const J=i.toRawType(l);console.warn(`Reactive ${J} contains both the raw and reactive versions of the same object${J==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Hn=new WeakMap,dr=new WeakMap,Un=new WeakMap,Vn=new WeakMap;function Fi(l){switch(l){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qn(l){return l.__v_skip||!Object.isExtensible(l)?0:Fi(i.toRawType(l))}function pr(l){return l&&l.__v_isReadonly?l:Rr(l,!1,Mn,$n,Hn)}function Bi(l){return Rr(l,!1,ji,fr,dr)}function ln(l){return Rr(l,!0,kn,$i,Un)}function Hi(l){return Rr(l,!0,Ii,Fn,Vn)}function Rr(l,T,R,ne,J){if(!i.isObject(l))return console.warn(`value cannot be made reactive: ${String(l)}`),l;if(l.__v_raw&&!(T&&l.__v_isReactive))return l;const ge=J.get(l);if(ge)return ge;const ke=qn(l);if(ke===0)return l;const it=new Proxy(l,ke===2?ne:R);return J.set(l,it),it}function Nr(l){return Mr(l)?Nr(l.__v_raw):!!(l&&l.__v_isReactive)}function Mr(l){return!!(l&&l.__v_isReadonly)}function zn(l){return Nr(l)||Mr(l)}function y(l){return l&&y(l.__v_raw)||l}function K(l){return i.def(l,"__v_skip",!0),l}var Z=l=>i.isObject(l)?pr(l):l;function ue(l){return!!(l&&l.__v_isRef===!0)}function Ue(l){return bt(l)}function rt(l){return bt(l,!0)}var yt=class{constructor(l,T=!1){this._shallow=T,this.__v_isRef=!0,this._rawValue=T?l:y(l),this._value=T?l:Z(l)}get value(){return Le(y(this),"get","value"),this._value}set value(l){l=this._shallow?l:y(l),i.hasChanged(l,this._rawValue)&&(this._rawValue=l,this._value=this._shallow?l:Z(l),qe(y(this),"set","value",l))}};function bt(l,T=!1){return ue(l)?l:new yt(l,T)}function ct(l){qe(y(l),"set","value",l.value)}function un(l){return ue(l)?l.value:l}var kr={get:(l,T,R)=>un(Reflect.get(l,T,R)),set:(l,T,R,ne)=>{const J=l[T];return ue(J)&&!ue(R)?(J.value=R,!0):Reflect.set(l,T,R,ne)}};function Wn(l){return Nr(l)?l:new Proxy(l,kr)}var Lr=class{constructor(l){this.__v_isRef=!0;const{get:T,set:R}=l(()=>Le(this,"get","value"),()=>qe(this,"set","value"));this._get=T,this._set=R}get value(){return this._get()}set value(l){this._set(l)}};function Ui(l){return new Lr(l)}function il(l){zn(l)||console.warn("toRefs() expects a reactive object but received a plain one.");const T=i.isArray(l)?new Array(l.length):{};for(const R in l)T[R]=Va(l,R);return T}var al=class{constructor(l,T){this._object=l,this._key=T,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(l){this._object[this._key]=l}};function Va(l,T){return ue(l[T])?l[T]:new al(l,T)}var ol=class{constructor(l,T,R){this._setter=T,this._dirty=!0,this.__v_isRef=!0,this.effect=k(l,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,qe(y(this),"set","value"))}}),this.__v_isReadonly=R}get value(){const l=y(this);return l._dirty&&(l._value=this.effect(),l._dirty=!1),Le(l,"get","value"),l._value}set value(l){this._setter(l)}};function sl(l){let T,R;return i.isFunction(l)?(T=l,R=()=>{console.warn("Write operation failed: computed value is readonly")}):(T=l.get,R=l.set),new ol(T,R,i.isFunction(l)||!l.set)}t.ITERATE_KEY=d,t.computed=sl,t.customRef=Ui,t.effect=k,t.enableTracking=Se,t.isProxy=zn,t.isReactive=Nr,t.isReadonly=Mr,t.isRef=ue,t.markRaw=K,t.pauseTracking=$t,t.proxyRefs=Wn,t.reactive=pr,t.readonly=ln,t.ref=Ue,t.resetTracking=He,t.shallowReactive=Bi,t.shallowReadonly=Hi,t.shallowRef=rt,t.stop=Q,t.toRaw=y,t.toRef=Va,t.toRefs=il,t.track=Le,t.trigger=qe,t.triggerRef=ct,t.unref=un}}),_=I({"node_modules/@vue/reactivity/index.js"(t,i){i.exports=v()}}),O={};U(O,{default:()=>nl}),r.exports=ce(O);var M=!1,j=!1,H=[],Te=-1;function D(t){C(t)}function C(t){H.includes(t)||H.push(t),ee()}function N(t){let i=H.indexOf(t);i!==-1&&i>Te&&H.splice(i,1)}function ee(){!j&&!M&&(M=!0,queueMicrotask(be))}function be(){M=!1,j=!0;for(let t=0;tt.effect(i,{scheduler:o=>{Ye?D(o):o()}}),Ge=t.raw}function ht(t){X=t}function xt(t){let i=()=>{};return[c=>{let p=X(c);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(d=>d())}),t._x_effects.add(p),i=()=>{p!==void 0&&(t._x_effects.delete(p),Re(p))},p},()=>{i()}]}function Et(t,i){let o=!0,c,p=X(()=>{let d=t();JSON.stringify(d),o?c=d:queueMicrotask(()=>{i(d,c),c=d}),o=!1});return()=>Re(p)}function we(t,i,o={}){t.dispatchEvent(new CustomEvent(i,{detail:o,bubbles:!0,composed:!0,cancelable:!0}))}function le(t,i){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(p=>le(p,i));return}let o=!1;if(i(t,()=>o=!0),o)return;let c=t.firstElementChild;for(;c;)le(c,i),c=c.nextElementSibling}function Ee(t,...i){console.warn(`Alpine Warning: ${t}`,...i)}var me=!1;function ve(){me&&Ee("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),me=!0,document.body||Ee("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's ` @endpush diff --git a/resources/views/billing-portal/purchasev2.blade.php b/resources/views/billing-portal/purchasev2.blade.php index 5b65092a9a..3388348939 100644 --- a/resources/views/billing-portal/purchasev2.blade.php +++ b/resources/views/billing-portal/purchasev2.blade.php @@ -14,10 +14,15 @@ document.getElementById('payment_method_id').value = paymentMethodId; } - Livewire.on('beforePaymentEventsCompleted', () => { - setTimeout(() => { - document.getElementById('payment-method-form').submit() - }, 2500); + document.addEventListener('livewire:init', () => { + + Livewire.on('beforePaymentEventsCompleted', () => { + setTimeout(() => { + document.getElementById('payment-method-form').submit() + }, 2500); + }); + }); + @endpush diff --git a/resources/views/layouts/ninja.blade.php b/resources/views/layouts/ninja.blade.php index fffae9e2cf..4e91d98061 100644 --- a/resources/views/layouts/ninja.blade.php +++ b/resources/views/layouts/ninja.blade.php @@ -85,7 +85,7 @@ @yield('body') - @livewireScripts + @livewireScriptConfig diff --git a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php index 5ae37085ed..98653fb0da 100644 --- a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php @@ -72,11 +72,17 @@ @section('gateway_footer') @vite('resources/js/clients/payments/wepay-credit-card.js') diff --git a/resources/views/portal/ninja2020/layout/app.blade.php b/resources/views/portal/ninja2020/layout/app.blade.php index c4cd7f278e..cfc0c0d5c3 100644 --- a/resources/views/portal/ninja2020/layout/app.blade.php +++ b/resources/views/portal/ninja2020/layout/app.blade.php @@ -117,7 +117,7 @@ @yield('body') @endcomponent - @livewireScripts + @livewireScriptConfig + + @endsection diff --git a/resources/views/portal/ninja2020/subscriptions/switch.blade.php b/resources/views/portal/ninja2020/subscriptions/switch.blade.php index be8e3774f6..9093ebe916 100644 --- a/resources/views/portal/ninja2020/subscriptions/switch.blade.php +++ b/resources/views/portal/ninja2020/subscriptions/switch.blade.php @@ -48,6 +48,12 @@ @push('footer') @endpush diff --git a/resources/views/themes/ninja2020/clean.blade.php b/resources/views/themes/ninja2020/clean.blade.php index 9daf924302..a7ccf2a51a 100644 --- a/resources/views/themes/ninja2020/clean.blade.php +++ b/resources/views/themes/ninja2020/clean.blade.php @@ -104,7 +104,7 @@ @yield('body') - @livewireScripts + @livewireScriptConfig