quasar-ui-danx 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
package/dist/danx.umd.js
CHANGED
@@ -18,5 +18,5 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
18
18
|
* Subject to the terms at https://gsap.com/standard-license or for
|
19
19
|
* Club GSAP members, the agreement issued with that membership.
|
20
20
|
* @author: Jack Doyle, jack@greensock.com
|
21
|
-
*/var kd,Ft,$n,ul,Xt,Cd,dl,m2=function(){return typeof window<"u"},_t={},Kt=180/Math.PI,An=Math.PI/180,Pn=Math.atan2,Td=1e8,fl=/([A-Z])/g,h2=/(left|right|width|margin|padding|x)/i,p2=/[\s,\(]\S/,rt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_l=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},g2=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},y2=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},b2=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Ed=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Id=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},x2=function(e,n,r){return e.style[n]=r},w2=function(e,n,r){return e.style.setProperty(n,r)},S2=function(e,n,r){return e._gsap[n]=r},k2=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},C2=function(e,n,r,i,l){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(l,s)},T2=function(e,n,r,i,l){var s=e._gsap;s[n]=r,s.renderTransform(l,s)},K="transform",Ee=K+"Origin",E2=function t(e,n){var r=this,i=this.target,l=i.style,s=i._gsap;if(e in _t&&l){if(this.tfm=this.tfm||{},e!=="transform")e=rt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=mt(i,a)}):this.tfm[e]=s.x?s[e]:mt(i,e),e===Ee&&(this.tfm.zOrigin=s.zOrigin);else return rt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(K)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ee,n,"")),e=K}(l||n)&&this.props.push(e,n,l[e])},vd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},I2=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,l,s;for(l=0;l<e.length;l+=3)e[l+1]?n[e[l]]=e[l+2]:e[l+2]?r[e[l]]=e[l+2]:r.removeProperty(e[l].substr(0,2)==="--"?e[l]:e[l].replace(fl,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),l=dl(),(!l||!l.isStart)&&!r[K]&&(vd(r),i.zOrigin&&r[Ee]&&(r[Ee]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Nd=function(e,n){var r={target:e,props:[],revert:I2,save:E2};return e._gsap||Te.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Bd,ml=function(e,n){var r=Ft.createElementNS?Ft.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ft.createElement(e);return r&&r.style?r:Ft.createElement(e)},ot=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(fl,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mn(n)||n,1)||""},Fd="O,Moz,ms,Ms,Webkit".split(","),Mn=function(e,n,r){var i=n||Xt,l=i.style,s=5;if(e in l&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Fd[s]+e in l););return s<0?null:(s===3?"ms":s>=0?Fd[s]:"")+e},hl=function(){m2()&&window.document&&(kd=window,Ft=kd.document,$n=Ft.documentElement,Xt=ml("div")||{style:{}},ml("div"),K=Mn(K),Ee=K+"Origin",Xt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Bd=!!Mn("perspective"),dl=Te.core.reverting,ul=1)},pl=function t(e){var n=ml("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,l=this.style.cssText,s;if($n.appendChild(n),n.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),$n.removeChild(n),this.style.cssText=l,s},Dd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Od=function(e){var n;try{n=e.getBBox()}catch{n=pl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===pl||(n=pl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Dd(e,["x","cx","x1"])||0,y:+Dd(e,["y","cy","y1"])||0,width:0,height:0}:n},$d=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Od(e))},Jt=function(e,n){if(n){var r=e.style,i;n in _t&&n!==Ee&&(n=K),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(fl,"-$1").toLowerCase())):r.removeAttribute(n)}},Dt=function(e,n,r,i,l,s){var a=new Ce(e._pt,n,r,0,1,s?Id:Ed);return e._pt=a,a.b=i,a.e=l,e._props.push(r),a},Ad={deg:1,rad:1,turn:1},v2={grid:1,flex:1},Ot=function t(e,n,r,i){var l=parseFloat(r)||0,s=(r+"").trim().substr((l+"").length)||"px",a=Xt.style,c=h2.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,_=i==="px",m=i==="%",p,h,g,w;if(i===s||!l||Ad[i]||Ad[s])return l;if(s!=="px"&&!_&&(l=t(e,n,r,"px")),w=e.getCTM&&$d(e),(m||s==="%")&&(_t[n]||~n.indexOf("adius")))return p=w?e.getBBox()[c?"width":"height"]:e[d],oe(m?l/p*f:l/100*p);if(a[c?"width":"height"]=f+(_?s:i),h=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ft||!h.appendChild)&&(h=Ft.body),g=h._gsap,g&&m&&g.width&&c&&g.time===De.time&&!g.uncache)return oe(l/g.width*f);if(m&&(n==="height"||n==="width")){var S=e.style[n];e.style[n]=f+i,p=e[d],S?e.style[n]=S:Jt(e,n)}else(m||s==="%")&&!v2[ot(h,"display")]&&(a.position=ot(e,"position")),h===e&&(a.position="static"),h.appendChild(Xt),p=Xt[d],h.removeChild(Xt),a.position="absolute";return c&&m&&(g=Zt(h),g.time=De.time,g.width=h[d]),oe(_?p*l/f:p&&l?f/p*l:0)},mt=function(e,n,r,i){var l;return ul||hl(),n in rt&&n!=="transform"&&(n=rt[n],~n.indexOf(",")&&(n=n.split(",")[0])),_t[n]&&n!=="transform"?(l=mr(e,i),l=n!=="transformOrigin"?l[n]:l.svg?l.origin:yo(ot(e,Ee))+" "+l.zOrigin+"px"):(l=e.style[n],(!l||l==="auto"||i||~(l+"").indexOf("calc("))&&(l=go[n]&&go[n](e,n,r)||ot(e,n)||Lu(e,n)||(n==="opacity"?1:0))),r&&!~(l+"").trim().indexOf(" ")?Ot(e,n,l,r)+r:l},N2=function(e,n,r,i){if(!r||r==="none"){var l=Mn(n,e,1),s=l&&ot(e,l,1);s&&s!==r?(n=l,r=s):n==="borderColor"&&(r=ot(e,"borderTopColor"))}var a=new Ce(this._pt,e.style,n,0,1,bd),c=0,u=0,d,f,_,m,p,h,g,w,S,C,T,k;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(h=e.style[n],e.style[n]=i,i=ot(e,n)||i,h?e.style[n]=h:Jt(e,n)),d=[r,i],cd(d),r=d[0],i=d[1],_=r.match(vn)||[],k=i.match(vn)||[],k.length){for(;f=vn.exec(i);)g=f[0],S=i.substring(c,f.index),p?p=(p+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(p=1),g!==(h=_[u++]||"")&&(m=parseFloat(h)||0,T=h.substr((m+"").length),g.charAt(1)==="="&&(g=Nn(m,g)+T),w=parseFloat(g),C=g.substr((w+"").length),c=vn.lastIndex-C.length,C||(C=C||ve.units[n]||T,c===i.length&&(i+=C,a.e+=C)),T!==C&&(m=Ot(e,n,h,C)||0),a._pt={_next:a._pt,p:S||u===1?S:",",s:m,c:w-m,m:p&&p<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?Id:Ed;return Du.test(i)&&(a.e=0),this._pt=a,a},Pd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},B2=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=Pd[r]||r,n[1]=Pd[i]||i,n.join(" ")},F2=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,l=n.u,s=r._gsap,a,c,u;if(l==="all"||l===!0)i.cssText="",c=1;else for(l=l.split(","),u=l.length;--u>-1;)a=l[u],_t[a]&&(c=1,a=a==="transformOrigin"?Ee:K),Jt(r,a);c&&(Jt(r,K),s&&(s.svg&&r.removeAttribute("transform"),mr(r,1),s.uncache=1,vd(i)))}},go={clearProps:function(e,n,r,i,l){if(l.data!=="isFromStart"){var s=e._pt=new Ce(e._pt,n,r,0,0,F2);return s.u=i,s.pr=-10,s.tween=l,e._props.push(r),1}}},_r=[1,0,0,1,0,0],Md={},Vd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ld=function(e){var n=ot(e,K);return Vd(n)?_r:n.substr(7).match(Fu).map(oe)},gl=function(e,n){var r=e._gsap||Zt(e),i=e.style,l=Ld(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,l=[c.a,c.b,c.c,c.d,c.e,c.f],l.join(",")==="1,0,0,1,0,0"?_r:l):(l===_r&&!e.offsetParent&&e!==$n&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(u=1,a=e.nextElementSibling,$n.appendChild(e)),l=Ld(e),c?i.display=c:Jt(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):$n.removeChild(e))),n&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},yl=function(e,n,r,i,l,s){var a=e._gsap,c=l||gl(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,_=a.yOffset||0,m=c[0],p=c[1],h=c[2],g=c[3],w=c[4],S=c[5],C=n.split(" "),T=parseFloat(C[0])||0,k=parseFloat(C[1])||0,b,y,I,E;r?c!==_r&&(y=m*g-p*h)&&(I=T*(g/y)+k*(-h/y)+(h*S-g*w)/y,E=T*(-p/y)+k*(m/y)-(m*S-p*w)/y,T=I,k=E):(b=Od(e),T=b.x+(~C[0].indexOf("%")?T/100*b.width:T),k=b.y+(~(C[1]||C[0]).indexOf("%")?k/100*b.height:k)),i||i!==!1&&a.smooth?(w=T-u,S=k-d,a.xOffset=f+(w*m+S*h)-w,a.yOffset=_+(w*p+S*g)-S):a.xOffset=a.yOffset=0,a.xOrigin=T,a.yOrigin=k,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ee]="0px 0px",s&&(Dt(s,a,"xOrigin",u,T),Dt(s,a,"yOrigin",d,k),Dt(s,a,"xOffset",f,a.xOffset),Dt(s,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",T+" "+k)},mr=function(e,n){var r=e._gsap||new _d(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,l=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=ot(e,Ee)||"0",d,f,_,m,p,h,g,w,S,C,T,k,b,y,I,E,B,V,L,z,ce,te,ne,ae,Oe,Vn,on,ln,lt,yr,Xe,ht;return d=f=_=h=g=w=S=C=T=0,m=p=1,r.svg=!!(e.getCTM&&$d(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[K]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[K]!=="none"?c[K]:"")),i.scale=i.rotate=i.translate="none"),y=gl(e,r.svg),r.svg&&(r.uncache?(Oe=e.getBBox(),u=r.xOrigin-Oe.x+"px "+(r.yOrigin-Oe.y)+"px",ae=""):ae=!n&&e.getAttribute("data-svg-origin"),yl(e,ae||u,!!ae||r.originIsAbsolute,r.smooth!==!1,y)),k=r.xOrigin||0,b=r.yOrigin||0,y!==_r&&(V=y[0],L=y[1],z=y[2],ce=y[3],d=te=y[4],f=ne=y[5],y.length===6?(m=Math.sqrt(V*V+L*L),p=Math.sqrt(ce*ce+z*z),h=V||L?Pn(L,V)*Kt:0,S=z||ce?Pn(z,ce)*Kt+h:0,S&&(p*=Math.abs(Math.cos(S*An))),r.svg&&(d-=k-(k*V+b*z),f-=b-(k*L+b*ce))):(ht=y[6],yr=y[7],on=y[8],ln=y[9],lt=y[10],Xe=y[11],d=y[12],f=y[13],_=y[14],I=Pn(ht,lt),g=I*Kt,I&&(E=Math.cos(-I),B=Math.sin(-I),ae=te*E+on*B,Oe=ne*E+ln*B,Vn=ht*E+lt*B,on=te*-B+on*E,ln=ne*-B+ln*E,lt=ht*-B+lt*E,Xe=yr*-B+Xe*E,te=ae,ne=Oe,ht=Vn),I=Pn(-z,lt),w=I*Kt,I&&(E=Math.cos(-I),B=Math.sin(-I),ae=V*E-on*B,Oe=L*E-ln*B,Vn=z*E-lt*B,Xe=ce*B+Xe*E,V=ae,L=Oe,z=Vn),I=Pn(L,V),h=I*Kt,I&&(E=Math.cos(I),B=Math.sin(I),ae=V*E+L*B,Oe=te*E+ne*B,L=L*E-V*B,ne=ne*E-te*B,V=ae,te=Oe),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,w=180-w),m=oe(Math.sqrt(V*V+L*L+z*z)),p=oe(Math.sqrt(ne*ne+ht*ht)),I=Pn(te,ne),S=Math.abs(I)>2e-4?I*Kt:0,T=Xe?1/(Xe<0?-Xe:Xe):0),r.svg&&(ae=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Vd(ot(e,K)),ae&&e.setAttribute("transform",ae))),Math.abs(S)>90&&Math.abs(S)<270&&(l?(m*=-1,S+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,S+=S<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=oe(m),r.scaleY=oe(p),r.rotation=oe(h)+a,r.rotationX=oe(g)+a,r.rotationY=oe(w)+a,r.skewX=S+a,r.skewY=C+a,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ee]=yo(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?O2:Bd?Ud:D2,r.uncache=0,r},yo=function(e){return(e=e.split(" "))[0]+" "+e[1]},bl=function(e,n,r){var i=ge(n);return oe(parseFloat(n)+parseFloat(Ot(e,"x",r+"px",i)))+i},D2=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Ud(e,n)},en="0deg",hr="0px",tn=") ",Ud=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,_=r.skewX,m=r.skewY,p=r.scaleX,h=r.scaleY,g=r.transformPerspective,w=r.force3D,S=r.target,C=r.zOrigin,T="",k=w==="auto"&&e&&e!==1||w===!0;if(C&&(f!==en||d!==en)){var b=parseFloat(d)*An,y=Math.sin(b),I=Math.cos(b),E;b=parseFloat(f)*An,E=Math.cos(b),s=bl(S,s,y*E*-C),a=bl(S,a,-Math.sin(b)*-C),c=bl(S,c,I*E*-C+C)}g!==hr&&(T+="perspective("+g+tn),(i||l)&&(T+="translate("+i+"%, "+l+"%) "),(k||s!==hr||a!==hr||c!==hr)&&(T+=c!==hr||k?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+tn),u!==en&&(T+="rotate("+u+tn),d!==en&&(T+="rotateY("+d+tn),f!==en&&(T+="rotateX("+f+tn),(_!==en||m!==en)&&(T+="skew("+_+", "+m+tn),(p!==1||h!==1)&&(T+="scale("+p+", "+h+tn),S.style[K]=T||"translate(0, 0)"},O2=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,_=r.scaleY,m=r.target,p=r.xOrigin,h=r.yOrigin,g=r.xOffset,w=r.yOffset,S=r.forceCSS,C=parseFloat(s),T=parseFloat(a),k,b,y,I,E;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=An,u*=An,k=Math.cos(c)*f,b=Math.sin(c)*f,y=Math.sin(c-u)*-_,I=Math.cos(c-u)*_,u&&(d*=An,E=Math.tan(u-d),E=Math.sqrt(1+E*E),y*=E,I*=E,d&&(E=Math.tan(d),E=Math.sqrt(1+E*E),k*=E,b*=E)),k=oe(k),b=oe(b),y=oe(y),I=oe(I)):(k=f,I=_,b=y=0),(C&&!~(s+"").indexOf("px")||T&&!~(a+"").indexOf("px"))&&(C=Ot(m,"x",s,"px"),T=Ot(m,"y",a,"px")),(p||h||g||w)&&(C=oe(C+p-(p*k+h*y)+g),T=oe(T+h-(p*b+h*I)+w)),(i||l)&&(E=m.getBBox(),C=oe(C+i/100*E.width),T=oe(T+l/100*E.height)),E="matrix("+k+","+b+","+y+","+I+","+C+","+T+")",m.setAttribute("transform",E),S&&(m.style[K]=E)},$2=function(e,n,r,i,l){var s=360,a=ue(l),c=parseFloat(l)*(a&&~l.indexOf("rad")?Kt:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=l.split("_")[1],f==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),f==="cw"&&u<0?u=(u+s*Td)%s-~~(u/s)*s:f==="ccw"&&u>0&&(u=(u-s*Td)%s-~~(u/s)*s)),e._pt=_=new Ce(e._pt,n,r,i,u,g2),_.e=d,_.u="deg",e._props.push(r),_},Rd=function(e,n){for(var r in n)e[r]=n[r];return e},A2=function(e,n,r){var i=Rd({},r._gsap),l="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,d,f,_,m,p;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[K]=n,a=mr(r,1),Jt(r,K),r.setAttribute("transform",u)):(u=getComputedStyle(r)[K],s[K]=n,a=mr(r,1),s[K]=u);for(c in _t)u=i[c],d=a[c],u!==d&&l.indexOf(c)<0&&(m=ge(u),p=ge(d),f=m!==p?Ot(r,c,u,p):parseFloat(u),_=parseFloat(d),e._pt=new Ce(e._pt,a,c,f,_-f,_l),e._pt.u=p||0,e._props.push(c));Rd(a,i)};ke("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",l="Left",s=(e<3?[n,r,i,l]:[n+l,n+r,i+r,i+l]).map(function(a){return e<2?t+a:"border"+a+t});go[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=s.map(function(p){return mt(a,p,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},s.forEach(function(p,h){return m[p]=_[h]=_[h]||_[(h-1)/2|0]}),a.init(c,m,f)}});var zd={name:"css",register:hl,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,l){var s=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,p,h,g,w,S,C,T,k,b,y,I;ul||hl(),this.styles=this.styles||Nd(e),I=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(d=n[h],!(Be[h]&&md(h,n,r,i,e,l)))){if(m=typeof d,p=go[h],m==="function"&&(d=d.call(r,i,e,l),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=sr(d)),p)p(this,e,h,d,r)&&(y=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),d+="",Nt.lastIndex=0,Nt.test(u)||(g=ge(u),w=ge(d)),w?g!==w&&(u=Ot(e,h,u,w)+w):g&&(d+=g),this.add(a,"setProperty",u,d,i,l,0,0,h),s.push(h),I.push(h,0,a[h]);else if(m!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,e,l):c[h],ue(u)&&~u.indexOf("random(")&&(u=sr(u)),ge(u+"")||u==="auto"||(u+=ve.units[h]||ge(mt(e,h))||""),(u+"").charAt(1)==="="&&(u=mt(e,h))):u=mt(e,h),_=parseFloat(u),S=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),S&&(d=d.substr(2)),f=parseFloat(d),h in rt&&(h==="autoAlpha"&&(_===1&&mt(e,"visibility")==="hidden"&&f&&(_=0),I.push("visibility",0,a.visibility),Dt(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=rt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),C=h in _t,C){if(this.styles.save(h),T||(k=e._gsap,k.renderTransform&&!n.parseTransform||mr(e,n.parseTransform),b=n.smoothOrigin!==!1&&k.smooth,T=this._pt=new Ce(this._pt,a,K,0,1,k.renderTransform,k,0,-1),T.dep=1),h==="scale")this._pt=new Ce(this._pt,k,"scaleY",k.scaleY,(S?Nn(k.scaleY,S+f):f)-k.scaleY||0,_l),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){I.push(Ee,0,a[Ee]),d=B2(d),k.svg?yl(e,d,0,b,0,this):(w=parseFloat(d.split(" ")[2])||0,w!==k.zOrigin&&Dt(this,k,"zOrigin",k.zOrigin,w),Dt(this,a,h,yo(u),yo(d)));continue}else if(h==="svgOrigin"){yl(e,d,1,b,0,this);continue}else if(h in Md){$2(this,k,h,_,S?Nn(_,S+d):d);continue}else if(h==="smoothOrigin"){Dt(this,k,"smooth",k.smooth,d);continue}else if(h==="force3D"){k[h]=d;continue}else if(h==="transform"){A2(this,d,e);continue}}else h in a||(h=Mn(h)||h);if(C||(f||f===0)&&(_||_===0)&&!p2.test(d)&&h in a)g=(u+"").substr((_+"").length),f||(f=0),w=ge(d)||(h in ve.units?ve.units[h]:g),g!==w&&(_=Ot(e,h,u,w)),this._pt=new Ce(this._pt,C?k:a,h,_,(S?Nn(_,S+f):f)-_,!C&&(w==="px"||h==="zIndex")&&n.autoRound!==!1?b2:_l),this._pt.u=w||0,g!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=y2);else if(h in a)N2.call(this,e,h,u,S?S+d:d);else if(h in e)this.add(e,h,u||e[h],S?S+d:d,i,l);else if(h!=="parseTransform"){Ri(h,d);continue}C||(h in a?I.push(h,0,a[h]):I.push(h,1,u||e[h])),s.push(h)}}y&&xd(this)},render:function(e,n){if(n.tween._time||!dl())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:mt,aliases:rt,getSetter:function(e,n,r){var i=rt[n];return i&&i.indexOf(",")<0&&(n=i),n in _t&&n!==Ee&&(e._gsap.x||mt(e,"x"))?r&&Cd===r?n==="scale"?k2:S2:(Cd=r||{})&&(n==="scale"?C2:T2):e.style&&!Ai(e.style[n])?x2:~n.indexOf("-")?w2:il(e,n)},core:{_removeProperty:Jt,_getMatrix:gl}};Te.utils.checkPrefix=Mn,Te.core.getStyleSaver=Nd,function(t,e,n,r){var i=ke(t+","+e+","+n,function(l){_t[l]=1});ke(e,function(l){ve.units[l]="deg",Md[l]=1}),rt[i[13]]=t+","+e,ke(r,function(l){var s=l.split(":");rt[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),ke("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){ve.units[t]="px"}),Te.registerPlugin(zd);var xl=Te.registerPlugin(zd)||Te;xl.core.Tween;const P2={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=o.ref(null),r=o.computed(()=>e.delayOffset/n.value.$el.children.length);function i(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function l(a,c){if(e.disabled){c();return}xl.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function s(a,c){if(e.disabled){c();return}xl.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:l,onLeave:s},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}};class qd extends Bi{constructor(n={}){super({showPlaceholder:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.updateScrollPosition())}dragEnd(n){var i;const r=this.draggableData;(i=this.placeholder)==null||i.remove(),super.dragEnd(n),this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){super.dragOver(n),this.updateListPosition(n)}updateListPosition(n){const r=this.listPosition,i=this.getListPositionOfPoint({x:n.clientX,y:n.clientY});this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==r&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.draggableData))}getListPosition(n){let r=0;for(const i of this.getChildren()){if(i===n)return r;r++}return null}getChildren(){return[...this.currentDropZone.children].filter(n=>n.className.match(/drag-placeholder/)===null)}getListPositionOfPoint(n){let r=0;const i=this.getChildren();for(;r<i.length;){const l=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<l.top+l.height/2)break}else if(n.x<l.left+l.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const l=f=>f*5,s=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-s,d=s-(c-r);u>0?i=-l(u):d>0&&(i=l(d)),i&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+i,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+i,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}}renderPlaceholder(){this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("direction-vertical"),this.placeholder.classList.remove("direction-horizontal"),this.placeholder.style.height=void 0):(this.placeholder.classList.add("direction-horizontal"),this.placeholder.classList.remove("direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const M2={class:"flex items-center"},V2={key:0},L2={class:"flex-grow"},Gd={__name:"ListItemDraggable",props:{dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},showHandle:Boolean,listItems:{type:Array,default:null}},emits:["position","update:list-items"],setup(t,{emit:e}){const n=e,r=t,i=new qd().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction}).onPositionChange((l,s)=>{if(n("position",l),r.listItems){const a=[...r.listItems];a.splice(l,0,a.splice(s,1)[0]),n("update:list-items",a)}});return(l,s)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",M2,[t.showHandle?(o.openBlock(),o.createElementBlock("div",V2,[o.createVNode(o.unref(wu),{svg:o.unref(uu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",L2,[o.renderSlot(l.$slots,"default")])])],32))}},U2=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),R2={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function l(u){return!r.hiddenColumnNames.includes(u.name)}function s(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=Un(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!i.value){Ze.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Un(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(xu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[U2,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(Ni),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),o.createVNode(o.unref(Iu),{name:"fade-down-list","data-drop-zone":"column-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sortableColumns,(f,_)=>(o.openBlock(),o.createBlock(o.unref(Gd),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:o.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":_===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=m=>u.$emit("update:sortable-columns",m))},{default:o.withCtx(()=>[o.createVNode(o.unref(Ni),{column:f,visible:l(f),"is-title":a(f),onVisible:m=>s(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Zd={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.columns,i=>(o.openBlock(),o.createElementBlock("div",{key:i.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},z2={"!visible":"_!visible_1xlle_1",visible:"_visible_1xlle_1",collapse:"_collapse_1xlle_1",static:"_static_1xlle_1",absolute:"_absolute_1xlle_1",relative:"_relative_1xlle_1",sticky:"_sticky_1xlle_1","bottom-1":"_bottom-1_1xlle_1","left-0":"_left-0_1xlle_1","right-0":"_right-0_1xlle_1","right-1":"_right-1_1xlle_1","right-4":"_right-4_1xlle_1","top-0":"_top-0_1xlle_1","top-1":"_top-1_1xlle_1","top-4":"_top-4_1xlle_1","m-2":"_m-2_1xlle_1","m-4":"_m-4_1xlle_1","mx-1":"_mx-1_1xlle_1","mx-4":"_mx-4_1xlle_1","mx-auto":"_mx-auto_1xlle_1","my-2":"_my-2_1xlle_1","!mr-1":"_!mr-1_1xlle_1","mb-2":"_mb-2_1xlle_1","mb-4":"_mb-4_1xlle_1","ml-1":"_ml-1_1xlle_1","ml-2":"_ml-2_1xlle_1","ml-2.5":"_ml-2.5_1xlle_1","ml-3":"_ml-3_1xlle_1","ml-4":"_ml-4_1xlle_1","ml-5":"_ml-5_1xlle_1","ml-[-.2em]":"_ml-[-.2em]_1xlle_1","mr-1":"_mr-1_1xlle_1","mr-2":"_mr-2_1xlle_1","mr-3":"_mr-3_1xlle_1","mt-1":"_mt-1_1xlle_1","mt-2":"_mt-2_1xlle_1","mt-3":"_mt-3_1xlle_1","mt-4":"_mt-4_1xlle_1",block:"_block_1xlle_1","inline-block":"_inline-block_1xlle_1",inline:"_inline_1xlle_1",flex:"_flex_1xlle_1",table:"_table_1xlle_1",hidden:"_hidden_1xlle_1","h-10":"_h-10_1xlle_1","h-4":"_h-4_1xlle_1","h-5":"_h-5_1xlle_1","h-8":"_h-8_1xlle_1","h-full":"_h-full_1xlle_1","max-h-full":"_max-h-full_1xlle_1","w-16":"_w-16_1xlle_1","w-2/5":"_w-2/5_1xlle_1","w-24":"_w-24_1xlle_1","w-3":"_w-3_1xlle_1","w-3/5":"_w-3/5_1xlle_1","w-32":"_w-32_1xlle_1","w-4":"_w-4_1xlle_1","w-48":"_w-48_1xlle_1","w-5":"_w-5_1xlle_1","w-6":"_w-6_1xlle_1","w-7":"_w-7_1xlle_1","w-72":"_w-72_1xlle_1","w-8":"_w-8_1xlle_1","w-96":"_w-96_1xlle_1","w-[13.5rem]":"_w-[13.5rem]_1xlle_1","w-[35.5rem]":"_w-[35.5rem]_1xlle_1","w-[6.5rem]":"_w-[6.5rem]_1xlle_1","w-full":"_w-full_1xlle_1","!min-w-0":"_!min-w-0_1xlle_1","max-w-[50em]":"_max-w-[50em]_1xlle_1","max-w-full":"_max-w-full_1xlle_1","flex-shrink-0":"_flex-shrink-0_1xlle_1","flex-grow":"_flex-grow_1xlle_1",grow:"_grow_1xlle_1","rotate-180":"_rotate-180_1xlle_1",transform:"_transform_1xlle_1","cursor-ew-resize":"_cursor-ew-resize_1xlle_1","cursor-move":"_cursor-move_1xlle_1","cursor-not-allowed":"_cursor-not-allowed_1xlle_1","cursor-ns-resize":"_cursor-ns-resize_1xlle_1","cursor-pointer":"_cursor-pointer_1xlle_1",resize:"_resize_1xlle_1","flex-col":"_flex-col_1xlle_1","flex-nowrap":"_flex-nowrap_1xlle_1","items-center":"_items-center_1xlle_1","items-stretch":"_items-stretch_1xlle_1","justify-start":"_justify-start_1xlle_1","justify-end":"_justify-end_1xlle_1","justify-center":"_justify-center_1xlle_1","justify-between":"_justify-between_1xlle_1","gap-y-0":"_gap-y-0_1xlle_1","gap-y-1":"_gap-y-1_1xlle_1","space-x-1":"_space-x-1_1xlle_1","space-x-2":"_space-x-2_1xlle_1","self-center":"_self-center_1xlle_1","overflow-auto":"_overflow-auto_1xlle_1","overflow-hidden":"_overflow-hidden_1xlle_1","overflow-y-auto":"_overflow-y-auto_1xlle_20","overflow-x-hidden":"_overflow-x-hidden_1xlle_1","scroll-smooth":"_scroll-smooth_1xlle_1","overflow-ellipsis":"_overflow-ellipsis_1xlle_1","whitespace-nowrap":"_whitespace-nowrap_1xlle_1",rounded:"_rounded_1xlle_1","rounded-2xl":"_rounded-2xl_1xlle_1","rounded-lg":"_rounded-lg_1xlle_1","rounded-md":"_rounded-md_1xlle_1","!rounded-l-none":"_!rounded-l-none_1xlle_1","!rounded-r-none":"_!rounded-r-none_1xlle_1","rounded-b-lg":"_rounded-b-lg_1xlle_1","rounded-t-lg":"_rounded-t-lg_1xlle_1","rounded-t-md":"_rounded-t-md_1xlle_1","!border-0":"_!border-0_1xlle_1",border:"_border_1xlle_1","border-b":"_border-b_1xlle_1","border-l":"_border-l_1xlle_1","border-l-0":"_border-l-0_1xlle_1","border-r":"_border-r_1xlle_1","border-t":"_border-t_1xlle_1","border-solid":"_border-solid_1xlle_1","border-dashed":"_border-dashed_1xlle_1","border-blue-600":"_border-blue-600_1xlle_1","border-blue-700":"_border-blue-700_1xlle_1","border-gray-200":"_border-gray-200_1xlle_1","border-gray-300":"_border-gray-300_1xlle_1","border-slate-200":"_border-slate-200_1xlle_1","!bg-blue-600":"_!bg-blue-600_1xlle_1","!bg-gray-100":"_!bg-gray-100_1xlle_1","bg-blue-200":"_bg-blue-200_1xlle_1","bg-blue-600":"_bg-blue-600_1xlle_1","bg-emerald-200":"_bg-emerald-200_1xlle_1","bg-gray-100":"_bg-gray-100_1xlle_1","bg-gray-200":"_bg-gray-200_1xlle_1","bg-gray-400":"_bg-gray-400_1xlle_1","bg-gray-500":"_bg-gray-500_1xlle_1","bg-green-300":"_bg-green-300_1xlle_1","bg-red-200":"_bg-red-200_1xlle_1","bg-red-300":"_bg-red-300_1xlle_1","bg-red-900":"_bg-red-900_1xlle_1","bg-slate-100":"_bg-slate-100_1xlle_1","bg-slate-200":"_bg-slate-200_1xlle_1","bg-transparent":"_bg-transparent_1xlle_1","bg-white":"_bg-white_1xlle_1","bg-yellow-300":"_bg-yellow-300_1xlle_1","!p-1":"_!p-1_1xlle_1","!p-2":"_!p-2_1xlle_1","p-0":"_p-0_1xlle_1","p-1":"_p-1_1xlle_1","p-2":"_p-2_1xlle_1","p-3":"_p-3_1xlle_1","p-4":"_p-4_1xlle_1","!py-0":"_!py-0_1xlle_1","px-1":"_px-1_1xlle_1","px-12":"_px-12_1xlle_1","px-2":"_px-2_1xlle_1","px-2.5":"_px-2.5_1xlle_1","px-4":"_px-4_1xlle_1","px-6":"_px-6_1xlle_1","px-8":"_px-8_1xlle_1","py-1":"_py-1_1xlle_1","py-14":"_py-14_1xlle_1","py-2":"_py-2_1xlle_1","py-2.5":"_py-2.5_1xlle_1","py-3":"_py-3_1xlle_1","py-4":"_py-4_1xlle_1","py-8":"_py-8_1xlle_1","!pl-4":"_!pl-4_1xlle_1","!pl-5":"_!pl-5_1xlle_1","pl-1":"_pl-1_1xlle_1","pl-2":"_pl-2_1xlle_1","pl-6":"_pl-6_1xlle_1","pr-10":"_pr-10_1xlle_1","text-left":"_text-left_1xlle_1","text-center":"_text-center_1xlle_1","text-right":"_text-right_1xlle_1","!text-xs":"_!text-xs_1xlle_1","text-[1rem]":"_text-[1rem]_1xlle_1","text-sm":"_text-sm_1xlle_1","text-xs":"_text-xs_1xlle_1","font-bold":"_font-bold_1xlle_1","font-medium":"_font-medium_1xlle_1","font-normal":"_font-normal_1xlle_1","font-semibold":"_font-semibold_1xlle_1",uppercase:"_uppercase_1xlle_1","leading-[1.2rem]":"_leading-[1.2rem]_1xlle_1","!text-green-900":"_!text-green-900_1xlle_1","!text-red-900":"_!text-red-900_1xlle_1","!text-white":"_!text-white_1xlle_1","!text-yellow-900":"_!text-yellow-900_1xlle_1","text-black":"_text-black_1xlle_1","text-blue-600":"_text-blue-600_1xlle_1","text-blue-900":"_text-blue-900_1xlle_1","text-gray-300":"_text-gray-300_1xlle_1","text-gray-400":"_text-gray-400_1xlle_1","text-gray-500":"_text-gray-500_1xlle_1","text-gray-600":"_text-gray-600_1xlle_1","text-gray-700":"_text-gray-700_1xlle_1","text-red-400":"_text-red-400_1xlle_1","text-red-900":"_text-red-900_1xlle_1","text-white":"_text-white_1xlle_1","text-yellow-600":"_text-yellow-600_1xlle_1","text-zinc-500":"_text-zinc-500_1xlle_1","text-zinc-800":"_text-zinc-800_1xlle_1","line-through":"_line-through_1xlle_1","opacity-20":"_opacity-20_1xlle_1","opacity-50":"_opacity-50_1xlle_1","opacity-70":"_opacity-70_1xlle_1","shadow-none":"_shadow-none_1xlle_1","outline-none":"_outline-none_1xlle_1",outline:"_outline_1xlle_1",filter:"_filter_1xlle_1",transition:"_transition_1xlle_1","transition-all":"_transition-all_1xlle_1","duration-300":"_duration-300_1xlle_1","q-tab":"_q-tab_1xlle_4","q-tab-panels":"_q-tab-panels_1xlle_8","q-panel":"_q-panel_1xlle_11",scroll:"_scroll_1xlle_14","q-tab-panel":"_q-tab-panel_1xlle_8","q-toolbar":"_q-toolbar_1xlle_24","q-notification__actions":"_q-notification__actions_1xlle_29",app:"_app_1xlle_1","main-layout":"_main-layout_1xlle_1","is-disabled":"_is-disabled_1xlle_45","disable-all-transitions":"_disable-all-transitions_1xlle_50","v-enter-active":"_v-enter-active_1xlle_54","v-leave-active":"_v-leave-active_1xlle_55","v-enter-from":"_v-enter-from_1xlle_59","v-leave-to":"_v-leave-to_1xlle_60","category-toggle":"_category-toggle_1xlle_64","has-visible-columns":"_has-visible-columns_1xlle_67","hover:bg-blue-200":"_hover:bg-blue-200_1xlle_1","hover:bg-gray-200":"_hover:bg-gray-200_1xlle_1","hover:bg-red-200":"_hover:bg-red-200_1xlle_1","hover:bg-slate-200":"_hover:bg-slate-200_1xlle_1","hover:text-blue-500":"_hover:text-blue-500_1xlle_1","hover:text-blue-600":"_hover:text-blue-600_1xlle_1","hover:opacity-100":"_hover:opacity-100_1xlle_1","focus:bg-blue-200":"_focus:bg-blue-200_1xlle_1"},q2={class:"flex items-center flex-nowrap"},G2=["onClick"],Z2={class:"text-xs"},H2=ut({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(""),l=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function s(m){return r.columns.filter(p=>p.category===m)}function a(m){return s(m).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(m){let p=s(m).filter(g=>!g.required);const h=p.filter(g=>!r.hiddenColumnNames.includes(g.name));return h.length===0?!1:h.length===p.length?!0:null}function u(m,p){m=m.filter(g=>!g.required);let h=[...r.hiddenColumnNames];p?h=h.filter(g=>!m.map(w=>w.name).includes(g)):h=[...new Set([...h,...m.map(g=>g.name)])],n("update:hidden-column-names",h)}function d(m,p){if(r.columns.find(g=>g.name===m).required)return;p=p??r.hiddenColumnNames.includes(m);let h=[...r.hiddenColumnNames];p?h=Un(h,m):(h.push(m),h=[...new Set(h)]),n("update:hidden-column-names",h)}const f=o.useCssModule();function _(m){return f["category-toggle"]+(a(m)?" "+f["has-visible-columns"]:"")}return(m,p)=>{const h=o.resolveComponent("QCheckbox"),g=o.resolveComponent("QList"),w=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",q2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,S=>(o.openBlock(),o.createElementBlock("div",{key:S,class:o.normalizeClass(_(S))},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(S),class:"mr-2 cb-white-border",onClick:C=>u(s(S),!a(S))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(S),1),o.createVNode(o.unref(cu),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===S}])},null,8,["class"]),o.createVNode(w,{"onUpdate:modelValue":C=>i.value=C?S:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s(S),C=>(o.openBlock(),o.createElementBlock("div",{key:C,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:T=>d(C.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(C.name),class:"mr-3 cb-white-border",size:"20px",color:C.required?"gray-400":"blue-600",disable:C.required,onClick:T=>d(C.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",Z2,o.toDisplayString(C.label),1)],8,G2))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:z2}]]),W2={__name:"CollapsableFiltersSidebar",props:{name:{type:String,required:!0},showFilters:Boolean,filter:{type:Object,default:null},filterFields:{type:Array,default:()=>[]}},emits:["update:filter","update:show-filters"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(Su),{collapse:!t.showFilters,disabled:"","min-width":"0","max-width":"18rem",name:t.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(of),{filter:t.filter,"filter-fields":t.filterFields,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:filter",r))},null,8,["filter","filter-fields"])]),_:1},8,["collapse","name"]))}},j2={key:0,class:"text-red-900 ml-1 text-xs bottom-1 relative"},nn={__name:"FieldLabel",props:{field:{type:Object,default:null},label:{type:String,default:null},showName:Boolean,required:Boolean},setup(t){const e=t,n=o.computed(()=>{var i;return e.label||((i=e.field)==null?void 0:i.label)}),r=o.computed(()=>{var i,l;return((i=e.field)==null?void 0:i.required_group)||(e.required||(l=e.field)!=null&&l.required?"*":"")});return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var s;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),t.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((s=t.field)==null?void 0:s.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",j2,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},wl={__name:"BooleanField",props:{label:{type:String,default:null},modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QToggle");return o.openBlock(),o.createBlock(r,{"data-testid":"boolean-field-"+t.field.id,"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:{...t.field,label:t.label||t.field.label},"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}},Y2={for:"first_name",class:"form-label"},Q2={class:"mt-1"},Sl={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("label",Y2,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Q2,[o.createVNode(r,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},X2={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r===e.password||"The password and confirmation do not match"];return(r,i)=>(o.openBlock(),o.createBlock(o.unref(Sl),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16,["name","model-value"]))}},K2={key:0,class:"font-bold text-xs mb-2"},J2={class:"flex items-center cursor-pointer"},ew={class:"font-bold ml-3 hover:text-blue-600"},kl={__name:"DateField",props:{modelValue:{type:[String,Object],default:null},label:{type:String,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.modelValue?Je(Vr(r.modelValue||"0000-00-00")):null),l=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>l.value=a);function s(){n("update:model-value",l.value)}return(a,c)=>{const u=o.resolveComponent("QDate"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",K2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",J2,[o.createVNode(o.unref(ru),{class:"w-5 text-blue-600"}),o.createElementVNode("div",ew,[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>l.value=f),s]},null,8,["modelValue"])]),_:1})])}}},tw={key:0,class:"font-bold text-xs mb-2"},nw={class:"flex items-center cursor-pointer"},rw={class:"font-bold ml-3 hover:text-blue-600"},Cl={__name:"DateRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},inline:Boolean,withTime:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>a.value?r.withTime?{from:Je(Wo(a.value.from||"0000-00-00")),to:Je(Wo(a.value.to||"9999-12-31"))}:{from:Je(Vr(a.value.from||"0000-00-00")),to:Je(Vr(a.value.to||"9999-12-31"))}:{from:null,to:null}),l=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,u=>l.value=s(u));function s(u){return u!=null&&u.from&&(u!=null&&u.to)?Je(u.from)===Je(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof l.value=="string"?u={from:l.value,to:l.value}:l.value&&(u={from:l.value.from,to:l.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=o.resolveComponent("QDate"),_=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",tw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.inline?(o.openBlock(),o.createBlock(f,{key:1,modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>l.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",nw,[o.createVNode(o.unref(ru),{class:"w-5 text-blue-600"}),o.createElementVNode("div",rw,[a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value.from)+" - "+o.toDisplayString(i.value.to),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>l.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},ow={class:"flex items-center justify-center"},iw={key:0,class:"flex-grow"},Tl={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,r=t,i=o.computed({get:()=>Yo(Ho(r.modelValue)),set(l){const s=l?Yo(_a(l)):null;(s||r.nullable)&&n("update:modelValue",s)}});return(l,s)=>{const a=o.resolveComponent("QBtn"),c=o.resolveComponent("QDate"),u=o.resolveComponent("QTime"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",ow,[t.nullable?(o.openBlock(),o.createElementBlock("div",iw,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:s[0]||(s[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:s[1]||(s[1]=f=>l.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:s[2]||(s[2]=f=>l.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},lw={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.ref(r.modelValue);function s(){n("update:model-value",l.value),i.value=!1}return(a,c)=>{const u=o.resolveComponent("QPopupProxy"),d=o.resolveComponent("QIcon"),f=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{"model-value":o.unref(gn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>i.value=!0)},{append:o.withCtx(()=>[o.createVNode(d,{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value=_)},{default:o.withCtx(()=>[o.createVNode(o.unref(Tl),{modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=_=>l.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:s},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},sw={__name:"EditableDiv",props:{modelValue:{type:String,required:!0},debounceDelay:{type:Number,default:500}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.modelValue),l=Ln(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function s(a){i.value=a.target.innerText,l()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:s},o.toDisplayString(i.value),33))}},aw=["accept","capture"],cw={__name:"FileUploadButton",props:{...Q.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:s});const r=n,i=t,l=o.ref(null);function s(){l.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new eo(c).onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});i.geolocation&&await u.resolveLocation(i.locationWaitMessage),u.upload()}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QBtn),o.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{},()=>[o.createVNode(o.unref(By),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:l,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,aw)]),_:3},16))}},uw={class:"inline-block"},dw={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},fw={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(i){n("update:model-value",i.value),n("save",i.value),i.set()}return(i,l)=>{const s=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",uw,[o.createElementVNode("div",dw,[o.createTextVNode(o.toDisplayString(o.unref(gn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(su),{class:"w-4 font-bold ml-2 text-gray-400"}),o.createVNode(s,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:o.withCtx(a=>[o.createVNode(o.unref(Tl),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>r(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},pr={__name:"NumberField",props:{modelValue:{type:[String,Number],default:""},precision:{type:Number,default:2},label:{type:String,default:void 0},field:{type:Object,default:null},inputClass:{type:String,default:""},delay:{type:Number,default:1e3},hidePrependLabel:Boolean,currency:Boolean,showName:Boolean},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));const l=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function s(u){var _;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((_=(""+u).split(".")[1])==null?void 0:_.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Ut(u,f)}const a=Ln(u=>n("update",u),r.delay);function c(u){let d="";if(u.match(/[^\d.,$]/)){const f=i.value;return i.value+=" ",o.nextTick(()=>i.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=Number(u),i.value=s(d)),d=d===""?void 0:d,n("update:model-value",d),a(d)}return(u,d)=>{const f=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(f,{"model-value":i.value,"data-testid":"number-field-"+l.value.id,placeholder:l.value.placeholder,outlined:"",dense:"",inputmode:"numeric","input-class":{[t.inputClass]:!0,"text-right bg-white":!t.hidePrependLabel,"text-right !text-xs text-black font-normal":t.hidePrependLabel},class:o.normalizeClass({"no-prepend-icon w-32 max-w-full":t.hidePrependLabel,"prepend-label":!t.hidePrependLabel}),"onUpdate:modelValue":c},{prepend:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:l.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["model-value","data-testid","placeholder","input-class","class"])}}},Hd={__name:"IntegerField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(pr),{field:t.field,precision:0,"model-value":t.modelValue,"show-name":t.showName,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["field","model-value","show-name"]))}},_w={class:"text-xs font-bold"},Wd={__name:"LabelValueBlock",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",_w,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)]))}},mw={key:0,class:"text-sm my-2"},hw={class:"max-w-[50em] flex items-stretch justify-start"},pw={key:1,class:"p-1"},jd={__name:"MultiFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFilesSelected:s,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Jc();return o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),i(()=>n("update:model-value",a.value)),(d,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300":!t.readonly}]),onDragover:f[4]||(f[4]=o.withModifiers(()=>{},["prevent"])),onDrop:f[5]||(f[5]=o.withModifiers((..._)=>o.unref(l)&&o.unref(l)(..._),["prevent"]))},[o.createVNode(o.unref(nn),{field:t.field,"show-name":t.showName,class:"text-sm font-semibold"},null,8,["field","show-name"]),!t.disable&&!t.readonly?(o.openBlock(),o.createElementBlock("div",mw,[o.createElementVNode("a",{class:"text-blue-600",onClick:f[0]||(f[0]=_=>d.$refs.file.click())},"Upload"),o.unref(a).length>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:f[1]||(f[1]=(..._)=>o.unref(c)&&o.unref(c)(..._))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[2]||(f[2]=(..._)=>o.unref(s)&&o.unref(s)(..._))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",hw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-upload-"+_.id,class:o.normalizeClass(["w-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),image:_,"related-files":o.unref(a),downloadable:"",removable:!t.readonly&&!t.disable,onRemove:m=>o.unref(u)(_)},null,8,["class","image","related-files","removable","onRemove"]))),128)),!t.disable&&!t.readonly?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,class:"w-32 m-2 cursor-pointer border border-dashed border-blue-600",disabled:"",onClick:f[3]||(f[3]=_=>d.$refs.file.click())})):o.createCommentVNode("",!0),t.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",pw," -- ")):o.createCommentVNode("",!0)])],34))}},gr={__name:"SelectField",props:{...Q.QSelect.props,modelValue:{type:[Array,String,Number,Object],default:void 0},placeholder:{type:String,default:""},selectionLabel:{type:String,default:null},chipLimit:{type:Number,default:3},inputClass:{type:String,default:""},selectionClass:{type:String,default:""},options:{type:Array,default:()=>[]},filterable:Boolean,filterFn:{type:Function,default:null}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(null),l=o.ref(null),s=o.ref(!1),a=o.computed(()=>{let b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(y=>{let I=o.isRef(y)?y.value:y;return{label:m(I),value:h(I),selectionLabel:p(I)}}),b}),c=o.computed(()=>l.value&&!r.filterFn?a.value.filter(b=>b.label.toLocaleLowerCase().indexOf(l.value.toLowerCase())>-1):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(y=>y===null?"__null__":y)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let b=u.value;return r.multiple||(b=b||b===0?[b]:[]),a.value.filter(y=>{var I;return b.includes(y.value)||b.map(E=>typeof E=="object"&&E.id).includes((I=y.value)==null?void 0:I.id)})}),f=o.computed(()=>r.filterable&&s.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=o.computed(()=>d.value.slice(0,r.chipLimit));function m(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)}function h(b){if(!b||typeof b=="string")return b;let y=b.value;return typeof r.optionValue=="string"?y=b[r.optionValue]:typeof r.optionValue=="function"&&(y=r.optionValue(b)),y===null?"__null__":y}function g(b){Array.isArray(b)&&(b=b.map(y=>y==="__null__"?null:y)),b=b==="__null__"?null:b,n("update",b),n("update:model-value",b)}const w=o.ref(!1);async function S(b,y){if(!r.filterFn)l.value=b,await o.nextTick(y);else{if(y(),w.value===!1)return;b!==null&&b!==l.value&&(l.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function T(){s.value=!0,w.value=!1,o.nextTick(()=>{w.value=!0,i.value.focus()})}function k(){s.value=!1,w.value=!1}return(b,y)=>{const I=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Q.QSelect),o.mergeProps({ref_key:"selectField",ref:i},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&s.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"","input-class":{"is-hidden":!s.value,[t.inputClass]:!0},class:"max-w-full",onFilter:S,onClear:C,onPopupShow:T,onPopupHide:k,"onUpdate:modelValue":g}),{append:o.withCtx(()=>[o.createVNode(o.unref(xy),{class:o.normalizeClass(["w-4 transition",s.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[b.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":t.chipLimit===1,[t.selectionClass]:!0}])},[_.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,E=>(o.openBlock(),o.createBlock(I,{key:"selected-"+E.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(I,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-_.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(t.selectionClass)},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}},gw={key:1},bo={__name:"TextField",props:{modelValue:{type:[String,Number],default:""},field:{type:Object,default:null},type:{type:String,default:"text"},label:{type:String,default:null},labelClass:{type:String,default:"text-sm text-gray-700"},parentClass:{type:String,default:""},inputClass:{type:String,default:""},noLabel:Boolean,showName:Boolean,disabled:Boolean,readonly:Boolean,debounce:{type:[String,Number],default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{var i,l,s;const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[t.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(r,{key:0,"data-dusk":"text-field-"+((i=t.field)==null?void 0:i.id),"data-testid":"text-field-"+((l=t.field)==null?void 0:l.id),placeholder:(s=t.field)==null?void 0:s.placeholder,outlined:"",dense:"",disable:t.disabled,"label-slot":!t.noLabel,"input-class":t.inputClass,class:o.normalizeClass(t.parentClass),"stack-label":"",type:t.type,"model-value":t.modelValue,debounce:t.debounce,onKeydown:n[0]||(n[0]=o.withKeys(a=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=a=>e.$emit("update:model-value",a))},{label:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:t.field,label:t.label,"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","label","show-name","class"])]),_:1},8,["data-dusk","data-testid","placeholder","disable","label-slot","input-class","class","type","model-value","debounce"])),t.readonly?(o.openBlock(),o.createElementBlock("div",gw,[o.createVNode(o.unref(Wd),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},Yd={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.field.defaultOption),l=o.computed(()=>r.modelValue&&r.modelValue[i.value]),s=o.ref(c());function a(){var u;s.value=((u=s.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",s.value?{[i.value]:s.value.split(",")}:void 0)}function c(){var u;return Array.isArray(l.value)?(u=l.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{s.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(gr),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>i.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),o.createVNode(o.unref(bo),{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>s.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},yw={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r.length>=8||"Please use at least 8 characters"];return(r,i)=>(o.openBlock(),o.createBlock(o.unref(Sl),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16))}},bw={key:0,class:"font-bold text-xs mb-2"},xw={class:"flex items-center flex-nowrap cursor-pointer"},ww={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},xo={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.currency?"$":r.percent?"%":""),l=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),s=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?wy:r.percent?hu:Iy)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(_){const m=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*m:void 0,to:_!=null&&_.to?_.to*m:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?Qo(_):r.percent?ma(_,{multiplier:1,maximumFractionDigits:2}):Ut(_)}const f=Ln(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let m={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",m)}},r.debounce);return(_,m)=>{const p=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",bw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",xw,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",ww,[c.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(d(c.value.from||0))+" - "+o.toDisplayString(d(c.value.to)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" No Limit ")],64))])]),o.createVNode(p,null,{default:o.withCtx(()=>[o.createVNode(o.unref(pr),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=h=>c.value.from=h),o.unref(f)],field:l.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(pr),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=h=>c.value.to=h),o.unref(f)],class:"mt-2",field:s.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Sw=["data-dusk","onClick"],kw={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function s(d){return d.value===void 0?d:d.value}function a(d){return l.value.find(f=>f.value===d).label}function c(d){const f=s(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=s(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(m=>m!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=o.resolveComponent("QCheckbox"),m=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Di),{show:i.value,"onUpdate:show":f[0]||(f[0]=p=>i.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:h=>u(p)},[o.createVNode(_,{"model-value":c(p),class:"mr-2",onClick:o.withModifiers(h=>u(p),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],8,Sw))),128))]),_:3},8,["show","title"]),o.createVNode(m,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>i.value=!0)},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"selected",{},()=>[o.renderSlot(d.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label)+": ",1)]),t.modelValue&&t.modelValue.length>0?o.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" + "+o.toDisplayString(t.modelValue.length-1),1)],64)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(a(t.modelValue)),1)],64))]):o.renderSlot(d.$slots,"placeholder",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},Cw={key:0,class:"text-zinc-500"},Tw={key:1},Ew={class:"text-xs text-zinc-500"},Qd={__name:"SelectWithChildrenField",props:{modelValue:{type:Array,default:()=>[]},label:{type:String,default:"Selection"},placeholder:{type:String,default:"Select an option"},options:{type:Array,default:()=>[]},loading:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function i(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const l=o.ref(i()),s=o.ref(r.modelValue||[]);function a(u){s.value.includes(u.id)?s.value=Un(s.value,u.id):s.value.push(u.id),n("update:model-value",s.value.length>0?s.value:void 0)}function c(){s.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{l.value=i(),s.value=u||[]}),(u,d)=>{const f=o.resolveComponent("QCheckbox");return o.openBlock(),o.createElementBlock("div",null,[!t.loading&&!t.options.length?(o.openBlock(),o.createElementBlock("div",Cw," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(gr),{modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>l.value=_),c],options:t.options,label:t.label,placeholder:t.placeholder,"option-value":_=>_,loading:t.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),l.value?(o.openBlock(),o.createElementBlock("div",Tw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":s.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":m=>a(_)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(_.label),1),o.createElementVNode("div",Ew,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},Iw={key:0,class:"text-sm mt-2"},vw={key:2,class:"py-1"},Xd={__name:"SingleFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFileSelected:s,uploadedFile:a,clearUploadedFile:c}=nu();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(l)&&o.unref(l)(...f),["prevent"]))},[o.createVNode(o.unref(nn),{field:t.field,"show-name":t.showName,class:"text-sm font-semibold"},null,8,["field","show-name"]),!t.disable&&!t.readonly?(o.openBlock(),o.createElementBlock("div",Iw,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(s)&&o.unref(s)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Tn),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),image:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","image"])):t.readonly?(o.openBlock(),o.createElementBlock("div",vw," -- ")):o.createCommentVNode("",!0)],34))}};var Nw=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Bw=function(t){return Nw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Fw=function(t,e,n){Object.keys(e).filter(Bw).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(l){return i(l,n)}))})},Dw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,l=Array.isArray(i)?i.join(" "):i;o.watch(r,function(s,a){n&&typeof s=="string"&&s!==a&&s!==n.getContent({format:t.outputFormat})&&n.setContent(s)}),n.on(l||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},Ow=function(t,e,n,r,i,l){r.setContent(l()),n.attrs["onUpdate:modelValue"]&&Dw(e,n,r,i),Fw(t,n.attrs,r)},Kd=0,Jd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Kd++,t+"_"+n+Kd+String(e)},$w=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},ef=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Aw=function(t,e){return ef(t).concat(ef(e))},Pw=function(t){return t==null},tf=function(){return{listeners:[],scriptId:Jd("tiny-script"),scriptLoaded:!1}},Mw=function(){var t=tf(),e=function(i,l,s,a){var c=l.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=s;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),l.head&&l.head.appendChild(c)},n=function(i,l,s){t.scriptLoaded?s():(t.listeners.push(s),i.getElementById(t.scriptId)||e(t.scriptId,i,l,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=tf()};return{load:n,reinitialize:r}},Vw=Mw(),Lw=function(){return typeof window<"u"?window:global},rn=function(){var t=Lw();return t&&t.tinymce?t.tinymce:null},Uw={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},it=function(){return it=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},it.apply(this,arguments)},Rw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},zw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},El={selector:void 0,target:void 0},qw=o.defineComponent({props:Uw,setup:function(t,e){var n=t.init?it(it({},t.init),El):it({},El),r=o.toRefs(t),i=r.disabled,l=r.modelValue,s=r.tagName,a=o.ref(null),c=null,u=t.id||Jd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",p="",h=function(S){return f?function(){return l!=null&&l.value?l.value:""}:function(){return S?m:p}},g=function(){var S=h(_),C=it(it({},n),{readonly:t.disabled,target:a.value,plugins:Aw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(T){c=T,T.on("init",function(k){return Ow(k,t,e,T,l,S)}),typeof n.setup=="function"&&n.setup(T)}});$w(a.value)&&(a.value.style.visibility=""),rn().init(C),_=!1};o.watch(i,function(S){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(S?"readonly":"design"):c.setMode(S?"readonly":"design"))}),o.watch(s,function(S){var C;f||(p=c.getContent()),(C=rn())===null||C===void 0||C.remove(c),o.nextTick(function(){return g()})}),o.onMounted(function(){if(rn()!==null)g();else if(a.value&&a.value.ownerDocument){var S=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",T=Pw(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(S,"/tinymce.min.js"):t.tinymceScriptSrc;Vw.load(a.value.ownerDocument,T,g)}}),o.onBeforeUnmount(function(){rn()!==null&&rn().remove(c)}),d||(o.onActivated(function(){_||g()}),o.onDeactivated(function(){var S;f||(p=c.getContent()),(S=rn())===null||S===void 0||S.remove(c)}));var w=function(S){var C;p=c.getContent(),(C=rn())===null||C===void 0||C.remove(c),n=it(it(it({},n),S),El),o.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?Rw(o.h,u,a,t.tagName):zw(o.h,u,a)}}});const Gw=["innerHTML"],nf={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[t.noLabel?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(nn),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-700 block mb-2"},null,8,["field","show-name"])),t.readonly?(o.openBlock(),o.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Gw)):(o.openBlock(),o.createBlock(o.unref(qw),{key:2,class:"mt-2","api-key":o.unref(st).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},Zw={key:1,class:"mt-2"},Hw={class:"text-xs font-bold"},Ww=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),Il={__name:"FilterableField",props:{field:{type:Object,required:!0},modelValue:{type:[String,Array,Number,Object,Boolean],default:void 0},loading:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function i(l){let s=l||void 0;switch(r.field.type){case"multi-select":s=l.length>0?l:void 0;break;case"single-select":case"boolean":s=l===null?void 0:l;break}n("update:model-value",s)}return(l,s)=>{var a;return o.openBlock(),o.createElementBlock("div",null,[t.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=t.field.options)==null?void 0:a.length)>0||t.loading?(o.openBlock(),o.createBlock(o.unref(gr),{key:0,"model-value":t.modelValue,options:t.field.options,multiple:"",loading:t.loading,"chip-limit":1,filterable:"",placeholder:t.field.placeholder,label:t.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",Zw,[o.createElementVNode("div",Hw,o.toDisplayString(t.field.label),1),Ww]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(gr),{key:1,"model-value":t.modelValue,options:t.field.options,placeholder:t.field.placeholder,loading:t.loading,label:t.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","placeholder","loading","label"])):t.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(kl),{key:2,"model-value":t.modelValue,label:t.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(Cl),{key:3,"model-value":t.modelValue,label:t.field.label,inline:t.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):t.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:4,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:5,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:6,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(wl),{key:7,field:t.field,"model-value":t.modelValue,class:"mt-2","toggle-indeterminate":t.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):t.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(Yd),{key:8,"model-value":t.modelValue,field:t.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):t.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(Qd),{key:9,"model-value":t.modelValue,options:t.field.options,loading:t.loading,label:t.field.label,placeholder:t.field.placeholder,"onUpdate:modelValue":i},null,8,["model-value","options","loading","label","placeholder"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:10},[o.createTextVNode(' Field "'+o.toDisplayString(t.field.name)+'": Unknown filter type '+o.toDisplayString(t.field.type),1)],64))])}}},jw={class:"flex items-center flex-nowrap flex-grow"},Yw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},rf={__name:"FilterFieldItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),i=o.resolveComponent("QExpansionItem");return o.openBlock(),o.createBlock(i,null,{header:o.withCtx(()=>[o.createElementVNode("div",jw,[o.createElementVNode("div",Yw,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},Qw={class:"px-4 py-2 max-w-full"},of={__name:"FilterFieldList",props:{filterFields:{type:Array,required:!0},filter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>{const s={};for(const a of r.filterFields)s[a.name]=a.fields.filter(c=>r.filter[c.name]!==void 0).length;return s});function l(s,a){let c={[s.name]:a};s.filterBy&&(c=s.filterBy(a)),n("update:filter",{...r.filter,...c})}return(s,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Qw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.filterFields,(d,f)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"group-"+d.name},[d.flat?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Il),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(rf),{key:1,name:d.name,count:i.value[d.name]},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Il),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filterFields.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},Xw={class:"flex-grow"},lf=ut({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=o.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,i)=>{const l=o.resolveComponent("QBadge"),s=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[o.createElementVNode("div",Xw,[o.createVNode(s,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(fu),{class:"w-5 mr-2"}),o.createVNode(l,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Kw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Jw={class:"flex-grow"},e4={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},t4={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(l,s)=>(o.openBlock(),o.createElementBlock("div",Kw,[o.createVNode(o.unref(lf),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":s[0]||(s[0]=a=>l.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Jw,[o.renderSlot(l.$slots,"default")]),l.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",e4,[l.$slots.default?(o.openBlock(),o.createBlock(o.unref(Q.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(l.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},n4={class:"rendered-form"},r4={key:0,class:"mb-4"},o4={class:"flex flex-nowrap items-center text-sm w-full"},i4={key:0,class:"variation-missing-icon pl-1"},l4={class:"flex-grow"},s4={key:1,class:"flex flex-nowrap items-center mr-2"},a4=["onClick"],c4=["onClick"],u4={__name:"RenderedForm",props:{values:{type:Array,default:null},form:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean,saving:Boolean,emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:Boolean},emits:["update:values"],setup(t,{emit:e}){const n=e,r=t,i={BOOLEAN:wl,DATE:kl,DATE_RANGE:Cl,INTEGER:Hd,NUMBER:pr,TEXT:bo,SINGLE_FILE:Xd,MULTI_FILE:jd,WYSIWYG:nf},l=r.form.fields.map(T=>({placeholder:`Enter ${T.label}`,...T,component:i[T.type],default:T.type==="BOOLEAN"?!1:""})),s=o.computed(()=>{const T=[...new Set(r.values.map(k=>k.variation))].sort();return T.length===0&&T.push(""),T}),a=o.ref(s.value[0]||""),c=o.ref(""),u=o.ref(!1),d=o.ref(""),f=o.computed(()=>r.canModifyVariations&&!r.readonly&&!r.disable&&s.value.length<r.form.variations);function _(T,k){if(r.values)return r.values.find(b=>b.variation===(k!==void 0?k:a.value)&&b.name===T)}function m(T){var k;return(k=_(T))==null?void 0:k.value}function p(T,k){const b=_(T),y={name:T,variation:a.value||"",value:k===void 0?r.emptyValue:k},I=So(r.values,b,y,!0);n("update:values",I)}function h(T){return r.form.fields.map(k=>({variation:T,name:k.name,value:k.type==="BOOLEAN"?!1:null}))}function g(){if(r.saving)return;let T=[...r.values];T.length===0&&(T=h(""));const k=s.value[s.value.length-1],b=Ol(k||"1"),y=h(b);n("update:values",[...T,...y]),a.value=b}function w(){if(!c.value)return;if(s.value.includes(c.value)){Ze.error("Variation name already exists");return}const T=r.values.map(k=>k.variation===u.value?{...k,variation:c.value}:k);n("update:values",T),a.value=c.value,u.value=!1,c.value=""}function S(T){if(!T)return;const k=r.values.filter(b=>b.variation!==T);n("update:values",k),a.value===T&&(a.value=s.value[0]),d.value=""}function C(T){const k={};return r.form.fields.filter(b=>b.required||b.required_group).every(b=>{const y=_(b.name,T),I=!!y&&y.value!==null;return b.required_group?k[b.required_group]?!0:k[b.required_group]=I:I})}return(T,k)=>{const b=o.resolveComponent("QTooltip"),y=o.resolveComponent("QTab"),I=o.resolveComponent("QSpinnerBall"),E=o.resolveComponent("QTabs");return o.openBlock(),o.createElementBlock("div",n4,[t.form.variations>1?(o.openBlock(),o.createElementBlock("div",r4,[o.createVNode(E,{modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=B=>a.value=B),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(B,V)=>(o.openBlock(),o.createBlock(y,{key:B,name:B,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",o4,[C(B)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",i4,[o.createVNode(o.unref(lu),{class:"text-red-400 w-4"}),o.createVNode(b,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",l4,o.toDisplayString(B||"1"),1),!t.disable&&!t.readonly&&t.canModifyVariations?(o.openBlock(),o.createElementBlock("div",s4,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(u.value=B)&&(c.value=B)},[o.createVNode(o.unref(su),{class:"w-3 text-blue-900"})],8,a4),V>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:L=>d.value=B},[o.createVNode(o.unref(Fi),{class:"w-3 text-red-900"})],8,c4)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),f.value?(o.openBlock(),o.createBlock(y,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:g},{default:o.withCtx(()=>[t.saving?(o.openBlock(),o.createBlock(I,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(B,V)=>(o.openBlock(),o.createElementBlock("div",{key:B.id,class:o.normalizeClass({"mt-4":V>0})},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B.component),{key:B.name+"-"+a.value,"model-value":m(B.name),field:B,label:B.label||void 0,"no-label":t.noLabel,"show-name":t.showName,disable:t.disable,readonly:t.readonly,"onUpdate:modelValue":L=>p(B.name,L)},null,8,["model-value","field","label","no-label","show-name","disable","readonly","onUpdate:modelValue"]))],2))),128)),u.value!==!1?(o.openBlock(),o.createBlock(o.unref(tr),{key:1,title:"Change variation name",onConfirm:w,onClose:k[2]||(k[2]=B=>u.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(bo),{modelValue:c.value,"onUpdate:modelValue":k[1]||(k[1]=B=>c.value=B),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(o.unref(tr),{key:2,title:`Remove variation ${d.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:k[3]||(k[3]=B=>S(d.value)),onClose:k[4]||(k[4]=B=>d.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}},d4={},f4={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},_4={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function m4(t,e){return o.openBlock(),o.createElementBlock("div",f4,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",_4,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const h4=ut(d4,[["render",m4]]);function sf(t){o.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function af(t,e){if(!t.sortBy)return null;const n=e.find(r=>r.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function cf(t,e=null){const n={},r=tu("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(l=>{(!e||e.includes(l))&&(n[l]=i[l])})}return n}function p4(t,{listRoute:e,summaryRoute:n=null,filterFieldOptionsRoute:r=null,moreRoute:i=null,itemDetailsRoute:l=null,refreshFilters:s=!1,urlPattern:a=null,filterDefaults:c={}}){let u=!1;const d=`${t}-pagination-settings`,f=o.shallowRef(null),_=o.ref({}),m=o.ref({}),p=o.ref(!1),h=o.shallowRef([]),g=o.ref(!1),w=o.ref(!1),S=o.shallowRef(null),C=o.shallowRef(null),T=o.shallowRef(null),k=o.ref({}),b=o.ref(!1),y=o.computed(()=>Object.keys(_.value).filter(A=>_.value[A]!==void 0).length),I={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},E=o.ref(I),B=o.computed(()=>({perPage:E.value.rowsPerPage,page:E.value.page,filter:{..._.value,...m.value},sort:E.value.__sort||void 0}));o.watch(B,()=>{lt(),V()}),o.watch(_,()=>{lt(),L()}),o.watch(h,L),s&&o.watch(_,z);async function V(){u&&(g.value=!0,te(await e(B.value)),g.value=!1)}async function L(){if(!n||!u)return;w.value=!0;const A={id:null,..._.value,...m.value};h.value.length&&(A.id=h.value.map(q=>q.id)),S.value=await n(A),w.value=!1}async function z(){!r||!u||(b.value=!0,k.value=await r(_.value),b.value=!1)}function ce(A,q=null){var H;if(a&&A.match(a)){const qe=(H=q==null?void 0:q.value)==null?void 0:H.map(Ge=>Ge.fields.map(wo=>wo.name)).flat(),$e=cf(A,qe);Object.keys($e).length>0&&(_.value=$e,on("filter",_.value))}}function te(A){let q,H;Array.isArray(A)?(q=A,H={total:A.length}):(q=A.data,H=A.meta),H&&H.total!==E.value.rowsNumber&&(E.value.rowsNumber=H.total),q=q.map(qe=>{var Ge,wo;const $e=(wo=(Ge=f.value)==null?void 0:Ge.data)==null?void 0:wo.find(K4=>K4.id===qe.id);return{...qe,isSaving:($e==null?void 0:$e.isSaving)||o.ref(!1)}}),f.value={data:q,meta:H}}function ne(){E.value=I}function ae(A){var H,qe,$e;const q=(qe=(H=f.value)==null?void 0:H.data)==null?void 0:qe.map(Ge=>Ge.id===A.id&&(Ge.updated_at===null||Ge.updated_at<=A.updated_at)?A:Ge);te({data:q,meta:{total:f.value.meta.total}}),(($e=C.value)==null?void 0:$e.id)===A.id&&(C.value={...C.value,...A})}async function Oe(A,q=void 0){if(!i)return;const H=await i({page:A+1,perPage:q,filter:{..._.value,...m.value}});return H&&H.length>0?(te({data:[...f.value.data,...H],meta:{total:f.value.meta.total}}),!0):!1}async function Vn(){return Promise.all([V(),L(),z(),yr()])}function on(A,q){const H=Tt(d)||{};H[A]=q,Ct(d,H)}function ln(){if(!u)return;const A=Tt(d);A?(_.value={...A.filter,..._.value},E.value=A.quasarPagination):_.value={...c,..._.value},setTimeout(()=>{g.value||V(),w.value||L(),b.value||z()},1)}async function lt(){const A={filter:_.value,quasarPagination:{...E.value,page:1}};Ct(d,A)}async function yr(){var q,H;if(!C.value||!l)return;const A=await l(C.value);if((A==null?void 0:A.id)===((q=C.value)==null?void 0:q.id)){const qe=(H=f.value)==null?void 0:H.data.find($e=>$e.id===A.id);C.value={...A,isSaving:qe.isSaving||o.ref(!1)}}}l&&o.watch(()=>C.value,async(A,q)=>{A&&(q==null?void 0:q.id)!==A.id&&await yr()});function Xe(A,q){C.value=A,T.value=q}async function ht(A){var qe;if(!f.value)return;const q=f.value.data.findIndex($e=>{var Ge;return $e.id===((Ge=C.value)==null?void 0:Ge.id)});if(q==null)return;let H=q+A;if(H<0)if(E.value.page>1)E.value={...E.value,page:E.value.page-1},await ko(g,!1),H=f.value.data.length-1;else return;if(H>=f.value.data.length)if(E.value.page<f.value.meta.last_page)E.value={...E.value,page:E.value.page+1},await ko(g,!1),H=0;else return;C.value=(qe=f.value)==null?void 0:qe.data[H]}function X4(){u=!0,ln()}return{pagedItems:f,filter:_,globalFilter:m,filterActiveCount:y,showFilters:p,summary:S,filterFieldOptions:k,selectedRows:h,isLoadingList:g,isLoadingFilters:b,isLoadingSummary:w,pager:B,quasarPagination:E,activeItem:C,activePanel:T,initialize:X4,loadSummary:L,resetPaging:ne,loadList:V,loadMore:Oe,refreshAll:Vn,getNextItem:ht,activatePanel:Xe,applyFilterFromUrl:ce,setItemInList:ae}}function g4(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,l=o.ref(Tt(n)||[]),s=o.ref(Tt(r,[])),a=o.ref(Tt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,p)=>{const h=l.value.indexOf(m.name),g=l.value.indexOf(p.name);return h===-1?1:g===-1?-1:h-g})),d=o.computed({get(){return u.value.slice(1)},set(m){l.value=[...c.value.map(p=>p.name),...m.map(p=>p.name)],Ct(n,l.value)}}),f=o.computed(()=>u.value.filter(m=>!s.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>s.value,()=>Ct(r,s.value)),o.watch(()=>a.value,()=>Ct(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:s,titleColumnNames:a,orderedTitleColumns:_}}const uf={__name:"ActionMenu",props:{actions:{type:Array,required:!0},target:{type:[Array,Object],default:()=>[]},tooltip:{type:String,default:"First select records to perform a batch action"},loading:Boolean,loadingComponent:{type:[Function,Object],default:void 0}},setup(t){const e=t,n=o.computed(()=>Array.isArray(e.target)?e.target.length>0:!!e.target),r=o.computed(()=>e.actions.filter(s=>Array.isArray(e.target)?s.batchEnabled?s.batchEnabled(e.target):!0:s.enabled?s.enabled(e.target):!0)),i=o.ref(!1);async function l(s){if(!s.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");i.value=!0,await s.trigger(e.target),i.value=!1}return(s,a)=>(o.openBlock(),o.createBlock(o.unref(Eu),{class:"px-2 flex action-button",items:r.value,disabled:!n.value,tooltip:n.value?null:t.tooltip,loading:i.value||t.loading,"loading-component":t.loadingComponent,onActionItem:l},null,8,["items","disabled","tooltip","loading","loading-component"]))}},y4={class:"flex-grow overflow-hidden"},b4={key:0,class:"flex flex-shrink-0 pl-2"},df={__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=o.computed(()=>e.rowProps.row),r=o.computed(()=>e.rowProps.col),i=o.computed(()=>e.rowProps.value),l=o.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),s=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":l.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",y4,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass(r.value.innerClass),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)),r.value.titleColumns?(o.openBlock(),o.createBlock(o.unref(Zd),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",b4,[o.createVNode(o.unref(uf),{actions:r.value.actionMenu,target:n.value,loading:l.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},ff=ut({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),l=o.computed(()=>i.value.resizeable),s=o.computed(()=>{var u;const c=((u=r.settings)==null?void 0:u.width)||i.value.width;return{width:c?`${c}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}});function a(c){const u={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(c.distance+c.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":l.value&&"resize-column-"+i.value.name,class:o.normalizeClass(l.value&&c.cls["handle-drop-zone"]),style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),l.value?(o.openBlock(),o.createBlock(o.unref(au),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(c.cls["resize-handle"]),onResize:a},{default:o.withCtx(()=>[o.createVNode(o.unref(du),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):o.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}},[["__cssModules",{cls:{"!visible":"_!visible_17vua_1",visible:"_visible_17vua_1",collapse:"_collapse_17vua_1",static:"_static_17vua_1",absolute:"_absolute_17vua_1",relative:"_relative_17vua_1",sticky:"_sticky_17vua_1","bottom-1":"_bottom-1_17vua_1","left-0":"_left-0_17vua_1","right-0":"_right-0_17vua_1","right-1":"_right-1_17vua_1","right-4":"_right-4_17vua_1","top-0":"_top-0_17vua_1","top-1":"_top-1_17vua_1","top-4":"_top-4_17vua_1","m-2":"_m-2_17vua_1","m-4":"_m-4_17vua_1","mx-1":"_mx-1_17vua_1","mx-4":"_mx-4_17vua_1","mx-auto":"_mx-auto_17vua_1","my-2":"_my-2_17vua_1","!mr-1":"_!mr-1_17vua_1","mb-2":"_mb-2_17vua_1","mb-4":"_mb-4_17vua_1","ml-1":"_ml-1_17vua_1","ml-2":"_ml-2_17vua_1","ml-2.5":"_ml-2.5_17vua_1","ml-3":"_ml-3_17vua_1","ml-4":"_ml-4_17vua_1","ml-5":"_ml-5_17vua_1","ml-[-.2em]":"_ml-[-.2em]_17vua_1","mr-1":"_mr-1_17vua_1","mr-2":"_mr-2_17vua_1","mr-3":"_mr-3_17vua_1","mt-1":"_mt-1_17vua_1","mt-2":"_mt-2_17vua_1","mt-3":"_mt-3_17vua_1","mt-4":"_mt-4_17vua_1",block:"_block_17vua_1","inline-block":"_inline-block_17vua_1",inline:"_inline_17vua_1",flex:"_flex_17vua_1",table:"_table_17vua_1",hidden:"_hidden_17vua_1","h-10":"_h-10_17vua_1","h-4":"_h-4_17vua_1","h-5":"_h-5_17vua_1","h-8":"_h-8_17vua_1","h-full":"_h-full_17vua_1","max-h-full":"_max-h-full_17vua_1","w-16":"_w-16_17vua_1","w-2/5":"_w-2/5_17vua_1","w-24":"_w-24_17vua_1","w-3":"_w-3_17vua_1","w-3/5":"_w-3/5_17vua_1","w-32":"_w-32_17vua_1","w-4":"_w-4_17vua_1","w-48":"_w-48_17vua_1","w-5":"_w-5_17vua_1","w-6":"_w-6_17vua_1","w-7":"_w-7_17vua_1","w-72":"_w-72_17vua_1","w-8":"_w-8_17vua_1","w-96":"_w-96_17vua_1","w-[13.5rem]":"_w-[13.5rem]_17vua_1","w-[35.5rem]":"_w-[35.5rem]_17vua_1","w-[6.5rem]":"_w-[6.5rem]_17vua_1","w-full":"_w-full_17vua_1","!min-w-0":"_!min-w-0_17vua_1","max-w-[50em]":"_max-w-[50em]_17vua_1","max-w-full":"_max-w-full_17vua_1","flex-shrink-0":"_flex-shrink-0_17vua_1","flex-grow":"_flex-grow_17vua_1",grow:"_grow_17vua_1","rotate-180":"_rotate-180_17vua_1",transform:"_transform_17vua_1","cursor-ew-resize":"_cursor-ew-resize_17vua_1","cursor-move":"_cursor-move_17vua_1","cursor-not-allowed":"_cursor-not-allowed_17vua_1","cursor-ns-resize":"_cursor-ns-resize_17vua_1","cursor-pointer":"_cursor-pointer_17vua_1",resize:"_resize_17vua_64","flex-col":"_flex-col_17vua_1","flex-nowrap":"_flex-nowrap_17vua_1","items-center":"_items-center_17vua_1","items-stretch":"_items-stretch_17vua_1","justify-start":"_justify-start_17vua_1","justify-end":"_justify-end_17vua_1","justify-center":"_justify-center_17vua_1","justify-between":"_justify-between_17vua_1","gap-y-0":"_gap-y-0_17vua_1","gap-y-1":"_gap-y-1_17vua_1","space-x-1":"_space-x-1_17vua_1","space-x-2":"_space-x-2_17vua_1","self-center":"_self-center_17vua_1","overflow-auto":"_overflow-auto_17vua_1","overflow-hidden":"_overflow-hidden_17vua_1","overflow-y-auto":"_overflow-y-auto_17vua_20","overflow-x-hidden":"_overflow-x-hidden_17vua_1","scroll-smooth":"_scroll-smooth_17vua_1","overflow-ellipsis":"_overflow-ellipsis_17vua_1","whitespace-nowrap":"_whitespace-nowrap_17vua_1",rounded:"_rounded_17vua_1","rounded-2xl":"_rounded-2xl_17vua_1","rounded-lg":"_rounded-lg_17vua_1","rounded-md":"_rounded-md_17vua_1","!rounded-l-none":"_!rounded-l-none_17vua_1","!rounded-r-none":"_!rounded-r-none_17vua_1","rounded-b-lg":"_rounded-b-lg_17vua_1","rounded-t-lg":"_rounded-t-lg_17vua_1","rounded-t-md":"_rounded-t-md_17vua_1","!border-0":"_!border-0_17vua_1",border:"_border_17vua_1","border-b":"_border-b_17vua_1","border-l":"_border-l_17vua_1","border-l-0":"_border-l-0_17vua_1","border-r":"_border-r_17vua_1","border-t":"_border-t_17vua_1","border-solid":"_border-solid_17vua_1","border-dashed":"_border-dashed_17vua_1","border-blue-600":"_border-blue-600_17vua_1","border-blue-700":"_border-blue-700_17vua_1","border-gray-200":"_border-gray-200_17vua_1","border-gray-300":"_border-gray-300_17vua_1","border-slate-200":"_border-slate-200_17vua_1","!bg-blue-600":"_!bg-blue-600_17vua_1","!bg-gray-100":"_!bg-gray-100_17vua_1","bg-blue-200":"_bg-blue-200_17vua_1","bg-blue-600":"_bg-blue-600_17vua_1","bg-emerald-200":"_bg-emerald-200_17vua_1","bg-gray-100":"_bg-gray-100_17vua_1","bg-gray-200":"_bg-gray-200_17vua_1","bg-gray-400":"_bg-gray-400_17vua_1","bg-gray-500":"_bg-gray-500_17vua_1","bg-green-300":"_bg-green-300_17vua_1","bg-red-200":"_bg-red-200_17vua_1","bg-red-300":"_bg-red-300_17vua_1","bg-red-900":"_bg-red-900_17vua_1","bg-slate-100":"_bg-slate-100_17vua_1","bg-slate-200":"_bg-slate-200_17vua_1","bg-transparent":"_bg-transparent_17vua_1","bg-white":"_bg-white_17vua_1","bg-yellow-300":"_bg-yellow-300_17vua_1","!p-1":"_!p-1_17vua_1","!p-2":"_!p-2_17vua_1","p-0":"_p-0_17vua_1","p-1":"_p-1_17vua_1","p-2":"_p-2_17vua_1","p-3":"_p-3_17vua_1","p-4":"_p-4_17vua_1","!py-0":"_!py-0_17vua_1","px-1":"_px-1_17vua_1","px-12":"_px-12_17vua_1","px-2":"_px-2_17vua_1","px-2.5":"_px-2.5_17vua_1","px-4":"_px-4_17vua_1","px-6":"_px-6_17vua_1","px-8":"_px-8_17vua_1","py-1":"_py-1_17vua_1","py-14":"_py-14_17vua_1","py-2":"_py-2_17vua_1","py-2.5":"_py-2.5_17vua_1","py-3":"_py-3_17vua_1","py-4":"_py-4_17vua_1","py-8":"_py-8_17vua_1","!pl-4":"_!pl-4_17vua_1","!pl-5":"_!pl-5_17vua_1","pl-1":"_pl-1_17vua_1","pl-2":"_pl-2_17vua_1","pl-6":"_pl-6_17vua_1","pr-10":"_pr-10_17vua_1","text-left":"_text-left_17vua_1","text-center":"_text-center_17vua_1","text-right":"_text-right_17vua_1","!text-xs":"_!text-xs_17vua_1","text-[1rem]":"_text-[1rem]_17vua_1","text-sm":"_text-sm_17vua_1","text-xs":"_text-xs_17vua_1","font-bold":"_font-bold_17vua_1","font-medium":"_font-medium_17vua_1","font-normal":"_font-normal_17vua_1","font-semibold":"_font-semibold_17vua_1",uppercase:"_uppercase_17vua_1","leading-[1.2rem]":"_leading-[1.2rem]_17vua_1","!text-green-900":"_!text-green-900_17vua_1","!text-red-900":"_!text-red-900_17vua_1","!text-white":"_!text-white_17vua_1","!text-yellow-900":"_!text-yellow-900_17vua_1","text-black":"_text-black_17vua_1","text-blue-600":"_text-blue-600_17vua_1","text-blue-900":"_text-blue-900_17vua_1","text-gray-300":"_text-gray-300_17vua_1","text-gray-400":"_text-gray-400_17vua_1","text-gray-500":"_text-gray-500_17vua_1","text-gray-600":"_text-gray-600_17vua_1","text-gray-700":"_text-gray-700_17vua_1","text-red-400":"_text-red-400_17vua_1","text-red-900":"_text-red-900_17vua_1","text-white":"_text-white_17vua_1","text-yellow-600":"_text-yellow-600_17vua_1","text-zinc-500":"_text-zinc-500_17vua_1","text-zinc-800":"_text-zinc-800_17vua_1","line-through":"_line-through_17vua_1","opacity-20":"_opacity-20_17vua_1","opacity-50":"_opacity-50_17vua_1","opacity-70":"_opacity-70_17vua_1","shadow-none":"_shadow-none_17vua_1","outline-none":"_outline-none_17vua_1",outline:"_outline_17vua_1",filter:"_filter_17vua_1",transition:"_transition_17vua_1","transition-all":"_transition-all_17vua_1","duration-300":"_duration-300_17vua_1","q-tab":"_q-tab_17vua_4","q-tab-panels":"_q-tab-panels_17vua_8","q-panel":"_q-panel_17vua_11",scroll:"_scroll_17vua_14","q-tab-panel":"_q-tab-panel_17vua_8","q-toolbar":"_q-toolbar_17vua_24","q-notification__actions":"_q-notification__actions_17vua_29",app:"_app_17vua_1","main-layout":"_main-layout_17vua_1","is-disabled":"_is-disabled_17vua_45","disable-all-transitions":"_disable-all-transitions_17vua_50","v-enter-active":"_v-enter-active_17vua_54","v-leave-active":"_v-leave-active_17vua_55","v-enter-from":"_v-enter-from_17vua_59","v-leave-to":"_v-leave-to_17vua_60","handle-drop-zone":"_handle-drop-zone_17vua_64","resize-handle":"_resize-handle_17vua_64","hover:bg-blue-200":"_hover:bg-blue-200_17vua_1","hover:bg-gray-200":"_hover:bg-gray-200_17vua_1","hover:bg-red-200":"_hover:bg-red-200_17vua_1","hover:bg-slate-200":"_hover:bg-slate-200_17vua_1","hover:text-blue-500":"_hover:text-blue-500_17vua_1","hover:text-blue-600":"_hover:text-blue-600_17vua_1","hover:opacity-100":"_hover:opacity-100_17vua_1","focus:bg-blue-200":"_focus:bg-blue-200_17vua_1"}}]]),x4={class:"flex items-center justify-center text-sm py-14 w-full"},w4={key:0},S4={key:1},_f={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",x4,[t.loading?(o.openBlock(),o.createElementBlock("div",w4,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(Q.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",S4,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(Q.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},k4={class:"flex flex-nowrap items-center"},C4={key:0,class:"flex items-center"},T4={key:1},mf={__name:"TableSummaryRow",props:{loading:Boolean,label:{type:String,default:"Rows"},selectedLabel:{type:String,default:"Selected"},selectedCount:{type:Number,default:0},itemCount:{type:Number,default:0},summary:{type:Object,default:null},columns:{type:Array,required:!0},stickyColspan:{type:Number,default:2}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>e.columns.slice(e.stickyColspan-1));function r(i){const l=e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(o.openBlock(),o.createBlock(o.unref(Q.QTr),{class:o.normalizeClass(["sticky-column-1 transition-all sticky-row",{"!bg-gray-100":!t.selectedCount,"!bg-blue-600 text-white selected":t.selectedCount,"opacity-50":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(Q.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["font-bold transition-all",{"!bg-gray-100 !pl-5":!t.selectedCount,"!bg-blue-600 text-white !pl-4":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",k4,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",C4,[o.createVNode(o.unref(Ay),{class:"w-6 mr-3",onClick:l[0]||(l[0]=s=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(Ut)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",T4,o.toDisplayString(o.unref(Ut)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(Q.QSpinner),{key:2,class:"ml-3",size:"18"})):o.createCommentVNode("",!0)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(o.unref(Q.QTd),{key:s.name,align:s.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(s)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},E4={class:"overflow-hidden w-full"},I4={__name:"ActionTable",props:{name:{type:String,required:!0},label:{type:String,required:!0},selectedRows:{type:Array,required:!0},quasarPagination:{type:Object,required:!0},isLoadingList:Boolean,pagedItems:{type:Object,default:null},isLoadingSummary:Boolean,summary:{type:Object,default:null},columns:{type:Array,required:!0},rowsPerPageOptions:{type:Array,default:()=>[10,25,50,100]}},emits:["update:quasar-pagination","update:selected-rows"],setup(t){const e=t,n=o.ref(null);sf(n);const r=`column-settings-${e.name}`,i=o.ref(Tt(r)||{});function l(){Ct(r,i.value)}return(s,a)=>{var c;return o.openBlock(),o.createElementBlock("div",E4,[o.createVNode(o.unref(Cu)),o.createVNode(o.unref(Q.QTable),{ref_key:"actionTable",ref:n,selected:t.selectedRows,pagination:t.quasarPagination,columns:t.columns,loading:t.isLoadingList,rows:((c=t.pagedItems)==null?void 0:c.data)||[],"binary-state-sort":!1,selection:"multiple","rows-per-page-options":t.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:"blue-600","onUpdate:selected":a[2]||(a[2]=u=>s.$emit("update:selected-rows",u)),"onUpdate:pagination":()=>{},onRequest:a[3]||(a[3]=u=>s.$emit("update:quasar-pagination",{...u.pagination,__sort:o.unref(af)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(s.$slots,"empty",{},()=>[o.createVNode(_f,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])])]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(mf,{label:t.label,"item-count":((u=t.summary)==null?void 0:u.count)||0,"selected-count":t.selectedRows.length,loading:t.isLoadingSummary,summary:t.summary,columns:t.columns,onClear:a[0]||(a[0]=d=>s.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])]}),"header-cell":o.withCtx(u=>[o.createVNode(o.unref(ff),{modelValue:i.value,"onUpdate:modelValue":[a[1]||(a[1]=d=>i.value=d),l],"row-props":u,name:t.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(df,{key:u.key,"row-props":u,settings:i.value[u.col.name]},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{columnName:u.col.name,row:u.row,value:u.value})]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","rows-per-page-options"])])}}},v4={class:"flex space-x-2"},N4=["innerHTML"],vl={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(r){if(r===null||r===""||r===void 0)return"";switch(e.type){case"NUMBER":return Ut(r);case"CURRENCY":return Qo(r);case"DATE":return Je(r);case"DATETIME":return gn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",v4,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,image:t.value,class:"w-24"},null,8,["image"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,l=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-"+l.id,image:l,class:"w-24 mb-2"},null,8,["image"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,N4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},B4={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},F4={class:"flex-grow text-sm w-3/5 overflow-auto"},D4={class:"flex flex-nowrap items-center mt-4"},O4={class:"bg-red-200 line-through p-2"},$4={class:"bg-emerald-200 ml-2.5 p-2"},A4={class:"ml-4 text-sm w-2/5"},P4=["href"],M4={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=o.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(r,i)=>(o.openBlock(),o.createElementBlock("div",B4,[o.createElementVNode("div",F4,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",D4,[o.createElementVNode("div",O4,[o.createVNode(o.unref(vl),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",$4,[o.createVNode(o.unref(vl),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",A4,[t.item.user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,o.toDisplayString(t.item.user.name),1),o.createElementVNode("div",null,o.toDisplayString(t.item.user.email),1)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",null,o.toDisplayString(t.item.account),1),o.createElementVNode("div",null,[t.item.audit_request_id?(o.openBlock(),o.createElementBlock("a",{key:0,href:n.value,target:"_blank"},o.toDisplayString(o.unref(gn)(t.item.timestamp)),9,P4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(gn)(t.item.timestamp)),1)],64))])])]))}},V4=["onClick"],L4={key:0,class:"flex-shrink-0"},U4={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=o.computed(()=>e.items.filter(r=>!r.hidden));return(r,i)=>{const l=o.resolveComponent("QTooltip"),s=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+a.label,class:"nav-menu-item-box"},[o.createElementVNode("div",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",a.class||t.itemClass]),onClick:a.onClick},[a.icon?(o.openBlock(),o.createElementBlock("div",L4,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.icon),{class:o.normalizeClass(["nav-icon",a.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",a.labelClass])},o.toDisplayString(a.label),3)),t.collapsed?(o.openBlock(),o.createBlock(l,o.normalizeProps(o.mergeProps({key:2},a.tooltip)),{default:o.withCtx(()=>{var c;return[o.createTextVNode(o.toDisplayString(((c=a.tooltip)==null?void 0:c.text)||a.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,V4),a.separator?(o.openBlock(),o.createBlock(s,{key:"separator-"+a.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},hf={__name:"PanelsDrawerPanels",props:{activePanel:{type:String,default:null},panels:{type:Array,required:!0}},setup(t){return(e,n)=>{const r=o.resolveComponent("QTabPanel"),i=o.resolveComponent("QTabPanels");return o.openBlock(),o.createBlock(i,{"model-value":t.activePanel,class:"overflow-y-auto bg-gray-100 h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,l=>(o.openBlock(),o.createBlock(r,{key:l.name,name:l.name},{default:o.withCtx(()=>[l.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:l.vnode},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},pf=ut({__name:"PanelsDrawerTabs",props:{modelValue:{type:String,default:"general"},panels:{type:Array,required:!0}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(r,{"model-value":t.modelValue,vertical:"",align:"left",class:o.normalizeClass(e.cls["panel-tabs"]),"no-caps":"","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,i=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.enabled===void 0||i.enabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.tabVnode?(o.openBlock(),o.createBlock(o.unref(En),{key:i.name,vnode:i.tabVnode(t.modelValue),"is-active":t.modelValue===i.name,name:i.name,label:i.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(Q.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}},[["__cssModules",{cls:{"!visible":"_!visible_1u643_1",visible:"_visible_1u643_1",collapse:"_collapse_1u643_1",static:"_static_1u643_1",absolute:"_absolute_1u643_1",relative:"_relative_1u643_1",sticky:"_sticky_1u643_1","bottom-1":"_bottom-1_1u643_1","left-0":"_left-0_1u643_1","right-0":"_right-0_1u643_1","right-1":"_right-1_1u643_1","right-4":"_right-4_1u643_1","top-0":"_top-0_1u643_1","top-1":"_top-1_1u643_1","top-4":"_top-4_1u643_1","m-2":"_m-2_1u643_1","m-4":"_m-4_1u643_1","mx-1":"_mx-1_1u643_1","mx-4":"_mx-4_1u643_1","mx-auto":"_mx-auto_1u643_1","my-2":"_my-2_1u643_1","!mr-1":"_!mr-1_1u643_1","mb-2":"_mb-2_1u643_1","mb-4":"_mb-4_1u643_1","ml-1":"_ml-1_1u643_1","ml-2":"_ml-2_1u643_1","ml-2.5":"_ml-2.5_1u643_1","ml-3":"_ml-3_1u643_1","ml-4":"_ml-4_1u643_1","ml-5":"_ml-5_1u643_1","ml-[-.2em]":"_ml-[-.2em]_1u643_1","mr-1":"_mr-1_1u643_1","mr-2":"_mr-2_1u643_1","mr-3":"_mr-3_1u643_1","mt-1":"_mt-1_1u643_1","mt-2":"_mt-2_1u643_1","mt-3":"_mt-3_1u643_1","mt-4":"_mt-4_1u643_1",block:"_block_1u643_1","inline-block":"_inline-block_1u643_1",inline:"_inline_1u643_1",flex:"_flex_1u643_1",table:"_table_1u643_1",hidden:"_hidden_1u643_1","h-10":"_h-10_1u643_1","h-4":"_h-4_1u643_1","h-5":"_h-5_1u643_1","h-8":"_h-8_1u643_1","h-full":"_h-full_1u643_1","max-h-full":"_max-h-full_1u643_1","w-16":"_w-16_1u643_1","w-2/5":"_w-2/5_1u643_1","w-24":"_w-24_1u643_1","w-3":"_w-3_1u643_1","w-3/5":"_w-3/5_1u643_1","w-32":"_w-32_1u643_1","w-4":"_w-4_1u643_1","w-48":"_w-48_1u643_1","w-5":"_w-5_1u643_1","w-6":"_w-6_1u643_1","w-7":"_w-7_1u643_1","w-72":"_w-72_1u643_1","w-8":"_w-8_1u643_1","w-96":"_w-96_1u643_1","w-[13.5rem]":"_w-[13.5rem]_1u643_1","w-[35.5rem]":"_w-[35.5rem]_1u643_1","w-[6.5rem]":"_w-[6.5rem]_1u643_1","w-full":"_w-full_1u643_1","!min-w-0":"_!min-w-0_1u643_1","max-w-[50em]":"_max-w-[50em]_1u643_1","max-w-full":"_max-w-full_1u643_1","flex-shrink-0":"_flex-shrink-0_1u643_1","flex-grow":"_flex-grow_1u643_1",grow:"_grow_1u643_1","rotate-180":"_rotate-180_1u643_1",transform:"_transform_1u643_1","cursor-ew-resize":"_cursor-ew-resize_1u643_1","cursor-move":"_cursor-move_1u643_1","cursor-not-allowed":"_cursor-not-allowed_1u643_1","cursor-ns-resize":"_cursor-ns-resize_1u643_1","cursor-pointer":"_cursor-pointer_1u643_1",resize:"_resize_1u643_1","flex-col":"_flex-col_1u643_1","flex-nowrap":"_flex-nowrap_1u643_1","items-center":"_items-center_1u643_1","items-stretch":"_items-stretch_1u643_1","justify-start":"_justify-start_1u643_1","justify-end":"_justify-end_1u643_1","justify-center":"_justify-center_1u643_1","justify-between":"_justify-between_1u643_1","gap-y-0":"_gap-y-0_1u643_1","gap-y-1":"_gap-y-1_1u643_1","space-x-1":"_space-x-1_1u643_1","space-x-2":"_space-x-2_1u643_1","self-center":"_self-center_1u643_1","overflow-auto":"_overflow-auto_1u643_1","overflow-hidden":"_overflow-hidden_1u643_1","overflow-y-auto":"_overflow-y-auto_1u643_20","overflow-x-hidden":"_overflow-x-hidden_1u643_1","scroll-smooth":"_scroll-smooth_1u643_1","overflow-ellipsis":"_overflow-ellipsis_1u643_1","whitespace-nowrap":"_whitespace-nowrap_1u643_1",rounded:"_rounded_1u643_1","rounded-2xl":"_rounded-2xl_1u643_1","rounded-lg":"_rounded-lg_1u643_1","rounded-md":"_rounded-md_1u643_1","!rounded-l-none":"_!rounded-l-none_1u643_1","!rounded-r-none":"_!rounded-r-none_1u643_1","rounded-b-lg":"_rounded-b-lg_1u643_1","rounded-t-lg":"_rounded-t-lg_1u643_1","rounded-t-md":"_rounded-t-md_1u643_1","!border-0":"_!border-0_1u643_1",border:"_border_1u643_1","border-b":"_border-b_1u643_1","border-l":"_border-l_1u643_1","border-l-0":"_border-l-0_1u643_1","border-r":"_border-r_1u643_1","border-t":"_border-t_1u643_1","border-solid":"_border-solid_1u643_1","border-dashed":"_border-dashed_1u643_1","border-blue-600":"_border-blue-600_1u643_1","border-blue-700":"_border-blue-700_1u643_1","border-gray-200":"_border-gray-200_1u643_1","border-gray-300":"_border-gray-300_1u643_1","border-slate-200":"_border-slate-200_1u643_1","!bg-blue-600":"_!bg-blue-600_1u643_1","!bg-gray-100":"_!bg-gray-100_1u643_1","bg-blue-200":"_bg-blue-200_1u643_1","bg-blue-600":"_bg-blue-600_1u643_1","bg-emerald-200":"_bg-emerald-200_1u643_1","bg-gray-100":"_bg-gray-100_1u643_1","bg-gray-200":"_bg-gray-200_1u643_1","bg-gray-400":"_bg-gray-400_1u643_1","bg-gray-500":"_bg-gray-500_1u643_1","bg-green-300":"_bg-green-300_1u643_1","bg-red-200":"_bg-red-200_1u643_1","bg-red-300":"_bg-red-300_1u643_1","bg-red-900":"_bg-red-900_1u643_1","bg-slate-100":"_bg-slate-100_1u643_1","bg-slate-200":"_bg-slate-200_1u643_1","bg-transparent":"_bg-transparent_1u643_1","bg-white":"_bg-white_1u643_1","bg-yellow-300":"_bg-yellow-300_1u643_1","!p-1":"_!p-1_1u643_1","!p-2":"_!p-2_1u643_1","p-0":"_p-0_1u643_1","p-1":"_p-1_1u643_1","p-2":"_p-2_1u643_1","p-3":"_p-3_1u643_1","p-4":"_p-4_1u643_1","!py-0":"_!py-0_1u643_1","px-1":"_px-1_1u643_1","px-12":"_px-12_1u643_1","px-2":"_px-2_1u643_1","px-2.5":"_px-2.5_1u643_1","px-4":"_px-4_1u643_1","px-6":"_px-6_1u643_1","px-8":"_px-8_1u643_1","py-1":"_py-1_1u643_1","py-14":"_py-14_1u643_1","py-2":"_py-2_1u643_1","py-2.5":"_py-2.5_1u643_1","py-3":"_py-3_1u643_1","py-4":"_py-4_1u643_1","py-8":"_py-8_1u643_1","!pl-4":"_!pl-4_1u643_1","!pl-5":"_!pl-5_1u643_1","pl-1":"_pl-1_1u643_1","pl-2":"_pl-2_1u643_1","pl-6":"_pl-6_1u643_1","pr-10":"_pr-10_1u643_1","text-left":"_text-left_1u643_1","text-center":"_text-center_1u643_1","text-right":"_text-right_1u643_1","!text-xs":"_!text-xs_1u643_1","text-[1rem]":"_text-[1rem]_1u643_1","text-sm":"_text-sm_1u643_1","text-xs":"_text-xs_1u643_1","font-bold":"_font-bold_1u643_1","font-medium":"_font-medium_1u643_1","font-normal":"_font-normal_1u643_1","font-semibold":"_font-semibold_1u643_1",uppercase:"_uppercase_1u643_1","leading-[1.2rem]":"_leading-[1.2rem]_1u643_1","!text-green-900":"_!text-green-900_1u643_1","!text-red-900":"_!text-red-900_1u643_1","!text-white":"_!text-white_1u643_1","!text-yellow-900":"_!text-yellow-900_1u643_1","text-black":"_text-black_1u643_1","text-blue-600":"_text-blue-600_1u643_1","text-blue-900":"_text-blue-900_1u643_1","text-gray-300":"_text-gray-300_1u643_1","text-gray-400":"_text-gray-400_1u643_1","text-gray-500":"_text-gray-500_1u643_1","text-gray-600":"_text-gray-600_1u643_1","text-gray-700":"_text-gray-700_1u643_1","text-red-400":"_text-red-400_1u643_1","text-red-900":"_text-red-900_1u643_1","text-white":"_text-white_1u643_1","text-yellow-600":"_text-yellow-600_1u643_1","text-zinc-500":"_text-zinc-500_1u643_1","text-zinc-800":"_text-zinc-800_1u643_1","line-through":"_line-through_1u643_1","opacity-20":"_opacity-20_1u643_1","opacity-50":"_opacity-50_1u643_1","opacity-70":"_opacity-70_1u643_1","shadow-none":"_shadow-none_1u643_1","outline-none":"_outline-none_1u643_1",outline:"_outline_1u643_1",filter:"_filter_1u643_1",transition:"_transition_1u643_1","transition-all":"_transition-all_1u643_1","duration-300":"_duration-300_1u643_1","q-tab":"_q-tab_1u643_4","q-tab-panels":"_q-tab-panels_1u643_8","q-panel":"_q-panel_1u643_11",scroll:"_scroll_1u643_14","q-tab-panel":"_q-tab-panel_1u643_8","q-toolbar":"_q-toolbar_1u643_24","q-notification__actions":"_q-notification__actions_1u643_29",app:"_app_1u643_1","main-layout":"_main-layout_1u643_1","is-disabled":"_is-disabled_1u643_45","disable-all-transitions":"_disable-all-transitions_1u643_50","v-enter-active":"_v-enter-active_1u643_54","v-leave-active":"_v-leave-active_1u643_55","v-enter-from":"_v-enter-from_1u643_59","v-leave-to":"_v-leave-to_1u643_60","panel-tabs":"_panel-tabs_1u643_64","hover:bg-blue-200":"_hover:bg-blue-200_1u643_1","hover:bg-gray-200":"_hover:bg-gray-200_1u643_1","hover:bg-red-200":"_hover:bg-red-200_1u643_1","hover:bg-slate-200":"_hover:bg-slate-200_1u643_1","hover:text-blue-500":"_hover:text-blue-500_1u643_1","hover:text-blue-600":"_hover:text-blue-600_1u643_1","hover:opacity-100":"_hover:opacity-100_1u643_1","focus:bg-blue-200":"_focus:bg-blue-200_1u643_1"}}]]),R4={class:"flex flex-col flex-nowrap h-full"},z4={class:"flex items-center px-6 py-4 border-b"},q4={class:"flex-grow"},G4={class:"flex-grow overflow-hidden h-full"},Z4={class:"flex items-stretch flex-nowrap h-full"},H4={class:"border-r w-[13.5rem] overflow-y-auto"},W4={key:0,class:"border-l overflow-y-auto"},j4={__name:"PanelsDrawer",props:{modelValue:{type:String,default:null},panelsClass:{type:[Object,String],default:"w-[35.5rem]"},panels:{type:Array,required:!0}},emits:["update:model-value","close"],setup(t){const e=t,n=o.ref(e.modelValue);return o.watch(()=>e.modelValue,r=>n.value=r),(r,i)=>{const l=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Di),{position:"right",show:!0,overlay:"","content-class":"h-full",title:"","onUpdate:show":i[3]||(i[3]=s=>r.$emit("close"))},{default:o.withCtx(()=>[o.createElementVNode("div",R4,[o.createElementVNode("div",z4,[o.createElementVNode("div",q4,[o.renderSlot(r.$slots,"header")]),o.createElementVNode("div",null,[o.createVNode(l,{onClick:i[0]||(i[0]=s=>r.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(ro),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",G4,[o.createElementVNode("div",Z4,[o.createElementVNode("div",H4,[o.createVNode(o.unref(pf),{modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=s=>n.value=s),i[2]||(i[2]=s=>r.$emit("update:model-value",s))],panels:t.panels},null,8,["modelValue","panels"])]),o.createVNode(o.unref(hf),{panels:t.panels,"active-panel":n.value,class:o.normalizeClass(t.panelsClass)},null,8,["panels","active-panel","class"]),r.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",W4,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Y4={name:"quasar-ui-danx",version:"0.3.24",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"dist/danx.es.js",module:"dist/danx.es.js",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},devDependencies:{"@quasar/extras":"^1.16.4","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.0.0"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:gf}=Y4;function Q4(t){console.log(`Installing Danx UI ${gf}... Nothing to do really.`)}x.ActionMenu=uf,x.ActionTable=I4,x.ActionTableColumn=df,x.ActionTableHeaderColumn=ff,x.ActionTableLayout=h4,x.ActionVnode=Cu,x.AddressFormat=nx,x.AuditHistoryItem=M4,x.AuditHistoryItemValue=vl,x.BadgeTab=gx,x.BooleanField=wl,x.CaretDownIcon=cu,x.CollapsableFiltersSidebar=W2,x.CollapsableSidebar=Su,x.ColumnListItem=Ni,x.ColumnSettingsDialog=R2,x.ConfirmDialog=tr,x.ConfirmPasswordField=X2,x.ContentDrawer=Di,x.DateField=kl,x.DateRangeField=Cl,x.DateTimeField=lw,x.DateTimePicker=Tl,x.DragAndDrop=Bi,x.DragHandleDotsIcon=uu,x.DragHandleIcon=du,x.EditableDiv=sw,x.EmptyTableState=_f,x.ExportButton=wb,x.FieldLabel=nn,x.FilePreview=Tn,x.FileUpload=eo,x.FileUploadButton=cw,x.FilterFieldItem=rf,x.FilterFieldList=of,x.FilterIcon=fu,x.FilterListToggle=lf,x.FilterToolbarLayout=t4,x.FilterableField=Il,x.FlashMessages=Ze,x.FlatListFormat=rx,x.FullScreenCarouselDialog=bu,x.FullScreenDialog=Ab,x.GpsCoordinatesFormat=lx,x.HandleDraggable=au,x.IconWithTextFormat=ax,x.ImageIcon=_u,x.IndicatorTab=xx,x.InfoDialog=xu,x.InlineDateTimeField=fw,x.InputDialog=Lb,x.IntegerField=Hd,x.InteractiveTooltip=mx,x.LabelValueBlock=Wd,x.LabelValueFormat=ux,x.LabeledInput=Sl,x.ListDragAndDrop=qd,x.ListItemDraggable=Gd,x.ListTransition=Iu,x.MultiFileField=jd,x.MultiKeywordField=Yd,x.NavigationMenu=U4,x.NewPasswordField=yw,x.NumberField=pr,x.NumberRangeField=xo,x.PanelsDrawer=j4,x.PanelsDrawerPanels=hf,x.PanelsDrawerTabs=pf,x.PdfIcon=mu,x.PercentIcon=hu,x.PopoverMenu=Eu,x.PreviousNextControls=Cb,x.RefreshButton=Sb,x.RenderComponent=Tu,x.RenderVnode=En,x.RenderedForm=u4,x.SelectDrawer=kw,x.SelectField=gr,x.SelectWithChildrenField=Qd,x.SingleFileField=Xd,x.SkipNextIcon=pu,x.SkipPreviousIcon=gu,x.SlideTransition=wx,x.StaggeredListTransition=P2,x.SvgImg=wu,x.TableSummaryRow=mf,x.TextField=bo,x.TitleColumnFormat=Zd,x.TrashIcon=Fi,x.VisibleColumnsToggleButtons=H2,x.WarningIcon=yu,x.WysiwygField=nf,x.XIcon=ro,x.activeActionVnode=$t,x.addHotkey=my,x.applyCssVars=by,x.buildCssVars=vi,x.centerTruncate=$1,x.configure=yf,x.danxOptions=st,x.dbDateTime=Yo,x.diffInDays=P1,x.download=Lr,x.downloadFile=M1,x.downloadFileResponse=ha,x.fCurrency=Qo,x.fDate=Je,x.fDateTime=jo,x.fLocalizedDateTime=gn,x.fNumber=Ut,x.fPercent=ma,x.fPhone=A1,x.fQDate=D1,x.fSecondsToTime=O1,x.fetchResourceListWithSelected=yy,x.getFilterFromUrl=cf,x.getItem=Tt,x.getResponseHeader=Xo,x.getUrlParam=tu,x.incrementName=Ol,x.install=Q4,x.listen=hy,x.localizedDateTime=Ho,x.mapSortBy=af,x.metersToMiles=Ff,x.milesToMeters=Df,x.minmax=Bf,x.notify=If,x.parseCoords=Of,x.parseDateTime=Xn,x.parseQDate=Vr,x.parseQDateTime=Wo,x.registerHotkeys=gy,x.registerStickyScrolling=sf,x.remoteDateTime=_a,x.remove=Un,x.replace=So,x.request=Ii,x.resolveFileLocation=Qc,x.setItem=Ct,x.sleep=Dl,x.uniqueBy=Nf,x.unlisten=py,x.useActions=vf,x.useCompatibility=Pl,x.useListControls=p4,x.useMultiFileUpload=Jc,x.useSingleFileUpload=nu,x.useTableColumns=g4,x.version=gf,x.waitForRef=ko,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
21
|
+
*/var kd,Ft,$n,ul,Xt,Cd,dl,m2=function(){return typeof window<"u"},_t={},Kt=180/Math.PI,An=Math.PI/180,Pn=Math.atan2,Td=1e8,fl=/([A-Z])/g,h2=/(left|right|width|margin|padding|x)/i,p2=/[\s,\(]\S/,rt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_l=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},g2=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},y2=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},b2=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Ed=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Id=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},x2=function(e,n,r){return e.style[n]=r},w2=function(e,n,r){return e.style.setProperty(n,r)},S2=function(e,n,r){return e._gsap[n]=r},k2=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},C2=function(e,n,r,i,l){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(l,s)},T2=function(e,n,r,i,l){var s=e._gsap;s[n]=r,s.renderTransform(l,s)},K="transform",Ee=K+"Origin",E2=function t(e,n){var r=this,i=this.target,l=i.style,s=i._gsap;if(e in _t&&l){if(this.tfm=this.tfm||{},e!=="transform")e=rt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=mt(i,a)}):this.tfm[e]=s.x?s[e]:mt(i,e),e===Ee&&(this.tfm.zOrigin=s.zOrigin);else return rt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(K)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ee,n,"")),e=K}(l||n)&&this.props.push(e,n,l[e])},vd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},I2=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,l,s;for(l=0;l<e.length;l+=3)e[l+1]?n[e[l]]=e[l+2]:e[l+2]?r[e[l]]=e[l+2]:r.removeProperty(e[l].substr(0,2)==="--"?e[l]:e[l].replace(fl,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),l=dl(),(!l||!l.isStart)&&!r[K]&&(vd(r),i.zOrigin&&r[Ee]&&(r[Ee]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Nd=function(e,n){var r={target:e,props:[],revert:I2,save:E2};return e._gsap||Te.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Bd,ml=function(e,n){var r=Ft.createElementNS?Ft.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ft.createElement(e);return r&&r.style?r:Ft.createElement(e)},ot=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(fl,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mn(n)||n,1)||""},Fd="O,Moz,ms,Ms,Webkit".split(","),Mn=function(e,n,r){var i=n||Xt,l=i.style,s=5;if(e in l&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Fd[s]+e in l););return s<0?null:(s===3?"ms":s>=0?Fd[s]:"")+e},hl=function(){m2()&&window.document&&(kd=window,Ft=kd.document,$n=Ft.documentElement,Xt=ml("div")||{style:{}},ml("div"),K=Mn(K),Ee=K+"Origin",Xt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Bd=!!Mn("perspective"),dl=Te.core.reverting,ul=1)},pl=function t(e){var n=ml("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,l=this.style.cssText,s;if($n.appendChild(n),n.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),$n.removeChild(n),this.style.cssText=l,s},Dd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Od=function(e){var n;try{n=e.getBBox()}catch{n=pl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===pl||(n=pl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Dd(e,["x","cx","x1"])||0,y:+Dd(e,["y","cy","y1"])||0,width:0,height:0}:n},$d=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Od(e))},Jt=function(e,n){if(n){var r=e.style,i;n in _t&&n!==Ee&&(n=K),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(fl,"-$1").toLowerCase())):r.removeAttribute(n)}},Dt=function(e,n,r,i,l,s){var a=new Ce(e._pt,n,r,0,1,s?Id:Ed);return e._pt=a,a.b=i,a.e=l,e._props.push(r),a},Ad={deg:1,rad:1,turn:1},v2={grid:1,flex:1},Ot=function t(e,n,r,i){var l=parseFloat(r)||0,s=(r+"").trim().substr((l+"").length)||"px",a=Xt.style,c=h2.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,_=i==="px",m=i==="%",p,h,g,w;if(i===s||!l||Ad[i]||Ad[s])return l;if(s!=="px"&&!_&&(l=t(e,n,r,"px")),w=e.getCTM&&$d(e),(m||s==="%")&&(_t[n]||~n.indexOf("adius")))return p=w?e.getBBox()[c?"width":"height"]:e[d],oe(m?l/p*f:l/100*p);if(a[c?"width":"height"]=f+(_?s:i),h=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ft||!h.appendChild)&&(h=Ft.body),g=h._gsap,g&&m&&g.width&&c&&g.time===De.time&&!g.uncache)return oe(l/g.width*f);if(m&&(n==="height"||n==="width")){var S=e.style[n];e.style[n]=f+i,p=e[d],S?e.style[n]=S:Jt(e,n)}else(m||s==="%")&&!v2[ot(h,"display")]&&(a.position=ot(e,"position")),h===e&&(a.position="static"),h.appendChild(Xt),p=Xt[d],h.removeChild(Xt),a.position="absolute";return c&&m&&(g=Zt(h),g.time=De.time,g.width=h[d]),oe(_?p*l/f:p&&l?f/p*l:0)},mt=function(e,n,r,i){var l;return ul||hl(),n in rt&&n!=="transform"&&(n=rt[n],~n.indexOf(",")&&(n=n.split(",")[0])),_t[n]&&n!=="transform"?(l=mr(e,i),l=n!=="transformOrigin"?l[n]:l.svg?l.origin:yo(ot(e,Ee))+" "+l.zOrigin+"px"):(l=e.style[n],(!l||l==="auto"||i||~(l+"").indexOf("calc("))&&(l=go[n]&&go[n](e,n,r)||ot(e,n)||Lu(e,n)||(n==="opacity"?1:0))),r&&!~(l+"").trim().indexOf(" ")?Ot(e,n,l,r)+r:l},N2=function(e,n,r,i){if(!r||r==="none"){var l=Mn(n,e,1),s=l&&ot(e,l,1);s&&s!==r?(n=l,r=s):n==="borderColor"&&(r=ot(e,"borderTopColor"))}var a=new Ce(this._pt,e.style,n,0,1,bd),c=0,u=0,d,f,_,m,p,h,g,w,S,C,T,k;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(h=e.style[n],e.style[n]=i,i=ot(e,n)||i,h?e.style[n]=h:Jt(e,n)),d=[r,i],cd(d),r=d[0],i=d[1],_=r.match(vn)||[],k=i.match(vn)||[],k.length){for(;f=vn.exec(i);)g=f[0],S=i.substring(c,f.index),p?p=(p+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(p=1),g!==(h=_[u++]||"")&&(m=parseFloat(h)||0,T=h.substr((m+"").length),g.charAt(1)==="="&&(g=Nn(m,g)+T),w=parseFloat(g),C=g.substr((w+"").length),c=vn.lastIndex-C.length,C||(C=C||ve.units[n]||T,c===i.length&&(i+=C,a.e+=C)),T!==C&&(m=Ot(e,n,h,C)||0),a._pt={_next:a._pt,p:S||u===1?S:",",s:m,c:w-m,m:p&&p<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?Id:Ed;return Du.test(i)&&(a.e=0),this._pt=a,a},Pd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},B2=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=Pd[r]||r,n[1]=Pd[i]||i,n.join(" ")},F2=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,l=n.u,s=r._gsap,a,c,u;if(l==="all"||l===!0)i.cssText="",c=1;else for(l=l.split(","),u=l.length;--u>-1;)a=l[u],_t[a]&&(c=1,a=a==="transformOrigin"?Ee:K),Jt(r,a);c&&(Jt(r,K),s&&(s.svg&&r.removeAttribute("transform"),mr(r,1),s.uncache=1,vd(i)))}},go={clearProps:function(e,n,r,i,l){if(l.data!=="isFromStart"){var s=e._pt=new Ce(e._pt,n,r,0,0,F2);return s.u=i,s.pr=-10,s.tween=l,e._props.push(r),1}}},_r=[1,0,0,1,0,0],Md={},Vd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ld=function(e){var n=ot(e,K);return Vd(n)?_r:n.substr(7).match(Fu).map(oe)},gl=function(e,n){var r=e._gsap||Zt(e),i=e.style,l=Ld(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,l=[c.a,c.b,c.c,c.d,c.e,c.f],l.join(",")==="1,0,0,1,0,0"?_r:l):(l===_r&&!e.offsetParent&&e!==$n&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(u=1,a=e.nextElementSibling,$n.appendChild(e)),l=Ld(e),c?i.display=c:Jt(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):$n.removeChild(e))),n&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},yl=function(e,n,r,i,l,s){var a=e._gsap,c=l||gl(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,_=a.yOffset||0,m=c[0],p=c[1],h=c[2],g=c[3],w=c[4],S=c[5],C=n.split(" "),T=parseFloat(C[0])||0,k=parseFloat(C[1])||0,b,y,I,E;r?c!==_r&&(y=m*g-p*h)&&(I=T*(g/y)+k*(-h/y)+(h*S-g*w)/y,E=T*(-p/y)+k*(m/y)-(m*S-p*w)/y,T=I,k=E):(b=Od(e),T=b.x+(~C[0].indexOf("%")?T/100*b.width:T),k=b.y+(~(C[1]||C[0]).indexOf("%")?k/100*b.height:k)),i||i!==!1&&a.smooth?(w=T-u,S=k-d,a.xOffset=f+(w*m+S*h)-w,a.yOffset=_+(w*p+S*g)-S):a.xOffset=a.yOffset=0,a.xOrigin=T,a.yOrigin=k,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ee]="0px 0px",s&&(Dt(s,a,"xOrigin",u,T),Dt(s,a,"yOrigin",d,k),Dt(s,a,"xOffset",f,a.xOffset),Dt(s,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",T+" "+k)},mr=function(e,n){var r=e._gsap||new _d(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,l=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=ot(e,Ee)||"0",d,f,_,m,p,h,g,w,S,C,T,k,b,y,I,E,B,V,L,z,ce,te,ne,ae,Oe,Vn,on,ln,lt,yr,Xe,ht;return d=f=_=h=g=w=S=C=T=0,m=p=1,r.svg=!!(e.getCTM&&$d(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[K]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[K]!=="none"?c[K]:"")),i.scale=i.rotate=i.translate="none"),y=gl(e,r.svg),r.svg&&(r.uncache?(Oe=e.getBBox(),u=r.xOrigin-Oe.x+"px "+(r.yOrigin-Oe.y)+"px",ae=""):ae=!n&&e.getAttribute("data-svg-origin"),yl(e,ae||u,!!ae||r.originIsAbsolute,r.smooth!==!1,y)),k=r.xOrigin||0,b=r.yOrigin||0,y!==_r&&(V=y[0],L=y[1],z=y[2],ce=y[3],d=te=y[4],f=ne=y[5],y.length===6?(m=Math.sqrt(V*V+L*L),p=Math.sqrt(ce*ce+z*z),h=V||L?Pn(L,V)*Kt:0,S=z||ce?Pn(z,ce)*Kt+h:0,S&&(p*=Math.abs(Math.cos(S*An))),r.svg&&(d-=k-(k*V+b*z),f-=b-(k*L+b*ce))):(ht=y[6],yr=y[7],on=y[8],ln=y[9],lt=y[10],Xe=y[11],d=y[12],f=y[13],_=y[14],I=Pn(ht,lt),g=I*Kt,I&&(E=Math.cos(-I),B=Math.sin(-I),ae=te*E+on*B,Oe=ne*E+ln*B,Vn=ht*E+lt*B,on=te*-B+on*E,ln=ne*-B+ln*E,lt=ht*-B+lt*E,Xe=yr*-B+Xe*E,te=ae,ne=Oe,ht=Vn),I=Pn(-z,lt),w=I*Kt,I&&(E=Math.cos(-I),B=Math.sin(-I),ae=V*E-on*B,Oe=L*E-ln*B,Vn=z*E-lt*B,Xe=ce*B+Xe*E,V=ae,L=Oe,z=Vn),I=Pn(L,V),h=I*Kt,I&&(E=Math.cos(I),B=Math.sin(I),ae=V*E+L*B,Oe=te*E+ne*B,L=L*E-V*B,ne=ne*E-te*B,V=ae,te=Oe),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,w=180-w),m=oe(Math.sqrt(V*V+L*L+z*z)),p=oe(Math.sqrt(ne*ne+ht*ht)),I=Pn(te,ne),S=Math.abs(I)>2e-4?I*Kt:0,T=Xe?1/(Xe<0?-Xe:Xe):0),r.svg&&(ae=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Vd(ot(e,K)),ae&&e.setAttribute("transform",ae))),Math.abs(S)>90&&Math.abs(S)<270&&(l?(m*=-1,S+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,S+=S<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=oe(m),r.scaleY=oe(p),r.rotation=oe(h)+a,r.rotationX=oe(g)+a,r.rotationY=oe(w)+a,r.skewX=S+a,r.skewY=C+a,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ee]=yo(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?O2:Bd?Ud:D2,r.uncache=0,r},yo=function(e){return(e=e.split(" "))[0]+" "+e[1]},bl=function(e,n,r){var i=ge(n);return oe(parseFloat(n)+parseFloat(Ot(e,"x",r+"px",i)))+i},D2=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Ud(e,n)},en="0deg",hr="0px",tn=") ",Ud=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,_=r.skewX,m=r.skewY,p=r.scaleX,h=r.scaleY,g=r.transformPerspective,w=r.force3D,S=r.target,C=r.zOrigin,T="",k=w==="auto"&&e&&e!==1||w===!0;if(C&&(f!==en||d!==en)){var b=parseFloat(d)*An,y=Math.sin(b),I=Math.cos(b),E;b=parseFloat(f)*An,E=Math.cos(b),s=bl(S,s,y*E*-C),a=bl(S,a,-Math.sin(b)*-C),c=bl(S,c,I*E*-C+C)}g!==hr&&(T+="perspective("+g+tn),(i||l)&&(T+="translate("+i+"%, "+l+"%) "),(k||s!==hr||a!==hr||c!==hr)&&(T+=c!==hr||k?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+tn),u!==en&&(T+="rotate("+u+tn),d!==en&&(T+="rotateY("+d+tn),f!==en&&(T+="rotateX("+f+tn),(_!==en||m!==en)&&(T+="skew("+_+", "+m+tn),(p!==1||h!==1)&&(T+="scale("+p+", "+h+tn),S.style[K]=T||"translate(0, 0)"},O2=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,_=r.scaleY,m=r.target,p=r.xOrigin,h=r.yOrigin,g=r.xOffset,w=r.yOffset,S=r.forceCSS,C=parseFloat(s),T=parseFloat(a),k,b,y,I,E;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=An,u*=An,k=Math.cos(c)*f,b=Math.sin(c)*f,y=Math.sin(c-u)*-_,I=Math.cos(c-u)*_,u&&(d*=An,E=Math.tan(u-d),E=Math.sqrt(1+E*E),y*=E,I*=E,d&&(E=Math.tan(d),E=Math.sqrt(1+E*E),k*=E,b*=E)),k=oe(k),b=oe(b),y=oe(y),I=oe(I)):(k=f,I=_,b=y=0),(C&&!~(s+"").indexOf("px")||T&&!~(a+"").indexOf("px"))&&(C=Ot(m,"x",s,"px"),T=Ot(m,"y",a,"px")),(p||h||g||w)&&(C=oe(C+p-(p*k+h*y)+g),T=oe(T+h-(p*b+h*I)+w)),(i||l)&&(E=m.getBBox(),C=oe(C+i/100*E.width),T=oe(T+l/100*E.height)),E="matrix("+k+","+b+","+y+","+I+","+C+","+T+")",m.setAttribute("transform",E),S&&(m.style[K]=E)},$2=function(e,n,r,i,l){var s=360,a=ue(l),c=parseFloat(l)*(a&&~l.indexOf("rad")?Kt:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=l.split("_")[1],f==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),f==="cw"&&u<0?u=(u+s*Td)%s-~~(u/s)*s:f==="ccw"&&u>0&&(u=(u-s*Td)%s-~~(u/s)*s)),e._pt=_=new Ce(e._pt,n,r,i,u,g2),_.e=d,_.u="deg",e._props.push(r),_},Rd=function(e,n){for(var r in n)e[r]=n[r];return e},A2=function(e,n,r){var i=Rd({},r._gsap),l="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,d,f,_,m,p;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[K]=n,a=mr(r,1),Jt(r,K),r.setAttribute("transform",u)):(u=getComputedStyle(r)[K],s[K]=n,a=mr(r,1),s[K]=u);for(c in _t)u=i[c],d=a[c],u!==d&&l.indexOf(c)<0&&(m=ge(u),p=ge(d),f=m!==p?Ot(r,c,u,p):parseFloat(u),_=parseFloat(d),e._pt=new Ce(e._pt,a,c,f,_-f,_l),e._pt.u=p||0,e._props.push(c));Rd(a,i)};ke("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",l="Left",s=(e<3?[n,r,i,l]:[n+l,n+r,i+r,i+l]).map(function(a){return e<2?t+a:"border"+a+t});go[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=s.map(function(p){return mt(a,p,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},s.forEach(function(p,h){return m[p]=_[h]=_[h]||_[(h-1)/2|0]}),a.init(c,m,f)}});var zd={name:"css",register:hl,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,l){var s=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,p,h,g,w,S,C,T,k,b,y,I;ul||hl(),this.styles=this.styles||Nd(e),I=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(d=n[h],!(Be[h]&&md(h,n,r,i,e,l)))){if(m=typeof d,p=go[h],m==="function"&&(d=d.call(r,i,e,l),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=sr(d)),p)p(this,e,h,d,r)&&(y=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),d+="",Nt.lastIndex=0,Nt.test(u)||(g=ge(u),w=ge(d)),w?g!==w&&(u=Ot(e,h,u,w)+w):g&&(d+=g),this.add(a,"setProperty",u,d,i,l,0,0,h),s.push(h),I.push(h,0,a[h]);else if(m!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,e,l):c[h],ue(u)&&~u.indexOf("random(")&&(u=sr(u)),ge(u+"")||u==="auto"||(u+=ve.units[h]||ge(mt(e,h))||""),(u+"").charAt(1)==="="&&(u=mt(e,h))):u=mt(e,h),_=parseFloat(u),S=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),S&&(d=d.substr(2)),f=parseFloat(d),h in rt&&(h==="autoAlpha"&&(_===1&&mt(e,"visibility")==="hidden"&&f&&(_=0),I.push("visibility",0,a.visibility),Dt(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=rt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),C=h in _t,C){if(this.styles.save(h),T||(k=e._gsap,k.renderTransform&&!n.parseTransform||mr(e,n.parseTransform),b=n.smoothOrigin!==!1&&k.smooth,T=this._pt=new Ce(this._pt,a,K,0,1,k.renderTransform,k,0,-1),T.dep=1),h==="scale")this._pt=new Ce(this._pt,k,"scaleY",k.scaleY,(S?Nn(k.scaleY,S+f):f)-k.scaleY||0,_l),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){I.push(Ee,0,a[Ee]),d=B2(d),k.svg?yl(e,d,0,b,0,this):(w=parseFloat(d.split(" ")[2])||0,w!==k.zOrigin&&Dt(this,k,"zOrigin",k.zOrigin,w),Dt(this,a,h,yo(u),yo(d)));continue}else if(h==="svgOrigin"){yl(e,d,1,b,0,this);continue}else if(h in Md){$2(this,k,h,_,S?Nn(_,S+d):d);continue}else if(h==="smoothOrigin"){Dt(this,k,"smooth",k.smooth,d);continue}else if(h==="force3D"){k[h]=d;continue}else if(h==="transform"){A2(this,d,e);continue}}else h in a||(h=Mn(h)||h);if(C||(f||f===0)&&(_||_===0)&&!p2.test(d)&&h in a)g=(u+"").substr((_+"").length),f||(f=0),w=ge(d)||(h in ve.units?ve.units[h]:g),g!==w&&(_=Ot(e,h,u,w)),this._pt=new Ce(this._pt,C?k:a,h,_,(S?Nn(_,S+f):f)-_,!C&&(w==="px"||h==="zIndex")&&n.autoRound!==!1?b2:_l),this._pt.u=w||0,g!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=y2);else if(h in a)N2.call(this,e,h,u,S?S+d:d);else if(h in e)this.add(e,h,u||e[h],S?S+d:d,i,l);else if(h!=="parseTransform"){Ri(h,d);continue}C||(h in a?I.push(h,0,a[h]):I.push(h,1,u||e[h])),s.push(h)}}y&&xd(this)},render:function(e,n){if(n.tween._time||!dl())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:mt,aliases:rt,getSetter:function(e,n,r){var i=rt[n];return i&&i.indexOf(",")<0&&(n=i),n in _t&&n!==Ee&&(e._gsap.x||mt(e,"x"))?r&&Cd===r?n==="scale"?k2:S2:(Cd=r||{})&&(n==="scale"?C2:T2):e.style&&!Ai(e.style[n])?x2:~n.indexOf("-")?w2:il(e,n)},core:{_removeProperty:Jt,_getMatrix:gl}};Te.utils.checkPrefix=Mn,Te.core.getStyleSaver=Nd,function(t,e,n,r){var i=ke(t+","+e+","+n,function(l){_t[l]=1});ke(e,function(l){ve.units[l]="deg",Md[l]=1}),rt[i[13]]=t+","+e,ke(r,function(l){var s=l.split(":");rt[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),ke("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){ve.units[t]="px"}),Te.registerPlugin(zd);var xl=Te.registerPlugin(zd)||Te;xl.core.Tween;const P2={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=o.ref(null),r=o.computed(()=>e.delayOffset/n.value.$el.children.length);function i(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function l(a,c){if(e.disabled){c();return}xl.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function s(a,c){if(e.disabled){c();return}xl.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:l,onLeave:s},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}};class qd extends Bi{constructor(n={}){super({showPlaceholder:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.updateScrollPosition())}dragEnd(n){var i;const r=this.draggableData;(i=this.placeholder)==null||i.remove(),super.dragEnd(n),this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){super.dragOver(n),this.updateListPosition(n)}updateListPosition(n){const r=this.listPosition,i=this.getListPositionOfPoint({x:n.clientX,y:n.clientY});this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==r&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.draggableData))}getListPosition(n){let r=0;for(const i of this.getChildren()){if(i===n)return r;r++}return null}getChildren(){return[...this.currentDropZone.children].filter(n=>n.className.match(/drag-placeholder/)===null)}getListPositionOfPoint(n){let r=0;const i=this.getChildren();for(;r<i.length;){const l=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<l.top+l.height/2)break}else if(n.x<l.left+l.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const l=f=>f*5,s=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-s,d=s-(c-r);u>0?i=-l(u):d>0&&(i=l(d)),i&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+i,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+i,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}}renderPlaceholder(){this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("direction-vertical"),this.placeholder.classList.remove("direction-horizontal"),this.placeholder.style.height=void 0):(this.placeholder.classList.add("direction-horizontal"),this.placeholder.classList.remove("direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const M2={class:"flex items-center"},V2={key:0},L2={class:"flex-grow"},Gd={__name:"ListItemDraggable",props:{dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},showHandle:Boolean,listItems:{type:Array,default:null}},emits:["position","update:list-items"],setup(t,{emit:e}){const n=e,r=t,i=new qd().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction}).onPositionChange((l,s)=>{if(n("position",l),r.listItems){const a=[...r.listItems];a.splice(l,0,a.splice(s,1)[0]),n("update:list-items",a)}});return(l,s)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",M2,[t.showHandle?(o.openBlock(),o.createElementBlock("div",V2,[o.createVNode(o.unref(wu),{svg:o.unref(uu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",L2,[o.renderSlot(l.$slots,"default")])])],32))}},U2=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),R2={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function l(u){return!r.hiddenColumnNames.includes(u.name)}function s(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=Un(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!i.value){Ze.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Un(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(xu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[U2,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(Ni),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),o.createVNode(o.unref(Iu),{name:"fade-down-list","data-drop-zone":"column-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sortableColumns,(f,_)=>(o.openBlock(),o.createBlock(o.unref(Gd),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:o.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":_===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=m=>u.$emit("update:sortable-columns",m))},{default:o.withCtx(()=>[o.createVNode(o.unref(Ni),{column:f,visible:l(f),"is-title":a(f),onVisible:m=>s(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Zd={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.columns,i=>(o.openBlock(),o.createElementBlock("div",{key:i.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},z2={"!visible":"_!visible_1xlle_1",visible:"_visible_1xlle_1",collapse:"_collapse_1xlle_1",static:"_static_1xlle_1",absolute:"_absolute_1xlle_1",relative:"_relative_1xlle_1",sticky:"_sticky_1xlle_1","bottom-1":"_bottom-1_1xlle_1","left-0":"_left-0_1xlle_1","right-0":"_right-0_1xlle_1","right-1":"_right-1_1xlle_1","right-4":"_right-4_1xlle_1","top-0":"_top-0_1xlle_1","top-1":"_top-1_1xlle_1","top-4":"_top-4_1xlle_1","m-2":"_m-2_1xlle_1","m-4":"_m-4_1xlle_1","mx-1":"_mx-1_1xlle_1","mx-4":"_mx-4_1xlle_1","mx-auto":"_mx-auto_1xlle_1","my-2":"_my-2_1xlle_1","!mr-1":"_!mr-1_1xlle_1","mb-2":"_mb-2_1xlle_1","mb-4":"_mb-4_1xlle_1","ml-1":"_ml-1_1xlle_1","ml-2":"_ml-2_1xlle_1","ml-2.5":"_ml-2.5_1xlle_1","ml-3":"_ml-3_1xlle_1","ml-4":"_ml-4_1xlle_1","ml-5":"_ml-5_1xlle_1","ml-[-.2em]":"_ml-[-.2em]_1xlle_1","mr-1":"_mr-1_1xlle_1","mr-2":"_mr-2_1xlle_1","mr-3":"_mr-3_1xlle_1","mt-1":"_mt-1_1xlle_1","mt-2":"_mt-2_1xlle_1","mt-3":"_mt-3_1xlle_1","mt-4":"_mt-4_1xlle_1",block:"_block_1xlle_1","inline-block":"_inline-block_1xlle_1",inline:"_inline_1xlle_1",flex:"_flex_1xlle_1",table:"_table_1xlle_1",hidden:"_hidden_1xlle_1","h-10":"_h-10_1xlle_1","h-4":"_h-4_1xlle_1","h-5":"_h-5_1xlle_1","h-8":"_h-8_1xlle_1","h-full":"_h-full_1xlle_1","max-h-full":"_max-h-full_1xlle_1","w-16":"_w-16_1xlle_1","w-2/5":"_w-2/5_1xlle_1","w-24":"_w-24_1xlle_1","w-3":"_w-3_1xlle_1","w-3/5":"_w-3/5_1xlle_1","w-32":"_w-32_1xlle_1","w-4":"_w-4_1xlle_1","w-48":"_w-48_1xlle_1","w-5":"_w-5_1xlle_1","w-6":"_w-6_1xlle_1","w-7":"_w-7_1xlle_1","w-72":"_w-72_1xlle_1","w-8":"_w-8_1xlle_1","w-96":"_w-96_1xlle_1","w-[13.5rem]":"_w-[13.5rem]_1xlle_1","w-[35.5rem]":"_w-[35.5rem]_1xlle_1","w-[6.5rem]":"_w-[6.5rem]_1xlle_1","w-full":"_w-full_1xlle_1","!min-w-0":"_!min-w-0_1xlle_1","max-w-[50em]":"_max-w-[50em]_1xlle_1","max-w-full":"_max-w-full_1xlle_1","flex-shrink-0":"_flex-shrink-0_1xlle_1","flex-grow":"_flex-grow_1xlle_1",grow:"_grow_1xlle_1","rotate-180":"_rotate-180_1xlle_1",transform:"_transform_1xlle_1","cursor-ew-resize":"_cursor-ew-resize_1xlle_1","cursor-move":"_cursor-move_1xlle_1","cursor-not-allowed":"_cursor-not-allowed_1xlle_1","cursor-ns-resize":"_cursor-ns-resize_1xlle_1","cursor-pointer":"_cursor-pointer_1xlle_1",resize:"_resize_1xlle_1","flex-col":"_flex-col_1xlle_1","flex-nowrap":"_flex-nowrap_1xlle_1","items-center":"_items-center_1xlle_1","items-stretch":"_items-stretch_1xlle_1","justify-start":"_justify-start_1xlle_1","justify-end":"_justify-end_1xlle_1","justify-center":"_justify-center_1xlle_1","justify-between":"_justify-between_1xlle_1","gap-y-0":"_gap-y-0_1xlle_1","gap-y-1":"_gap-y-1_1xlle_1","space-x-1":"_space-x-1_1xlle_1","space-x-2":"_space-x-2_1xlle_1","self-center":"_self-center_1xlle_1","overflow-auto":"_overflow-auto_1xlle_1","overflow-hidden":"_overflow-hidden_1xlle_1","overflow-y-auto":"_overflow-y-auto_1xlle_20","overflow-x-hidden":"_overflow-x-hidden_1xlle_1","scroll-smooth":"_scroll-smooth_1xlle_1","overflow-ellipsis":"_overflow-ellipsis_1xlle_1","whitespace-nowrap":"_whitespace-nowrap_1xlle_1",rounded:"_rounded_1xlle_1","rounded-2xl":"_rounded-2xl_1xlle_1","rounded-lg":"_rounded-lg_1xlle_1","rounded-md":"_rounded-md_1xlle_1","!rounded-l-none":"_!rounded-l-none_1xlle_1","!rounded-r-none":"_!rounded-r-none_1xlle_1","rounded-b-lg":"_rounded-b-lg_1xlle_1","rounded-t-lg":"_rounded-t-lg_1xlle_1","rounded-t-md":"_rounded-t-md_1xlle_1","!border-0":"_!border-0_1xlle_1",border:"_border_1xlle_1","border-b":"_border-b_1xlle_1","border-l":"_border-l_1xlle_1","border-l-0":"_border-l-0_1xlle_1","border-r":"_border-r_1xlle_1","border-t":"_border-t_1xlle_1","border-solid":"_border-solid_1xlle_1","border-dashed":"_border-dashed_1xlle_1","border-blue-600":"_border-blue-600_1xlle_1","border-blue-700":"_border-blue-700_1xlle_1","border-gray-200":"_border-gray-200_1xlle_1","border-gray-300":"_border-gray-300_1xlle_1","border-slate-200":"_border-slate-200_1xlle_1","!bg-blue-600":"_!bg-blue-600_1xlle_1","!bg-gray-100":"_!bg-gray-100_1xlle_1","bg-blue-200":"_bg-blue-200_1xlle_1","bg-blue-600":"_bg-blue-600_1xlle_1","bg-emerald-200":"_bg-emerald-200_1xlle_1","bg-gray-100":"_bg-gray-100_1xlle_1","bg-gray-200":"_bg-gray-200_1xlle_1","bg-gray-400":"_bg-gray-400_1xlle_1","bg-gray-500":"_bg-gray-500_1xlle_1","bg-green-300":"_bg-green-300_1xlle_1","bg-red-200":"_bg-red-200_1xlle_1","bg-red-300":"_bg-red-300_1xlle_1","bg-red-900":"_bg-red-900_1xlle_1","bg-slate-100":"_bg-slate-100_1xlle_1","bg-slate-200":"_bg-slate-200_1xlle_1","bg-transparent":"_bg-transparent_1xlle_1","bg-white":"_bg-white_1xlle_1","bg-yellow-300":"_bg-yellow-300_1xlle_1","!p-1":"_!p-1_1xlle_1","!p-2":"_!p-2_1xlle_1","p-0":"_p-0_1xlle_1","p-1":"_p-1_1xlle_1","p-2":"_p-2_1xlle_1","p-3":"_p-3_1xlle_1","p-4":"_p-4_1xlle_1","!py-0":"_!py-0_1xlle_1","px-1":"_px-1_1xlle_1","px-12":"_px-12_1xlle_1","px-2":"_px-2_1xlle_1","px-2.5":"_px-2.5_1xlle_1","px-4":"_px-4_1xlle_1","px-6":"_px-6_1xlle_1","px-8":"_px-8_1xlle_1","py-1":"_py-1_1xlle_1","py-14":"_py-14_1xlle_1","py-2":"_py-2_1xlle_1","py-2.5":"_py-2.5_1xlle_1","py-3":"_py-3_1xlle_1","py-4":"_py-4_1xlle_1","py-8":"_py-8_1xlle_1","!pl-4":"_!pl-4_1xlle_1","!pl-5":"_!pl-5_1xlle_1","pl-1":"_pl-1_1xlle_1","pl-2":"_pl-2_1xlle_1","pl-6":"_pl-6_1xlle_1","pr-10":"_pr-10_1xlle_1","text-left":"_text-left_1xlle_1","text-center":"_text-center_1xlle_1","text-right":"_text-right_1xlle_1","!text-xs":"_!text-xs_1xlle_1","text-[1rem]":"_text-[1rem]_1xlle_1","text-sm":"_text-sm_1xlle_1","text-xs":"_text-xs_1xlle_1","font-bold":"_font-bold_1xlle_1","font-medium":"_font-medium_1xlle_1","font-normal":"_font-normal_1xlle_1","font-semibold":"_font-semibold_1xlle_1",uppercase:"_uppercase_1xlle_1","leading-[1.2rem]":"_leading-[1.2rem]_1xlle_1","!text-green-900":"_!text-green-900_1xlle_1","!text-red-900":"_!text-red-900_1xlle_1","!text-white":"_!text-white_1xlle_1","!text-yellow-900":"_!text-yellow-900_1xlle_1","text-black":"_text-black_1xlle_1","text-blue-600":"_text-blue-600_1xlle_1","text-blue-900":"_text-blue-900_1xlle_1","text-gray-300":"_text-gray-300_1xlle_1","text-gray-400":"_text-gray-400_1xlle_1","text-gray-500":"_text-gray-500_1xlle_1","text-gray-600":"_text-gray-600_1xlle_1","text-gray-700":"_text-gray-700_1xlle_1","text-red-400":"_text-red-400_1xlle_1","text-red-900":"_text-red-900_1xlle_1","text-white":"_text-white_1xlle_1","text-yellow-600":"_text-yellow-600_1xlle_1","text-zinc-500":"_text-zinc-500_1xlle_1","text-zinc-800":"_text-zinc-800_1xlle_1","line-through":"_line-through_1xlle_1","opacity-20":"_opacity-20_1xlle_1","opacity-50":"_opacity-50_1xlle_1","opacity-70":"_opacity-70_1xlle_1","shadow-none":"_shadow-none_1xlle_1","outline-none":"_outline-none_1xlle_1",outline:"_outline_1xlle_1",filter:"_filter_1xlle_1",transition:"_transition_1xlle_1","transition-all":"_transition-all_1xlle_1","duration-300":"_duration-300_1xlle_1","q-tab":"_q-tab_1xlle_4","q-tab-panels":"_q-tab-panels_1xlle_8","q-panel":"_q-panel_1xlle_11",scroll:"_scroll_1xlle_14","q-tab-panel":"_q-tab-panel_1xlle_8","q-toolbar":"_q-toolbar_1xlle_24","q-notification__actions":"_q-notification__actions_1xlle_29",app:"_app_1xlle_1","main-layout":"_main-layout_1xlle_1","is-disabled":"_is-disabled_1xlle_45","disable-all-transitions":"_disable-all-transitions_1xlle_50","v-enter-active":"_v-enter-active_1xlle_54","v-leave-active":"_v-leave-active_1xlle_55","v-enter-from":"_v-enter-from_1xlle_59","v-leave-to":"_v-leave-to_1xlle_60","category-toggle":"_category-toggle_1xlle_64","has-visible-columns":"_has-visible-columns_1xlle_67","hover:bg-blue-200":"_hover:bg-blue-200_1xlle_1","hover:bg-gray-200":"_hover:bg-gray-200_1xlle_1","hover:bg-red-200":"_hover:bg-red-200_1xlle_1","hover:bg-slate-200":"_hover:bg-slate-200_1xlle_1","hover:text-blue-500":"_hover:text-blue-500_1xlle_1","hover:text-blue-600":"_hover:text-blue-600_1xlle_1","hover:opacity-100":"_hover:opacity-100_1xlle_1","focus:bg-blue-200":"_focus:bg-blue-200_1xlle_1"},q2={class:"flex items-center flex-nowrap"},G2=["onClick"],Z2={class:"text-xs"},H2=ut({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(""),l=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function s(m){return r.columns.filter(p=>p.category===m)}function a(m){return s(m).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(m){let p=s(m).filter(g=>!g.required);const h=p.filter(g=>!r.hiddenColumnNames.includes(g.name));return h.length===0?!1:h.length===p.length?!0:null}function u(m,p){m=m.filter(g=>!g.required);let h=[...r.hiddenColumnNames];p?h=h.filter(g=>!m.map(w=>w.name).includes(g)):h=[...new Set([...h,...m.map(g=>g.name)])],n("update:hidden-column-names",h)}function d(m,p){if(r.columns.find(g=>g.name===m).required)return;p=p??r.hiddenColumnNames.includes(m);let h=[...r.hiddenColumnNames];p?h=Un(h,m):(h.push(m),h=[...new Set(h)]),n("update:hidden-column-names",h)}const f=o.useCssModule();function _(m){return f["category-toggle"]+(a(m)?" "+f["has-visible-columns"]:"")}return(m,p)=>{const h=o.resolveComponent("QCheckbox"),g=o.resolveComponent("QList"),w=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",q2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,S=>(o.openBlock(),o.createElementBlock("div",{key:S,class:o.normalizeClass(_(S))},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(S),class:"mr-2 cb-white-border",onClick:C=>u(s(S),!a(S))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(S),1),o.createVNode(o.unref(cu),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===S}])},null,8,["class"]),o.createVNode(w,{"onUpdate:modelValue":C=>i.value=C?S:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s(S),C=>(o.openBlock(),o.createElementBlock("div",{key:C,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:T=>d(C.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(C.name),class:"mr-3 cb-white-border",size:"20px",color:C.required?"gray-400":"blue-600",disable:C.required,onClick:T=>d(C.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",Z2,o.toDisplayString(C.label),1)],8,G2))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:z2}]]),W2={__name:"CollapsableFiltersSidebar",props:{name:{type:String,required:!0},showFilters:Boolean,filter:{type:Object,default:null},filterFields:{type:Array,default:()=>[]}},emits:["update:filter","update:show-filters"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(Su),{collapse:!t.showFilters,disabled:"","min-width":"0","max-width":"18rem",name:t.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(of),{filter:t.filter,"filter-fields":t.filterFields,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:filter",r))},null,8,["filter","filter-fields"])]),_:1},8,["collapse","name"]))}},j2={key:0,class:"text-red-900 ml-1 text-xs bottom-1 relative"},nn={__name:"FieldLabel",props:{field:{type:Object,default:null},label:{type:String,default:null},showName:Boolean,required:Boolean},setup(t){const e=t,n=o.computed(()=>{var i;return e.label||((i=e.field)==null?void 0:i.label)}),r=o.computed(()=>{var i,l;return((i=e.field)==null?void 0:i.required_group)||(e.required||(l=e.field)!=null&&l.required?"*":"")});return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var s;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),t.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((s=t.field)==null?void 0:s.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",j2,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},wl={__name:"BooleanField",props:{label:{type:String,default:null},modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QToggle");return o.openBlock(),o.createBlock(r,{"data-testid":"boolean-field-"+t.field.id,"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:{...t.field,label:t.label||t.field.label},"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}},Y2={for:"first_name",class:"form-label"},Q2={class:"mt-1"},Sl={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("label",Y2,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Q2,[o.createVNode(r,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},X2={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r===e.password||"The password and confirmation do not match"];return(r,i)=>(o.openBlock(),o.createBlock(o.unref(Sl),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16,["name","model-value"]))}},K2={key:0,class:"font-bold text-xs mb-2"},J2={class:"flex items-center cursor-pointer"},ew={class:"font-bold ml-3 hover:text-blue-600"},kl={__name:"DateField",props:{modelValue:{type:[String,Object],default:null},label:{type:String,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.modelValue?Je(Vr(r.modelValue||"0000-00-00")):null),l=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>l.value=a);function s(){n("update:model-value",l.value)}return(a,c)=>{const u=o.resolveComponent("QDate"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",K2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",J2,[o.createVNode(o.unref(ru),{class:"w-5 text-blue-600"}),o.createElementVNode("div",ew,[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>l.value=f),s]},null,8,["modelValue"])]),_:1})])}}},tw={key:0,class:"font-bold text-xs mb-2"},nw={class:"flex items-center cursor-pointer"},rw={class:"font-bold ml-3 hover:text-blue-600"},Cl={__name:"DateRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},inline:Boolean,withTime:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>a.value?r.withTime?{from:Je(Wo(a.value.from||"0000-00-00")),to:Je(Wo(a.value.to||"9999-12-31"))}:{from:Je(Vr(a.value.from||"0000-00-00")),to:Je(Vr(a.value.to||"9999-12-31"))}:{from:null,to:null}),l=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,u=>l.value=s(u));function s(u){return u!=null&&u.from&&(u!=null&&u.to)?Je(u.from)===Je(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof l.value=="string"?u={from:l.value,to:l.value}:l.value&&(u={from:l.value.from,to:l.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=o.resolveComponent("QDate"),_=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",tw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.inline?(o.openBlock(),o.createBlock(f,{key:1,modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>l.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",nw,[o.createVNode(o.unref(ru),{class:"w-5 text-blue-600"}),o.createElementVNode("div",rw,[a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value.from)+" - "+o.toDisplayString(i.value.to),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>l.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},ow={class:"flex items-center justify-center"},iw={key:0,class:"flex-grow"},Tl={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,r=t,i=o.computed({get:()=>Yo(Ho(r.modelValue)),set(l){const s=l?Yo(_a(l)):null;(s||r.nullable)&&n("update:modelValue",s)}});return(l,s)=>{const a=o.resolveComponent("QBtn"),c=o.resolveComponent("QDate"),u=o.resolveComponent("QTime"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",ow,[t.nullable?(o.openBlock(),o.createElementBlock("div",iw,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:s[0]||(s[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:s[1]||(s[1]=f=>l.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:s[2]||(s[2]=f=>l.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},lw={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.ref(r.modelValue);function s(){n("update:model-value",l.value),i.value=!1}return(a,c)=>{const u=o.resolveComponent("QPopupProxy"),d=o.resolveComponent("QIcon"),f=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{"model-value":o.unref(gn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>i.value=!0)},{append:o.withCtx(()=>[o.createVNode(d,{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value=_)},{default:o.withCtx(()=>[o.createVNode(o.unref(Tl),{modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=_=>l.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:s},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},sw={__name:"EditableDiv",props:{modelValue:{type:String,required:!0},debounceDelay:{type:Number,default:500}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.modelValue),l=Ln(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function s(a){i.value=a.target.innerText,l()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:s},o.toDisplayString(i.value),33))}},aw=["accept","capture"],cw={__name:"FileUploadButton",props:{...Q.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:s});const r=n,i=t,l=o.ref(null);function s(){l.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new eo(c).onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});i.geolocation&&await u.resolveLocation(i.locationWaitMessage),u.upload()}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QBtn),o.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{},()=>[o.createVNode(o.unref(By),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:l,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,aw)]),_:3},16))}},uw={class:"inline-block"},dw={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},fw={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(i){n("update:model-value",i.value),n("save",i.value),i.set()}return(i,l)=>{const s=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",uw,[o.createElementVNode("div",dw,[o.createTextVNode(o.toDisplayString(o.unref(gn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(su),{class:"w-4 font-bold ml-2 text-gray-400"}),o.createVNode(s,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:o.withCtx(a=>[o.createVNode(o.unref(Tl),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>r(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},pr={__name:"NumberField",props:{modelValue:{type:[String,Number],default:""},precision:{type:Number,default:2},label:{type:String,default:void 0},field:{type:Object,default:null},inputClass:{type:String,default:""},delay:{type:Number,default:1e3},hidePrependLabel:Boolean,currency:Boolean,showName:Boolean},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));const l=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function s(u){var _;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((_=(""+u).split(".")[1])==null?void 0:_.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Ut(u,f)}const a=Ln(u=>n("update",u),r.delay);function c(u){let d="";if(u.match(/[^\d.,$]/)){const f=i.value;return i.value+=" ",o.nextTick(()=>i.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=Number(u),i.value=s(d)),d=d===""?void 0:d,n("update:model-value",d),a(d)}return(u,d)=>{const f=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(f,{"model-value":i.value,"data-testid":"number-field-"+l.value.id,placeholder:l.value.placeholder,outlined:"",dense:"",inputmode:"numeric","input-class":{[t.inputClass]:!0,"text-right bg-white":!t.hidePrependLabel,"text-right !text-xs text-black font-normal":t.hidePrependLabel},class:o.normalizeClass({"no-prepend-icon w-32 max-w-full":t.hidePrependLabel,"prepend-label":!t.hidePrependLabel}),"onUpdate:modelValue":c},{prepend:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:l.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["model-value","data-testid","placeholder","input-class","class"])}}},Hd={__name:"IntegerField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(pr),{field:t.field,precision:0,"model-value":t.modelValue,"show-name":t.showName,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["field","model-value","show-name"]))}},_w={class:"text-xs font-bold"},Wd={__name:"LabelValueBlock",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",_w,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)]))}},mw={key:0,class:"text-sm my-2"},hw={class:"max-w-[50em] flex items-stretch justify-start"},pw={key:1,class:"p-1"},jd={__name:"MultiFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFilesSelected:s,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Jc();return o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),i(()=>n("update:model-value",a.value)),(d,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300":!t.readonly}]),onDragover:f[4]||(f[4]=o.withModifiers(()=>{},["prevent"])),onDrop:f[5]||(f[5]=o.withModifiers((..._)=>o.unref(l)&&o.unref(l)(..._),["prevent"]))},[o.createVNode(o.unref(nn),{field:t.field,"show-name":t.showName,class:"text-sm font-semibold"},null,8,["field","show-name"]),!t.disable&&!t.readonly?(o.openBlock(),o.createElementBlock("div",mw,[o.createElementVNode("a",{class:"text-blue-600",onClick:f[0]||(f[0]=_=>d.$refs.file.click())},"Upload"),o.unref(a).length>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:f[1]||(f[1]=(..._)=>o.unref(c)&&o.unref(c)(..._))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[2]||(f[2]=(..._)=>o.unref(s)&&o.unref(s)(..._))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",hw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-upload-"+_.id,class:o.normalizeClass(["w-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),image:_,"related-files":o.unref(a),downloadable:"",removable:!t.readonly&&!t.disable,onRemove:m=>o.unref(u)(_)},null,8,["class","image","related-files","removable","onRemove"]))),128)),!t.disable&&!t.readonly?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,class:"w-32 m-2 cursor-pointer border border-dashed border-blue-600",disabled:"",onClick:f[3]||(f[3]=_=>d.$refs.file.click())})):o.createCommentVNode("",!0),t.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",pw," -- ")):o.createCommentVNode("",!0)])],34))}},gr={__name:"SelectField",props:{...Q.QSelect.props,modelValue:{type:[Array,String,Number,Object],default:void 0},placeholder:{type:String,default:""},selectionLabel:{type:String,default:null},chipLimit:{type:Number,default:3},inputClass:{type:String,default:""},selectionClass:{type:String,default:""},options:{type:Array,default:()=>[]},filterable:Boolean,filterFn:{type:Function,default:null}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(null),l=o.ref(null),s=o.ref(!1),a=o.computed(()=>{let b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(y=>{let I=o.isRef(y)?y.value:y;return{label:m(I),value:h(I),selectionLabel:p(I)}}),b}),c=o.computed(()=>l.value&&!r.filterFn?a.value.filter(b=>b.label.toLocaleLowerCase().indexOf(l.value.toLowerCase())>-1):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(y=>y===null?"__null__":y)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let b=u.value;return r.multiple||(b=b||b===0?[b]:[]),a.value.filter(y=>{var I;return b.includes(y.value)||b.map(E=>typeof E=="object"&&E.id).includes((I=y.value)==null?void 0:I.id)})}),f=o.computed(()=>r.filterable&&s.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=o.computed(()=>d.value.slice(0,r.chipLimit));function m(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)}function h(b){if(!b||typeof b=="string")return b;let y=b.value;return typeof r.optionValue=="string"?y=b[r.optionValue]:typeof r.optionValue=="function"&&(y=r.optionValue(b)),y===null?"__null__":y}function g(b){Array.isArray(b)&&(b=b.map(y=>y==="__null__"?null:y)),b=b==="__null__"?null:b,n("update",b),n("update:model-value",b)}const w=o.ref(!1);async function S(b,y){if(!r.filterFn)l.value=b,await o.nextTick(y);else{if(y(),w.value===!1)return;b!==null&&b!==l.value&&(l.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function T(){s.value=!0,w.value=!1,o.nextTick(()=>{w.value=!0,i.value.focus()})}function k(){s.value=!1,w.value=!1}return(b,y)=>{const I=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Q.QSelect),o.mergeProps({ref_key:"selectField",ref:i},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&s.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"","input-class":{"is-hidden":!s.value,[t.inputClass]:!0},class:"max-w-full",onFilter:S,onClear:C,onPopupShow:T,onPopupHide:k,"onUpdate:modelValue":g}),{append:o.withCtx(()=>[o.createVNode(o.unref(xy),{class:o.normalizeClass(["w-4 transition",s.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[b.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":t.chipLimit===1,[t.selectionClass]:!0}])},[_.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,E=>(o.openBlock(),o.createBlock(I,{key:"selected-"+E.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(I,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-_.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(t.selectionClass)},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}},gw={key:1},bo={__name:"TextField",props:{modelValue:{type:[String,Number],default:""},field:{type:Object,default:null},type:{type:String,default:"text"},label:{type:String,default:null},labelClass:{type:String,default:"text-sm text-gray-700"},parentClass:{type:String,default:""},inputClass:{type:String,default:""},noLabel:Boolean,showName:Boolean,disabled:Boolean,readonly:Boolean,debounce:{type:[String,Number],default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{var i,l,s;const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[t.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(r,{key:0,"data-dusk":"text-field-"+((i=t.field)==null?void 0:i.id),"data-testid":"text-field-"+((l=t.field)==null?void 0:l.id),placeholder:(s=t.field)==null?void 0:s.placeholder,outlined:"",dense:"",disable:t.disabled,"label-slot":!t.noLabel,"input-class":t.inputClass,class:o.normalizeClass(t.parentClass),"stack-label":"",type:t.type,"model-value":t.modelValue,debounce:t.debounce,onKeydown:n[0]||(n[0]=o.withKeys(a=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=a=>e.$emit("update:model-value",a))},{label:o.withCtx(()=>[o.createVNode(o.unref(nn),{field:t.field,label:t.label,"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","label","show-name","class"])]),_:1},8,["data-dusk","data-testid","placeholder","disable","label-slot","input-class","class","type","model-value","debounce"])),t.readonly?(o.openBlock(),o.createElementBlock("div",gw,[o.createVNode(o.unref(Wd),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},Yd={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.field.defaultOption),l=o.computed(()=>r.modelValue&&r.modelValue[i.value]),s=o.ref(c());function a(){var u;s.value=((u=s.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",s.value?{[i.value]:s.value.split(",")}:void 0)}function c(){var u;return Array.isArray(l.value)?(u=l.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{s.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(gr),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>i.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),o.createVNode(o.unref(bo),{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>s.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},yw={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r.length>=8||"Please use at least 8 characters"];return(r,i)=>(o.openBlock(),o.createBlock(o.unref(Sl),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16))}},bw={key:0,class:"font-bold text-xs mb-2"},xw={class:"flex items-center flex-nowrap cursor-pointer"},ww={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},xo={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.currency?"$":r.percent?"%":""),l=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),s=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?wy:r.percent?hu:Iy)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(_){const m=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*m:void 0,to:_!=null&&_.to?_.to*m:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?Qo(_):r.percent?ma(_,{multiplier:1,maximumFractionDigits:2}):Ut(_)}const f=Ln(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let m={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",m)}},r.debounce);return(_,m)=>{const p=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",bw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",xw,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",ww,[c.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(d(c.value.from||0))+" - "+o.toDisplayString(d(c.value.to)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" No Limit ")],64))])]),o.createVNode(p,null,{default:o.withCtx(()=>[o.createVNode(o.unref(pr),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=h=>c.value.from=h),o.unref(f)],field:l.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(pr),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=h=>c.value.to=h),o.unref(f)],class:"mt-2",field:s.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Sw=["data-dusk","onClick"],kw={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function s(d){return d.value===void 0?d:d.value}function a(d){return l.value.find(f=>f.value===d).label}function c(d){const f=s(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=s(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(m=>m!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=o.resolveComponent("QCheckbox"),m=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Di),{show:i.value,"onUpdate:show":f[0]||(f[0]=p=>i.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:h=>u(p)},[o.createVNode(_,{"model-value":c(p),class:"mr-2",onClick:o.withModifiers(h=>u(p),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],8,Sw))),128))]),_:3},8,["show","title"]),o.createVNode(m,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>i.value=!0)},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"selected",{},()=>[o.renderSlot(d.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label)+": ",1)]),t.modelValue&&t.modelValue.length>0?o.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" + "+o.toDisplayString(t.modelValue.length-1),1)],64)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(a(t.modelValue)),1)],64))]):o.renderSlot(d.$slots,"placeholder",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},Cw={key:0,class:"text-zinc-500"},Tw={key:1},Ew={class:"text-xs text-zinc-500"},Qd={__name:"SelectWithChildrenField",props:{modelValue:{type:Array,default:()=>[]},label:{type:String,default:"Selection"},placeholder:{type:String,default:"Select an option"},options:{type:Array,default:()=>[]},loading:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function i(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const l=o.ref(i()),s=o.ref(r.modelValue||[]);function a(u){s.value.includes(u.id)?s.value=Un(s.value,u.id):s.value.push(u.id),n("update:model-value",s.value.length>0?s.value:void 0)}function c(){s.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{l.value=i(),s.value=u||[]}),(u,d)=>{const f=o.resolveComponent("QCheckbox");return o.openBlock(),o.createElementBlock("div",null,[!t.loading&&!t.options.length?(o.openBlock(),o.createElementBlock("div",Cw," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(gr),{modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>l.value=_),c],options:t.options,label:t.label,placeholder:t.placeholder,"option-value":_=>_,loading:t.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),l.value?(o.openBlock(),o.createElementBlock("div",Tw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":s.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":m=>a(_)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(_.label),1),o.createElementVNode("div",Ew,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},Iw={key:0,class:"text-sm mt-2"},vw={key:2,class:"py-1"},Xd={__name:"SingleFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFileSelected:s,uploadedFile:a,clearUploadedFile:c}=nu();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(l)&&o.unref(l)(...f),["prevent"]))},[o.createVNode(o.unref(nn),{field:t.field,"show-name":t.showName,class:"text-sm font-semibold"},null,8,["field","show-name"]),!t.disable&&!t.readonly?(o.openBlock(),o.createElementBlock("div",Iw,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(s)&&o.unref(s)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Tn),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),image:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","image"])):t.readonly?(o.openBlock(),o.createElementBlock("div",vw," -- ")):o.createCommentVNode("",!0)],34))}};var Nw=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Bw=function(t){return Nw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Fw=function(t,e,n){Object.keys(e).filter(Bw).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(l){return i(l,n)}))})},Dw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,l=Array.isArray(i)?i.join(" "):i;o.watch(r,function(s,a){n&&typeof s=="string"&&s!==a&&s!==n.getContent({format:t.outputFormat})&&n.setContent(s)}),n.on(l||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},Ow=function(t,e,n,r,i,l){r.setContent(l()),n.attrs["onUpdate:modelValue"]&&Dw(e,n,r,i),Fw(t,n.attrs,r)},Kd=0,Jd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Kd++,t+"_"+n+Kd+String(e)},$w=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},ef=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Aw=function(t,e){return ef(t).concat(ef(e))},Pw=function(t){return t==null},tf=function(){return{listeners:[],scriptId:Jd("tiny-script"),scriptLoaded:!1}},Mw=function(){var t=tf(),e=function(i,l,s,a){var c=l.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=s;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),l.head&&l.head.appendChild(c)},n=function(i,l,s){t.scriptLoaded?s():(t.listeners.push(s),i.getElementById(t.scriptId)||e(t.scriptId,i,l,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=tf()};return{load:n,reinitialize:r}},Vw=Mw(),Lw=function(){return typeof window<"u"?window:global},rn=function(){var t=Lw();return t&&t.tinymce?t.tinymce:null},Uw={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},it=function(){return it=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},it.apply(this,arguments)},Rw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},zw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},El={selector:void 0,target:void 0},qw=o.defineComponent({props:Uw,setup:function(t,e){var n=t.init?it(it({},t.init),El):it({},El),r=o.toRefs(t),i=r.disabled,l=r.modelValue,s=r.tagName,a=o.ref(null),c=null,u=t.id||Jd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",p="",h=function(S){return f?function(){return l!=null&&l.value?l.value:""}:function(){return S?m:p}},g=function(){var S=h(_),C=it(it({},n),{readonly:t.disabled,target:a.value,plugins:Aw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(T){c=T,T.on("init",function(k){return Ow(k,t,e,T,l,S)}),typeof n.setup=="function"&&n.setup(T)}});$w(a.value)&&(a.value.style.visibility=""),rn().init(C),_=!1};o.watch(i,function(S){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(S?"readonly":"design"):c.setMode(S?"readonly":"design"))}),o.watch(s,function(S){var C;f||(p=c.getContent()),(C=rn())===null||C===void 0||C.remove(c),o.nextTick(function(){return g()})}),o.onMounted(function(){if(rn()!==null)g();else if(a.value&&a.value.ownerDocument){var S=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",T=Pw(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(S,"/tinymce.min.js"):t.tinymceScriptSrc;Vw.load(a.value.ownerDocument,T,g)}}),o.onBeforeUnmount(function(){rn()!==null&&rn().remove(c)}),d||(o.onActivated(function(){_||g()}),o.onDeactivated(function(){var S;f||(p=c.getContent()),(S=rn())===null||S===void 0||S.remove(c)}));var w=function(S){var C;p=c.getContent(),(C=rn())===null||C===void 0||C.remove(c),n=it(it(it({},n),S),El),o.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?Rw(o.h,u,a,t.tagName):zw(o.h,u,a)}}});const Gw=["innerHTML"],nf={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[t.noLabel?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(nn),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-700 block mb-2"},null,8,["field","show-name"])),t.readonly?(o.openBlock(),o.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Gw)):(o.openBlock(),o.createBlock(o.unref(qw),{key:2,class:"mt-2","api-key":o.unref(st).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},Zw={key:1,class:"mt-2"},Hw={class:"text-xs font-bold"},Ww=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),Il={__name:"FilterableField",props:{field:{type:Object,required:!0},modelValue:{type:[String,Array,Number,Object,Boolean],default:void 0},loading:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function i(l){let s=l||void 0;switch(r.field.type){case"multi-select":s=l&&l.length>0?l:void 0;break;case"single-select":case"boolean":s=l===null?void 0:l;break}n("update:model-value",s)}return(l,s)=>{var a;return o.openBlock(),o.createElementBlock("div",null,[t.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=t.field.options)==null?void 0:a.length)>0||t.loading?(o.openBlock(),o.createBlock(o.unref(gr),{key:0,"model-value":t.modelValue,options:t.field.options,clearable:t.field.clearable===void 0?!0:t.field.clearable,multiple:"",loading:t.loading,"chip-limit":1,filterable:"",placeholder:t.field.placeholder,label:t.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",Zw,[o.createElementVNode("div",Hw,o.toDisplayString(t.field.label),1),Ww]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(gr),{key:1,"model-value":t.modelValue,options:t.field.options,clearable:t.field.clearable===void 0?!0:t.field.clearable,placeholder:t.field.placeholder,loading:t.loading,label:t.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","placeholder","loading","label"])):t.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(kl),{key:2,"model-value":t.modelValue,label:t.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(Cl),{key:3,"model-value":t.modelValue,label:t.field.label,inline:t.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):t.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:4,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:5,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(xo),{key:6,"model-value":t.modelValue,label:t.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):t.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(wl),{key:7,field:t.field,"model-value":t.modelValue,class:"mt-2","toggle-indeterminate":t.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):t.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(Yd),{key:8,"model-value":t.modelValue,field:t.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):t.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(Qd),{key:9,"model-value":t.modelValue,options:t.field.options,loading:t.loading,label:t.field.label,placeholder:t.field.placeholder,"onUpdate:modelValue":i},null,8,["model-value","options","loading","label","placeholder"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:10},[o.createTextVNode(' Field "'+o.toDisplayString(t.field.name)+'": Unknown filter type '+o.toDisplayString(t.field.type),1)],64))])}}},jw={class:"flex items-center flex-nowrap flex-grow"},Yw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},rf={__name:"FilterFieldItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),i=o.resolveComponent("QExpansionItem");return o.openBlock(),o.createBlock(i,null,{header:o.withCtx(()=>[o.createElementVNode("div",jw,[o.createElementVNode("div",Yw,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},Qw={class:"px-4 py-2 max-w-full"},of={__name:"FilterFieldList",props:{filterFields:{type:Array,required:!0},filter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>{const s={};for(const a of r.filterFields)s[a.name]=a.fields.filter(c=>r.filter[c.name]!==void 0).length;return s});function l(s,a){let c={[s.name]:a};s.filterBy&&(c=s.filterBy(a)),n("update:filter",{...r.filter,...c})}return(s,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Qw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.filterFields,(d,f)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"group-"+d.name},[d.flat?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Il),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(rf),{key:1,name:d.name,count:i.value[d.name]},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Il),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filterFields.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},Xw={class:"flex-grow"},lf=ut({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=o.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,i)=>{const l=o.resolveComponent("QBadge"),s=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[o.createElementVNode("div",Xw,[o.createVNode(s,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(fu),{class:"w-5 mr-2"}),o.createVNode(l,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Kw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Jw={class:"flex-grow"},e4={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},t4={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(l,s)=>(o.openBlock(),o.createElementBlock("div",Kw,[o.createVNode(o.unref(lf),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":s[0]||(s[0]=a=>l.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Jw,[o.renderSlot(l.$slots,"default")]),l.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",e4,[l.$slots.default?(o.openBlock(),o.createBlock(o.unref(Q.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(l.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},n4={class:"rendered-form"},r4={key:0,class:"mb-4"},o4={class:"flex flex-nowrap items-center text-sm w-full"},i4={key:0,class:"variation-missing-icon pl-1"},l4={class:"flex-grow"},s4={key:1,class:"flex flex-nowrap items-center mr-2"},a4=["onClick"],c4=["onClick"],u4={__name:"RenderedForm",props:{values:{type:Array,default:null},form:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,clearable:Boolean,readonly:Boolean,saving:Boolean,emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:Boolean},emits:["update:values"],setup(t,{emit:e}){const n=e,r=t,i={BOOLEAN:wl,DATE:kl,DATE_RANGE:Cl,INTEGER:Hd,NUMBER:pr,TEXT:bo,SINGLE_FILE:Xd,MULTI_FILE:jd,WYSIWYG:nf},l=r.form.fields.map(T=>({placeholder:`Enter ${T.label}`,...T,component:i[T.type],default:T.type==="BOOLEAN"?!1:""})),s=o.computed(()=>{const T=[...new Set(r.values.map(k=>k.variation))].sort();return T.length===0&&T.push(""),T}),a=o.ref(s.value[0]||""),c=o.ref(""),u=o.ref(!1),d=o.ref(""),f=o.computed(()=>r.canModifyVariations&&!r.readonly&&!r.disable&&s.value.length<r.form.variations);function _(T,k){if(r.values)return r.values.find(b=>b.variation===(k!==void 0?k:a.value)&&b.name===T)}function m(T){var k;return(k=_(T))==null?void 0:k.value}function p(T,k){const b=_(T),y={name:T,variation:a.value||"",value:k===void 0?r.emptyValue:k},I=So(r.values,b,y,!0);n("update:values",I)}function h(T){return r.form.fields.map(k=>({variation:T,name:k.name,value:k.type==="BOOLEAN"?!1:null}))}function g(){if(r.saving)return;let T=[...r.values];T.length===0&&(T=h(""));const k=s.value[s.value.length-1],b=Ol(k||"1"),y=h(b);n("update:values",[...T,...y]),a.value=b}function w(){if(!c.value)return;if(s.value.includes(c.value)){Ze.error("Variation name already exists");return}const T=r.values.map(k=>k.variation===u.value?{...k,variation:c.value}:k);n("update:values",T),a.value=c.value,u.value=!1,c.value=""}function S(T){if(!T)return;const k=r.values.filter(b=>b.variation!==T);n("update:values",k),a.value===T&&(a.value=s.value[0]),d.value=""}function C(T){const k={};return r.form.fields.filter(b=>b.required||b.required_group).every(b=>{const y=_(b.name,T),I=!!y&&y.value!==null;return b.required_group?k[b.required_group]?!0:k[b.required_group]=I:I})}return(T,k)=>{const b=o.resolveComponent("QTooltip"),y=o.resolveComponent("QTab"),I=o.resolveComponent("QSpinnerBall"),E=o.resolveComponent("QTabs");return o.openBlock(),o.createElementBlock("div",n4,[t.form.variations>1?(o.openBlock(),o.createElementBlock("div",r4,[o.createVNode(E,{modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=B=>a.value=B),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(B,V)=>(o.openBlock(),o.createBlock(y,{key:B,name:B,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",o4,[C(B)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",i4,[o.createVNode(o.unref(lu),{class:"text-red-400 w-4"}),o.createVNode(b,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",l4,o.toDisplayString(B||"1"),1),!t.disable&&!t.readonly&&t.canModifyVariations?(o.openBlock(),o.createElementBlock("div",s4,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(u.value=B)&&(c.value=B)},[o.createVNode(o.unref(su),{class:"w-3 text-blue-900"})],8,a4),V>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:L=>d.value=B},[o.createVNode(o.unref(Fi),{class:"w-3 text-red-900"})],8,c4)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),f.value?(o.openBlock(),o.createBlock(y,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:g},{default:o.withCtx(()=>[t.saving?(o.openBlock(),o.createBlock(I,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(B,V)=>(o.openBlock(),o.createElementBlock("div",{key:B.id,class:o.normalizeClass({"mt-4":V>0})},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B.component),{key:B.name+"-"+a.value,"model-value":m(B.name),field:B,label:B.label||void 0,"no-label":t.noLabel,"show-name":t.showName,clearable:B.clearable||t.clearable,disable:t.disable,readonly:t.readonly,"onUpdate:modelValue":L=>p(B.name,L)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2))),128)),u.value!==!1?(o.openBlock(),o.createBlock(o.unref(tr),{key:1,title:"Change variation name",onConfirm:w,onClose:k[2]||(k[2]=B=>u.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(bo),{modelValue:c.value,"onUpdate:modelValue":k[1]||(k[1]=B=>c.value=B),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(o.unref(tr),{key:2,title:`Remove variation ${d.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:k[3]||(k[3]=B=>S(d.value)),onClose:k[4]||(k[4]=B=>d.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}},d4={},f4={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},_4={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function m4(t,e){return o.openBlock(),o.createElementBlock("div",f4,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",_4,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const h4=ut(d4,[["render",m4]]);function sf(t){o.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function af(t,e){if(!t.sortBy)return null;const n=e.find(r=>r.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function cf(t,e=null){const n={},r=tu("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(l=>{(!e||e.includes(l))&&(n[l]=i[l])})}return n}function p4(t,{listRoute:e,summaryRoute:n=null,filterFieldOptionsRoute:r=null,moreRoute:i=null,itemDetailsRoute:l=null,refreshFilters:s=!1,urlPattern:a=null,filterDefaults:c={}}){let u=!1;const d=`${t}-pagination-settings`,f=o.shallowRef(null),_=o.ref({}),m=o.ref({}),p=o.ref(!1),h=o.shallowRef([]),g=o.ref(!1),w=o.ref(!1),S=o.shallowRef(null),C=o.shallowRef(null),T=o.shallowRef(null),k=o.ref({}),b=o.ref(!1),y=o.computed(()=>Object.keys(_.value).filter(A=>_.value[A]!==void 0).length),I={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},E=o.ref(I),B=o.computed(()=>({perPage:E.value.rowsPerPage,page:E.value.page,filter:{..._.value,...m.value},sort:E.value.__sort||void 0}));o.watch(B,()=>{lt(),V()}),o.watch(_,()=>{lt(),L()}),o.watch(h,L),s&&o.watch(_,z);async function V(){u&&(g.value=!0,te(await e(B.value)),g.value=!1)}async function L(){if(!n||!u)return;w.value=!0;const A={id:null,..._.value,...m.value};h.value.length&&(A.id=h.value.map(q=>q.id)),S.value=await n(A),w.value=!1}async function z(){!r||!u||(b.value=!0,k.value=await r(_.value),b.value=!1)}function ce(A,q=null){var H;if(a&&A.match(a)){const qe=(H=q==null?void 0:q.value)==null?void 0:H.map(Ge=>Ge.fields.map(wo=>wo.name)).flat(),$e=cf(A,qe);Object.keys($e).length>0&&(_.value=$e,on("filter",_.value))}}function te(A){let q,H;Array.isArray(A)?(q=A,H={total:A.length}):(q=A.data,H=A.meta),H&&H.total!==E.value.rowsNumber&&(E.value.rowsNumber=H.total),q=q.map(qe=>{var Ge,wo;const $e=(wo=(Ge=f.value)==null?void 0:Ge.data)==null?void 0:wo.find(K4=>K4.id===qe.id);return{...qe,isSaving:($e==null?void 0:$e.isSaving)||o.ref(!1)}}),f.value={data:q,meta:H}}function ne(){E.value=I}function ae(A){var H,qe,$e;const q=(qe=(H=f.value)==null?void 0:H.data)==null?void 0:qe.map(Ge=>Ge.id===A.id&&(Ge.updated_at===null||Ge.updated_at<=A.updated_at)?A:Ge);te({data:q,meta:{total:f.value.meta.total}}),(($e=C.value)==null?void 0:$e.id)===A.id&&(C.value={...C.value,...A})}async function Oe(A,q=void 0){if(!i)return;const H=await i({page:A+1,perPage:q,filter:{..._.value,...m.value}});return H&&H.length>0?(te({data:[...f.value.data,...H],meta:{total:f.value.meta.total}}),!0):!1}async function Vn(){return Promise.all([V(),L(),z(),yr()])}function on(A,q){const H=Tt(d)||{};H[A]=q,Ct(d,H)}function ln(){if(!u)return;const A=Tt(d);A?(_.value={...A.filter,..._.value},E.value=A.quasarPagination):_.value={...c,..._.value},setTimeout(()=>{g.value||V(),w.value||L(),b.value||z()},1)}async function lt(){const A={filter:_.value,quasarPagination:{...E.value,page:1}};Ct(d,A)}async function yr(){var q,H;if(!C.value||!l)return;const A=await l(C.value);if((A==null?void 0:A.id)===((q=C.value)==null?void 0:q.id)){const qe=(H=f.value)==null?void 0:H.data.find($e=>$e.id===A.id);C.value={...A,isSaving:qe.isSaving||o.ref(!1)}}}l&&o.watch(()=>C.value,async(A,q)=>{A&&(q==null?void 0:q.id)!==A.id&&await yr()});function Xe(A,q){C.value=A,T.value=q}async function ht(A){var qe;if(!f.value)return;const q=f.value.data.findIndex($e=>{var Ge;return $e.id===((Ge=C.value)==null?void 0:Ge.id)});if(q==null)return;let H=q+A;if(H<0)if(E.value.page>1)E.value={...E.value,page:E.value.page-1},await ko(g,!1),H=f.value.data.length-1;else return;if(H>=f.value.data.length)if(E.value.page<f.value.meta.last_page)E.value={...E.value,page:E.value.page+1},await ko(g,!1),H=0;else return;C.value=(qe=f.value)==null?void 0:qe.data[H]}function X4(){u=!0,ln()}return{pagedItems:f,filter:_,globalFilter:m,filterActiveCount:y,showFilters:p,summary:S,filterFieldOptions:k,selectedRows:h,isLoadingList:g,isLoadingFilters:b,isLoadingSummary:w,pager:B,quasarPagination:E,activeItem:C,activePanel:T,initialize:X4,loadSummary:L,resetPaging:ne,loadList:V,loadMore:Oe,refreshAll:Vn,getNextItem:ht,activatePanel:Xe,applyFilterFromUrl:ce,setItemInList:ae}}function g4(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,l=o.ref(Tt(n)||[]),s=o.ref(Tt(r,[])),a=o.ref(Tt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,p)=>{const h=l.value.indexOf(m.name),g=l.value.indexOf(p.name);return h===-1?1:g===-1?-1:h-g})),d=o.computed({get(){return u.value.slice(1)},set(m){l.value=[...c.value.map(p=>p.name),...m.map(p=>p.name)],Ct(n,l.value)}}),f=o.computed(()=>u.value.filter(m=>!s.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>s.value,()=>Ct(r,s.value)),o.watch(()=>a.value,()=>Ct(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:s,titleColumnNames:a,orderedTitleColumns:_}}const uf={__name:"ActionMenu",props:{actions:{type:Array,required:!0},target:{type:[Array,Object],default:()=>[]},tooltip:{type:String,default:"First select records to perform a batch action"},loading:Boolean,loadingComponent:{type:[Function,Object],default:void 0}},setup(t){const e=t,n=o.computed(()=>Array.isArray(e.target)?e.target.length>0:!!e.target),r=o.computed(()=>e.actions.filter(s=>Array.isArray(e.target)?s.batchEnabled?s.batchEnabled(e.target):!0:s.enabled?s.enabled(e.target):!0)),i=o.ref(!1);async function l(s){if(!s.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");i.value=!0,await s.trigger(e.target),i.value=!1}return(s,a)=>(o.openBlock(),o.createBlock(o.unref(Eu),{class:"px-2 flex action-button",items:r.value,disabled:!n.value,tooltip:n.value?null:t.tooltip,loading:i.value||t.loading,"loading-component":t.loadingComponent,onActionItem:l},null,8,["items","disabled","tooltip","loading","loading-component"]))}},y4={class:"flex-grow overflow-hidden"},b4={key:0,class:"flex flex-shrink-0 pl-2"},df={__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=o.computed(()=>e.rowProps.row),r=o.computed(()=>e.rowProps.col),i=o.computed(()=>e.rowProps.value),l=o.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),s=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":l.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",y4,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass(r.value.innerClass),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)),r.value.titleColumns?(o.openBlock(),o.createBlock(o.unref(Zd),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",b4,[o.createVNode(o.unref(uf),{actions:r.value.actionMenu,target:n.value,loading:l.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},ff=ut({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),l=o.computed(()=>i.value.resizeable),s=o.computed(()=>{var u;const c=((u=r.settings)==null?void 0:u.width)||i.value.width;return{width:c?`${c}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}});function a(c){const u={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(c.distance+c.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(Q.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":l.value&&"resize-column-"+i.value.name,class:o.normalizeClass(l.value&&c.cls["handle-drop-zone"]),style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),l.value?(o.openBlock(),o.createBlock(o.unref(au),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(c.cls["resize-handle"]),onResize:a},{default:o.withCtx(()=>[o.createVNode(o.unref(du),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):o.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}},[["__cssModules",{cls:{"!visible":"_!visible_17vua_1",visible:"_visible_17vua_1",collapse:"_collapse_17vua_1",static:"_static_17vua_1",absolute:"_absolute_17vua_1",relative:"_relative_17vua_1",sticky:"_sticky_17vua_1","bottom-1":"_bottom-1_17vua_1","left-0":"_left-0_17vua_1","right-0":"_right-0_17vua_1","right-1":"_right-1_17vua_1","right-4":"_right-4_17vua_1","top-0":"_top-0_17vua_1","top-1":"_top-1_17vua_1","top-4":"_top-4_17vua_1","m-2":"_m-2_17vua_1","m-4":"_m-4_17vua_1","mx-1":"_mx-1_17vua_1","mx-4":"_mx-4_17vua_1","mx-auto":"_mx-auto_17vua_1","my-2":"_my-2_17vua_1","!mr-1":"_!mr-1_17vua_1","mb-2":"_mb-2_17vua_1","mb-4":"_mb-4_17vua_1","ml-1":"_ml-1_17vua_1","ml-2":"_ml-2_17vua_1","ml-2.5":"_ml-2.5_17vua_1","ml-3":"_ml-3_17vua_1","ml-4":"_ml-4_17vua_1","ml-5":"_ml-5_17vua_1","ml-[-.2em]":"_ml-[-.2em]_17vua_1","mr-1":"_mr-1_17vua_1","mr-2":"_mr-2_17vua_1","mr-3":"_mr-3_17vua_1","mt-1":"_mt-1_17vua_1","mt-2":"_mt-2_17vua_1","mt-3":"_mt-3_17vua_1","mt-4":"_mt-4_17vua_1",block:"_block_17vua_1","inline-block":"_inline-block_17vua_1",inline:"_inline_17vua_1",flex:"_flex_17vua_1",table:"_table_17vua_1",hidden:"_hidden_17vua_1","h-10":"_h-10_17vua_1","h-4":"_h-4_17vua_1","h-5":"_h-5_17vua_1","h-8":"_h-8_17vua_1","h-full":"_h-full_17vua_1","max-h-full":"_max-h-full_17vua_1","w-16":"_w-16_17vua_1","w-2/5":"_w-2/5_17vua_1","w-24":"_w-24_17vua_1","w-3":"_w-3_17vua_1","w-3/5":"_w-3/5_17vua_1","w-32":"_w-32_17vua_1","w-4":"_w-4_17vua_1","w-48":"_w-48_17vua_1","w-5":"_w-5_17vua_1","w-6":"_w-6_17vua_1","w-7":"_w-7_17vua_1","w-72":"_w-72_17vua_1","w-8":"_w-8_17vua_1","w-96":"_w-96_17vua_1","w-[13.5rem]":"_w-[13.5rem]_17vua_1","w-[35.5rem]":"_w-[35.5rem]_17vua_1","w-[6.5rem]":"_w-[6.5rem]_17vua_1","w-full":"_w-full_17vua_1","!min-w-0":"_!min-w-0_17vua_1","max-w-[50em]":"_max-w-[50em]_17vua_1","max-w-full":"_max-w-full_17vua_1","flex-shrink-0":"_flex-shrink-0_17vua_1","flex-grow":"_flex-grow_17vua_1",grow:"_grow_17vua_1","rotate-180":"_rotate-180_17vua_1",transform:"_transform_17vua_1","cursor-ew-resize":"_cursor-ew-resize_17vua_1","cursor-move":"_cursor-move_17vua_1","cursor-not-allowed":"_cursor-not-allowed_17vua_1","cursor-ns-resize":"_cursor-ns-resize_17vua_1","cursor-pointer":"_cursor-pointer_17vua_1",resize:"_resize_17vua_64","flex-col":"_flex-col_17vua_1","flex-nowrap":"_flex-nowrap_17vua_1","items-center":"_items-center_17vua_1","items-stretch":"_items-stretch_17vua_1","justify-start":"_justify-start_17vua_1","justify-end":"_justify-end_17vua_1","justify-center":"_justify-center_17vua_1","justify-between":"_justify-between_17vua_1","gap-y-0":"_gap-y-0_17vua_1","gap-y-1":"_gap-y-1_17vua_1","space-x-1":"_space-x-1_17vua_1","space-x-2":"_space-x-2_17vua_1","self-center":"_self-center_17vua_1","overflow-auto":"_overflow-auto_17vua_1","overflow-hidden":"_overflow-hidden_17vua_1","overflow-y-auto":"_overflow-y-auto_17vua_20","overflow-x-hidden":"_overflow-x-hidden_17vua_1","scroll-smooth":"_scroll-smooth_17vua_1","overflow-ellipsis":"_overflow-ellipsis_17vua_1","whitespace-nowrap":"_whitespace-nowrap_17vua_1",rounded:"_rounded_17vua_1","rounded-2xl":"_rounded-2xl_17vua_1","rounded-lg":"_rounded-lg_17vua_1","rounded-md":"_rounded-md_17vua_1","!rounded-l-none":"_!rounded-l-none_17vua_1","!rounded-r-none":"_!rounded-r-none_17vua_1","rounded-b-lg":"_rounded-b-lg_17vua_1","rounded-t-lg":"_rounded-t-lg_17vua_1","rounded-t-md":"_rounded-t-md_17vua_1","!border-0":"_!border-0_17vua_1",border:"_border_17vua_1","border-b":"_border-b_17vua_1","border-l":"_border-l_17vua_1","border-l-0":"_border-l-0_17vua_1","border-r":"_border-r_17vua_1","border-t":"_border-t_17vua_1","border-solid":"_border-solid_17vua_1","border-dashed":"_border-dashed_17vua_1","border-blue-600":"_border-blue-600_17vua_1","border-blue-700":"_border-blue-700_17vua_1","border-gray-200":"_border-gray-200_17vua_1","border-gray-300":"_border-gray-300_17vua_1","border-slate-200":"_border-slate-200_17vua_1","!bg-blue-600":"_!bg-blue-600_17vua_1","!bg-gray-100":"_!bg-gray-100_17vua_1","bg-blue-200":"_bg-blue-200_17vua_1","bg-blue-600":"_bg-blue-600_17vua_1","bg-emerald-200":"_bg-emerald-200_17vua_1","bg-gray-100":"_bg-gray-100_17vua_1","bg-gray-200":"_bg-gray-200_17vua_1","bg-gray-400":"_bg-gray-400_17vua_1","bg-gray-500":"_bg-gray-500_17vua_1","bg-green-300":"_bg-green-300_17vua_1","bg-red-200":"_bg-red-200_17vua_1","bg-red-300":"_bg-red-300_17vua_1","bg-red-900":"_bg-red-900_17vua_1","bg-slate-100":"_bg-slate-100_17vua_1","bg-slate-200":"_bg-slate-200_17vua_1","bg-transparent":"_bg-transparent_17vua_1","bg-white":"_bg-white_17vua_1","bg-yellow-300":"_bg-yellow-300_17vua_1","!p-1":"_!p-1_17vua_1","!p-2":"_!p-2_17vua_1","p-0":"_p-0_17vua_1","p-1":"_p-1_17vua_1","p-2":"_p-2_17vua_1","p-3":"_p-3_17vua_1","p-4":"_p-4_17vua_1","!py-0":"_!py-0_17vua_1","px-1":"_px-1_17vua_1","px-12":"_px-12_17vua_1","px-2":"_px-2_17vua_1","px-2.5":"_px-2.5_17vua_1","px-4":"_px-4_17vua_1","px-6":"_px-6_17vua_1","px-8":"_px-8_17vua_1","py-1":"_py-1_17vua_1","py-14":"_py-14_17vua_1","py-2":"_py-2_17vua_1","py-2.5":"_py-2.5_17vua_1","py-3":"_py-3_17vua_1","py-4":"_py-4_17vua_1","py-8":"_py-8_17vua_1","!pl-4":"_!pl-4_17vua_1","!pl-5":"_!pl-5_17vua_1","pl-1":"_pl-1_17vua_1","pl-2":"_pl-2_17vua_1","pl-6":"_pl-6_17vua_1","pr-10":"_pr-10_17vua_1","text-left":"_text-left_17vua_1","text-center":"_text-center_17vua_1","text-right":"_text-right_17vua_1","!text-xs":"_!text-xs_17vua_1","text-[1rem]":"_text-[1rem]_17vua_1","text-sm":"_text-sm_17vua_1","text-xs":"_text-xs_17vua_1","font-bold":"_font-bold_17vua_1","font-medium":"_font-medium_17vua_1","font-normal":"_font-normal_17vua_1","font-semibold":"_font-semibold_17vua_1",uppercase:"_uppercase_17vua_1","leading-[1.2rem]":"_leading-[1.2rem]_17vua_1","!text-green-900":"_!text-green-900_17vua_1","!text-red-900":"_!text-red-900_17vua_1","!text-white":"_!text-white_17vua_1","!text-yellow-900":"_!text-yellow-900_17vua_1","text-black":"_text-black_17vua_1","text-blue-600":"_text-blue-600_17vua_1","text-blue-900":"_text-blue-900_17vua_1","text-gray-300":"_text-gray-300_17vua_1","text-gray-400":"_text-gray-400_17vua_1","text-gray-500":"_text-gray-500_17vua_1","text-gray-600":"_text-gray-600_17vua_1","text-gray-700":"_text-gray-700_17vua_1","text-red-400":"_text-red-400_17vua_1","text-red-900":"_text-red-900_17vua_1","text-white":"_text-white_17vua_1","text-yellow-600":"_text-yellow-600_17vua_1","text-zinc-500":"_text-zinc-500_17vua_1","text-zinc-800":"_text-zinc-800_17vua_1","line-through":"_line-through_17vua_1","opacity-20":"_opacity-20_17vua_1","opacity-50":"_opacity-50_17vua_1","opacity-70":"_opacity-70_17vua_1","shadow-none":"_shadow-none_17vua_1","outline-none":"_outline-none_17vua_1",outline:"_outline_17vua_1",filter:"_filter_17vua_1",transition:"_transition_17vua_1","transition-all":"_transition-all_17vua_1","duration-300":"_duration-300_17vua_1","q-tab":"_q-tab_17vua_4","q-tab-panels":"_q-tab-panels_17vua_8","q-panel":"_q-panel_17vua_11",scroll:"_scroll_17vua_14","q-tab-panel":"_q-tab-panel_17vua_8","q-toolbar":"_q-toolbar_17vua_24","q-notification__actions":"_q-notification__actions_17vua_29",app:"_app_17vua_1","main-layout":"_main-layout_17vua_1","is-disabled":"_is-disabled_17vua_45","disable-all-transitions":"_disable-all-transitions_17vua_50","v-enter-active":"_v-enter-active_17vua_54","v-leave-active":"_v-leave-active_17vua_55","v-enter-from":"_v-enter-from_17vua_59","v-leave-to":"_v-leave-to_17vua_60","handle-drop-zone":"_handle-drop-zone_17vua_64","resize-handle":"_resize-handle_17vua_64","hover:bg-blue-200":"_hover:bg-blue-200_17vua_1","hover:bg-gray-200":"_hover:bg-gray-200_17vua_1","hover:bg-red-200":"_hover:bg-red-200_17vua_1","hover:bg-slate-200":"_hover:bg-slate-200_17vua_1","hover:text-blue-500":"_hover:text-blue-500_17vua_1","hover:text-blue-600":"_hover:text-blue-600_17vua_1","hover:opacity-100":"_hover:opacity-100_17vua_1","focus:bg-blue-200":"_focus:bg-blue-200_17vua_1"}}]]),x4={class:"flex items-center justify-center text-sm py-14 w-full"},w4={key:0},S4={key:1},_f={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",x4,[t.loading?(o.openBlock(),o.createElementBlock("div",w4,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(Q.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",S4,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(Q.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},k4={class:"flex flex-nowrap items-center"},C4={key:0,class:"flex items-center"},T4={key:1},mf={__name:"TableSummaryRow",props:{loading:Boolean,label:{type:String,default:"Rows"},selectedLabel:{type:String,default:"Selected"},selectedCount:{type:Number,default:0},itemCount:{type:Number,default:0},summary:{type:Object,default:null},columns:{type:Array,required:!0},stickyColspan:{type:Number,default:2}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>e.columns.slice(e.stickyColspan-1));function r(i){const l=e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(o.openBlock(),o.createBlock(o.unref(Q.QTr),{class:o.normalizeClass(["sticky-column-1 transition-all sticky-row",{"!bg-gray-100":!t.selectedCount,"!bg-blue-600 text-white selected":t.selectedCount,"opacity-50":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(Q.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["font-bold transition-all",{"!bg-gray-100 !pl-5":!t.selectedCount,"!bg-blue-600 text-white !pl-4":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",k4,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",C4,[o.createVNode(o.unref(Ay),{class:"w-6 mr-3",onClick:l[0]||(l[0]=s=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(Ut)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",T4,o.toDisplayString(o.unref(Ut)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(Q.QSpinner),{key:2,class:"ml-3",size:"18"})):o.createCommentVNode("",!0)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(o.unref(Q.QTd),{key:s.name,align:s.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(s)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},E4={class:"overflow-hidden w-full"},I4={__name:"ActionTable",props:{name:{type:String,required:!0},label:{type:String,required:!0},selectedRows:{type:Array,required:!0},quasarPagination:{type:Object,required:!0},isLoadingList:Boolean,pagedItems:{type:Object,default:null},isLoadingSummary:Boolean,summary:{type:Object,default:null},columns:{type:Array,required:!0},rowsPerPageOptions:{type:Array,default:()=>[10,25,50,100]}},emits:["update:quasar-pagination","update:selected-rows"],setup(t){const e=t,n=o.ref(null);sf(n);const r=`column-settings-${e.name}`,i=o.ref(Tt(r)||{});function l(){Ct(r,i.value)}return(s,a)=>{var c;return o.openBlock(),o.createElementBlock("div",E4,[o.createVNode(o.unref(Cu)),o.createVNode(o.unref(Q.QTable),{ref_key:"actionTable",ref:n,selected:t.selectedRows,pagination:t.quasarPagination,columns:t.columns,loading:t.isLoadingList,rows:((c=t.pagedItems)==null?void 0:c.data)||[],"binary-state-sort":!1,selection:"multiple","rows-per-page-options":t.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:"blue-600","onUpdate:selected":a[2]||(a[2]=u=>s.$emit("update:selected-rows",u)),"onUpdate:pagination":()=>{},onRequest:a[3]||(a[3]=u=>s.$emit("update:quasar-pagination",{...u.pagination,__sort:o.unref(af)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(s.$slots,"empty",{},()=>[o.createVNode(_f,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])])]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(mf,{label:t.label,"item-count":((u=t.summary)==null?void 0:u.count)||0,"selected-count":t.selectedRows.length,loading:t.isLoadingSummary,summary:t.summary,columns:t.columns,onClear:a[0]||(a[0]=d=>s.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])]}),"header-cell":o.withCtx(u=>[o.createVNode(o.unref(ff),{modelValue:i.value,"onUpdate:modelValue":[a[1]||(a[1]=d=>i.value=d),l],"row-props":u,name:t.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(df,{key:u.key,"row-props":u,settings:i.value[u.col.name]},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{columnName:u.col.name,row:u.row,value:u.value})]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","rows-per-page-options"])])}}},v4={class:"flex space-x-2"},N4=["innerHTML"],vl={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(r){if(r===null||r===""||r===void 0)return"";switch(e.type){case"NUMBER":return Ut(r);case"CURRENCY":return Qo(r);case"DATE":return Je(r);case"DATETIME":return gn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",v4,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,image:t.value,class:"w-24"},null,8,["image"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,l=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-"+l.id,image:l,class:"w-24 mb-2"},null,8,["image"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,N4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},B4={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},F4={class:"flex-grow text-sm w-3/5 overflow-auto"},D4={class:"flex flex-nowrap items-center mt-4"},O4={class:"bg-red-200 line-through p-2"},$4={class:"bg-emerald-200 ml-2.5 p-2"},A4={class:"ml-4 text-sm w-2/5"},P4=["href"],M4={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=o.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(r,i)=>(o.openBlock(),o.createElementBlock("div",B4,[o.createElementVNode("div",F4,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",D4,[o.createElementVNode("div",O4,[o.createVNode(o.unref(vl),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",$4,[o.createVNode(o.unref(vl),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",A4,[t.item.user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,o.toDisplayString(t.item.user.name),1),o.createElementVNode("div",null,o.toDisplayString(t.item.user.email),1)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",null,o.toDisplayString(t.item.account),1),o.createElementVNode("div",null,[t.item.audit_request_id?(o.openBlock(),o.createElementBlock("a",{key:0,href:n.value,target:"_blank"},o.toDisplayString(o.unref(gn)(t.item.timestamp)),9,P4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(gn)(t.item.timestamp)),1)],64))])])]))}},V4=["onClick"],L4={key:0,class:"flex-shrink-0"},U4={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=o.computed(()=>e.items.filter(r=>!r.hidden));return(r,i)=>{const l=o.resolveComponent("QTooltip"),s=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+a.label,class:"nav-menu-item-box"},[o.createElementVNode("div",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",a.class||t.itemClass]),onClick:a.onClick},[a.icon?(o.openBlock(),o.createElementBlock("div",L4,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.icon),{class:o.normalizeClass(["nav-icon",a.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",a.labelClass])},o.toDisplayString(a.label),3)),t.collapsed?(o.openBlock(),o.createBlock(l,o.normalizeProps(o.mergeProps({key:2},a.tooltip)),{default:o.withCtx(()=>{var c;return[o.createTextVNode(o.toDisplayString(((c=a.tooltip)==null?void 0:c.text)||a.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,V4),a.separator?(o.openBlock(),o.createBlock(s,{key:"separator-"+a.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},hf={__name:"PanelsDrawerPanels",props:{activePanel:{type:String,default:null},panels:{type:Array,required:!0}},setup(t){return(e,n)=>{const r=o.resolveComponent("QTabPanel"),i=o.resolveComponent("QTabPanels");return o.openBlock(),o.createBlock(i,{"model-value":t.activePanel,class:"overflow-y-auto bg-gray-100 h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,l=>(o.openBlock(),o.createBlock(r,{key:l.name,name:l.name},{default:o.withCtx(()=>[l.vnode?(o.openBlock(),o.createBlock(o.unref(En),{key:0,vnode:l.vnode},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},pf=ut({__name:"PanelsDrawerTabs",props:{modelValue:{type:String,default:"general"},panels:{type:Array,required:!0}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(r,{"model-value":t.modelValue,vertical:"",align:"left",class:o.normalizeClass(e.cls["panel-tabs"]),"no-caps":"","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,i=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.enabled===void 0||i.enabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.tabVnode?(o.openBlock(),o.createBlock(o.unref(En),{key:i.name,vnode:i.tabVnode(t.modelValue),"is-active":t.modelValue===i.name,name:i.name,label:i.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(Q.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}},[["__cssModules",{cls:{"!visible":"_!visible_1u643_1",visible:"_visible_1u643_1",collapse:"_collapse_1u643_1",static:"_static_1u643_1",absolute:"_absolute_1u643_1",relative:"_relative_1u643_1",sticky:"_sticky_1u643_1","bottom-1":"_bottom-1_1u643_1","left-0":"_left-0_1u643_1","right-0":"_right-0_1u643_1","right-1":"_right-1_1u643_1","right-4":"_right-4_1u643_1","top-0":"_top-0_1u643_1","top-1":"_top-1_1u643_1","top-4":"_top-4_1u643_1","m-2":"_m-2_1u643_1","m-4":"_m-4_1u643_1","mx-1":"_mx-1_1u643_1","mx-4":"_mx-4_1u643_1","mx-auto":"_mx-auto_1u643_1","my-2":"_my-2_1u643_1","!mr-1":"_!mr-1_1u643_1","mb-2":"_mb-2_1u643_1","mb-4":"_mb-4_1u643_1","ml-1":"_ml-1_1u643_1","ml-2":"_ml-2_1u643_1","ml-2.5":"_ml-2.5_1u643_1","ml-3":"_ml-3_1u643_1","ml-4":"_ml-4_1u643_1","ml-5":"_ml-5_1u643_1","ml-[-.2em]":"_ml-[-.2em]_1u643_1","mr-1":"_mr-1_1u643_1","mr-2":"_mr-2_1u643_1","mr-3":"_mr-3_1u643_1","mt-1":"_mt-1_1u643_1","mt-2":"_mt-2_1u643_1","mt-3":"_mt-3_1u643_1","mt-4":"_mt-4_1u643_1",block:"_block_1u643_1","inline-block":"_inline-block_1u643_1",inline:"_inline_1u643_1",flex:"_flex_1u643_1",table:"_table_1u643_1",hidden:"_hidden_1u643_1","h-10":"_h-10_1u643_1","h-4":"_h-4_1u643_1","h-5":"_h-5_1u643_1","h-8":"_h-8_1u643_1","h-full":"_h-full_1u643_1","max-h-full":"_max-h-full_1u643_1","w-16":"_w-16_1u643_1","w-2/5":"_w-2/5_1u643_1","w-24":"_w-24_1u643_1","w-3":"_w-3_1u643_1","w-3/5":"_w-3/5_1u643_1","w-32":"_w-32_1u643_1","w-4":"_w-4_1u643_1","w-48":"_w-48_1u643_1","w-5":"_w-5_1u643_1","w-6":"_w-6_1u643_1","w-7":"_w-7_1u643_1","w-72":"_w-72_1u643_1","w-8":"_w-8_1u643_1","w-96":"_w-96_1u643_1","w-[13.5rem]":"_w-[13.5rem]_1u643_1","w-[35.5rem]":"_w-[35.5rem]_1u643_1","w-[6.5rem]":"_w-[6.5rem]_1u643_1","w-full":"_w-full_1u643_1","!min-w-0":"_!min-w-0_1u643_1","max-w-[50em]":"_max-w-[50em]_1u643_1","max-w-full":"_max-w-full_1u643_1","flex-shrink-0":"_flex-shrink-0_1u643_1","flex-grow":"_flex-grow_1u643_1",grow:"_grow_1u643_1","rotate-180":"_rotate-180_1u643_1",transform:"_transform_1u643_1","cursor-ew-resize":"_cursor-ew-resize_1u643_1","cursor-move":"_cursor-move_1u643_1","cursor-not-allowed":"_cursor-not-allowed_1u643_1","cursor-ns-resize":"_cursor-ns-resize_1u643_1","cursor-pointer":"_cursor-pointer_1u643_1",resize:"_resize_1u643_1","flex-col":"_flex-col_1u643_1","flex-nowrap":"_flex-nowrap_1u643_1","items-center":"_items-center_1u643_1","items-stretch":"_items-stretch_1u643_1","justify-start":"_justify-start_1u643_1","justify-end":"_justify-end_1u643_1","justify-center":"_justify-center_1u643_1","justify-between":"_justify-between_1u643_1","gap-y-0":"_gap-y-0_1u643_1","gap-y-1":"_gap-y-1_1u643_1","space-x-1":"_space-x-1_1u643_1","space-x-2":"_space-x-2_1u643_1","self-center":"_self-center_1u643_1","overflow-auto":"_overflow-auto_1u643_1","overflow-hidden":"_overflow-hidden_1u643_1","overflow-y-auto":"_overflow-y-auto_1u643_20","overflow-x-hidden":"_overflow-x-hidden_1u643_1","scroll-smooth":"_scroll-smooth_1u643_1","overflow-ellipsis":"_overflow-ellipsis_1u643_1","whitespace-nowrap":"_whitespace-nowrap_1u643_1",rounded:"_rounded_1u643_1","rounded-2xl":"_rounded-2xl_1u643_1","rounded-lg":"_rounded-lg_1u643_1","rounded-md":"_rounded-md_1u643_1","!rounded-l-none":"_!rounded-l-none_1u643_1","!rounded-r-none":"_!rounded-r-none_1u643_1","rounded-b-lg":"_rounded-b-lg_1u643_1","rounded-t-lg":"_rounded-t-lg_1u643_1","rounded-t-md":"_rounded-t-md_1u643_1","!border-0":"_!border-0_1u643_1",border:"_border_1u643_1","border-b":"_border-b_1u643_1","border-l":"_border-l_1u643_1","border-l-0":"_border-l-0_1u643_1","border-r":"_border-r_1u643_1","border-t":"_border-t_1u643_1","border-solid":"_border-solid_1u643_1","border-dashed":"_border-dashed_1u643_1","border-blue-600":"_border-blue-600_1u643_1","border-blue-700":"_border-blue-700_1u643_1","border-gray-200":"_border-gray-200_1u643_1","border-gray-300":"_border-gray-300_1u643_1","border-slate-200":"_border-slate-200_1u643_1","!bg-blue-600":"_!bg-blue-600_1u643_1","!bg-gray-100":"_!bg-gray-100_1u643_1","bg-blue-200":"_bg-blue-200_1u643_1","bg-blue-600":"_bg-blue-600_1u643_1","bg-emerald-200":"_bg-emerald-200_1u643_1","bg-gray-100":"_bg-gray-100_1u643_1","bg-gray-200":"_bg-gray-200_1u643_1","bg-gray-400":"_bg-gray-400_1u643_1","bg-gray-500":"_bg-gray-500_1u643_1","bg-green-300":"_bg-green-300_1u643_1","bg-red-200":"_bg-red-200_1u643_1","bg-red-300":"_bg-red-300_1u643_1","bg-red-900":"_bg-red-900_1u643_1","bg-slate-100":"_bg-slate-100_1u643_1","bg-slate-200":"_bg-slate-200_1u643_1","bg-transparent":"_bg-transparent_1u643_1","bg-white":"_bg-white_1u643_1","bg-yellow-300":"_bg-yellow-300_1u643_1","!p-1":"_!p-1_1u643_1","!p-2":"_!p-2_1u643_1","p-0":"_p-0_1u643_1","p-1":"_p-1_1u643_1","p-2":"_p-2_1u643_1","p-3":"_p-3_1u643_1","p-4":"_p-4_1u643_1","!py-0":"_!py-0_1u643_1","px-1":"_px-1_1u643_1","px-12":"_px-12_1u643_1","px-2":"_px-2_1u643_1","px-2.5":"_px-2.5_1u643_1","px-4":"_px-4_1u643_1","px-6":"_px-6_1u643_1","px-8":"_px-8_1u643_1","py-1":"_py-1_1u643_1","py-14":"_py-14_1u643_1","py-2":"_py-2_1u643_1","py-2.5":"_py-2.5_1u643_1","py-3":"_py-3_1u643_1","py-4":"_py-4_1u643_1","py-8":"_py-8_1u643_1","!pl-4":"_!pl-4_1u643_1","!pl-5":"_!pl-5_1u643_1","pl-1":"_pl-1_1u643_1","pl-2":"_pl-2_1u643_1","pl-6":"_pl-6_1u643_1","pr-10":"_pr-10_1u643_1","text-left":"_text-left_1u643_1","text-center":"_text-center_1u643_1","text-right":"_text-right_1u643_1","!text-xs":"_!text-xs_1u643_1","text-[1rem]":"_text-[1rem]_1u643_1","text-sm":"_text-sm_1u643_1","text-xs":"_text-xs_1u643_1","font-bold":"_font-bold_1u643_1","font-medium":"_font-medium_1u643_1","font-normal":"_font-normal_1u643_1","font-semibold":"_font-semibold_1u643_1",uppercase:"_uppercase_1u643_1","leading-[1.2rem]":"_leading-[1.2rem]_1u643_1","!text-green-900":"_!text-green-900_1u643_1","!text-red-900":"_!text-red-900_1u643_1","!text-white":"_!text-white_1u643_1","!text-yellow-900":"_!text-yellow-900_1u643_1","text-black":"_text-black_1u643_1","text-blue-600":"_text-blue-600_1u643_1","text-blue-900":"_text-blue-900_1u643_1","text-gray-300":"_text-gray-300_1u643_1","text-gray-400":"_text-gray-400_1u643_1","text-gray-500":"_text-gray-500_1u643_1","text-gray-600":"_text-gray-600_1u643_1","text-gray-700":"_text-gray-700_1u643_1","text-red-400":"_text-red-400_1u643_1","text-red-900":"_text-red-900_1u643_1","text-white":"_text-white_1u643_1","text-yellow-600":"_text-yellow-600_1u643_1","text-zinc-500":"_text-zinc-500_1u643_1","text-zinc-800":"_text-zinc-800_1u643_1","line-through":"_line-through_1u643_1","opacity-20":"_opacity-20_1u643_1","opacity-50":"_opacity-50_1u643_1","opacity-70":"_opacity-70_1u643_1","shadow-none":"_shadow-none_1u643_1","outline-none":"_outline-none_1u643_1",outline:"_outline_1u643_1",filter:"_filter_1u643_1",transition:"_transition_1u643_1","transition-all":"_transition-all_1u643_1","duration-300":"_duration-300_1u643_1","q-tab":"_q-tab_1u643_4","q-tab-panels":"_q-tab-panels_1u643_8","q-panel":"_q-panel_1u643_11",scroll:"_scroll_1u643_14","q-tab-panel":"_q-tab-panel_1u643_8","q-toolbar":"_q-toolbar_1u643_24","q-notification__actions":"_q-notification__actions_1u643_29",app:"_app_1u643_1","main-layout":"_main-layout_1u643_1","is-disabled":"_is-disabled_1u643_45","disable-all-transitions":"_disable-all-transitions_1u643_50","v-enter-active":"_v-enter-active_1u643_54","v-leave-active":"_v-leave-active_1u643_55","v-enter-from":"_v-enter-from_1u643_59","v-leave-to":"_v-leave-to_1u643_60","panel-tabs":"_panel-tabs_1u643_64","hover:bg-blue-200":"_hover:bg-blue-200_1u643_1","hover:bg-gray-200":"_hover:bg-gray-200_1u643_1","hover:bg-red-200":"_hover:bg-red-200_1u643_1","hover:bg-slate-200":"_hover:bg-slate-200_1u643_1","hover:text-blue-500":"_hover:text-blue-500_1u643_1","hover:text-blue-600":"_hover:text-blue-600_1u643_1","hover:opacity-100":"_hover:opacity-100_1u643_1","focus:bg-blue-200":"_focus:bg-blue-200_1u643_1"}}]]),R4={class:"flex flex-col flex-nowrap h-full"},z4={class:"flex items-center px-6 py-4 border-b"},q4={class:"flex-grow"},G4={class:"flex-grow overflow-hidden h-full"},Z4={class:"flex items-stretch flex-nowrap h-full"},H4={class:"border-r w-[13.5rem] overflow-y-auto"},W4={key:0,class:"border-l overflow-y-auto"},j4={__name:"PanelsDrawer",props:{modelValue:{type:String,default:null},panelsClass:{type:[Object,String],default:"w-[35.5rem]"},panels:{type:Array,required:!0}},emits:["update:model-value","close"],setup(t){const e=t,n=o.ref(e.modelValue);return o.watch(()=>e.modelValue,r=>n.value=r),(r,i)=>{const l=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Di),{position:"right",show:!0,overlay:"","content-class":"h-full",title:"","onUpdate:show":i[3]||(i[3]=s=>r.$emit("close"))},{default:o.withCtx(()=>[o.createElementVNode("div",R4,[o.createElementVNode("div",z4,[o.createElementVNode("div",q4,[o.renderSlot(r.$slots,"header")]),o.createElementVNode("div",null,[o.createVNode(l,{onClick:i[0]||(i[0]=s=>r.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(ro),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",G4,[o.createElementVNode("div",Z4,[o.createElementVNode("div",H4,[o.createVNode(o.unref(pf),{modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=s=>n.value=s),i[2]||(i[2]=s=>r.$emit("update:model-value",s))],panels:t.panels},null,8,["modelValue","panels"])]),o.createVNode(o.unref(hf),{panels:t.panels,"active-panel":n.value,class:o.normalizeClass(t.panelsClass)},null,8,["panels","active-panel","class"]),r.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",W4,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Y4={name:"quasar-ui-danx",version:"0.3.25",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"dist/danx.es.js",module:"dist/danx.es.js",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},devDependencies:{"@quasar/extras":"^1.16.4","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.0.0"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:gf}=Y4;function Q4(t){console.log(`Installing Danx UI ${gf}... Nothing to do really.`)}x.ActionMenu=uf,x.ActionTable=I4,x.ActionTableColumn=df,x.ActionTableHeaderColumn=ff,x.ActionTableLayout=h4,x.ActionVnode=Cu,x.AddressFormat=nx,x.AuditHistoryItem=M4,x.AuditHistoryItemValue=vl,x.BadgeTab=gx,x.BooleanField=wl,x.CaretDownIcon=cu,x.CollapsableFiltersSidebar=W2,x.CollapsableSidebar=Su,x.ColumnListItem=Ni,x.ColumnSettingsDialog=R2,x.ConfirmDialog=tr,x.ConfirmPasswordField=X2,x.ContentDrawer=Di,x.DateField=kl,x.DateRangeField=Cl,x.DateTimeField=lw,x.DateTimePicker=Tl,x.DragAndDrop=Bi,x.DragHandleDotsIcon=uu,x.DragHandleIcon=du,x.EditableDiv=sw,x.EmptyTableState=_f,x.ExportButton=wb,x.FieldLabel=nn,x.FilePreview=Tn,x.FileUpload=eo,x.FileUploadButton=cw,x.FilterFieldItem=rf,x.FilterFieldList=of,x.FilterIcon=fu,x.FilterListToggle=lf,x.FilterToolbarLayout=t4,x.FilterableField=Il,x.FlashMessages=Ze,x.FlatListFormat=rx,x.FullScreenCarouselDialog=bu,x.FullScreenDialog=Ab,x.GpsCoordinatesFormat=lx,x.HandleDraggable=au,x.IconWithTextFormat=ax,x.ImageIcon=_u,x.IndicatorTab=xx,x.InfoDialog=xu,x.InlineDateTimeField=fw,x.InputDialog=Lb,x.IntegerField=Hd,x.InteractiveTooltip=mx,x.LabelValueBlock=Wd,x.LabelValueFormat=ux,x.LabeledInput=Sl,x.ListDragAndDrop=qd,x.ListItemDraggable=Gd,x.ListTransition=Iu,x.MultiFileField=jd,x.MultiKeywordField=Yd,x.NavigationMenu=U4,x.NewPasswordField=yw,x.NumberField=pr,x.NumberRangeField=xo,x.PanelsDrawer=j4,x.PanelsDrawerPanels=hf,x.PanelsDrawerTabs=pf,x.PdfIcon=mu,x.PercentIcon=hu,x.PopoverMenu=Eu,x.PreviousNextControls=Cb,x.RefreshButton=Sb,x.RenderComponent=Tu,x.RenderVnode=En,x.RenderedForm=u4,x.SelectDrawer=kw,x.SelectField=gr,x.SelectWithChildrenField=Qd,x.SingleFileField=Xd,x.SkipNextIcon=pu,x.SkipPreviousIcon=gu,x.SlideTransition=wx,x.StaggeredListTransition=P2,x.SvgImg=wu,x.TableSummaryRow=mf,x.TextField=bo,x.TitleColumnFormat=Zd,x.TrashIcon=Fi,x.VisibleColumnsToggleButtons=H2,x.WarningIcon=yu,x.WysiwygField=nf,x.XIcon=ro,x.activeActionVnode=$t,x.addHotkey=my,x.applyCssVars=by,x.buildCssVars=vi,x.centerTruncate=$1,x.configure=yf,x.danxOptions=st,x.dbDateTime=Yo,x.diffInDays=P1,x.download=Lr,x.downloadFile=M1,x.downloadFileResponse=ha,x.fCurrency=Qo,x.fDate=Je,x.fDateTime=jo,x.fLocalizedDateTime=gn,x.fNumber=Ut,x.fPercent=ma,x.fPhone=A1,x.fQDate=D1,x.fSecondsToTime=O1,x.fetchResourceListWithSelected=yy,x.getFilterFromUrl=cf,x.getItem=Tt,x.getResponseHeader=Xo,x.getUrlParam=tu,x.incrementName=Ol,x.install=Q4,x.listen=hy,x.localizedDateTime=Ho,x.mapSortBy=af,x.metersToMiles=Ff,x.milesToMeters=Df,x.minmax=Bf,x.notify=If,x.parseCoords=Of,x.parseDateTime=Xn,x.parseQDate=Vr,x.parseQDateTime=Wo,x.registerHotkeys=gy,x.registerStickyScrolling=sf,x.remoteDateTime=_a,x.remove=Un,x.replace=So,x.request=Ii,x.resolveFileLocation=Qc,x.setItem=Ct,x.sleep=Dl,x.uniqueBy=Nf,x.unlisten=py,x.useActions=vf,x.useCompatibility=Pl,x.useListControls=p4,x.useMultiFileUpload=Jc,x.useSingleFileUpload=nu,x.useTableColumns=g4,x.version=gf,x.waitForRef=ko,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
22
22
|
//# sourceMappingURL=danx.umd.js.map
|