quasar-ui-danx 0.2.27 → 0.2.28

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 yd,Nt,On,os,Yt,xd,ss,u2=function(){return typeof window<"u"},ct={},Qt=180/Math.PI,An=Math.PI/180,$n=Math.atan2,bd=1e8,ls=/([A-Z])/g,d2=/(left|right|width|margin|padding|x)/i,f2=/[\s,\(]\S/,tt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},as=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},_2=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)},m2=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)},h2=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},wd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},kd=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},p2=function(e,n,r){return e.style[n]=r},g2=function(e,n,r){return e.style.setProperty(n,r)},y2=function(e,n,r){return e._gsap[n]=r},x2=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},b2=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},w2=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},Q="transform",Ie=Q+"Origin",k2=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in ct&&s){if(this.tfm=this.tfm||{},e!=="transform")e=tt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=ut(i,a)}):this.tfm[e]=l.x?l[e]:ut(i,e),e===Ie&&(this.tfm.zOrigin=l.zOrigin);else return tt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(Q)>=0)return;l.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ie,n,"")),e=Q}(s||n)&&this.props.push(e,n,s[e])},Sd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},S2=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,l;for(s=0;s<e.length;s+=3)e[s+1]?n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(ls,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)i[l]=this.tfm[l];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=ss(),(!s||!s.isStart)&&!r[Q]&&(Sd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Td=function(e,n){var r={target:e,props:[],revert:S2,save:k2};return e._gsap||Ee.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Cd,cs=function(e,n){var r=Nt.createElementNS?Nt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Nt.createElement(e);return r&&r.style?r:Nt.createElement(e)},nt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ls,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Pn(n)||n,1)||""},Ed="O,Moz,ms,Ms,Webkit".split(","),Pn=function(e,n,r){var i=n||Yt,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Ed[l]+e in s););return l<0?null:(l===3?"ms":l>=0?Ed[l]:"")+e},us=function(){u2()&&window.document&&(yd=window,Nt=yd.document,On=Nt.documentElement,Yt=cs("div")||{style:{}},cs("div"),Q=Pn(Q),Ie=Q+"Origin",Yt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Cd=!!Pn("perspective"),ss=Ee.core.reverting,os=1)},ds=function t(e){var n=cs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText,l;if(On.appendChild(n),n.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(l=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),On.removeChild(n),this.style.cssText=s,l},Id=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Nd=function(e){var n;try{n=e.getBBox()}catch{n=ds.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===ds||(n=ds.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Id(e,["x","cx","x1"])||0,y:+Id(e,["y","cy","y1"])||0,width:0,height:0}:n},Fd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Nd(e))},Xt=function(e,n){if(n){var r=e.style,i;n in ct&&n!==Ie&&(n=Q),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ls,"-$1").toLowerCase())):r.removeAttribute(n)}},Ft=function(e,n,r,i,s,l){var a=new Ce(e._pt,n,r,0,1,l?kd:wd);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Bd={deg:1,rad:1,turn:1},T2={grid:1,flex:1},Bt=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=Yt.style,c=d2.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===l||!s||Bd[i]||Bd[l])return s;if(l!=="px"&&!_&&(s=t(e,n,r,"px")),w=e.getCTM&&Fd(e),(m||l==="%")&&(ct[n]||~n.indexOf("adius")))return p=w?e.getBBox()[c?"width":"height"]:e[d],ne(m?s/p*f:s/100*p);if(a[c?"width":"height"]=f+(_?l:i),h=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Nt||!h.appendChild)&&(h=Nt.body),g=h._gsap,g&&m&&g.width&&c&&g.time===Ae.time&&!g.uncache)return ne(s/g.width*f);if(m&&(n==="height"||n==="width")){var b=e.style[n];e.style[n]=f+i,p=e[d],b?e.style[n]=b:Xt(e,n)}else(m||l==="%")&&!T2[nt(h,"display")]&&(a.position=nt(e,"position")),h===e&&(a.position="static"),h.appendChild(Yt),p=Yt[d],h.removeChild(Yt),a.position="absolute";return c&&m&&(g=zt(h),g.time=Ae.time,g.width=h[d]),ne(_?p*s/f:p&&s?f/p*s:0)},ut=function(e,n,r,i){var s;return os||us(),n in tt&&n!=="transform"&&(n=tt[n],~n.indexOf(",")&&(n=n.split(",")[0])),ct[n]&&n!=="transform"?(s=dr(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:hi(nt(e,Ie))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=mi[n]&&mi[n](e,n,r)||nt(e,n)||$u(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Bt(e,n,s,r)+r:s},C2=function(e,n,r,i){if(!r||r==="none"){var s=Pn(n,e,1),l=s&&nt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=nt(e,"borderTopColor"))}var a=new Ce(this._pt,e.style,n,0,1,md),c=0,u=0,d,f,_,m,p,h,g,w,b,S,C,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(h=e.style[n],e.style[n]=i,i=nt(e,n)||i,h?e.style[n]=h:Xt(e,n)),d=[r,i],id(d),r=d[0],i=d[1],_=r.match(En)||[],T=i.match(En)||[],T.length){for(;f=En.exec(i);)g=f[0],b=i.substring(c,f.index),p?p=(p+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(p=1),g!==(h=_[u++]||"")&&(m=parseFloat(h)||0,C=h.substr((m+"").length),g.charAt(1)==="="&&(g=In(m,g)+C),w=parseFloat(g),S=g.substr((w+"").length),c=En.lastIndex-S.length,S||(S=S||Fe.units[n]||C,c===i.length&&(i+=S,a.e+=S)),C!==S&&(m=Bt(e,n,h,S)||0),a._pt={_next:a._pt,p:b||u===1?b:",",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"?kd:wd;return Iu.test(i)&&(a.e=0),this._pt=a,a},Dd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},E2=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]=Dd[r]||r,n[1]=Dd[i]||i,n.join(" ")},I2=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,l=r._gsap,a,c,u;if(s==="all"||s===!0)i.cssText="",c=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],ct[a]&&(c=1,a=a==="transformOrigin"?Ie:Q),Xt(r,a);c&&(Xt(r,Q),l&&(l.svg&&r.removeAttribute("transform"),dr(r,1),l.uncache=1,Sd(i)))}},mi={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Ce(e._pt,n,r,0,0,I2);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ur=[1,0,0,1,0,0],Od={},Ad=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},$d=function(e){var n=nt(e,Q);return Ad(n)?ur:n.substr(7).match(Eu).map(ne)},fs=function(e,n){var r=e._gsap||zt(e),i=e.style,s=$d(e),l,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?ur:s):(s===ur&&!e.offsetParent&&e!==On&&!r.svg&&(c=i.display,i.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,On.appendChild(e)),s=$d(e),c?i.display=c:Xt(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):On.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},_s=function(e,n,r,i,s,l){var a=e._gsap,c=s||fs(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],b=c[5],S=n.split(" "),C=parseFloat(S[0])||0,T=parseFloat(S[1])||0,k,y,E,I;r?c!==ur&&(y=m*g-p*h)&&(E=C*(g/y)+T*(-h/y)+(h*b-g*w)/y,I=C*(-p/y)+T*(m/y)-(m*b-p*w)/y,C=E,T=I):(k=Nd(e),C=k.x+(~S[0].indexOf("%")?C/100*k.width:C),T=k.y+(~(S[1]||S[0]).indexOf("%")?T/100*k.height:T)),i||i!==!1&&a.smooth?(w=C-u,b=T-d,a.xOffset=f+(w*m+b*h)-w,a.yOffset=_+(w*p+b*g)-b):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",l&&(Ft(l,a,"xOrigin",u,C),Ft(l,a,"yOrigin",d,T),Ft(l,a,"xOffset",f,a.xOffset),Ft(l,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},dr=function(e,n){var r=e._gsap||new ad(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=nt(e,Ie)||"0",d,f,_,m,p,h,g,w,b,S,C,T,k,y,E,I,$,U,z,j,ae,se,ee,le,$e,Mn,Dt,de,it,hr,We,dt;return d=f=_=h=g=w=b=S=C=0,m=p=1,r.svg=!!(e.getCTM&&Fd(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Q]=(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[Q]!=="none"?c[Q]:"")),i.scale=i.rotate=i.translate="none"),y=fs(e,r.svg),r.svg&&(r.uncache?($e=e.getBBox(),u=r.xOrigin-$e.x+"px "+(r.yOrigin-$e.y)+"px",le=""):le=!n&&e.getAttribute("data-svg-origin"),_s(e,le||u,!!le||r.originIsAbsolute,r.smooth!==!1,y)),T=r.xOrigin||0,k=r.yOrigin||0,y!==ur&&(U=y[0],z=y[1],j=y[2],ae=y[3],d=se=y[4],f=ee=y[5],y.length===6?(m=Math.sqrt(U*U+z*z),p=Math.sqrt(ae*ae+j*j),h=U||z?$n(z,U)*Qt:0,b=j||ae?$n(j,ae)*Qt+h:0,b&&(p*=Math.abs(Math.cos(b*An))),r.svg&&(d-=T-(T*U+k*j),f-=k-(T*z+k*ae))):(dt=y[6],hr=y[7],Dt=y[8],de=y[9],it=y[10],We=y[11],d=y[12],f=y[13],_=y[14],E=$n(dt,it),g=E*Qt,E&&(I=Math.cos(-E),$=Math.sin(-E),le=se*I+Dt*$,$e=ee*I+de*$,Mn=dt*I+it*$,Dt=se*-$+Dt*I,de=ee*-$+de*I,it=dt*-$+it*I,We=hr*-$+We*I,se=le,ee=$e,dt=Mn),E=$n(-j,it),w=E*Qt,E&&(I=Math.cos(-E),$=Math.sin(-E),le=U*I-Dt*$,$e=z*I-de*$,Mn=j*I-it*$,We=ae*$+We*I,U=le,z=$e,j=Mn),E=$n(z,U),h=E*Qt,E&&(I=Math.cos(E),$=Math.sin(E),le=U*I+z*$,$e=se*I+ee*$,z=z*I-U*$,ee=ee*I-se*$,U=le,se=$e),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,w=180-w),m=ne(Math.sqrt(U*U+z*z+j*j)),p=ne(Math.sqrt(ee*ee+dt*dt)),E=$n(se,ee),b=Math.abs(E)>2e-4?E*Qt:0,C=We?1/(We<0?-We:We):0),r.svg&&(le=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Ad(nt(e,Q)),le&&e.setAttribute("transform",le))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(m*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,b+=b<=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)+l,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)+l,r.z=_+l,r.scaleX=ne(m),r.scaleY=ne(p),r.rotation=ne(h)+a,r.rotationX=ne(g)+a,r.rotationY=ne(w)+a,r.skewX=b+a,r.skewY=S+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=hi(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?F2:Cd?Pd:N2,r.uncache=0,r},hi=function(e){return(e=e.split(" "))[0]+" "+e[1]},ms=function(e,n,r){var i=ye(n);return ne(parseFloat(n)+parseFloat(Bt(e,"x",r+"px",i)))+i},N2=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Pd(e,n)},Kt="0deg",fr="0px",Jt=") ",Pd=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,l=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,b=r.target,S=r.zOrigin,C="",T=w==="auto"&&e&&e!==1||w===!0;if(S&&(f!==Kt||d!==Kt)){var k=parseFloat(d)*An,y=Math.sin(k),E=Math.cos(k),I;k=parseFloat(f)*An,I=Math.cos(k),l=ms(b,l,y*I*-S),a=ms(b,a,-Math.sin(k)*-S),c=ms(b,c,E*I*-S+S)}g!==fr&&(C+="perspective("+g+Jt),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(T||l!==fr||a!==fr||c!==fr)&&(C+=c!==fr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+Jt),u!==Kt&&(C+="rotate("+u+Jt),d!==Kt&&(C+="rotateY("+d+Jt),f!==Kt&&(C+="rotateX("+f+Jt),(_!==Kt||m!==Kt)&&(C+="skew("+_+", "+m+Jt),(p!==1||h!==1)&&(C+="scale("+p+", "+h+Jt),b.style[Q]=C||"translate(0, 0)"},F2=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,l=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,b=r.forceCSS,S=parseFloat(l),C=parseFloat(a),T,k,y,E,I;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=An,u*=An,T=Math.cos(c)*f,k=Math.sin(c)*f,y=Math.sin(c-u)*-_,E=Math.cos(c-u)*_,u&&(d*=An,I=Math.tan(u-d),I=Math.sqrt(1+I*I),y*=I,E*=I,d&&(I=Math.tan(d),I=Math.sqrt(1+I*I),T*=I,k*=I)),T=ne(T),k=ne(k),y=ne(y),E=ne(E)):(T=f,E=_,k=y=0),(S&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(S=Bt(m,"x",l,"px"),C=Bt(m,"y",a,"px")),(p||h||g||w)&&(S=ne(S+p-(p*T+h*y)+g),C=ne(C+h-(p*k+h*E)+w)),(i||s)&&(I=m.getBBox(),S=ne(S+i/100*I.width),C=ne(C+s/100*I.height)),I="matrix("+T+","+k+","+y+","+E+","+S+","+C+")",m.setAttribute("transform",I),b&&(m.style[Q]=I)},B2=function(e,n,r,i,s){var l=360,a=ce(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?Qt:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=s.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),f==="cw"&&u<0?u=(u+l*bd)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*bd)%l-~~(u/l)*l)),e._pt=_=new Ce(e._pt,n,r,i,u,_2),_.e=d,_.u="deg",e._props.push(r),_},Md=function(e,n){for(var r in n)e[r]=n[r];return e},D2=function(e,n,r){var i=Md({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,_,m,p;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[Q]=n,a=dr(r,1),Xt(r,Q),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Q],l[Q]=n,a=dr(r,1),l[Q]=u);for(c in ct)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(m=ye(u),p=ye(d),f=m!==p?Bt(r,c,u,p):parseFloat(u),_=parseFloat(d),e._pt=new Ce(e._pt,a,c,f,_-f,as),e._pt.u=p||0,e._props.push(c));Md(a,i)};Te("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",l=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});mi[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=l.map(function(p){return ut(a,p,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},l.forEach(function(p,h){return m[p]=_[h]=_[h]||_[(h-1)/2|0]}),a.init(c,m,f)}});var Ld={name:"css",register:us,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var l=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,p,h,g,w,b,S,C,T,k,y,E;os||us(),this.styles=this.styles||Td(e),E=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(d=n[h],!(De[h]&&cd(h,n,r,i,e,s)))){if(m=typeof d,p=mi[h],m==="function"&&(d=d.call(r,i,e,s),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=ir(d)),p)p(this,e,h,d,r)&&(y=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),d+="",Et.lastIndex=0,Et.test(u)||(g=ye(u),w=ye(d)),w?g!==w&&(u=Bt(e,h,u,w)+w):g&&(d+=g),this.add(a,"setProperty",u,d,i,s,0,0,h),l.push(h),E.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,s):c[h],ce(u)&&~u.indexOf("random(")&&(u=ir(u)),ye(u+"")||u==="auto"||(u+=Fe.units[h]||ye(ut(e,h))||""),(u+"").charAt(1)==="="&&(u=ut(e,h))):u=ut(e,h),_=parseFloat(u),b=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),b&&(d=d.substr(2)),f=parseFloat(d),h in tt&&(h==="autoAlpha"&&(_===1&&ut(e,"visibility")==="hidden"&&f&&(_=0),E.push("visibility",0,a.visibility),Ft(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=tt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in ct,S){if(this.styles.save(h),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||dr(e,n.parseTransform),k=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Ce(this._pt,a,Q,0,1,T.renderTransform,T,0,-1),C.dep=1),h==="scale")this._pt=new Ce(this._pt,T,"scaleY",T.scaleY,(b?In(T.scaleY,b+f):f)-T.scaleY||0,as),this._pt.u=0,l.push("scaleY",h),h+="X";else if(h==="transformOrigin"){E.push(Ie,0,a[Ie]),d=E2(d),T.svg?_s(e,d,0,k,0,this):(w=parseFloat(d.split(" ")[2])||0,w!==T.zOrigin&&Ft(this,T,"zOrigin",T.zOrigin,w),Ft(this,a,h,hi(u),hi(d)));continue}else if(h==="svgOrigin"){_s(e,d,1,k,0,this);continue}else if(h in Od){B2(this,T,h,_,b?In(_,b+d):d);continue}else if(h==="smoothOrigin"){Ft(this,T,"smooth",T.smooth,d);continue}else if(h==="force3D"){T[h]=d;continue}else if(h==="transform"){D2(this,d,e);continue}}else h in a||(h=Pn(h)||h);if(S||(f||f===0)&&(_||_===0)&&!f2.test(d)&&h in a)g=(u+"").substr((_+"").length),f||(f=0),w=ye(d)||(h in Fe.units?Fe.units[h]:g),g!==w&&(_=Bt(e,h,u,w)),this._pt=new Ce(this._pt,S?T:a,h,_,(b?In(_,b+f):f)-_,!S&&(w==="px"||h==="zIndex")&&n.autoRound!==!1?h2:as),this._pt.u=w||0,g!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=m2);else if(h in a)C2.call(this,e,h,u,b?b+d:d);else if(h in e)this.add(e,h,u||e[h],b?b+d:d,i,s);else if(h!=="parseTransform"){Mo(h,d);continue}S||(h in a?E.push(h,0,a[h]):E.push(h,1,u||e[h])),l.push(h)}}y&&hd(this)},render:function(e,n){if(n.tween._time||!ss())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:ut,aliases:tt,getSetter:function(e,n,r){var i=tt[n];return i&&i.indexOf(",")<0&&(n=i),n in ct&&n!==Ie&&(e._gsap.x||ut(e,"x"))?r&&xd===r?n==="scale"?x2:y2:(xd=r||{})&&(n==="scale"?b2:w2):e.style&&!Bo(e.style[n])?p2:~n.indexOf("-")?g2:es(e,n)},core:{_removeProperty:Xt,_getMatrix:fs}};Ee.utils.checkPrefix=Pn,Ee.core.getStyleSaver=Td,function(t,e,n,r){var i=Te(t+","+e+","+n,function(s){ct[s]=1});Te(e,function(s){Fe.units[s]="deg",Od[s]=1}),tt[i[13]]=t+","+e,Te(r,function(s){var l=s.split(":");tt[l[1]]=i[l[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"),Te("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),Ee.registerPlugin(Ld);var hs=Ee.registerPlugin(Ld)||Ee;hs.core.Tween;const O2={__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 s(a,c){if(e.disabled){c();return}hs.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}hs.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:s,onLeave:l},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}};class qd extends Co{constructor(n={}){super({showPlaceholder:!0,...n});R(this,"listPosition",0);R(this,"cursorPosition",0);R(this,"initialPosition",0);R(this,"onPositionChangeCb",null);R(this,"onDragPositionChangeCb",null);R(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 s=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<s.top+s.height/2)break}else if(n.x<s.left+s.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const s=f=>f*5,l=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-l,d=l-(c-r);u>0?i=-s(u):d>0&&(i=s(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 A2={class:"flex items-center"},$2={key:0},P2={class:"flex-grow"},Vd={__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((s,l)=>{if(n("position",s),r.listItems){const a=[...r.listItems];a.splice(s,0,a.splice(l,1)[0]),n("update:list-items",a)}});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",A2,[t.showHandle?(o.openBlock(),o.createElementBlock("div",$2,[o.createVNode(o.unref(pu),{svg:o.unref(iu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",P2,[o.renderSlot(s.$slots,"default")])])],32))}},M2=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),L2={__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 s(u){return!r.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=qn(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){Ye.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=qn(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(hu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[M2,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(To),{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(ku),{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(Vd),{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(To),{column:f,visible:s(f),"is-title":a(f),onVisible:m=>l(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Ud={__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-base"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},q2={"!visible":"_!visible_1r1x4_1",visible:"_visible_1r1x4_1",collapse:"_collapse_1r1x4_1",static:"_static_1r1x4_1",absolute:"_absolute_1r1x4_1",relative:"_relative_1r1x4_1",sticky:"_sticky_1r1x4_1","bottom-1":"_bottom-1_1r1x4_1","left-0":"_left-0_1r1x4_1","right-0":"_right-0_1r1x4_1","right-1":"_right-1_1r1x4_1","right-4":"_right-4_1r1x4_1","top-0":"_top-0_1r1x4_1","top-1":"_top-1_1r1x4_1","top-4":"_top-4_1r1x4_1","m-2":"_m-2_1r1x4_1","m-4":"_m-4_1r1x4_1","mx-1":"_mx-1_1r1x4_1","mx-4":"_mx-4_1r1x4_1","mx-auto":"_mx-auto_1r1x4_1","my-2":"_my-2_1r1x4_1","!mr-1":"_!mr-1_1r1x4_1","mb-2":"_mb-2_1r1x4_1","mb-4":"_mb-4_1r1x4_1","ml-1":"_ml-1_1r1x4_1","ml-2":"_ml-2_1r1x4_1","ml-2.5":"_ml-2.5_1r1x4_1","ml-3":"_ml-3_1r1x4_1","ml-4":"_ml-4_1r1x4_1","ml-5":"_ml-5_1r1x4_1","ml-[-.2em]":"_ml-[-.2em]_1r1x4_1","mr-1":"_mr-1_1r1x4_1","mr-2":"_mr-2_1r1x4_1","mr-3":"_mr-3_1r1x4_1","mt-1":"_mt-1_1r1x4_1","mt-2":"_mt-2_1r1x4_1","mt-3":"_mt-3_1r1x4_1","mt-4":"_mt-4_1r1x4_1",block:"_block_1r1x4_1","inline-block":"_inline-block_1r1x4_1",inline:"_inline_1r1x4_1",flex:"_flex_1r1x4_1",table:"_table_1r1x4_1",hidden:"_hidden_1r1x4_1","h-10":"_h-10_1r1x4_1","h-4":"_h-4_1r1x4_1","h-5":"_h-5_1r1x4_1","h-8":"_h-8_1r1x4_1","h-full":"_h-full_1r1x4_1","max-h-full":"_max-h-full_1r1x4_1","w-16":"_w-16_1r1x4_1","w-2/5":"_w-2/5_1r1x4_1","w-24":"_w-24_1r1x4_1","w-3":"_w-3_1r1x4_1","w-3/5":"_w-3/5_1r1x4_1","w-32":"_w-32_1r1x4_1","w-4":"_w-4_1r1x4_1","w-48":"_w-48_1r1x4_1","w-5":"_w-5_1r1x4_1","w-6":"_w-6_1r1x4_1","w-7":"_w-7_1r1x4_1","w-72":"_w-72_1r1x4_1","w-8":"_w-8_1r1x4_1","w-[13.5rem]":"_w-[13.5rem]_1r1x4_1","w-[35.5rem]":"_w-[35.5rem]_1r1x4_1","w-[6.5rem]":"_w-[6.5rem]_1r1x4_1","w-full":"_w-full_1r1x4_1","!min-w-0":"_!min-w-0_1r1x4_1","max-w-[50em]":"_max-w-[50em]_1r1x4_1","max-w-full":"_max-w-full_1r1x4_1","flex-shrink-0":"_flex-shrink-0_1r1x4_1","flex-grow":"_flex-grow_1r1x4_1",grow:"_grow_1r1x4_1","rotate-180":"_rotate-180_1r1x4_1",transform:"_transform_1r1x4_1","cursor-ew-resize":"_cursor-ew-resize_1r1x4_1","cursor-move":"_cursor-move_1r1x4_1","cursor-not-allowed":"_cursor-not-allowed_1r1x4_1","cursor-ns-resize":"_cursor-ns-resize_1r1x4_1","cursor-pointer":"_cursor-pointer_1r1x4_1",resize:"_resize_1r1x4_1","flex-col":"_flex-col_1r1x4_1","flex-nowrap":"_flex-nowrap_1r1x4_1","items-center":"_items-center_1r1x4_1","items-stretch":"_items-stretch_1r1x4_1","justify-start":"_justify-start_1r1x4_1","justify-end":"_justify-end_1r1x4_1","justify-center":"_justify-center_1r1x4_1","justify-between":"_justify-between_1r1x4_1","gap-y-0":"_gap-y-0_1r1x4_1","gap-y-1":"_gap-y-1_1r1x4_1","space-x-1":"_space-x-1_1r1x4_1","space-x-2":"_space-x-2_1r1x4_1","self-center":"_self-center_1r1x4_1","overflow-auto":"_overflow-auto_1r1x4_1","overflow-hidden":"_overflow-hidden_1r1x4_1","overflow-y-auto":"_overflow-y-auto_1r1x4_16","overflow-x-hidden":"_overflow-x-hidden_1r1x4_1","scroll-smooth":"_scroll-smooth_1r1x4_1","overflow-ellipsis":"_overflow-ellipsis_1r1x4_1","whitespace-nowrap":"_whitespace-nowrap_1r1x4_1",rounded:"_rounded_1r1x4_1","rounded-2xl":"_rounded-2xl_1r1x4_1","rounded-lg":"_rounded-lg_1r1x4_1","rounded-md":"_rounded-md_1r1x4_1","!rounded-l-none":"_!rounded-l-none_1r1x4_1","!rounded-r-none":"_!rounded-r-none_1r1x4_1","rounded-b-lg":"_rounded-b-lg_1r1x4_1","rounded-t-lg":"_rounded-t-lg_1r1x4_1","rounded-t-md":"_rounded-t-md_1r1x4_1","!border-0":"_!border-0_1r1x4_1",border:"_border_1r1x4_1","border-b":"_border-b_1r1x4_1","border-l":"_border-l_1r1x4_1","border-l-0":"_border-l-0_1r1x4_1","border-r":"_border-r_1r1x4_1","border-t":"_border-t_1r1x4_1","border-solid":"_border-solid_1r1x4_1","border-dashed":"_border-dashed_1r1x4_1","border-blue-600":"_border-blue-600_1r1x4_1","border-gray-200":"_border-gray-200_1r1x4_1","border-gray-300":"_border-gray-300_1r1x4_1","!bg-blue-600":"_!bg-blue-600_1r1x4_1","bg-blue-600":"_bg-blue-600_1r1x4_1","bg-gray-100":"_bg-gray-100_1r1x4_1","bg-gray-200":"_bg-gray-200_1r1x4_1","bg-gray-500":"_bg-gray-500_1r1x4_1","bg-green-300":"_bg-green-300_1r1x4_1","bg-red-300":"_bg-red-300_1r1x4_1","bg-slate-100":"_bg-slate-100_1r1x4_1","bg-slate-200":"_bg-slate-200_1r1x4_1","bg-transparent":"_bg-transparent_1r1x4_1","bg-white":"_bg-white_1r1x4_1","bg-yellow-300":"_bg-yellow-300_1r1x4_1","!p-1":"_!p-1_1r1x4_1","!p-2":"_!p-2_1r1x4_1","p-1":"_p-1_1r1x4_1","p-2":"_p-2_1r1x4_1","p-3":"_p-3_1r1x4_1","p-4":"_p-4_1r1x4_1","!py-0":"_!py-0_1r1x4_1","px-1":"_px-1_1r1x4_1","px-12":"_px-12_1r1x4_1","px-2":"_px-2_1r1x4_1","px-2.5":"_px-2.5_1r1x4_1","px-4":"_px-4_1r1x4_1","px-6":"_px-6_1r1x4_1","px-8":"_px-8_1r1x4_1","py-1":"_py-1_1r1x4_1","py-14":"_py-14_1r1x4_1","py-2":"_py-2_1r1x4_1","py-2.5":"_py-2.5_1r1x4_1","py-3":"_py-3_1r1x4_1","py-4":"_py-4_1r1x4_1","py-8":"_py-8_1r1x4_1","!pl-4":"_!pl-4_1r1x4_1","!pl-5":"_!pl-5_1r1x4_1","pl-2":"_pl-2_1r1x4_1","pl-6":"_pl-6_1r1x4_1","pr-10":"_pr-10_1r1x4_1","text-left":"_text-left_1r1x4_1","text-center":"_text-center_1r1x4_1","text-right":"_text-right_1r1x4_1","!text-xs":"_!text-xs_1r1x4_1","text-[1rem]":"_text-[1rem]_1r1x4_1","text-sm":"_text-sm_1r1x4_1","text-xs":"_text-xs_1r1x4_1","font-bold":"_font-bold_1r1x4_1","font-medium":"_font-medium_1r1x4_1","font-normal":"_font-normal_1r1x4_1","font-semibold":"_font-semibold_1r1x4_1",uppercase:"_uppercase_1r1x4_1","leading-[1.2rem]":"_leading-[1.2rem]_1r1x4_1","!text-green-900":"_!text-green-900_1r1x4_1","!text-red-900":"_!text-red-900_1r1x4_1","!text-yellow-900":"_!text-yellow-900_1r1x4_1","text-black":"_text-black_1r1x4_1","text-blue-600":"_text-blue-600_1r1x4_1","text-gray-500":"_text-gray-500_1r1x4_1","text-white":"_text-white_1r1x4_1","line-through":"_line-through_1r1x4_1","opacity-50":"_opacity-50_1r1x4_1","opacity-70":"_opacity-70_1r1x4_1","shadow-none":"_shadow-none_1r1x4_1","outline-none":"_outline-none_1r1x4_1",outline:"_outline_1r1x4_1",filter:"_filter_1r1x4_1",transition:"_transition_1r1x4_1","transition-all":"_transition-all_1r1x4_1","duration-300":"_duration-300_1r1x4_1","q-tab-panels":"_q-tab-panels_1r1x4_4","q-panel":"_q-panel_1r1x4_7",scroll:"_scroll_1r1x4_10","q-tab-panel":"_q-tab-panel_1r1x4_4","q-toolbar":"_q-toolbar_1r1x4_20","q-notification__actions":"_q-notification__actions_1r1x4_25","category-toggle":"_category-toggle_1r1x4_29","has-visible-columns":"_has-visible-columns_1r1x4_32","hover:text-blue-600":"_hover:text-blue-600_1r1x4_1","hover:opacity-100":"_hover:opacity-100_1r1x4_1"},V2={class:"flex items-center flex-nowrap"},U2=["onClick"],R2={class:"text-xs"},v2=kt({__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(""),s=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function l(m){return r.columns.filter(p=>p.category===m)}function a(m){return l(m).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(m){let p=l(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=qn(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",V2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,b=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(_(b))},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(b),class:"mr-2 cb-white-border",onClick:S=>u(l(b),!a(b))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(b),1),o.createVNode(o.unref(ru),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===b}])},null,8,["class"]),o.createVNode(w,{"onUpdate:modelValue":S=>i.value=S?b:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(b),S=>(o.openBlock(),o.createElementBlock("div",{key:S,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(S.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(S.name),class:"mr-3 cb-white-border",size:"20px",color:S.required?"gray-base":"blue-600",disable:S.required,onClick:C=>d(S.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",R2,o.toDisplayString(S.label),1)],8,U2))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:q2}]]),z2={__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(gu),{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(Jd),{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-dark ml-1 text-xs bottom-1 relative"},en={__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,s;return((i=e.field)==null?void 0:i.required_group)||(e.required||(s=e.field)!=null&&s.required?"*":"")});return(i,s)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var l;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),t.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((l=t.field)==null?void 0:l.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",j2,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},ps={__name:"BooleanField",props:{modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate: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,"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(en),{field:t.field,"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","toggle-indeterminate"])}}},G2={for:"first_name",class:"form-label"},Z2={class:"mt-1"},gs={__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",G2,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Z2,[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"])])])}}},H2={__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(gs),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},W2={key:0,class:"font-bold text-xs mb-2"},Y2={class:"flex items-center cursor-pointer"},Q2={class:"font-bold ml-3 hover:text-blue-600"},ys={__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?Xe(Mr(r.modelValue||"0000-00-00")):null),s=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.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",W2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Y2,[o.createVNode(o.unref(Jc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",Q2,[s.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:s.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>s.value=f),l]},null,8,["modelValue"])]),_:1})])}}},X2={key:0,class:"font-bold text-xs mb-2"},K2={class:"flex items-center cursor-pointer"},J2={class:"font-bold ml-3 hover:text-blue-600"},xs={__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:Xe(Ri(a.value.from||"0000-00-00")),to:Xe(Ri(a.value.to||"9999-12-31"))}:{from:Xe(Mr(a.value.from||"0000-00-00")),to:Xe(Mr(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=o.ref(l(r.modelValue));o.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?Xe(u.from)===Xe(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.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",X2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.inline?(o.openBlock(),o.createBlock(f,{key:1,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",K2,[o.createVNode(o.unref(Jc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",J2,[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:s.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>s.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},ew={class:"flex items-center justify-center"},tw={key:0,class:"flex-grow"},bs={__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:()=>zi(Ui(r.modelValue)),set(s){const l=s?zi(ca(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{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":l[3]||(l[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",ew,[t.nullable?(o.openBlock(),o.createElementBlock("div",tw,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":l[4]||(l[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},nw={__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),s=o.ref(r.modelValue);function l(){n("update:model-value",s.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(hn)(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(bs),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=_=>s.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},rw={__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),s=pr(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function l(a){i.value=a.target.innerText,s()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-light focus:bg-blue-light transition duration-300 outline-none",onInput:l},o.toDisplayString(i.value),33))}},iw=["accept","capture"],ow={__name:"FileUploadButton",props:{...W.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,i=t,s=o.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new Kr(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(W.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(Ty),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation?"image/*;capture=camera":void 0,capture:t.geolocation?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,iw)]),_:3},16))}},sw={class:"inline-block"},lw={class:"cursor-pointer py-2 hover:bg-blue-light flex items-center justify-end"},aw={__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,s)=>{const l=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",lw,[o.createTextVNode(o.toDisplayString(o.unref(hn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(Ny),{class:"w-4 font-bold ml-2 text-gray-base"}),o.createVNode(l,{"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(bs),{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"])])])}}},_r={__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(l(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=l(r.modelValue));const s=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function l(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}),qt(u,f)}const a=pr(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=l(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-"+s.value.id,placeholder:s.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":t.hidePrependLabel,"prepend-label":!t.hidePrependLabel}),"onUpdate:modelValue":c},{prepend:o.withCtx(()=>[o.createVNode(o.unref(en),{field:s.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["model-value","data-testid","placeholder","input-class","class"])}}},Rd={__name:"IntegerField",props:{modelValue:{type:[String,Number],required:!0},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(_r),{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"]))}},cw={class:"text-xs font-bold"},vd={__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",cw,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)]))}},uw={key:0,class:"text-sm my-2"},dw={class:"max-w-[50em] flex items-stretch justify-start"},fw={key:1,class:"p-1"},zd={__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:s,onFilesSelected:l,uploadedFiles:a,onClear:c,onRemove:u}=Yc();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-medium":!t.readonly}]),onDragover:f[4]||(f[4]=o.withModifiers(()=>{},["prevent"])),onDrop:f[5]||(f[5]=o.withModifiers((..._)=>o.unref(s)&&o.unref(s)(..._),["prevent"]))},[o.createVNode(o.unref(en),{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",uw,[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-dark",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(l)&&o.unref(l)(..._))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",dw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(Sn),{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(Sn),{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",fw," -- ")):o.createCommentVNode("",!0)])],34))}},mr={__name:"SelectField",props:{...W.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),s=o.ref(null),l=o.ref(!1),a=o.computed(()=>{let k=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(k=[{label:r.placeholder,value:null},...r.options]),k=k.map(y=>{let E=o.isRef(y)?y.value:y;return{label:m(E),value:h(E),selectionLabel:p(E)}}),k}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(k=>k.label.toLocaleLowerCase().indexOf(s.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 k=u.value;return r.multiple||(k=k||k===0?[k]:[]),a.value.filter(y=>{var E;return k.includes(y.value)||k.map(I=>typeof I=="object"&&I.id).includes((E=y.value)==null?void 0:E.id)})}),f=o.computed(()=>r.filterable&&l.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(k){return typeof k=="string"?k:typeof r.optionLabel=="string"?k[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(k):k==null?void 0:k.label}function p(k){return typeof k=="string"?k:typeof r.selectionLabel=="string"?k[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(k):(k==null?void 0:k.selectionLabel)||(k==null?void 0:k.label)}function h(k){if(typeof k=="string")return k;let y=k.value;return typeof r.optionValue=="string"?y=k[r.optionValue]:typeof r.optionValue=="function"&&(y=r.optionValue(k)),y===null?"__null__":y}function g(k){Array.isArray(k)&&(k=k.map(y=>y==="__null__"?null:y)),k=k==="__null__"?null:k,n("update",k),n("update:model-value",k)}const w=o.ref(!1);async function b(k,y){if(!r.filterFn)s.value=k,await o.nextTick(y);else{if(y(),w.value===!1)return;k!==null&&k!==s.value&&(s.value=k,r.filterFn&&await r.filterFn(k))}}function S(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,w.value=!1,o.nextTick(()=>{w.value=!0,i.value.focus()})}function T(){l.value=!1,w.value=!1}return(k,y)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(W.QSelect),o.mergeProps({ref_key:"selectField",ref:i},k.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&l.value&&!k.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"","input-class":{"is-hidden":!l.value,[t.inputClass]:!0},class:"max-w-full",onFilter:b,onClear:S,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":g}),{append:o.withCtx(()=>[o.createVNode(o.unref(my),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[k.$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,I=>(o.openBlock(),o.createBlock(E,{key:"selected-"+I.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(I.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(E,{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"])])}}},_w={key:1},ws={__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-shadow"},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,s,l;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-"+((s=t.field)==null?void 0:s.id),placeholder:(l=t.field)==null?void 0:l.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(en),{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",_w,[o.createVNode(o.unref(vd),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},jd={__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),s=o.computed(()=>r.modelValue&&r.modelValue[i.value]),l=o.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[i.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(mr),{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(ws),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-gray-dark","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},mw={__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(gs),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},hw={key:0,class:"font-bold text-xs mb-2"},pw={class:"flex items-center flex-nowrap cursor-pointer"},gw={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},pi={__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?"%":""),s=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),l=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?hy:r.percent?cu:wy)),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?ji(_):r.percent?ua(_,{multiplier:1,maximumFractionDigits:2}):qt(_)}const f=pr(()=>{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",hw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",pw,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",gw,[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(_r),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=h=>c.value.from=h),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(_r),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=h=>c.value.to=h),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},yw=["data-dusk","onClick"],xw={__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),s=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(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(Io),{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(s.value,p=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-gray-light px-8 py-3 flex items-center border-b border-gray-light",onClick:h=>u(p)},[o.createVNode(_,{"model-value":c(p),class:"mr-2"},null,8,["model-value"]),o.renderSlot(d.$slots,"option",{opt:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],8,yw))),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)])}}},bw={key:0,class:"text-gray-silver"},ww={key:1},kw={class:"text-xs text-gray-silver"},Gd={__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 s=o.ref(i()),l=o.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=qn(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{s.value=i(),l.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",bw,"No options available")):o.createCommentVNode("",!0),o.createVNode(o.unref(mr),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.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"]),s.value?(o.openBlock(),o.createElementBlock("div",ww,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":l.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",kw,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},Sw={key:0,class:"text-sm mt-2"},Tw={key:2,class:"py-1"},Zd={__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:s,onFileSelected:l,uploadedFile:a,onClear:c}=Kc();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-medium text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(s)&&o.unref(s)(...f),["prevent"]))},[o.createVNode(o.unref(en),{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",Sw,[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-dark",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(l)&&o.unref(l)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Sn),{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",Tw,"-- ")):o.createCommentVNode("",!0)],34))}};var Cw=["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"],Ew=function(t){return Cw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Iw=function(t,e,n){Object.keys(e).filter(Ew).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(s){return i(s,n)}))})},Nw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,s=Array.isArray(i)?i.join(" "):i;o.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},Fw=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&Nw(e,n,r,i),Iw(t,n.attrs,r)},Hd=0,Wd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Hd++,t+"_"+n+Hd+String(e)},Bw=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Yd=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Dw=function(t,e){return Yd(t).concat(Yd(e))},Ow=function(t){return t==null},Qd=function(){return{listeners:[],scriptId:Wd("tiny-script"),scriptLoaded:!1}},Aw=function(){var t=Qd(),e=function(i,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(i,s,l){t.scriptLoaded?l():(t.listeners.push(l),i.getElementById(t.scriptId)||e(t.scriptId,i,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=Qd()};return{load:n,reinitialize:r}},$w=Aw(),Pw=function(){return typeof window<"u"?window:global},tn=function(){var t=Pw();return t&&t.tinymce?t.tinymce:null},Mw={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"}}},rt=function(){return rt=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},rt.apply(this,arguments)},Lw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},qw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ks={selector:void 0,target:void 0},Vw=o.defineComponent({props:Mw,setup:function(t,e){var n=t.init?rt(rt({},t.init),ks):rt({},ks),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||Wd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",p="",h=function(b){return f?function(){return s!=null&&s.value?s.value:""}:function(){return b?m:p}},g=function(){var b=h(_),S=rt(rt({},n),{readonly:t.disabled,target:a.value,plugins:Dw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return Fw(T,t,e,C,s,b)}),typeof n.setup=="function"&&n.setup(C)}});Bw(a.value)&&(a.value.style.visibility=""),tn().init(S),_=!1};o.watch(i,function(b){var S;c!==null&&(typeof((S=c.mode)===null||S===void 0?void 0:S.set)=="function"?c.mode.set(b?"readonly":"design"):c.setMode(b?"readonly":"design"))}),o.watch(l,function(b){var S;f||(p=c.getContent()),(S=tn())===null||S===void 0||S.remove(c),o.nextTick(function(){return g()})}),o.onMounted(function(){if(tn()!==null)g();else if(a.value&&a.value.ownerDocument){var b=t.cloudChannel?t.cloudChannel:"6",S=t.apiKey?t.apiKey:"no-api-key",C=Ow(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(S,"/tinymce/").concat(b,"/tinymce.min.js"):t.tinymceScriptSrc;$w.load(a.value.ownerDocument,C,g)}}),o.onBeforeUnmount(function(){tn()!==null&&tn().remove(c)}),d||(o.onActivated(function(){_||g()}),o.onDeactivated(function(){var b;f||(p=c.getContent()),(b=tn())===null||b===void 0||b.remove(c)}));var w=function(b){var S;p=c.getContent(),(S=tn())===null||S===void 0||S.remove(c),n=rt(rt(rt({},n),b),ks),o.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?Lw(o.h,u,a,t.tagName):qw(o.h,u,a)}}});const Uw="YOUR_API_KEY",Rw=["innerHTML"],Xd={__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(en),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-shadow 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,Rw)):(o.openBlock(),o.createBlock(o.unref(Vw),{key:2,class:"mt-2","api-key":o.unref(Uw),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"]))]))}},vw={key:1,class:"mt-2"},zw={class:"text-xs font-bold"},jw=o.createElementVNode("div",{class:"text-sm ml-3 py-2"},"No Available Options",-1),Ss={__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(s){let l=s||void 0;switch(r.field.type){case"multi-select":l=s.length>0?s:void 0;break;case"single-select":case"boolean":l=s===null?void 0:s;break}n("update:model-value",l)}return(s,l)=>{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(mr),{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",vw,[o.createElementVNode("div",zw,o.toDisplayString(t.field.label),1),jw]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(mr),{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(ys),{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(xs),{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(pi),{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(pi),{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(pi),{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(ps),{key:7,field:t.field,"model-value":t.modelValue,class:"mt-2","label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value"])):t.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(jd),{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(Gd),{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))])}}},Gw={class:"flex items-center flex-nowrap flex-grow"},Zw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},Kd={__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",Gw,[o.createElementVNode("div",Zw,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-base":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},Hw={class:"px-4 py-2 max-w-full"},Jd={__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 l={};for(const a of r.filterFields)l[a.name]=a.fields.filter(c=>r.filter[c.name]!==void 0).length;return l});function s(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...r.filter,...c})}return(l,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Hw,[(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(Ss),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>s(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(Kd),{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(Ss),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>s(_,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})}}},Ww={class:"flex-grow"},ef={__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 s=o.resolveComponent("QBadge"),l=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",Ww,[o.createVNode(l,{class:o.normalizeClass(["btn-blue-highlight",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(su),{class:"w-5 mr-2"}),o.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-base"},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-plus-1 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},Yw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Qw={class:"flex-grow"},Xw={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Kw={__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(s,l)=>(o.openBlock(),o.createElementBlock("div",Yw,[o.createVNode(o.unref(ef),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Qw,[o.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Xw,[s.$slots.default?(o.openBlock(),o.createBlock(o.unref(W.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},Jw={class:"rendered-form"},ek={__name:"RenderedForm",props:{values:{type:Object,default:null},fields:{type:Array,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:values"],setup(t,{emit:e}){const n=e,r=t,i={BOOLEAN:ps,DATE:ys,DATE_RANGE:xs,INTEGER:Rd,NUMBER:_r,TEXT:ws,SINGLE_FILE:Zd,MULTI_FILE:zd,WYSIWYG:Xd},s=r.fields.map(c=>({placeholder:`Enter ${c.label}`,...c,component:i[c.type],default:c.type==="BOOLEAN"?!1:""})),l=o.reactive(r.values||{});function a(c,u){n("update:values",{...l,[c]:u})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",Jw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:d.id,class:o.normalizeClass({"mt-4":f>0})},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.component),{modelValue:l[d.name],"onUpdate:modelValue":[_=>l[d.name]=_,_=>a(d.name,_)],field:d,label:d.label||void 0,"no-label":t.noLabel,"show-name":t.showName,disable:t.disable,readonly:t.readonly},null,8,["modelValue","onUpdate:modelValue","field","label","no-label","show-name","disable","readonly"]))],2))),128))]))}},tk={},nk={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},rk={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function ik(t,e){return o.openBlock(),o.createElementBlock("div",nk,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",rk,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const ok=kt(tk,[["render",ik]]);function tf(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 nf(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 rf(t,e=null){const n={},r=Xc("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(s=>{(!e||e.includes(s))&&(n[s]=i[s])})}return n}function sk(t,{listRoute:e,summaryRoute:n=null,filterFieldOptionsRoute:r=null,moreRoute:i=null,itemDetailsRoute:s=null,refreshFilters:l=!1,urlPattern:a=null,filterDefaults:c={}}){let u=!1;const d=`${t}-pagination-settings`,f=o.ref(null),_=o.ref({}),m=o.ref({}),p=o.ref(!1),h=o.ref([]),g=o.ref(!1),w=o.ref(!1),b=o.ref(null),S=o.ref({}),C=o.ref(!1),T=o.computed(()=>Object.keys(_.value).filter(D=>_.value[D]!==void 0).length),k={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},y=o.ref(k),E=o.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{..._.value,...m.value},sort:y.value.__sort||void 0}));o.watch(E,()=>{Dt(),I()}),o.watch(_,()=>{Dt(),$()}),o.watch(h,$),l&&o.watch(_,U);async function I(){u&&(g.value=!0,j(await e(E.value)),g.value=!1)}async function $(){if(!n||!u)return;w.value=!0;const D={id:null,..._.value,...m.value};h.value.length&&(D.id=h.value.map(X=>X.id)),b.value=await n(D),w.value=!1}async function U(){!r||!u||(C.value=!0,S.value=await r(_.value),C.value=!1)}function z(D,X=null){var fe;if(D.match(a)){const nn=(fe=X==null?void 0:X.value)==null?void 0:fe.map(Ln=>Ln.fields.map(Uk=>Uk.name)).flat(),rn=rf(D,nn);Object.keys(rn).length>0&&(_.value=rn,$e("filter",_.value))}}function j(D){Array.isArray(D)?f.value={data:D,meta:{total:D.length}}:(f.value=D,D!=null&&D.meta&&D.meta.total!==y.value.rowsNumber&&(y.value.rowsNumber=D.meta.total))}function ae(){y.value=k}function se(D){var fe,nn,rn;const X=(nn=(fe=f.value)==null?void 0:fe.data)==null?void 0:nn.map(Ln=>Ln.id===D.id&&(Ln.updated_at===null||Ln.updated_at<=D.updated_at)?D:Ln);f.value={...f.value,data:X},((rn=de.value)==null?void 0:rn.id)===D.id&&(de.value={...de.value,...D})}async function ee(D,X=void 0){const fe=await i({page:D+1,perPage:X,filter:{..._.value,...m.value}});return fe&&fe.length>0?(f.value.data=[...f.value.data,...fe],!0):!1}async function le(){return Promise.all([I(),$(),U(),hr()])}function $e(D,X){const fe=wt(d)||{};fe[D]=X,bt(d,fe)}function Mn(){if(!u)return;const D=wt(d);D?(_.value={...D.filter,..._.value},y.value=D.quasarPagination):_.value={...c,..._.value},setTimeout(()=>{g.value||I(),w.value||$(),C.value||U()},1)}async function Dt(){const D={filter:_.value,quasarPagination:{...y.value,page:1}};bt(d,D)}const de=o.ref(null),it=o.ref(null);async function hr(){var X;if(!de.value||!s)return;const D=await s(de.value);(D==null?void 0:D.id)===((X=de.value)==null?void 0:X.id)&&(de.value=D)}s&&o.watch(()=>de.value,async(D,X)=>{D&&(X==null?void 0:X.id)!==D.id&&await hr()});function We(D,X){de.value=D,it.value=X}async function dt(D){var nn;const X=(nn=f.value)==null?void 0:nn.data.findIndex(rn=>rn.id===de.value.id);if(X===void 0)return;let fe=X+D;if(fe<0)if(y.value.page>1)y.value={...y.value,page:y.value.page-1},await gi(g,!1),fe=f.value.data.length-1;else return;if(fe>=f.value.data.length)if(y.value.page<f.value.meta.last_page)y.value={...y.value,page:y.value.page+1},await gi(g,!1),fe=0;else return;de.value=f.value.data[fe]}function Vk(){u=!0,Mn()}return{pagedItems:f,filter:_,globalFilter:m,filterActiveCount:T,showFilters:p,summary:b,filterFieldOptions:S,selectedRows:h,isLoadingList:g,isLoadingFilters:C,isLoadingSummary:w,pager:E,quasarPagination:y,activeItem:de,activePanel:it,initialize:Vk,loadSummary:$,resetPaging:ae,loadList:I,loadMore:ee,refreshAll:le,getNextItem:dt,activatePanel:We,applyFilterFromUrl:z,setItemInPagedList:se}}function lk(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(wt(n)||[]),l=o.ref(wt(r,[])),a=o.ref(wt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,p)=>{const h=s.value.indexOf(m.name),g=s.value.indexOf(p.name);return h===-1?1:g===-1?-1:h-g})),d=o.computed({get(){return u.value.slice(1)},set(m){s.value=[...c.value.map(p=>p.name),...m.map(p=>p.name)],bt(n,s.value)}}),f=o.computed(()=>u.value.filter(m=>!l.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>l.value,()=>bt(r,l.value)),o.watch(()=>a.value,()=>bt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:_}}const of={__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(l=>Array.isArray(e.target)?l.batchEnabled?l.batchEnabled(e.target):!0:l.enabled?l.enabled(e.target):!0)),i=o.ref(!1);async function s(l){if(!l.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 l.trigger(e.target),i.value=!1}return(l,a)=>(o.openBlock(),o.createBlock(o.unref(wu),{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:s},null,8,["items","disabled","tooltip","loading","loading-component"]))}},ak={class:"flex-grow overflow-hidden"},ck={key:0,class:"flex flex-shrink-0 pl-2"},sf={__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),s=o.computed(()=>r.value.isSaving&&r.value.isSaving(n.value)),l=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return c?{width:`${c}px`}:null}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":s.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(W.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(l.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",ak,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,onClick:u[0]||(u[0]=d=>r.value.onClick(n.value)),class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(Tn),{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(Tn),{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(Ud),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",ck,[o.createVNode(o.unref(of),{actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},uk={class:"flex items-center justify-center text-sm py-14 w-full"},dk={key:0},fk={key:1},lf={__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",uk,[t.loading?(o.openBlock(),o.createElementBlock("div",dk,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(W.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",fk,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(W.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},_k={class:"flex flex-nowrap items-center"},mk={key:0,class:"flex items-center"},hk={key:1},af={__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 s=e.summary[i.name];return s===void 0?"":i.format?i.format(s):s}return(i,s)=>(o.openBlock(),o.createBlock(o.unref(W.QTr),{class:o.normalizeClass(["sticky-column-1 transition-all sticky-row",{"!bg-neutral-plus-7":!t.selectedCount,"!bg-blue-600 text-white selected":t.selectedCount,"opacity-50":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(W.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["font-bold transition-all",{"!bg-neutral-plus-7 !pl-5":!t.selectedCount,"!bg-blue-600 text-white !pl-4":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",_k,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",mk,[o.createVNode(o.unref(Dy),{class:"w-6 mr-3",onClick:s[0]||(s[0]=l=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(qt)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",hk,o.toDisplayString(o.unref(qt)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(W.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,l=>(o.openBlock(),o.createBlock(o.unref(W.QTd),{key:l.name,align:l.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(l)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},pk={"!visible":"_!visible_1cfc0_1",visible:"_visible_1cfc0_1",collapse:"_collapse_1cfc0_1",static:"_static_1cfc0_1",absolute:"_absolute_1cfc0_1",relative:"_relative_1cfc0_1",sticky:"_sticky_1cfc0_1","bottom-1":"_bottom-1_1cfc0_1","left-0":"_left-0_1cfc0_1","right-0":"_right-0_1cfc0_1","right-1":"_right-1_1cfc0_1","right-4":"_right-4_1cfc0_1","top-0":"_top-0_1cfc0_1","top-1":"_top-1_1cfc0_1","top-4":"_top-4_1cfc0_1","m-2":"_m-2_1cfc0_1","m-4":"_m-4_1cfc0_1","mx-1":"_mx-1_1cfc0_1","mx-4":"_mx-4_1cfc0_1","mx-auto":"_mx-auto_1cfc0_1","my-2":"_my-2_1cfc0_1","!mr-1":"_!mr-1_1cfc0_1","mb-2":"_mb-2_1cfc0_1","mb-4":"_mb-4_1cfc0_1","ml-1":"_ml-1_1cfc0_1","ml-2":"_ml-2_1cfc0_1","ml-2.5":"_ml-2.5_1cfc0_1","ml-3":"_ml-3_1cfc0_1","ml-4":"_ml-4_1cfc0_1","ml-5":"_ml-5_1cfc0_1","ml-[-.2em]":"_ml-[-.2em]_1cfc0_1","mr-1":"_mr-1_1cfc0_1","mr-2":"_mr-2_1cfc0_1","mr-3":"_mr-3_1cfc0_1","mt-1":"_mt-1_1cfc0_1","mt-2":"_mt-2_1cfc0_1","mt-3":"_mt-3_1cfc0_1","mt-4":"_mt-4_1cfc0_1",block:"_block_1cfc0_1","inline-block":"_inline-block_1cfc0_1",inline:"_inline_1cfc0_1",flex:"_flex_1cfc0_1",table:"_table_1cfc0_1",hidden:"_hidden_1cfc0_1","h-10":"_h-10_1cfc0_1","h-4":"_h-4_1cfc0_1","h-5":"_h-5_1cfc0_1","h-8":"_h-8_1cfc0_1","h-full":"_h-full_1cfc0_1","max-h-full":"_max-h-full_1cfc0_1","w-16":"_w-16_1cfc0_1","w-2/5":"_w-2/5_1cfc0_1","w-24":"_w-24_1cfc0_1","w-3":"_w-3_1cfc0_1","w-3/5":"_w-3/5_1cfc0_1","w-32":"_w-32_1cfc0_1","w-4":"_w-4_1cfc0_1","w-48":"_w-48_1cfc0_1","w-5":"_w-5_1cfc0_1","w-6":"_w-6_1cfc0_1","w-7":"_w-7_1cfc0_1","w-72":"_w-72_1cfc0_1","w-8":"_w-8_1cfc0_1","w-[13.5rem]":"_w-[13.5rem]_1cfc0_1","w-[35.5rem]":"_w-[35.5rem]_1cfc0_1","w-[6.5rem]":"_w-[6.5rem]_1cfc0_1","w-full":"_w-full_1cfc0_1","!min-w-0":"_!min-w-0_1cfc0_1","max-w-[50em]":"_max-w-[50em]_1cfc0_1","max-w-full":"_max-w-full_1cfc0_1","flex-shrink-0":"_flex-shrink-0_1cfc0_1","flex-grow":"_flex-grow_1cfc0_1",grow:"_grow_1cfc0_1","rotate-180":"_rotate-180_1cfc0_1",transform:"_transform_1cfc0_1","cursor-ew-resize":"_cursor-ew-resize_1cfc0_1","cursor-move":"_cursor-move_1cfc0_1","cursor-not-allowed":"_cursor-not-allowed_1cfc0_1","cursor-ns-resize":"_cursor-ns-resize_1cfc0_1","cursor-pointer":"_cursor-pointer_1cfc0_1",resize:"_resize_1cfc0_29","flex-col":"_flex-col_1cfc0_1","flex-nowrap":"_flex-nowrap_1cfc0_1","items-center":"_items-center_1cfc0_1","items-stretch":"_items-stretch_1cfc0_1","justify-start":"_justify-start_1cfc0_1","justify-end":"_justify-end_1cfc0_1","justify-center":"_justify-center_1cfc0_1","justify-between":"_justify-between_1cfc0_1","gap-y-0":"_gap-y-0_1cfc0_1","gap-y-1":"_gap-y-1_1cfc0_1","space-x-1":"_space-x-1_1cfc0_1","space-x-2":"_space-x-2_1cfc0_1","self-center":"_self-center_1cfc0_1","overflow-auto":"_overflow-auto_1cfc0_1","overflow-hidden":"_overflow-hidden_1cfc0_1","overflow-y-auto":"_overflow-y-auto_1cfc0_16","overflow-x-hidden":"_overflow-x-hidden_1cfc0_1","scroll-smooth":"_scroll-smooth_1cfc0_1","overflow-ellipsis":"_overflow-ellipsis_1cfc0_1","whitespace-nowrap":"_whitespace-nowrap_1cfc0_1",rounded:"_rounded_1cfc0_1","rounded-2xl":"_rounded-2xl_1cfc0_1","rounded-lg":"_rounded-lg_1cfc0_1","rounded-md":"_rounded-md_1cfc0_1","!rounded-l-none":"_!rounded-l-none_1cfc0_1","!rounded-r-none":"_!rounded-r-none_1cfc0_1","rounded-b-lg":"_rounded-b-lg_1cfc0_1","rounded-t-lg":"_rounded-t-lg_1cfc0_1","rounded-t-md":"_rounded-t-md_1cfc0_1","!border-0":"_!border-0_1cfc0_1",border:"_border_1cfc0_1","border-b":"_border-b_1cfc0_1","border-l":"_border-l_1cfc0_1","border-l-0":"_border-l-0_1cfc0_1","border-r":"_border-r_1cfc0_1","border-t":"_border-t_1cfc0_1","border-solid":"_border-solid_1cfc0_1","border-dashed":"_border-dashed_1cfc0_1","border-blue-600":"_border-blue-600_1cfc0_1","border-gray-200":"_border-gray-200_1cfc0_1","border-gray-300":"_border-gray-300_1cfc0_1","!bg-blue-600":"_!bg-blue-600_1cfc0_1","bg-blue-600":"_bg-blue-600_1cfc0_1","bg-gray-100":"_bg-gray-100_1cfc0_1","bg-gray-200":"_bg-gray-200_1cfc0_1","bg-gray-500":"_bg-gray-500_1cfc0_1","bg-green-300":"_bg-green-300_1cfc0_1","bg-red-300":"_bg-red-300_1cfc0_1","bg-slate-100":"_bg-slate-100_1cfc0_1","bg-slate-200":"_bg-slate-200_1cfc0_1","bg-transparent":"_bg-transparent_1cfc0_1","bg-white":"_bg-white_1cfc0_1","bg-yellow-300":"_bg-yellow-300_1cfc0_1","!p-1":"_!p-1_1cfc0_1","!p-2":"_!p-2_1cfc0_1","p-1":"_p-1_1cfc0_1","p-2":"_p-2_1cfc0_1","p-3":"_p-3_1cfc0_1","p-4":"_p-4_1cfc0_1","!py-0":"_!py-0_1cfc0_1","px-1":"_px-1_1cfc0_1","px-12":"_px-12_1cfc0_1","px-2":"_px-2_1cfc0_1","px-2.5":"_px-2.5_1cfc0_1","px-4":"_px-4_1cfc0_1","px-6":"_px-6_1cfc0_1","px-8":"_px-8_1cfc0_1","py-1":"_py-1_1cfc0_1","py-14":"_py-14_1cfc0_1","py-2":"_py-2_1cfc0_1","py-2.5":"_py-2.5_1cfc0_1","py-3":"_py-3_1cfc0_1","py-4":"_py-4_1cfc0_1","py-8":"_py-8_1cfc0_1","!pl-4":"_!pl-4_1cfc0_1","!pl-5":"_!pl-5_1cfc0_1","pl-2":"_pl-2_1cfc0_1","pl-6":"_pl-6_1cfc0_1","pr-10":"_pr-10_1cfc0_1","text-left":"_text-left_1cfc0_1","text-center":"_text-center_1cfc0_1","text-right":"_text-right_1cfc0_1","!text-xs":"_!text-xs_1cfc0_1","text-[1rem]":"_text-[1rem]_1cfc0_1","text-sm":"_text-sm_1cfc0_1","text-xs":"_text-xs_1cfc0_1","font-bold":"_font-bold_1cfc0_1","font-medium":"_font-medium_1cfc0_1","font-normal":"_font-normal_1cfc0_1","font-semibold":"_font-semibold_1cfc0_1",uppercase:"_uppercase_1cfc0_1","leading-[1.2rem]":"_leading-[1.2rem]_1cfc0_1","!text-green-900":"_!text-green-900_1cfc0_1","!text-red-900":"_!text-red-900_1cfc0_1","!text-yellow-900":"_!text-yellow-900_1cfc0_1","text-black":"_text-black_1cfc0_1","text-blue-600":"_text-blue-600_1cfc0_1","text-gray-500":"_text-gray-500_1cfc0_1","text-white":"_text-white_1cfc0_1","line-through":"_line-through_1cfc0_1","opacity-50":"_opacity-50_1cfc0_1","opacity-70":"_opacity-70_1cfc0_1","shadow-none":"_shadow-none_1cfc0_1","outline-none":"_outline-none_1cfc0_1",outline:"_outline_1cfc0_1",filter:"_filter_1cfc0_1",transition:"_transition_1cfc0_1","transition-all":"_transition-all_1cfc0_1","duration-300":"_duration-300_1cfc0_1","q-tab-panels":"_q-tab-panels_1cfc0_4","q-panel":"_q-panel_1cfc0_7",scroll:"_scroll_1cfc0_10","q-tab-panel":"_q-tab-panel_1cfc0_4","q-toolbar":"_q-toolbar_1cfc0_20","q-notification__actions":"_q-notification__actions_1cfc0_25","handle-drop-zone":"_handle-drop-zone_1cfc0_29","resize-handle":"_resize-handle_1cfc0_29","hover:text-blue-600":"_hover:text-blue-600_1cfc0_1","hover:opacity-100":"_hover:opacity-100_1cfc0_1"},gk={class:"overflow-hidden w-full"},yk=kt({__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);tf(n);const r=`column-settings-${e.name}`,i=o.ref(wt(r)||{});function s(l,a){i.value={...i.value,[l.name]:{width:Math.max(Math.min(a.distance+a.startDropZoneSize,l.maxWidth||500),l.minWidth||80)}},bt(r,i.value)}return(l,a)=>{var c;return o.openBlock(),o.createElementBlock("div",gk,[o.createVNode(o.unref(xu)),o.createVNode(o.unref(W.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[1]||(a[1]=u=>l.$emit("update:selected-rows",u)),"onUpdate:pagination":()=>{},onRequest:a[2]||(a[2]=u=>l.$emit("update:quasar-pagination",{...u.pagination,__sort:o.unref(nf)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(l.$slots,"empty",{},()=>[o.createVNode(lf,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])])]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(af,{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=>l.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])]}),"header-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(o.unref(W.QTh),{key:u.key,props:u,"data-drop-zone":"resize-column-"+u.col.name,class:o.normalizeClass(l.cls["handle-drop-zone"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.col.label)+" ",1),u.col.resizeable?(o.openBlock(),o.createBlock(o.unref(nu),{key:0,"drop-zone":"resize-column-"+u.col.name,class:o.normalizeClass(l.cls["resize-handle"]),onResize:d=>s(u.col,d)},{default:o.withCtx(()=>[o.createVNode(o.unref(ou),{class:"w-4 text-neutral-base"})]),_:2},1032,["drop-zone","class","onResize"])):o.createCommentVNode("",!0)]),_:2},1032,["props","data-drop-zone","class"]))]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(sf,{key:u.key,"row-props":u,settings:i.value[u.col.name]},{default:o.withCtx(()=>[o.renderSlot(l.$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"])])}}},[["__cssModules",{cls:pk}]]),xk={class:"flex space-x-2"},bk=["innerHTML"],Ts={__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 qt(r);case"CURRENCY":return ji(r);case"DATE":return Xe(r);case"DATETIME":return hn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",xk,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Sn),{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,s=>(o.openBlock(),o.createBlock(o.unref(Sn),{key:"file-"+s.id,image:s,class:"w-24 mb-2"},null,8,["image"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,bk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},wk={class:"text-gray-shadow flex items-stretch flex-nowrap p-4"},kk={class:"flex-grow text-sm w-3/5 overflow-auto"},Sk={class:"flex flex-nowrap items-center mt-4"},Tk={class:"bg-red-light line-through p-2"},Ck={class:"bg-green-plus-4 ml-2.5 p-2"},Ek={class:"ml-4 text-sm w-2/5"},Ik=["href"],Nk={__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",wk,[o.createElementVNode("div",kk,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",Sk,[o.createElementVNode("div",Tk,[o.createVNode(o.unref(Ts),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",Ck,[o.createVNode(o.unref(Ts),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",Ek,[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(hn)(t.item.timestamp)),9,Ik)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(hn)(t.item.timestamp)),1)],64))])])]))}},cf={__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-neutral-plus-7 h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,s=>(o.openBlock(),o.createBlock(r,{key:s.name,name:s.name},{default:o.withCtx(()=>[s.vnode?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,vnode:s.vnode()},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},uf=kt({__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(Tn),{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(W.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_13w6i_1",visible:"_visible_13w6i_1",collapse:"_collapse_13w6i_1",static:"_static_13w6i_1",absolute:"_absolute_13w6i_1",relative:"_relative_13w6i_1",sticky:"_sticky_13w6i_1","bottom-1":"_bottom-1_13w6i_1","left-0":"_left-0_13w6i_1","right-0":"_right-0_13w6i_1","right-1":"_right-1_13w6i_1","right-4":"_right-4_13w6i_1","top-0":"_top-0_13w6i_1","top-1":"_top-1_13w6i_1","top-4":"_top-4_13w6i_1","m-2":"_m-2_13w6i_1","m-4":"_m-4_13w6i_1","mx-1":"_mx-1_13w6i_1","mx-4":"_mx-4_13w6i_1","mx-auto":"_mx-auto_13w6i_1","my-2":"_my-2_13w6i_1","!mr-1":"_!mr-1_13w6i_1","mb-2":"_mb-2_13w6i_1","mb-4":"_mb-4_13w6i_1","ml-1":"_ml-1_13w6i_1","ml-2":"_ml-2_13w6i_1","ml-2.5":"_ml-2.5_13w6i_1","ml-3":"_ml-3_13w6i_1","ml-4":"_ml-4_13w6i_1","ml-5":"_ml-5_13w6i_1","ml-[-.2em]":"_ml-[-.2em]_13w6i_1","mr-1":"_mr-1_13w6i_1","mr-2":"_mr-2_13w6i_1","mr-3":"_mr-3_13w6i_1","mt-1":"_mt-1_13w6i_1","mt-2":"_mt-2_13w6i_1","mt-3":"_mt-3_13w6i_1","mt-4":"_mt-4_13w6i_1",block:"_block_13w6i_1","inline-block":"_inline-block_13w6i_1",inline:"_inline_13w6i_1",flex:"_flex_13w6i_1",table:"_table_13w6i_1",hidden:"_hidden_13w6i_1","h-10":"_h-10_13w6i_1","h-4":"_h-4_13w6i_1","h-5":"_h-5_13w6i_1","h-8":"_h-8_13w6i_1","h-full":"_h-full_13w6i_1","max-h-full":"_max-h-full_13w6i_1","w-16":"_w-16_13w6i_1","w-2/5":"_w-2/5_13w6i_1","w-24":"_w-24_13w6i_1","w-3":"_w-3_13w6i_1","w-3/5":"_w-3/5_13w6i_1","w-32":"_w-32_13w6i_1","w-4":"_w-4_13w6i_1","w-48":"_w-48_13w6i_1","w-5":"_w-5_13w6i_1","w-6":"_w-6_13w6i_1","w-7":"_w-7_13w6i_1","w-72":"_w-72_13w6i_1","w-8":"_w-8_13w6i_1","w-[13.5rem]":"_w-[13.5rem]_13w6i_1","w-[35.5rem]":"_w-[35.5rem]_13w6i_1","w-[6.5rem]":"_w-[6.5rem]_13w6i_1","w-full":"_w-full_13w6i_1","!min-w-0":"_!min-w-0_13w6i_1","max-w-[50em]":"_max-w-[50em]_13w6i_1","max-w-full":"_max-w-full_13w6i_1","flex-shrink-0":"_flex-shrink-0_13w6i_1","flex-grow":"_flex-grow_13w6i_1",grow:"_grow_13w6i_1","rotate-180":"_rotate-180_13w6i_1",transform:"_transform_13w6i_1","cursor-ew-resize":"_cursor-ew-resize_13w6i_1","cursor-move":"_cursor-move_13w6i_1","cursor-not-allowed":"_cursor-not-allowed_13w6i_1","cursor-ns-resize":"_cursor-ns-resize_13w6i_1","cursor-pointer":"_cursor-pointer_13w6i_1",resize:"_resize_13w6i_1","flex-col":"_flex-col_13w6i_1","flex-nowrap":"_flex-nowrap_13w6i_1","items-center":"_items-center_13w6i_1","items-stretch":"_items-stretch_13w6i_1","justify-start":"_justify-start_13w6i_1","justify-end":"_justify-end_13w6i_1","justify-center":"_justify-center_13w6i_1","justify-between":"_justify-between_13w6i_1","gap-y-0":"_gap-y-0_13w6i_1","gap-y-1":"_gap-y-1_13w6i_1","space-x-1":"_space-x-1_13w6i_1","space-x-2":"_space-x-2_13w6i_1","self-center":"_self-center_13w6i_1","overflow-auto":"_overflow-auto_13w6i_1","overflow-hidden":"_overflow-hidden_13w6i_1","overflow-y-auto":"_overflow-y-auto_13w6i_16","overflow-x-hidden":"_overflow-x-hidden_13w6i_1","scroll-smooth":"_scroll-smooth_13w6i_1","overflow-ellipsis":"_overflow-ellipsis_13w6i_1","whitespace-nowrap":"_whitespace-nowrap_13w6i_1",rounded:"_rounded_13w6i_1","rounded-2xl":"_rounded-2xl_13w6i_1","rounded-lg":"_rounded-lg_13w6i_1","rounded-md":"_rounded-md_13w6i_1","!rounded-l-none":"_!rounded-l-none_13w6i_1","!rounded-r-none":"_!rounded-r-none_13w6i_1","rounded-b-lg":"_rounded-b-lg_13w6i_1","rounded-t-lg":"_rounded-t-lg_13w6i_1","rounded-t-md":"_rounded-t-md_13w6i_1","!border-0":"_!border-0_13w6i_1",border:"_border_13w6i_1","border-b":"_border-b_13w6i_1","border-l":"_border-l_13w6i_1","border-l-0":"_border-l-0_13w6i_1","border-r":"_border-r_13w6i_1","border-t":"_border-t_13w6i_1","border-solid":"_border-solid_13w6i_1","border-dashed":"_border-dashed_13w6i_1","border-blue-600":"_border-blue-600_13w6i_1","border-gray-200":"_border-gray-200_13w6i_1","border-gray-300":"_border-gray-300_13w6i_1","!bg-blue-600":"_!bg-blue-600_13w6i_1","bg-blue-600":"_bg-blue-600_13w6i_1","bg-gray-100":"_bg-gray-100_13w6i_1","bg-gray-200":"_bg-gray-200_13w6i_1","bg-gray-500":"_bg-gray-500_13w6i_1","bg-green-300":"_bg-green-300_13w6i_1","bg-red-300":"_bg-red-300_13w6i_1","bg-slate-100":"_bg-slate-100_13w6i_1","bg-slate-200":"_bg-slate-200_13w6i_1","bg-transparent":"_bg-transparent_13w6i_1","bg-white":"_bg-white_13w6i_1","bg-yellow-300":"_bg-yellow-300_13w6i_1","!p-1":"_!p-1_13w6i_1","!p-2":"_!p-2_13w6i_1","p-1":"_p-1_13w6i_1","p-2":"_p-2_13w6i_1","p-3":"_p-3_13w6i_1","p-4":"_p-4_13w6i_1","!py-0":"_!py-0_13w6i_1","px-1":"_px-1_13w6i_1","px-12":"_px-12_13w6i_1","px-2":"_px-2_13w6i_1","px-2.5":"_px-2.5_13w6i_1","px-4":"_px-4_13w6i_1","px-6":"_px-6_13w6i_1","px-8":"_px-8_13w6i_1","py-1":"_py-1_13w6i_1","py-14":"_py-14_13w6i_1","py-2":"_py-2_13w6i_1","py-2.5":"_py-2.5_13w6i_1","py-3":"_py-3_13w6i_1","py-4":"_py-4_13w6i_1","py-8":"_py-8_13w6i_1","!pl-4":"_!pl-4_13w6i_1","!pl-5":"_!pl-5_13w6i_1","pl-2":"_pl-2_13w6i_1","pl-6":"_pl-6_13w6i_1","pr-10":"_pr-10_13w6i_1","text-left":"_text-left_13w6i_1","text-center":"_text-center_13w6i_1","text-right":"_text-right_13w6i_1","!text-xs":"_!text-xs_13w6i_1","text-[1rem]":"_text-[1rem]_13w6i_1","text-sm":"_text-sm_13w6i_1","text-xs":"_text-xs_13w6i_1","font-bold":"_font-bold_13w6i_1","font-medium":"_font-medium_13w6i_1","font-normal":"_font-normal_13w6i_1","font-semibold":"_font-semibold_13w6i_1",uppercase:"_uppercase_13w6i_1","leading-[1.2rem]":"_leading-[1.2rem]_13w6i_1","!text-green-900":"_!text-green-900_13w6i_1","!text-red-900":"_!text-red-900_13w6i_1","!text-yellow-900":"_!text-yellow-900_13w6i_1","text-black":"_text-black_13w6i_1","text-blue-600":"_text-blue-600_13w6i_1","text-gray-500":"_text-gray-500_13w6i_1","text-white":"_text-white_13w6i_1","line-through":"_line-through_13w6i_1","opacity-50":"_opacity-50_13w6i_1","opacity-70":"_opacity-70_13w6i_1","shadow-none":"_shadow-none_13w6i_1","outline-none":"_outline-none_13w6i_1",outline:"_outline_13w6i_1",filter:"_filter_13w6i_1",transition:"_transition_13w6i_1","transition-all":"_transition-all_13w6i_1","duration-300":"_duration-300_13w6i_1","q-tab-panels":"_q-tab-panels_13w6i_4","q-panel":"_q-panel_13w6i_7",scroll:"_scroll_13w6i_10","q-tab-panel":"_q-tab-panel_13w6i_4","q-toolbar":"_q-toolbar_13w6i_20","q-notification__actions":"_q-notification__actions_13w6i_25","panel-tabs":"_panel-tabs_13w6i_29","hover:text-blue-600":"_hover:text-blue-600_13w6i_1","hover:opacity-100":"_hover:opacity-100_13w6i_1"}}]]),Fk={class:"flex flex-col flex-nowrap h-full"},Bk={class:"flex items-center px-6 py-4 border-b"},Dk={class:"flex-grow"},Ok={class:"flex-grow overflow-hidden h-full"},Ak={class:"flex items-stretch flex-nowrap h-full"},$k={class:"border-r w-[13.5rem] overflow-y-auto"},Pk={key:0,class:"border-l overflow-y-auto"},Mk={__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 s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Io),{position:"right",show:!0,overlay:"","content-class":"h-full",title:"","onUpdate:show":i[3]||(i[3]=l=>r.$emit("close"))},{default:o.withCtx(()=>[o.createElementVNode("div",Fk,[o.createElementVNode("div",Bk,[o.createElementVNode("div",Dk,[o.renderSlot(r.$slots,"header")]),o.createElementVNode("div",null,[o.createVNode(s,{onClick:i[0]||(i[0]=l=>r.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(ti),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Ok,[o.createElementVNode("div",Ak,[o.createElementVNode("div",$k,[o.createVNode(o.unref(uf),{modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=l=>n.value=l),i[2]||(i[2]=l=>r.$emit("update:model-value",l))],panels:t.panels},null,8,["modelValue","panels"])]),o.createVNode(o.unref(cf),{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",Pk,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Lk={name:"quasar-ui-danx",version:"0.2.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"},repository:{type:"git",url:"https://github.com/flytedan/quasar-app-extension-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-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:df}=Lk;function qk(t){console.log(`Installing Danx UI ${df}... Nothing to do really.`)}x.ActionMenu=of,x.ActionTable=yk,x.ActionTableColumn=sf,x.ActionTableLayout=ok,x.ActionVnode=xu,x.AddressFormat=Kx,x.AuditHistoryItem=Nk,x.AuditHistoryItemValue=Ts,x.BadgeTab=_b,x.BooleanField=ps,x.CaretDownIcon=ru,x.CollapsableFiltersSidebar=z2,x.CollapsableSidebar=gu,x.ColumnListItem=To,x.ColumnSettingsDialog=L2,x.ConfirmDialog=Eo,x.ConfirmPasswordField=H2,x.ContentDrawer=Io,x.DateField=ys,x.DateRangeField=xs,x.DateTimeField=nw,x.DateTimePicker=bs,x.DragAndDrop=Co,x.DragHandleDotsIcon=iu,x.DragHandleIcon=ou,x.EditableDiv=rw,x.EmptyTableState=lf,x.ExportButton=gx,x.FieldLabel=en,x.FilePreview=Sn,x.FileUpload=Kr,x.FileUploadButton=ow,x.FilterFieldItem=Kd,x.FilterFieldList=Jd,x.FilterIcon=su,x.FilterListToggle=ef,x.FilterToolbarLayout=Kw,x.FilterableField=Ss,x.FlashMessages=Ye,x.FlatListFormat=Jx,x.FullScreenCarouselDialog=mu,x.FullScreenDialog=Dx,x.GpsCoordinatesFormat=nb,x.HandleDraggable=nu,x.IconWithTextFormat=ib,x.ImageIcon=lu,x.IndicatorTab=pb,x.InfoDialog=hu,x.InlineDateTimeField=aw,x.InputDialog=Px,x.IntegerField=Rd,x.InteractiveTooltip=ub,x.LabelValueBlock=vd,x.LabelValueFormat=sb,x.LabeledInput=gs,x.ListDragAndDrop=qd,x.ListItemDraggable=Vd,x.ListTransition=ku,x.MultiFileField=zd,x.MultiKeywordField=jd,x.NewPasswordField=mw,x.NumberField=_r,x.NumberRangeField=pi,x.PanelsDrawer=Mk,x.PanelsDrawerPanels=cf,x.PanelsDrawerTabs=uf,x.PdfIcon=au,x.PercentIcon=cu,x.PopoverMenu=wu,x.PreviousNextControls=bx,x.RefreshButton=yx,x.RenderComponent=bu,x.RenderVnode=Tn,x.RenderedForm=ek,x.SelectDrawer=xw,x.SelectField=mr,x.SelectWithChildrenField=Gd,x.SingleFileField=Zd,x.SkipNextIcon=uu,x.SkipPreviousIcon=du,x.SlideTransition=gb,x.StaggeredListTransition=O2,x.SvgImg=pu,x.TableSummaryRow=af,x.TextField=ws,x.TitleColumnFormat=Ud,x.TrashIcon=fu,x.VisibleColumnsToggleButtons=v2,x.WarningIcon=_u,x.WysiwygField=Xd,x.XIcon=ti,x.activeActionVnode=Ot,x.addHotkey=ay,x.applyCssVars=_y,x.buildCssVars=So,x.centerTruncate=Nm,x.configure=ff,x.dbDateTime=zi,x.diffInDays=Bm,x.download=Lr,x.downloadFile=Dm,x.downloadFileResponse=da,x.fCurrency=ji,x.fDate=Xe,x.fDateTime=vi,x.fLocalizedDateTime=hn,x.fNumber=qt,x.fPercent=ua,x.fPhone=Fm,x.fQDate=Em,x.fSecondsToTime=Im,x.fetchResourceListWithSelected=fy,x.getFilterFromUrl=rf,x.getItem=wt,x.getResponseHeader=Gi,x.getUrlParam=Xc,x.install=qk,x.listen=cy,x.localizedDateTime=Ui,x.mapSortBy=nf,x.metersToMiles=Cf,x.milesToMeters=Ef,x.minmax=Tf,x.notify=_f,x.parseCoords=If,x.parseDateTime=Yn,x.parseQDate=Mr,x.parseQDateTime=Ri,x.registerHotkeys=dy,x.registerStickyScrolling=tf,x.remoteDateTime=ca,x.remove=qn,x.replace=Es,x.request=ko,x.resolveFileLocation=Zc,x.setItem=bt,x.sleep=Fs,x.uniqueBy=hf,x.unlisten=uy,x.useActions=mf,x.useCompatibility=Os,x.useListControls=sk,x.useMultiFileUpload=Yc,x.useSingleFileUpload=Kc,x.useTableColumns=lk,x.version=df,x.waitForRef=gi,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
21
+ */var yd,Nt,On,os,Yt,xd,ss,u2=function(){return typeof window<"u"},ct={},Qt=180/Math.PI,An=Math.PI/180,$n=Math.atan2,bd=1e8,ls=/([A-Z])/g,d2=/(left|right|width|margin|padding|x)/i,f2=/[\s,\(]\S/,tt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},as=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},_2=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)},m2=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)},h2=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},wd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},kd=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},p2=function(e,n,r){return e.style[n]=r},g2=function(e,n,r){return e.style.setProperty(n,r)},y2=function(e,n,r){return e._gsap[n]=r},x2=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},b2=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},w2=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},Q="transform",Ie=Q+"Origin",k2=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in ct&&s){if(this.tfm=this.tfm||{},e!=="transform")e=tt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=ut(i,a)}):this.tfm[e]=l.x?l[e]:ut(i,e),e===Ie&&(this.tfm.zOrigin=l.zOrigin);else return tt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(Q)>=0)return;l.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ie,n,"")),e=Q}(s||n)&&this.props.push(e,n,s[e])},Sd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},S2=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,l;for(s=0;s<e.length;s+=3)e[s+1]?n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(ls,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)i[l]=this.tfm[l];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=ss(),(!s||!s.isStart)&&!r[Q]&&(Sd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Td=function(e,n){var r={target:e,props:[],revert:S2,save:k2};return e._gsap||Ee.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Cd,cs=function(e,n){var r=Nt.createElementNS?Nt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Nt.createElement(e);return r&&r.style?r:Nt.createElement(e)},nt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ls,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Pn(n)||n,1)||""},Ed="O,Moz,ms,Ms,Webkit".split(","),Pn=function(e,n,r){var i=n||Yt,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Ed[l]+e in s););return l<0?null:(l===3?"ms":l>=0?Ed[l]:"")+e},us=function(){u2()&&window.document&&(yd=window,Nt=yd.document,On=Nt.documentElement,Yt=cs("div")||{style:{}},cs("div"),Q=Pn(Q),Ie=Q+"Origin",Yt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Cd=!!Pn("perspective"),ss=Ee.core.reverting,os=1)},ds=function t(e){var n=cs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText,l;if(On.appendChild(n),n.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(l=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),On.removeChild(n),this.style.cssText=s,l},Id=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Nd=function(e){var n;try{n=e.getBBox()}catch{n=ds.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===ds||(n=ds.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Id(e,["x","cx","x1"])||0,y:+Id(e,["y","cy","y1"])||0,width:0,height:0}:n},Fd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Nd(e))},Xt=function(e,n){if(n){var r=e.style,i;n in ct&&n!==Ie&&(n=Q),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ls,"-$1").toLowerCase())):r.removeAttribute(n)}},Ft=function(e,n,r,i,s,l){var a=new Ce(e._pt,n,r,0,1,l?kd:wd);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Bd={deg:1,rad:1,turn:1},T2={grid:1,flex:1},Bt=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=Yt.style,c=d2.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===l||!s||Bd[i]||Bd[l])return s;if(l!=="px"&&!_&&(s=t(e,n,r,"px")),w=e.getCTM&&Fd(e),(m||l==="%")&&(ct[n]||~n.indexOf("adius")))return p=w?e.getBBox()[c?"width":"height"]:e[d],ne(m?s/p*f:s/100*p);if(a[c?"width":"height"]=f+(_?l:i),h=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Nt||!h.appendChild)&&(h=Nt.body),g=h._gsap,g&&m&&g.width&&c&&g.time===Ae.time&&!g.uncache)return ne(s/g.width*f);if(m&&(n==="height"||n==="width")){var b=e.style[n];e.style[n]=f+i,p=e[d],b?e.style[n]=b:Xt(e,n)}else(m||l==="%")&&!T2[nt(h,"display")]&&(a.position=nt(e,"position")),h===e&&(a.position="static"),h.appendChild(Yt),p=Yt[d],h.removeChild(Yt),a.position="absolute";return c&&m&&(g=zt(h),g.time=Ae.time,g.width=h[d]),ne(_?p*s/f:p&&s?f/p*s:0)},ut=function(e,n,r,i){var s;return os||us(),n in tt&&n!=="transform"&&(n=tt[n],~n.indexOf(",")&&(n=n.split(",")[0])),ct[n]&&n!=="transform"?(s=dr(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:hi(nt(e,Ie))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=mi[n]&&mi[n](e,n,r)||nt(e,n)||$u(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Bt(e,n,s,r)+r:s},C2=function(e,n,r,i){if(!r||r==="none"){var s=Pn(n,e,1),l=s&&nt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=nt(e,"borderTopColor"))}var a=new Ce(this._pt,e.style,n,0,1,md),c=0,u=0,d,f,_,m,p,h,g,w,b,S,C,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(h=e.style[n],e.style[n]=i,i=nt(e,n)||i,h?e.style[n]=h:Xt(e,n)),d=[r,i],id(d),r=d[0],i=d[1],_=r.match(En)||[],T=i.match(En)||[],T.length){for(;f=En.exec(i);)g=f[0],b=i.substring(c,f.index),p?p=(p+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(p=1),g!==(h=_[u++]||"")&&(m=parseFloat(h)||0,C=h.substr((m+"").length),g.charAt(1)==="="&&(g=In(m,g)+C),w=parseFloat(g),S=g.substr((w+"").length),c=En.lastIndex-S.length,S||(S=S||Fe.units[n]||C,c===i.length&&(i+=S,a.e+=S)),C!==S&&(m=Bt(e,n,h,S)||0),a._pt={_next:a._pt,p:b||u===1?b:",",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"?kd:wd;return Iu.test(i)&&(a.e=0),this._pt=a,a},Dd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},E2=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]=Dd[r]||r,n[1]=Dd[i]||i,n.join(" ")},I2=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,l=r._gsap,a,c,u;if(s==="all"||s===!0)i.cssText="",c=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],ct[a]&&(c=1,a=a==="transformOrigin"?Ie:Q),Xt(r,a);c&&(Xt(r,Q),l&&(l.svg&&r.removeAttribute("transform"),dr(r,1),l.uncache=1,Sd(i)))}},mi={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Ce(e._pt,n,r,0,0,I2);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ur=[1,0,0,1,0,0],Od={},Ad=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},$d=function(e){var n=nt(e,Q);return Ad(n)?ur:n.substr(7).match(Eu).map(ne)},fs=function(e,n){var r=e._gsap||zt(e),i=e.style,s=$d(e),l,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?ur:s):(s===ur&&!e.offsetParent&&e!==On&&!r.svg&&(c=i.display,i.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,On.appendChild(e)),s=$d(e),c?i.display=c:Xt(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):On.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},_s=function(e,n,r,i,s,l){var a=e._gsap,c=s||fs(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],b=c[5],S=n.split(" "),C=parseFloat(S[0])||0,T=parseFloat(S[1])||0,k,y,E,I;r?c!==ur&&(y=m*g-p*h)&&(E=C*(g/y)+T*(-h/y)+(h*b-g*w)/y,I=C*(-p/y)+T*(m/y)-(m*b-p*w)/y,C=E,T=I):(k=Nd(e),C=k.x+(~S[0].indexOf("%")?C/100*k.width:C),T=k.y+(~(S[1]||S[0]).indexOf("%")?T/100*k.height:T)),i||i!==!1&&a.smooth?(w=C-u,b=T-d,a.xOffset=f+(w*m+b*h)-w,a.yOffset=_+(w*p+b*g)-b):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",l&&(Ft(l,a,"xOrigin",u,C),Ft(l,a,"yOrigin",d,T),Ft(l,a,"xOffset",f,a.xOffset),Ft(l,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},dr=function(e,n){var r=e._gsap||new ad(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=nt(e,Ie)||"0",d,f,_,m,p,h,g,w,b,S,C,T,k,y,E,I,$,U,z,j,ae,se,ee,le,$e,Mn,Dt,de,it,hr,We,dt;return d=f=_=h=g=w=b=S=C=0,m=p=1,r.svg=!!(e.getCTM&&Fd(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Q]=(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[Q]!=="none"?c[Q]:"")),i.scale=i.rotate=i.translate="none"),y=fs(e,r.svg),r.svg&&(r.uncache?($e=e.getBBox(),u=r.xOrigin-$e.x+"px "+(r.yOrigin-$e.y)+"px",le=""):le=!n&&e.getAttribute("data-svg-origin"),_s(e,le||u,!!le||r.originIsAbsolute,r.smooth!==!1,y)),T=r.xOrigin||0,k=r.yOrigin||0,y!==ur&&(U=y[0],z=y[1],j=y[2],ae=y[3],d=se=y[4],f=ee=y[5],y.length===6?(m=Math.sqrt(U*U+z*z),p=Math.sqrt(ae*ae+j*j),h=U||z?$n(z,U)*Qt:0,b=j||ae?$n(j,ae)*Qt+h:0,b&&(p*=Math.abs(Math.cos(b*An))),r.svg&&(d-=T-(T*U+k*j),f-=k-(T*z+k*ae))):(dt=y[6],hr=y[7],Dt=y[8],de=y[9],it=y[10],We=y[11],d=y[12],f=y[13],_=y[14],E=$n(dt,it),g=E*Qt,E&&(I=Math.cos(-E),$=Math.sin(-E),le=se*I+Dt*$,$e=ee*I+de*$,Mn=dt*I+it*$,Dt=se*-$+Dt*I,de=ee*-$+de*I,it=dt*-$+it*I,We=hr*-$+We*I,se=le,ee=$e,dt=Mn),E=$n(-j,it),w=E*Qt,E&&(I=Math.cos(-E),$=Math.sin(-E),le=U*I-Dt*$,$e=z*I-de*$,Mn=j*I-it*$,We=ae*$+We*I,U=le,z=$e,j=Mn),E=$n(z,U),h=E*Qt,E&&(I=Math.cos(E),$=Math.sin(E),le=U*I+z*$,$e=se*I+ee*$,z=z*I-U*$,ee=ee*I-se*$,U=le,se=$e),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,w=180-w),m=ne(Math.sqrt(U*U+z*z+j*j)),p=ne(Math.sqrt(ee*ee+dt*dt)),E=$n(se,ee),b=Math.abs(E)>2e-4?E*Qt:0,C=We?1/(We<0?-We:We):0),r.svg&&(le=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Ad(nt(e,Q)),le&&e.setAttribute("transform",le))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(m*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,b+=b<=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)+l,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)+l,r.z=_+l,r.scaleX=ne(m),r.scaleY=ne(p),r.rotation=ne(h)+a,r.rotationX=ne(g)+a,r.rotationY=ne(w)+a,r.skewX=b+a,r.skewY=S+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=hi(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?F2:Cd?Pd:N2,r.uncache=0,r},hi=function(e){return(e=e.split(" "))[0]+" "+e[1]},ms=function(e,n,r){var i=ye(n);return ne(parseFloat(n)+parseFloat(Bt(e,"x",r+"px",i)))+i},N2=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Pd(e,n)},Kt="0deg",fr="0px",Jt=") ",Pd=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,l=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,b=r.target,S=r.zOrigin,C="",T=w==="auto"&&e&&e!==1||w===!0;if(S&&(f!==Kt||d!==Kt)){var k=parseFloat(d)*An,y=Math.sin(k),E=Math.cos(k),I;k=parseFloat(f)*An,I=Math.cos(k),l=ms(b,l,y*I*-S),a=ms(b,a,-Math.sin(k)*-S),c=ms(b,c,E*I*-S+S)}g!==fr&&(C+="perspective("+g+Jt),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(T||l!==fr||a!==fr||c!==fr)&&(C+=c!==fr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+Jt),u!==Kt&&(C+="rotate("+u+Jt),d!==Kt&&(C+="rotateY("+d+Jt),f!==Kt&&(C+="rotateX("+f+Jt),(_!==Kt||m!==Kt)&&(C+="skew("+_+", "+m+Jt),(p!==1||h!==1)&&(C+="scale("+p+", "+h+Jt),b.style[Q]=C||"translate(0, 0)"},F2=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,l=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,b=r.forceCSS,S=parseFloat(l),C=parseFloat(a),T,k,y,E,I;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=An,u*=An,T=Math.cos(c)*f,k=Math.sin(c)*f,y=Math.sin(c-u)*-_,E=Math.cos(c-u)*_,u&&(d*=An,I=Math.tan(u-d),I=Math.sqrt(1+I*I),y*=I,E*=I,d&&(I=Math.tan(d),I=Math.sqrt(1+I*I),T*=I,k*=I)),T=ne(T),k=ne(k),y=ne(y),E=ne(E)):(T=f,E=_,k=y=0),(S&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(S=Bt(m,"x",l,"px"),C=Bt(m,"y",a,"px")),(p||h||g||w)&&(S=ne(S+p-(p*T+h*y)+g),C=ne(C+h-(p*k+h*E)+w)),(i||s)&&(I=m.getBBox(),S=ne(S+i/100*I.width),C=ne(C+s/100*I.height)),I="matrix("+T+","+k+","+y+","+E+","+S+","+C+")",m.setAttribute("transform",I),b&&(m.style[Q]=I)},B2=function(e,n,r,i,s){var l=360,a=ce(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?Qt:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=s.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),f==="cw"&&u<0?u=(u+l*bd)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*bd)%l-~~(u/l)*l)),e._pt=_=new Ce(e._pt,n,r,i,u,_2),_.e=d,_.u="deg",e._props.push(r),_},Md=function(e,n){for(var r in n)e[r]=n[r];return e},D2=function(e,n,r){var i=Md({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,_,m,p;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[Q]=n,a=dr(r,1),Xt(r,Q),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Q],l[Q]=n,a=dr(r,1),l[Q]=u);for(c in ct)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(m=ye(u),p=ye(d),f=m!==p?Bt(r,c,u,p):parseFloat(u),_=parseFloat(d),e._pt=new Ce(e._pt,a,c,f,_-f,as),e._pt.u=p||0,e._props.push(c));Md(a,i)};Te("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",l=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});mi[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=l.map(function(p){return ut(a,p,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},l.forEach(function(p,h){return m[p]=_[h]=_[h]||_[(h-1)/2|0]}),a.init(c,m,f)}});var Ld={name:"css",register:us,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var l=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,p,h,g,w,b,S,C,T,k,y,E;os||us(),this.styles=this.styles||Td(e),E=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(d=n[h],!(De[h]&&cd(h,n,r,i,e,s)))){if(m=typeof d,p=mi[h],m==="function"&&(d=d.call(r,i,e,s),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=ir(d)),p)p(this,e,h,d,r)&&(y=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),d+="",Et.lastIndex=0,Et.test(u)||(g=ye(u),w=ye(d)),w?g!==w&&(u=Bt(e,h,u,w)+w):g&&(d+=g),this.add(a,"setProperty",u,d,i,s,0,0,h),l.push(h),E.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,s):c[h],ce(u)&&~u.indexOf("random(")&&(u=ir(u)),ye(u+"")||u==="auto"||(u+=Fe.units[h]||ye(ut(e,h))||""),(u+"").charAt(1)==="="&&(u=ut(e,h))):u=ut(e,h),_=parseFloat(u),b=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),b&&(d=d.substr(2)),f=parseFloat(d),h in tt&&(h==="autoAlpha"&&(_===1&&ut(e,"visibility")==="hidden"&&f&&(_=0),E.push("visibility",0,a.visibility),Ft(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=tt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in ct,S){if(this.styles.save(h),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||dr(e,n.parseTransform),k=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Ce(this._pt,a,Q,0,1,T.renderTransform,T,0,-1),C.dep=1),h==="scale")this._pt=new Ce(this._pt,T,"scaleY",T.scaleY,(b?In(T.scaleY,b+f):f)-T.scaleY||0,as),this._pt.u=0,l.push("scaleY",h),h+="X";else if(h==="transformOrigin"){E.push(Ie,0,a[Ie]),d=E2(d),T.svg?_s(e,d,0,k,0,this):(w=parseFloat(d.split(" ")[2])||0,w!==T.zOrigin&&Ft(this,T,"zOrigin",T.zOrigin,w),Ft(this,a,h,hi(u),hi(d)));continue}else if(h==="svgOrigin"){_s(e,d,1,k,0,this);continue}else if(h in Od){B2(this,T,h,_,b?In(_,b+d):d);continue}else if(h==="smoothOrigin"){Ft(this,T,"smooth",T.smooth,d);continue}else if(h==="force3D"){T[h]=d;continue}else if(h==="transform"){D2(this,d,e);continue}}else h in a||(h=Pn(h)||h);if(S||(f||f===0)&&(_||_===0)&&!f2.test(d)&&h in a)g=(u+"").substr((_+"").length),f||(f=0),w=ye(d)||(h in Fe.units?Fe.units[h]:g),g!==w&&(_=Bt(e,h,u,w)),this._pt=new Ce(this._pt,S?T:a,h,_,(b?In(_,b+f):f)-_,!S&&(w==="px"||h==="zIndex")&&n.autoRound!==!1?h2:as),this._pt.u=w||0,g!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=m2);else if(h in a)C2.call(this,e,h,u,b?b+d:d);else if(h in e)this.add(e,h,u||e[h],b?b+d:d,i,s);else if(h!=="parseTransform"){Mo(h,d);continue}S||(h in a?E.push(h,0,a[h]):E.push(h,1,u||e[h])),l.push(h)}}y&&hd(this)},render:function(e,n){if(n.tween._time||!ss())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:ut,aliases:tt,getSetter:function(e,n,r){var i=tt[n];return i&&i.indexOf(",")<0&&(n=i),n in ct&&n!==Ie&&(e._gsap.x||ut(e,"x"))?r&&xd===r?n==="scale"?x2:y2:(xd=r||{})&&(n==="scale"?b2:w2):e.style&&!Bo(e.style[n])?p2:~n.indexOf("-")?g2:es(e,n)},core:{_removeProperty:Xt,_getMatrix:fs}};Ee.utils.checkPrefix=Pn,Ee.core.getStyleSaver=Td,function(t,e,n,r){var i=Te(t+","+e+","+n,function(s){ct[s]=1});Te(e,function(s){Fe.units[s]="deg",Od[s]=1}),tt[i[13]]=t+","+e,Te(r,function(s){var l=s.split(":");tt[l[1]]=i[l[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"),Te("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),Ee.registerPlugin(Ld);var hs=Ee.registerPlugin(Ld)||Ee;hs.core.Tween;const O2={__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 s(a,c){if(e.disabled){c();return}hs.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}hs.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:s,onLeave:l},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}};class qd extends Co{constructor(n={}){super({showPlaceholder:!0,...n});R(this,"listPosition",0);R(this,"cursorPosition",0);R(this,"initialPosition",0);R(this,"onPositionChangeCb",null);R(this,"onDragPositionChangeCb",null);R(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 s=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<s.top+s.height/2)break}else if(n.x<s.left+s.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const s=f=>f*5,l=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-l,d=l-(c-r);u>0?i=-s(u):d>0&&(i=s(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 A2={class:"flex items-center"},$2={key:0},P2={class:"flex-grow"},Vd={__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((s,l)=>{if(n("position",s),r.listItems){const a=[...r.listItems];a.splice(s,0,a.splice(l,1)[0]),n("update:list-items",a)}});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",A2,[t.showHandle?(o.openBlock(),o.createElementBlock("div",$2,[o.createVNode(o.unref(pu),{svg:o.unref(iu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",P2,[o.renderSlot(s.$slots,"default")])])],32))}},M2=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),L2={__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 s(u){return!r.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=qn(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){Ye.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=qn(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(hu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[M2,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(To),{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(ku),{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(Vd),{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(To),{column:f,visible:s(f),"is-title":a(f),onVisible:m=>l(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Ud={__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-base"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},q2={"!visible":"_!visible_1r1x4_1",visible:"_visible_1r1x4_1",collapse:"_collapse_1r1x4_1",static:"_static_1r1x4_1",absolute:"_absolute_1r1x4_1",relative:"_relative_1r1x4_1",sticky:"_sticky_1r1x4_1","bottom-1":"_bottom-1_1r1x4_1","left-0":"_left-0_1r1x4_1","right-0":"_right-0_1r1x4_1","right-1":"_right-1_1r1x4_1","right-4":"_right-4_1r1x4_1","top-0":"_top-0_1r1x4_1","top-1":"_top-1_1r1x4_1","top-4":"_top-4_1r1x4_1","m-2":"_m-2_1r1x4_1","m-4":"_m-4_1r1x4_1","mx-1":"_mx-1_1r1x4_1","mx-4":"_mx-4_1r1x4_1","mx-auto":"_mx-auto_1r1x4_1","my-2":"_my-2_1r1x4_1","!mr-1":"_!mr-1_1r1x4_1","mb-2":"_mb-2_1r1x4_1","mb-4":"_mb-4_1r1x4_1","ml-1":"_ml-1_1r1x4_1","ml-2":"_ml-2_1r1x4_1","ml-2.5":"_ml-2.5_1r1x4_1","ml-3":"_ml-3_1r1x4_1","ml-4":"_ml-4_1r1x4_1","ml-5":"_ml-5_1r1x4_1","ml-[-.2em]":"_ml-[-.2em]_1r1x4_1","mr-1":"_mr-1_1r1x4_1","mr-2":"_mr-2_1r1x4_1","mr-3":"_mr-3_1r1x4_1","mt-1":"_mt-1_1r1x4_1","mt-2":"_mt-2_1r1x4_1","mt-3":"_mt-3_1r1x4_1","mt-4":"_mt-4_1r1x4_1",block:"_block_1r1x4_1","inline-block":"_inline-block_1r1x4_1",inline:"_inline_1r1x4_1",flex:"_flex_1r1x4_1",table:"_table_1r1x4_1",hidden:"_hidden_1r1x4_1","h-10":"_h-10_1r1x4_1","h-4":"_h-4_1r1x4_1","h-5":"_h-5_1r1x4_1","h-8":"_h-8_1r1x4_1","h-full":"_h-full_1r1x4_1","max-h-full":"_max-h-full_1r1x4_1","w-16":"_w-16_1r1x4_1","w-2/5":"_w-2/5_1r1x4_1","w-24":"_w-24_1r1x4_1","w-3":"_w-3_1r1x4_1","w-3/5":"_w-3/5_1r1x4_1","w-32":"_w-32_1r1x4_1","w-4":"_w-4_1r1x4_1","w-48":"_w-48_1r1x4_1","w-5":"_w-5_1r1x4_1","w-6":"_w-6_1r1x4_1","w-7":"_w-7_1r1x4_1","w-72":"_w-72_1r1x4_1","w-8":"_w-8_1r1x4_1","w-[13.5rem]":"_w-[13.5rem]_1r1x4_1","w-[35.5rem]":"_w-[35.5rem]_1r1x4_1","w-[6.5rem]":"_w-[6.5rem]_1r1x4_1","w-full":"_w-full_1r1x4_1","!min-w-0":"_!min-w-0_1r1x4_1","max-w-[50em]":"_max-w-[50em]_1r1x4_1","max-w-full":"_max-w-full_1r1x4_1","flex-shrink-0":"_flex-shrink-0_1r1x4_1","flex-grow":"_flex-grow_1r1x4_1",grow:"_grow_1r1x4_1","rotate-180":"_rotate-180_1r1x4_1",transform:"_transform_1r1x4_1","cursor-ew-resize":"_cursor-ew-resize_1r1x4_1","cursor-move":"_cursor-move_1r1x4_1","cursor-not-allowed":"_cursor-not-allowed_1r1x4_1","cursor-ns-resize":"_cursor-ns-resize_1r1x4_1","cursor-pointer":"_cursor-pointer_1r1x4_1",resize:"_resize_1r1x4_1","flex-col":"_flex-col_1r1x4_1","flex-nowrap":"_flex-nowrap_1r1x4_1","items-center":"_items-center_1r1x4_1","items-stretch":"_items-stretch_1r1x4_1","justify-start":"_justify-start_1r1x4_1","justify-end":"_justify-end_1r1x4_1","justify-center":"_justify-center_1r1x4_1","justify-between":"_justify-between_1r1x4_1","gap-y-0":"_gap-y-0_1r1x4_1","gap-y-1":"_gap-y-1_1r1x4_1","space-x-1":"_space-x-1_1r1x4_1","space-x-2":"_space-x-2_1r1x4_1","self-center":"_self-center_1r1x4_1","overflow-auto":"_overflow-auto_1r1x4_1","overflow-hidden":"_overflow-hidden_1r1x4_1","overflow-y-auto":"_overflow-y-auto_1r1x4_16","overflow-x-hidden":"_overflow-x-hidden_1r1x4_1","scroll-smooth":"_scroll-smooth_1r1x4_1","overflow-ellipsis":"_overflow-ellipsis_1r1x4_1","whitespace-nowrap":"_whitespace-nowrap_1r1x4_1",rounded:"_rounded_1r1x4_1","rounded-2xl":"_rounded-2xl_1r1x4_1","rounded-lg":"_rounded-lg_1r1x4_1","rounded-md":"_rounded-md_1r1x4_1","!rounded-l-none":"_!rounded-l-none_1r1x4_1","!rounded-r-none":"_!rounded-r-none_1r1x4_1","rounded-b-lg":"_rounded-b-lg_1r1x4_1","rounded-t-lg":"_rounded-t-lg_1r1x4_1","rounded-t-md":"_rounded-t-md_1r1x4_1","!border-0":"_!border-0_1r1x4_1",border:"_border_1r1x4_1","border-b":"_border-b_1r1x4_1","border-l":"_border-l_1r1x4_1","border-l-0":"_border-l-0_1r1x4_1","border-r":"_border-r_1r1x4_1","border-t":"_border-t_1r1x4_1","border-solid":"_border-solid_1r1x4_1","border-dashed":"_border-dashed_1r1x4_1","border-blue-600":"_border-blue-600_1r1x4_1","border-gray-200":"_border-gray-200_1r1x4_1","border-gray-300":"_border-gray-300_1r1x4_1","!bg-blue-600":"_!bg-blue-600_1r1x4_1","bg-blue-600":"_bg-blue-600_1r1x4_1","bg-gray-100":"_bg-gray-100_1r1x4_1","bg-gray-200":"_bg-gray-200_1r1x4_1","bg-gray-500":"_bg-gray-500_1r1x4_1","bg-green-300":"_bg-green-300_1r1x4_1","bg-red-300":"_bg-red-300_1r1x4_1","bg-slate-100":"_bg-slate-100_1r1x4_1","bg-slate-200":"_bg-slate-200_1r1x4_1","bg-transparent":"_bg-transparent_1r1x4_1","bg-white":"_bg-white_1r1x4_1","bg-yellow-300":"_bg-yellow-300_1r1x4_1","!p-1":"_!p-1_1r1x4_1","!p-2":"_!p-2_1r1x4_1","p-1":"_p-1_1r1x4_1","p-2":"_p-2_1r1x4_1","p-3":"_p-3_1r1x4_1","p-4":"_p-4_1r1x4_1","!py-0":"_!py-0_1r1x4_1","px-1":"_px-1_1r1x4_1","px-12":"_px-12_1r1x4_1","px-2":"_px-2_1r1x4_1","px-2.5":"_px-2.5_1r1x4_1","px-4":"_px-4_1r1x4_1","px-6":"_px-6_1r1x4_1","px-8":"_px-8_1r1x4_1","py-1":"_py-1_1r1x4_1","py-14":"_py-14_1r1x4_1","py-2":"_py-2_1r1x4_1","py-2.5":"_py-2.5_1r1x4_1","py-3":"_py-3_1r1x4_1","py-4":"_py-4_1r1x4_1","py-8":"_py-8_1r1x4_1","!pl-4":"_!pl-4_1r1x4_1","!pl-5":"_!pl-5_1r1x4_1","pl-2":"_pl-2_1r1x4_1","pl-6":"_pl-6_1r1x4_1","pr-10":"_pr-10_1r1x4_1","text-left":"_text-left_1r1x4_1","text-center":"_text-center_1r1x4_1","text-right":"_text-right_1r1x4_1","!text-xs":"_!text-xs_1r1x4_1","text-[1rem]":"_text-[1rem]_1r1x4_1","text-sm":"_text-sm_1r1x4_1","text-xs":"_text-xs_1r1x4_1","font-bold":"_font-bold_1r1x4_1","font-medium":"_font-medium_1r1x4_1","font-normal":"_font-normal_1r1x4_1","font-semibold":"_font-semibold_1r1x4_1",uppercase:"_uppercase_1r1x4_1","leading-[1.2rem]":"_leading-[1.2rem]_1r1x4_1","!text-green-900":"_!text-green-900_1r1x4_1","!text-red-900":"_!text-red-900_1r1x4_1","!text-yellow-900":"_!text-yellow-900_1r1x4_1","text-black":"_text-black_1r1x4_1","text-blue-600":"_text-blue-600_1r1x4_1","text-gray-500":"_text-gray-500_1r1x4_1","text-white":"_text-white_1r1x4_1","line-through":"_line-through_1r1x4_1","opacity-50":"_opacity-50_1r1x4_1","opacity-70":"_opacity-70_1r1x4_1","shadow-none":"_shadow-none_1r1x4_1","outline-none":"_outline-none_1r1x4_1",outline:"_outline_1r1x4_1",filter:"_filter_1r1x4_1",transition:"_transition_1r1x4_1","transition-all":"_transition-all_1r1x4_1","duration-300":"_duration-300_1r1x4_1","q-tab-panels":"_q-tab-panels_1r1x4_4","q-panel":"_q-panel_1r1x4_7",scroll:"_scroll_1r1x4_10","q-tab-panel":"_q-tab-panel_1r1x4_4","q-toolbar":"_q-toolbar_1r1x4_20","q-notification__actions":"_q-notification__actions_1r1x4_25","category-toggle":"_category-toggle_1r1x4_29","has-visible-columns":"_has-visible-columns_1r1x4_32","hover:text-blue-600":"_hover:text-blue-600_1r1x4_1","hover:opacity-100":"_hover:opacity-100_1r1x4_1"},V2={class:"flex items-center flex-nowrap"},U2=["onClick"],R2={class:"text-xs"},v2=kt({__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(""),s=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function l(m){return r.columns.filter(p=>p.category===m)}function a(m){return l(m).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(m){let p=l(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=qn(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",V2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,b=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(_(b))},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(b),class:"mr-2 cb-white-border",onClick:S=>u(l(b),!a(b))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(b),1),o.createVNode(o.unref(ru),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===b}])},null,8,["class"]),o.createVNode(w,{"onUpdate:modelValue":S=>i.value=S?b:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(b),S=>(o.openBlock(),o.createElementBlock("div",{key:S,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(S.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(S.name),class:"mr-3 cb-white-border",size:"20px",color:S.required?"gray-base":"blue-600",disable:S.required,onClick:C=>d(S.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",R2,o.toDisplayString(S.label),1)],8,U2))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:q2}]]),z2={__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(gu),{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(Jd),{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-dark ml-1 text-xs bottom-1 relative"},en={__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,s;return((i=e.field)==null?void 0:i.required_group)||(e.required||(s=e.field)!=null&&s.required?"*":"")});return(i,s)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var l;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),t.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((l=t.field)==null?void 0:l.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",j2,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},ps={__name:"BooleanField",props:{modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate: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,"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(en),{field:t.field,"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","toggle-indeterminate"])}}},G2={for:"first_name",class:"form-label"},Z2={class:"mt-1"},gs={__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",G2,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Z2,[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"])])])}}},H2={__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(gs),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},W2={key:0,class:"font-bold text-xs mb-2"},Y2={class:"flex items-center cursor-pointer"},Q2={class:"font-bold ml-3 hover:text-blue-600"},ys={__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?Xe(Mr(r.modelValue||"0000-00-00")):null),s=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.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",W2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Y2,[o.createVNode(o.unref(Jc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",Q2,[s.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:s.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>s.value=f),l]},null,8,["modelValue"])]),_:1})])}}},X2={key:0,class:"font-bold text-xs mb-2"},K2={class:"flex items-center cursor-pointer"},J2={class:"font-bold ml-3 hover:text-blue-600"},xs={__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:Xe(Ri(a.value.from||"0000-00-00")),to:Xe(Ri(a.value.to||"9999-12-31"))}:{from:Xe(Mr(a.value.from||"0000-00-00")),to:Xe(Mr(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=o.ref(l(r.modelValue));o.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?Xe(u.from)===Xe(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.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",X2,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.inline?(o.openBlock(),o.createBlock(f,{key:1,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",K2,[o.createVNode(o.unref(Jc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",J2,[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:s.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>s.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},ew={class:"flex items-center justify-center"},tw={key:0,class:"flex-grow"},bs={__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:()=>zi(Ui(r.modelValue)),set(s){const l=s?zi(ca(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{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":l[3]||(l[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",ew,[t.nullable?(o.openBlock(),o.createElementBlock("div",tw,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":l[4]||(l[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},nw={__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),s=o.ref(r.modelValue);function l(){n("update:model-value",s.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(hn)(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(bs),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=_=>s.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},rw={__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),s=pr(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function l(a){i.value=a.target.innerText,s()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-light focus:bg-blue-light transition duration-300 outline-none",onInput:l},o.toDisplayString(i.value),33))}},iw=["accept","capture"],ow={__name:"FileUploadButton",props:{...W.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,i=t,s=o.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new Kr(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(W.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(Ty),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation?"image/*;capture=camera":void 0,capture:t.geolocation?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,iw)]),_:3},16))}},sw={class:"inline-block"},lw={class:"cursor-pointer py-2 hover:bg-blue-light flex items-center justify-end"},aw={__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,s)=>{const l=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",lw,[o.createTextVNode(o.toDisplayString(o.unref(hn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(Ny),{class:"w-4 font-bold ml-2 text-gray-base"}),o.createVNode(l,{"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(bs),{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"])])])}}},_r={__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(l(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=l(r.modelValue));const s=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function l(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}),qt(u,f)}const a=pr(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=l(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-"+s.value.id,placeholder:s.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(en),{field:s.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["model-value","data-testid","placeholder","input-class","class"])}}},Rd={__name:"IntegerField",props:{modelValue:{type:[String,Number],required:!0},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(_r),{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"]))}},cw={class:"text-xs font-bold"},vd={__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",cw,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)]))}},uw={key:0,class:"text-sm my-2"},dw={class:"max-w-[50em] flex items-stretch justify-start"},fw={key:1,class:"p-1"},zd={__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:s,onFilesSelected:l,uploadedFiles:a,onClear:c,onRemove:u}=Yc();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-medium":!t.readonly}]),onDragover:f[4]||(f[4]=o.withModifiers(()=>{},["prevent"])),onDrop:f[5]||(f[5]=o.withModifiers((..._)=>o.unref(s)&&o.unref(s)(..._),["prevent"]))},[o.createVNode(o.unref(en),{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",uw,[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-dark",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(l)&&o.unref(l)(..._))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",dw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(Sn),{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(Sn),{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",fw," -- ")):o.createCommentVNode("",!0)])],34))}},mr={__name:"SelectField",props:{...W.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),s=o.ref(null),l=o.ref(!1),a=o.computed(()=>{let k=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(k=[{label:r.placeholder,value:null},...r.options]),k=k.map(y=>{let E=o.isRef(y)?y.value:y;return{label:m(E),value:h(E),selectionLabel:p(E)}}),k}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(k=>k.label.toLocaleLowerCase().indexOf(s.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 k=u.value;return r.multiple||(k=k||k===0?[k]:[]),a.value.filter(y=>{var E;return k.includes(y.value)||k.map(I=>typeof I=="object"&&I.id).includes((E=y.value)==null?void 0:E.id)})}),f=o.computed(()=>r.filterable&&l.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(k){return typeof k=="string"?k:typeof r.optionLabel=="string"?k[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(k):k==null?void 0:k.label}function p(k){return typeof k=="string"?k:typeof r.selectionLabel=="string"?k[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(k):(k==null?void 0:k.selectionLabel)||(k==null?void 0:k.label)}function h(k){if(typeof k=="string")return k;let y=k.value;return typeof r.optionValue=="string"?y=k[r.optionValue]:typeof r.optionValue=="function"&&(y=r.optionValue(k)),y===null?"__null__":y}function g(k){Array.isArray(k)&&(k=k.map(y=>y==="__null__"?null:y)),k=k==="__null__"?null:k,n("update",k),n("update:model-value",k)}const w=o.ref(!1);async function b(k,y){if(!r.filterFn)s.value=k,await o.nextTick(y);else{if(y(),w.value===!1)return;k!==null&&k!==s.value&&(s.value=k,r.filterFn&&await r.filterFn(k))}}function S(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,w.value=!1,o.nextTick(()=>{w.value=!0,i.value.focus()})}function T(){l.value=!1,w.value=!1}return(k,y)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(W.QSelect),o.mergeProps({ref_key:"selectField",ref:i},k.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&l.value&&!k.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"","input-class":{"is-hidden":!l.value,[t.inputClass]:!0},class:"max-w-full",onFilter:b,onClear:S,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":g}),{append:o.withCtx(()=>[o.createVNode(o.unref(my),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[k.$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,I=>(o.openBlock(),o.createBlock(E,{key:"selected-"+I.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(I.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(E,{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"])])}}},_w={key:1},ws={__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-shadow"},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,s,l;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-"+((s=t.field)==null?void 0:s.id),placeholder:(l=t.field)==null?void 0:l.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(en),{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",_w,[o.createVNode(o.unref(vd),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},jd={__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),s=o.computed(()=>r.modelValue&&r.modelValue[i.value]),l=o.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[i.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(mr),{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(ws),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-gray-dark","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},mw={__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(gs),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},hw={key:0,class:"font-bold text-xs mb-2"},pw={class:"flex items-center flex-nowrap cursor-pointer"},gw={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},pi={__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?"%":""),s=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),l=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?hy:r.percent?cu:wy)),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?ji(_):r.percent?ua(_,{multiplier:1,maximumFractionDigits:2}):qt(_)}const f=pr(()=>{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",hw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",pw,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",gw,[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(_r),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=h=>c.value.from=h),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(_r),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=h=>c.value.to=h),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},yw=["data-dusk","onClick"],xw={__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),s=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(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(Io),{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(s.value,p=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-gray-light px-8 py-3 flex items-center border-b border-gray-light",onClick:h=>u(p)},[o.createVNode(_,{"model-value":c(p),class:"mr-2"},null,8,["model-value"]),o.renderSlot(d.$slots,"option",{opt:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],8,yw))),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)])}}},bw={key:0,class:"text-gray-silver"},ww={key:1},kw={class:"text-xs text-gray-silver"},Gd={__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 s=o.ref(i()),l=o.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=qn(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{s.value=i(),l.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",bw,"No options available")):o.createCommentVNode("",!0),o.createVNode(o.unref(mr),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.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"]),s.value?(o.openBlock(),o.createElementBlock("div",ww,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":l.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",kw,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},Sw={key:0,class:"text-sm mt-2"},Tw={key:2,class:"py-1"},Zd={__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:s,onFileSelected:l,uploadedFile:a,onClear:c}=Kc();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-medium text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(s)&&o.unref(s)(...f),["prevent"]))},[o.createVNode(o.unref(en),{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",Sw,[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-dark",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(l)&&o.unref(l)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Sn),{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",Tw,"-- ")):o.createCommentVNode("",!0)],34))}};var Cw=["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"],Ew=function(t){return Cw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Iw=function(t,e,n){Object.keys(e).filter(Ew).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(s){return i(s,n)}))})},Nw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,s=Array.isArray(i)?i.join(" "):i;o.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},Fw=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&Nw(e,n,r,i),Iw(t,n.attrs,r)},Hd=0,Wd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Hd++,t+"_"+n+Hd+String(e)},Bw=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Yd=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Dw=function(t,e){return Yd(t).concat(Yd(e))},Ow=function(t){return t==null},Qd=function(){return{listeners:[],scriptId:Wd("tiny-script"),scriptLoaded:!1}},Aw=function(){var t=Qd(),e=function(i,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(i,s,l){t.scriptLoaded?l():(t.listeners.push(l),i.getElementById(t.scriptId)||e(t.scriptId,i,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=Qd()};return{load:n,reinitialize:r}},$w=Aw(),Pw=function(){return typeof window<"u"?window:global},tn=function(){var t=Pw();return t&&t.tinymce?t.tinymce:null},Mw={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"}}},rt=function(){return rt=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},rt.apply(this,arguments)},Lw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},qw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ks={selector:void 0,target:void 0},Vw=o.defineComponent({props:Mw,setup:function(t,e){var n=t.init?rt(rt({},t.init),ks):rt({},ks),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||Wd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",p="",h=function(b){return f?function(){return s!=null&&s.value?s.value:""}:function(){return b?m:p}},g=function(){var b=h(_),S=rt(rt({},n),{readonly:t.disabled,target:a.value,plugins:Dw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return Fw(T,t,e,C,s,b)}),typeof n.setup=="function"&&n.setup(C)}});Bw(a.value)&&(a.value.style.visibility=""),tn().init(S),_=!1};o.watch(i,function(b){var S;c!==null&&(typeof((S=c.mode)===null||S===void 0?void 0:S.set)=="function"?c.mode.set(b?"readonly":"design"):c.setMode(b?"readonly":"design"))}),o.watch(l,function(b){var S;f||(p=c.getContent()),(S=tn())===null||S===void 0||S.remove(c),o.nextTick(function(){return g()})}),o.onMounted(function(){if(tn()!==null)g();else if(a.value&&a.value.ownerDocument){var b=t.cloudChannel?t.cloudChannel:"6",S=t.apiKey?t.apiKey:"no-api-key",C=Ow(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(S,"/tinymce/").concat(b,"/tinymce.min.js"):t.tinymceScriptSrc;$w.load(a.value.ownerDocument,C,g)}}),o.onBeforeUnmount(function(){tn()!==null&&tn().remove(c)}),d||(o.onActivated(function(){_||g()}),o.onDeactivated(function(){var b;f||(p=c.getContent()),(b=tn())===null||b===void 0||b.remove(c)}));var w=function(b){var S;p=c.getContent(),(S=tn())===null||S===void 0||S.remove(c),n=rt(rt(rt({},n),b),ks),o.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?Lw(o.h,u,a,t.tagName):qw(o.h,u,a)}}});const Uw="YOUR_API_KEY",Rw=["innerHTML"],Xd={__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(en),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-shadow 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,Rw)):(o.openBlock(),o.createBlock(o.unref(Vw),{key:2,class:"mt-2","api-key":o.unref(Uw),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"]))]))}},vw={key:1,class:"mt-2"},zw={class:"text-xs font-bold"},jw=o.createElementVNode("div",{class:"text-sm ml-3 py-2"},"No Available Options",-1),Ss={__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(s){let l=s||void 0;switch(r.field.type){case"multi-select":l=s.length>0?s:void 0;break;case"single-select":case"boolean":l=s===null?void 0:s;break}n("update:model-value",l)}return(s,l)=>{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(mr),{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",vw,[o.createElementVNode("div",zw,o.toDisplayString(t.field.label),1),jw]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(mr),{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(ys),{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(xs),{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(pi),{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(pi),{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(pi),{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(ps),{key:7,field:t.field,"model-value":t.modelValue,class:"mt-2","label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value"])):t.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(jd),{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(Gd),{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))])}}},Gw={class:"flex items-center flex-nowrap flex-grow"},Zw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},Kd={__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",Gw,[o.createElementVNode("div",Zw,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-base":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},Hw={class:"px-4 py-2 max-w-full"},Jd={__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 l={};for(const a of r.filterFields)l[a.name]=a.fields.filter(c=>r.filter[c.name]!==void 0).length;return l});function s(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...r.filter,...c})}return(l,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Hw,[(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(Ss),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>s(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(Kd),{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(Ss),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.filter):t.filter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>s(_,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})}}},Ww={class:"flex-grow"},ef={__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 s=o.resolveComponent("QBadge"),l=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",Ww,[o.createVNode(l,{class:o.normalizeClass(["btn-blue-highlight",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(su),{class:"w-5 mr-2"}),o.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-base"},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-plus-1 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},Yw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Qw={class:"flex-grow"},Xw={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Kw={__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(s,l)=>(o.openBlock(),o.createElementBlock("div",Yw,[o.createVNode(o.unref(ef),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Qw,[o.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Xw,[s.$slots.default?(o.openBlock(),o.createBlock(o.unref(W.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},Jw={class:"rendered-form"},ek={__name:"RenderedForm",props:{values:{type:Object,default:null},fields:{type:Array,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:values"],setup(t,{emit:e}){const n=e,r=t,i={BOOLEAN:ps,DATE:ys,DATE_RANGE:xs,INTEGER:Rd,NUMBER:_r,TEXT:ws,SINGLE_FILE:Zd,MULTI_FILE:zd,WYSIWYG:Xd},s=r.fields.map(c=>({placeholder:`Enter ${c.label}`,...c,component:i[c.type],default:c.type==="BOOLEAN"?!1:""})),l=o.reactive(r.values||{});function a(c,u){n("update:values",{...l,[c]:u})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",Jw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:d.id,class:o.normalizeClass({"mt-4":f>0})},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.component),{modelValue:l[d.name],"onUpdate:modelValue":[_=>l[d.name]=_,_=>a(d.name,_)],field:d,label:d.label||void 0,"no-label":t.noLabel,"show-name":t.showName,disable:t.disable,readonly:t.readonly},null,8,["modelValue","onUpdate:modelValue","field","label","no-label","show-name","disable","readonly"]))],2))),128))]))}},tk={},nk={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},rk={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function ik(t,e){return o.openBlock(),o.createElementBlock("div",nk,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",rk,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const ok=kt(tk,[["render",ik]]);function tf(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 nf(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 rf(t,e=null){const n={},r=Xc("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(s=>{(!e||e.includes(s))&&(n[s]=i[s])})}return n}function sk(t,{listRoute:e,summaryRoute:n=null,filterFieldOptionsRoute:r=null,moreRoute:i=null,itemDetailsRoute:s=null,refreshFilters:l=!1,urlPattern:a=null,filterDefaults:c={}}){let u=!1;const d=`${t}-pagination-settings`,f=o.ref(null),_=o.ref({}),m=o.ref({}),p=o.ref(!1),h=o.ref([]),g=o.ref(!1),w=o.ref(!1),b=o.ref(null),S=o.ref({}),C=o.ref(!1),T=o.computed(()=>Object.keys(_.value).filter(D=>_.value[D]!==void 0).length),k={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},y=o.ref(k),E=o.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{..._.value,...m.value},sort:y.value.__sort||void 0}));o.watch(E,()=>{Dt(),I()}),o.watch(_,()=>{Dt(),$()}),o.watch(h,$),l&&o.watch(_,U);async function I(){u&&(g.value=!0,j(await e(E.value)),g.value=!1)}async function $(){if(!n||!u)return;w.value=!0;const D={id:null,..._.value,...m.value};h.value.length&&(D.id=h.value.map(X=>X.id)),b.value=await n(D),w.value=!1}async function U(){!r||!u||(C.value=!0,S.value=await r(_.value),C.value=!1)}function z(D,X=null){var fe;if(D.match(a)){const nn=(fe=X==null?void 0:X.value)==null?void 0:fe.map(Ln=>Ln.fields.map(Uk=>Uk.name)).flat(),rn=rf(D,nn);Object.keys(rn).length>0&&(_.value=rn,$e("filter",_.value))}}function j(D){Array.isArray(D)?f.value={data:D,meta:{total:D.length}}:(f.value=D,D!=null&&D.meta&&D.meta.total!==y.value.rowsNumber&&(y.value.rowsNumber=D.meta.total))}function ae(){y.value=k}function se(D){var fe,nn,rn;const X=(nn=(fe=f.value)==null?void 0:fe.data)==null?void 0:nn.map(Ln=>Ln.id===D.id&&(Ln.updated_at===null||Ln.updated_at<=D.updated_at)?D:Ln);f.value={...f.value,data:X},((rn=de.value)==null?void 0:rn.id)===D.id&&(de.value={...de.value,...D})}async function ee(D,X=void 0){const fe=await i({page:D+1,perPage:X,filter:{..._.value,...m.value}});return fe&&fe.length>0?(f.value.data=[...f.value.data,...fe],!0):!1}async function le(){return Promise.all([I(),$(),U(),hr()])}function $e(D,X){const fe=wt(d)||{};fe[D]=X,bt(d,fe)}function Mn(){if(!u)return;const D=wt(d);D?(_.value={...D.filter,..._.value},y.value=D.quasarPagination):_.value={...c,..._.value},setTimeout(()=>{g.value||I(),w.value||$(),C.value||U()},1)}async function Dt(){const D={filter:_.value,quasarPagination:{...y.value,page:1}};bt(d,D)}const de=o.ref(null),it=o.ref(null);async function hr(){var X;if(!de.value||!s)return;const D=await s(de.value);(D==null?void 0:D.id)===((X=de.value)==null?void 0:X.id)&&(de.value=D)}s&&o.watch(()=>de.value,async(D,X)=>{D&&(X==null?void 0:X.id)!==D.id&&await hr()});function We(D,X){de.value=D,it.value=X}async function dt(D){var nn;const X=(nn=f.value)==null?void 0:nn.data.findIndex(rn=>rn.id===de.value.id);if(X===void 0)return;let fe=X+D;if(fe<0)if(y.value.page>1)y.value={...y.value,page:y.value.page-1},await gi(g,!1),fe=f.value.data.length-1;else return;if(fe>=f.value.data.length)if(y.value.page<f.value.meta.last_page)y.value={...y.value,page:y.value.page+1},await gi(g,!1),fe=0;else return;de.value=f.value.data[fe]}function Vk(){u=!0,Mn()}return{pagedItems:f,filter:_,globalFilter:m,filterActiveCount:T,showFilters:p,summary:b,filterFieldOptions:S,selectedRows:h,isLoadingList:g,isLoadingFilters:C,isLoadingSummary:w,pager:E,quasarPagination:y,activeItem:de,activePanel:it,initialize:Vk,loadSummary:$,resetPaging:ae,loadList:I,loadMore:ee,refreshAll:le,getNextItem:dt,activatePanel:We,applyFilterFromUrl:z,setItemInPagedList:se}}function lk(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(wt(n)||[]),l=o.ref(wt(r,[])),a=o.ref(wt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,p)=>{const h=s.value.indexOf(m.name),g=s.value.indexOf(p.name);return h===-1?1:g===-1?-1:h-g})),d=o.computed({get(){return u.value.slice(1)},set(m){s.value=[...c.value.map(p=>p.name),...m.map(p=>p.name)],bt(n,s.value)}}),f=o.computed(()=>u.value.filter(m=>!l.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>l.value,()=>bt(r,l.value)),o.watch(()=>a.value,()=>bt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:_}}const of={__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(l=>Array.isArray(e.target)?l.batchEnabled?l.batchEnabled(e.target):!0:l.enabled?l.enabled(e.target):!0)),i=o.ref(!1);async function s(l){if(!l.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 l.trigger(e.target),i.value=!1}return(l,a)=>(o.openBlock(),o.createBlock(o.unref(wu),{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:s},null,8,["items","disabled","tooltip","loading","loading-component"]))}},ak={class:"flex-grow overflow-hidden"},ck={key:0,class:"flex flex-shrink-0 pl-2"},sf={__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),s=o.computed(()=>r.value.isSaving&&r.value.isSaving(n.value)),l=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return c?{width:`${c}px`}:null}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":s.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(W.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(l.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",ak,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,onClick:u[0]||(u[0]=d=>r.value.onClick(n.value)),class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(Tn),{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(Tn),{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(Ud),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",ck,[o.createVNode(o.unref(of),{actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},uk={class:"flex items-center justify-center text-sm py-14 w-full"},dk={key:0},fk={key:1},lf={__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",uk,[t.loading?(o.openBlock(),o.createElementBlock("div",dk,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(W.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",fk,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(W.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},_k={class:"flex flex-nowrap items-center"},mk={key:0,class:"flex items-center"},hk={key:1},af={__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 s=e.summary[i.name];return s===void 0?"":i.format?i.format(s):s}return(i,s)=>(o.openBlock(),o.createBlock(o.unref(W.QTr),{class:o.normalizeClass(["sticky-column-1 transition-all sticky-row",{"!bg-neutral-plus-7":!t.selectedCount,"!bg-blue-600 text-white selected":t.selectedCount,"opacity-50":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(W.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["font-bold transition-all",{"!bg-neutral-plus-7 !pl-5":!t.selectedCount,"!bg-blue-600 text-white !pl-4":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",_k,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",mk,[o.createVNode(o.unref(Dy),{class:"w-6 mr-3",onClick:s[0]||(s[0]=l=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(qt)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",hk,o.toDisplayString(o.unref(qt)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(W.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,l=>(o.openBlock(),o.createBlock(o.unref(W.QTd),{key:l.name,align:l.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(l)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},pk={"!visible":"_!visible_1cfc0_1",visible:"_visible_1cfc0_1",collapse:"_collapse_1cfc0_1",static:"_static_1cfc0_1",absolute:"_absolute_1cfc0_1",relative:"_relative_1cfc0_1",sticky:"_sticky_1cfc0_1","bottom-1":"_bottom-1_1cfc0_1","left-0":"_left-0_1cfc0_1","right-0":"_right-0_1cfc0_1","right-1":"_right-1_1cfc0_1","right-4":"_right-4_1cfc0_1","top-0":"_top-0_1cfc0_1","top-1":"_top-1_1cfc0_1","top-4":"_top-4_1cfc0_1","m-2":"_m-2_1cfc0_1","m-4":"_m-4_1cfc0_1","mx-1":"_mx-1_1cfc0_1","mx-4":"_mx-4_1cfc0_1","mx-auto":"_mx-auto_1cfc0_1","my-2":"_my-2_1cfc0_1","!mr-1":"_!mr-1_1cfc0_1","mb-2":"_mb-2_1cfc0_1","mb-4":"_mb-4_1cfc0_1","ml-1":"_ml-1_1cfc0_1","ml-2":"_ml-2_1cfc0_1","ml-2.5":"_ml-2.5_1cfc0_1","ml-3":"_ml-3_1cfc0_1","ml-4":"_ml-4_1cfc0_1","ml-5":"_ml-5_1cfc0_1","ml-[-.2em]":"_ml-[-.2em]_1cfc0_1","mr-1":"_mr-1_1cfc0_1","mr-2":"_mr-2_1cfc0_1","mr-3":"_mr-3_1cfc0_1","mt-1":"_mt-1_1cfc0_1","mt-2":"_mt-2_1cfc0_1","mt-3":"_mt-3_1cfc0_1","mt-4":"_mt-4_1cfc0_1",block:"_block_1cfc0_1","inline-block":"_inline-block_1cfc0_1",inline:"_inline_1cfc0_1",flex:"_flex_1cfc0_1",table:"_table_1cfc0_1",hidden:"_hidden_1cfc0_1","h-10":"_h-10_1cfc0_1","h-4":"_h-4_1cfc0_1","h-5":"_h-5_1cfc0_1","h-8":"_h-8_1cfc0_1","h-full":"_h-full_1cfc0_1","max-h-full":"_max-h-full_1cfc0_1","w-16":"_w-16_1cfc0_1","w-2/5":"_w-2/5_1cfc0_1","w-24":"_w-24_1cfc0_1","w-3":"_w-3_1cfc0_1","w-3/5":"_w-3/5_1cfc0_1","w-32":"_w-32_1cfc0_1","w-4":"_w-4_1cfc0_1","w-48":"_w-48_1cfc0_1","w-5":"_w-5_1cfc0_1","w-6":"_w-6_1cfc0_1","w-7":"_w-7_1cfc0_1","w-72":"_w-72_1cfc0_1","w-8":"_w-8_1cfc0_1","w-[13.5rem]":"_w-[13.5rem]_1cfc0_1","w-[35.5rem]":"_w-[35.5rem]_1cfc0_1","w-[6.5rem]":"_w-[6.5rem]_1cfc0_1","w-full":"_w-full_1cfc0_1","!min-w-0":"_!min-w-0_1cfc0_1","max-w-[50em]":"_max-w-[50em]_1cfc0_1","max-w-full":"_max-w-full_1cfc0_1","flex-shrink-0":"_flex-shrink-0_1cfc0_1","flex-grow":"_flex-grow_1cfc0_1",grow:"_grow_1cfc0_1","rotate-180":"_rotate-180_1cfc0_1",transform:"_transform_1cfc0_1","cursor-ew-resize":"_cursor-ew-resize_1cfc0_1","cursor-move":"_cursor-move_1cfc0_1","cursor-not-allowed":"_cursor-not-allowed_1cfc0_1","cursor-ns-resize":"_cursor-ns-resize_1cfc0_1","cursor-pointer":"_cursor-pointer_1cfc0_1",resize:"_resize_1cfc0_29","flex-col":"_flex-col_1cfc0_1","flex-nowrap":"_flex-nowrap_1cfc0_1","items-center":"_items-center_1cfc0_1","items-stretch":"_items-stretch_1cfc0_1","justify-start":"_justify-start_1cfc0_1","justify-end":"_justify-end_1cfc0_1","justify-center":"_justify-center_1cfc0_1","justify-between":"_justify-between_1cfc0_1","gap-y-0":"_gap-y-0_1cfc0_1","gap-y-1":"_gap-y-1_1cfc0_1","space-x-1":"_space-x-1_1cfc0_1","space-x-2":"_space-x-2_1cfc0_1","self-center":"_self-center_1cfc0_1","overflow-auto":"_overflow-auto_1cfc0_1","overflow-hidden":"_overflow-hidden_1cfc0_1","overflow-y-auto":"_overflow-y-auto_1cfc0_16","overflow-x-hidden":"_overflow-x-hidden_1cfc0_1","scroll-smooth":"_scroll-smooth_1cfc0_1","overflow-ellipsis":"_overflow-ellipsis_1cfc0_1","whitespace-nowrap":"_whitespace-nowrap_1cfc0_1",rounded:"_rounded_1cfc0_1","rounded-2xl":"_rounded-2xl_1cfc0_1","rounded-lg":"_rounded-lg_1cfc0_1","rounded-md":"_rounded-md_1cfc0_1","!rounded-l-none":"_!rounded-l-none_1cfc0_1","!rounded-r-none":"_!rounded-r-none_1cfc0_1","rounded-b-lg":"_rounded-b-lg_1cfc0_1","rounded-t-lg":"_rounded-t-lg_1cfc0_1","rounded-t-md":"_rounded-t-md_1cfc0_1","!border-0":"_!border-0_1cfc0_1",border:"_border_1cfc0_1","border-b":"_border-b_1cfc0_1","border-l":"_border-l_1cfc0_1","border-l-0":"_border-l-0_1cfc0_1","border-r":"_border-r_1cfc0_1","border-t":"_border-t_1cfc0_1","border-solid":"_border-solid_1cfc0_1","border-dashed":"_border-dashed_1cfc0_1","border-blue-600":"_border-blue-600_1cfc0_1","border-gray-200":"_border-gray-200_1cfc0_1","border-gray-300":"_border-gray-300_1cfc0_1","!bg-blue-600":"_!bg-blue-600_1cfc0_1","bg-blue-600":"_bg-blue-600_1cfc0_1","bg-gray-100":"_bg-gray-100_1cfc0_1","bg-gray-200":"_bg-gray-200_1cfc0_1","bg-gray-500":"_bg-gray-500_1cfc0_1","bg-green-300":"_bg-green-300_1cfc0_1","bg-red-300":"_bg-red-300_1cfc0_1","bg-slate-100":"_bg-slate-100_1cfc0_1","bg-slate-200":"_bg-slate-200_1cfc0_1","bg-transparent":"_bg-transparent_1cfc0_1","bg-white":"_bg-white_1cfc0_1","bg-yellow-300":"_bg-yellow-300_1cfc0_1","!p-1":"_!p-1_1cfc0_1","!p-2":"_!p-2_1cfc0_1","p-1":"_p-1_1cfc0_1","p-2":"_p-2_1cfc0_1","p-3":"_p-3_1cfc0_1","p-4":"_p-4_1cfc0_1","!py-0":"_!py-0_1cfc0_1","px-1":"_px-1_1cfc0_1","px-12":"_px-12_1cfc0_1","px-2":"_px-2_1cfc0_1","px-2.5":"_px-2.5_1cfc0_1","px-4":"_px-4_1cfc0_1","px-6":"_px-6_1cfc0_1","px-8":"_px-8_1cfc0_1","py-1":"_py-1_1cfc0_1","py-14":"_py-14_1cfc0_1","py-2":"_py-2_1cfc0_1","py-2.5":"_py-2.5_1cfc0_1","py-3":"_py-3_1cfc0_1","py-4":"_py-4_1cfc0_1","py-8":"_py-8_1cfc0_1","!pl-4":"_!pl-4_1cfc0_1","!pl-5":"_!pl-5_1cfc0_1","pl-2":"_pl-2_1cfc0_1","pl-6":"_pl-6_1cfc0_1","pr-10":"_pr-10_1cfc0_1","text-left":"_text-left_1cfc0_1","text-center":"_text-center_1cfc0_1","text-right":"_text-right_1cfc0_1","!text-xs":"_!text-xs_1cfc0_1","text-[1rem]":"_text-[1rem]_1cfc0_1","text-sm":"_text-sm_1cfc0_1","text-xs":"_text-xs_1cfc0_1","font-bold":"_font-bold_1cfc0_1","font-medium":"_font-medium_1cfc0_1","font-normal":"_font-normal_1cfc0_1","font-semibold":"_font-semibold_1cfc0_1",uppercase:"_uppercase_1cfc0_1","leading-[1.2rem]":"_leading-[1.2rem]_1cfc0_1","!text-green-900":"_!text-green-900_1cfc0_1","!text-red-900":"_!text-red-900_1cfc0_1","!text-yellow-900":"_!text-yellow-900_1cfc0_1","text-black":"_text-black_1cfc0_1","text-blue-600":"_text-blue-600_1cfc0_1","text-gray-500":"_text-gray-500_1cfc0_1","text-white":"_text-white_1cfc0_1","line-through":"_line-through_1cfc0_1","opacity-50":"_opacity-50_1cfc0_1","opacity-70":"_opacity-70_1cfc0_1","shadow-none":"_shadow-none_1cfc0_1","outline-none":"_outline-none_1cfc0_1",outline:"_outline_1cfc0_1",filter:"_filter_1cfc0_1",transition:"_transition_1cfc0_1","transition-all":"_transition-all_1cfc0_1","duration-300":"_duration-300_1cfc0_1","q-tab-panels":"_q-tab-panels_1cfc0_4","q-panel":"_q-panel_1cfc0_7",scroll:"_scroll_1cfc0_10","q-tab-panel":"_q-tab-panel_1cfc0_4","q-toolbar":"_q-toolbar_1cfc0_20","q-notification__actions":"_q-notification__actions_1cfc0_25","handle-drop-zone":"_handle-drop-zone_1cfc0_29","resize-handle":"_resize-handle_1cfc0_29","hover:text-blue-600":"_hover:text-blue-600_1cfc0_1","hover:opacity-100":"_hover:opacity-100_1cfc0_1"},gk={class:"overflow-hidden w-full"},yk=kt({__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);tf(n);const r=`column-settings-${e.name}`,i=o.ref(wt(r)||{});function s(l,a){i.value={...i.value,[l.name]:{width:Math.max(Math.min(a.distance+a.startDropZoneSize,l.maxWidth||500),l.minWidth||80)}},bt(r,i.value)}return(l,a)=>{var c;return o.openBlock(),o.createElementBlock("div",gk,[o.createVNode(o.unref(xu)),o.createVNode(o.unref(W.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[1]||(a[1]=u=>l.$emit("update:selected-rows",u)),"onUpdate:pagination":()=>{},onRequest:a[2]||(a[2]=u=>l.$emit("update:quasar-pagination",{...u.pagination,__sort:o.unref(nf)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(l.$slots,"empty",{},()=>[o.createVNode(lf,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])])]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(af,{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=>l.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])]}),"header-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(o.unref(W.QTh),{key:u.key,props:u,"data-drop-zone":"resize-column-"+u.col.name,class:o.normalizeClass(l.cls["handle-drop-zone"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.col.label)+" ",1),u.col.resizeable?(o.openBlock(),o.createBlock(o.unref(nu),{key:0,"drop-zone":"resize-column-"+u.col.name,class:o.normalizeClass(l.cls["resize-handle"]),onResize:d=>s(u.col,d)},{default:o.withCtx(()=>[o.createVNode(o.unref(ou),{class:"w-4 text-neutral-base"})]),_:2},1032,["drop-zone","class","onResize"])):o.createCommentVNode("",!0)]),_:2},1032,["props","data-drop-zone","class"]))]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(sf,{key:u.key,"row-props":u,settings:i.value[u.col.name]},{default:o.withCtx(()=>[o.renderSlot(l.$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"])])}}},[["__cssModules",{cls:pk}]]),xk={class:"flex space-x-2"},bk=["innerHTML"],Ts={__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 qt(r);case"CURRENCY":return ji(r);case"DATE":return Xe(r);case"DATETIME":return hn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",xk,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Sn),{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,s=>(o.openBlock(),o.createBlock(o.unref(Sn),{key:"file-"+s.id,image:s,class:"w-24 mb-2"},null,8,["image"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,bk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},wk={class:"text-gray-shadow flex items-stretch flex-nowrap p-4"},kk={class:"flex-grow text-sm w-3/5 overflow-auto"},Sk={class:"flex flex-nowrap items-center mt-4"},Tk={class:"bg-red-light line-through p-2"},Ck={class:"bg-green-plus-4 ml-2.5 p-2"},Ek={class:"ml-4 text-sm w-2/5"},Ik=["href"],Nk={__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",wk,[o.createElementVNode("div",kk,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",Sk,[o.createElementVNode("div",Tk,[o.createVNode(o.unref(Ts),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",Ck,[o.createVNode(o.unref(Ts),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",Ek,[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(hn)(t.item.timestamp)),9,Ik)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(hn)(t.item.timestamp)),1)],64))])])]))}},cf={__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-neutral-plus-7 h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.panels,s=>(o.openBlock(),o.createBlock(r,{key:s.name,name:s.name},{default:o.withCtx(()=>[s.vnode?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,vnode:s.vnode()},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},uf=kt({__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(Tn),{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(W.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_13w6i_1",visible:"_visible_13w6i_1",collapse:"_collapse_13w6i_1",static:"_static_13w6i_1",absolute:"_absolute_13w6i_1",relative:"_relative_13w6i_1",sticky:"_sticky_13w6i_1","bottom-1":"_bottom-1_13w6i_1","left-0":"_left-0_13w6i_1","right-0":"_right-0_13w6i_1","right-1":"_right-1_13w6i_1","right-4":"_right-4_13w6i_1","top-0":"_top-0_13w6i_1","top-1":"_top-1_13w6i_1","top-4":"_top-4_13w6i_1","m-2":"_m-2_13w6i_1","m-4":"_m-4_13w6i_1","mx-1":"_mx-1_13w6i_1","mx-4":"_mx-4_13w6i_1","mx-auto":"_mx-auto_13w6i_1","my-2":"_my-2_13w6i_1","!mr-1":"_!mr-1_13w6i_1","mb-2":"_mb-2_13w6i_1","mb-4":"_mb-4_13w6i_1","ml-1":"_ml-1_13w6i_1","ml-2":"_ml-2_13w6i_1","ml-2.5":"_ml-2.5_13w6i_1","ml-3":"_ml-3_13w6i_1","ml-4":"_ml-4_13w6i_1","ml-5":"_ml-5_13w6i_1","ml-[-.2em]":"_ml-[-.2em]_13w6i_1","mr-1":"_mr-1_13w6i_1","mr-2":"_mr-2_13w6i_1","mr-3":"_mr-3_13w6i_1","mt-1":"_mt-1_13w6i_1","mt-2":"_mt-2_13w6i_1","mt-3":"_mt-3_13w6i_1","mt-4":"_mt-4_13w6i_1",block:"_block_13w6i_1","inline-block":"_inline-block_13w6i_1",inline:"_inline_13w6i_1",flex:"_flex_13w6i_1",table:"_table_13w6i_1",hidden:"_hidden_13w6i_1","h-10":"_h-10_13w6i_1","h-4":"_h-4_13w6i_1","h-5":"_h-5_13w6i_1","h-8":"_h-8_13w6i_1","h-full":"_h-full_13w6i_1","max-h-full":"_max-h-full_13w6i_1","w-16":"_w-16_13w6i_1","w-2/5":"_w-2/5_13w6i_1","w-24":"_w-24_13w6i_1","w-3":"_w-3_13w6i_1","w-3/5":"_w-3/5_13w6i_1","w-32":"_w-32_13w6i_1","w-4":"_w-4_13w6i_1","w-48":"_w-48_13w6i_1","w-5":"_w-5_13w6i_1","w-6":"_w-6_13w6i_1","w-7":"_w-7_13w6i_1","w-72":"_w-72_13w6i_1","w-8":"_w-8_13w6i_1","w-[13.5rem]":"_w-[13.5rem]_13w6i_1","w-[35.5rem]":"_w-[35.5rem]_13w6i_1","w-[6.5rem]":"_w-[6.5rem]_13w6i_1","w-full":"_w-full_13w6i_1","!min-w-0":"_!min-w-0_13w6i_1","max-w-[50em]":"_max-w-[50em]_13w6i_1","max-w-full":"_max-w-full_13w6i_1","flex-shrink-0":"_flex-shrink-0_13w6i_1","flex-grow":"_flex-grow_13w6i_1",grow:"_grow_13w6i_1","rotate-180":"_rotate-180_13w6i_1",transform:"_transform_13w6i_1","cursor-ew-resize":"_cursor-ew-resize_13w6i_1","cursor-move":"_cursor-move_13w6i_1","cursor-not-allowed":"_cursor-not-allowed_13w6i_1","cursor-ns-resize":"_cursor-ns-resize_13w6i_1","cursor-pointer":"_cursor-pointer_13w6i_1",resize:"_resize_13w6i_1","flex-col":"_flex-col_13w6i_1","flex-nowrap":"_flex-nowrap_13w6i_1","items-center":"_items-center_13w6i_1","items-stretch":"_items-stretch_13w6i_1","justify-start":"_justify-start_13w6i_1","justify-end":"_justify-end_13w6i_1","justify-center":"_justify-center_13w6i_1","justify-between":"_justify-between_13w6i_1","gap-y-0":"_gap-y-0_13w6i_1","gap-y-1":"_gap-y-1_13w6i_1","space-x-1":"_space-x-1_13w6i_1","space-x-2":"_space-x-2_13w6i_1","self-center":"_self-center_13w6i_1","overflow-auto":"_overflow-auto_13w6i_1","overflow-hidden":"_overflow-hidden_13w6i_1","overflow-y-auto":"_overflow-y-auto_13w6i_16","overflow-x-hidden":"_overflow-x-hidden_13w6i_1","scroll-smooth":"_scroll-smooth_13w6i_1","overflow-ellipsis":"_overflow-ellipsis_13w6i_1","whitespace-nowrap":"_whitespace-nowrap_13w6i_1",rounded:"_rounded_13w6i_1","rounded-2xl":"_rounded-2xl_13w6i_1","rounded-lg":"_rounded-lg_13w6i_1","rounded-md":"_rounded-md_13w6i_1","!rounded-l-none":"_!rounded-l-none_13w6i_1","!rounded-r-none":"_!rounded-r-none_13w6i_1","rounded-b-lg":"_rounded-b-lg_13w6i_1","rounded-t-lg":"_rounded-t-lg_13w6i_1","rounded-t-md":"_rounded-t-md_13w6i_1","!border-0":"_!border-0_13w6i_1",border:"_border_13w6i_1","border-b":"_border-b_13w6i_1","border-l":"_border-l_13w6i_1","border-l-0":"_border-l-0_13w6i_1","border-r":"_border-r_13w6i_1","border-t":"_border-t_13w6i_1","border-solid":"_border-solid_13w6i_1","border-dashed":"_border-dashed_13w6i_1","border-blue-600":"_border-blue-600_13w6i_1","border-gray-200":"_border-gray-200_13w6i_1","border-gray-300":"_border-gray-300_13w6i_1","!bg-blue-600":"_!bg-blue-600_13w6i_1","bg-blue-600":"_bg-blue-600_13w6i_1","bg-gray-100":"_bg-gray-100_13w6i_1","bg-gray-200":"_bg-gray-200_13w6i_1","bg-gray-500":"_bg-gray-500_13w6i_1","bg-green-300":"_bg-green-300_13w6i_1","bg-red-300":"_bg-red-300_13w6i_1","bg-slate-100":"_bg-slate-100_13w6i_1","bg-slate-200":"_bg-slate-200_13w6i_1","bg-transparent":"_bg-transparent_13w6i_1","bg-white":"_bg-white_13w6i_1","bg-yellow-300":"_bg-yellow-300_13w6i_1","!p-1":"_!p-1_13w6i_1","!p-2":"_!p-2_13w6i_1","p-1":"_p-1_13w6i_1","p-2":"_p-2_13w6i_1","p-3":"_p-3_13w6i_1","p-4":"_p-4_13w6i_1","!py-0":"_!py-0_13w6i_1","px-1":"_px-1_13w6i_1","px-12":"_px-12_13w6i_1","px-2":"_px-2_13w6i_1","px-2.5":"_px-2.5_13w6i_1","px-4":"_px-4_13w6i_1","px-6":"_px-6_13w6i_1","px-8":"_px-8_13w6i_1","py-1":"_py-1_13w6i_1","py-14":"_py-14_13w6i_1","py-2":"_py-2_13w6i_1","py-2.5":"_py-2.5_13w6i_1","py-3":"_py-3_13w6i_1","py-4":"_py-4_13w6i_1","py-8":"_py-8_13w6i_1","!pl-4":"_!pl-4_13w6i_1","!pl-5":"_!pl-5_13w6i_1","pl-2":"_pl-2_13w6i_1","pl-6":"_pl-6_13w6i_1","pr-10":"_pr-10_13w6i_1","text-left":"_text-left_13w6i_1","text-center":"_text-center_13w6i_1","text-right":"_text-right_13w6i_1","!text-xs":"_!text-xs_13w6i_1","text-[1rem]":"_text-[1rem]_13w6i_1","text-sm":"_text-sm_13w6i_1","text-xs":"_text-xs_13w6i_1","font-bold":"_font-bold_13w6i_1","font-medium":"_font-medium_13w6i_1","font-normal":"_font-normal_13w6i_1","font-semibold":"_font-semibold_13w6i_1",uppercase:"_uppercase_13w6i_1","leading-[1.2rem]":"_leading-[1.2rem]_13w6i_1","!text-green-900":"_!text-green-900_13w6i_1","!text-red-900":"_!text-red-900_13w6i_1","!text-yellow-900":"_!text-yellow-900_13w6i_1","text-black":"_text-black_13w6i_1","text-blue-600":"_text-blue-600_13w6i_1","text-gray-500":"_text-gray-500_13w6i_1","text-white":"_text-white_13w6i_1","line-through":"_line-through_13w6i_1","opacity-50":"_opacity-50_13w6i_1","opacity-70":"_opacity-70_13w6i_1","shadow-none":"_shadow-none_13w6i_1","outline-none":"_outline-none_13w6i_1",outline:"_outline_13w6i_1",filter:"_filter_13w6i_1",transition:"_transition_13w6i_1","transition-all":"_transition-all_13w6i_1","duration-300":"_duration-300_13w6i_1","q-tab-panels":"_q-tab-panels_13w6i_4","q-panel":"_q-panel_13w6i_7",scroll:"_scroll_13w6i_10","q-tab-panel":"_q-tab-panel_13w6i_4","q-toolbar":"_q-toolbar_13w6i_20","q-notification__actions":"_q-notification__actions_13w6i_25","panel-tabs":"_panel-tabs_13w6i_29","hover:text-blue-600":"_hover:text-blue-600_13w6i_1","hover:opacity-100":"_hover:opacity-100_13w6i_1"}}]]),Fk={class:"flex flex-col flex-nowrap h-full"},Bk={class:"flex items-center px-6 py-4 border-b"},Dk={class:"flex-grow"},Ok={class:"flex-grow overflow-hidden h-full"},Ak={class:"flex items-stretch flex-nowrap h-full"},$k={class:"border-r w-[13.5rem] overflow-y-auto"},Pk={key:0,class:"border-l overflow-y-auto"},Mk={__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 s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Io),{position:"right",show:!0,overlay:"","content-class":"h-full",title:"","onUpdate:show":i[3]||(i[3]=l=>r.$emit("close"))},{default:o.withCtx(()=>[o.createElementVNode("div",Fk,[o.createElementVNode("div",Bk,[o.createElementVNode("div",Dk,[o.renderSlot(r.$slots,"header")]),o.createElementVNode("div",null,[o.createVNode(s,{onClick:i[0]||(i[0]=l=>r.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(ti),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Ok,[o.createElementVNode("div",Ak,[o.createElementVNode("div",$k,[o.createVNode(o.unref(uf),{modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=l=>n.value=l),i[2]||(i[2]=l=>r.$emit("update:model-value",l))],panels:t.panels},null,8,["modelValue","panels"])]),o.createVNode(o.unref(cf),{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",Pk,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Lk={name:"quasar-ui-danx",version:"0.2.27",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"},repository:{type:"git",url:"https://github.com/flytedan/quasar-app-extension-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-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:df}=Lk;function qk(t){console.log(`Installing Danx UI ${df}... Nothing to do really.`)}x.ActionMenu=of,x.ActionTable=yk,x.ActionTableColumn=sf,x.ActionTableLayout=ok,x.ActionVnode=xu,x.AddressFormat=Kx,x.AuditHistoryItem=Nk,x.AuditHistoryItemValue=Ts,x.BadgeTab=_b,x.BooleanField=ps,x.CaretDownIcon=ru,x.CollapsableFiltersSidebar=z2,x.CollapsableSidebar=gu,x.ColumnListItem=To,x.ColumnSettingsDialog=L2,x.ConfirmDialog=Eo,x.ConfirmPasswordField=H2,x.ContentDrawer=Io,x.DateField=ys,x.DateRangeField=xs,x.DateTimeField=nw,x.DateTimePicker=bs,x.DragAndDrop=Co,x.DragHandleDotsIcon=iu,x.DragHandleIcon=ou,x.EditableDiv=rw,x.EmptyTableState=lf,x.ExportButton=gx,x.FieldLabel=en,x.FilePreview=Sn,x.FileUpload=Kr,x.FileUploadButton=ow,x.FilterFieldItem=Kd,x.FilterFieldList=Jd,x.FilterIcon=su,x.FilterListToggle=ef,x.FilterToolbarLayout=Kw,x.FilterableField=Ss,x.FlashMessages=Ye,x.FlatListFormat=Jx,x.FullScreenCarouselDialog=mu,x.FullScreenDialog=Dx,x.GpsCoordinatesFormat=nb,x.HandleDraggable=nu,x.IconWithTextFormat=ib,x.ImageIcon=lu,x.IndicatorTab=pb,x.InfoDialog=hu,x.InlineDateTimeField=aw,x.InputDialog=Px,x.IntegerField=Rd,x.InteractiveTooltip=ub,x.LabelValueBlock=vd,x.LabelValueFormat=sb,x.LabeledInput=gs,x.ListDragAndDrop=qd,x.ListItemDraggable=Vd,x.ListTransition=ku,x.MultiFileField=zd,x.MultiKeywordField=jd,x.NewPasswordField=mw,x.NumberField=_r,x.NumberRangeField=pi,x.PanelsDrawer=Mk,x.PanelsDrawerPanels=cf,x.PanelsDrawerTabs=uf,x.PdfIcon=au,x.PercentIcon=cu,x.PopoverMenu=wu,x.PreviousNextControls=bx,x.RefreshButton=yx,x.RenderComponent=bu,x.RenderVnode=Tn,x.RenderedForm=ek,x.SelectDrawer=xw,x.SelectField=mr,x.SelectWithChildrenField=Gd,x.SingleFileField=Zd,x.SkipNextIcon=uu,x.SkipPreviousIcon=du,x.SlideTransition=gb,x.StaggeredListTransition=O2,x.SvgImg=pu,x.TableSummaryRow=af,x.TextField=ws,x.TitleColumnFormat=Ud,x.TrashIcon=fu,x.VisibleColumnsToggleButtons=v2,x.WarningIcon=_u,x.WysiwygField=Xd,x.XIcon=ti,x.activeActionVnode=Ot,x.addHotkey=ay,x.applyCssVars=_y,x.buildCssVars=So,x.centerTruncate=Nm,x.configure=ff,x.dbDateTime=zi,x.diffInDays=Bm,x.download=Lr,x.downloadFile=Dm,x.downloadFileResponse=da,x.fCurrency=ji,x.fDate=Xe,x.fDateTime=vi,x.fLocalizedDateTime=hn,x.fNumber=qt,x.fPercent=ua,x.fPhone=Fm,x.fQDate=Em,x.fSecondsToTime=Im,x.fetchResourceListWithSelected=fy,x.getFilterFromUrl=rf,x.getItem=wt,x.getResponseHeader=Gi,x.getUrlParam=Xc,x.install=qk,x.listen=cy,x.localizedDateTime=Ui,x.mapSortBy=nf,x.metersToMiles=Cf,x.milesToMeters=Ef,x.minmax=Tf,x.notify=_f,x.parseCoords=If,x.parseDateTime=Yn,x.parseQDate=Mr,x.parseQDateTime=Ri,x.registerHotkeys=dy,x.registerStickyScrolling=tf,x.remoteDateTime=ca,x.remove=qn,x.replace=Es,x.request=ko,x.resolveFileLocation=Zc,x.setItem=bt,x.sleep=Fs,x.uniqueBy=hf,x.unlisten=uy,x.useActions=mf,x.useCompatibility=Os,x.useListControls=sk,x.useMultiFileUpload=Yc,x.useSingleFileUpload=Kc,x.useTableColumns=lk,x.version=df,x.waitForRef=gi,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
22
22
  //# sourceMappingURL=danx.umd.js.map