quasar-ui-danx 0.2.15 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/dist/danx.es.js +2 -2
  2. package/dist/danx.es.js.map +1 -1
  3. package/dist/danx.umd.js +1 -1
  4. package/dist/danx.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +1 -1
  7. package/src/components/ActionTable/ActionMenu.vue +4 -4
  8. package/src/components/ActionTable/ActionTable.vue +12 -12
  9. package/src/components/ActionTable/ActionTableColumn.vue +11 -11
  10. package/src/components/ActionTable/Columns/ColumnListItem.vue +2 -2
  11. package/src/components/ActionTable/Columns/ColumnSettingsDialog.vue +8 -8
  12. package/src/components/ActionTable/Columns/TitleColumnFormat.vue +1 -1
  13. package/src/components/ActionTable/Columns/VisibleColumnsToggleButtons.vue +7 -7
  14. package/src/components/ActionTable/EmptyTableState.vue +4 -4
  15. package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +3 -3
  16. package/src/components/ActionTable/Filters/FilterFieldList.vue +6 -6
  17. package/src/components/ActionTable/Filters/FilterListToggle.vue +3 -3
  18. package/src/components/ActionTable/Filters/FilterToolbarLayout.vue +3 -3
  19. package/src/components/ActionTable/Filters/FilterableField.vue +6 -6
  20. package/src/components/ActionTable/Form/Fields/BooleanField.vue +4 -4
  21. package/src/components/ActionTable/Form/Fields/ConfirmPasswordField.vue +7 -7
  22. package/src/components/ActionTable/Form/Fields/DateField.vue +6 -6
  23. package/src/components/ActionTable/Form/Fields/DateRangeField.vue +13 -13
  24. package/src/components/ActionTable/Form/Fields/DateTimeField.vue +6 -6
  25. package/src/components/ActionTable/Form/Fields/DateTimePicker.vue +6 -6
  26. package/src/components/ActionTable/Form/Fields/EditableDiv.vue +3 -3
  27. package/src/components/ActionTable/Form/Fields/FieldLabel.vue +2 -2
  28. package/src/components/ActionTable/Form/Fields/FileUploadButton.vue +15 -15
  29. package/src/components/ActionTable/Form/Fields/InlineDateTimeField.vue +7 -7
  30. package/src/components/ActionTable/Form/Fields/IntegerField.vue +2 -2
  31. package/src/components/ActionTable/Form/Fields/LabeledInput.vue +2 -2
  32. package/src/components/ActionTable/Form/Fields/MultiFileField.vue +6 -6
  33. package/src/components/ActionTable/Form/Fields/MultiKeywordField.vue +8 -8
  34. package/src/components/ActionTable/Form/Fields/NewPasswordField.vue +6 -6
  35. package/src/components/ActionTable/Form/Fields/NumberField.vue +20 -20
  36. package/src/components/ActionTable/Form/Fields/NumberRangeField.vue +20 -20
  37. package/src/components/ActionTable/Form/Fields/SelectDrawer.vue +8 -8
  38. package/src/components/ActionTable/Form/Fields/SelectField.vue +36 -36
  39. package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +9 -9
  40. package/src/components/ActionTable/Form/Fields/SingleFileField.vue +6 -6
  41. package/src/components/ActionTable/Form/Fields/TextField.vue +15 -15
  42. package/src/components/ActionTable/Form/Fields/WysiwygField.vue +4 -4
  43. package/src/components/ActionTable/Form/RenderedForm.vue +5 -5
  44. package/src/components/ActionTable/TableSummaryRow.vue +8 -8
  45. package/src/components/ActionTable/listControls.ts +5 -5
  46. package/src/components/ActionTable/listHelpers.ts +1 -1
  47. package/src/components/ActionTable/tableColumns.ts +24 -1
  48. package/src/components/AuditHistory/AuditHistoryItem.vue +4 -4
  49. package/src/components/AuditHistory/AuditHistoryItemValue.vue +10 -10
  50. package/src/components/DragAndDrop/HandleDraggable.vue +8 -8
  51. package/src/components/DragAndDrop/ListItemDraggable.vue +8 -8
  52. package/src/components/DragAndDrop/dragAndDrop.ts +219 -219
  53. package/src/components/DragAndDrop/listDragAndDrop.ts +4 -4
  54. package/src/components/PanelsDrawer/PanelsDrawer.vue +8 -8
  55. package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +1 -1
  56. package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +4 -4
  57. package/src/components/Utility/Buttons/ExportButton.vue +4 -4
  58. package/src/components/Utility/Buttons/RefreshButton.vue +2 -2
  59. package/src/components/Utility/Controls/PreviousNextControls.vue +2 -2
  60. package/src/components/Utility/Dialogs/ConfirmDialog.vue +14 -14
  61. package/src/components/Utility/Dialogs/FullScreenDialog.vue +8 -8
  62. package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +11 -11
  63. package/src/components/Utility/Dialogs/InfoDialog.vue +12 -12
  64. package/src/components/Utility/Dialogs/InputDialog.vue +5 -5
  65. package/src/components/Utility/Files/FilePreview.vue +10 -10
  66. package/src/components/Utility/Formats/GpsCoordinatesFormat.vue +4 -4
  67. package/src/components/Utility/Formats/IconWithTextFormat.vue +2 -2
  68. package/src/components/Utility/Formats/LabelValueFormat.vue +2 -2
  69. package/src/components/Utility/Layouts/CollapsableSidebar.vue +15 -15
  70. package/src/components/Utility/Layouts/ContentDrawer.vue +6 -6
  71. package/src/components/Utility/Popovers/InteractiveTooltip.vue +4 -4
  72. package/src/components/Utility/Popovers/PopoverMenu.vue +49 -49
  73. package/src/components/Utility/Tabs/BadgeTab.vue +1 -1
  74. package/src/components/Utility/Tabs/IndicatorTab.vue +3 -3
  75. package/src/components/Utility/Tools/ActionVnode.vue +3 -3
  76. package/src/components/Utility/Tools/RenderComponent.vue +3 -3
  77. package/src/components/Utility/Transitions/StaggeredListTransition.vue +3 -3
  78. package/src/helpers/array.ts +16 -16
  79. package/src/helpers/storage.ts +5 -5
  80. package/src/helpers/utils.ts +1 -1
  81. package/src/index.common.js +1 -2
  82. package/src/index.esm.js +1 -1
  83. package/src/index.umd.js +2 -2
  84. package/src/svg/CaretDownIcon.svg +1 -1
  85. package/src/svg/DragHandleDotsIcon.svg +3 -3
  86. package/src/svg/DragHandleIcon.svg +3 -3
  87. package/src/svg/FilterIcon.svg +5 -5
  88. package/src/svg/ImageIcon.svg +27 -27
  89. package/src/svg/PdfIcon.svg +5 -5
  90. package/src/svg/SkipNextIcon.svg +3 -3
  91. package/src/svg/SkipPreviousIcon.svg +3 -3
  92. package/src/svg/TrashIcon.svg +12 -12
  93. package/src/svg/WarningIcon.svg +3 -3
  94. package/src/svg/XIcon.svg +15 -15
  95. package/src/vue-plugin.js +5 -5
  96. package/vite.config.js +7 -0
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 dd,Nt,On,ts,jt,fd,ns,J2=function(){return typeof window<"u"},ut={},Qt=180/Math.PI,An=Math.PI/180,Pn=Math.atan2,md=1e8,rs=/([A-Z])/g,ex=/(left|right|width|margin|padding|x)/i,tx=/[\s,\(]\S/,tt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},is=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},nx=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)},rx=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)},ix=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},hd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},pd=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},ox=function(e,n,r){return e.style[n]=r},sx=function(e,n,r){return e.style.setProperty(n,r)},lx=function(e,n,r){return e._gsap[n]=r},ax=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},cx=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},ux=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},Q="transform",Ie=Q+"Origin",dx=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in ut&&s){if(this.tfm=this.tfm||{},e!=="transform")e=tt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=dt(i,a)}):this.tfm[e]=l.x?l[e]:dt(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])},gd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},fx=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(rs,"-$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=ns(),(!s||!s.isStart)&&!r[Q]&&(gd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},yd=function(e,n){var r={target:e,props:[],revert:fx,save:dx};return e._gsap||we.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},_d,os=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(rs,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mn(n)||n,1)||""},Sd="O,Moz,ms,Ms,Webkit".split(","),Mn=function(e,n,r){var i=n||jt,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Sd[l]+e in s););return l<0?null:(l===3?"ms":l>=0?Sd[l]:"")+e},ss=function(){J2()&&window.document&&(dd=window,Nt=dd.document,On=Nt.documentElement,jt=os("div")||{style:{}},os("div"),Q=Mn(Q),Ie=Q+"Origin",jt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_d=!!Mn("perspective"),ns=we.core.reverting,ts=1)},ls=function t(e){var n=os("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},xd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},bd=function(e){var n;try{n=e.getBBox()}catch{n=ls.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===ls||(n=ls.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+xd(e,["x","cx","x1"])||0,y:+xd(e,["y","cy","y1"])||0,width:0,height:0}:n},kd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&bd(e))},Xt=function(e,n){if(n){var r=e.style,i;n in ut&&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(rs,"-$1").toLowerCase())):r.removeAttribute(n)}},Ft=function(e,n,r,i,s,l){var a=new Ee(e._pt,n,r,0,1,l?pd:hd);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Td={deg:1,rad:1,turn:1},mx={grid:1,flex:1},Bt=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=jt.style,c=ex.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,m=i==="px",h=i==="%",g,p,y,x;if(i===l||!s||Td[i]||Td[l])return s;if(l!=="px"&&!m&&(s=t(e,n,r,"px")),x=e.getCTM&&kd(e),(h||l==="%")&&(ut[n]||~n.indexOf("adius")))return g=x?e.getBBox()[c?"width":"height"]:e[d],ne(h?s/g*f:s/100*g);if(a[c?"width":"height"]=f+(m?l:i),p=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Nt||!p.appendChild)&&(p=Nt.body),y=p._gsap,y&&h&&y.width&&c&&y.time===Ae.time&&!y.uncache)return ne(s/y.width*f);if(h&&(n==="height"||n==="width")){var k=e.style[n];e.style[n]=f+i,g=e[d],k?e.style[n]=k:Xt(e,n)}else(h||l==="%")&&!mx[nt(p,"display")]&&(a.position=nt(e,"position")),p===e&&(a.position="static"),p.appendChild(jt),g=jt[d],p.removeChild(jt),a.position="absolute";return c&&h&&(y=Gt(p),y.time=Ae.time,y.width=p[d]),ne(m?g*s/f:g&&s?f/g*s:0)},dt=function(e,n,r,i){var s;return ts||ss(),n in tt&&n!=="transform"&&(n=tt[n],~n.indexOf(",")&&(n=n.split(",")[0])),ut[n]&&n!=="transform"?(s=dr(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:mi(nt(e,Ie))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=fi[n]&&fi[n](e,n,r)||nt(e,n)||Iu(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Bt(e,n,s,r)+r:s},hx=function(e,n,r,i){if(!r||r==="none"){var s=Mn(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 Ee(this._pt,e.style,n,0,1,ld),c=0,u=0,d,f,m,h,g,p,y,x,k,C,w,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(p=e.style[n],e.style[n]=i,i=nt(e,n)||i,p?e.style[n]=p:Xt(e,n)),d=[r,i],Xu(d),r=d[0],i=d[1],m=r.match(wn)||[],T=i.match(wn)||[],T.length){for(;f=wn.exec(i);)y=f[0],k=i.substring(c,f.index),g?g=(g+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(g=1),y!==(p=m[u++]||"")&&(h=parseFloat(p)||0,w=p.substr((h+"").length),y.charAt(1)==="="&&(y=In(h,y)+w),x=parseFloat(y),C=y.substr((x+"").length),c=wn.lastIndex-C.length,C||(C=C||Fe.units[n]||w,c===i.length&&(i+=C,a.e+=C)),w!==C&&(h=Bt(e,n,p,C)||0),a._pt={_next:a._pt,p:k||u===1?k:",",s:h,c:x-h,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?pd:hd;return xu.test(i)&&(a.e=0),this._pt=a,a},Cd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},px=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]=Cd[r]||r,n[1]=Cd[i]||i,n.join(" ")},gx=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],ut[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,gd(i)))}},fi={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Ee(e._pt,n,r,0,0,gx);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ur=[1,0,0,1,0,0],Ed={},wd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Id=function(e){var n=nt(e,Q);return wd(n)?ur:n.substr(7).match(Su).map(ne)},as=function(e,n){var r=e._gsap||Gt(e),i=e.style,s=Id(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=Id(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)},cs=function(e,n,r,i,s,l){var a=e._gsap,c=s||as(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,m=a.yOffset||0,h=c[0],g=c[1],p=c[2],y=c[3],x=c[4],k=c[5],C=n.split(" "),w=parseFloat(C[0])||0,T=parseFloat(C[1])||0,b,_,E,I;r?c!==ur&&(_=h*y-g*p)&&(E=w*(y/_)+T*(-p/_)+(p*k-y*x)/_,I=w*(-g/_)+T*(h/_)-(h*k-g*x)/_,w=E,T=I):(b=bd(e),w=b.x+(~C[0].indexOf("%")?w/100*b.width:w),T=b.y+(~(C[1]||C[0]).indexOf("%")?T/100*b.height:T)),i||i!==!1&&a.smooth?(x=w-u,k=T-d,a.xOffset=f+(x*h+k*p)-x,a.yOffset=m+(x*g+k*y)-k):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",l&&(Ft(l,a,"xOrigin",u,w),Ft(l,a,"yOrigin",d,T),Ft(l,a,"xOffset",f,a.xOffset),Ft(l,a,"yOffset",m,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+T)},dr=function(e,n){var r=e._gsap||new td(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,h,g,p,y,x,k,C,w,T,b,_,E,I,M,R,G,Z,ae,se,ee,le,Pe,Ln,Dt,de,it,pr,Ye,ft;return d=f=m=p=y=x=k=C=w=0,h=g=1,r.svg=!!(e.getCTM&&kd(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"),_=as(e,r.svg),r.svg&&(r.uncache?(Pe=e.getBBox(),u=r.xOrigin-Pe.x+"px "+(r.yOrigin-Pe.y)+"px",le=""):le=!n&&e.getAttribute("data-svg-origin"),cs(e,le||u,!!le||r.originIsAbsolute,r.smooth!==!1,_)),T=r.xOrigin||0,b=r.yOrigin||0,_!==ur&&(R=_[0],G=_[1],Z=_[2],ae=_[3],d=se=_[4],f=ee=_[5],_.length===6?(h=Math.sqrt(R*R+G*G),g=Math.sqrt(ae*ae+Z*Z),p=R||G?Pn(G,R)*Qt:0,k=Z||ae?Pn(Z,ae)*Qt+p:0,k&&(g*=Math.abs(Math.cos(k*An))),r.svg&&(d-=T-(T*R+b*Z),f-=b-(T*G+b*ae))):(ft=_[6],pr=_[7],Dt=_[8],de=_[9],it=_[10],Ye=_[11],d=_[12],f=_[13],m=_[14],E=Pn(ft,it),y=E*Qt,E&&(I=Math.cos(-E),M=Math.sin(-E),le=se*I+Dt*M,Pe=ee*I+de*M,Ln=ft*I+it*M,Dt=se*-M+Dt*I,de=ee*-M+de*I,it=ft*-M+it*I,Ye=pr*-M+Ye*I,se=le,ee=Pe,ft=Ln),E=Pn(-Z,it),x=E*Qt,E&&(I=Math.cos(-E),M=Math.sin(-E),le=R*I-Dt*M,Pe=G*I-de*M,Ln=Z*I-it*M,Ye=ae*M+Ye*I,R=le,G=Pe,Z=Ln),E=Pn(G,R),p=E*Qt,E&&(I=Math.cos(E),M=Math.sin(E),le=R*I+G*M,Pe=se*I+ee*M,G=G*I-R*M,ee=ee*I-se*M,R=le,se=Pe),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,x=180-x),h=ne(Math.sqrt(R*R+G*G+Z*Z)),g=ne(Math.sqrt(ee*ee+ft*ft)),E=Pn(se,ee),k=Math.abs(E)>2e-4?E*Qt:0,w=Ye?1/(Ye<0?-Ye:Ye):0),r.svg&&(le=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!wd(nt(e,Q)),le&&e.setAttribute("transform",le))),Math.abs(k)>90&&Math.abs(k)<270&&(s?(h*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,k+=k<=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=m+l,r.scaleX=ne(h),r.scaleY=ne(g),r.rotation=ne(p)+a,r.rotationX=ne(y)+a,r.rotationY=ne(x)+a,r.skewX=k+a,r.skewY=C+a,r.transformPerspective=w+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=mi(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?_x:_d?Nd:yx,r.uncache=0,r},mi=function(e){return(e=e.split(" "))[0]+" "+e[1]},us=function(e,n,r){var i=_e(n);return ne(parseFloat(n)+parseFloat(Bt(e,"x",r+"px",i)))+i},yx=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Nd(e,n)},Kt="0deg",fr="0px",Jt=") ",Nd=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,m=r.skewX,h=r.skewY,g=r.scaleX,p=r.scaleY,y=r.transformPerspective,x=r.force3D,k=r.target,C=r.zOrigin,w="",T=x==="auto"&&e&&e!==1||x===!0;if(C&&(f!==Kt||d!==Kt)){var b=parseFloat(d)*An,_=Math.sin(b),E=Math.cos(b),I;b=parseFloat(f)*An,I=Math.cos(b),l=us(k,l,_*I*-C),a=us(k,a,-Math.sin(b)*-C),c=us(k,c,E*I*-C+C)}y!==fr&&(w+="perspective("+y+Jt),(i||s)&&(w+="translate("+i+"%, "+s+"%) "),(T||l!==fr||a!==fr||c!==fr)&&(w+=c!==fr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+Jt),u!==Kt&&(w+="rotate("+u+Jt),d!==Kt&&(w+="rotateY("+d+Jt),f!==Kt&&(w+="rotateX("+f+Jt),(m!==Kt||h!==Kt)&&(w+="skew("+m+", "+h+Jt),(g!==1||p!==1)&&(w+="scale("+g+", "+p+Jt),k.style[Q]=w||"translate(0, 0)"},_x=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,m=r.scaleY,h=r.target,g=r.xOrigin,p=r.yOrigin,y=r.xOffset,x=r.yOffset,k=r.forceCSS,C=parseFloat(l),w=parseFloat(a),T,b,_,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,b=Math.sin(c)*f,_=Math.sin(c-u)*-m,E=Math.cos(c-u)*m,u&&(d*=An,I=Math.tan(u-d),I=Math.sqrt(1+I*I),_*=I,E*=I,d&&(I=Math.tan(d),I=Math.sqrt(1+I*I),T*=I,b*=I)),T=ne(T),b=ne(b),_=ne(_),E=ne(E)):(T=f,E=m,b=_=0),(C&&!~(l+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(C=Bt(h,"x",l,"px"),w=Bt(h,"y",a,"px")),(g||p||y||x)&&(C=ne(C+g-(g*T+p*_)+y),w=ne(w+p-(g*b+p*E)+x)),(i||s)&&(I=h.getBBox(),C=ne(C+i/100*I.width),w=ne(w+s/100*I.height)),I="matrix("+T+","+b+","+_+","+E+","+C+","+w+")",h.setAttribute("transform",I),k&&(h.style[Q]=I)},Sx=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,m;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*md)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*md)%l-~~(u/l)*l)),e._pt=m=new Ee(e._pt,n,r,i,u,nx),m.e=d,m.u="deg",e._props.push(r),m},Fd=function(e,n){for(var r in n)e[r]=n[r];return e},xx=function(e,n,r){var i=Fd({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,m,h,g;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 ut)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(h=_e(u),g=_e(d),f=h!==g?Bt(r,c,u,g):parseFloat(u),m=parseFloat(d),e._pt=new Ee(e._pt,a,c,f,m-f,is),e._pt.u=g||0,e._props.push(c));Fd(a,i)};Ce("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});fi[e>1?"border"+t:t]=function(a,c,u,d,f){var m,h;if(arguments.length<4)return m=l.map(function(g){return dt(a,g,u)}),h=m.join(" "),h.split(m[0]).length===5?m[0]:h;m=(d+"").split(" "),h={},l.forEach(function(g,p){return h[g]=m[p]=m[p]||m[(p-1)/2|0]}),a.init(c,h,f)}});var Bd={name:"css",register:ss,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,h,g,p,y,x,k,C,w,T,b,_,E;ts||ss(),this.styles=this.styles||yd(e),E=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(d=n[p],!(De[p]&&nd(p,n,r,i,e,s)))){if(h=typeof d,g=fi[p],h==="function"&&(d=d.call(r,i,e,s),h=typeof d),h==="string"&&~d.indexOf("random(")&&(d=ir(d)),g)g(this,e,p,d,r)&&(_=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",wt.lastIndex=0,wt.test(u)||(y=_e(u),x=_e(d)),x?y!==x&&(u=Bt(e,p,u,x)+x):y&&(d+=y),this.add(a,"setProperty",u,d,i,s,0,0,p),l.push(p),E.push(p,0,a[p]);else if(h!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,s):c[p],ce(u)&&~u.indexOf("random(")&&(u=ir(u)),_e(u+"")||u==="auto"||(u+=Fe.units[p]||_e(dt(e,p))||""),(u+"").charAt(1)==="="&&(u=dt(e,p))):u=dt(e,p),m=parseFloat(u),k=h==="string"&&d.charAt(1)==="="&&d.substr(0,2),k&&(d=d.substr(2)),f=parseFloat(d),p in tt&&(p==="autoAlpha"&&(m===1&&dt(e,"visibility")==="hidden"&&f&&(m=0),E.push("visibility",0,a.visibility),Ft(this,a,"visibility",m?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=tt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),C=p in ut,C){if(this.styles.save(p),w||(T=e._gsap,T.renderTransform&&!n.parseTransform||dr(e,n.parseTransform),b=n.smoothOrigin!==!1&&T.smooth,w=this._pt=new Ee(this._pt,a,Q,0,1,T.renderTransform,T,0,-1),w.dep=1),p==="scale")this._pt=new Ee(this._pt,T,"scaleY",T.scaleY,(k?In(T.scaleY,k+f):f)-T.scaleY||0,is),this._pt.u=0,l.push("scaleY",p),p+="X";else if(p==="transformOrigin"){E.push(Ie,0,a[Ie]),d=px(d),T.svg?cs(e,d,0,b,0,this):(x=parseFloat(d.split(" ")[2])||0,x!==T.zOrigin&&Ft(this,T,"zOrigin",T.zOrigin,x),Ft(this,a,p,mi(u),mi(d)));continue}else if(p==="svgOrigin"){cs(e,d,1,b,0,this);continue}else if(p in Ed){Sx(this,T,p,m,k?In(m,k+d):d);continue}else if(p==="smoothOrigin"){Ft(this,T,"smooth",T.smooth,d);continue}else if(p==="force3D"){T[p]=d;continue}else if(p==="transform"){xx(this,d,e);continue}}else p in a||(p=Mn(p)||p);if(C||(f||f===0)&&(m||m===0)&&!tx.test(d)&&p in a)y=(u+"").substr((m+"").length),f||(f=0),x=_e(d)||(p in Fe.units?Fe.units[p]:y),y!==x&&(m=Bt(e,p,u,x)),this._pt=new Ee(this._pt,C?T:a,p,m,(k?In(m,k+f):f)-m,!C&&(x==="px"||p==="zIndex")&&n.autoRound!==!1?ix:is),this._pt.u=x||0,y!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=rx);else if(p in a)hx.call(this,e,p,u,k?k+d:d);else if(p in e)this.add(e,p,u||e[p],k?k+d:d,i,s);else if(p!=="parseTransform"){Oo(p,d);continue}C||(p in a?E.push(p,0,a[p]):E.push(p,1,u||e[p])),l.push(p)}}_&&ad(this)},render:function(e,n){if(n.tween._time||!ns())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:dt,aliases:tt,getSetter:function(e,n,r){var i=tt[n];return i&&i.indexOf(",")<0&&(n=i),n in ut&&n!==Ie&&(e._gsap.x||dt(e,"x"))?r&&fd===r?n==="scale"?ax:lx:(fd=r||{})&&(n==="scale"?cx:ux):e.style&&!wo(e.style[n])?ox:~n.indexOf("-")?sx:Qo(e,n)},core:{_removeProperty:Xt,_getMatrix:as}};we.utils.checkPrefix=Mn,we.core.getStyleSaver=yd,function(t,e,n,r){var i=Ce(t+","+e+","+n,function(s){ut[s]=1});Ce(e,function(s){Fe.units[s]="deg",Ed[s]=1}),tt[i[13]]=t+","+e,Ce(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"),Ce("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),we.registerPlugin(Bd);var ds=we.registerPlugin(Bd)||we;ds.core.Tween;const bx=lt({__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}ds.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}ds.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",{},void 0,!0)]),_:3},512))}},[["__scopeId","data-v-6a1edcb9"]]);class Dd extends bo{constructor(n={}){super({showPlaceholder:!0,...n});z(this,"listPosition",0);z(this,"cursorPosition",0);z(this,"initialPosition",0);z(this,"onPositionChangeCb",null);z(this,"onDragPositionChangeCb",null);z(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 kx={class:"flex items-center"},Tx={key:0},Cx={class:"flex-grow"},Od={__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 Dd().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",kx,[t.showHandle?(o.openBlock(),o.createElementBlock("div",Tx,[o.createVNode(o.unref(cu),{svg:o.unref(Xc),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Cx,[o.renderSlot(s.$slots,"default")])])],32))}},Ex=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),wx={__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=$n(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){Xe.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=$n(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(au),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[Ex,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(xo),{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(pu),{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,m)=>(o.openBlock(),o.createBlock(o.unref(Od),{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":m===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=h=>u.$emit("update:sortable-columns",h))},{default:o.withCtx(()=>[o.createVNode(o.unref(xo),{column:f,visible:s(f),"is-title":a(f),onVisible:h=>l(f,h),onIsTitle:h=>c(f,h)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Ad={__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))]))}},Ix={class:"flex items-center flex-nowrap"},Nx=["onClick"],Fx={class:"text-xs"},Bx=lt({__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(f=>f.category)).values()]);function l(f){return r.columns.filter(m=>m.category===f)}function a(f){return l(f).filter(m=>!m.required).map(m=>m.name).some(m=>!r.hiddenColumnNames.includes(m))}function c(f){let m=l(f).filter(g=>!g.required);const h=m.filter(g=>!r.hiddenColumnNames.includes(g.name));return h.length===0?!1:h.length===m.length?!0:null}function u(f,m){f=f.filter(g=>!g.required);let h=[...r.hiddenColumnNames];m?h=h.filter(g=>!f.map(p=>p.name).includes(g)):h=[...new Set([...h,...f.map(g=>g.name)])],n("update:hidden-column-names",h)}function d(f,m){if(r.columns.find(g=>g.name===f).required)return;m=m??r.hiddenColumnNames.includes(f);let h=[...r.hiddenColumnNames];m?h=$n(h,f):(h.push(f),h=[...new Set(h)]),n("update:hidden-column-names",h)}return(f,m)=>{const h=o.resolveComponent("QCheckbox"),g=o.resolveComponent("QList"),p=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",Ix,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y,class:o.normalizeClass(["category-toggle border-gray-200",{"has-visible-columns text-white bg-blue-600":a(y)}])},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:x=>u(l(y),!a(y))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(y),1),o.createVNode(o.unref(Qc),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===y}])},null,8,["class"]),o.createVNode(p,{"onUpdate:modelValue":x=>i.value=x?y:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(y),x=>(o.openBlock(),o.createElementBlock("div",{key:x,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:k=>d(x.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(x.name),class:"mr-3 cb-white-border",size:"20px",color:x.required?"gray-base":"blue-600",disable:x.required,onClick:k=>d(x.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",Fx,o.toDisplayString(x.label),1)],8,Nx))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__scopeId","data-v-a55d8e51"]]),Dx={__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(uu),{collapse:!t.showFilters,disabled:"","min-width":"0","max-width":"18rem",name:"admin-ads","onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(Wd),{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"]))}},Ox={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",Ox,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},fs={__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"])}}},Ax={for:"first_name",class:"form-label"},Px={class:"mt-1"},ms={__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",Ax,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Px,[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"])])])}}},Mx={__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(ms),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"]))}},Lx={key:0,class:"font-bold text-xs mb-2"},Vx={class:"flex items-center cursor-pointer"},$x={class:"font-bold ml-3 hover:text-blue-600"},hs={__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?Qe(Lr(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",Lx,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Vx,[o.createVNode(o.unref(Wc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",$x,[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})])}}},Ux={key:0,class:"font-bold text-xs mb-2"},Rx={class:"flex items-center cursor-pointer"},zx={class:"font-bold ml-3 hover:text-blue-600"},ps={__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:Qe(Ui(a.value.from||"0000-00-00")),to:Qe(Ui(a.value.to||"9999-12-31"))}:{from:Qe(Lr(a.value.from||"0000-00-00")),to:Qe(Lr(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)?Qe(u.from)===Qe(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"),m=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",Ux,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]=h=>s.value=h),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",Rx,[o.createVNode(o.unref(Wc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",zx,[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(m,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=h=>s.value=h),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},vx={class:"flex items-center justify-center"},Gx={key:0,class:"flex-grow"},gs={__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($i(r.modelValue)),set(s){const l=s?zi(ia(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",vx,[t.nullable?(o.openBlock(),o.createElementBlock("div",Gx,[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})}}},Zx={__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(pn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=m=>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]=m=>i.value=m)},{default:o.withCtx(()=>[o.createVNode(o.unref(gs),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=m=>s.value=m),onCancel:c[1]||(c[1]=m=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Hx={__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=gr(()=>{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))}},Wx=["accept","capture"],qx={__name:"FileUploadButton",props:{...Y.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(Y.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(m_),{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,Wx)]),_:3},16))}},Yx={class:"inline-block"},jx={class:"cursor-pointer py-2 hover:bg-blue-light flex items-center justify-end"},Qx={__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",Yx,[o.createElementVNode("div",jx,[o.createTextVNode(o.toDisplayString(o.unref(pn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(y_),{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(gs),{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"])])])}}},mr={__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 m;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((m=(""+u).split(".")[1])==null?void 0:m.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Vt(u,f)}const a=gr(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"])}}},Pd={__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(mr),{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"]))}},Xx={class:"text-xs font-bold"},Md={__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",Xx,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)]))}},Kx={key:0,class:"text-sm my-2"},Jx={class:"max-w-[50em] flex items-stretch justify-start"},eb={key:1,class:"p-1"},Ld={__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}=Gc();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((...m)=>o.unref(s)&&o.unref(s)(...m),["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",Kx,[o.createElementVNode("a",{class:"text-blue-600",onClick:f[0]||(f[0]=m=>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]=(...m)=>o.unref(c)&&o.unref(c)(...m))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[2]||(f[2]=(...m)=>o.unref(l)&&o.unref(l)(...m))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",Jx,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),m=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-upload-"+m.id,class:o.normalizeClass(["w-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),image:m,"related-files":o.unref(a),downloadable:"",removable:!t.readonly&&!t.disable,onRemove:h=>o.unref(u)(m)},null,8,["class","image","related-files","removable","onRemove"]))),128)),!t.disable&&!t.readonly?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,class:"w-32 m-2 cursor-pointer border border-dashed border-blue-600",disabled:"",onClick:f[3]||(f[3]=m=>d.$refs.file.click())})):o.createCommentVNode("",!0),t.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",eb," -- ")):o.createCommentVNode("",!0)])],34))}},hr={__name:"SelectField",props:{...Y.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 b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(_=>{let E=o.isRef(_)?_.value:_;return{label:h(E),value:p(E),selectionLabel:g(E)}}),b}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>b.label.toLocaleLowerCase().indexOf(s.value.toLowerCase())>-1):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(_=>_===null?"__null__":_)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let b=u.value;return r.multiple||(b=b||b===0?[b]:[]),a.value.filter(_=>{var E;return b.includes(_.value)||b.map(I=>typeof I=="object"&&I.id).includes((E=_.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),m=o.computed(()=>d.value.slice(0,r.chipLimit));function h(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function g(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)}function p(b){if(typeof b=="string")return b;let _=b.value;return typeof r.optionValue=="string"?_=b[r.optionValue]:typeof r.optionValue=="function"&&(_=r.optionValue(b)),_===null?"__null__":_}function y(b){Array.isArray(b)&&(b=b.map(_=>_==="__null__"?null:_)),b=b==="__null__"?null:b,n("update",b),n("update:model-value",b)}const x=o.ref(!1);async function k(b,_){if(!r.filterFn)s.value=b,await o.nextTick(_);else{if(_(),x.value===!1)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function w(){l.value=!0,x.value=!1,o.nextTick(()=>{x.value=!0,i.value.focus()})}function T(){l.value=!1,x.value=!1}return(b,_)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Y.QSelect),o.mergeProps({ref_key:"selectField",ref:i},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&l.value&&!b.$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:k,onClear:C,onPopupShow:w,onPopupHide:T,"onUpdate:modelValue":y}),{append:o.withCtx(()=>[o.createVNode(o.unref(r_),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[b.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":t.chipLimit===1,[t.selectionClass]:!0}])},[m.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.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>m.value.length?(o.openBlock(),o.createBlock(E,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-m.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"])])}}},tb={key:1},ys={__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",tb,[o.createVNode(o.unref(Md),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},Vd={__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(hr),{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(ys),{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"])]))}},nb={__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(ms),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},rb={key:0,class:"font-bold text-xs mb-2"},ib={class:"flex items-center flex-nowrap cursor-pointer"},ob={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},hi={__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?i_:r.percent?nu:u_)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(m){const h=r.percent?100:1;c.value={from:m!=null&&m.from?m.from*h:void 0,to:m!=null&&m.to?m.to*h:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(m){return m===void 0?"No Limit":r.currency?vi(m):r.percent?oa(m,{multiplier:1,maximumFractionDigits:2}):Vt(m)}const f=gr(()=>{if(c.value&&(c.value.from||c.value.to)){const m=r.percent?.01:1;let h={from:c.value.from?c.value.from*m:void 0,to:c.value.to?c.value.to*m:void 0};n("update:model-value",h)}},r.debounce);return(m,h)=>{const g=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",rb,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",ib,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",ob,[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(g,null,{default:o.withCtx(()=>[o.createVNode(o.unref(mr),{modelValue:c.value.from,"onUpdate:modelValue":[h[0]||(h[0]=p=>c.value.from=p),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(mr),{modelValue:c.value.to,"onUpdate:modelValue":[h[1]||(h[1]=p=>c.value.to=p),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},sb=["data-dusk","onClick"],lb={__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),m=f;r.multiple?(m=[...r.modelValue],c(f)?m=m.filter(h=>h!==f):m.push(f)):m===r.modelValue&&(m=null),n("update:modelValue",m)}return(d,f)=>{const m=o.resolveComponent("QCheckbox"),h=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(To),{show:i.value,"onUpdate:show":f[0]||(f[0]=g=>i.value=g),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,g=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+g.value,"data-dusk":"drawer-opt-"+g.value,class:"cursor-pointer hover:bg-gray-light px-8 py-3 flex items-center border-b border-gray-light",onClick:p=>u(g)},[o.createVNode(m,{"model-value":c(g),class:"mr-2"},null,8,["model-value"]),o.renderSlot(d.$slots,"option",{opt:g},()=>[o.createTextVNode(o.toDisplayString(g.label),1)])],8,sb))),128))]),_:3},8,["show","title"]),o.createVNode(h,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=g=>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)])}}},ab={key:0,class:"text-gray-silver"},cb={key:1},ub={class:"text-xs text-gray-silver"},$d={__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=$n(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",ab,"No options available")):o.createCommentVNode("",!0),o.createVNode(o.unref(hr),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],options:t.options,label:t.label,placeholder:t.placeholder,"option-value":m=>m,loading:t.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(o.openBlock(),o.createElementBlock("div",cb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,m=>(o.openBlock(),o.createBlock(f,{key:m.id,"model-value":l.value.includes(m.id),field:m,class:"mt-3","onUpdate:modelValue":h=>a(m)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(m.label),1),o.createElementVNode("div",ub,o.toDisplayString(m.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},db={key:0,class:"text-sm mt-2"},fb={key:2,class:"py-1"},Ud={__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}=Hc();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",db,[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(Tn),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),image:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","image"])):t.readonly?(o.openBlock(),o.createElementBlock("div",fb,"-- ")):o.createCommentVNode("",!0)],34))}};var mb=["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"],hb=function(t){return mb.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},pb=function(t,e,n){Object.keys(e).filter(hb).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)}))})},gb=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}))})},yb=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&gb(e,n,r,i),pb(t,n.attrs,r)},Rd=0,zd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Rd++,t+"_"+n+Rd+String(e)},_b=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},vd=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Sb=function(t,e){return vd(t).concat(vd(e))},xb=function(t){return t==null},Gd=function(){return{listeners:[],scriptId:zd("tiny-script"),scriptLoaded:!1}},bb=function(){var t=Gd(),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=Gd()};return{load:n,reinitialize:r}},kb=bb(),Tb=function(){return typeof window<"u"?window:global},tn=function(){var t=Tb();return t&&t.tinymce?t.tinymce:null},Cb={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)},Eb=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},wb=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},_s={selector:void 0,target:void 0},Ib=o.defineComponent({props:Cb,setup:function(t,e){var n=t.init?rt(rt({},t.init),_s):rt({},_s),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||zd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],m=!0,h=t.initialValue?t.initialValue:"",g="",p=function(k){return f?function(){return s!=null&&s.value?s.value:""}:function(){return k?h:g}},y=function(){var k=p(m),C=rt(rt({},n),{readonly:t.disabled,target:a.value,plugins:Sb(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(w){c=w,w.on("init",function(T){return yb(T,t,e,w,s,k)}),typeof n.setup=="function"&&n.setup(w)}});_b(a.value)&&(a.value.style.visibility=""),tn().init(C),m=!1};o.watch(i,function(k){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(k?"readonly":"design"):c.setMode(k?"readonly":"design"))}),o.watch(l,function(k){var C;f||(g=c.getContent()),(C=tn())===null||C===void 0||C.remove(c),o.nextTick(function(){return y()})}),o.onMounted(function(){if(tn()!==null)y();else if(a.value&&a.value.ownerDocument){var k=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",w=xb(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(k,"/tinymce.min.js"):t.tinymceScriptSrc;kb.load(a.value.ownerDocument,w,y)}}),o.onBeforeUnmount(function(){tn()!==null&&tn().remove(c)}),d||(o.onActivated(function(){m||y()}),o.onDeactivated(function(){var k;f||(g=c.getContent()),(k=tn())===null||k===void 0||k.remove(c)}));var x=function(k){var C;g=c.getContent(),(C=tn())===null||C===void 0||C.remove(c),n=rt(rt(rt({},n),k),_s),o.nextTick(function(){return y()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?Eb(o.h,u,a,t.tagName):wb(o.h,u,a)}}});const Nb="YOUR_API_KEY",Fb=["innerHTML"],Zd={__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,Fb)):(o.openBlock(),o.createBlock(o.unref(Ib),{key:2,class:"mt-2","api-key":o.unref(Nb),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"]))]))}},Bb={key:1,class:"mt-2"},Db={class:"text-xs font-bold"},Ob=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(hr),{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",Bb,[o.createElementVNode("div",Db,o.toDisplayString(t.field.label),1),Ob]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(hr),{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(hs),{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(ps),{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(hi),{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(hi),{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(hi),{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(fs),{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(Vd),{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($d),{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))])}}},Ab={class:"flex items-center flex-nowrap flex-grow"},Pb={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},Hd={__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",Ab,[o.createElementVNode("div",Pb,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})}}},Mb={class:"px-4 py-2 max-w-full"},Wd={__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",Mb,[(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,m=>(o.openBlock(),o.createBlock(o.unref(Ss),{key:"field-"+m.name,"model-value":m.calcValue?m.calcValue(t.filter):t.filter[m.name],field:m,loading:t.loading,class:"mb-4","onUpdate:modelValue":h=>s(m,h)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(Hd),{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,m=>(o.openBlock(),o.createBlock(o.unref(Ss),{key:"field-"+m.name,"model-value":m.calcValue?m.calcValue(t.filter):t.filter[m.name],field:m,loading:t.loading,class:"mb-4","onUpdate:modelValue":h=>s(m,h)},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})}}},Lb={class:"flex-grow"},qd={__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",Lb,[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(Jc),{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?(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)}}},Vb={class:"w-full flex justify-end items-center flex-nowrap border-b"},$b={class:"flex-grow"},Ub={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Rb={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Vb,[o.createVNode(o.unref(qd),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":n[0]||(n[0]=r=>e.$emit("update:show-filters",r)),"onUpdate:filter":n[1]||(n[1]=r=>e.$emit("update:filter",r))},null,8,["show-filters","filter"]),o.createElementVNode("div",$b,[o.renderSlot(e.$slots,"default")]),e.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Ub,[e.$slots.default?(o.openBlock(),o.createBlock(o.unref(Y.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},zb={class:"rendered-form"},vb={__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:fs,DATE:hs,DATE_RANGE:ps,INTEGER:Pd,NUMBER:mr,TEXT:ys,SINGLE_FILE:Ud,MULTI_FILE:Ld,WYSIWYG:Zd},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",zb,[(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":[m=>l[d.name]=m,m=>a(d.name,m)],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))]))}},Gb={},Zb={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},Hb={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function Wb(t,e){return o.openBlock(),o.createElementBlock("div",Zb,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",Hb,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const qb=lt(Gb,[["render",Wb]]);function Yd(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 jd(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 Qd(t,e=null){const n={},r=vc("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 Yb(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),m=o.ref({}),h=o.ref({}),g=o.ref(kt(`${t}-show-filters`,!0)),p=o.ref([]),y=o.ref(!1),x=o.ref(!1),k=o.ref(null),C=o.computed(()=>Object.keys(m.value).filter(D=>m.value[D]!==void 0).length),w={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},T=o.ref(w),b=o.computed(()=>({perPage:T.value.rowsPerPage,page:T.value.page,filter:{...m.value,...h.value},sort:T.value.__sort||void 0}));o.watch(b,()=>{Dt(),_()}),o.watch(m,()=>{Dt(),E()}),o.watch(p,E),l&&o.watch(m,R);async function _(){u&&(y.value=!0,Z(await e(b.value)),y.value=!1)}async function E(){if(!n||!u)return;x.value=!0;const D={id:null,...m.value,...h.value};p.value.length&&(D.id=p.value.map(X=>X.id)),k.value=await n(D),x.value=!1}const I=o.ref({}),M=o.ref(!1);o.watch(()=>g.value,D=>{bt(`${t}-show-filters`,D)});async function R(){!r||!u||(M.value=!0,I.value=await r(m.value),M.value=!1)}function G(D,X=null){var fe;if(D.match(a)){const nn=(fe=X==null?void 0:X.value)==null?void 0:fe.map(Vn=>Vn.fields.map(Ik=>Ik.name)).flat(),rn=Qd(D,nn);Object.keys(rn).length>0&&(m.value=rn,Pe("filter",m.value))}}function Z(D){Array.isArray(D)?f.value={data:D,meta:{total:D.length}}:(f.value=D,D!=null&&D.meta&&D.meta.total!==T.value.rowsNumber&&(T.value.rowsNumber=D.meta.total))}function ae(){T.value=w}function se(D){var fe,nn,rn;const X=(nn=(fe=f.value)==null?void 0:fe.data)==null?void 0:nn.map(Vn=>Vn.id===D.id&&(Vn.updated_at===null||Vn.updated_at<=D.updated_at)?D:Vn);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:{...m.value,...h.value}});return fe&&fe.length>0?(f.value.data=[...f.value.data,...fe],!0):!1}async function le(){return Promise.all([_(),E(),R(),pr()])}function Pe(D,X){const fe=kt(d)||{};fe[D]=X,bt(d,fe)}function Ln(){if(!u)return;const D=kt(d);D?(m.value={...D.filter,...m.value},T.value=D.quasarPagination):m.value={...c,...m.value},setTimeout(()=>{y.value||_(),x.value||E(),M.value||R()},1)}async function Dt(){const D={filter:m.value,quasarPagination:{...T.value,page:1}};bt(d,D)}const de=o.ref(null),it=o.ref(null);async function pr(){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 pr()});function Ye(D,X){de.value=D,it.value=X}async function ft(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(T.value.page>1)T.value={...T.value,page:T.value.page-1},await pi(y,!1),fe=f.value.data.length-1;else return;if(fe>=f.value.data.length)if(T.value.page<f.value.meta.last_page)T.value={...T.value,page:T.value.page+1},await pi(y,!1),fe=0;else return;de.value=f.value.data[fe]}function wk(){u=!0,Ln()}return{pagedItems:f,filter:m,globalFilter:h,filterActiveCount:C,showFilters:g,summary:k,filterFieldOptions:I,selectedRows:p,isLoadingList:y,isLoadingFilters:M,isLoadingSummary:x,pager:b,quasarPagination:T,activeItem:de,activePanel:it,initialize:wk,loadSummary:E,resetPaging:ae,loadList:_,loadMore:ee,refreshAll:le,getNextItem:ft,activatePanel:Ye,applyFilterFromUrl:G,setItemInPagedList:se}}function jb(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(kt(n)||[]),l=o.ref(kt(r,[])),a=o.ref(kt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((h,g)=>{const p=s.value.indexOf(h.name),y=s.value.indexOf(g.name);return p===-1?1:y===-1?-1:p-y})),d=o.computed({get(){return u.value.slice(1)},set(h){s.value=[...c.value.map(g=>g.name),...h.map(g=>g.name)],bt(n,s.value)}}),f=o.computed(()=>u.value.filter(h=>!l.value.includes(h.name))),m=o.computed(()=>u.value.filter(h=>a.value.includes(h.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:m}}const Xd={__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(hu),{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"]))}},Qb={class:"flex-grow"},Xb={key:0,class:"flex flex-shrink-0 pl-2"},Kd={__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(Y.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",Qb,[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(Cn),{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(Cn),{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(Ad),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",Xb,[o.createVNode(o.unref(Xd),{actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},Kb={class:"flex items-center justify-center text-sm py-14 w-full"},Jb={key:0},ek={key:1},Jd={__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",Kb,[t.loading?(o.openBlock(),o.createElementBlock("div",Jb,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(Y.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",ek,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(Y.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},tk={class:"flex flex-nowrap items-center"},nk={key:0,class:"flex items-center"},rk={key:1},ef={__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(Y.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(Y.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",tk,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",nk,[o.createVNode(o.unref(x_),{class:"w-6 mr-3",onClick:s[0]||(s[0]=l=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(Vt)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",rk,o.toDisplayString(o.unref(Vt)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(Y.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(Y.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"]))}},ik={class:"overflow-hidden w-full"},ok=lt({__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);Yd(n);const r=`column-settings-${e.name}`,i=o.ref(kt(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",ik,[o.createVNode(o.unref(fu)),o.createVNode(o.unref(Y.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":"",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(jd)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(l.$slots,"empty",{},()=>[o.createVNode(Jd,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(ef,{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(Y.QTh),{key:u.key,props:u,"data-drop-zone":"resize-column-"+u.col.name},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.col.label)+" ",1),u.col.resizeable?(o.openBlock(),o.createBlock(o.unref(jc),{key:0,"drop-zone":"resize-column-"+u.col.name,class:"resize-handle",onResize:d=>s(u.col,d)},{default:o.withCtx(()=>[o.createVNode(o.unref(Kc),{class:"w-4 text-neutral-base"})]),_:2},1032,["drop-zone","onResize"])):o.createCommentVNode("",!0)]),_:2},1032,["props","data-drop-zone"]))]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(Kd,{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},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","rows-per-page-options"])])}}},[["__scopeId","data-v-c99a35fa"]]),sk={class:"flex space-x-2"},lk=["innerHTML"],xs={__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 Vt(r);case"CURRENCY":return vi(r);case"DATE":return Qe(r);case"DATETIME":return pn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",sk,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,image:t.value,class:"w-24"},null,8,["image"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,s=>(o.openBlock(),o.createBlock(o.unref(Tn),{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,lk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},ak={class:"text-gray-shadow flex items-stretch flex-nowrap p-4"},ck={class:"flex-grow text-sm w-3/5 overflow-auto"},uk={class:"flex flex-nowrap items-center mt-4"},dk={class:"bg-red-light line-through p-2"},fk={class:"bg-green-plus-4 ml-2.5 p-2"},mk={class:"ml-4 text-sm w-2/5"},hk=["href"],pk={__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",ak,[o.createElementVNode("div",ck,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",uk,[o.createElementVNode("div",dk,[o.createVNode(o.unref(xs),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",fk,[o.createVNode(o.unref(xs),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",mk,[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(pn)(t.item.timestamp)),9,hk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(pn)(t.item.timestamp)),1)],64))])])]))}},tf={__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(Cn),{key:0,vnode:s.vnode()},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},nf=lt({__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:"panel-tabs p-4 h-auto","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(Cn),{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(Y.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value"])}}},[["__scopeId","data-v-beaa5548"]]),gk={class:"flex flex-col flex-nowrap h-full"},yk={class:"flex items-center px-6 py-4 border-b"},_k={class:"flex-grow"},Sk={class:"flex-grow overflow-hidden h-full"},xk={class:"flex items-stretch flex-nowrap h-full"},bk={class:"border-r w-[13.5em] overflow-y-auto"},kk={key:0,class:"border-l overflow-y-auto"},Tk={__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(To),{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",gk,[o.createElementVNode("div",yk,[o.createElementVNode("div",_k,[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(Jr),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Sk,[o.createElementVNode("div",xk,[o.createElementVNode("div",bk,[o.createVNode(o.unref(nf),{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(tf),{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",kk,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Ck={name:"quasar-ui-danx",version:"0.2.14",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:rf}=Ck;function Ek(t){console.log(`Installing Danx UI ${rf}... Nothing to do really.`)}S.ActionMenu=Xd,S.ActionTable=ok,S.ActionTableColumn=Kd,S.ActionTableLayout=qb,S.ActionVnode=fu,S.AddressFormat=vS,S.AuditHistoryItem=pk,S.AuditHistoryItemValue=xs,S.BadgeTab=n2,S.BooleanField=fs,S.CaretDownIcon=Qc,S.CollapsableFiltersSidebar=Dx,S.CollapsableSidebar=uu,S.ColumnListItem=xo,S.ColumnSettingsDialog=wx,S.ConfirmDialog=ko,S.ConfirmPasswordField=Mx,S.ContentDrawer=To,S.DateField=hs,S.DateRangeField=ps,S.DateTimeField=Zx,S.DateTimePicker=gs,S.DragAndDrop=bo,S.DragHandleDotsIcon=Xc,S.DragHandleIcon=Kc,S.EditableDiv=Hx,S.EmptyTableState=Jd,S.ExportButton=sS,S.FieldLabel=en,S.FilePreview=Tn,S.FileUpload=Kr,S.FileUploadButton=qx,S.FilterFieldItem=Hd,S.FilterFieldList=Wd,S.FilterIcon=Jc,S.FilterListToggle=qd,S.FilterToolbarLayout=Rb,S.FilterableField=Ss,S.FlashMessages=Xe,S.FlatListFormat=GS,S.FullScreenCarouselDialog=lu,S.FullScreenDialog=xS,S.GpsCoordinatesFormat=WS,S.HandleDraggable=jc,S.IconWithTextFormat=YS,S.ImageIcon=eu,S.IndicatorTab=o2,S.InfoDialog=au,S.InlineDateTimeField=Qx,S.InputDialog=CS,S.IntegerField=Pd,S.InteractiveTooltip=JS,S.LabelValueBlock=Md,S.LabelValueFormat=QS,S.LabeledInput=ms,S.ListDragAndDrop=Dd,S.ListItemDraggable=Od,S.ListTransition=pu,S.MultiFileField=Ld,S.MultiKeywordField=Vd,S.NewPasswordField=nb,S.NumberField=mr,S.NumberRangeField=hi,S.PanelsDrawer=Tk,S.PanelsDrawerPanels=tf,S.PanelsDrawerTabs=nf,S.PdfIcon=tu,S.PercentIcon=nu,S.PopoverMenu=hu,S.PreviousNextControls=cS,S.RefreshButton=lS,S.RenderComponent=mu,S.RenderVnode=Cn,S.RenderedForm=vb,S.SelectDrawer=lb,S.SelectField=hr,S.SelectWithChildrenField=$d,S.SingleFileField=Ud,S.SkipNextIcon=ru,S.SkipPreviousIcon=iu,S.SlideTransition=s2,S.StaggeredListTransition=bx,S.SvgImg=cu,S.TableSummaryRow=ef,S.TextField=ys,S.TitleColumnFormat=Ad,S.TrashIcon=ou,S.VisibleColumnsToggleButtons=Bx,S.WarningIcon=su,S.WysiwygField=Zd,S.XIcon=Jr,S.activeActionVnode=vt,S.centerTruncate=Sh,S.configure=of,S.dbDateTime=zi,S.diffInDays=bh,S.download=Vr,S.downloadFile=kh,S.downloadFileResponse=sa,S.fCurrency=vi,S.fDate=Qe,S.fDateTime=Ri,S.fLocalizedDateTime=pn,S.fNumber=Vt,S.fPercent=oa,S.fPhone=xh,S.fQDate=yh,S.fSecondsToTime=_h,S.fetchResourceListWithSelected=t_,S.getFilterFromUrl=Qd,S.getItem=kt,S.getResponseHeader=Gi,S.getUrlParam=vc,S.install=Ek,S.localizedDateTime=$i,S.mapSortBy=jd,S.metersToMiles=gf,S.milesToMeters=yf,S.minmax=pf,S.notify=Jy,S.parseCoords=_f,S.parseDateTime=jn,S.parseQDate=Lr,S.parseQDateTime=Ui,S.registerStickyScrolling=Yd,S.remoteDateTime=ia,S.remove=$n,S.replace=bs,S.request=e_,S.resolveFileLocation=zc,S.setItem=bt,S.sleep=Cs,S.uniqueBy=sf,S.useActions=n_,S.useCompatibility=Is,S.useListControls=Yb,S.useMultiFileUpload=Gc,S.useSingleFileUpload=Hc,S.useTableColumns=jb,S.version=rf,S.waitForRef=pi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
21
+ */var dd,Nt,On,ts,jt,fd,ns,J2=function(){return typeof window<"u"},ut={},Qt=180/Math.PI,An=Math.PI/180,Pn=Math.atan2,md=1e8,rs=/([A-Z])/g,ex=/(left|right|width|margin|padding|x)/i,tx=/[\s,\(]\S/,tt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},is=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},nx=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)},rx=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)},ix=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},hd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},pd=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},ox=function(e,n,r){return e.style[n]=r},sx=function(e,n,r){return e.style.setProperty(n,r)},lx=function(e,n,r){return e._gsap[n]=r},ax=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},cx=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},ux=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},Q="transform",Ie=Q+"Origin",dx=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in ut&&s){if(this.tfm=this.tfm||{},e!=="transform")e=tt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=dt(i,a)}):this.tfm[e]=l.x?l[e]:dt(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])},gd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},fx=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(rs,"-$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=ns(),(!s||!s.isStart)&&!r[Q]&&(gd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},yd=function(e,n){var r={target:e,props:[],revert:fx,save:dx};return e._gsap||we.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},_d,os=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(rs,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mn(n)||n,1)||""},Sd="O,Moz,ms,Ms,Webkit".split(","),Mn=function(e,n,r){var i=n||jt,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Sd[l]+e in s););return l<0?null:(l===3?"ms":l>=0?Sd[l]:"")+e},ss=function(){J2()&&window.document&&(dd=window,Nt=dd.document,On=Nt.documentElement,jt=os("div")||{style:{}},os("div"),Q=Mn(Q),Ie=Q+"Origin",jt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_d=!!Mn("perspective"),ns=we.core.reverting,ts=1)},ls=function t(e){var n=os("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},xd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},bd=function(e){var n;try{n=e.getBBox()}catch{n=ls.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===ls||(n=ls.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+xd(e,["x","cx","x1"])||0,y:+xd(e,["y","cy","y1"])||0,width:0,height:0}:n},kd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&bd(e))},Xt=function(e,n){if(n){var r=e.style,i;n in ut&&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(rs,"-$1").toLowerCase())):r.removeAttribute(n)}},Ft=function(e,n,r,i,s,l){var a=new Ee(e._pt,n,r,0,1,l?pd:hd);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Td={deg:1,rad:1,turn:1},mx={grid:1,flex:1},Bt=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=jt.style,c=ex.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,m=i==="px",h=i==="%",g,p,y,x;if(i===l||!s||Td[i]||Td[l])return s;if(l!=="px"&&!m&&(s=t(e,n,r,"px")),x=e.getCTM&&kd(e),(h||l==="%")&&(ut[n]||~n.indexOf("adius")))return g=x?e.getBBox()[c?"width":"height"]:e[d],ne(h?s/g*f:s/100*g);if(a[c?"width":"height"]=f+(m?l:i),p=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Nt||!p.appendChild)&&(p=Nt.body),y=p._gsap,y&&h&&y.width&&c&&y.time===Ae.time&&!y.uncache)return ne(s/y.width*f);if(h&&(n==="height"||n==="width")){var k=e.style[n];e.style[n]=f+i,g=e[d],k?e.style[n]=k:Xt(e,n)}else(h||l==="%")&&!mx[nt(p,"display")]&&(a.position=nt(e,"position")),p===e&&(a.position="static"),p.appendChild(jt),g=jt[d],p.removeChild(jt),a.position="absolute";return c&&h&&(y=Gt(p),y.time=Ae.time,y.width=p[d]),ne(m?g*s/f:g&&s?f/g*s:0)},dt=function(e,n,r,i){var s;return ts||ss(),n in tt&&n!=="transform"&&(n=tt[n],~n.indexOf(",")&&(n=n.split(",")[0])),ut[n]&&n!=="transform"?(s=dr(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:mi(nt(e,Ie))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=fi[n]&&fi[n](e,n,r)||nt(e,n)||Iu(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Bt(e,n,s,r)+r:s},hx=function(e,n,r,i){if(!r||r==="none"){var s=Mn(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 Ee(this._pt,e.style,n,0,1,ld),c=0,u=0,d,f,m,h,g,p,y,x,k,C,w,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(p=e.style[n],e.style[n]=i,i=nt(e,n)||i,p?e.style[n]=p:Xt(e,n)),d=[r,i],Xu(d),r=d[0],i=d[1],m=r.match(wn)||[],T=i.match(wn)||[],T.length){for(;f=wn.exec(i);)y=f[0],k=i.substring(c,f.index),g?g=(g+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(g=1),y!==(p=m[u++]||"")&&(h=parseFloat(p)||0,w=p.substr((h+"").length),y.charAt(1)==="="&&(y=In(h,y)+w),x=parseFloat(y),C=y.substr((x+"").length),c=wn.lastIndex-C.length,C||(C=C||Fe.units[n]||w,c===i.length&&(i+=C,a.e+=C)),w!==C&&(h=Bt(e,n,p,C)||0),a._pt={_next:a._pt,p:k||u===1?k:",",s:h,c:x-h,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?pd:hd;return xu.test(i)&&(a.e=0),this._pt=a,a},Cd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},px=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]=Cd[r]||r,n[1]=Cd[i]||i,n.join(" ")},gx=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],ut[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,gd(i)))}},fi={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Ee(e._pt,n,r,0,0,gx);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ur=[1,0,0,1,0,0],Ed={},wd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Id=function(e){var n=nt(e,Q);return wd(n)?ur:n.substr(7).match(Su).map(ne)},as=function(e,n){var r=e._gsap||Gt(e),i=e.style,s=Id(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=Id(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)},cs=function(e,n,r,i,s,l){var a=e._gsap,c=s||as(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,m=a.yOffset||0,h=c[0],g=c[1],p=c[2],y=c[3],x=c[4],k=c[5],C=n.split(" "),w=parseFloat(C[0])||0,T=parseFloat(C[1])||0,b,_,E,I;r?c!==ur&&(_=h*y-g*p)&&(E=w*(y/_)+T*(-p/_)+(p*k-y*x)/_,I=w*(-g/_)+T*(h/_)-(h*k-g*x)/_,w=E,T=I):(b=bd(e),w=b.x+(~C[0].indexOf("%")?w/100*b.width:w),T=b.y+(~(C[1]||C[0]).indexOf("%")?T/100*b.height:T)),i||i!==!1&&a.smooth?(x=w-u,k=T-d,a.xOffset=f+(x*h+k*p)-x,a.yOffset=m+(x*g+k*y)-k):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",l&&(Ft(l,a,"xOrigin",u,w),Ft(l,a,"yOrigin",d,T),Ft(l,a,"xOffset",f,a.xOffset),Ft(l,a,"yOffset",m,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+T)},dr=function(e,n){var r=e._gsap||new td(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,h,g,p,y,x,k,C,w,T,b,_,E,I,M,R,G,Z,ae,se,ee,le,Pe,Ln,Dt,de,it,pr,Ye,ft;return d=f=m=p=y=x=k=C=w=0,h=g=1,r.svg=!!(e.getCTM&&kd(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"),_=as(e,r.svg),r.svg&&(r.uncache?(Pe=e.getBBox(),u=r.xOrigin-Pe.x+"px "+(r.yOrigin-Pe.y)+"px",le=""):le=!n&&e.getAttribute("data-svg-origin"),cs(e,le||u,!!le||r.originIsAbsolute,r.smooth!==!1,_)),T=r.xOrigin||0,b=r.yOrigin||0,_!==ur&&(R=_[0],G=_[1],Z=_[2],ae=_[3],d=se=_[4],f=ee=_[5],_.length===6?(h=Math.sqrt(R*R+G*G),g=Math.sqrt(ae*ae+Z*Z),p=R||G?Pn(G,R)*Qt:0,k=Z||ae?Pn(Z,ae)*Qt+p:0,k&&(g*=Math.abs(Math.cos(k*An))),r.svg&&(d-=T-(T*R+b*Z),f-=b-(T*G+b*ae))):(ft=_[6],pr=_[7],Dt=_[8],de=_[9],it=_[10],Ye=_[11],d=_[12],f=_[13],m=_[14],E=Pn(ft,it),y=E*Qt,E&&(I=Math.cos(-E),M=Math.sin(-E),le=se*I+Dt*M,Pe=ee*I+de*M,Ln=ft*I+it*M,Dt=se*-M+Dt*I,de=ee*-M+de*I,it=ft*-M+it*I,Ye=pr*-M+Ye*I,se=le,ee=Pe,ft=Ln),E=Pn(-Z,it),x=E*Qt,E&&(I=Math.cos(-E),M=Math.sin(-E),le=R*I-Dt*M,Pe=G*I-de*M,Ln=Z*I-it*M,Ye=ae*M+Ye*I,R=le,G=Pe,Z=Ln),E=Pn(G,R),p=E*Qt,E&&(I=Math.cos(E),M=Math.sin(E),le=R*I+G*M,Pe=se*I+ee*M,G=G*I-R*M,ee=ee*I-se*M,R=le,se=Pe),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,x=180-x),h=ne(Math.sqrt(R*R+G*G+Z*Z)),g=ne(Math.sqrt(ee*ee+ft*ft)),E=Pn(se,ee),k=Math.abs(E)>2e-4?E*Qt:0,w=Ye?1/(Ye<0?-Ye:Ye):0),r.svg&&(le=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!wd(nt(e,Q)),le&&e.setAttribute("transform",le))),Math.abs(k)>90&&Math.abs(k)<270&&(s?(h*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,k+=k<=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=m+l,r.scaleX=ne(h),r.scaleY=ne(g),r.rotation=ne(p)+a,r.rotationX=ne(y)+a,r.rotationY=ne(x)+a,r.skewX=k+a,r.skewY=C+a,r.transformPerspective=w+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=mi(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?_x:_d?Nd:yx,r.uncache=0,r},mi=function(e){return(e=e.split(" "))[0]+" "+e[1]},us=function(e,n,r){var i=_e(n);return ne(parseFloat(n)+parseFloat(Bt(e,"x",r+"px",i)))+i},yx=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Nd(e,n)},Kt="0deg",fr="0px",Jt=") ",Nd=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,m=r.skewX,h=r.skewY,g=r.scaleX,p=r.scaleY,y=r.transformPerspective,x=r.force3D,k=r.target,C=r.zOrigin,w="",T=x==="auto"&&e&&e!==1||x===!0;if(C&&(f!==Kt||d!==Kt)){var b=parseFloat(d)*An,_=Math.sin(b),E=Math.cos(b),I;b=parseFloat(f)*An,I=Math.cos(b),l=us(k,l,_*I*-C),a=us(k,a,-Math.sin(b)*-C),c=us(k,c,E*I*-C+C)}y!==fr&&(w+="perspective("+y+Jt),(i||s)&&(w+="translate("+i+"%, "+s+"%) "),(T||l!==fr||a!==fr||c!==fr)&&(w+=c!==fr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+Jt),u!==Kt&&(w+="rotate("+u+Jt),d!==Kt&&(w+="rotateY("+d+Jt),f!==Kt&&(w+="rotateX("+f+Jt),(m!==Kt||h!==Kt)&&(w+="skew("+m+", "+h+Jt),(g!==1||p!==1)&&(w+="scale("+g+", "+p+Jt),k.style[Q]=w||"translate(0, 0)"},_x=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,m=r.scaleY,h=r.target,g=r.xOrigin,p=r.yOrigin,y=r.xOffset,x=r.yOffset,k=r.forceCSS,C=parseFloat(l),w=parseFloat(a),T,b,_,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,b=Math.sin(c)*f,_=Math.sin(c-u)*-m,E=Math.cos(c-u)*m,u&&(d*=An,I=Math.tan(u-d),I=Math.sqrt(1+I*I),_*=I,E*=I,d&&(I=Math.tan(d),I=Math.sqrt(1+I*I),T*=I,b*=I)),T=ne(T),b=ne(b),_=ne(_),E=ne(E)):(T=f,E=m,b=_=0),(C&&!~(l+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(C=Bt(h,"x",l,"px"),w=Bt(h,"y",a,"px")),(g||p||y||x)&&(C=ne(C+g-(g*T+p*_)+y),w=ne(w+p-(g*b+p*E)+x)),(i||s)&&(I=h.getBBox(),C=ne(C+i/100*I.width),w=ne(w+s/100*I.height)),I="matrix("+T+","+b+","+_+","+E+","+C+","+w+")",h.setAttribute("transform",I),k&&(h.style[Q]=I)},Sx=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,m;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*md)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*md)%l-~~(u/l)*l)),e._pt=m=new Ee(e._pt,n,r,i,u,nx),m.e=d,m.u="deg",e._props.push(r),m},Fd=function(e,n){for(var r in n)e[r]=n[r];return e},xx=function(e,n,r){var i=Fd({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,m,h,g;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 ut)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(h=_e(u),g=_e(d),f=h!==g?Bt(r,c,u,g):parseFloat(u),m=parseFloat(d),e._pt=new Ee(e._pt,a,c,f,m-f,is),e._pt.u=g||0,e._props.push(c));Fd(a,i)};Ce("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});fi[e>1?"border"+t:t]=function(a,c,u,d,f){var m,h;if(arguments.length<4)return m=l.map(function(g){return dt(a,g,u)}),h=m.join(" "),h.split(m[0]).length===5?m[0]:h;m=(d+"").split(" "),h={},l.forEach(function(g,p){return h[g]=m[p]=m[p]||m[(p-1)/2|0]}),a.init(c,h,f)}});var Bd={name:"css",register:ss,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,h,g,p,y,x,k,C,w,T,b,_,E;ts||ss(),this.styles=this.styles||yd(e),E=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(d=n[p],!(De[p]&&nd(p,n,r,i,e,s)))){if(h=typeof d,g=fi[p],h==="function"&&(d=d.call(r,i,e,s),h=typeof d),h==="string"&&~d.indexOf("random(")&&(d=ir(d)),g)g(this,e,p,d,r)&&(_=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",wt.lastIndex=0,wt.test(u)||(y=_e(u),x=_e(d)),x?y!==x&&(u=Bt(e,p,u,x)+x):y&&(d+=y),this.add(a,"setProperty",u,d,i,s,0,0,p),l.push(p),E.push(p,0,a[p]);else if(h!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,s):c[p],ce(u)&&~u.indexOf("random(")&&(u=ir(u)),_e(u+"")||u==="auto"||(u+=Fe.units[p]||_e(dt(e,p))||""),(u+"").charAt(1)==="="&&(u=dt(e,p))):u=dt(e,p),m=parseFloat(u),k=h==="string"&&d.charAt(1)==="="&&d.substr(0,2),k&&(d=d.substr(2)),f=parseFloat(d),p in tt&&(p==="autoAlpha"&&(m===1&&dt(e,"visibility")==="hidden"&&f&&(m=0),E.push("visibility",0,a.visibility),Ft(this,a,"visibility",m?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=tt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),C=p in ut,C){if(this.styles.save(p),w||(T=e._gsap,T.renderTransform&&!n.parseTransform||dr(e,n.parseTransform),b=n.smoothOrigin!==!1&&T.smooth,w=this._pt=new Ee(this._pt,a,Q,0,1,T.renderTransform,T,0,-1),w.dep=1),p==="scale")this._pt=new Ee(this._pt,T,"scaleY",T.scaleY,(k?In(T.scaleY,k+f):f)-T.scaleY||0,is),this._pt.u=0,l.push("scaleY",p),p+="X";else if(p==="transformOrigin"){E.push(Ie,0,a[Ie]),d=px(d),T.svg?cs(e,d,0,b,0,this):(x=parseFloat(d.split(" ")[2])||0,x!==T.zOrigin&&Ft(this,T,"zOrigin",T.zOrigin,x),Ft(this,a,p,mi(u),mi(d)));continue}else if(p==="svgOrigin"){cs(e,d,1,b,0,this);continue}else if(p in Ed){Sx(this,T,p,m,k?In(m,k+d):d);continue}else if(p==="smoothOrigin"){Ft(this,T,"smooth",T.smooth,d);continue}else if(p==="force3D"){T[p]=d;continue}else if(p==="transform"){xx(this,d,e);continue}}else p in a||(p=Mn(p)||p);if(C||(f||f===0)&&(m||m===0)&&!tx.test(d)&&p in a)y=(u+"").substr((m+"").length),f||(f=0),x=_e(d)||(p in Fe.units?Fe.units[p]:y),y!==x&&(m=Bt(e,p,u,x)),this._pt=new Ee(this._pt,C?T:a,p,m,(k?In(m,k+f):f)-m,!C&&(x==="px"||p==="zIndex")&&n.autoRound!==!1?ix:is),this._pt.u=x||0,y!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=rx);else if(p in a)hx.call(this,e,p,u,k?k+d:d);else if(p in e)this.add(e,p,u||e[p],k?k+d:d,i,s);else if(p!=="parseTransform"){Oo(p,d);continue}C||(p in a?E.push(p,0,a[p]):E.push(p,1,u||e[p])),l.push(p)}}_&&ad(this)},render:function(e,n){if(n.tween._time||!ns())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:dt,aliases:tt,getSetter:function(e,n,r){var i=tt[n];return i&&i.indexOf(",")<0&&(n=i),n in ut&&n!==Ie&&(e._gsap.x||dt(e,"x"))?r&&fd===r?n==="scale"?ax:lx:(fd=r||{})&&(n==="scale"?cx:ux):e.style&&!wo(e.style[n])?ox:~n.indexOf("-")?sx:Qo(e,n)},core:{_removeProperty:Xt,_getMatrix:as}};we.utils.checkPrefix=Mn,we.core.getStyleSaver=yd,function(t,e,n,r){var i=Ce(t+","+e+","+n,function(s){ut[s]=1});Ce(e,function(s){Fe.units[s]="deg",Ed[s]=1}),tt[i[13]]=t+","+e,Ce(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"),Ce("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),we.registerPlugin(Bd);var ds=we.registerPlugin(Bd)||we;ds.core.Tween;const bx=lt({__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}ds.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}ds.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",{},void 0,!0)]),_:3},512))}},[["__scopeId","data-v-6a1edcb9"]]);class Dd extends bo{constructor(n={}){super({showPlaceholder:!0,...n});z(this,"listPosition",0);z(this,"cursorPosition",0);z(this,"initialPosition",0);z(this,"onPositionChangeCb",null);z(this,"onDragPositionChangeCb",null);z(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 kx={class:"flex items-center"},Tx={key:0},Cx={class:"flex-grow"},Od={__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 Dd().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",kx,[t.showHandle?(o.openBlock(),o.createElementBlock("div",Tx,[o.createVNode(o.unref(cu),{svg:o.unref(Xc),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Cx,[o.renderSlot(s.$slots,"default")])])],32))}},Ex=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),wx={__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=$n(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){Xe.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=$n(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(au),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[Ex,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(xo),{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(pu),{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,m)=>(o.openBlock(),o.createBlock(o.unref(Od),{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":m===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=h=>u.$emit("update:sortable-columns",h))},{default:o.withCtx(()=>[o.createVNode(o.unref(xo),{column:f,visible:s(f),"is-title":a(f),onVisible:h=>l(f,h),onIsTitle:h=>c(f,h)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Ad={__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))]))}},Ix={class:"flex items-center flex-nowrap"},Nx=["onClick"],Fx={class:"text-xs"},Bx=lt({__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(f=>f.category)).values()]);function l(f){return r.columns.filter(m=>m.category===f)}function a(f){return l(f).filter(m=>!m.required).map(m=>m.name).some(m=>!r.hiddenColumnNames.includes(m))}function c(f){let m=l(f).filter(g=>!g.required);const h=m.filter(g=>!r.hiddenColumnNames.includes(g.name));return h.length===0?!1:h.length===m.length?!0:null}function u(f,m){f=f.filter(g=>!g.required);let h=[...r.hiddenColumnNames];m?h=h.filter(g=>!f.map(p=>p.name).includes(g)):h=[...new Set([...h,...f.map(g=>g.name)])],n("update:hidden-column-names",h)}function d(f,m){if(r.columns.find(g=>g.name===f).required)return;m=m??r.hiddenColumnNames.includes(f);let h=[...r.hiddenColumnNames];m?h=$n(h,f):(h.push(f),h=[...new Set(h)]),n("update:hidden-column-names",h)}return(f,m)=>{const h=o.resolveComponent("QCheckbox"),g=o.resolveComponent("QList"),p=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",Ix,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y,class:o.normalizeClass(["category-toggle border-gray-200",{"has-visible-columns text-white bg-blue-600":a(y)}])},[o.createVNode(h,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:x=>u(l(y),!a(y))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(y),1),o.createVNode(o.unref(Qc),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===y}])},null,8,["class"]),o.createVNode(p,{"onUpdate:modelValue":x=>i.value=x?y:""},{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(y),x=>(o.openBlock(),o.createElementBlock("div",{key:x,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:k=>d(x.name)},[o.createVNode(h,{"model-value":!t.hiddenColumnNames.includes(x.name),class:"mr-3 cb-white-border",size:"20px",color:x.required?"gray-base":"blue-600",disable:x.required,onClick:k=>d(x.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",Fx,o.toDisplayString(x.label),1)],8,Nx))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__scopeId","data-v-a55d8e51"]]),Dx={__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(uu),{collapse:!t.showFilters,disabled:"","min-width":"0","max-width":"18rem",name:"admin-ads","onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(Wd),{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"]))}},Ox={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",Ox,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}},fs={__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"])}}},Ax={for:"first_name",class:"form-label"},Px={class:"mt-1"},ms={__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",Ax,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Px,[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"])])])}}},Mx={__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(ms),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"]))}},Lx={key:0,class:"font-bold text-xs mb-2"},Vx={class:"flex items-center cursor-pointer"},$x={class:"font-bold ml-3 hover:text-blue-600"},hs={__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?Qe(Lr(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",Lx,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Vx,[o.createVNode(o.unref(Wc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",$x,[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})])}}},Ux={key:0,class:"font-bold text-xs mb-2"},Rx={class:"flex items-center cursor-pointer"},zx={class:"font-bold ml-3 hover:text-blue-600"},ps={__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:Qe(Ui(a.value.from||"0000-00-00")),to:Qe(Ui(a.value.to||"9999-12-31"))}:{from:Qe(Lr(a.value.from||"0000-00-00")),to:Qe(Lr(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)?Qe(u.from)===Qe(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"),m=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",Ux,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]=h=>s.value=h),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",Rx,[o.createVNode(o.unref(Wc),{class:"w-5 text-blue-600"}),o.createElementVNode("div",zx,[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(m,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=h=>s.value=h),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},vx={class:"flex items-center justify-center"},Gx={key:0,class:"flex-grow"},gs={__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($i(r.modelValue)),set(s){const l=s?zi(ia(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",vx,[t.nullable?(o.openBlock(),o.createElementBlock("div",Gx,[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})}}},Zx={__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(pn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=m=>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]=m=>i.value=m)},{default:o.withCtx(()=>[o.createVNode(o.unref(gs),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=m=>s.value=m),onCancel:c[1]||(c[1]=m=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Hx={__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=gr(()=>{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))}},Wx=["accept","capture"],qx={__name:"FileUploadButton",props:{...Y.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(Y.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(m_),{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,Wx)]),_:3},16))}},Yx={class:"inline-block"},jx={class:"cursor-pointer py-2 hover:bg-blue-light flex items-center justify-end"},Qx={__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",Yx,[o.createElementVNode("div",jx,[o.createTextVNode(o.toDisplayString(o.unref(pn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(y_),{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(gs),{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"])])])}}},mr={__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 m;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((m=(""+u).split(".")[1])==null?void 0:m.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Vt(u,f)}const a=gr(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"])}}},Pd={__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(mr),{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"]))}},Xx={class:"text-xs font-bold"},Md={__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",Xx,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)]))}},Kx={key:0,class:"text-sm my-2"},Jx={class:"max-w-[50em] flex items-stretch justify-start"},eb={key:1,class:"p-1"},Ld={__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}=Gc();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((...m)=>o.unref(s)&&o.unref(s)(...m),["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",Kx,[o.createElementVNode("a",{class:"text-blue-600",onClick:f[0]||(f[0]=m=>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]=(...m)=>o.unref(c)&&o.unref(c)(...m))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[2]||(f[2]=(...m)=>o.unref(l)&&o.unref(l)(...m))},null,544)])):o.createCommentVNode("",!0),o.createElementVNode("div",Jx,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),m=>(o.openBlock(),o.createBlock(o.unref(Tn),{key:"file-upload-"+m.id,class:o.normalizeClass(["w-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),image:m,"related-files":o.unref(a),downloadable:"",removable:!t.readonly&&!t.disable,onRemove:h=>o.unref(u)(m)},null,8,["class","image","related-files","removable","onRemove"]))),128)),!t.disable&&!t.readonly?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,class:"w-32 m-2 cursor-pointer border border-dashed border-blue-600",disabled:"",onClick:f[3]||(f[3]=m=>d.$refs.file.click())})):o.createCommentVNode("",!0),t.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",eb," -- ")):o.createCommentVNode("",!0)])],34))}},hr={__name:"SelectField",props:{...Y.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 b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(_=>{let E=o.isRef(_)?_.value:_;return{label:h(E),value:p(E),selectionLabel:g(E)}}),b}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>b.label.toLocaleLowerCase().indexOf(s.value.toLowerCase())>-1):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(_=>_===null?"__null__":_)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let b=u.value;return r.multiple||(b=b||b===0?[b]:[]),a.value.filter(_=>{var E;return b.includes(_.value)||b.map(I=>typeof I=="object"&&I.id).includes((E=_.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),m=o.computed(()=>d.value.slice(0,r.chipLimit));function h(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function g(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)}function p(b){if(typeof b=="string")return b;let _=b.value;return typeof r.optionValue=="string"?_=b[r.optionValue]:typeof r.optionValue=="function"&&(_=r.optionValue(b)),_===null?"__null__":_}function y(b){Array.isArray(b)&&(b=b.map(_=>_==="__null__"?null:_)),b=b==="__null__"?null:b,n("update",b),n("update:model-value",b)}const x=o.ref(!1);async function k(b,_){if(!r.filterFn)s.value=b,await o.nextTick(_);else{if(_(),x.value===!1)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function w(){l.value=!0,x.value=!1,o.nextTick(()=>{x.value=!0,i.value.focus()})}function T(){l.value=!1,x.value=!1}return(b,_)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Y.QSelect),o.mergeProps({ref_key:"selectField",ref:i},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":t.filterable,"hide-selected":t.filterable&&l.value&&!b.$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:k,onClear:C,onPopupShow:w,onPopupHide:T,"onUpdate:modelValue":y}),{append:o.withCtx(()=>[o.createVNode(o.unref(r_),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[b.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":t.chipLimit===1,[t.selectionClass]:!0}])},[m.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.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>m.value.length?(o.openBlock(),o.createBlock(E,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-m.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"])])}}},tb={key:1},ys={__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",tb,[o.createVNode(o.unref(Md),{label:t.label||t.field.label,value:t.modelValue},null,8,["label","value"])])):o.createCommentVNode("",!0)])}}},Vd={__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(hr),{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(ys),{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"])]))}},nb={__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(ms),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},rb={key:0,class:"font-bold text-xs mb-2"},ib={class:"flex items-center flex-nowrap cursor-pointer"},ob={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},hi={__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?i_:r.percent?nu:u_)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(m){const h=r.percent?100:1;c.value={from:m!=null&&m.from?m.from*h:void 0,to:m!=null&&m.to?m.to*h:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(m){return m===void 0?"No Limit":r.currency?vi(m):r.percent?oa(m,{multiplier:1,maximumFractionDigits:2}):Vt(m)}const f=gr(()=>{if(c.value&&(c.value.from||c.value.to)){const m=r.percent?.01:1;let h={from:c.value.from?c.value.from*m:void 0,to:c.value.to?c.value.to*m:void 0};n("update:model-value",h)}},r.debounce);return(m,h)=>{const g=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",rb,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",ib,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",ob,[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(g,null,{default:o.withCtx(()=>[o.createVNode(o.unref(mr),{modelValue:c.value.from,"onUpdate:modelValue":[h[0]||(h[0]=p=>c.value.from=p),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(mr),{modelValue:c.value.to,"onUpdate:modelValue":[h[1]||(h[1]=p=>c.value.to=p),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},sb=["data-dusk","onClick"],lb={__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),m=f;r.multiple?(m=[...r.modelValue],c(f)?m=m.filter(h=>h!==f):m.push(f)):m===r.modelValue&&(m=null),n("update:modelValue",m)}return(d,f)=>{const m=o.resolveComponent("QCheckbox"),h=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(To),{show:i.value,"onUpdate:show":f[0]||(f[0]=g=>i.value=g),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,g=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+g.value,"data-dusk":"drawer-opt-"+g.value,class:"cursor-pointer hover:bg-gray-light px-8 py-3 flex items-center border-b border-gray-light",onClick:p=>u(g)},[o.createVNode(m,{"model-value":c(g),class:"mr-2"},null,8,["model-value"]),o.renderSlot(d.$slots,"option",{opt:g},()=>[o.createTextVNode(o.toDisplayString(g.label),1)])],8,sb))),128))]),_:3},8,["show","title"]),o.createVNode(h,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=g=>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)])}}},ab={key:0,class:"text-gray-silver"},cb={key:1},ub={class:"text-xs text-gray-silver"},$d={__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=$n(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",ab,"No options available")):o.createCommentVNode("",!0),o.createVNode(o.unref(hr),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],options:t.options,label:t.label,placeholder:t.placeholder,"option-value":m=>m,loading:t.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(o.openBlock(),o.createElementBlock("div",cb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,m=>(o.openBlock(),o.createBlock(f,{key:m.id,"model-value":l.value.includes(m.id),field:m,class:"mt-3","onUpdate:modelValue":h=>a(m)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(m.label),1),o.createElementVNode("div",ub,o.toDisplayString(m.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}},db={key:0,class:"text-sm mt-2"},fb={key:2,class:"py-1"},Ud={__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}=Hc();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",db,[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(Tn),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),image:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","image"])):t.readonly?(o.openBlock(),o.createElementBlock("div",fb,"-- ")):o.createCommentVNode("",!0)],34))}};var mb=["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"],hb=function(t){return mb.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},pb=function(t,e,n){Object.keys(e).filter(hb).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)}))})},gb=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}))})},yb=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&gb(e,n,r,i),pb(t,n.attrs,r)},Rd=0,zd=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Rd++,t+"_"+n+Rd+String(e)},_b=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},vd=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Sb=function(t,e){return vd(t).concat(vd(e))},xb=function(t){return t==null},Gd=function(){return{listeners:[],scriptId:zd("tiny-script"),scriptLoaded:!1}},bb=function(){var t=Gd(),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=Gd()};return{load:n,reinitialize:r}},kb=bb(),Tb=function(){return typeof window<"u"?window:global},tn=function(){var t=Tb();return t&&t.tinymce?t.tinymce:null},Cb={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)},Eb=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},wb=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},_s={selector:void 0,target:void 0},Ib=o.defineComponent({props:Cb,setup:function(t,e){var n=t.init?rt(rt({},t.init),_s):rt({},_s),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||zd("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],m=!0,h=t.initialValue?t.initialValue:"",g="",p=function(k){return f?function(){return s!=null&&s.value?s.value:""}:function(){return k?h:g}},y=function(){var k=p(m),C=rt(rt({},n),{readonly:t.disabled,target:a.value,plugins:Sb(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(w){c=w,w.on("init",function(T){return yb(T,t,e,w,s,k)}),typeof n.setup=="function"&&n.setup(w)}});_b(a.value)&&(a.value.style.visibility=""),tn().init(C),m=!1};o.watch(i,function(k){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(k?"readonly":"design"):c.setMode(k?"readonly":"design"))}),o.watch(l,function(k){var C;f||(g=c.getContent()),(C=tn())===null||C===void 0||C.remove(c),o.nextTick(function(){return y()})}),o.onMounted(function(){if(tn()!==null)y();else if(a.value&&a.value.ownerDocument){var k=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",w=xb(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(k,"/tinymce.min.js"):t.tinymceScriptSrc;kb.load(a.value.ownerDocument,w,y)}}),o.onBeforeUnmount(function(){tn()!==null&&tn().remove(c)}),d||(o.onActivated(function(){m||y()}),o.onDeactivated(function(){var k;f||(g=c.getContent()),(k=tn())===null||k===void 0||k.remove(c)}));var x=function(k){var C;g=c.getContent(),(C=tn())===null||C===void 0||C.remove(c),n=rt(rt(rt({},n),k),_s),o.nextTick(function(){return y()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?Eb(o.h,u,a,t.tagName):wb(o.h,u,a)}}});const Nb="YOUR_API_KEY",Fb=["innerHTML"],Zd={__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,Fb)):(o.openBlock(),o.createBlock(o.unref(Ib),{key:2,class:"mt-2","api-key":o.unref(Nb),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"]))]))}},Bb={key:1,class:"mt-2"},Db={class:"text-xs font-bold"},Ob=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(hr),{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",Bb,[o.createElementVNode("div",Db,o.toDisplayString(t.field.label),1),Ob]))],64)):t.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(hr),{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(hs),{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(ps),{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(hi),{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(hi),{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(hi),{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(fs),{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(Vd),{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($d),{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))])}}},Ab={class:"flex items-center flex-nowrap flex-grow"},Pb={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},Hd={__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",Ab,[o.createElementVNode("div",Pb,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})}}},Mb={class:"px-4 py-2 max-w-full"},Wd={__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",Mb,[(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,m=>(o.openBlock(),o.createBlock(o.unref(Ss),{key:"field-"+m.name,"model-value":m.calcValue?m.calcValue(t.filter):t.filter[m.name],field:m,loading:t.loading,class:"mb-4","onUpdate:modelValue":h=>s(m,h)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(Hd),{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,m=>(o.openBlock(),o.createBlock(o.unref(Ss),{key:"field-"+m.name,"model-value":m.calcValue?m.calcValue(t.filter):t.filter[m.name],field:m,loading:t.loading,class:"mb-4","onUpdate:modelValue":h=>s(m,h)},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})}}},Lb={class:"flex-grow"},qd={__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",Lb,[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(Jc),{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?(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)}}},Vb={class:"w-full flex justify-end items-center flex-nowrap border-b"},$b={class:"flex-grow"},Ub={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Rb={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Vb,[o.createVNode(o.unref(qd),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":n[0]||(n[0]=r=>e.$emit("update:show-filters",r)),"onUpdate:filter":n[1]||(n[1]=r=>e.$emit("update:filter",r))},null,8,["show-filters","filter"]),o.createElementVNode("div",$b,[o.renderSlot(e.$slots,"default")]),e.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Ub,[e.$slots.default?(o.openBlock(),o.createBlock(o.unref(Y.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},zb={class:"rendered-form"},vb={__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:fs,DATE:hs,DATE_RANGE:ps,INTEGER:Pd,NUMBER:mr,TEXT:ys,SINGLE_FILE:Ud,MULTI_FILE:Ld,WYSIWYG:Zd},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",zb,[(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":[m=>l[d.name]=m,m=>a(d.name,m)],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))]))}},Gb={},Zb={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full bg-white"},Hb={class:"flex flex-nowrap flex-grow overflow-hidden w-full"};function Wb(t,e){return o.openBlock(),o.createElementBlock("div",Zb,[o.renderSlot(t.$slots,"top"),o.renderSlot(t.$slots,"toolbar"),o.createElementVNode("div",Hb,[o.renderSlot(t.$slots,"filters"),o.renderSlot(t.$slots,"default")])])}const qb=lt(Gb,[["render",Wb]]);function Yd(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 jd(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 Qd(t,e=null){const n={},r=vc("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 Yb(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),m=o.ref({}),h=o.ref({}),g=o.ref(kt(`${t}-show-filters`,!0)),p=o.ref([]),y=o.ref(!1),x=o.ref(!1),k=o.ref(null),C=o.computed(()=>Object.keys(m.value).filter(D=>m.value[D]!==void 0).length),w={__sort:null,sortBy:null,descending:!1,page:1,rowsNumber:0,rowsPerPage:50},T=o.ref(w),b=o.computed(()=>({perPage:T.value.rowsPerPage,page:T.value.page,filter:{...m.value,...h.value},sort:T.value.__sort||void 0}));o.watch(b,()=>{Dt(),_()}),o.watch(m,()=>{Dt(),E()}),o.watch(p,E),l&&o.watch(m,R);async function _(){u&&(y.value=!0,Z(await e(b.value)),y.value=!1)}async function E(){if(!n||!u)return;x.value=!0;const D={id:null,...m.value,...h.value};p.value.length&&(D.id=p.value.map(X=>X.id)),k.value=await n(D),x.value=!1}const I=o.ref({}),M=o.ref(!1);o.watch(()=>g.value,D=>{bt(`${t}-show-filters`,D)});async function R(){!r||!u||(M.value=!0,I.value=await r(m.value),M.value=!1)}function G(D,X=null){var fe;if(D.match(a)){const nn=(fe=X==null?void 0:X.value)==null?void 0:fe.map(Vn=>Vn.fields.map(Ik=>Ik.name)).flat(),rn=Qd(D,nn);Object.keys(rn).length>0&&(m.value=rn,Pe("filter",m.value))}}function Z(D){Array.isArray(D)?f.value={data:D,meta:{total:D.length}}:(f.value=D,D!=null&&D.meta&&D.meta.total!==T.value.rowsNumber&&(T.value.rowsNumber=D.meta.total))}function ae(){T.value=w}function se(D){var fe,nn,rn;const X=(nn=(fe=f.value)==null?void 0:fe.data)==null?void 0:nn.map(Vn=>Vn.id===D.id&&(Vn.updated_at===null||Vn.updated_at<=D.updated_at)?D:Vn);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:{...m.value,...h.value}});return fe&&fe.length>0?(f.value.data=[...f.value.data,...fe],!0):!1}async function le(){return Promise.all([_(),E(),R(),pr()])}function Pe(D,X){const fe=kt(d)||{};fe[D]=X,bt(d,fe)}function Ln(){if(!u)return;const D=kt(d);D?(m.value={...D.filter,...m.value},T.value=D.quasarPagination):m.value={...c,...m.value},setTimeout(()=>{y.value||_(),x.value||E(),M.value||R()},1)}async function Dt(){const D={filter:m.value,quasarPagination:{...T.value,page:1}};bt(d,D)}const de=o.ref(null),it=o.ref(null);async function pr(){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 pr()});function Ye(D,X){de.value=D,it.value=X}async function ft(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(T.value.page>1)T.value={...T.value,page:T.value.page-1},await pi(y,!1),fe=f.value.data.length-1;else return;if(fe>=f.value.data.length)if(T.value.page<f.value.meta.last_page)T.value={...T.value,page:T.value.page+1},await pi(y,!1),fe=0;else return;de.value=f.value.data[fe]}function wk(){u=!0,Ln()}return{pagedItems:f,filter:m,globalFilter:h,filterActiveCount:C,showFilters:g,summary:k,filterFieldOptions:I,selectedRows:p,isLoadingList:y,isLoadingFilters:M,isLoadingSummary:x,pager:b,quasarPagination:T,activeItem:de,activePanel:it,initialize:wk,loadSummary:E,resetPaging:ae,loadList:_,loadMore:ee,refreshAll:le,getNextItem:ft,activatePanel:Ye,applyFilterFromUrl:G,setItemInPagedList:se}}function jb(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(kt(n)||[]),l=o.ref(kt(r,[])),a=o.ref(kt(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((h,g)=>{const p=s.value.indexOf(h.name),y=s.value.indexOf(g.name);return p===-1?1:y===-1?-1:p-y})),d=o.computed({get(){return u.value.slice(1)},set(h){s.value=[...c.value.map(g=>g.name),...h.map(g=>g.name)],bt(n,s.value)}}),f=o.computed(()=>u.value.filter(h=>!l.value.includes(h.name))),m=o.computed(()=>u.value.filter(h=>a.value.includes(h.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:m}}const Xd={__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(hu),{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"]))}},Qb={class:"flex-grow"},Xb={key:0,class:"flex flex-shrink-0 pl-2"},Kd={__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(Y.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",Qb,[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(Cn),{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(Cn),{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(Ad),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",Xb,[o.createVNode(o.unref(Xd),{actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}},Kb={class:"flex items-center justify-center text-sm py-14 w-full"},Jb={key:0},ek={key:1},Jd={__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",Kb,[t.loading?(o.openBlock(),o.createElementBlock("div",Jb,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(Y.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",ek,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(Y.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},tk={class:"flex flex-nowrap items-center"},nk={key:0,class:"flex items-center"},rk={key:1},ef={__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(Y.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(Y.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",tk,[t.selectedCount?(o.openBlock(),o.createElementBlock("div",nk,[o.createVNode(o.unref(x_),{class:"w-6 mr-3",onClick:s[0]||(s[0]=l=>i.$emit("clear"))}),o.createTextVNode(" "+o.toDisplayString(o.unref(Vt)(t.selectedCount))+" "+o.toDisplayString(t.selectedLabel),1)])):t.itemCount?(o.openBlock(),o.createElementBlock("div",rk,o.toDisplayString(o.unref(Vt)(t.itemCount))+" "+o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.loading?(o.openBlock(),o.createBlock(o.unref(Y.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(Y.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"]))}},ik={class:"overflow-hidden w-full"},ok=lt({__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);Yd(n);const r=`column-settings-${e.name}`,i=o.ref(kt(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",ik,[o.createVNode(o.unref(fu)),o.createVNode(o.unref(Y.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":"",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(jd)(u.pagination,t.columns)}))},{"no-data":o.withCtx(()=>[o.renderSlot(l.$slots,"empty",{},()=>[o.createVNode(Jd,{text:`There are no ${t.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":o.withCtx(()=>{var u;return[o.createVNode(ef,{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(Y.QTh),{key:u.key,props:u,"data-drop-zone":"resize-column-"+u.col.name},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.col.label)+" ",1),u.col.resizeable?(o.openBlock(),o.createBlock(o.unref(jc),{key:0,"drop-zone":"resize-column-"+u.col.name,class:"resize-handle",onResize:d=>s(u.col,d)},{default:o.withCtx(()=>[o.createVNode(o.unref(Kc),{class:"w-4 text-neutral-base"})]),_:2},1032,["drop-zone","onResize"])):o.createCommentVNode("",!0)]),_:2},1032,["props","data-drop-zone"]))]),"body-cell":o.withCtx(u=>[(o.openBlock(),o.createBlock(Kd,{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},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","rows-per-page-options"])])}}},[["__scopeId","data-v-c99a35fa"]]),sk={class:"flex space-x-2"},lk=["innerHTML"],xs={__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 Vt(r);case"CURRENCY":return vi(r);case"DATE":return Qe(r);case"DATETIME":return pn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",sk,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Tn),{key:0,image:t.value,class:"w-24"},null,8,["image"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,s=>(o.openBlock(),o.createBlock(o.unref(Tn),{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,lk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},ak={class:"text-gray-shadow flex items-stretch flex-nowrap p-4"},ck={class:"flex-grow text-sm w-3/5 overflow-auto"},uk={class:"flex flex-nowrap items-center mt-4"},dk={class:"bg-red-light line-through p-2"},fk={class:"bg-green-plus-4 ml-2.5 p-2"},mk={class:"ml-4 text-sm w-2/5"},hk=["href"],pk={__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",ak,[o.createElementVNode("div",ck,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",uk,[o.createElementVNode("div",dk,[o.createVNode(o.unref(xs),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",fk,[o.createVNode(o.unref(xs),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",mk,[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(pn)(t.item.timestamp)),9,hk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(pn)(t.item.timestamp)),1)],64))])])]))}},tf={__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(Cn),{key:0,vnode:s.vnode()},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}},nf=lt({__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:"panel-tabs p-4 h-auto","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(Cn),{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(Y.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value"])}}},[["__scopeId","data-v-beaa5548"]]),gk={class:"flex flex-col flex-nowrap h-full"},yk={class:"flex items-center px-6 py-4 border-b"},_k={class:"flex-grow"},Sk={class:"flex-grow overflow-hidden h-full"},xk={class:"flex items-stretch flex-nowrap h-full"},bk={class:"border-r w-[13.5rem] overflow-y-auto"},kk={key:0,class:"border-l overflow-y-auto"},Tk={__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(To),{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",gk,[o.createElementVNode("div",yk,[o.createElementVNode("div",_k,[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(Jr),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Sk,[o.createElementVNode("div",xk,[o.createElementVNode("div",bk,[o.createVNode(o.unref(nf),{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(tf),{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",kk,[o.renderSlot(r.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]),_:3})}}},Ck={name:"quasar-ui-danx",version:"0.2.15",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:rf}=Ck;function Ek(t){console.log(`Installing Danx UI ${rf}... Nothing to do really.`)}S.ActionMenu=Xd,S.ActionTable=ok,S.ActionTableColumn=Kd,S.ActionTableLayout=qb,S.ActionVnode=fu,S.AddressFormat=vS,S.AuditHistoryItem=pk,S.AuditHistoryItemValue=xs,S.BadgeTab=n2,S.BooleanField=fs,S.CaretDownIcon=Qc,S.CollapsableFiltersSidebar=Dx,S.CollapsableSidebar=uu,S.ColumnListItem=xo,S.ColumnSettingsDialog=wx,S.ConfirmDialog=ko,S.ConfirmPasswordField=Mx,S.ContentDrawer=To,S.DateField=hs,S.DateRangeField=ps,S.DateTimeField=Zx,S.DateTimePicker=gs,S.DragAndDrop=bo,S.DragHandleDotsIcon=Xc,S.DragHandleIcon=Kc,S.EditableDiv=Hx,S.EmptyTableState=Jd,S.ExportButton=sS,S.FieldLabel=en,S.FilePreview=Tn,S.FileUpload=Kr,S.FileUploadButton=qx,S.FilterFieldItem=Hd,S.FilterFieldList=Wd,S.FilterIcon=Jc,S.FilterListToggle=qd,S.FilterToolbarLayout=Rb,S.FilterableField=Ss,S.FlashMessages=Xe,S.FlatListFormat=GS,S.FullScreenCarouselDialog=lu,S.FullScreenDialog=xS,S.GpsCoordinatesFormat=WS,S.HandleDraggable=jc,S.IconWithTextFormat=YS,S.ImageIcon=eu,S.IndicatorTab=o2,S.InfoDialog=au,S.InlineDateTimeField=Qx,S.InputDialog=CS,S.IntegerField=Pd,S.InteractiveTooltip=JS,S.LabelValueBlock=Md,S.LabelValueFormat=QS,S.LabeledInput=ms,S.ListDragAndDrop=Dd,S.ListItemDraggable=Od,S.ListTransition=pu,S.MultiFileField=Ld,S.MultiKeywordField=Vd,S.NewPasswordField=nb,S.NumberField=mr,S.NumberRangeField=hi,S.PanelsDrawer=Tk,S.PanelsDrawerPanels=tf,S.PanelsDrawerTabs=nf,S.PdfIcon=tu,S.PercentIcon=nu,S.PopoverMenu=hu,S.PreviousNextControls=cS,S.RefreshButton=lS,S.RenderComponent=mu,S.RenderVnode=Cn,S.RenderedForm=vb,S.SelectDrawer=lb,S.SelectField=hr,S.SelectWithChildrenField=$d,S.SingleFileField=Ud,S.SkipNextIcon=ru,S.SkipPreviousIcon=iu,S.SlideTransition=s2,S.StaggeredListTransition=bx,S.SvgImg=cu,S.TableSummaryRow=ef,S.TextField=ys,S.TitleColumnFormat=Ad,S.TrashIcon=ou,S.VisibleColumnsToggleButtons=Bx,S.WarningIcon=su,S.WysiwygField=Zd,S.XIcon=Jr,S.activeActionVnode=vt,S.centerTruncate=Sh,S.configure=of,S.dbDateTime=zi,S.diffInDays=bh,S.download=Vr,S.downloadFile=kh,S.downloadFileResponse=sa,S.fCurrency=vi,S.fDate=Qe,S.fDateTime=Ri,S.fLocalizedDateTime=pn,S.fNumber=Vt,S.fPercent=oa,S.fPhone=xh,S.fQDate=yh,S.fSecondsToTime=_h,S.fetchResourceListWithSelected=t_,S.getFilterFromUrl=Qd,S.getItem=kt,S.getResponseHeader=Gi,S.getUrlParam=vc,S.install=Ek,S.localizedDateTime=$i,S.mapSortBy=jd,S.metersToMiles=gf,S.milesToMeters=yf,S.minmax=pf,S.notify=Jy,S.parseCoords=_f,S.parseDateTime=jn,S.parseQDate=Lr,S.parseQDateTime=Ui,S.registerStickyScrolling=Yd,S.remoteDateTime=ia,S.remove=$n,S.replace=bs,S.request=e_,S.resolveFileLocation=zc,S.setItem=bt,S.sleep=Cs,S.uniqueBy=sf,S.useActions=n_,S.useCompatibility=Is,S.useListControls=Yb,S.useMultiFileUpload=Gc,S.useSingleFileUpload=Hc,S.useTableColumns=jb,S.version=rf,S.waitForRef=pi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
22
22
  //# sourceMappingURL=danx.umd.js.map