quasar-ui-danx 0.4.18 → 0.4.19

Sign up to get free protection for your applications and to get access to all the features.
package/dist/danx.umd.js CHANGED
@@ -128,7 +128,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
128
128
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
129
129
  `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var r;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const i=!this.onKeyLine&&this.indent===e.indent,s=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let l=[];if(s&&n.sep&&!n.value){const a=[];for(let c=0;c<n.sep.length;++c){const u=n.sep[c];switch(u.type){case"newline":a.push(c);break;case"space":break;case"comment":u.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(l=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":s||n.value?(l.push(this.sourceToken),e.items.push({start:l}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):s||n.value?(l.push(this.sourceToken),e.items.push({start:l,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(mn(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]});else if(ed(n.key)&&!mn(n.sep,"newline")){const a=nr(n.start),c=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:c,sep:u}]})}else l.length>0?n.sep=n.sep.concat(l,this.sourceToken):n.sep.push(this.sourceToken);else if(mn(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=nr(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||s?e.items.push({start:l,key:null,sep:[this.sourceToken]}):mn(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);s||n.value?(e.items.push({start:l,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(e);if(a){i&&a.type!=="block-seq"&&e.items.push({start:l}),this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var r;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||mn(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=Ji(r),s=nr(i);td(e);const l=e.end.splice(1,e.end.length);l.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:l}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
130
130
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
131
- `,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Ji(e),r=nr(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Ji(e),r=nr(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function z0(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new U0||null,prettyErrors:e}}function G0(t,e={}){const{lineCounter:n,prettyErrors:r}=z0(e),i=new j0(n==null?void 0:n.addNewLine),s=new v0(e);let l=null;for(const a of s.compose(i.parse(t),!0,t.length))if(!l)l=a;else if(l.options.logLevel!=="silent"){l.errors.push(new jr(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(l.errors.forEach(Uu(t,n)),l.warnings.forEach(Uu(t,n))),l}function H0(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=G0(t,n);if(!i)return null;if(i.warnings.forEach(s=>yu(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function W0(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return new Ur(t,r,n).toString(n)}const Vs=new ht("America/Chicago");function Rs(t){return t=t==null?void 0:t.replace("T"," "),D.fromSQL(t,{zone:Vs}).setZone("local")}function nd(t){return t=t==null?void 0:t.replace("T"," "),D.fromSQL(t,{zone:"local"}).setZone(Vs)}function pn(t){return typeof t=="string"?(t=t.replace("T"," ").replace(/\//g,"-"),D.fromSQL(t)):t||D.fromSQL("0000-00-00 00:00:00")}function eo(t,e="yyyy/MM/dd"){return D.fromFormat(t,e)}function Us(t,e="yyyy/MM/dd HH:mm:ss"){return D.fromFormat(t,e)}function Z0(t){return _t(t,{format:"yyyy/MM/dd"})}function rr(t,e={}){return to(Rs(t),e)}function to(t=null,{format:e="M/d/yy h:mma",empty:n="- -"}={}){const r=pn(t).toFormat(e).toLowerCase();return["Invalid DateTime","invalid datetime"].includes(r)?n:r}function js(t=null){return to(t,{format:"yyyy-MM-dd HH:mm:ss",empty:void 0})}function _t(t,{empty:e="--",format:n="M/d/yy"}={}){const r=pn(t).toFormat(n||"M/d/yy");return["Invalid DateTime","invalid datetime"].includes(r)?e:r}function Y0(t){const e=D.now().setZone("UTC").startOf("year").set({second:t}),n=Math.floor(t/3600);return(n?n+":":"")+e.toFormat("mm:ss")}function K0(t,e){const r=(e?pn(e):D.now()).diff(pn(t),["hours","minutes","seconds"]);if(!r.isValid)return"-";const i=Math.floor(r.hours),s=Math.floor(r.minutes),l=Math.floor(r.seconds);return`${i?i+"h ":""}${s?s+"m ":""}${l}s`}function no(t,e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",...e}).format(t)}function Q0(t,e){return no(t,{maximumFractionDigits:0,...e})}function Tt(t,e){return new Intl.NumberFormat("en-US",e).format(t)}function X0(t,e){return"$"+rd(t,e)}function rd(t,e){const n=[{pow:3,unit:"K"},{pow:6,unit:"M"},{pow:9,unit:"B"},{pow:12,unit:"T"},{pow:15,unit:"Q"}];let r=Math.round(+t);const i=n.find(({pow:s})=>Math.pow(10,s)<r&&Math.pow(10,s+3)>r)||null;return i?(r=r/Math.pow(10,i.pow),e!=null&&e.round?r+i.unit:r.toFixed(r>100?0:1)+i.unit):r}function J0(t){const e=[{pow:0,unit:"B"},{pow:10,unit:"KB"},{pow:20,unit:"MB"},{pow:30,unit:"GB"},{pow:40,unit:"TB"},{pow:50,unit:"PB"},{pow:60,unit:"EB"},{pow:70,unit:"ZB"},{pow:80,unit:"YB"}],n=Math.round(+t),r=e.find((s,l)=>{const a=e[l+1];return!a||n<Math.pow(2,a.pow+10)})||e[e.length-1],i=Math.pow(2,r.pow);return Math.round(n/i)+" "+r.unit}function id(t){return t?"Yes":"No"}function eg(t,e){if(t.length>e){const n=Math.floor((e-3)/2),r=e-n-3;return t.substring(0,n)+"..."+t.substring(t.length-r)}else return t}function od(t,e={}){return e={multiplier:100,maximumFractionDigits:1,NaN:"N/A",...e},t=parseFloat(""+t),isNaN(t)?e.NaN:Tt(t*(e.multiplier||100),e)+"%"}function tg(t){if(!t||typeof t!="string")return t||"";const e=t.replace(/\D/g,"").split("");let n="";const i=e.length>0&&e[0]==="1"?1:0;return e.map((s,l)=>{switch(l){case i:n+="(";break;case i+3:n+=") ";break;case i+6:n+="-";break;case i+10:n+=" x";break}l===0&&s==="1"?n+="+1 ":n+=s}),t==="+1 ("?"":n}function sd(t,e){return Array.isArray(t)?`${t==null?void 0:t.length} ${e}`:`${t?t.title||t.name||t.id:""}`}function ld(t){if(!t)return t;try{return JSON.stringify(typeof t=="object"?t:JSON.parse(t),null,2)}catch{return t}}function ng(t){if(!t)return null;if(typeof t=="object")return t;try{return JSON.parse(zs(t))}catch{return!1}}function rg(t){if(!t)return null;try{return H0(zs(t))||(t?void 0:null)}catch{return!1}}function zs(t){return t.replace(/^```[a-z0-9]{1,6}\s/,"").replace(/```$/,"")}function ig(t,e){if(typeof e=="object"||Oa(e))switch(t){case"yaml":e=W0(typeof e=="string"?JSON.parse(e):e);break;case"ts":e="";break;default:e=ld(e)}const n=new RegExp(`\`\`\`${t}`,"g");return(e||"").match(n)?e:`\`\`\`${t}
131
+ `,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Ji(e),r=nr(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Ji(e),r=nr(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function z0(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new U0||null,prettyErrors:e}}function G0(t,e={}){const{lineCounter:n,prettyErrors:r}=z0(e),i=new j0(n==null?void 0:n.addNewLine),s=new v0(e);let l=null;for(const a of s.compose(i.parse(t),!0,t.length))if(!l)l=a;else if(l.options.logLevel!=="silent"){l.errors.push(new jr(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(l.errors.forEach(Uu(t,n)),l.warnings.forEach(Uu(t,n))),l}function H0(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=G0(t,n);if(!i)return null;if(i.warnings.forEach(s=>yu(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function W0(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return new Ur(t,r,n).toString(n)}const Vs=new ht("America/Chicago");function Rs(t){return t=t==null?void 0:t.replace("T"," "),D.fromSQL(t,{zone:Vs}).setZone("local")}function nd(t){return t=t==null?void 0:t.replace("T"," "),D.fromSQL(t,{zone:"local"}).setZone(Vs)}function pn(t){return typeof t=="string"?(t=t.replace("T"," ").replace(/\//g,"-"),D.fromSQL(t)):t||D.fromSQL("0000-00-00 00:00:00")}function eo(t,e="yyyy/MM/dd"){return D.fromFormat(t,e)}function Us(t,e="yyyy/MM/dd HH:mm:ss"){return D.fromFormat(t,e)}function Z0(t){return _t(t,{format:"yyyy/MM/dd"})}function rr(t,e={}){return to(Rs(t),e)}function to(t=null,{format:e="M/d/yy h:mma",empty:n="- -"}={}){const r=pn(t).toFormat(e).toLowerCase();return["Invalid DateTime","invalid datetime"].includes(r)?n:r}function js(t=null){return to(t,{format:"yyyy-MM-dd HH:mm:ss",empty:void 0})}function _t(t,{empty:e="--",format:n="M/d/yy"}={}){const r=pn(t).toFormat(n||"M/d/yy");return["Invalid DateTime","invalid datetime"].includes(r)?e:r}function Y0(t){const e=D.now().setZone("UTC").startOf("year").set({second:t}),n=Math.floor(t/3600);return(n?n+":":"")+e.toFormat("mm:ss")}function K0(t,e){const r=(e?pn(e):D.now()).diff(pn(t),["hours","minutes","seconds"]);if(!r.isValid)return"-";const i=Math.floor(r.hours),s=Math.floor(r.minutes),l=Math.floor(r.seconds);return`${i?i+"h ":""}${s?s+"m ":""}${l}s`}function no(t,e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",...e}).format(t)}function Q0(t,e){return no(t,{maximumFractionDigits:0,...e})}function Tt(t,e){return new Intl.NumberFormat("en-US",e).format(t)}function X0(t,e){return"$"+rd(t,e)}function rd(t,e){const n=[{pow:3,unit:"K"},{pow:6,unit:"M"},{pow:9,unit:"B"},{pow:12,unit:"T"},{pow:15,unit:"Q"}];let r=Math.round(+t);const i=n.find(({pow:s})=>Math.pow(10,s)<r&&Math.pow(10,s+3)>r)||null;return i?(r=r/Math.pow(10,i.pow),e!=null&&e.round?r+i.unit:r.toFixed(r>100?0:1)+i.unit):r}function J0(t){const e=[{pow:0,unit:"B"},{pow:10,unit:"KB"},{pow:20,unit:"MB"},{pow:30,unit:"GB"},{pow:40,unit:"TB"},{pow:50,unit:"PB"},{pow:60,unit:"EB"},{pow:70,unit:"ZB"},{pow:80,unit:"YB"}],n=Math.round(+t),r=e.find((s,l)=>{const a=e[l+1];return!a||n<Math.pow(2,a.pow+10)})||e[e.length-1],i=Math.pow(2,r.pow);return Math.round(n/i)+" "+r.unit}function id(t){return t==null?"-":t?"Yes":"No"}function eg(t,e){if(t.length>e){const n=Math.floor((e-3)/2),r=e-n-3;return t.substring(0,n)+"..."+t.substring(t.length-r)}else return t}function od(t,e={}){return e={multiplier:100,maximumFractionDigits:1,NaN:"N/A",...e},t=parseFloat(""+t),isNaN(t)?e.NaN:Tt(t*(e.multiplier||100),e)+"%"}function tg(t){if(!t||typeof t!="string")return t||"";const e=t.replace(/\D/g,"").split("");let n="";const i=e.length>0&&e[0]==="1"?1:0;return e.map((s,l)=>{switch(l){case i:n+="(";break;case i+3:n+=") ";break;case i+6:n+="-";break;case i+10:n+=" x";break}l===0&&s==="1"?n+="+1 ":n+=s}),t==="+1 ("?"":n}function sd(t,e){return Array.isArray(t)?`${t==null?void 0:t.length} ${e}`:`${t?t.title||t.name||t.id:""}`}function ld(t){if(!t)return t;try{return JSON.stringify(typeof t=="object"?t:JSON.parse(t),null,2)}catch{return t}}function ng(t){if(!t)return null;if(typeof t=="object")return t;try{return JSON.parse(zs(t))}catch{return!1}}function rg(t){if(!t)return null;try{return H0(zs(t))||(t?void 0:null)}catch{return!1}}function zs(t){return t.replace(/^```[a-z0-9]{1,6}\s/,"").replace(/```$/,"")}function ig(t,e){if(typeof e=="object"||Oa(e))switch(t){case"yaml":e=W0(typeof e=="string"?JSON.parse(e):e);break;case"ts":default:e=ld(e)}const n=new RegExp(`\`\`\`${t}`,"g");return(e||"").match(n)?e:`\`\`\`${t}
132
132
  ${e}
133
133
  \`\`\``}function og(t,e){return pn(e).diff(pn(t),["days"]).days}function ro(t,e,n){var r=window,i="application/octet-stream",s=n||i,l=t,a=!e&&!n&&l,c=document.createElement("a"),u=function(x){return String(x)},d=r.Blob||r.MozBlob||r.WebKitBlob||u,f=e||"download",h,_;if(d=d.call?d.bind(r):Blob,String(this)==="true"&&(l=[l,s],s=l[0],l=l[1]),a&&a.length<2048)if(f=a.split("/").pop().split("?")[0],c.href=a,c.href.indexOf(a)!==-1||c.href.indexOf(encodeURI(a))!==-1||c.href===encodeURI(a)){var g=new XMLHttpRequest;return g.open("GET",a+"?no-cache="+Date.now(),!0),g.responseType="blob",g.onload=function(x){ro(x.target.response,f,i)},g.onerror=function(x){window.open(a,"_blank").focus()},setTimeout(function(){g.send()},0),g}else throw new Error("Invalid URL given, cannot download file: "+a);if(/^data:[\w+-]+\/[\w+-]+[,;]/.test(l))if(l.length>1024*1024*1.999&&d!==u)l=m(l),s=l.type||i;else return navigator.msSaveBlob?navigator.msSaveBlob(m(l),f):p(l);h=l instanceof d?l:new d([l],{type:s});function m(x){var y=x.split(/[:;,]/),b=y[1],C=y[2]==="base64"?atob:decodeURIComponent,T=C(y.pop()),w=T.length,k=0,E=new Uint8Array(w);for(k;k<w;++k)E[k]=T.charCodeAt(k);return new d([E],{type:b})}function p(x,y){if("download"in c)return c.href=x,c.setAttribute("download",f),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout(function(){c.click(),document.body.removeChild(c),y===!0&&setTimeout(function(){r.URL.revokeObjectURL(c.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return x=x.replace(/^data:([\w/\-+]+)/,i),window.open(x)||confirm(`Displaying New Document
134
134
 
@@ -150,5 +150,5 @@ Use Save As... to download, then click back to return to this page.`)&&(location
150
150
  * Subject to the terms at https://gsap.com/standard-license or for
151
151
  * Club GSAP members, the agreement issued with that membership.
152
152
  * @author: Jack Doyle, jack@greensock.com
153
- */var g_,Xt,br,na,In,y_,ra,RC=function(){return typeof window<"u"},Ot={},Bn=180/Math.PI,wr=Math.PI/180,kr=Math.atan2,b_=1e8,ia=/([A-Z])/g,UC=/(left|right|width|margin|padding|x)/i,jC=/[\s,\(]\S/,bt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},oa=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},zC=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)},GC=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)},HC=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},w_=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},k_=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},WC=function(e,n,r){return e.style[n]=r},ZC=function(e,n,r){return e.style.setProperty(n,r)},YC=function(e,n,r){return e._gsap[n]=r},KC=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},QC=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},XC=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},re="transform",Le=re+"Origin",JC=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in Ot&&s){if(this.tfm=this.tfm||{},e!=="transform")e=bt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=$t(i,a)}):this.tfm[e]=l.x?l[e]:$t(i,e),e===Le&&(this.tfm.zOrigin=l.zOrigin);else return bt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(re)>=0)return;l.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Le,n,"")),e=re}(s||n)&&this.props.push(e,n,s[e])},x_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},eE=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(ia,"-$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=ra(),(!s||!s.isStart)&&!r[re]&&(x_(r),i.zOrigin&&r[Le]&&(r[Le]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},S_=function(e,n){var r={target:e,props:[],revert:eE,save:JC};return e._gsap||ve.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},C_,sa=function(e,n){var r=Xt.createElementNS?Xt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Xt.createElement(e);return r&&r.style?r:Xt.createElement(e)},wt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ia,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,xr(n)||n,1)||""},E_="O,Moz,ms,Ms,Webkit".split(","),xr=function(e,n,r){var i=n||In,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(E_[l]+e in s););return l<0?null:(l===3?"ms":l>=0?E_[l]:"")+e},la=function(){RC()&&window.document&&(g_=window,Xt=g_.document,br=Xt.documentElement,In=sa("div")||{style:{}},sa("div"),re=xr(re),Le=re+"Origin",In.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",C_=!!xr("perspective"),ra=ve.core.reverting,na=1)},aa=function t(e){var n=sa("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(br.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)),br.removeChild(n),this.style.cssText=s,l},T_=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},N_=function(e){var n;try{n=e.getBBox()}catch{n=aa.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===aa||(n=aa.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+T_(e,["x","cx","x1"])||0,y:+T_(e,["y","cy","y1"])||0,width:0,height:0}:n},I_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&N_(e))},Fn=function(e,n){if(n){var r=e.style,i;n in Ot&&n!==Le&&(n=re),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ia,"-$1").toLowerCase())):r.removeAttribute(n)}},Jt=function(e,n,r,i,s,l){var a=new Me(e._pt,n,r,0,1,l?k_:w_);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},B_={deg:1,rad:1,turn:1},tE={grid:1,flex:1},en=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=In.style,c=UC.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=i==="px",_=i==="%",g,m,p,x;if(i===l||!s||B_[i]||B_[l])return s;if(l!=="px"&&!h&&(s=t(e,n,r,"px")),x=e.getCTM&&I_(e),(_||l==="%")&&(Ot[n]||~n.indexOf("adius")))return g=x?e.getBBox()[c?"width":"height"]:e[d],de(_?s/g*f:s/100*g);if(a[c?"width":"height"]=f+(h?l:i),m=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Xt||!m.appendChild)&&(m=Xt.body),p=m._gsap,p&&_&&p.width&&c&&p.time===Ge.time&&!p.uncache)return de(s/p.width*f);if(_&&(n==="height"||n==="width")){var y=e.style[n];e.style[n]=f+i,g=e[d],y?e.style[n]=y:Fn(e,n)}else(_||l==="%")&&!tE[wt(m,"display")]&&(a.position=wt(e,"position")),m===e&&(a.position="static"),m.appendChild(In),g=In[d],m.removeChild(In),a.position="absolute";return c&&_&&(p=xn(m),p.time=Ge.time,p.width=m[d]),de(h?g*s/f:g&&s?f/g*s:0)},$t=function(e,n,r,i){var s;return na||la(),n in bt&&n!=="transform"&&(n=bt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Ot[n]&&n!=="transform"?(s=ui(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Mo(wt(e,Le))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Po[n]&&Po[n](e,n,r)||wt(e,n)||Ah(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?en(e,n,s,r)+r:s},nE=function(e,n,r,i){if(!r||r==="none"){var s=xr(n,e,1),l=s&&wt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=wt(e,"borderTopColor"))}var a=new Me(this._pt,e.style,n,0,1,h_),c=0,u=0,d,f,h,_,g,m,p,x,y,b,C,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(m=e.style[n],e.style[n]=i,i=wt(e,n)||i,m?e.style[n]=m:Fn(e,n)),d=[r,i],r_(d),r=d[0],i=d[1],h=r.match(hr)||[],T=i.match(hr)||[],T.length){for(;f=hr.exec(i);)p=f[0],y=i.substring(c,f.index),g?g=(g+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(g=1),p!==(m=h[u++]||"")&&(_=parseFloat(m)||0,C=m.substr((_+"").length),p.charAt(1)==="="&&(p=_r(_,p)+C),x=parseFloat(p),b=p.substr((x+"").length),c=hr.lastIndex-b.length,b||(b=b||Re.units[n]||C,c===i.length&&(i+=b,a.e+=b)),C!==b&&(_=en(e,n,m,b)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:_,c:x-_,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"?k_:w_;return Th.test(i)&&(a.e=0),this._pt=a,a},F_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},rE=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]=F_[r]||r,n[1]=F_[i]||i,n.join(" ")},iE=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],Ot[a]&&(c=1,a=a==="transformOrigin"?Le:re),Fn(r,a);c&&(Fn(r,re),l&&(l.svg&&r.removeAttribute("transform"),ui(r,1),l.uncache=1,x_(i)))}},Po={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Me(e._pt,n,r,0,0,iE);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ci=[1,0,0,1,0,0],O_={},$_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},A_=function(e){var n=wt(e,re);return $_(n)?ci:n.substr(7).match(Eh).map(de)},ca=function(e,n){var r=e._gsap||xn(e),i=e.style,s=A_(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"?ci:s):(s===ci&&!e.offsetParent&&e!==br&&!r.svg&&(c=i.display,i.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,br.appendChild(e)),s=A_(e),c?i.display=c:Fn(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):br.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ua=function(e,n,r,i,s,l){var a=e._gsap,c=s||ca(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,_=c[0],g=c[1],m=c[2],p=c[3],x=c[4],y=c[5],b=n.split(" "),C=parseFloat(b[0])||0,T=parseFloat(b[1])||0,w,k,E,N;r?c!==ci&&(k=_*p-g*m)&&(E=C*(p/k)+T*(-m/k)+(m*y-p*x)/k,N=C*(-g/k)+T*(_/k)-(_*y-g*x)/k,C=E,T=N):(w=N_(e),C=w.x+(~b[0].indexOf("%")?C/100*w.width:C),T=w.y+(~(b[1]||b[0]).indexOf("%")?T/100*w.height:T)),i||i!==!1&&a.smooth?(x=C-u,y=T-d,a.xOffset=f+(x*_+y*m)-x,a.yOffset=h+(x*g+y*p)-y):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Le]="0px 0px",l&&(Jt(l,a,"xOrigin",u,C),Jt(l,a,"yOrigin",d,T),Jt(l,a,"xOffset",f,a.xOffset),Jt(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},ui=function(e,n){var r=e._gsap||new l_(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=wt(e,Le)||"0",d,f,h,_,g,m,p,x,y,b,C,T,w,k,E,N,I,B,$,R,Q,se,te,P,we,ot,At,tn,St,Lo,ft,Dt;return d=f=h=m=p=x=y=b=C=0,_=g=1,r.svg=!!(e.getCTM&&I_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[re]=(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[re]!=="none"?c[re]:"")),i.scale=i.rotate=i.translate="none"),k=ca(e,r.svg),r.svg&&(r.uncache?(we=e.getBBox(),u=r.xOrigin-we.x+"px "+(r.yOrigin-we.y)+"px",P=""):P=!n&&e.getAttribute("data-svg-origin"),ua(e,P||u,!!P||r.originIsAbsolute,r.smooth!==!1,k)),T=r.xOrigin||0,w=r.yOrigin||0,k!==ci&&(B=k[0],$=k[1],R=k[2],Q=k[3],d=se=k[4],f=te=k[5],k.length===6?(_=Math.sqrt(B*B+$*$),g=Math.sqrt(Q*Q+R*R),m=B||$?kr($,B)*Bn:0,y=R||Q?kr(R,Q)*Bn+m:0,y&&(g*=Math.abs(Math.cos(y*wr))),r.svg&&(d-=T-(T*B+w*R),f-=w-(T*$+w*Q))):(Dt=k[6],Lo=k[7],At=k[8],tn=k[9],St=k[10],ft=k[11],d=k[12],f=k[13],h=k[14],E=kr(Dt,St),p=E*Bn,E&&(N=Math.cos(-E),I=Math.sin(-E),P=se*N+At*I,we=te*N+tn*I,ot=Dt*N+St*I,At=se*-I+At*N,tn=te*-I+tn*N,St=Dt*-I+St*N,ft=Lo*-I+ft*N,se=P,te=we,Dt=ot),E=kr(-R,St),x=E*Bn,E&&(N=Math.cos(-E),I=Math.sin(-E),P=B*N-At*I,we=$*N-tn*I,ot=R*N-St*I,ft=Q*I+ft*N,B=P,$=we,R=ot),E=kr($,B),m=E*Bn,E&&(N=Math.cos(E),I=Math.sin(E),P=B*N+$*I,we=se*N+te*I,$=$*N-B*I,te=te*N-se*I,B=P,se=we),p&&Math.abs(p)+Math.abs(m)>359.9&&(p=m=0,x=180-x),_=de(Math.sqrt(B*B+$*$+R*R)),g=de(Math.sqrt(te*te+Dt*Dt)),E=kr(se,te),y=Math.abs(E)>2e-4?E*Bn:0,C=ft?1/(ft<0?-ft:ft):0),r.svg&&(P=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!$_(wt(e,re)),P&&e.setAttribute("transform",P))),Math.abs(y)>90&&Math.abs(y)<270&&(s?(_*=-1,y+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,y+=y<=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=h+l,r.scaleX=de(_),r.scaleY=de(g),r.rotation=de(m)+a,r.rotationX=de(p)+a,r.rotationY=de(x)+a,r.skewX=y+a,r.skewY=b+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Le]=Mo(u)),r.xOffset=r.yOffset=0,r.force3D=Re.force3D,r.renderTransform=r.svg?sE:C_?D_:oE,r.uncache=0,r},Mo=function(e){return(e=e.split(" "))[0]+" "+e[1]},da=function(e,n,r){var i=Ee(n);return de(parseFloat(n)+parseFloat(en(e,"x",r+"px",i)))+i},oE=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,D_(e,n)},On="0deg",di="0px",$n=") ",D_=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,h=r.skewX,_=r.skewY,g=r.scaleX,m=r.scaleY,p=r.transformPerspective,x=r.force3D,y=r.target,b=r.zOrigin,C="",T=x==="auto"&&e&&e!==1||x===!0;if(b&&(f!==On||d!==On)){var w=parseFloat(d)*wr,k=Math.sin(w),E=Math.cos(w),N;w=parseFloat(f)*wr,N=Math.cos(w),l=da(y,l,k*N*-b),a=da(y,a,-Math.sin(w)*-b),c=da(y,c,E*N*-b+b)}p!==di&&(C+="perspective("+p+$n),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(T||l!==di||a!==di||c!==di)&&(C+=c!==di||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+$n),u!==On&&(C+="rotate("+u+$n),d!==On&&(C+="rotateY("+d+$n),f!==On&&(C+="rotateX("+f+$n),(h!==On||_!==On)&&(C+="skew("+h+", "+_+$n),(g!==1||m!==1)&&(C+="scale("+g+", "+m+$n),y.style[re]=C||"translate(0, 0)"},sE=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,h=r.scaleY,_=r.target,g=r.xOrigin,m=r.yOrigin,p=r.xOffset,x=r.yOffset,y=r.forceCSS,b=parseFloat(l),C=parseFloat(a),T,w,k,E,N;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=wr,u*=wr,T=Math.cos(c)*f,w=Math.sin(c)*f,k=Math.sin(c-u)*-h,E=Math.cos(c-u)*h,u&&(d*=wr,N=Math.tan(u-d),N=Math.sqrt(1+N*N),k*=N,E*=N,d&&(N=Math.tan(d),N=Math.sqrt(1+N*N),T*=N,w*=N)),T=de(T),w=de(w),k=de(k),E=de(E)):(T=f,E=h,w=k=0),(b&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(b=en(_,"x",l,"px"),C=en(_,"y",a,"px")),(g||m||p||x)&&(b=de(b+g-(g*T+m*k)+p),C=de(C+m-(g*w+m*E)+x)),(i||s)&&(N=_.getBBox(),b=de(b+i/100*N.width),C=de(C+s/100*N.height)),N="matrix("+T+","+w+","+k+","+E+","+b+","+C+")",_.setAttribute("transform",N),y&&(_.style[re]=N)},lE=function(e,n,r,i,s){var l=360,a=pe(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?Bn:1),u=c-i,d=i+u+"deg",f,h;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*b_)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*b_)%l-~~(u/l)*l)),e._pt=h=new Me(e._pt,n,r,i,u,zC),h.e=d,h.u="deg",e._props.push(r),h},P_=function(e,n){for(var r in n)e[r]=n[r];return e},aE=function(e,n,r){var i=P_({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,h,_,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[re]=n,a=ui(r,1),Fn(r,re),r.setAttribute("transform",u)):(u=getComputedStyle(r)[re],l[re]=n,a=ui(r,1),l[re]=u);for(c in Ot)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(_=Ee(u),g=Ee(d),f=_!==g?en(r,c,u,g):parseFloat(u),h=parseFloat(d),e._pt=new Me(e._pt,a,c,f,h-f,oa),e._pt.u=g||0,e._props.push(c));P_(a,i)};Pe("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});Po[e>1?"border"+t:t]=function(a,c,u,d,f){var h,_;if(arguments.length<4)return h=l.map(function(g){return $t(a,g,u)}),_=h.join(" "),_.split(h[0]).length===5?h[0]:_;h=(d+"").split(" "),_={},l.forEach(function(g,m){return _[g]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(c,_,f)}});var M_={name:"css",register:la,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,h,_,g,m,p,x,y,b,C,T,w,k,E;na||la(),this.styles=this.styles||S_(e),E=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(d=n[m],!(je[m]&&a_(m,n,r,i,e,s)))){if(_=typeof d,g=Po[m],_==="function"&&(d=d.call(r,i,e,s),_=typeof d),_==="string"&&~d.indexOf("random(")&&(d=ri(d)),g)g(this,e,m,d,r)&&(k=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),d+="",Kt.lastIndex=0,Kt.test(u)||(p=Ee(u),x=Ee(d)),x?p!==x&&(u=en(e,m,u,x)+x):p&&(d+=p),this.add(a,"setProperty",u,d,i,s,0,0,m),l.push(m),E.push(m,0,a[m]);else if(_!=="undefined"){if(c&&m in c?(u=typeof c[m]=="function"?c[m].call(r,i,e,s):c[m],pe(u)&&~u.indexOf("random(")&&(u=ri(u)),Ee(u+"")||u==="auto"||(u+=Re.units[m]||Ee($t(e,m))||""),(u+"").charAt(1)==="="&&(u=$t(e,m))):u=$t(e,m),h=parseFloat(u),y=_==="string"&&d.charAt(1)==="="&&d.substr(0,2),y&&(d=d.substr(2)),f=parseFloat(d),m in bt&&(m==="autoAlpha"&&(h===1&&$t(e,"visibility")==="hidden"&&f&&(h=0),E.push("visibility",0,a.visibility),Jt(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=bt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Ot,b){if(this.styles.save(m),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||ui(e,n.parseTransform),w=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Me(this._pt,a,re,0,1,T.renderTransform,T,0,-1),C.dep=1),m==="scale")this._pt=new Me(this._pt,T,"scaleY",T.scaleY,(y?_r(T.scaleY,y+f):f)-T.scaleY||0,oa),this._pt.u=0,l.push("scaleY",m),m+="X";else if(m==="transformOrigin"){E.push(Le,0,a[Le]),d=rE(d),T.svg?ua(e,d,0,w,0,this):(x=parseFloat(d.split(" ")[2])||0,x!==T.zOrigin&&Jt(this,T,"zOrigin",T.zOrigin,x),Jt(this,a,m,Mo(u),Mo(d)));continue}else if(m==="svgOrigin"){ua(e,d,1,w,0,this);continue}else if(m in O_){lE(this,T,m,h,y?_r(h,y+d):d);continue}else if(m==="smoothOrigin"){Jt(this,T,"smooth",T.smooth,d);continue}else if(m==="force3D"){T[m]=d;continue}else if(m==="transform"){aE(this,d,e);continue}}else m in a||(m=xr(m)||m);if(b||(f||f===0)&&(h||h===0)&&!jC.test(d)&&m in a)p=(u+"").substr((h+"").length),f||(f=0),x=Ee(d)||(m in Re.units?Re.units[m]:p),p!==x&&(h=en(e,m,u,x)),this._pt=new Me(this._pt,b?T:a,m,h,(y?_r(h,y+f):f)-h,!b&&(x==="px"||m==="zIndex")&&n.autoRound!==!1?HC:oa),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=GC);else if(m in a)nE.call(this,e,m,u,y?y+d:d);else if(m in e)this.add(e,m,u||e[m],y?y+d:d,i,s);else if(m!=="parseTransform"){Al(m,d);continue}b||(m in a?E.push(m,0,a[m]):E.push(m,1,u||e[m])),l.push(m)}}k&&__(this)},render:function(e,n){if(n.tween._time||!ra())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:$t,aliases:bt,getSetter:function(e,n,r){var i=bt[n];return i&&i.indexOf(",")<0&&(n=i),n in Ot&&n!==Le&&(e._gsap.x||$t(e,"x"))?r&&y_===r?n==="scale"?KC:YC:(y_=r||{})&&(n==="scale"?QC:XC):e.style&&!Nl(e.style[n])?WC:~n.indexOf("-")?ZC:Ql(e,n)},core:{_removeProperty:Fn,_getMatrix:ca}};ve.utils.checkPrefix=xr,ve.core.getStyleSaver=S_,function(t,e,n,r){var i=Pe(t+","+e+","+n,function(s){Ot[s]=1});Pe(e,function(s){Re.units[s]="deg",O_[s]=1}),bt[i[13]]=t+","+e,Pe(r,function(s){var l=s.split(":");bt[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"),Pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Re.units[t]="px"}),ve.registerPlugin(M_);var fa=ve.registerPlugin(M_)||ve;fa.core.Tween;const cE={__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}fa.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}fa.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:s,onLeave:l},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}},ha=o.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>Array.isArray(r.target)?r.target.length>0:!!r.target),s=o.computed(()=>r.actions.filter(c=>Array.isArray(r.target)?c.batchEnabled?c.batchEnabled(r.target):!0:c.enabled?c.enabled(r.target):!0)),l=o.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(r.target),l.value=!1,n("success",c)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(wh),{class:"px-2 flex dx-action-button",items:s.value,disabled:!i.value,tooltip:i.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),uE={key:0,class:"flex-grow overflow-hidden"},v_=o.defineComponent({__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(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":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(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(l.value),class:o.normalizeClass(["dx-column",r.value.columnClass])},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[r.value.hideContent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",uE,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass([r.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{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,"dx-column-text"])},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{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(U_),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)])),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["flex flex-shrink-0",{"ml-2":!r.value.hideContent}])},[o.createVNode(o.unref(ha),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])],2)):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class _a{constructor(e={}){W(this,"options",{direction:"vertical",hideDragImage:!1});W(this,"startY",0);W(this,"startX",0);W(this,"startSize",0);W(this,"cursorY",0);W(this,"cursorX",0);W(this,"onStartCb",null);W(this,"onEndCb",null);W(this,"onDropCb",null);W(this,"onDraggingCb",null);W(this,"dropZoneResolver",null);W(this,"currentDropZone",null);W(this,"draggableData",null);W(this,"abortController",null);e={direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",this.draggableData=n,this.abortController=new AbortController;const r={signal:this.abortController.signal};document.addEventListener("dragenter",i=>this.dragEnter(i),r),document.addEventListener("dragover",i=>this.dragOver(i),r),document.addEventListener("drop",i=>this.drop(i),r),this.onStartCb&&this.onStartCb(e),this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){this.currentDropZone=null,this.abortController.abort(),this.draggableData=null,this.onEndCb&&this.onEndCb(e)}dragEnter(e){e.preventDefault()}dragOver(e){e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e)}drop(e){e.dataTransfer.dropEffect="move",e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData)}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let r=e.target;for(;r;){if(((n=r.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return r;r=r.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth}getPercentChange(){return this.getDistance()/this.startSize*100}}const L_={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,r=t,i=new _a().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(nn(()=>{n("resize",{distance:i.getDistance(),percent:i.getPercentChange(),startDropZoneSize:i.startSize,dropZoneSize:i.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),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.renderSlot(s.$slots,"default")],34))}};class q_ extends _a{constructor(n={}){super({showPlaceholder:!0,...n});W(this,"listPosition",0);W(this,"cursorPosition",0);W(this,"initialPosition",0);W(this,"onPositionChangeCb",null);W(this,"onDragPositionChangeCb",null);W(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 dE={class:"flex items-center"},fE={key:0},hE={class:"flex-grow"},V_={__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 q_().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",dE,[t.showHandle?(o.openBlock(),o.createElementBlock("div",fE,[o.createVNode(o.unref(mh),{svg:o.unref(nh),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",hE,[o.renderSlot(s.$slots,"default")])])],32))}},R_=mt(o.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),s=o.computed(()=>i.value.resizeable),l=o.computed(()=>{var f;const d=((f=r.settings)==null?void 0:f.width)||i.value.width;return{width:d?`${d}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}}),a=o.useCssModule("cls"),c=o.computed(()=>{const d={[a["handle-drop-zone"]]:s.value,"dx-column-shrink":i.value.shrink},f=i.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(o.openBlock(),o.createBlock(o.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":s.value&&"resize-column-"+i.value.name,class:o.normalizeClass(c.value),style:o.normalizeStyle(l.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),s.value?(o.openBlock(),o.createBlock(o.unref(L_),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:o.withCtx(()=>[o.createVNode(o.unref(rh),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):o.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{"!visible":"_!visible_x1jdl_1",visible:"_visible_x1jdl_1",collapse:"_collapse_x1jdl_1",static:"_static_x1jdl_1",absolute:"_absolute_x1jdl_1",relative:"_relative_x1jdl_1",sticky:"_sticky_x1jdl_1","left-0":"_left-0_x1jdl_1","right-0":"_right-0_x1jdl_1","right-1":"_right-1_x1jdl_1","top-0":"_top-0_x1jdl_1","top-1":"_top-1_x1jdl_1","m-2":"_m-2_x1jdl_1","m-4":"_m-4_x1jdl_1","m-auto":"_m-auto_x1jdl_1","mx-1":"_mx-1_x1jdl_1","mx-4":"_mx-4_x1jdl_1","mx-auto":"_mx-auto_x1jdl_1","my-2":"_my-2_x1jdl_1","!mr-1":"_!mr-1_x1jdl_1","mb-2":"_mb-2_x1jdl_1","mb-4":"_mb-4_x1jdl_1","ml-1":"_ml-1_x1jdl_1","ml-2":"_ml-2_x1jdl_1","ml-2.5":"_ml-2.5_x1jdl_1","ml-3":"_ml-3_x1jdl_1","ml-4":"_ml-4_x1jdl_1","ml-5":"_ml-5_x1jdl_1","ml-[-.2em]":"_ml-[-.2em]_x1jdl_1","mr-1":"_mr-1_x1jdl_1","mr-2":"_mr-2_x1jdl_1","mr-3":"_mr-3_x1jdl_1","mr-4":"_mr-4_x1jdl_1","mt-1":"_mt-1_x1jdl_1","mt-2":"_mt-2_x1jdl_1","mt-3":"_mt-3_x1jdl_1","mt-4":"_mt-4_x1jdl_1",block:"_block_x1jdl_1","inline-block":"_inline-block_x1jdl_1",inline:"_inline_x1jdl_1",flex:"_flex_x1jdl_1",table:"_table_x1jdl_1",hidden:"_hidden_x1jdl_1","h-10":"_h-10_x1jdl_1","h-16":"_h-16_x1jdl_1","h-32":"_h-32_x1jdl_1","h-4":"_h-4_x1jdl_1","h-5":"_h-5_x1jdl_1","h-8":"_h-8_x1jdl_1","h-[2.25rem]":"_h-[2.25rem]_x1jdl_1","h-full":"_h-full_x1jdl_1","max-h-full":"_max-h-full_x1jdl_1","w-10":"_w-10_x1jdl_1","w-16":"_w-16_x1jdl_1","w-2/5":"_w-2/5_x1jdl_1","w-24":"_w-24_x1jdl_1","w-3":"_w-3_x1jdl_1","w-3/5":"_w-3/5_x1jdl_1","w-32":"_w-32_x1jdl_1","w-4":"_w-4_x1jdl_1","w-48":"_w-48_x1jdl_1","w-5":"_w-5_x1jdl_1","w-6":"_w-6_x1jdl_1","w-7":"_w-7_x1jdl_1","w-72":"_w-72_x1jdl_1","w-8":"_w-8_x1jdl_1","w-96":"_w-96_x1jdl_1","w-[13.5rem]":"_w-[13.5rem]_x1jdl_1","w-[6.5rem]":"_w-[6.5rem]_x1jdl_1","w-[80rem]":"_w-[80rem]_x1jdl_1","w-full":"_w-full_x1jdl_1","!min-w-0":"_!min-w-0_x1jdl_1","max-w-full":"_max-w-full_x1jdl_1","flex-shrink":"_flex-shrink_x1jdl_1","flex-shrink-0":"_flex-shrink-0_x1jdl_1",shrink:"_shrink_x1jdl_1","flex-grow":"_flex-grow_x1jdl_1",grow:"_grow_x1jdl_1","rotate-180":"_rotate-180_x1jdl_1",transform:"_transform_x1jdl_1","cursor-ew-resize":"_cursor-ew-resize_x1jdl_1","cursor-move":"_cursor-move_x1jdl_1","cursor-not-allowed":"_cursor-not-allowed_x1jdl_1","cursor-ns-resize":"_cursor-ns-resize_x1jdl_1","cursor-pointer":"_cursor-pointer_x1jdl_1",resize:"_resize_x1jdl_121","flex-col":"_flex-col_x1jdl_1","flex-nowrap":"_flex-nowrap_x1jdl_1","items-center":"_items-center_x1jdl_1","items-stretch":"_items-stretch_x1jdl_1","justify-start":"_justify-start_x1jdl_1","justify-end":"_justify-end_x1jdl_1","justify-center":"_justify-center_x1jdl_1","justify-between":"_justify-between_x1jdl_1","gap-y-0":"_gap-y-0_x1jdl_1","gap-y-1":"_gap-y-1_x1jdl_1","space-x-1":"_space-x-1_x1jdl_1","space-x-2":"_space-x-2_x1jdl_1","self-center":"_self-center_x1jdl_1","overflow-auto":"_overflow-auto_x1jdl_1","overflow-hidden":"_overflow-hidden_x1jdl_1","overflow-y-auto":"_overflow-y-auto_x1jdl_73","overflow-x-hidden":"_overflow-x-hidden_x1jdl_1","scroll-smooth":"_scroll-smooth_x1jdl_1","overflow-ellipsis":"_overflow-ellipsis_x1jdl_1","whitespace-normal":"_whitespace-normal_x1jdl_1","whitespace-nowrap":"_whitespace-nowrap_x1jdl_1",rounded:"_rounded_x1jdl_1","rounded-2xl":"_rounded-2xl_x1jdl_1","rounded-lg":"_rounded-lg_x1jdl_1","rounded-md":"_rounded-md_x1jdl_1","!rounded-l-none":"_!rounded-l-none_x1jdl_1","!rounded-r-none":"_!rounded-r-none_x1jdl_1","rounded-b-lg":"_rounded-b-lg_x1jdl_1","rounded-t-lg":"_rounded-t-lg_x1jdl_1","rounded-t-md":"_rounded-t-md_x1jdl_1","!border-0":"_!border-0_x1jdl_1",border:"_border_x1jdl_1","border-b":"_border-b_x1jdl_1","border-l":"_border-l_x1jdl_1","border-l-0":"_border-l-0_x1jdl_1","border-r":"_border-r_x1jdl_1","border-solid":"_border-solid_x1jdl_1","border-dashed":"_border-dashed_x1jdl_1","border-none":"_border-none_x1jdl_1","border-blue-600":"_border-blue-600_x1jdl_1","border-blue-700":"_border-blue-700_x1jdl_1","border-gray-200":"_border-gray-200_x1jdl_1","border-gray-300":"_border-gray-300_x1jdl_1","border-slate-200":"_border-slate-200_x1jdl_1","bg-black":"_bg-black_x1jdl_1","bg-blue-200":"_bg-blue-200_x1jdl_1","bg-blue-600":"_bg-blue-600_x1jdl_1","bg-emerald-200":"_bg-emerald-200_x1jdl_1","bg-gray-100":"_bg-gray-100_x1jdl_1","bg-gray-200":"_bg-gray-200_x1jdl_1","bg-gray-400":"_bg-gray-400_x1jdl_1","bg-gray-500":"_bg-gray-500_x1jdl_1","bg-green-200":"_bg-green-200_x1jdl_1","bg-green-300":"_bg-green-300_x1jdl_1","bg-red-200":"_bg-red-200_x1jdl_1","bg-red-300":"_bg-red-300_x1jdl_1","bg-red-900":"_bg-red-900_x1jdl_1","bg-slate-100":"_bg-slate-100_x1jdl_1","bg-slate-500":"_bg-slate-500_x1jdl_1","bg-slate-800":"_bg-slate-800_x1jdl_1","bg-slate-900":"_bg-slate-900_x1jdl_1","bg-transparent":"_bg-transparent_x1jdl_1","bg-white":"_bg-white_x1jdl_1","bg-yellow-300":"_bg-yellow-300_x1jdl_1","!p-2":"_!p-2_x1jdl_1","p-0":"_p-0_x1jdl_1","p-1":"_p-1_x1jdl_1","p-2":"_p-2_x1jdl_1","p-3":"_p-3_x1jdl_1","p-4":"_p-4_x1jdl_1","!py-0":"_!py-0_x1jdl_1","px-1":"_px-1_x1jdl_1","px-12":"_px-12_x1jdl_1","px-2":"_px-2_x1jdl_1","px-2.5":"_px-2.5_x1jdl_1","px-4":"_px-4_x1jdl_1","px-6":"_px-6_x1jdl_1","px-8":"_px-8_x1jdl_1","py-1":"_py-1_x1jdl_1","py-14":"_py-14_x1jdl_1","py-2":"_py-2_x1jdl_1","py-3":"_py-3_x1jdl_1","py-4":"_py-4_x1jdl_1","py-5":"_py-5_x1jdl_1","py-8":"_py-8_x1jdl_1","pl-1":"_pl-1_x1jdl_1","pt-3":"_pt-3_x1jdl_1","text-left":"_text-left_x1jdl_1","text-center":"_text-center_x1jdl_1","text-[.7rem]":"_text-[.7rem]_x1jdl_1","text-[1rem]":"_text-[1rem]_x1jdl_1","text-base":"_text-base_x1jdl_1","text-sm":"_text-sm_x1jdl_1","text-xs":"_text-xs_x1jdl_1","font-bold":"_font-bold_x1jdl_1","font-medium":"_font-medium_x1jdl_1","font-semibold":"_font-semibold_x1jdl_1",uppercase:"_uppercase_x1jdl_1","leading-[1.2rem]":"_leading-[1.2rem]_x1jdl_1","!text-green-900":"_!text-green-900_x1jdl_1","!text-red-900":"_!text-red-900_x1jdl_1","!text-white":"_!text-white_x1jdl_1","!text-yellow-900":"_!text-yellow-900_x1jdl_1","text-blue-600":"_text-blue-600_x1jdl_1","text-blue-900":"_text-blue-900_x1jdl_1","text-gray-300":"_text-gray-300_x1jdl_1","text-gray-400":"_text-gray-400_x1jdl_1","text-gray-500":"_text-gray-500_x1jdl_1","text-gray-600":"_text-gray-600_x1jdl_1","text-gray-700":"_text-gray-700_x1jdl_1","text-green-700":"_text-green-700_x1jdl_1","text-red-400":"_text-red-400_x1jdl_1","text-red-800":"_text-red-800_x1jdl_1","text-red-900":"_text-red-900_x1jdl_1","text-slate-200":"_text-slate-200_x1jdl_1","text-slate-300":"_text-slate-300_x1jdl_1","text-slate-50":"_text-slate-50_x1jdl_1","text-slate-500":"_text-slate-500_x1jdl_1","text-white":"_text-white_x1jdl_1","text-yellow-600":"_text-yellow-600_x1jdl_1","text-zinc-500":"_text-zinc-500_x1jdl_1","text-zinc-800":"_text-zinc-800_x1jdl_1","line-through":"_line-through_x1jdl_1","opacity-0":"_opacity-0_x1jdl_1","opacity-20":"_opacity-20_x1jdl_1","opacity-50":"_opacity-50_x1jdl_1","opacity-70":"_opacity-70_x1jdl_1","opacity-80":"_opacity-80_x1jdl_1","shadow-none":"_shadow-none_x1jdl_1","outline-none":"_outline-none_x1jdl_1",outline:"_outline_x1jdl_1",filter:"_filter_x1jdl_1",transition:"_transition_x1jdl_1","transition-all":"_transition-all_x1jdl_1","duration-300":"_duration-300_x1jdl_1","danx-app":"_danx-app_x1jdl_4","q-tab":"_q-tab_x1jdl_4","q-table__card":"_q-table__card_x1jdl_7","q-checkbox__inner":"_q-checkbox__inner_x1jdl_11","q-toolbar":"_q-toolbar_x1jdl_14","q-notification__actions":"_q-notification__actions_x1jdl_19","q-date":"_q-date_x1jdl_22","q-date__view":"_q-date__view_x1jdl_25","q-field":"_q-field_x1jdl_28","q-field--auto-height":"_q-field--auto-height_x1jdl_28","q-field__control":"_q-field__control_x1jdl_28","q-field__native":"_q-field__native_x1jdl_31","q-field--labeled":"_q-field--labeled_x1jdl_35","q-field__control-container":"_q-field__control-container_x1jdl_35","q-textarea":"_q-textarea_x1jdl_38","q-field__marginal":"_q-field__marginal_x1jdl_41","q-field__input":"_q-field__input_x1jdl_41","q-field__label":"_q-field__label_x1jdl_41","q-btn":"_q-btn_x1jdl_48","q-item":"_q-item_x1jdl_56","q-tab-panels":"_q-tab-panels_x1jdl_60","q-panel":"_q-panel_x1jdl_64",scroll:"_scroll_x1jdl_67","q-tab-panel":"_q-tab-panel_x1jdl_60","dx-dialog":"_dx-dialog_x1jdl_77","q-card__section--vert":"_q-card__section--vert_x1jdl_77","q-banner":"_q-banner_x1jdl_81",app:"_app_x1jdl_1","main-layout":"_main-layout_x1jdl_1","is-disabled":"_is-disabled_x1jdl_98","disable-all-transitions":"_disable-all-transitions_x1jdl_103","v-enter-active":"_v-enter-active_x1jdl_107","v-leave-active":"_v-leave-active_x1jdl_108","v-enter-from":"_v-enter-from_x1jdl_112","v-leave-to":"_v-leave-to_x1jdl_113","dx-action-table":"_dx-action-table_x1jdl_117","dx-column-shrink":"_dx-column-shrink_x1jdl_117","handle-drop-zone":"_handle-drop-zone_x1jdl_121","resize-handle":"_resize-handle_x1jdl_121","hover:bg-blue-200":"_hover:bg-blue-200_x1jdl_1","hover:bg-gray-200":"_hover:bg-gray-200_x1jdl_1","hover:bg-green-100":"_hover:bg-green-100_x1jdl_1","hover:bg-red-100":"_hover:bg-red-100_x1jdl_1","hover:bg-red-200":"_hover:bg-red-200_x1jdl_1","hover:bg-slate-200":"_hover:bg-slate-200_x1jdl_1","hover:bg-slate-300":"_hover:bg-slate-300_x1jdl_1","hover:bg-slate-600":"_hover:bg-slate-600_x1jdl_1","hover:text-blue-500":"_hover:text-blue-500_x1jdl_1","hover:text-blue-600":"_hover:text-blue-600_x1jdl_1","hover:opacity-100":"_hover:opacity-100_x1jdl_1","hover:opacity-20":"_hover:opacity-20_x1jdl_1","focus:bg-blue-200":"_focus:bg-blue-200_x1jdl_1"}}]]),_E={key:0,class:"text-zinc-800 cursor-not-allowed"},mE={class:"font-semibold text-sm ml-5 py-3 flex-grow"},pE={key:1,class:"flex items-center"},ma={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTooltip");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(o.openBlock(),o.createElementBlock("a",_E,[o.createVNode(o.unref(Vx),{class:"w-4"})])):o.createCommentVNode("",!0),o.createElementVNode("div",mE,o.toDisplayString(t.column.label),1),t.locked?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",pE,[o.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=i=>e.$emit("visible",!t.visible))},[t.visible?(o.openBlock(),o.createBlock(o.unref(Lx),{key:0,class:"w-4"})):(o.openBlock(),o.createBlock(o.unref(vx),{key:1,class:"w-4 text-zinc-800"}))]),o.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=i=>e.$emit("is-title",!t.isTitle))},[o.createVNode(o.unref(Wk),{class:o.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),o.createVNode(r,null,{default:o.withCtx(()=>[t.isTitle?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Remove from priority list")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},gE=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),yE={__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=Sr(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){qe.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Sr(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(_h),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[gE,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(ma),{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(kh),{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,h)=>(o.openBlock(),o.createBlock(o.unref(V_),{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":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=_=>u.$emit("update:sortable-columns",_))},{default:o.withCtx(()=>[o.createVNode(o.unref(ma),{column:f,visible:s(f),"is-title":a(f),onVisible:_=>l(f,_),onIsTitle:_=>c(f,_)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},U_={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.columns,i=>(o.openBlock(),o.createElementBlock("div",{key:i.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},bE={"!visible":"_!visible_anhw9_1",visible:"_visible_anhw9_1",collapse:"_collapse_anhw9_1",static:"_static_anhw9_1",absolute:"_absolute_anhw9_1",relative:"_relative_anhw9_1",sticky:"_sticky_anhw9_1","left-0":"_left-0_anhw9_1","right-0":"_right-0_anhw9_1","right-1":"_right-1_anhw9_1","top-0":"_top-0_anhw9_1","top-1":"_top-1_anhw9_1","m-2":"_m-2_anhw9_1","m-4":"_m-4_anhw9_1","m-auto":"_m-auto_anhw9_1","mx-1":"_mx-1_anhw9_1","mx-4":"_mx-4_anhw9_1","mx-auto":"_mx-auto_anhw9_1","my-2":"_my-2_anhw9_1","!mr-1":"_!mr-1_anhw9_1","mb-2":"_mb-2_anhw9_1","mb-4":"_mb-4_anhw9_1","ml-1":"_ml-1_anhw9_1","ml-2":"_ml-2_anhw9_1","ml-2.5":"_ml-2.5_anhw9_1","ml-3":"_ml-3_anhw9_1","ml-4":"_ml-4_anhw9_1","ml-5":"_ml-5_anhw9_1","ml-[-.2em]":"_ml-[-.2em]_anhw9_1","mr-1":"_mr-1_anhw9_1","mr-2":"_mr-2_anhw9_1","mr-3":"_mr-3_anhw9_1","mr-4":"_mr-4_anhw9_1","mt-1":"_mt-1_anhw9_1","mt-2":"_mt-2_anhw9_1","mt-3":"_mt-3_anhw9_1","mt-4":"_mt-4_anhw9_1",block:"_block_anhw9_1","inline-block":"_inline-block_anhw9_1",inline:"_inline_anhw9_1",flex:"_flex_anhw9_1",table:"_table_anhw9_1",hidden:"_hidden_anhw9_1","h-10":"_h-10_anhw9_1","h-16":"_h-16_anhw9_1","h-32":"_h-32_anhw9_1","h-4":"_h-4_anhw9_1","h-5":"_h-5_anhw9_1","h-8":"_h-8_anhw9_1","h-[2.25rem]":"_h-[2.25rem]_anhw9_1","h-full":"_h-full_anhw9_1","max-h-full":"_max-h-full_anhw9_1","w-10":"_w-10_anhw9_1","w-16":"_w-16_anhw9_1","w-2/5":"_w-2/5_anhw9_1","w-24":"_w-24_anhw9_1","w-3":"_w-3_anhw9_1","w-3/5":"_w-3/5_anhw9_1","w-32":"_w-32_anhw9_1","w-4":"_w-4_anhw9_1","w-48":"_w-48_anhw9_1","w-5":"_w-5_anhw9_1","w-6":"_w-6_anhw9_1","w-7":"_w-7_anhw9_1","w-72":"_w-72_anhw9_1","w-8":"_w-8_anhw9_1","w-96":"_w-96_anhw9_1","w-[13.5rem]":"_w-[13.5rem]_anhw9_1","w-[6.5rem]":"_w-[6.5rem]_anhw9_1","w-[80rem]":"_w-[80rem]_anhw9_1","w-full":"_w-full_anhw9_1","!min-w-0":"_!min-w-0_anhw9_1","max-w-full":"_max-w-full_anhw9_1","flex-shrink":"_flex-shrink_anhw9_1","flex-shrink-0":"_flex-shrink-0_anhw9_1",shrink:"_shrink_anhw9_1","flex-grow":"_flex-grow_anhw9_1",grow:"_grow_anhw9_1","rotate-180":"_rotate-180_anhw9_1",transform:"_transform_anhw9_1","cursor-ew-resize":"_cursor-ew-resize_anhw9_1","cursor-move":"_cursor-move_anhw9_1","cursor-not-allowed":"_cursor-not-allowed_anhw9_1","cursor-ns-resize":"_cursor-ns-resize_anhw9_1","cursor-pointer":"_cursor-pointer_anhw9_1",resize:"_resize_anhw9_1","flex-col":"_flex-col_anhw9_1","flex-nowrap":"_flex-nowrap_anhw9_1","items-center":"_items-center_anhw9_1","items-stretch":"_items-stretch_anhw9_1","justify-start":"_justify-start_anhw9_1","justify-end":"_justify-end_anhw9_1","justify-center":"_justify-center_anhw9_1","justify-between":"_justify-between_anhw9_1","gap-y-0":"_gap-y-0_anhw9_1","gap-y-1":"_gap-y-1_anhw9_1","space-x-1":"_space-x-1_anhw9_1","space-x-2":"_space-x-2_anhw9_1","self-center":"_self-center_anhw9_1","overflow-auto":"_overflow-auto_anhw9_1","overflow-hidden":"_overflow-hidden_anhw9_1","overflow-y-auto":"_overflow-y-auto_anhw9_73","overflow-x-hidden":"_overflow-x-hidden_anhw9_1","scroll-smooth":"_scroll-smooth_anhw9_1","overflow-ellipsis":"_overflow-ellipsis_anhw9_1","whitespace-normal":"_whitespace-normal_anhw9_1","whitespace-nowrap":"_whitespace-nowrap_anhw9_1",rounded:"_rounded_anhw9_1","rounded-2xl":"_rounded-2xl_anhw9_1","rounded-lg":"_rounded-lg_anhw9_1","rounded-md":"_rounded-md_anhw9_1","!rounded-l-none":"_!rounded-l-none_anhw9_1","!rounded-r-none":"_!rounded-r-none_anhw9_1","rounded-b-lg":"_rounded-b-lg_anhw9_1","rounded-t-lg":"_rounded-t-lg_anhw9_1","rounded-t-md":"_rounded-t-md_anhw9_1","!border-0":"_!border-0_anhw9_1",border:"_border_anhw9_1","border-b":"_border-b_anhw9_1","border-l":"_border-l_anhw9_1","border-l-0":"_border-l-0_anhw9_1","border-r":"_border-r_anhw9_1","border-solid":"_border-solid_anhw9_1","border-dashed":"_border-dashed_anhw9_1","border-none":"_border-none_anhw9_1","border-blue-600":"_border-blue-600_anhw9_1","border-blue-700":"_border-blue-700_anhw9_1","border-gray-200":"_border-gray-200_anhw9_1","border-gray-300":"_border-gray-300_anhw9_1","border-slate-200":"_border-slate-200_anhw9_1","bg-black":"_bg-black_anhw9_1","bg-blue-200":"_bg-blue-200_anhw9_1","bg-blue-600":"_bg-blue-600_anhw9_1","bg-emerald-200":"_bg-emerald-200_anhw9_1","bg-gray-100":"_bg-gray-100_anhw9_1","bg-gray-200":"_bg-gray-200_anhw9_1","bg-gray-400":"_bg-gray-400_anhw9_1","bg-gray-500":"_bg-gray-500_anhw9_1","bg-green-200":"_bg-green-200_anhw9_1","bg-green-300":"_bg-green-300_anhw9_1","bg-red-200":"_bg-red-200_anhw9_1","bg-red-300":"_bg-red-300_anhw9_1","bg-red-900":"_bg-red-900_anhw9_1","bg-slate-100":"_bg-slate-100_anhw9_1","bg-slate-500":"_bg-slate-500_anhw9_1","bg-slate-800":"_bg-slate-800_anhw9_1","bg-slate-900":"_bg-slate-900_anhw9_1","bg-transparent":"_bg-transparent_anhw9_1","bg-white":"_bg-white_anhw9_1","bg-yellow-300":"_bg-yellow-300_anhw9_1","!p-2":"_!p-2_anhw9_1","p-0":"_p-0_anhw9_1","p-1":"_p-1_anhw9_1","p-2":"_p-2_anhw9_1","p-3":"_p-3_anhw9_1","p-4":"_p-4_anhw9_1","!py-0":"_!py-0_anhw9_1","px-1":"_px-1_anhw9_1","px-12":"_px-12_anhw9_1","px-2":"_px-2_anhw9_1","px-2.5":"_px-2.5_anhw9_1","px-4":"_px-4_anhw9_1","px-6":"_px-6_anhw9_1","px-8":"_px-8_anhw9_1","py-1":"_py-1_anhw9_1","py-14":"_py-14_anhw9_1","py-2":"_py-2_anhw9_1","py-3":"_py-3_anhw9_1","py-4":"_py-4_anhw9_1","py-5":"_py-5_anhw9_1","py-8":"_py-8_anhw9_1","pl-1":"_pl-1_anhw9_1","pt-3":"_pt-3_anhw9_1","text-left":"_text-left_anhw9_1","text-center":"_text-center_anhw9_1","text-[.7rem]":"_text-[.7rem]_anhw9_1","text-[1rem]":"_text-[1rem]_anhw9_1","text-base":"_text-base_anhw9_1","text-sm":"_text-sm_anhw9_1","text-xs":"_text-xs_anhw9_1","font-bold":"_font-bold_anhw9_1","font-medium":"_font-medium_anhw9_1","font-semibold":"_font-semibold_anhw9_1",uppercase:"_uppercase_anhw9_1","leading-[1.2rem]":"_leading-[1.2rem]_anhw9_1","!text-green-900":"_!text-green-900_anhw9_1","!text-red-900":"_!text-red-900_anhw9_1","!text-white":"_!text-white_anhw9_1","!text-yellow-900":"_!text-yellow-900_anhw9_1","text-blue-600":"_text-blue-600_anhw9_1","text-blue-900":"_text-blue-900_anhw9_1","text-gray-300":"_text-gray-300_anhw9_1","text-gray-400":"_text-gray-400_anhw9_1","text-gray-500":"_text-gray-500_anhw9_1","text-gray-600":"_text-gray-600_anhw9_1","text-gray-700":"_text-gray-700_anhw9_1","text-green-700":"_text-green-700_anhw9_1","text-red-400":"_text-red-400_anhw9_1","text-red-800":"_text-red-800_anhw9_1","text-red-900":"_text-red-900_anhw9_1","text-slate-200":"_text-slate-200_anhw9_1","text-slate-300":"_text-slate-300_anhw9_1","text-slate-50":"_text-slate-50_anhw9_1","text-slate-500":"_text-slate-500_anhw9_1","text-white":"_text-white_anhw9_1","text-yellow-600":"_text-yellow-600_anhw9_1","text-zinc-500":"_text-zinc-500_anhw9_1","text-zinc-800":"_text-zinc-800_anhw9_1","line-through":"_line-through_anhw9_1","opacity-0":"_opacity-0_anhw9_1","opacity-20":"_opacity-20_anhw9_1","opacity-50":"_opacity-50_anhw9_1","opacity-70":"_opacity-70_anhw9_1","opacity-80":"_opacity-80_anhw9_1","shadow-none":"_shadow-none_anhw9_1","outline-none":"_outline-none_anhw9_1",outline:"_outline_anhw9_1",filter:"_filter_anhw9_1",transition:"_transition_anhw9_1","transition-all":"_transition-all_anhw9_1","duration-300":"_duration-300_anhw9_1","danx-app":"_danx-app_anhw9_4","q-tab":"_q-tab_anhw9_4","q-table__card":"_q-table__card_anhw9_7","q-checkbox__inner":"_q-checkbox__inner_anhw9_11","q-toolbar":"_q-toolbar_anhw9_14","q-notification__actions":"_q-notification__actions_anhw9_19","q-date":"_q-date_anhw9_22","q-date__view":"_q-date__view_anhw9_25","q-field":"_q-field_anhw9_28","q-field--auto-height":"_q-field--auto-height_anhw9_28","q-field__control":"_q-field__control_anhw9_28","q-field__native":"_q-field__native_anhw9_31","q-field--labeled":"_q-field--labeled_anhw9_35","q-field__control-container":"_q-field__control-container_anhw9_35","q-textarea":"_q-textarea_anhw9_38","q-field__marginal":"_q-field__marginal_anhw9_41","q-field__input":"_q-field__input_anhw9_41","q-field__label":"_q-field__label_anhw9_41","q-btn":"_q-btn_anhw9_48","q-item":"_q-item_anhw9_56","q-tab-panels":"_q-tab-panels_anhw9_60","q-panel":"_q-panel_anhw9_64",scroll:"_scroll_anhw9_67","q-tab-panel":"_q-tab-panel_anhw9_60","dx-dialog":"_dx-dialog_anhw9_77","q-card__section--vert":"_q-card__section--vert_anhw9_77","q-banner":"_q-banner_anhw9_81",app:"_app_anhw9_1","main-layout":"_main-layout_anhw9_1","is-disabled":"_is-disabled_anhw9_98","disable-all-transitions":"_disable-all-transitions_anhw9_103","v-enter-active":"_v-enter-active_anhw9_107","v-leave-active":"_v-leave-active_anhw9_108","v-enter-from":"_v-enter-from_anhw9_112","v-leave-to":"_v-leave-to_anhw9_113","dx-action-table":"_dx-action-table_anhw9_117","dx-column-shrink":"_dx-column-shrink_anhw9_117","category-toggle":"_category-toggle_anhw9_121","has-visible-columns":"_has-visible-columns_anhw9_124","hover:bg-blue-200":"_hover:bg-blue-200_anhw9_1","hover:bg-gray-200":"_hover:bg-gray-200_anhw9_1","hover:bg-green-100":"_hover:bg-green-100_anhw9_1","hover:bg-red-100":"_hover:bg-red-100_anhw9_1","hover:bg-red-200":"_hover:bg-red-200_anhw9_1","hover:bg-slate-200":"_hover:bg-slate-200_anhw9_1","hover:bg-slate-300":"_hover:bg-slate-300_anhw9_1","hover:bg-slate-600":"_hover:bg-slate-600_anhw9_1","hover:text-blue-500":"_hover:text-blue-500_anhw9_1","hover:text-blue-600":"_hover:text-blue-600_anhw9_1","hover:opacity-100":"_hover:opacity-100_anhw9_1","hover:opacity-20":"_hover:opacity-20_anhw9_1","focus:bg-blue-200":"_focus:bg-blue-200_anhw9_1"},wE={class:"flex items-center flex-nowrap"},kE=["onClick"],xE={class:"text-xs"},SE=mt({__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(_=>_.category)).values()]);function l(_){return r.columns.filter(g=>g.category===_)}function a(_){return l(_).filter(g=>!g.required).map(g=>g.name).some(g=>!r.hiddenColumnNames.includes(g))}function c(_){let g=l(_).filter(p=>!p.required);const m=g.filter(p=>!r.hiddenColumnNames.includes(p.name));return m.length===0?!1:m.length===g.length?!0:null}function u(_,g){_=_.filter(p=>!p.required);let m=[...r.hiddenColumnNames];g?m=m.filter(p=>!_.map(x=>x.name).includes(p)):m=[...new Set([...m,..._.map(p=>p.name)])],n("update:hidden-column-names",m)}function d(_,g){if(r.columns.find(p=>p.name===_).required)return;g=g??r.hiddenColumnNames.includes(_);let m=[...r.hiddenColumnNames];g?m=Sr(m,_):(m.push(_),m=[...new Set(m)]),n("update:hidden-column-names",m)}const f=o.useCssModule();function h(_){return f["category-toggle"]+(a(_)?" "+f["has-visible-columns"]:"")}return(_,g)=>{const m=o.resolveComponent("QCheckbox"),p=o.resolveComponent("QList"),x=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",wE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y,class:o.normalizeClass(h(y))},[o.createVNode(m,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:b=>u(l(y),!a(y))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(y),1),o.createVNode(o.unref(th),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===y}])},null,8,["class"]),o.createVNode(x,{"onUpdate:modelValue":b=>i.value=b?y:""},{default:o.withCtx(()=>[o.createVNode(p,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(y),b=>(o.openBlock(),o.createElementBlock("div",{key:b,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(b.name)},[o.createVNode(m,{"model-value":!t.hiddenColumnNames.includes(b.name),class:"mr-3 cb-white-border",size:"20px",color:b.required?"gray-400":"blue-600",disable:b.required,onClick:C=>d(b.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",xE,o.toDisplayString(b.label),1)],8,kE))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:bE}]]),CE={class:"dx-field-label"},EE={class:"dx-field-label-text"},TE={class:"dx-field-label-label"},NE={key:0,class:"dx-field-label-name"},IE={key:0,class:"dx-field-required"},kt=o.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",CE,[o.renderSlot(e.$slots,"default",{},()=>[o.createElementVNode("div",EE,[o.createElementVNode("div",TE,o.toDisplayString(e.label),1),e.name?(o.openBlock(),o.createElementBlock("div",NE," ("+o.toDisplayString(e.name)+") ",1)):o.createCommentVNode("",!0)])]),e.required?(o.openBlock(),o.createElementBlock("span",IE,o.toDisplayString(e.requiredLabel||"*"),1)):o.createCommentVNode("",!0)]))}}),pa={__name:"BooleanField",props:{label:{type:String,default:null},modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QToggle");return o.openBlock(),o.createBlock(r,{"data-testid":"boolean-field-"+t.field.id,"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[o.createVNode(o.unref(kt),{field:{...t.field,label:t.label||t.field.label},"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}},BE={for:"first_name",class:"form-label"},FE={class:"mt-1"},ga={__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",BE,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",FE,[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"])])])}}},OE={__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(ga),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"]))}},$E={key:0,class:"font-bold text-xs mb-2"},AE={class:"flex items-center cursor-pointer"},DE={class:"font-bold ml-3 hover:text-blue-600"},ya={__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?_t(eo(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",$E,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",AE,[o.createVNode(o.unref(dh),{class:"w-5 text-blue-600"}),o.createElementVNode("div",DE,[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})])}}},PE={class:"mb-2"},ME={class:"flex items-center cursor-pointer"},vE={class:"font-bold ml-3 hover:text-blue-600"},ba={__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:_t(Us(a.value.from||"0000-00-00")),to:_t(Us(a.value.to||"9999-12-31"))}:{from:_t(eo(a.value.from||"0000-00-00")),to:_t(eo(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)?_t(u.from)===_t(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"),h=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",PE,[o.createVNode(o.unref(kt),{label:t.label},null,8,["label"])]),t.inline?(o.openBlock(),o.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.value=_),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",ME,[o.createVNode(o.unref(dh),{class:"w-5 text-blue-600"}),o.createElementVNode("div",vE,[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(h,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=_=>s.value=_),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},LE={class:"flex items-center justify-center"},qE={key:0,class:"flex-grow"},wa={__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:()=>js(Rs(r.modelValue)),set(s){const l=s?js(nd(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",LE,[t.nullable?(o.openBlock(),o.createElementBlock("div",qE,[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})}}},VE={__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(rr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>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]=h=>i.value=h)},{default:o.withCtx(()=>[o.createVNode(o.unref(wa),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),onCancel:c[1]||(c[1]=h=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},RE={__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=nn(()=>{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-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:l},o.toDisplayString(i.value),33))}},UE={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},jE=[o.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)];function zE(t,e){return o.openBlock(),o.createElementBlock("svg",UE,[...jE])}const GE={render:zE},HE={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},WE=[o.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)];function ZE(t,e){return o.openBlock(),o.createElementBlock("svg",HE,[...WE])}const YE={render:ZE},KE=["contenteditable"],QE={key:0},XE=mt(o.defineComponent({__name:"EditOnClickTextField",props:o.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.ref(null),n=o.useModel(t,"modelValue"),r=t,i=o.ref(!1);function s(){r.readonly||(i.value=!0,o.nextTick(()=>{var l;(l=e.value)==null||l.focus()}))}return(l,a)=>{const c=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[r.class]:!0,"is-readonly":l.readonly,"cursor-pointer":!i.value&&!l.readonly}]),onClick:s,onFocusout:a[2]||(a[2]=u=>i.value=!1)},[o.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!l.readonly&&i.value,class:o.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[l.editingClass]:i.value,[l.inputClass]:!0}]),onInput:a[0]||(a[0]=u=>n.value=u.target.innerText)},o.toDisplayString(n.value),43,KE),l.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QE,[i.value?(o.openBlock(),o.createBlock(c,{key:0,onClick:a[1]||(a[1]=o.withModifiers(u=>i.value=!1,["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(GE),{class:"w-4"})]),_:1})):(o.openBlock(),o.createBlock(c,{key:1,class:"edit-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(YE),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-8347f4ef"]]),JE=["accept","capture"],eT={__name:"FileUploadButton",props:{...J.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload: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).prepare().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(J.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(Ux),{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&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,JE)]),_:3},16))}},tT={class:"inline-block"},nT={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},rT={__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",tT,[o.createElementVNode("div",nT,[o.createTextVNode(o.toDisplayString(o.unref(rr)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(Xf),{class:"w-4 font-bold ml-2 text-gray-400"}),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(wa),{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"])])])}}},j_=o.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["danx-input-chars mt-1",{"danx-input-chars--error":e.length>e.maxLength}])},o.toDisplayString(o.unref(Tt)(e.length))+" / "+o.toDisplayString(o.unref(Tt)(e.maxLength))+" characters ",3)):o.createCommentVNode("",!0)}}),iT={key:1,class:"dx-text-field-readonly-value"},fi=o.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[e.prependLabel?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(kt),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:o.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(o.openBlock(),o.createElementBlock("div",iT,o.toDisplayString(e.modelValue),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,class:o.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=o.withKeys(i=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=i=>e.$emit("update:model-value",i))},o.createSlots({_:2},[e.prependLabel?{name:"prepend",fn:o.withCtx(()=>[o.createVNode(o.unref(kt),{class:o.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"])]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","class","type","model-value","maxlength","debounce"]),o.createVNode(o.unref(j_),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),hi=o.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),Tt(c,d)}const l=nn(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=i.value;return i.value+=" ",o.nextTick(()=>i.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),i.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(fi),o.mergeProps({class:"dx-number-field"},c.$props,{"model-value":i.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),z_={__name:"IntegerField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(hi),{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"]))}},oT={class:"text-xs font-bold"},sT=["href"],lT=o.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=o.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=o.computed(()=>{switch(typeof e.value){case"boolean":return id(e.value);case"number":return Tt(e.value);default:return e.value||"-"}});return(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",oT,o.toDisplayString(i.label),1),o.createElementVNode("div",{class:o.normalizeClass(n.value)},[i.url?(o.openBlock(),o.createElementBlock("a",{key:0,target:"_blank",href:i.url,class:o.normalizeClass(n.value)},[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(r.value),1)])],10,sT)):o.renderSlot(i.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(r.value),1)])],2)]))}}),aT={class:"flex items-stretch justify-start"},cT={key:0,class:"dx-add-remove-files w-32 h-32 m-2 rounded-2xl flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer"},uT=o.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),dT={key:1,class:"p-1"},G_=o.defineComponent({__name:"MultiFileField",props:{modelValue:{},field:{},label:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Zf();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-2":!d.readonly}]),onDragover:f[3]||(f[3]=o.withModifiers(()=>{},["prevent"])),onDrop:f[4]||(f[4]=o.withModifiers((...h)=>o.unref(s)&&o.unref(s)(...h),["prevent"]))},[o.createVNode(o.unref(kt),{field:d.field,label:d.label,"show-name":d.showName},null,8,["field","label","show-name"]),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[0]||(f[0]=(...h)=>o.unref(l)&&o.unref(l)(...h))},null,544)):o.createCommentVNode("",!0),o.createElementVNode("div",aT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),h=>(o.openBlock(),o.createBlock(o.unref(Qr),{key:"file-upload-"+h.id,class:"w-32 h-32 m-2 cursor-pointer bg-gray-200",file:h,"related-files":h.transcodes||o.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:_=>o.unref(u)(h)},null,8,["file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("div",cT,[o.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:f[1]||(f[1]=h=>d.$refs.file.click())},[o.createElementVNode("div",null,[o.createVNode(o.unref(xl),{class:"w-10 m-auto"}),uT])]),o.unref(a).length>0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:f[2]||(f[2]=(...h)=>o.unref(c)&&o.unref(c)(...h))},[o.createVNode(o.unref(ko),{class:"mr-2 w-3"}),o.createTextVNode(" Remove All ")])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",dT," -- ")):o.createCommentVNode("",!0)])],34))}}),_i=o.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionLabel:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useInput:{type:Boolean},useChips:{type:Boolean},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},onClear:{},"onUpdate:modelValue":{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},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 w=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(w=[{label:r.placeholder,value:null},...r.options]),w=w.map(k=>{let E=o.isRef(k)?k.value:k;return{label:_(E),value:m(E),selectionLabel:g(E)}}),w}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(w=>{var k;return w.label.toLocaleLowerCase().indexOf((k=s.value)==null?void 0:k.toLowerCase())>-1}):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(k=>k===null?"__null__":k)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let w=u.value;return r.multiple||(w=w||w===0?[w]:[]),a.value.filter(k=>{var E;return w.includes(k.value)||w.map(N=>typeof N=="object"&&N.id).includes((E=k.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),h=o.computed(()=>d.value.slice(0,r.chipLimit));function _(w){return typeof w=="string"?w:typeof r.optionLabel=="string"?w[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(w):w==null?void 0:w.label}function g(w){return typeof w=="string"?w:typeof r.selectionLabel=="string"?w[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(w):(w==null?void 0:w.selectionLabel)||(w==null?void 0:w.label)}function m(w){if(!w||typeof w=="string")return w;let k=w.value;return typeof r.optionValue=="string"?k=w[r.optionValue]:typeof r.optionValue=="function"&&(k=r.optionValue(w)),k===null?"__null__":k}function p(w){Array.isArray(w)&&(w=w.map(k=>k==="__null__"?null:k)),w=w==="__null__"?null:w,n("update:model-value",w),n("update",w)}const x=o.ref(!1);async function y(w,k){if(!r.filterFn)s.value=w,await o.nextTick(k);else{if(k(),x.value===!1)return;w!==null&&w!==s.value&&(s.value=w,r.filterFn&&await r.filterFn(w))}}function b(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,x.value=!1,o.nextTick(()=>{x.value=!0,i.value.focus()})}function T(){l.value=!1,x.value=!1}return(w,k)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[w.label?(o.openBlock(),o.createBlock(o.unref(kt),{key:0,label:w.label},null,8,["label"])):o.createCommentVNode("",!0),o.createVNode(o.unref(J.QSelect),o.mergeProps({ref_key:"selectField",ref:i},w.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":w.filterable,"hide-selected":w.filterable&&l.value&&!w.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[w.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:y,onClear:b,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":p}),{append:o.withCtx(()=>[o.createVNode(o.unref($x),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[w.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":w.chipLimit===1,"dx-selected-chips":h.value.length>0,[w.selectionClass]:!0}])},[h.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,N=>(o.openBlock(),o.createBlock(E,{key:"selected-"+N.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(N.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(o.openBlock(),o.createBlock(E,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-h.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(w.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([w.selectionClass,"dx-selected-label"])},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),H_={__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(_i),{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(fi),{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-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},fT={__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(ga),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},hT={key:0,class:"font-bold text-xs mb-2"},_T={class:"flex items-center flex-nowrap cursor-pointer"},mT={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},vo={__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?Ax:r.percent?sh:qx)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(h){const _=r.percent?100:1;c.value={from:h!=null&&h.from?h.from*_:void 0,to:h!=null&&h.to?h.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":r.currency?no(h):r.percent?od(h,{multiplier:1,maximumFractionDigits:2}):Tt(h)}const f=nn(()=>{if(c.value&&(c.value.from||c.value.to)){const h=r.percent?.01:1;let _={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",_)}},r.debounce);return(h,_)=>{const g=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",hT,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",_T,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",mT,[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(hi),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=m=>c.value.from=m),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(hi),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=m=>c.value.to=m),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},pT=["data-dusk","onClick"],gT={__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),h=f;r.multiple?(h=[...r.modelValue],c(f)?h=h.filter(_=>_!==f):h.push(f)):h===r.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=o.resolveComponent("QCheckbox"),_=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Cl),{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-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(g)},[o.createVNode(h,{"model-value":c(g),class:"mr-2",onClick:o.withModifiers(m=>u(g),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:g},()=>[o.createTextVNode(o.toDisplayString(g.label),1)])],8,pT))),128))]),_:3},8,["show","title"]),o.createVNode(_,{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)])}}},yT={key:0,class:"text-zinc-500"},bT={key:1},wT={class:"text-xs text-zinc-500"},W_=o.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type: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=Sr(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,[!u.loading&&!u.options.length?(o.openBlock(),o.createElementBlock("div",yT," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(_i),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>s.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(o.openBlock(),o.createElementBlock("div",bT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,h=>(o.openBlock(),o.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":_=>a(h)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(h.label),1),o.createElementVNode("div",wT,o.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}}),kT={key:0,class:"text-sm mt-2"},xT={key:2,class:"py-1"},Z_={__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,clearUploadedFile:c}=Kf();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(s)&&o.unref(s)(...f),["prevent"]))},[o.createVNode(o.unref(kt),{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",kT,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(l)&&o.unref(l)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Qr),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),file:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","file"])):t.readonly?(o.openBlock(),o.createElementBlock("div",xT," -- ")):o.createCommentVNode("",!0)],34))}},ST={class:"dx-slider-number-field"},CT=o.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=o.computed(()=>({...e,field:void 0,label:!!e.label})),r=o.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(i,s)=>{const l=o.resolveComponent("QSlider");return o.openBlock(),o.createElementBlock("div",ST,[o.createVNode(o.unref(kt),{label:i.label,field:i.field},null,8,["label","field"]),o.createVNode(l,o.mergeProps(n.value,{min:i.min,max:i.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var ET=["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"],TT=function(t){return ET.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},NT=function(t,e,n){Object.keys(e).filter(TT).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)}))})},IT=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}))})},BT=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&IT(e,n,r,i),NT(t,n.attrs,r)},Y_=0,K_=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Y_++,t+"_"+n+Y_+String(e)},FT=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Q_=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},OT=function(t,e){return Q_(t).concat(Q_(e))},$T=function(t){return t==null},X_=function(){return{listeners:[],scriptId:K_("tiny-script"),scriptLoaded:!1}},AT=function(){var t=X_(),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=X_()};return{load:n,reinitialize:r}},DT=AT(),PT=function(){return typeof window<"u"?window:global},An=function(){var t=PT();return t&&t.tinymce?t.tinymce:null},MT={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"}}},xt=function(){return xt=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},xt.apply(this,arguments)},vT=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},LT=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ka={selector:void 0,target:void 0},qT=o.defineComponent({props:MT,setup:function(t,e){var n=t.init?xt(xt({},t.init),ka):xt({},ka),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||K_("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,_=t.initialValue?t.initialValue:"",g="",m=function(y){return f?function(){return s!=null&&s.value?s.value:""}:function(){return y?_:g}},p=function(){var y=m(h),b=xt(xt({},n),{readonly:t.disabled,target:a.value,plugins:OT(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return BT(T,t,e,C,s,y)}),typeof n.setup=="function"&&n.setup(C)}});FT(a.value)&&(a.value.style.visibility=""),An().init(b),h=!1};o.watch(i,function(y){var b;c!==null&&(typeof((b=c.mode)===null||b===void 0?void 0:b.set)=="function"?c.mode.set(y?"readonly":"design"):c.setMode(y?"readonly":"design"))}),o.watch(l,function(y){var b;f||(g=c.getContent()),(b=An())===null||b===void 0||b.remove(c),o.nextTick(function(){return p()})}),o.onMounted(function(){if(An()!==null)p();else if(a.value&&a.value.ownerDocument){var y=t.cloudChannel?t.cloudChannel:"6",b=t.apiKey?t.apiKey:"no-api-key",C=$T(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(b,"/tinymce/").concat(y,"/tinymce.min.js"):t.tinymceScriptSrc;DT.load(a.value.ownerDocument,C,p)}}),o.onBeforeUnmount(function(){An()!==null&&An().remove(c)}),d||(o.onActivated(function(){h||p()}),o.onDeactivated(function(){var y;f||(g=c.getContent()),(y=An())===null||y===void 0||y.remove(c)}));var x=function(y){var b;g=c.getContent(),(b=An())===null||b===void 0||b.remove(c),n=xt(xt(xt({},n),y),ka),o.nextTick(function(){return p()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?vT(o.h,u,a,t.tagName):LT(o.h,u,a)}}});const VT=["innerHTML"],J_={__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(kt),{key:0,field:t.field,"show-name":t.showName},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,VT)):(o.openBlock(),o.createBlock(o.unref(qT),{key:2,class:"mt-2","api-key":o.unref(le).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},RT={key:1,class:"mt-2"},UT={class:"text-xs font-bold"},jT=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),xa=o.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type: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&&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,[s.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=s.field.options)==null?void 0:a.length)>0||s.loading?(o.openBlock(),o.createBlock(o.unref(_i),{key:0,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,multiple:"",loading:s.loading,"chip-limit":1,filterable:"",placeholder:s.field.placeholder,label:s.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",RT,[o.createElementVNode("div",UT,o.toDisplayString(s.field.label),1),jT]))],64)):s.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(_i),{key:1,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,placeholder:s.field.placeholder,loading:s.loading,label:s.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","placeholder","loading","label"])):s.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(ya),{key:2,"model-value":s.modelValue,label:s.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(ba),{key:3,"model-value":s.modelValue,label:s.field.label,inline:!!s.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):s.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:4,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:5,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:6,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(pa),{key:7,field:s.field,"model-value":s.modelValue,class:"mt-2","toggle-indeterminate":s.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):s.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(H_),{key:8,"model-value":s.modelValue,field:s.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):s.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(W_),{key:9,"model-value":s.modelValue,options:s.field.options,loading:s.loading,label:s.field.label,placeholder:s.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(s.field.name)+'": Unknown filter type '+o.toDisplayString(s.field.type),1)],64))])}}}),zT={class:"flex items-center flex-nowrap flex-grow"},GT={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},em={__name:"FilterItem",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",zT,[o.createElementVNode("div",GT,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},HT={class:"px-4 py-2 max-w-full"},tm={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{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.filters)l[a.name]=a.fields.filter(c=>r.activeFilter[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.activeFilter,...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",HT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.filters,(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,h=>(o.openBlock(),o.createBlock(o.unref(xa),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(em),{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,h=>(o.openBlock(),o.createBlock(o.unref(xa),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},nm=o.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(ph),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(tm),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:active-filter",r))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),WT={class:"flex-grow"},rm=mt({__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",WT,[o.createVNode(l,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(ih),{class:"w-5 mr-2"}),o.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),ZT={class:"w-full flex justify-end items-center flex-nowrap border-b"},YT={class:"flex-grow"},KT={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},QT={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(s,l)=>(o.openBlock(),o.createElementBlock("div",ZT,[o.createVNode(o.unref(rm),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",YT,[o.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",KT,[s.$slots.default?(o.openBlock(),o.createBlock(o.unref(J.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},XT={class:"dx-rendered-form"},JT={key:0,class:"mb-4"},e3={class:"flex flex-nowrap items-center text-sm w-full"},t3={key:0,class:"variation-missing-icon pl-1"},n3={class:"flex-grow"},r3={key:1,class:"flex flex-nowrap items-center mr-2"},i3=["onClick"],o3=["onClick"],im=o.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,i={BOOLEAN:pa,DATE:ya,DATE_RANGE:ba,INTEGER:z_,NUMBER:hi,TEXT:fi,SINGLE_FILE:Z_,MULTI_FILE:G_,WYSIWYG:J_},s=n.form.fields.map(I=>({placeholder:`Enter ${I.label}`,...I,component:I.component||i[I.type]})),l=o.computed(()=>{const I=n.values;return I?Array.isArray(I)?I:Object.entries(I).filter(B=>s.find($=>$.name===B[0])).map(([B,$])=>({name:B,value:$,variation:""})):[]}),a=o.computed(()=>{const I={};for(const B of s)I[B.name]=x(B.name);return I});function c(I){return I.enabled===void 0?!0:typeof I.enabled=="function"?I.enabled(a.value):I.enabled}function u(I){return{modelValue:x(I.name),label:I.label,clearable:I.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=o.computed(()=>{const I=[...new Set(l.value.map(B=>B.variation))].sort();return I.length===0&&I.push(""),I}),f=o.ref(d.value[0]||""),h=o.ref(""),_=o.ref(!1),g=o.ref(""),m=o.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function p(I,B){if(l.value)return l.value.find($=>$.variation===(B!==void 0?B:f.value)&&$.name===I)}function x(I){var B;return(B=p(I))==null?void 0:B.value}function y(I,B){const $=p(I),R={name:I,variation:f.value||"",value:B===void 0?n.emptyValue:B},Q=Ro(l.value,$,R,!0);b(Q)}function b(I){let B=I;Array.isArray(n.values)||(B=I.reduce(($,R)=>($[R.name]=R.value,$),{})),r("update:values",B)}o.onMounted(()=>{window.addEventListener("beforeunload",C)}),o.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",C)});function C(I){if(n.saving)return I.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(I){return n.form.fields.map(B=>({variation:I,name:B.name,value:B.default_value===void 0?null:B.default_value}))}function w(){if(n.saving)return;let I=[...l.value];I.length===0&&(I=T(""));const B=d.value[d.value.length-1],$=Fa(B||"1"),R=T($);b([...I,...R]),f.value=$}function k(){if(!h.value)return;if(d.value.includes(h.value)){qe.error("Variation name already exists");return}const I=l.value.map(B=>B.variation===_.value?{...B,variation:h.value}:B);b(I),f.value=h.value,_.value=!1,h.value=""}function E(I){if(!I)return;const B=l.value.filter($=>$.variation!==I);b(B),f.value===I&&(f.value=d.value[0]),g.value=""}function N(I){const B={};return n.form.fields.filter($=>$.required||$.required_group).every($=>{const R=p($.name,I),Q=!!R&&R.value!==null;return $.required_group?B[$.required_group]?!0:B[$.required_group]=Q:Q})}return(I,B)=>{const $=o.resolveComponent("QTooltip"),R=o.resolveComponent("QTab"),Q=o.resolveComponent("QSpinnerBall"),se=o.resolveComponent("QTabs"),te=o.resolveComponent("QSpinnerPie");return o.openBlock(),o.createElementBlock("div",XT,[I.form.variations>1?(o.openBlock(),o.createElementBlock("div",JT,[o.createVNode(se,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=P=>f.value=P),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(P,we)=>(o.openBlock(),o.createBlock(R,{key:P,name:P,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",e3,[N(P)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",t3,[o.createVNode(o.unref(Qf),{class:"text-red-400 w-4"}),o.createVNode($,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",n3,o.toDisplayString(P||"1"),1),!I.disable&&!I.readonly&&I.canModifyVariations?(o.openBlock(),o.createElementBlock("div",r3,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=P)&&(h.value=P)},[o.createVNode(o.unref(Xf),{class:"w-3 text-blue-900"})],8,i3),we>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:ot=>g.value=P},[o.createVNode(o.unref(ko),{class:"w-3 text-red-900"})],8,o3)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(o.openBlock(),o.createBlock(R,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:w},{default:o.withCtx(()=>[I.saving?(o.openBlock(),o.createBlock(Q,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),(P,we)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:P.id,class:o.normalizeClass({"mt-4":we>0,[I.fieldClass]:!0})},[P.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:0,vnode:P.vnode,props:u(P),params:a.value,"onUpdate:modelValue":ot=>y(P.name,ot)},null,8,["vnode","props","params","onUpdate:modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(P.component),{key:P.name+"-"+f.value,"model-value":x(P.name),field:P,label:P.label||void 0,"no-label":I.noLabel,"show-name":I.showName,clearable:P.clearable||I.clearable,disable:I.disable,readonly:I.readonly,"onUpdate:modelValue":ot=>y(P.name,ot)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[o.vShow,c(P)]])),128)),o.renderSlot(I.$slots,"default"),I.savedAt?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([I.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[I.saving?o.renderSlot(I.$slots,"saving",{key:0},()=>[o.createTextVNode(" Saving... "),o.createVNode(te,{class:"ml-2"})]):o.renderSlot(I.$slots,"saved",{key:1},()=>[o.createTextVNode(" Saved at "+o.toDisplayString(o.unref(to)(I.savedAt,{format:"M/d/yy h:mm:ssa"})),1)])],2)):o.createCommentVNode("",!0),_.value!==!1?(o.openBlock(),o.createBlock(o.unref(dr),{key:2,title:"Change variation name",onConfirm:k,onClose:B[2]||(B[2]=P=>_.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(fi),{modelValue:h.value,"onUpdate:modelValue":B[1]||(B[1]=P=>h.value=P),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),g.value?(o.openBlock(),o.createBlock(o.unref(dr),{key:3,title:`Remove variation ${g.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:B[3]||(B[3]=P=>E(g.value)),onClose:B[4]||(B[4]=P=>g.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}}),s3=o.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0}},setup(t){const e=t,n={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass},r=o.ref({...e.target}),i={};return o.watch(()=>e.target,s=>{var l;if(s)for(let a of e.form.fields)(l=i[a.name])!=null&&l.isSaving||(r.value[a.name]=s[a.name])}),(s,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(im,o.mergeProps(n,{values:r.value,"onUpdate:values":[l[0]||(l[0]=a=>r.value=a),l[1]||(l[1]=a=>s.action.trigger(s.target,r.value))],"empty-value":"","saved-at":s.target.updated_at,saving:s.action.isApplying}),{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},16,["values","saved-at","saving"])]))}}),om=o.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},activeItem:{},panels:{}},setup(t){return(e,n)=>{const r=o.resolveComponent("QTabPanel"),i=o.resolveComponent("QTabPanels");return o.openBlock(),o.createBlock(i,{"model-value":e.activePanel,class:"dx-panels-drawer-panels overflow-y-auto h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.panels,s=>(o.openBlock(),o.createBlock(r,{key:s.name,name:s.name},{default:o.withCtx(()=>[s.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:0,vnode:s.vnode,props:e.activeItem},null,8,["vnode","props"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),sm=mt(o.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},activeItem:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(r){return r.enabled===void 0?!0:r.enabled?typeof r.enabled=="function"?r.enabled(e.activeItem):!0:!1}return(r,i)=>{const s=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(s,{class:o.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",r.cls["panel-tabs"]]),"model-value":r.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.panels,l=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n(l)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.tabVnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:l.name,vnode:l.tabVnode(r.activeItem,r.modelValue),"is-active":r.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(J.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1shkc_1",visible:"_visible_1shkc_1",collapse:"_collapse_1shkc_1",static:"_static_1shkc_1",absolute:"_absolute_1shkc_1",relative:"_relative_1shkc_1",sticky:"_sticky_1shkc_1","left-0":"_left-0_1shkc_1","right-0":"_right-0_1shkc_1","right-1":"_right-1_1shkc_1","top-0":"_top-0_1shkc_1","top-1":"_top-1_1shkc_1","m-2":"_m-2_1shkc_1","m-4":"_m-4_1shkc_1","m-auto":"_m-auto_1shkc_1","mx-1":"_mx-1_1shkc_1","mx-4":"_mx-4_1shkc_1","mx-auto":"_mx-auto_1shkc_1","my-2":"_my-2_1shkc_1","!mr-1":"_!mr-1_1shkc_1","mb-2":"_mb-2_1shkc_1","mb-4":"_mb-4_1shkc_1","ml-1":"_ml-1_1shkc_1","ml-2":"_ml-2_1shkc_1","ml-2.5":"_ml-2.5_1shkc_1","ml-3":"_ml-3_1shkc_1","ml-4":"_ml-4_1shkc_1","ml-5":"_ml-5_1shkc_1","ml-[-.2em]":"_ml-[-.2em]_1shkc_1","mr-1":"_mr-1_1shkc_1","mr-2":"_mr-2_1shkc_1","mr-3":"_mr-3_1shkc_1","mr-4":"_mr-4_1shkc_1","mt-1":"_mt-1_1shkc_1","mt-2":"_mt-2_1shkc_1","mt-3":"_mt-3_1shkc_1","mt-4":"_mt-4_1shkc_1",block:"_block_1shkc_1","inline-block":"_inline-block_1shkc_1",inline:"_inline_1shkc_1",flex:"_flex_1shkc_1",table:"_table_1shkc_1",hidden:"_hidden_1shkc_1","h-10":"_h-10_1shkc_1","h-16":"_h-16_1shkc_1","h-32":"_h-32_1shkc_1","h-4":"_h-4_1shkc_1","h-5":"_h-5_1shkc_1","h-8":"_h-8_1shkc_1","h-[2.25rem]":"_h-[2.25rem]_1shkc_1","h-full":"_h-full_1shkc_1","max-h-full":"_max-h-full_1shkc_1","w-10":"_w-10_1shkc_1","w-16":"_w-16_1shkc_1","w-2/5":"_w-2/5_1shkc_1","w-24":"_w-24_1shkc_1","w-3":"_w-3_1shkc_1","w-3/5":"_w-3/5_1shkc_1","w-32":"_w-32_1shkc_1","w-4":"_w-4_1shkc_1","w-48":"_w-48_1shkc_1","w-5":"_w-5_1shkc_1","w-6":"_w-6_1shkc_1","w-7":"_w-7_1shkc_1","w-72":"_w-72_1shkc_1","w-8":"_w-8_1shkc_1","w-96":"_w-96_1shkc_1","w-[13.5rem]":"_w-[13.5rem]_1shkc_1","w-[6.5rem]":"_w-[6.5rem]_1shkc_1","w-[80rem]":"_w-[80rem]_1shkc_1","w-full":"_w-full_1shkc_1","!min-w-0":"_!min-w-0_1shkc_1","max-w-full":"_max-w-full_1shkc_1","flex-shrink":"_flex-shrink_1shkc_1","flex-shrink-0":"_flex-shrink-0_1shkc_1",shrink:"_shrink_1shkc_1","flex-grow":"_flex-grow_1shkc_1",grow:"_grow_1shkc_1","rotate-180":"_rotate-180_1shkc_1",transform:"_transform_1shkc_1","cursor-ew-resize":"_cursor-ew-resize_1shkc_1","cursor-move":"_cursor-move_1shkc_1","cursor-not-allowed":"_cursor-not-allowed_1shkc_1","cursor-ns-resize":"_cursor-ns-resize_1shkc_1","cursor-pointer":"_cursor-pointer_1shkc_1",resize:"_resize_1shkc_1","flex-col":"_flex-col_1shkc_1","flex-nowrap":"_flex-nowrap_1shkc_1","items-center":"_items-center_1shkc_1","items-stretch":"_items-stretch_1shkc_1","justify-start":"_justify-start_1shkc_1","justify-end":"_justify-end_1shkc_1","justify-center":"_justify-center_1shkc_1","justify-between":"_justify-between_1shkc_1","gap-y-0":"_gap-y-0_1shkc_1","gap-y-1":"_gap-y-1_1shkc_1","space-x-1":"_space-x-1_1shkc_1","space-x-2":"_space-x-2_1shkc_1","self-center":"_self-center_1shkc_1","overflow-auto":"_overflow-auto_1shkc_1","overflow-hidden":"_overflow-hidden_1shkc_1","overflow-y-auto":"_overflow-y-auto_1shkc_73","overflow-x-hidden":"_overflow-x-hidden_1shkc_1","scroll-smooth":"_scroll-smooth_1shkc_1","overflow-ellipsis":"_overflow-ellipsis_1shkc_1","whitespace-normal":"_whitespace-normal_1shkc_1","whitespace-nowrap":"_whitespace-nowrap_1shkc_1",rounded:"_rounded_1shkc_1","rounded-2xl":"_rounded-2xl_1shkc_1","rounded-lg":"_rounded-lg_1shkc_1","rounded-md":"_rounded-md_1shkc_1","!rounded-l-none":"_!rounded-l-none_1shkc_1","!rounded-r-none":"_!rounded-r-none_1shkc_1","rounded-b-lg":"_rounded-b-lg_1shkc_1","rounded-t-lg":"_rounded-t-lg_1shkc_1","rounded-t-md":"_rounded-t-md_1shkc_1","!border-0":"_!border-0_1shkc_1",border:"_border_1shkc_1","border-b":"_border-b_1shkc_1","border-l":"_border-l_1shkc_1","border-l-0":"_border-l-0_1shkc_1","border-r":"_border-r_1shkc_1","border-solid":"_border-solid_1shkc_1","border-dashed":"_border-dashed_1shkc_1","border-none":"_border-none_1shkc_1","border-blue-600":"_border-blue-600_1shkc_1","border-blue-700":"_border-blue-700_1shkc_1","border-gray-200":"_border-gray-200_1shkc_1","border-gray-300":"_border-gray-300_1shkc_1","border-slate-200":"_border-slate-200_1shkc_1","bg-black":"_bg-black_1shkc_1","bg-blue-200":"_bg-blue-200_1shkc_1","bg-blue-600":"_bg-blue-600_1shkc_1","bg-emerald-200":"_bg-emerald-200_1shkc_1","bg-gray-100":"_bg-gray-100_1shkc_1","bg-gray-200":"_bg-gray-200_1shkc_1","bg-gray-400":"_bg-gray-400_1shkc_1","bg-gray-500":"_bg-gray-500_1shkc_1","bg-green-200":"_bg-green-200_1shkc_1","bg-green-300":"_bg-green-300_1shkc_1","bg-red-200":"_bg-red-200_1shkc_1","bg-red-300":"_bg-red-300_1shkc_1","bg-red-900":"_bg-red-900_1shkc_1","bg-slate-100":"_bg-slate-100_1shkc_1","bg-slate-500":"_bg-slate-500_1shkc_1","bg-slate-800":"_bg-slate-800_1shkc_1","bg-slate-900":"_bg-slate-900_1shkc_1","bg-transparent":"_bg-transparent_1shkc_1","bg-white":"_bg-white_1shkc_1","bg-yellow-300":"_bg-yellow-300_1shkc_1","!p-2":"_!p-2_1shkc_1","p-0":"_p-0_1shkc_1","p-1":"_p-1_1shkc_1","p-2":"_p-2_1shkc_1","p-3":"_p-3_1shkc_1","p-4":"_p-4_1shkc_1","!py-0":"_!py-0_1shkc_1","px-1":"_px-1_1shkc_1","px-12":"_px-12_1shkc_1","px-2":"_px-2_1shkc_1","px-2.5":"_px-2.5_1shkc_1","px-4":"_px-4_1shkc_1","px-6":"_px-6_1shkc_1","px-8":"_px-8_1shkc_1","py-1":"_py-1_1shkc_1","py-14":"_py-14_1shkc_1","py-2":"_py-2_1shkc_1","py-3":"_py-3_1shkc_1","py-4":"_py-4_1shkc_1","py-5":"_py-5_1shkc_1","py-8":"_py-8_1shkc_1","pl-1":"_pl-1_1shkc_1","pt-3":"_pt-3_1shkc_1","text-left":"_text-left_1shkc_1","text-center":"_text-center_1shkc_1","text-[.7rem]":"_text-[.7rem]_1shkc_1","text-[1rem]":"_text-[1rem]_1shkc_1","text-base":"_text-base_1shkc_1","text-sm":"_text-sm_1shkc_1","text-xs":"_text-xs_1shkc_1","font-bold":"_font-bold_1shkc_1","font-medium":"_font-medium_1shkc_1","font-semibold":"_font-semibold_1shkc_1",uppercase:"_uppercase_1shkc_1","leading-[1.2rem]":"_leading-[1.2rem]_1shkc_1","!text-green-900":"_!text-green-900_1shkc_1","!text-red-900":"_!text-red-900_1shkc_1","!text-white":"_!text-white_1shkc_1","!text-yellow-900":"_!text-yellow-900_1shkc_1","text-blue-600":"_text-blue-600_1shkc_1","text-blue-900":"_text-blue-900_1shkc_1","text-gray-300":"_text-gray-300_1shkc_1","text-gray-400":"_text-gray-400_1shkc_1","text-gray-500":"_text-gray-500_1shkc_1","text-gray-600":"_text-gray-600_1shkc_1","text-gray-700":"_text-gray-700_1shkc_1","text-green-700":"_text-green-700_1shkc_1","text-red-400":"_text-red-400_1shkc_1","text-red-800":"_text-red-800_1shkc_1","text-red-900":"_text-red-900_1shkc_1","text-slate-200":"_text-slate-200_1shkc_1","text-slate-300":"_text-slate-300_1shkc_1","text-slate-50":"_text-slate-50_1shkc_1","text-slate-500":"_text-slate-500_1shkc_1","text-white":"_text-white_1shkc_1","text-yellow-600":"_text-yellow-600_1shkc_1","text-zinc-500":"_text-zinc-500_1shkc_1","text-zinc-800":"_text-zinc-800_1shkc_1","line-through":"_line-through_1shkc_1","opacity-0":"_opacity-0_1shkc_1","opacity-20":"_opacity-20_1shkc_1","opacity-50":"_opacity-50_1shkc_1","opacity-70":"_opacity-70_1shkc_1","opacity-80":"_opacity-80_1shkc_1","shadow-none":"_shadow-none_1shkc_1","outline-none":"_outline-none_1shkc_1",outline:"_outline_1shkc_1",filter:"_filter_1shkc_1",transition:"_transition_1shkc_1","transition-all":"_transition-all_1shkc_1","duration-300":"_duration-300_1shkc_1","danx-app":"_danx-app_1shkc_4","q-tab":"_q-tab_1shkc_4","q-table__card":"_q-table__card_1shkc_7","q-checkbox__inner":"_q-checkbox__inner_1shkc_11","q-toolbar":"_q-toolbar_1shkc_14","q-notification__actions":"_q-notification__actions_1shkc_19","q-date":"_q-date_1shkc_22","q-date__view":"_q-date__view_1shkc_25","q-field":"_q-field_1shkc_28","q-field--auto-height":"_q-field--auto-height_1shkc_28","q-field__control":"_q-field__control_1shkc_28","q-field__native":"_q-field__native_1shkc_31","q-field--labeled":"_q-field--labeled_1shkc_35","q-field__control-container":"_q-field__control-container_1shkc_35","q-textarea":"_q-textarea_1shkc_38","q-field__marginal":"_q-field__marginal_1shkc_41","q-field__input":"_q-field__input_1shkc_41","q-field__label":"_q-field__label_1shkc_41","q-btn":"_q-btn_1shkc_48","q-item":"_q-item_1shkc_56","q-tab-panels":"_q-tab-panels_1shkc_60","q-panel":"_q-panel_1shkc_64",scroll:"_scroll_1shkc_67","q-tab-panel":"_q-tab-panel_1shkc_60","dx-dialog":"_dx-dialog_1shkc_77","q-card__section--vert":"_q-card__section--vert_1shkc_77","q-banner":"_q-banner_1shkc_81",app:"_app_1shkc_1","main-layout":"_main-layout_1shkc_1","is-disabled":"_is-disabled_1shkc_98","disable-all-transitions":"_disable-all-transitions_1shkc_103","v-enter-active":"_v-enter-active_1shkc_107","v-leave-active":"_v-leave-active_1shkc_108","v-enter-from":"_v-enter-from_1shkc_112","v-leave-to":"_v-leave-to_1shkc_113","dx-action-table":"_dx-action-table_1shkc_117","dx-column-shrink":"_dx-column-shrink_1shkc_117","panel-tabs":"_panel-tabs_1shkc_121","hover:bg-blue-200":"_hover:bg-blue-200_1shkc_1","hover:bg-gray-200":"_hover:bg-gray-200_1shkc_1","hover:bg-green-100":"_hover:bg-green-100_1shkc_1","hover:bg-red-100":"_hover:bg-red-100_1shkc_1","hover:bg-red-200":"_hover:bg-red-200_1shkc_1","hover:bg-slate-200":"_hover:bg-slate-200_1shkc_1","hover:bg-slate-300":"_hover:bg-slate-300_1shkc_1","hover:bg-slate-600":"_hover:bg-slate-600_1shkc_1","hover:text-blue-500":"_hover:text-blue-500_1shkc_1","hover:text-blue-600":"_hover:text-blue-600_1shkc_1","hover:opacity-100":"_hover:opacity-100_1shkc_1","hover:opacity-20":"_hover:opacity-20_1shkc_1","focus:bg-blue-200":"_focus:bg-blue-200_1shkc_1"}}]]),l3={class:"flex flex-col flex-nowrap h-full"},a3={class:"dx-panels-drawer-header flex items-center px-6 py-4"},c3={class:"flex-grow"},u3={key:0},d3={key:1},f3={key:0,class:"mr-4"},h3={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},_3={key:0,class:"flex items-stretch flex-nowrap h-full"},m3={key:0,class:"border-l overflow-y-auto"},lm=o.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},activeItem:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-[80rem]"},position:{default:"right"},panels:{}},emits:["update:model-value","close"],setup(t){const e=t,n=o.ref(e.modelValue),r=o.computed(()=>e.panels.find(i=>i.name===n.value));return o.watch(()=>e.modelValue,i=>n.value=i),o.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(i,s)=>{const l=o.resolveComponent("QSpinnerHourglass"),a=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Cl),{position:i.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":s[3]||(s[3]=c=>i.$emit("close"))},{default:o.withCtx(()=>{var c;return[o.createElementVNode("div",l3,[o.createElementVNode("div",a3,[o.createElementVNode("div",c3,[o.renderSlot(i.$slots,"header",{},()=>[i.title?(o.openBlock(),o.createElementBlock("h2",u3,o.toDisplayString(i.title),1)):o.createCommentVNode("",!0),i.activeItem?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",d3,[o.createTextVNode(" Loading "),o.createVNode(l)]))])]),i.$slots.controls?(o.openBlock(),o.createElementBlock("div",f3,[o.renderSlot(i.$slots,"controls")])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{class:"dx-close-button",onClick:s[0]||(s[0]=u=>i.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(xo),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",h3,[i.activeItem.__timestamp>0?(o.openBlock(),o.createElementBlock("div",_3,[(o.openBlock(),o.createBlock(o.unref(sm),{key:"pd-tabs:"+i.activeItem.id,modelValue:n.value,"onUpdate:modelValue":[s[1]||(s[1]=u=>n.value=u),s[2]||(s[2]=u=>i.$emit("update:model-value",u))],"active-item":i.activeItem,class:o.normalizeClass(i.tabsClass),panels:i.panels},null,8,["modelValue","active-item","class","panels"])),(o.openBlock(),o.createBlock(o.unref(om),{key:"pd-panels:"+i.activeItem.id,panels:i.panels,"active-panel":n.value,"active-item":i.activeItem,class:o.normalizeClass(((c=r.value)==null?void 0:c.class)||i.panelsClass)},null,8,["panels","active-panel","active-item","class"])),i.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",m3,[o.renderSlot(i.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])])]}),_:3},8,["position"])}}}),p3={class:"flex items-center justify-center text-sm py-14 w-full"},g3={key:0},y3={key:1},am={__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",p3,[t.loading?(o.openBlock(),o.createElementBlock("div",g3,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",y3,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}};function cm(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 um(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 dm(t,e=null){const n={},r=Yf("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(s=>{(!e||e.includes(s))&&(n[s]=i[s])})}return n}const b3={class:"flex flex-nowrap items-center"},w3={class:"relative"},k3={class:"ml-2"},fm=o.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let s=0;s<e.columns.length;s++){const l=e.columns[s].field||e.columns[s].name;if(e.summary[l])return s+1}return e.columns.length+1}),r=o.computed(()=>e.columns.slice(n.value-1));function i(s){const l=e.summary&&e.summary[s.name];return l===void 0?"":s.format?s.format(l):l}return(s,l)=>(o.openBlock(),o.createBlock(o.unref(J.QTr),{class:o.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":s.selectedCount,"is-loading":s.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(J.QTd),{colspan:n.value,class:o.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":s.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",b3,[o.createElementVNode("div",w3,[s.loading?(o.openBlock(),o.createBlock(o.unref(J.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass([{"opacity-0":s.loading},"flex items-center nowrap"])},[s.selectedCount?(o.openBlock(),o.createBlock(o.unref(Zk),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>s.$emit("clear"))})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(o.unref(Tt)(s.selectedCount||s.itemCount)),1)],2)]),o.createElementVNode("div",k3,o.toDisplayString(s.selectedCount?s.selectedLabel:s.label),1)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,a=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:a.name,align:a.align||"right",class:o.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:o.withCtx(()=>[s.summary?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass({"dx-summary-column-link":a.onClick})},o.toDisplayString(i(a)),3)):o.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),hm=mt(o.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:"multiple"}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=o.ref(null);cm(n);const r=o.computed(()=>e.columns.map(c=>({...c,field:c.field||c.name}))),i=o.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),s=`column-settings-${e.name}`,l=o.ref(Ht(s)||{});function a(){Gt(s,l.value)}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!i.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[o.createVNode(o.unref(yh)),o.createVNode(o.unref(J.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows,pagination:c.pagination,columns:r.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:o.unref(um)(f.pagination,r.value)}))},{"no-data":o.withCtx(()=>[o.renderSlot(c.$slots,"empty",{},()=>[o.createVNode(am,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":o.withCtx(()=>{var f;return[i.value?(o.openBlock(),o.createBlock(fm,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=h=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):o.createCommentVNode("",!0)]}),"header-cell":o.withCtx(f=>[o.createVNode(o.unref(R_),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(f=>[(o.openBlock(),o.createBlock(o.unref(v_),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-92434ba2"]]),x3={class:"dx-action-toolbar flex items-center"},S3={class:"flex-grow px-6"},C3={key:0},E3={class:"py-3 flex items-center flex-nowrap"},_m=o.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",x3,[o.createElementVNode("div",S3,[o.renderSlot(e.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("h4",C3,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",E3,[o.renderSlot(e.$slots,"default"),e.refreshButton?(o.openBlock(),o.createBlock(o.unref(eh),{key:0,loading:e.loading,onClick:n[0]||(n[0]=r=>e.$emit("refresh"))},null,8,["loading"])):o.createCommentVNode("",!0),e.exporter?(o.openBlock(),o.createBlock(o.unref(Jf),{key:1,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):o.createCommentVNode("",!0),e.actions&&e.actions.length>0?(o.openBlock(),o.createBlock(o.unref(ha),{key:2,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"after")])]))}}),T3={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},N3={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},I3=o.defineComponent({__name:"ActionTableLayout",props:{title:{default:""},controller:{},columns:{},filters:{default:void 0},panels:{default:void 0},actions:{default:void 0},exporter:{type:Function,default:void 0},panelTitleField:{default:""},tableClass:{default:""},refreshButton:{type:Boolean},showFilters:{type:Boolean},hideToolbar:{type:Boolean},selection:{default:"multiple"}},setup(t){const e=t,n=o.computed(()=>e.controller.activeFilter.value),r=o.computed(()=>e.controller.activeItem.value),i=o.computed(()=>e.controller.activePanel.value||""),s=o.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(l,a)=>(o.openBlock(),o.createElementBlock("div",T3,[o.renderSlot(l.$slots,"top"),o.renderSlot(l.$slots,"toolbar",{},()=>{var c;return[l.hideToolbar?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(_m),{key:0,title:l.title,"refresh-button":l.refreshButton,actions:(c=l.actions)==null?void 0:c.filter(u=>u.batch),"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll},{default:o.withCtx(()=>[o.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","actions","action-target","exporter","loading","onRefresh"]))]}),o.createElementVNode("div",N3,[o.renderSlot(l.$slots,"filters",{},()=>[n.value?(o.openBlock(),o.createBlock(o.unref(nm),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:l.filters,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):o.createCommentVNode("",!0)]),o.renderSlot(l.$slots,"default",{},()=>[o.createVNode(hm,{class:o.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.columns,selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),o.renderSlot(l.$slots,"panels",{},()=>[r.value&&l.panels?(o.openBlock(),o.createBlock(o.unref(lm),{key:0,title:s.value,"model-value":i.value,"active-item":r.value,panels:l.panels,"onUpdate:modelValue":a[0]||(a[0]=c=>l.controller.activatePanel(r.value,c)),onClose:a[1]||(a[1]=c=>l.controller.setActiveItem(null))},{controls:o.withCtx(()=>[o.createVNode(o.unref(uh),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","active-item","panels"])):o.createCommentVNode("",!0)])])]))}});function B3(t,e){let n=!1;const r=`dx-${t}-pager`,i=o.shallowRef(null),s=o.ref({}),l=o.ref({}),a=o.ref(!1),c=o.shallowRef([]),u=o.ref(!1),d=o.ref(!1),f=o.shallowRef(null),h=o.shallowRef(null),_=o.shallowRef(""),g=o.ref({}),m=o.ref(!1),p=o.computed(()=>Object.keys(s.value).filter(O=>s.value[O]!==void 0).length),x={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},y=o.shallowRef(x),b=o.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{...s.value,...l.value},sort:y.value.__sort||void 0}));o.watch(b,()=>{ot(),C()}),o.watch(s,()=>{ot(),T()}),o.watch(c,T),e.refreshFilters&&o.watch(s,E);async function C(){if(n){u.value=!0;try{I(await e.routes.list(b.value)),u.value=!1}catch{}}}async function T(){if(!e.routes.summary||!n)return;d.value=!0;const O={id:null,...s.value,...l.value};c.value.length&&(O.id=c.value.map(L=>L.id));try{f.value=await e.routes.summary(O),d.value=!1}catch{}}async function w(){await Promise.all([C(),T()])}function k(O){return g.value[O]||[]}async function E(){if(e.routes.fieldOptions){m.value=!0;try{g.value=await e.routes.fieldOptions(s.value)||{},m.value=!1}catch{}}}function N(O,L=null){var H;if(e.urlPattern&&O.match(e.urlPattern)){const $e=(H=L==null?void 0:L.value)==null?void 0:H.map(Pt=>Pt.fields.map(qo=>qo.name)).flat(),He=dm(O,$e);Object.keys(He).length>0&&(s.value=He,P("filter",s.value))}}function I(O){let L=[],H;Array.isArray(O)?(L=O,H={total:O.length}):O.data&&(L=O.data,H=O.meta),H&&H.total!==y.value.rowsNumber&&(y.value.rowsNumber=H.total),L=L.map($e=>($e.isSaving=$e.isSaving===void 0?!1:$e.isSaving,Ne($e))),i.value={data:L,meta:H}}function B(){y.value=x}function $(O){y.value={...y.value,...O}}function R(O){c.value=O}function Q(){c.value=[]}async function se(O,L=void 0){var H,$e,He;if(!e.routes.more)return!1;try{const Pt=await e.routes.more({page:O+1,perPage:L,filter:{...s.value,...l.value}});if(Pt&&Pt.length>0)return I({data:[...((H=i.value)==null?void 0:H.data)||[],...Pt],meta:{total:((He=($e=i.value)==null?void 0:$e.meta)==null?void 0:He.total)||0}}),!0}catch{}return!1}async function te(){return Promise.all([C(),T(),E(),At()])}function P(O,L){const H=Ht(r)||{};H[O]=L,Gt(r,H)}function we(){const O=Ht(r);O?(s.value={...O.filter,...s.value},y.value=O.pagination):s.value={...e.filterDefaults,...s.value},setTimeout(()=>{u.value||C(),d.value||T(),m.value||E()},1)}async function ot(){const O={filter:s.value,pagination:{...y.value,page:1}};Gt(r,O)}async function At(){try{const L=await jo("active-item",async()=>{if(!(!h.value||!e.routes.details))return await e.routes.details(h.value)})();if(L===void 0)return;if(!L||!L.__type||!L.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",L);h.value=Ne(L)}catch{}}e.routes.details&&o.watch(()=>h.value,async(O,L)=>{O!=null&&O.id&&(L==null?void 0:L.id)!=O.id&&await At()});function tn(O,L=""){var H;(O==null?void 0:O.id)==((H=h.value)==null?void 0:H.id)&&L===_.value||(St(O),_.value=L,O!=null&&O.id&&pm({id:O.id,panel:L}))}function St(O){h.value=O&&Ne(O),O!=null&&O.id||pm({})}async function Lo(O){var Pt,qo;if(!((Pt=i.value)!=null&&Pt.data))return;const L=i.value.data.findIndex(Vo=>{var mi;return Vo.id===((mi=h.value)==null?void 0:mi.id)});if(L==null)return;const H=L+O,He=await jo("getNextItem",async()=>{var Vo,mi,bm;return(Vo=i.value)!=null&&Vo.data?H<0?y.value.page>1?(y.value={...y.value,page:y.value.page-1},await Uo(u,!1),i.value.data.length-1):-1:H>=i.value.data.length?y.value.page<(((bm=(mi=i.value)==null?void 0:mi.meta)==null?void 0:bm.last_page)||1)?(y.value={...y.value,page:y.value.page+1},await Uo(u,!1),0):-1:H:-1})();He!==void 0&&He>=0&&(h.value=(qo=i.value)==null?void 0:qo.data[He])}function ft(O){s.value=O||{}}async function Dt(O){e.routes.export&&await e.routes.export(O)}function H3(){const O=ym();if(n=!0,we(),e.routes.details){const{params:L,meta:H,name:$e}=O.currentRoute.value;$e===t&&(O.afterEach(He=>{He.name===$e&&gm(He.params,He.meta)}),gm(L,H))}}function pm(O){const L=ym(),{name:H}=L.currentRoute.value;L.push({name:(Array.isArray(H)?H[0]:H)||"home",params:O})}function gm(O,L){const H=Array.isArray(O==null?void 0:O.id)?O.id[0]:O==null?void 0:O.id;if(H&&L.type){const $e=Array.isArray(O==null?void 0:O.panel)?O.panel[0]:O==null?void 0:O.panel;tn({id:H,__type:""+L.type},$e||_.value||"")}}function ym(){if(!le.value.router)throw new Error("Vue Router must be configured in danxOptions");return le.value.router}return{name:t,label:e.label||t,pagedItems:i,activeFilter:s,globalFilter:l,filterActiveCount:p,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFilters:m,isLoadingSummary:d,pager:b,pagination:y,activeItem:h,activePanel:_,initialize:H3,resetPaging:B,setPagination:$,setSelectedRows:R,clearSelectedRows:Q,loadList:C,loadSummary:T,loadListAndSummary:w,loadMore:se,loadFieldOptions:E,getActiveItemDetails:At,refreshAll:te,exportList:Dt,setActiveItem:St,getNextItem:Lo,activatePanel:tn,setActiveFilter:ft,applyFilterFromUrl:N,getFieldOptions:k}}function F3(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(Ht(n)||[]),l=o.ref(Ht(r,[])),a=o.ref(Ht(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((_,g)=>{const m=s.value.indexOf(_.name),p=s.value.indexOf(g.name);return m===-1?1:p===-1?-1:m-p})),d=o.computed({get(){return u.value.slice(1)},set(_){s.value=[...c.value.map(g=>g.name),..._.map(g=>g.name)],Gt(n,s.value)}}),f=o.computed(()=>u.value.filter(_=>!l.value.includes(_.name))),h=o.computed(()=>u.value.filter(_=>a.value.includes(_.name)));return o.watch(()=>l.value,()=>Gt(r,l.value)),o.watch(()=>a.value,()=>Gt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const O3={class:"flex space-x-2"},$3=["innerHTML"],Sa={__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 Tt(r);case"CURRENCY":return no(r);case"DATE":return _t(r);case"DATETIME":return rr(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",O3,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Qr),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,s=>(o.openBlock(),o.createBlock(o.unref(Qr),{key:"file-"+s.id,file:s,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,$3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},A3={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},D3={class:"flex-grow text-sm w-3/5 overflow-auto"},P3={class:"flex flex-nowrap items-center mt-4"},M3={class:"bg-red-200 line-through p-2"},v3={class:"bg-emerald-200 ml-2.5 p-2"},L3={class:"ml-4 text-sm w-2/5"},q3=["href"],V3={__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",A3,[o.createElementVNode("div",D3,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",P3,[o.createElementVNode("div",M3,[o.createVNode(o.unref(Sa),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",v3,[o.createVNode(o.unref(Sa),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",L3,[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(rr)(t.item.timestamp)),9,q3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(rr)(t.item.timestamp)),1)],64))])])]))}},R3=["href","target","onClick"],U3={key:0,class:"flex-shrink-0"},j3={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=le.value.router,r=o.computed(()=>e.items.filter(a=>!a.hidden));function i(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function s(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(i(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(i(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=o.resolveComponent("QTooltip"),d=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,f=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[o.createElementVNode("a",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>s(h,f)},[f.icon?(o.openBlock(),o.createElementBlock("div",U3,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.icon),{class:o.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",f.labelClass])},o.toDisplayString(f.label),3)),t.collapsed?(o.openBlock(),o.createBlock(u,o.normalizeProps(o.mergeProps({key:2},f.tooltip)),{default:o.withCtx(()=>{var h;return[o.createTextVNode(o.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,R3),f.separator?(o.openBlock(),o.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},z3={name:"quasar-ui-danx",version:"0.4.18",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},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:mm}=z3;function G3(){console.log(`Installing Danx UI ${mm}... Nothing to do really.`)}S.ActionForm=s3,S.ActionMenu=ha,S.ActionTable=hm,S.ActionTableColumn=v_,S.ActionTableHeaderColumn=R_,S.ActionTableLayout=I3,S.ActionToolbar=_m,S.ActionVnode=yh,S.AddressFormat=TS,S.AuditHistoryItem=V3,S.AuditHistoryItemValue=Sa,S.AutoHeightTransition=HS,S.BadgeTab=VS,S.BooleanField=pa,S.CaretDownIcon=th,S.CollapsableFiltersSidebar=nm,S.CollapsableSidebar=ph,S.ColumnListItem=ma,S.ColumnSettingsDialog=yE,S.ConfirmActionDialog=Yx,S.ConfirmDialog=dr,S.ConfirmPasswordField=OE,S.ContentDrawer=Cl,S.DateField=ya,S.DateRangeField=ba,S.DateTime=D,S.DateTimeField=VE,S.DateTimePicker=wa,S.DragAndDrop=_a,S.DragHandleDotsIcon=nh,S.DragHandleIcon=rh,S.EditOnClickTextField=XE,S.EditableDiv=RE,S.EmptyTableState=am,S.ExportButton=Jf,S.FieldLabel=kt,S.FilePreview=Qr,S.FileUpload=Kr,S.FileUploadButton=eT,S.FilterIcon=ih,S.FilterItem=em,S.FilterList=tm,S.FilterListToggle=rm,S.FilterToolbarLayout=QT,S.FilterableField=xa,S.FlashMessages=qe,S.FlatListFormat=NS,S.FullScreenCarouselDialog=hh,S.FullScreenDialog=sS,S.GpsCoordinatesFormat=FS,S.HandleDraggable=L_,S.IconWithTextFormat=$S,S.ImageIcon=xl,S.IndicatorTab=jS,S.InfoDialog=_h,S.InlineDateTimeField=rT,S.InputDialog=aS,S.IntegerField=z_,S.InteractiveTooltip=vS,S.LabelValueBlock=lT,S.LabelValueFormat=DS,S.LabeledInput=ga,S.ListDragAndDrop=q_,S.ListItemDraggable=V_,S.ListTransition=kh,S.MaxHeightTransition=WS,S.MaxLengthCounter=j_,S.MultiFileField=G_,S.MultiKeywordField=H_,S.NavigationMenu=j3,S.NewPasswordField=fT,S.NumberField=hi,S.NumberRangeField=vo,S.PanelsDrawer=lm,S.PanelsDrawerPanels=om,S.PanelsDrawerTabs=sm,S.PdfIcon=oh,S.PercentIcon=sh,S.PopoverMenu=wh,S.PreviousNextControls=uh,S.RefreshButton=eh,S.RenderComponent=bh,S.RenderVnode=kn,S.RenderedForm=im,S.SERVER_TZ=Vs,S.SelectDrawer=gT,S.SelectField=_i,S.SelectWithChildrenField=W_,S.SingleFileField=Z_,S.SkipNextIcon=lh,S.SkipPreviousIcon=ah,S.SlideTransition=ZS,S.SliderNumberField=CT,S.StaggeredListTransition=cE,S.SvgImg=mh,S.TableSummaryRow=fm,S.TextField=fi,S.TitleColumnFormat=U_,S.TrashIcon=ko,S.VisibleColumnsToggleButtons=SE,S.WarningIcon=ch,S.WysiwygField=J_,S.XIcon=xo,S.activeActionVnode=rn,S.addHotkey=Mk,S.applyCssVars=jk,S.buildCssVars=kl,S.centerTruncate=eg,S.configure=wm,S.danxOptions=le,S.dbDateTime=js,S.diffInDays=og,S.download=ro,S.downloadFile=ad,S.downloadFileResponse=cd,S.fBoolean=id,S.fCurrency=no,S.fCurrencyNoCents=Q0,S.fDate=_t,S.fDateTime=to,S.fElapsedTime=K0,S.fJSON=ld,S.fLocalizedDateTime=rr,S.fMarkdownCode=ig,S.fNameOrCount=sd,S.fNumber=Tt,S.fPercent=od,S.fPhone=tg,S.fQDate=Z0,S.fSecondsToTime=Y0,S.fShortCurrency=X0,S.fShortNumber=rd,S.fShortSize=J0,S.fetchResourceListWithSelected=Rk,S.getFilterFromUrl=dm,S.getItem=Ht,S.getResponseHeader=Gs,S.getUrlParam=Yf,S.incrementName=Fa,S.install=G3,S.isJSON=Oa,S.latestCallOnly=jo,S.listen=vk,S.localizedDateTime=Rs,S.mapSortBy=um,S.metersToMiles=Pm,S.milesToMeters=Mm,S.minmax=Dm,S.notify=Bm,S.parseCoords=vm,S.parseDateTime=pn,S.parseMarkdownCode=zs,S.parseMarkdownJSON=ng,S.parseMarkdownYAML=rg,S.parseQDate=eo,S.parseQDateTime=Us,S.pollUntil=Am,S.refreshApplication=Om,S.registerHotkeys=qk,S.registerStickyScrolling=cm,S.remoteDateTime=nd,S.remove=Sr,S.replace=Ro,S.request=be,S.resolveFileLocation=Gf,S.setItem=Gt,S.sleep=Cr,S.storeObject=Ne,S.uniqueBy=$m,S.unlisten=Lk,S.useActionRoutes=Uk,S.useActions=Fm,S.useCompatibility=Da,S.useDebounceFn=nn,S.useListControls=B3,S.useMultiFileUpload=Zf,S.useSingleFileUpload=Kf,S.useTableColumns=F3,S.version=mm,S.waitForRef=Uo,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
153
+ */var g_,Xt,br,na,In,y_,ra,RC=function(){return typeof window<"u"},Ot={},Bn=180/Math.PI,wr=Math.PI/180,kr=Math.atan2,b_=1e8,ia=/([A-Z])/g,UC=/(left|right|width|margin|padding|x)/i,jC=/[\s,\(]\S/,bt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},oa=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},zC=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)},GC=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)},HC=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},w_=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},k_=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},WC=function(e,n,r){return e.style[n]=r},ZC=function(e,n,r){return e.style.setProperty(n,r)},YC=function(e,n,r){return e._gsap[n]=r},KC=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},QC=function(e,n,r,i,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},XC=function(e,n,r,i,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},re="transform",Le=re+"Origin",JC=function t(e,n){var r=this,i=this.target,s=i.style,l=i._gsap;if(e in Ot&&s){if(this.tfm=this.tfm||{},e!=="transform")e=bt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=$t(i,a)}):this.tfm[e]=l.x?l[e]:$t(i,e),e===Le&&(this.tfm.zOrigin=l.zOrigin);else return bt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(re)>=0)return;l.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Le,n,"")),e=re}(s||n)&&this.props.push(e,n,s[e])},x_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},eE=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(ia,"-$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=ra(),(!s||!s.isStart)&&!r[re]&&(x_(r),i.zOrigin&&r[Le]&&(r[Le]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},S_=function(e,n){var r={target:e,props:[],revert:eE,save:JC};return e._gsap||ve.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},C_,sa=function(e,n){var r=Xt.createElementNS?Xt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Xt.createElement(e);return r&&r.style?r:Xt.createElement(e)},wt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ia,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,xr(n)||n,1)||""},E_="O,Moz,ms,Ms,Webkit".split(","),xr=function(e,n,r){var i=n||In,s=i.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(E_[l]+e in s););return l<0?null:(l===3?"ms":l>=0?E_[l]:"")+e},la=function(){RC()&&window.document&&(g_=window,Xt=g_.document,br=Xt.documentElement,In=sa("div")||{style:{}},sa("div"),re=xr(re),Le=re+"Origin",In.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",C_=!!xr("perspective"),ra=ve.core.reverting,na=1)},aa=function t(e){var n=sa("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(br.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)),br.removeChild(n),this.style.cssText=s,l},T_=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},N_=function(e){var n;try{n=e.getBBox()}catch{n=aa.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===aa||(n=aa.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+T_(e,["x","cx","x1"])||0,y:+T_(e,["y","cy","y1"])||0,width:0,height:0}:n},I_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&N_(e))},Fn=function(e,n){if(n){var r=e.style,i;n in Ot&&n!==Le&&(n=re),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ia,"-$1").toLowerCase())):r.removeAttribute(n)}},Jt=function(e,n,r,i,s,l){var a=new Me(e._pt,n,r,0,1,l?k_:w_);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},B_={deg:1,rad:1,turn:1},tE={grid:1,flex:1},en=function t(e,n,r,i){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=In.style,c=UC.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=i==="px",_=i==="%",g,m,p,x;if(i===l||!s||B_[i]||B_[l])return s;if(l!=="px"&&!h&&(s=t(e,n,r,"px")),x=e.getCTM&&I_(e),(_||l==="%")&&(Ot[n]||~n.indexOf("adius")))return g=x?e.getBBox()[c?"width":"height"]:e[d],de(_?s/g*f:s/100*g);if(a[c?"width":"height"]=f+(h?l:i),m=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Xt||!m.appendChild)&&(m=Xt.body),p=m._gsap,p&&_&&p.width&&c&&p.time===Ge.time&&!p.uncache)return de(s/p.width*f);if(_&&(n==="height"||n==="width")){var y=e.style[n];e.style[n]=f+i,g=e[d],y?e.style[n]=y:Fn(e,n)}else(_||l==="%")&&!tE[wt(m,"display")]&&(a.position=wt(e,"position")),m===e&&(a.position="static"),m.appendChild(In),g=In[d],m.removeChild(In),a.position="absolute";return c&&_&&(p=xn(m),p.time=Ge.time,p.width=m[d]),de(h?g*s/f:g&&s?f/g*s:0)},$t=function(e,n,r,i){var s;return na||la(),n in bt&&n!=="transform"&&(n=bt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Ot[n]&&n!=="transform"?(s=ui(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Mo(wt(e,Le))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Po[n]&&Po[n](e,n,r)||wt(e,n)||Ah(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?en(e,n,s,r)+r:s},nE=function(e,n,r,i){if(!r||r==="none"){var s=xr(n,e,1),l=s&&wt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=wt(e,"borderTopColor"))}var a=new Me(this._pt,e.style,n,0,1,h_),c=0,u=0,d,f,h,_,g,m,p,x,y,b,C,T;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(m=e.style[n],e.style[n]=i,i=wt(e,n)||i,m?e.style[n]=m:Fn(e,n)),d=[r,i],r_(d),r=d[0],i=d[1],h=r.match(hr)||[],T=i.match(hr)||[],T.length){for(;f=hr.exec(i);)p=f[0],y=i.substring(c,f.index),g?g=(g+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(g=1),p!==(m=h[u++]||"")&&(_=parseFloat(m)||0,C=m.substr((_+"").length),p.charAt(1)==="="&&(p=_r(_,p)+C),x=parseFloat(p),b=p.substr((x+"").length),c=hr.lastIndex-b.length,b||(b=b||Re.units[n]||C,c===i.length&&(i+=b,a.e+=b)),C!==b&&(_=en(e,n,m,b)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:_,c:x-_,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"?k_:w_;return Th.test(i)&&(a.e=0),this._pt=a,a},F_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},rE=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]=F_[r]||r,n[1]=F_[i]||i,n.join(" ")},iE=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],Ot[a]&&(c=1,a=a==="transformOrigin"?Le:re),Fn(r,a);c&&(Fn(r,re),l&&(l.svg&&r.removeAttribute("transform"),ui(r,1),l.uncache=1,x_(i)))}},Po={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var l=e._pt=new Me(e._pt,n,r,0,0,iE);return l.u=i,l.pr=-10,l.tween=s,e._props.push(r),1}}},ci=[1,0,0,1,0,0],O_={},$_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},A_=function(e){var n=wt(e,re);return $_(n)?ci:n.substr(7).match(Eh).map(de)},ca=function(e,n){var r=e._gsap||xn(e),i=e.style,s=A_(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"?ci:s):(s===ci&&!e.offsetParent&&e!==br&&!r.svg&&(c=i.display,i.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,br.appendChild(e)),s=A_(e),c?i.display=c:Fn(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):br.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ua=function(e,n,r,i,s,l){var a=e._gsap,c=s||ca(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,_=c[0],g=c[1],m=c[2],p=c[3],x=c[4],y=c[5],b=n.split(" "),C=parseFloat(b[0])||0,T=parseFloat(b[1])||0,w,k,E,N;r?c!==ci&&(k=_*p-g*m)&&(E=C*(p/k)+T*(-m/k)+(m*y-p*x)/k,N=C*(-g/k)+T*(_/k)-(_*y-g*x)/k,C=E,T=N):(w=N_(e),C=w.x+(~b[0].indexOf("%")?C/100*w.width:C),T=w.y+(~(b[1]||b[0]).indexOf("%")?T/100*w.height:T)),i||i!==!1&&a.smooth?(x=C-u,y=T-d,a.xOffset=f+(x*_+y*m)-x,a.yOffset=h+(x*g+y*p)-y):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Le]="0px 0px",l&&(Jt(l,a,"xOrigin",u,C),Jt(l,a,"yOrigin",d,T),Jt(l,a,"xOffset",f,a.xOffset),Jt(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},ui=function(e,n){var r=e._gsap||new l_(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=wt(e,Le)||"0",d,f,h,_,g,m,p,x,y,b,C,T,w,k,E,N,I,B,$,R,Q,se,te,P,we,ot,At,tn,St,Lo,ft,Dt;return d=f=h=m=p=x=y=b=C=0,_=g=1,r.svg=!!(e.getCTM&&I_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[re]=(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[re]!=="none"?c[re]:"")),i.scale=i.rotate=i.translate="none"),k=ca(e,r.svg),r.svg&&(r.uncache?(we=e.getBBox(),u=r.xOrigin-we.x+"px "+(r.yOrigin-we.y)+"px",P=""):P=!n&&e.getAttribute("data-svg-origin"),ua(e,P||u,!!P||r.originIsAbsolute,r.smooth!==!1,k)),T=r.xOrigin||0,w=r.yOrigin||0,k!==ci&&(B=k[0],$=k[1],R=k[2],Q=k[3],d=se=k[4],f=te=k[5],k.length===6?(_=Math.sqrt(B*B+$*$),g=Math.sqrt(Q*Q+R*R),m=B||$?kr($,B)*Bn:0,y=R||Q?kr(R,Q)*Bn+m:0,y&&(g*=Math.abs(Math.cos(y*wr))),r.svg&&(d-=T-(T*B+w*R),f-=w-(T*$+w*Q))):(Dt=k[6],Lo=k[7],At=k[8],tn=k[9],St=k[10],ft=k[11],d=k[12],f=k[13],h=k[14],E=kr(Dt,St),p=E*Bn,E&&(N=Math.cos(-E),I=Math.sin(-E),P=se*N+At*I,we=te*N+tn*I,ot=Dt*N+St*I,At=se*-I+At*N,tn=te*-I+tn*N,St=Dt*-I+St*N,ft=Lo*-I+ft*N,se=P,te=we,Dt=ot),E=kr(-R,St),x=E*Bn,E&&(N=Math.cos(-E),I=Math.sin(-E),P=B*N-At*I,we=$*N-tn*I,ot=R*N-St*I,ft=Q*I+ft*N,B=P,$=we,R=ot),E=kr($,B),m=E*Bn,E&&(N=Math.cos(E),I=Math.sin(E),P=B*N+$*I,we=se*N+te*I,$=$*N-B*I,te=te*N-se*I,B=P,se=we),p&&Math.abs(p)+Math.abs(m)>359.9&&(p=m=0,x=180-x),_=de(Math.sqrt(B*B+$*$+R*R)),g=de(Math.sqrt(te*te+Dt*Dt)),E=kr(se,te),y=Math.abs(E)>2e-4?E*Bn:0,C=ft?1/(ft<0?-ft:ft):0),r.svg&&(P=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!$_(wt(e,re)),P&&e.setAttribute("transform",P))),Math.abs(y)>90&&Math.abs(y)<270&&(s?(_*=-1,y+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,y+=y<=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=h+l,r.scaleX=de(_),r.scaleY=de(g),r.rotation=de(m)+a,r.rotationX=de(p)+a,r.rotationY=de(x)+a,r.skewX=y+a,r.skewY=b+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Le]=Mo(u)),r.xOffset=r.yOffset=0,r.force3D=Re.force3D,r.renderTransform=r.svg?sE:C_?D_:oE,r.uncache=0,r},Mo=function(e){return(e=e.split(" "))[0]+" "+e[1]},da=function(e,n,r){var i=Ee(n);return de(parseFloat(n)+parseFloat(en(e,"x",r+"px",i)))+i},oE=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,D_(e,n)},On="0deg",di="0px",$n=") ",D_=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,h=r.skewX,_=r.skewY,g=r.scaleX,m=r.scaleY,p=r.transformPerspective,x=r.force3D,y=r.target,b=r.zOrigin,C="",T=x==="auto"&&e&&e!==1||x===!0;if(b&&(f!==On||d!==On)){var w=parseFloat(d)*wr,k=Math.sin(w),E=Math.cos(w),N;w=parseFloat(f)*wr,N=Math.cos(w),l=da(y,l,k*N*-b),a=da(y,a,-Math.sin(w)*-b),c=da(y,c,E*N*-b+b)}p!==di&&(C+="perspective("+p+$n),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(T||l!==di||a!==di||c!==di)&&(C+=c!==di||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+$n),u!==On&&(C+="rotate("+u+$n),d!==On&&(C+="rotateY("+d+$n),f!==On&&(C+="rotateX("+f+$n),(h!==On||_!==On)&&(C+="skew("+h+", "+_+$n),(g!==1||m!==1)&&(C+="scale("+g+", "+m+$n),y.style[re]=C||"translate(0, 0)"},sE=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,h=r.scaleY,_=r.target,g=r.xOrigin,m=r.yOrigin,p=r.xOffset,x=r.yOffset,y=r.forceCSS,b=parseFloat(l),C=parseFloat(a),T,w,k,E,N;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=wr,u*=wr,T=Math.cos(c)*f,w=Math.sin(c)*f,k=Math.sin(c-u)*-h,E=Math.cos(c-u)*h,u&&(d*=wr,N=Math.tan(u-d),N=Math.sqrt(1+N*N),k*=N,E*=N,d&&(N=Math.tan(d),N=Math.sqrt(1+N*N),T*=N,w*=N)),T=de(T),w=de(w),k=de(k),E=de(E)):(T=f,E=h,w=k=0),(b&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(b=en(_,"x",l,"px"),C=en(_,"y",a,"px")),(g||m||p||x)&&(b=de(b+g-(g*T+m*k)+p),C=de(C+m-(g*w+m*E)+x)),(i||s)&&(N=_.getBBox(),b=de(b+i/100*N.width),C=de(C+s/100*N.height)),N="matrix("+T+","+w+","+k+","+E+","+b+","+C+")",_.setAttribute("transform",N),y&&(_.style[re]=N)},lE=function(e,n,r,i,s){var l=360,a=pe(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?Bn:1),u=c-i,d=i+u+"deg",f,h;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*b_)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*b_)%l-~~(u/l)*l)),e._pt=h=new Me(e._pt,n,r,i,u,zC),h.e=d,h.u="deg",e._props.push(r),h},P_=function(e,n){for(var r in n)e[r]=n[r];return e},aE=function(e,n,r){var i=P_({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,h,_,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[re]=n,a=ui(r,1),Fn(r,re),r.setAttribute("transform",u)):(u=getComputedStyle(r)[re],l[re]=n,a=ui(r,1),l[re]=u);for(c in Ot)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(_=Ee(u),g=Ee(d),f=_!==g?en(r,c,u,g):parseFloat(u),h=parseFloat(d),e._pt=new Me(e._pt,a,c,f,h-f,oa),e._pt.u=g||0,e._props.push(c));P_(a,i)};Pe("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});Po[e>1?"border"+t:t]=function(a,c,u,d,f){var h,_;if(arguments.length<4)return h=l.map(function(g){return $t(a,g,u)}),_=h.join(" "),_.split(h[0]).length===5?h[0]:_;h=(d+"").split(" "),_={},l.forEach(function(g,m){return _[g]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(c,_,f)}});var M_={name:"css",register:la,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,h,_,g,m,p,x,y,b,C,T,w,k,E;na||la(),this.styles=this.styles||S_(e),E=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(d=n[m],!(je[m]&&a_(m,n,r,i,e,s)))){if(_=typeof d,g=Po[m],_==="function"&&(d=d.call(r,i,e,s),_=typeof d),_==="string"&&~d.indexOf("random(")&&(d=ri(d)),g)g(this,e,m,d,r)&&(k=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),d+="",Kt.lastIndex=0,Kt.test(u)||(p=Ee(u),x=Ee(d)),x?p!==x&&(u=en(e,m,u,x)+x):p&&(d+=p),this.add(a,"setProperty",u,d,i,s,0,0,m),l.push(m),E.push(m,0,a[m]);else if(_!=="undefined"){if(c&&m in c?(u=typeof c[m]=="function"?c[m].call(r,i,e,s):c[m],pe(u)&&~u.indexOf("random(")&&(u=ri(u)),Ee(u+"")||u==="auto"||(u+=Re.units[m]||Ee($t(e,m))||""),(u+"").charAt(1)==="="&&(u=$t(e,m))):u=$t(e,m),h=parseFloat(u),y=_==="string"&&d.charAt(1)==="="&&d.substr(0,2),y&&(d=d.substr(2)),f=parseFloat(d),m in bt&&(m==="autoAlpha"&&(h===1&&$t(e,"visibility")==="hidden"&&f&&(h=0),E.push("visibility",0,a.visibility),Jt(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=bt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Ot,b){if(this.styles.save(m),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||ui(e,n.parseTransform),w=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Me(this._pt,a,re,0,1,T.renderTransform,T,0,-1),C.dep=1),m==="scale")this._pt=new Me(this._pt,T,"scaleY",T.scaleY,(y?_r(T.scaleY,y+f):f)-T.scaleY||0,oa),this._pt.u=0,l.push("scaleY",m),m+="X";else if(m==="transformOrigin"){E.push(Le,0,a[Le]),d=rE(d),T.svg?ua(e,d,0,w,0,this):(x=parseFloat(d.split(" ")[2])||0,x!==T.zOrigin&&Jt(this,T,"zOrigin",T.zOrigin,x),Jt(this,a,m,Mo(u),Mo(d)));continue}else if(m==="svgOrigin"){ua(e,d,1,w,0,this);continue}else if(m in O_){lE(this,T,m,h,y?_r(h,y+d):d);continue}else if(m==="smoothOrigin"){Jt(this,T,"smooth",T.smooth,d);continue}else if(m==="force3D"){T[m]=d;continue}else if(m==="transform"){aE(this,d,e);continue}}else m in a||(m=xr(m)||m);if(b||(f||f===0)&&(h||h===0)&&!jC.test(d)&&m in a)p=(u+"").substr((h+"").length),f||(f=0),x=Ee(d)||(m in Re.units?Re.units[m]:p),p!==x&&(h=en(e,m,u,x)),this._pt=new Me(this._pt,b?T:a,m,h,(y?_r(h,y+f):f)-h,!b&&(x==="px"||m==="zIndex")&&n.autoRound!==!1?HC:oa),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=GC);else if(m in a)nE.call(this,e,m,u,y?y+d:d);else if(m in e)this.add(e,m,u||e[m],y?y+d:d,i,s);else if(m!=="parseTransform"){Al(m,d);continue}b||(m in a?E.push(m,0,a[m]):E.push(m,1,u||e[m])),l.push(m)}}k&&__(this)},render:function(e,n){if(n.tween._time||!ra())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:$t,aliases:bt,getSetter:function(e,n,r){var i=bt[n];return i&&i.indexOf(",")<0&&(n=i),n in Ot&&n!==Le&&(e._gsap.x||$t(e,"x"))?r&&y_===r?n==="scale"?KC:YC:(y_=r||{})&&(n==="scale"?QC:XC):e.style&&!Nl(e.style[n])?WC:~n.indexOf("-")?ZC:Ql(e,n)},core:{_removeProperty:Fn,_getMatrix:ca}};ve.utils.checkPrefix=xr,ve.core.getStyleSaver=S_,function(t,e,n,r){var i=Pe(t+","+e+","+n,function(s){Ot[s]=1});Pe(e,function(s){Re.units[s]="deg",O_[s]=1}),bt[i[13]]=t+","+e,Pe(r,function(s){var l=s.split(":");bt[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"),Pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Re.units[t]="px"}),ve.registerPlugin(M_);var fa=ve.registerPlugin(M_)||ve;fa.core.Tween;const cE={__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}fa.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}fa.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:s,onLeave:l},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}},ha=o.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>Array.isArray(r.target)?r.target.length>0:!!r.target),s=o.computed(()=>r.actions.filter(c=>Array.isArray(r.target)?c.batchEnabled?c.batchEnabled(r.target):!0:c.enabled?c.enabled(r.target):!0)),l=o.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(r.target),l.value=!1,n("success",c)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(wh),{class:"px-2 flex dx-action-button",items:s.value,disabled:!i.value,tooltip:i.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),uE={key:0,class:"flex-grow overflow-hidden"},v_=o.defineComponent({__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(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":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(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(l.value),class:o.normalizeClass(["dx-column",r.value.columnClass])},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[r.value.hideContent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",uE,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass([r.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{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,"dx-column-text"])},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{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(U_),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)])),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["flex flex-shrink-0",{"ml-2":!r.value.hideContent}])},[o.createVNode(o.unref(ha),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])],2)):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class _a{constructor(e={}){W(this,"options",{direction:"vertical",hideDragImage:!1});W(this,"startY",0);W(this,"startX",0);W(this,"startSize",0);W(this,"cursorY",0);W(this,"cursorX",0);W(this,"onStartCb",null);W(this,"onEndCb",null);W(this,"onDropCb",null);W(this,"onDraggingCb",null);W(this,"dropZoneResolver",null);W(this,"currentDropZone",null);W(this,"draggableData",null);W(this,"abortController",null);e={direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",this.draggableData=n,this.abortController=new AbortController;const r={signal:this.abortController.signal};document.addEventListener("dragenter",i=>this.dragEnter(i),r),document.addEventListener("dragover",i=>this.dragOver(i),r),document.addEventListener("drop",i=>this.drop(i),r),this.onStartCb&&this.onStartCb(e),this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){this.currentDropZone=null,this.abortController.abort(),this.draggableData=null,this.onEndCb&&this.onEndCb(e)}dragEnter(e){e.preventDefault()}dragOver(e){e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e)}drop(e){e.dataTransfer.dropEffect="move",e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData)}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let r=e.target;for(;r;){if(((n=r.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return r;r=r.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth}getPercentChange(){return this.getDistance()/this.startSize*100}}const L_={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,r=t,i=new _a().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(nn(()=>{n("resize",{distance:i.getDistance(),percent:i.getPercentChange(),startDropZoneSize:i.startSize,dropZoneSize:i.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),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.renderSlot(s.$slots,"default")],34))}};class q_ extends _a{constructor(n={}){super({showPlaceholder:!0,...n});W(this,"listPosition",0);W(this,"cursorPosition",0);W(this,"initialPosition",0);W(this,"onPositionChangeCb",null);W(this,"onDragPositionChangeCb",null);W(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 dE={class:"flex items-center"},fE={key:0},hE={class:"flex-grow"},V_={__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 q_().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",dE,[t.showHandle?(o.openBlock(),o.createElementBlock("div",fE,[o.createVNode(o.unref(mh),{svg:o.unref(nh),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",hE,[o.renderSlot(s.$slots,"default")])])],32))}},R_=mt(o.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),s=o.computed(()=>i.value.resizeable),l=o.computed(()=>{var f;const d=((f=r.settings)==null?void 0:f.width)||i.value.width;return{width:d?`${d}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}}),a=o.useCssModule("cls"),c=o.computed(()=>{const d={[a["handle-drop-zone"]]:s.value,"dx-column-shrink":i.value.shrink},f=i.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(o.openBlock(),o.createBlock(o.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":s.value&&"resize-column-"+i.value.name,class:o.normalizeClass(c.value),style:o.normalizeStyle(l.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),s.value?(o.openBlock(),o.createBlock(o.unref(L_),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:o.withCtx(()=>[o.createVNode(o.unref(rh),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):o.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{"!visible":"_!visible_x1jdl_1",visible:"_visible_x1jdl_1",collapse:"_collapse_x1jdl_1",static:"_static_x1jdl_1",absolute:"_absolute_x1jdl_1",relative:"_relative_x1jdl_1",sticky:"_sticky_x1jdl_1","left-0":"_left-0_x1jdl_1","right-0":"_right-0_x1jdl_1","right-1":"_right-1_x1jdl_1","top-0":"_top-0_x1jdl_1","top-1":"_top-1_x1jdl_1","m-2":"_m-2_x1jdl_1","m-4":"_m-4_x1jdl_1","m-auto":"_m-auto_x1jdl_1","mx-1":"_mx-1_x1jdl_1","mx-4":"_mx-4_x1jdl_1","mx-auto":"_mx-auto_x1jdl_1","my-2":"_my-2_x1jdl_1","!mr-1":"_!mr-1_x1jdl_1","mb-2":"_mb-2_x1jdl_1","mb-4":"_mb-4_x1jdl_1","ml-1":"_ml-1_x1jdl_1","ml-2":"_ml-2_x1jdl_1","ml-2.5":"_ml-2.5_x1jdl_1","ml-3":"_ml-3_x1jdl_1","ml-4":"_ml-4_x1jdl_1","ml-5":"_ml-5_x1jdl_1","ml-[-.2em]":"_ml-[-.2em]_x1jdl_1","mr-1":"_mr-1_x1jdl_1","mr-2":"_mr-2_x1jdl_1","mr-3":"_mr-3_x1jdl_1","mr-4":"_mr-4_x1jdl_1","mt-1":"_mt-1_x1jdl_1","mt-2":"_mt-2_x1jdl_1","mt-3":"_mt-3_x1jdl_1","mt-4":"_mt-4_x1jdl_1",block:"_block_x1jdl_1","inline-block":"_inline-block_x1jdl_1",inline:"_inline_x1jdl_1",flex:"_flex_x1jdl_1",table:"_table_x1jdl_1",hidden:"_hidden_x1jdl_1","h-10":"_h-10_x1jdl_1","h-16":"_h-16_x1jdl_1","h-32":"_h-32_x1jdl_1","h-4":"_h-4_x1jdl_1","h-5":"_h-5_x1jdl_1","h-8":"_h-8_x1jdl_1","h-[2.25rem]":"_h-[2.25rem]_x1jdl_1","h-full":"_h-full_x1jdl_1","max-h-full":"_max-h-full_x1jdl_1","w-10":"_w-10_x1jdl_1","w-16":"_w-16_x1jdl_1","w-2/5":"_w-2/5_x1jdl_1","w-24":"_w-24_x1jdl_1","w-3":"_w-3_x1jdl_1","w-3/5":"_w-3/5_x1jdl_1","w-32":"_w-32_x1jdl_1","w-4":"_w-4_x1jdl_1","w-48":"_w-48_x1jdl_1","w-5":"_w-5_x1jdl_1","w-6":"_w-6_x1jdl_1","w-7":"_w-7_x1jdl_1","w-72":"_w-72_x1jdl_1","w-8":"_w-8_x1jdl_1","w-96":"_w-96_x1jdl_1","w-[13.5rem]":"_w-[13.5rem]_x1jdl_1","w-[6.5rem]":"_w-[6.5rem]_x1jdl_1","w-[80rem]":"_w-[80rem]_x1jdl_1","w-full":"_w-full_x1jdl_1","!min-w-0":"_!min-w-0_x1jdl_1","max-w-full":"_max-w-full_x1jdl_1","flex-shrink":"_flex-shrink_x1jdl_1","flex-shrink-0":"_flex-shrink-0_x1jdl_1",shrink:"_shrink_x1jdl_1","flex-grow":"_flex-grow_x1jdl_1",grow:"_grow_x1jdl_1","rotate-180":"_rotate-180_x1jdl_1",transform:"_transform_x1jdl_1","cursor-ew-resize":"_cursor-ew-resize_x1jdl_1","cursor-move":"_cursor-move_x1jdl_1","cursor-not-allowed":"_cursor-not-allowed_x1jdl_1","cursor-ns-resize":"_cursor-ns-resize_x1jdl_1","cursor-pointer":"_cursor-pointer_x1jdl_1",resize:"_resize_x1jdl_121","flex-col":"_flex-col_x1jdl_1","flex-nowrap":"_flex-nowrap_x1jdl_1","items-center":"_items-center_x1jdl_1","items-stretch":"_items-stretch_x1jdl_1","justify-start":"_justify-start_x1jdl_1","justify-end":"_justify-end_x1jdl_1","justify-center":"_justify-center_x1jdl_1","justify-between":"_justify-between_x1jdl_1","gap-y-0":"_gap-y-0_x1jdl_1","gap-y-1":"_gap-y-1_x1jdl_1","space-x-1":"_space-x-1_x1jdl_1","space-x-2":"_space-x-2_x1jdl_1","self-center":"_self-center_x1jdl_1","overflow-auto":"_overflow-auto_x1jdl_1","overflow-hidden":"_overflow-hidden_x1jdl_1","overflow-y-auto":"_overflow-y-auto_x1jdl_73","overflow-x-hidden":"_overflow-x-hidden_x1jdl_1","scroll-smooth":"_scroll-smooth_x1jdl_1","overflow-ellipsis":"_overflow-ellipsis_x1jdl_1","whitespace-normal":"_whitespace-normal_x1jdl_1","whitespace-nowrap":"_whitespace-nowrap_x1jdl_1",rounded:"_rounded_x1jdl_1","rounded-2xl":"_rounded-2xl_x1jdl_1","rounded-lg":"_rounded-lg_x1jdl_1","rounded-md":"_rounded-md_x1jdl_1","!rounded-l-none":"_!rounded-l-none_x1jdl_1","!rounded-r-none":"_!rounded-r-none_x1jdl_1","rounded-b-lg":"_rounded-b-lg_x1jdl_1","rounded-t-lg":"_rounded-t-lg_x1jdl_1","rounded-t-md":"_rounded-t-md_x1jdl_1","!border-0":"_!border-0_x1jdl_1",border:"_border_x1jdl_1","border-b":"_border-b_x1jdl_1","border-l":"_border-l_x1jdl_1","border-l-0":"_border-l-0_x1jdl_1","border-r":"_border-r_x1jdl_1","border-solid":"_border-solid_x1jdl_1","border-dashed":"_border-dashed_x1jdl_1","border-none":"_border-none_x1jdl_1","border-blue-600":"_border-blue-600_x1jdl_1","border-blue-700":"_border-blue-700_x1jdl_1","border-gray-200":"_border-gray-200_x1jdl_1","border-gray-300":"_border-gray-300_x1jdl_1","border-slate-200":"_border-slate-200_x1jdl_1","bg-black":"_bg-black_x1jdl_1","bg-blue-200":"_bg-blue-200_x1jdl_1","bg-blue-600":"_bg-blue-600_x1jdl_1","bg-emerald-200":"_bg-emerald-200_x1jdl_1","bg-gray-100":"_bg-gray-100_x1jdl_1","bg-gray-200":"_bg-gray-200_x1jdl_1","bg-gray-400":"_bg-gray-400_x1jdl_1","bg-gray-500":"_bg-gray-500_x1jdl_1","bg-green-200":"_bg-green-200_x1jdl_1","bg-green-300":"_bg-green-300_x1jdl_1","bg-red-200":"_bg-red-200_x1jdl_1","bg-red-300":"_bg-red-300_x1jdl_1","bg-red-900":"_bg-red-900_x1jdl_1","bg-slate-100":"_bg-slate-100_x1jdl_1","bg-slate-500":"_bg-slate-500_x1jdl_1","bg-slate-800":"_bg-slate-800_x1jdl_1","bg-slate-900":"_bg-slate-900_x1jdl_1","bg-transparent":"_bg-transparent_x1jdl_1","bg-white":"_bg-white_x1jdl_1","bg-yellow-300":"_bg-yellow-300_x1jdl_1","!p-2":"_!p-2_x1jdl_1","p-0":"_p-0_x1jdl_1","p-1":"_p-1_x1jdl_1","p-2":"_p-2_x1jdl_1","p-3":"_p-3_x1jdl_1","p-4":"_p-4_x1jdl_1","!py-0":"_!py-0_x1jdl_1","px-1":"_px-1_x1jdl_1","px-12":"_px-12_x1jdl_1","px-2":"_px-2_x1jdl_1","px-2.5":"_px-2.5_x1jdl_1","px-4":"_px-4_x1jdl_1","px-6":"_px-6_x1jdl_1","px-8":"_px-8_x1jdl_1","py-1":"_py-1_x1jdl_1","py-14":"_py-14_x1jdl_1","py-2":"_py-2_x1jdl_1","py-3":"_py-3_x1jdl_1","py-4":"_py-4_x1jdl_1","py-5":"_py-5_x1jdl_1","py-8":"_py-8_x1jdl_1","pl-1":"_pl-1_x1jdl_1","pt-3":"_pt-3_x1jdl_1","text-left":"_text-left_x1jdl_1","text-center":"_text-center_x1jdl_1","text-[.7rem]":"_text-[.7rem]_x1jdl_1","text-[1rem]":"_text-[1rem]_x1jdl_1","text-base":"_text-base_x1jdl_1","text-sm":"_text-sm_x1jdl_1","text-xs":"_text-xs_x1jdl_1","font-bold":"_font-bold_x1jdl_1","font-medium":"_font-medium_x1jdl_1","font-semibold":"_font-semibold_x1jdl_1",uppercase:"_uppercase_x1jdl_1","leading-[1.2rem]":"_leading-[1.2rem]_x1jdl_1","!text-green-900":"_!text-green-900_x1jdl_1","!text-red-900":"_!text-red-900_x1jdl_1","!text-white":"_!text-white_x1jdl_1","!text-yellow-900":"_!text-yellow-900_x1jdl_1","text-blue-600":"_text-blue-600_x1jdl_1","text-blue-900":"_text-blue-900_x1jdl_1","text-gray-300":"_text-gray-300_x1jdl_1","text-gray-400":"_text-gray-400_x1jdl_1","text-gray-500":"_text-gray-500_x1jdl_1","text-gray-600":"_text-gray-600_x1jdl_1","text-gray-700":"_text-gray-700_x1jdl_1","text-green-700":"_text-green-700_x1jdl_1","text-red-400":"_text-red-400_x1jdl_1","text-red-800":"_text-red-800_x1jdl_1","text-red-900":"_text-red-900_x1jdl_1","text-slate-200":"_text-slate-200_x1jdl_1","text-slate-300":"_text-slate-300_x1jdl_1","text-slate-50":"_text-slate-50_x1jdl_1","text-slate-500":"_text-slate-500_x1jdl_1","text-white":"_text-white_x1jdl_1","text-yellow-600":"_text-yellow-600_x1jdl_1","text-zinc-500":"_text-zinc-500_x1jdl_1","text-zinc-800":"_text-zinc-800_x1jdl_1","line-through":"_line-through_x1jdl_1","opacity-0":"_opacity-0_x1jdl_1","opacity-20":"_opacity-20_x1jdl_1","opacity-50":"_opacity-50_x1jdl_1","opacity-70":"_opacity-70_x1jdl_1","opacity-80":"_opacity-80_x1jdl_1","shadow-none":"_shadow-none_x1jdl_1","outline-none":"_outline-none_x1jdl_1",outline:"_outline_x1jdl_1",filter:"_filter_x1jdl_1",transition:"_transition_x1jdl_1","transition-all":"_transition-all_x1jdl_1","duration-300":"_duration-300_x1jdl_1","danx-app":"_danx-app_x1jdl_4","q-tab":"_q-tab_x1jdl_4","q-table__card":"_q-table__card_x1jdl_7","q-checkbox__inner":"_q-checkbox__inner_x1jdl_11","q-toolbar":"_q-toolbar_x1jdl_14","q-notification__actions":"_q-notification__actions_x1jdl_19","q-date":"_q-date_x1jdl_22","q-date__view":"_q-date__view_x1jdl_25","q-field":"_q-field_x1jdl_28","q-field--auto-height":"_q-field--auto-height_x1jdl_28","q-field__control":"_q-field__control_x1jdl_28","q-field__native":"_q-field__native_x1jdl_31","q-field--labeled":"_q-field--labeled_x1jdl_35","q-field__control-container":"_q-field__control-container_x1jdl_35","q-textarea":"_q-textarea_x1jdl_38","q-field__marginal":"_q-field__marginal_x1jdl_41","q-field__input":"_q-field__input_x1jdl_41","q-field__label":"_q-field__label_x1jdl_41","q-btn":"_q-btn_x1jdl_48","q-item":"_q-item_x1jdl_56","q-tab-panels":"_q-tab-panels_x1jdl_60","q-panel":"_q-panel_x1jdl_64",scroll:"_scroll_x1jdl_67","q-tab-panel":"_q-tab-panel_x1jdl_60","dx-dialog":"_dx-dialog_x1jdl_77","q-card__section--vert":"_q-card__section--vert_x1jdl_77","q-banner":"_q-banner_x1jdl_81",app:"_app_x1jdl_1","main-layout":"_main-layout_x1jdl_1","is-disabled":"_is-disabled_x1jdl_98","disable-all-transitions":"_disable-all-transitions_x1jdl_103","v-enter-active":"_v-enter-active_x1jdl_107","v-leave-active":"_v-leave-active_x1jdl_108","v-enter-from":"_v-enter-from_x1jdl_112","v-leave-to":"_v-leave-to_x1jdl_113","dx-action-table":"_dx-action-table_x1jdl_117","dx-column-shrink":"_dx-column-shrink_x1jdl_117","handle-drop-zone":"_handle-drop-zone_x1jdl_121","resize-handle":"_resize-handle_x1jdl_121","hover:bg-blue-200":"_hover:bg-blue-200_x1jdl_1","hover:bg-gray-200":"_hover:bg-gray-200_x1jdl_1","hover:bg-green-100":"_hover:bg-green-100_x1jdl_1","hover:bg-red-100":"_hover:bg-red-100_x1jdl_1","hover:bg-red-200":"_hover:bg-red-200_x1jdl_1","hover:bg-slate-200":"_hover:bg-slate-200_x1jdl_1","hover:bg-slate-300":"_hover:bg-slate-300_x1jdl_1","hover:bg-slate-600":"_hover:bg-slate-600_x1jdl_1","hover:text-blue-500":"_hover:text-blue-500_x1jdl_1","hover:text-blue-600":"_hover:text-blue-600_x1jdl_1","hover:opacity-100":"_hover:opacity-100_x1jdl_1","hover:opacity-20":"_hover:opacity-20_x1jdl_1","focus:bg-blue-200":"_focus:bg-blue-200_x1jdl_1"}}]]),_E={key:0,class:"text-zinc-800 cursor-not-allowed"},mE={class:"font-semibold text-sm ml-5 py-3 flex-grow"},pE={key:1,class:"flex items-center"},ma={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTooltip");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(o.openBlock(),o.createElementBlock("a",_E,[o.createVNode(o.unref(Vx),{class:"w-4"})])):o.createCommentVNode("",!0),o.createElementVNode("div",mE,o.toDisplayString(t.column.label),1),t.locked?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",pE,[o.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=i=>e.$emit("visible",!t.visible))},[t.visible?(o.openBlock(),o.createBlock(o.unref(Lx),{key:0,class:"w-4"})):(o.openBlock(),o.createBlock(o.unref(vx),{key:1,class:"w-4 text-zinc-800"}))]),o.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=i=>e.$emit("is-title",!t.isTitle))},[o.createVNode(o.unref(Wk),{class:o.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),o.createVNode(r,null,{default:o.withCtx(()=>[t.isTitle?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Remove from priority list")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},gE=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),yE={__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=Sr(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){qe.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Sr(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(_h),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[gE,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(ma),{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(kh),{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,h)=>(o.openBlock(),o.createBlock(o.unref(V_),{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":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=_=>u.$emit("update:sortable-columns",_))},{default:o.withCtx(()=>[o.createVNode(o.unref(ma),{column:f,visible:s(f),"is-title":a(f),onVisible:_=>l(f,_),onIsTitle:_=>c(f,_)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},U_={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.columns,i=>(o.openBlock(),o.createElementBlock("div",{key:i.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},o.toDisplayString(e(t.row[i.name],i.format)),1))),128))]))}},bE={"!visible":"_!visible_anhw9_1",visible:"_visible_anhw9_1",collapse:"_collapse_anhw9_1",static:"_static_anhw9_1",absolute:"_absolute_anhw9_1",relative:"_relative_anhw9_1",sticky:"_sticky_anhw9_1","left-0":"_left-0_anhw9_1","right-0":"_right-0_anhw9_1","right-1":"_right-1_anhw9_1","top-0":"_top-0_anhw9_1","top-1":"_top-1_anhw9_1","m-2":"_m-2_anhw9_1","m-4":"_m-4_anhw9_1","m-auto":"_m-auto_anhw9_1","mx-1":"_mx-1_anhw9_1","mx-4":"_mx-4_anhw9_1","mx-auto":"_mx-auto_anhw9_1","my-2":"_my-2_anhw9_1","!mr-1":"_!mr-1_anhw9_1","mb-2":"_mb-2_anhw9_1","mb-4":"_mb-4_anhw9_1","ml-1":"_ml-1_anhw9_1","ml-2":"_ml-2_anhw9_1","ml-2.5":"_ml-2.5_anhw9_1","ml-3":"_ml-3_anhw9_1","ml-4":"_ml-4_anhw9_1","ml-5":"_ml-5_anhw9_1","ml-[-.2em]":"_ml-[-.2em]_anhw9_1","mr-1":"_mr-1_anhw9_1","mr-2":"_mr-2_anhw9_1","mr-3":"_mr-3_anhw9_1","mr-4":"_mr-4_anhw9_1","mt-1":"_mt-1_anhw9_1","mt-2":"_mt-2_anhw9_1","mt-3":"_mt-3_anhw9_1","mt-4":"_mt-4_anhw9_1",block:"_block_anhw9_1","inline-block":"_inline-block_anhw9_1",inline:"_inline_anhw9_1",flex:"_flex_anhw9_1",table:"_table_anhw9_1",hidden:"_hidden_anhw9_1","h-10":"_h-10_anhw9_1","h-16":"_h-16_anhw9_1","h-32":"_h-32_anhw9_1","h-4":"_h-4_anhw9_1","h-5":"_h-5_anhw9_1","h-8":"_h-8_anhw9_1","h-[2.25rem]":"_h-[2.25rem]_anhw9_1","h-full":"_h-full_anhw9_1","max-h-full":"_max-h-full_anhw9_1","w-10":"_w-10_anhw9_1","w-16":"_w-16_anhw9_1","w-2/5":"_w-2/5_anhw9_1","w-24":"_w-24_anhw9_1","w-3":"_w-3_anhw9_1","w-3/5":"_w-3/5_anhw9_1","w-32":"_w-32_anhw9_1","w-4":"_w-4_anhw9_1","w-48":"_w-48_anhw9_1","w-5":"_w-5_anhw9_1","w-6":"_w-6_anhw9_1","w-7":"_w-7_anhw9_1","w-72":"_w-72_anhw9_1","w-8":"_w-8_anhw9_1","w-96":"_w-96_anhw9_1","w-[13.5rem]":"_w-[13.5rem]_anhw9_1","w-[6.5rem]":"_w-[6.5rem]_anhw9_1","w-[80rem]":"_w-[80rem]_anhw9_1","w-full":"_w-full_anhw9_1","!min-w-0":"_!min-w-0_anhw9_1","max-w-full":"_max-w-full_anhw9_1","flex-shrink":"_flex-shrink_anhw9_1","flex-shrink-0":"_flex-shrink-0_anhw9_1",shrink:"_shrink_anhw9_1","flex-grow":"_flex-grow_anhw9_1",grow:"_grow_anhw9_1","rotate-180":"_rotate-180_anhw9_1",transform:"_transform_anhw9_1","cursor-ew-resize":"_cursor-ew-resize_anhw9_1","cursor-move":"_cursor-move_anhw9_1","cursor-not-allowed":"_cursor-not-allowed_anhw9_1","cursor-ns-resize":"_cursor-ns-resize_anhw9_1","cursor-pointer":"_cursor-pointer_anhw9_1",resize:"_resize_anhw9_1","flex-col":"_flex-col_anhw9_1","flex-nowrap":"_flex-nowrap_anhw9_1","items-center":"_items-center_anhw9_1","items-stretch":"_items-stretch_anhw9_1","justify-start":"_justify-start_anhw9_1","justify-end":"_justify-end_anhw9_1","justify-center":"_justify-center_anhw9_1","justify-between":"_justify-between_anhw9_1","gap-y-0":"_gap-y-0_anhw9_1","gap-y-1":"_gap-y-1_anhw9_1","space-x-1":"_space-x-1_anhw9_1","space-x-2":"_space-x-2_anhw9_1","self-center":"_self-center_anhw9_1","overflow-auto":"_overflow-auto_anhw9_1","overflow-hidden":"_overflow-hidden_anhw9_1","overflow-y-auto":"_overflow-y-auto_anhw9_73","overflow-x-hidden":"_overflow-x-hidden_anhw9_1","scroll-smooth":"_scroll-smooth_anhw9_1","overflow-ellipsis":"_overflow-ellipsis_anhw9_1","whitespace-normal":"_whitespace-normal_anhw9_1","whitespace-nowrap":"_whitespace-nowrap_anhw9_1",rounded:"_rounded_anhw9_1","rounded-2xl":"_rounded-2xl_anhw9_1","rounded-lg":"_rounded-lg_anhw9_1","rounded-md":"_rounded-md_anhw9_1","!rounded-l-none":"_!rounded-l-none_anhw9_1","!rounded-r-none":"_!rounded-r-none_anhw9_1","rounded-b-lg":"_rounded-b-lg_anhw9_1","rounded-t-lg":"_rounded-t-lg_anhw9_1","rounded-t-md":"_rounded-t-md_anhw9_1","!border-0":"_!border-0_anhw9_1",border:"_border_anhw9_1","border-b":"_border-b_anhw9_1","border-l":"_border-l_anhw9_1","border-l-0":"_border-l-0_anhw9_1","border-r":"_border-r_anhw9_1","border-solid":"_border-solid_anhw9_1","border-dashed":"_border-dashed_anhw9_1","border-none":"_border-none_anhw9_1","border-blue-600":"_border-blue-600_anhw9_1","border-blue-700":"_border-blue-700_anhw9_1","border-gray-200":"_border-gray-200_anhw9_1","border-gray-300":"_border-gray-300_anhw9_1","border-slate-200":"_border-slate-200_anhw9_1","bg-black":"_bg-black_anhw9_1","bg-blue-200":"_bg-blue-200_anhw9_1","bg-blue-600":"_bg-blue-600_anhw9_1","bg-emerald-200":"_bg-emerald-200_anhw9_1","bg-gray-100":"_bg-gray-100_anhw9_1","bg-gray-200":"_bg-gray-200_anhw9_1","bg-gray-400":"_bg-gray-400_anhw9_1","bg-gray-500":"_bg-gray-500_anhw9_1","bg-green-200":"_bg-green-200_anhw9_1","bg-green-300":"_bg-green-300_anhw9_1","bg-red-200":"_bg-red-200_anhw9_1","bg-red-300":"_bg-red-300_anhw9_1","bg-red-900":"_bg-red-900_anhw9_1","bg-slate-100":"_bg-slate-100_anhw9_1","bg-slate-500":"_bg-slate-500_anhw9_1","bg-slate-800":"_bg-slate-800_anhw9_1","bg-slate-900":"_bg-slate-900_anhw9_1","bg-transparent":"_bg-transparent_anhw9_1","bg-white":"_bg-white_anhw9_1","bg-yellow-300":"_bg-yellow-300_anhw9_1","!p-2":"_!p-2_anhw9_1","p-0":"_p-0_anhw9_1","p-1":"_p-1_anhw9_1","p-2":"_p-2_anhw9_1","p-3":"_p-3_anhw9_1","p-4":"_p-4_anhw9_1","!py-0":"_!py-0_anhw9_1","px-1":"_px-1_anhw9_1","px-12":"_px-12_anhw9_1","px-2":"_px-2_anhw9_1","px-2.5":"_px-2.5_anhw9_1","px-4":"_px-4_anhw9_1","px-6":"_px-6_anhw9_1","px-8":"_px-8_anhw9_1","py-1":"_py-1_anhw9_1","py-14":"_py-14_anhw9_1","py-2":"_py-2_anhw9_1","py-3":"_py-3_anhw9_1","py-4":"_py-4_anhw9_1","py-5":"_py-5_anhw9_1","py-8":"_py-8_anhw9_1","pl-1":"_pl-1_anhw9_1","pt-3":"_pt-3_anhw9_1","text-left":"_text-left_anhw9_1","text-center":"_text-center_anhw9_1","text-[.7rem]":"_text-[.7rem]_anhw9_1","text-[1rem]":"_text-[1rem]_anhw9_1","text-base":"_text-base_anhw9_1","text-sm":"_text-sm_anhw9_1","text-xs":"_text-xs_anhw9_1","font-bold":"_font-bold_anhw9_1","font-medium":"_font-medium_anhw9_1","font-semibold":"_font-semibold_anhw9_1",uppercase:"_uppercase_anhw9_1","leading-[1.2rem]":"_leading-[1.2rem]_anhw9_1","!text-green-900":"_!text-green-900_anhw9_1","!text-red-900":"_!text-red-900_anhw9_1","!text-white":"_!text-white_anhw9_1","!text-yellow-900":"_!text-yellow-900_anhw9_1","text-blue-600":"_text-blue-600_anhw9_1","text-blue-900":"_text-blue-900_anhw9_1","text-gray-300":"_text-gray-300_anhw9_1","text-gray-400":"_text-gray-400_anhw9_1","text-gray-500":"_text-gray-500_anhw9_1","text-gray-600":"_text-gray-600_anhw9_1","text-gray-700":"_text-gray-700_anhw9_1","text-green-700":"_text-green-700_anhw9_1","text-red-400":"_text-red-400_anhw9_1","text-red-800":"_text-red-800_anhw9_1","text-red-900":"_text-red-900_anhw9_1","text-slate-200":"_text-slate-200_anhw9_1","text-slate-300":"_text-slate-300_anhw9_1","text-slate-50":"_text-slate-50_anhw9_1","text-slate-500":"_text-slate-500_anhw9_1","text-white":"_text-white_anhw9_1","text-yellow-600":"_text-yellow-600_anhw9_1","text-zinc-500":"_text-zinc-500_anhw9_1","text-zinc-800":"_text-zinc-800_anhw9_1","line-through":"_line-through_anhw9_1","opacity-0":"_opacity-0_anhw9_1","opacity-20":"_opacity-20_anhw9_1","opacity-50":"_opacity-50_anhw9_1","opacity-70":"_opacity-70_anhw9_1","opacity-80":"_opacity-80_anhw9_1","shadow-none":"_shadow-none_anhw9_1","outline-none":"_outline-none_anhw9_1",outline:"_outline_anhw9_1",filter:"_filter_anhw9_1",transition:"_transition_anhw9_1","transition-all":"_transition-all_anhw9_1","duration-300":"_duration-300_anhw9_1","danx-app":"_danx-app_anhw9_4","q-tab":"_q-tab_anhw9_4","q-table__card":"_q-table__card_anhw9_7","q-checkbox__inner":"_q-checkbox__inner_anhw9_11","q-toolbar":"_q-toolbar_anhw9_14","q-notification__actions":"_q-notification__actions_anhw9_19","q-date":"_q-date_anhw9_22","q-date__view":"_q-date__view_anhw9_25","q-field":"_q-field_anhw9_28","q-field--auto-height":"_q-field--auto-height_anhw9_28","q-field__control":"_q-field__control_anhw9_28","q-field__native":"_q-field__native_anhw9_31","q-field--labeled":"_q-field--labeled_anhw9_35","q-field__control-container":"_q-field__control-container_anhw9_35","q-textarea":"_q-textarea_anhw9_38","q-field__marginal":"_q-field__marginal_anhw9_41","q-field__input":"_q-field__input_anhw9_41","q-field__label":"_q-field__label_anhw9_41","q-btn":"_q-btn_anhw9_48","q-item":"_q-item_anhw9_56","q-tab-panels":"_q-tab-panels_anhw9_60","q-panel":"_q-panel_anhw9_64",scroll:"_scroll_anhw9_67","q-tab-panel":"_q-tab-panel_anhw9_60","dx-dialog":"_dx-dialog_anhw9_77","q-card__section--vert":"_q-card__section--vert_anhw9_77","q-banner":"_q-banner_anhw9_81",app:"_app_anhw9_1","main-layout":"_main-layout_anhw9_1","is-disabled":"_is-disabled_anhw9_98","disable-all-transitions":"_disable-all-transitions_anhw9_103","v-enter-active":"_v-enter-active_anhw9_107","v-leave-active":"_v-leave-active_anhw9_108","v-enter-from":"_v-enter-from_anhw9_112","v-leave-to":"_v-leave-to_anhw9_113","dx-action-table":"_dx-action-table_anhw9_117","dx-column-shrink":"_dx-column-shrink_anhw9_117","category-toggle":"_category-toggle_anhw9_121","has-visible-columns":"_has-visible-columns_anhw9_124","hover:bg-blue-200":"_hover:bg-blue-200_anhw9_1","hover:bg-gray-200":"_hover:bg-gray-200_anhw9_1","hover:bg-green-100":"_hover:bg-green-100_anhw9_1","hover:bg-red-100":"_hover:bg-red-100_anhw9_1","hover:bg-red-200":"_hover:bg-red-200_anhw9_1","hover:bg-slate-200":"_hover:bg-slate-200_anhw9_1","hover:bg-slate-300":"_hover:bg-slate-300_anhw9_1","hover:bg-slate-600":"_hover:bg-slate-600_anhw9_1","hover:text-blue-500":"_hover:text-blue-500_anhw9_1","hover:text-blue-600":"_hover:text-blue-600_anhw9_1","hover:opacity-100":"_hover:opacity-100_anhw9_1","hover:opacity-20":"_hover:opacity-20_anhw9_1","focus:bg-blue-200":"_focus:bg-blue-200_anhw9_1"},wE={class:"flex items-center flex-nowrap"},kE=["onClick"],xE={class:"text-xs"},SE=mt({__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(_=>_.category)).values()]);function l(_){return r.columns.filter(g=>g.category===_)}function a(_){return l(_).filter(g=>!g.required).map(g=>g.name).some(g=>!r.hiddenColumnNames.includes(g))}function c(_){let g=l(_).filter(p=>!p.required);const m=g.filter(p=>!r.hiddenColumnNames.includes(p.name));return m.length===0?!1:m.length===g.length?!0:null}function u(_,g){_=_.filter(p=>!p.required);let m=[...r.hiddenColumnNames];g?m=m.filter(p=>!_.map(x=>x.name).includes(p)):m=[...new Set([...m,..._.map(p=>p.name)])],n("update:hidden-column-names",m)}function d(_,g){if(r.columns.find(p=>p.name===_).required)return;g=g??r.hiddenColumnNames.includes(_);let m=[...r.hiddenColumnNames];g?m=Sr(m,_):(m.push(_),m=[...new Set(m)]),n("update:hidden-column-names",m)}const f=o.useCssModule();function h(_){return f["category-toggle"]+(a(_)?" "+f["has-visible-columns"]:"")}return(_,g)=>{const m=o.resolveComponent("QCheckbox"),p=o.resolveComponent("QList"),x=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",wE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y,class:o.normalizeClass(h(y))},[o.createVNode(m,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:b=>u(l(y),!a(y))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(y),1),o.createVNode(o.unref(th),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===y}])},null,8,["class"]),o.createVNode(x,{"onUpdate:modelValue":b=>i.value=b?y:""},{default:o.withCtx(()=>[o.createVNode(p,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(y),b=>(o.openBlock(),o.createElementBlock("div",{key:b,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(b.name)},[o.createVNode(m,{"model-value":!t.hiddenColumnNames.includes(b.name),class:"mr-3 cb-white-border",size:"20px",color:b.required?"gray-400":"blue-600",disable:b.required,onClick:C=>d(b.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",xE,o.toDisplayString(b.label),1)],8,kE))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:bE}]]),CE={class:"dx-field-label"},EE={class:"dx-field-label-text"},TE={class:"dx-field-label-label"},NE={key:0,class:"dx-field-label-name"},IE={key:0,class:"dx-field-required"},kt=o.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",CE,[o.renderSlot(e.$slots,"default",{},()=>[o.createElementVNode("div",EE,[o.createElementVNode("div",TE,o.toDisplayString(e.label),1),e.name?(o.openBlock(),o.createElementBlock("div",NE," ("+o.toDisplayString(e.name)+") ",1)):o.createCommentVNode("",!0)])]),e.required?(o.openBlock(),o.createElementBlock("span",IE,o.toDisplayString(e.requiredLabel||"*"),1)):o.createCommentVNode("",!0)]))}}),pa={__name:"BooleanField",props:{label:{type:String,default:null},modelValue:{type:[Boolean],default:void 0},field:{type:Object,required:!0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QToggle");return o.openBlock(),o.createBlock(r,{"data-testid":"boolean-field-"+t.field.id,"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[o.createVNode(o.unref(kt),{field:{...t.field,label:t.label||t.field.label},"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["field","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}},BE={for:"first_name",class:"form-label"},FE={class:"mt-1"},ga={__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",BE,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",FE,[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"])])])}}},OE={__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(ga),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"]))}},$E={key:0,class:"font-bold text-xs mb-2"},AE={class:"flex items-center cursor-pointer"},DE={class:"font-bold ml-3 hover:text-blue-600"},ya={__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?_t(eo(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",$E,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",AE,[o.createVNode(o.unref(dh),{class:"w-5 text-blue-600"}),o.createElementVNode("div",DE,[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})])}}},PE={class:"mb-2"},ME={class:"flex items-center cursor-pointer"},vE={class:"font-bold ml-3 hover:text-blue-600"},ba={__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:_t(Us(a.value.from||"0000-00-00")),to:_t(Us(a.value.to||"9999-12-31"))}:{from:_t(eo(a.value.from||"0000-00-00")),to:_t(eo(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)?_t(u.from)===_t(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"),h=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",PE,[o.createVNode(o.unref(kt),{label:t.label},null,8,["label"])]),t.inline?(o.openBlock(),o.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.value=_),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",ME,[o.createVNode(o.unref(dh),{class:"w-5 text-blue-600"}),o.createElementVNode("div",vE,[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(h,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=_=>s.value=_),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},LE={class:"flex items-center justify-center"},qE={key:0,class:"flex-grow"},wa={__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:()=>js(Rs(r.modelValue)),set(s){const l=s?js(nd(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",LE,[t.nullable?(o.openBlock(),o.createElementBlock("div",qE,[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})}}},VE={__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(rr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>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]=h=>i.value=h)},{default:o.withCtx(()=>[o.createVNode(o.unref(wa),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),onCancel:c[1]||(c[1]=h=>i.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},RE={__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=nn(()=>{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-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:l},o.toDisplayString(i.value),33))}},UE={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},jE=[o.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)];function zE(t,e){return o.openBlock(),o.createElementBlock("svg",UE,[...jE])}const GE={render:zE},HE={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},WE=[o.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)];function ZE(t,e){return o.openBlock(),o.createElementBlock("svg",HE,[...WE])}const YE={render:ZE},KE=["contenteditable"],QE={key:0},XE=mt(o.defineComponent({__name:"EditOnClickTextField",props:o.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.ref(null),n=o.useModel(t,"modelValue"),r=t,i=o.ref(!1);function s(){r.readonly||(i.value=!0,o.nextTick(()=>{var l;(l=e.value)==null||l.focus()}))}return(l,a)=>{const c=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[r.class]:!0,"is-readonly":l.readonly,"cursor-pointer":!i.value&&!l.readonly}]),onClick:s,onFocusout:a[2]||(a[2]=u=>i.value=!1)},[o.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!l.readonly&&i.value,class:o.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[l.editingClass]:i.value,[l.inputClass]:!0}]),onInput:a[0]||(a[0]=u=>n.value=u.target.innerText)},o.toDisplayString(n.value),43,KE),l.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QE,[i.value?(o.openBlock(),o.createBlock(c,{key:0,onClick:a[1]||(a[1]=o.withModifiers(u=>i.value=!1,["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(GE),{class:"w-4"})]),_:1})):(o.openBlock(),o.createBlock(c,{key:1,class:"edit-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(YE),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-8347f4ef"]]),JE=["accept","capture"],eT={__name:"FileUploadButton",props:{...J.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload: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).prepare().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(J.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(Ux),{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&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,JE)]),_:3},16))}},tT={class:"inline-block"},nT={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},rT={__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",tT,[o.createElementVNode("div",nT,[o.createTextVNode(o.toDisplayString(o.unref(rr)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(Xf),{class:"w-4 font-bold ml-2 text-gray-400"}),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(wa),{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"])])])}}},j_=o.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["danx-input-chars mt-1",{"danx-input-chars--error":e.length>e.maxLength}])},o.toDisplayString(o.unref(Tt)(e.length))+" / "+o.toDisplayString(o.unref(Tt)(e.maxLength))+" characters ",3)):o.createCommentVNode("",!0)}}),iT={key:1,class:"dx-text-field-readonly-value"},fi=o.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[e.prependLabel?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(kt),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:o.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(o.openBlock(),o.createElementBlock("div",iT,o.toDisplayString(e.modelValue),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,class:o.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=o.withKeys(i=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=i=>e.$emit("update:model-value",i))},o.createSlots({_:2},[e.prependLabel?{name:"prepend",fn:o.withCtx(()=>[o.createVNode(o.unref(kt),{class:o.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"])]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","class","type","model-value","maxlength","debounce"]),o.createVNode(o.unref(j_),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),hi=o.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),Tt(c,d)}const l=nn(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=i.value;return i.value+=" ",o.nextTick(()=>i.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),i.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(fi),o.mergeProps({class:"dx-number-field"},c.$props,{"model-value":i.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),z_={__name:"IntegerField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},showName:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(hi),{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"]))}},oT={class:"text-xs font-bold"},sT=["href"],lT=o.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=o.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=o.computed(()=>{switch(typeof e.value){case"boolean":return id(e.value);case"number":return Tt(e.value);default:return e.value||"-"}});return(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",oT,o.toDisplayString(i.label),1),o.createElementVNode("div",{class:o.normalizeClass(n.value)},[i.url?(o.openBlock(),o.createElementBlock("a",{key:0,target:"_blank",href:i.url,class:o.normalizeClass(n.value)},[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(r.value),1)])],10,sT)):o.renderSlot(i.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(r.value),1)])],2)]))}}),aT={class:"flex items-stretch justify-start"},cT={key:0,class:"dx-add-remove-files w-32 h-32 m-2 rounded-2xl flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer"},uT=o.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),dT={key:1,class:"p-1"},G_=o.defineComponent({__name:"MultiFileField",props:{modelValue:{},field:{},label:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Zf();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-2":!d.readonly}]),onDragover:f[3]||(f[3]=o.withModifiers(()=>{},["prevent"])),onDrop:f[4]||(f[4]=o.withModifiers((...h)=>o.unref(s)&&o.unref(s)(...h),["prevent"]))},[o.createVNode(o.unref(kt),{field:d.field,label:d.label,"show-name":d.showName},null,8,["field","label","show-name"]),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[0]||(f[0]=(...h)=>o.unref(l)&&o.unref(l)(...h))},null,544)):o.createCommentVNode("",!0),o.createElementVNode("div",aT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),h=>(o.openBlock(),o.createBlock(o.unref(Qr),{key:"file-upload-"+h.id,class:"w-32 h-32 m-2 cursor-pointer bg-gray-200",file:h,"related-files":h.transcodes||o.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:_=>o.unref(u)(h)},null,8,["file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("div",cT,[o.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:f[1]||(f[1]=h=>d.$refs.file.click())},[o.createElementVNode("div",null,[o.createVNode(o.unref(xl),{class:"w-10 m-auto"}),uT])]),o.unref(a).length>0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:f[2]||(f[2]=(...h)=>o.unref(c)&&o.unref(c)(...h))},[o.createVNode(o.unref(ko),{class:"mr-2 w-3"}),o.createTextVNode(" Remove All ")])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.readonly&&o.unref(a).length===0?(o.openBlock(),o.createElementBlock("div",dT," -- ")):o.createCommentVNode("",!0)])],34))}}),_i=o.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionLabel:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useInput:{type:Boolean},useChips:{type:Boolean},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},onClear:{},"onUpdate:modelValue":{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},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 w=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(w=[{label:r.placeholder,value:null},...r.options]),w=w.map(k=>{let E=o.isRef(k)?k.value:k;return{label:_(E),value:m(E),selectionLabel:g(E)}}),w}),c=o.computed(()=>s.value&&!r.filterFn?a.value.filter(w=>{var k;return w.label.toLocaleLowerCase().indexOf((k=s.value)==null?void 0:k.toLowerCase())>-1}):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(k=>k===null?"__null__":k)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let w=u.value;return r.multiple||(w=w||w===0?[w]:[]),a.value.filter(k=>{var E;return w.includes(k.value)||w.map(N=>typeof N=="object"&&N.id).includes((E=k.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),h=o.computed(()=>d.value.slice(0,r.chipLimit));function _(w){return typeof w=="string"?w:typeof r.optionLabel=="string"?w[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(w):w==null?void 0:w.label}function g(w){return typeof w=="string"?w:typeof r.selectionLabel=="string"?w[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(w):(w==null?void 0:w.selectionLabel)||(w==null?void 0:w.label)}function m(w){if(!w||typeof w=="string")return w;let k=w.value;return typeof r.optionValue=="string"?k=w[r.optionValue]:typeof r.optionValue=="function"&&(k=r.optionValue(w)),k===null?"__null__":k}function p(w){Array.isArray(w)&&(w=w.map(k=>k==="__null__"?null:k)),w=w==="__null__"?null:w,n("update:model-value",w),n("update",w)}const x=o.ref(!1);async function y(w,k){if(!r.filterFn)s.value=w,await o.nextTick(k);else{if(k(),x.value===!1)return;w!==null&&w!==s.value&&(s.value=w,r.filterFn&&await r.filterFn(w))}}function b(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,x.value=!1,o.nextTick(()=>{x.value=!0,i.value.focus()})}function T(){l.value=!1,x.value=!1}return(w,k)=>{const E=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[w.label?(o.openBlock(),o.createBlock(o.unref(kt),{key:0,label:w.label},null,8,["label"])):o.createCommentVNode("",!0),o.createVNode(o.unref(J.QSelect),o.mergeProps({ref_key:"selectField",ref:i},w.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":w.filterable,"hide-selected":w.filterable&&l.value&&!w.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[w.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:y,onClear:b,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":p}),{append:o.withCtx(()=>[o.createVNode(o.unref($x),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[w.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":w.chipLimit===1,"dx-selected-chips":h.value.length>0,[w.selectionClass]:!0}])},[h.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,N=>(o.openBlock(),o.createBlock(E,{key:"selected-"+N.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(N.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(o.openBlock(),o.createBlock(E,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-h.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(w.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([w.selectionClass,"dx-selected-label"])},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),H_={__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(_i),{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(fi),{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-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},fT={__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(ga),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=s=>r.$emit("update:model-value",s))}),null,16))}},hT={key:0,class:"font-bold text-xs mb-2"},_T={class:"flex items-center flex-nowrap cursor-pointer"},mT={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},vo={__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?Ax:r.percent?sh:qx)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(h){const _=r.percent?100:1;c.value={from:h!=null&&h.from?h.from*_:void 0,to:h!=null&&h.to?h.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":r.currency?no(h):r.percent?od(h,{multiplier:1,maximumFractionDigits:2}):Tt(h)}const f=nn(()=>{if(c.value&&(c.value.from||c.value.to)){const h=r.percent?.01:1;let _={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",_)}},r.debounce);return(h,_)=>{const g=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",hT,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",_T,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",mT,[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(hi),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=m=>c.value.from=m),o.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(hi),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=m=>c.value.to=m),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},pT=["data-dusk","onClick"],gT={__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),h=f;r.multiple?(h=[...r.modelValue],c(f)?h=h.filter(_=>_!==f):h.push(f)):h===r.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=o.resolveComponent("QCheckbox"),_=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Cl),{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-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(g)},[o.createVNode(h,{"model-value":c(g),class:"mr-2",onClick:o.withModifiers(m=>u(g),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:g},()=>[o.createTextVNode(o.toDisplayString(g.label),1)])],8,pT))),128))]),_:3},8,["show","title"]),o.createVNode(_,{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)])}}},yT={key:0,class:"text-zinc-500"},bT={key:1},wT={class:"text-xs text-zinc-500"},W_=o.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type: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=Sr(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,[!u.loading&&!u.options.length?(o.openBlock(),o.createElementBlock("div",yT," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(_i),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>s.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(o.openBlock(),o.createElementBlock("div",bT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.children,h=>(o.openBlock(),o.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":_=>a(h)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(h.label),1),o.createElementVNode("div",wT,o.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}}),kT={key:0,class:"text-sm mt-2"},xT={key:2,class:"py-1"},Z_={__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,clearUploadedFile:c}=Kf();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(s)&&o.unref(s)(...f),["prevent"]))},[o.createVNode(o.unref(kt),{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",kT,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(l)&&o.unref(l)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(Qr),{key:1,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!t.readonly}]),file:o.unref(a),downloadable:"",onClick:d[3]||(d[3]=f=>!t.disable&&u.$refs.file.click())},null,8,["class","file"])):t.readonly?(o.openBlock(),o.createElementBlock("div",xT," -- ")):o.createCommentVNode("",!0)],34))}},ST={class:"dx-slider-number-field"},CT=o.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=o.computed(()=>({...e,field:void 0,label:!!e.label})),r=o.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(i,s)=>{const l=o.resolveComponent("QSlider");return o.openBlock(),o.createElementBlock("div",ST,[o.createVNode(o.unref(kt),{label:i.label,field:i.field},null,8,["label","field"]),o.createVNode(l,o.mergeProps(n.value,{min:i.min,max:i.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var ET=["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"],TT=function(t){return ET.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},NT=function(t,e,n){Object.keys(e).filter(TT).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)}))})},IT=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}))})},BT=function(t,e,n,r,i,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&IT(e,n,r,i),NT(t,n.attrs,r)},Y_=0,K_=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Y_++,t+"_"+n+Y_+String(e)},FT=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Q_=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},OT=function(t,e){return Q_(t).concat(Q_(e))},$T=function(t){return t==null},X_=function(){return{listeners:[],scriptId:K_("tiny-script"),scriptLoaded:!1}},AT=function(){var t=X_(),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=X_()};return{load:n,reinitialize:r}},DT=AT(),PT=function(){return typeof window<"u"?window:global},An=function(){var t=PT();return t&&t.tinymce?t.tinymce:null},MT={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"}}},xt=function(){return xt=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},xt.apply(this,arguments)},vT=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},LT=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ka={selector:void 0,target:void 0},qT=o.defineComponent({props:MT,setup:function(t,e){var n=t.init?xt(xt({},t.init),ka):xt({},ka),r=o.toRefs(t),i=r.disabled,s=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||K_("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,_=t.initialValue?t.initialValue:"",g="",m=function(y){return f?function(){return s!=null&&s.value?s.value:""}:function(){return y?_:g}},p=function(){var y=m(h),b=xt(xt({},n),{readonly:t.disabled,target:a.value,plugins:OT(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return BT(T,t,e,C,s,y)}),typeof n.setup=="function"&&n.setup(C)}});FT(a.value)&&(a.value.style.visibility=""),An().init(b),h=!1};o.watch(i,function(y){var b;c!==null&&(typeof((b=c.mode)===null||b===void 0?void 0:b.set)=="function"?c.mode.set(y?"readonly":"design"):c.setMode(y?"readonly":"design"))}),o.watch(l,function(y){var b;f||(g=c.getContent()),(b=An())===null||b===void 0||b.remove(c),o.nextTick(function(){return p()})}),o.onMounted(function(){if(An()!==null)p();else if(a.value&&a.value.ownerDocument){var y=t.cloudChannel?t.cloudChannel:"6",b=t.apiKey?t.apiKey:"no-api-key",C=$T(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(b,"/tinymce/").concat(y,"/tinymce.min.js"):t.tinymceScriptSrc;DT.load(a.value.ownerDocument,C,p)}}),o.onBeforeUnmount(function(){An()!==null&&An().remove(c)}),d||(o.onActivated(function(){h||p()}),o.onDeactivated(function(){var y;f||(g=c.getContent()),(y=An())===null||y===void 0||y.remove(c)}));var x=function(y){var b;g=c.getContent(),(b=An())===null||b===void 0||b.remove(c),n=xt(xt(xt({},n),y),ka),o.nextTick(function(){return p()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?vT(o.h,u,a,t.tagName):LT(o.h,u,a)}}});const VT=["innerHTML"],J_={__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(kt),{key:0,field:t.field,"show-name":t.showName},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,VT)):(o.openBlock(),o.createBlock(o.unref(qT),{key:2,class:"mt-2","api-key":o.unref(le).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},RT={key:1,class:"mt-2"},UT={class:"text-xs font-bold"},jT=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),xa=o.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type: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&&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,[s.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=s.field.options)==null?void 0:a.length)>0||s.loading?(o.openBlock(),o.createBlock(o.unref(_i),{key:0,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,multiple:"",loading:s.loading,"chip-limit":1,filterable:"",placeholder:s.field.placeholder,label:s.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",RT,[o.createElementVNode("div",UT,o.toDisplayString(s.field.label),1),jT]))],64)):s.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(_i),{key:1,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,placeholder:s.field.placeholder,loading:s.loading,label:s.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","placeholder","loading","label"])):s.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(ya),{key:2,"model-value":s.modelValue,label:s.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(ba),{key:3,"model-value":s.modelValue,label:s.field.label,inline:!!s.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):s.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:4,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:5,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(vo),{key:6,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):s.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(pa),{key:7,field:s.field,"model-value":s.modelValue,class:"mt-2","toggle-indeterminate":s.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):s.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(H_),{key:8,"model-value":s.modelValue,field:s.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):s.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(W_),{key:9,"model-value":s.modelValue,options:s.field.options,loading:s.loading,label:s.field.label,placeholder:s.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(s.field.name)+'": Unknown filter type '+o.toDisplayString(s.field.type),1)],64))])}}}),zT={class:"flex items-center flex-nowrap flex-grow"},GT={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},em={__name:"FilterItem",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",zT,[o.createElementVNode("div",GT,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},HT={class:"px-4 py-2 max-w-full"},tm={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{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.filters)l[a.name]=a.fields.filter(c=>r.activeFilter[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.activeFilter,...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",HT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.filters,(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,h=>(o.openBlock(),o.createBlock(o.unref(xa),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(em),{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,h=>(o.openBlock(),o.createBlock(o.unref(xa),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},nm=o.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(ph),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(tm),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:active-filter",r))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),WT={class:"flex-grow"},rm=mt({__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",WT,[o.createVNode(l,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(ih),{class:"w-5 mr-2"}),o.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),ZT={class:"w-full flex justify-end items-center flex-nowrap border-b"},YT={class:"flex-grow"},KT={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},QT={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(s,l)=>(o.openBlock(),o.createElementBlock("div",ZT,[o.createVNode(o.unref(rm),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",YT,[o.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",KT,[s.$slots.default?(o.openBlock(),o.createBlock(o.unref(J.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},XT={class:"dx-rendered-form"},JT={key:0,class:"mb-4"},e3={class:"flex flex-nowrap items-center text-sm w-full"},t3={key:0,class:"variation-missing-icon pl-1"},n3={class:"flex-grow"},r3={key:1,class:"flex flex-nowrap items-center mr-2"},i3=["onClick"],o3=["onClick"],im=o.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,i={BOOLEAN:pa,DATE:ya,DATE_RANGE:ba,INTEGER:z_,NUMBER:hi,TEXT:fi,SINGLE_FILE:Z_,MULTI_FILE:G_,WYSIWYG:J_},s=n.form.fields.map(I=>({placeholder:`Enter ${I.label}`,...I,component:I.component||i[I.type]})),l=o.computed(()=>{const I=n.values;return I?Array.isArray(I)?I:Object.entries(I).filter(B=>s.find($=>$.name===B[0])).map(([B,$])=>({name:B,value:$,variation:""})):[]}),a=o.computed(()=>{const I={};for(const B of s)I[B.name]=x(B.name);return I});function c(I){return I.enabled===void 0?!0:typeof I.enabled=="function"?I.enabled(a.value):I.enabled}function u(I){return{modelValue:x(I.name),label:I.label,clearable:I.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=o.computed(()=>{const I=[...new Set(l.value.map(B=>B.variation))].sort();return I.length===0&&I.push(""),I}),f=o.ref(d.value[0]||""),h=o.ref(""),_=o.ref(!1),g=o.ref(""),m=o.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function p(I,B){if(l.value)return l.value.find($=>$.variation===(B!==void 0?B:f.value)&&$.name===I)}function x(I){var B;return(B=p(I))==null?void 0:B.value}function y(I,B){const $=p(I),R={name:I,variation:f.value||"",value:B===void 0?n.emptyValue:B},Q=Ro(l.value,$,R,!0);b(Q)}function b(I){let B=I;Array.isArray(n.values)||(B=I.reduce(($,R)=>($[R.name]=R.value,$),{})),r("update:values",B)}o.onMounted(()=>{window.addEventListener("beforeunload",C)}),o.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",C)});function C(I){if(n.saving)return I.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(I){return n.form.fields.map(B=>({variation:I,name:B.name,value:B.default_value===void 0?null:B.default_value}))}function w(){if(n.saving)return;let I=[...l.value];I.length===0&&(I=T(""));const B=d.value[d.value.length-1],$=Fa(B||"1"),R=T($);b([...I,...R]),f.value=$}function k(){if(!h.value)return;if(d.value.includes(h.value)){qe.error("Variation name already exists");return}const I=l.value.map(B=>B.variation===_.value?{...B,variation:h.value}:B);b(I),f.value=h.value,_.value=!1,h.value=""}function E(I){if(!I)return;const B=l.value.filter($=>$.variation!==I);b(B),f.value===I&&(f.value=d.value[0]),g.value=""}function N(I){const B={};return n.form.fields.filter($=>$.required||$.required_group).every($=>{const R=p($.name,I),Q=!!R&&R.value!==null;return $.required_group?B[$.required_group]?!0:B[$.required_group]=Q:Q})}return(I,B)=>{const $=o.resolveComponent("QTooltip"),R=o.resolveComponent("QTab"),Q=o.resolveComponent("QSpinnerBall"),se=o.resolveComponent("QTabs"),te=o.resolveComponent("QSpinnerPie");return o.openBlock(),o.createElementBlock("div",XT,[I.form.variations>1?(o.openBlock(),o.createElementBlock("div",JT,[o.createVNode(se,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=P=>f.value=P),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(P,we)=>(o.openBlock(),o.createBlock(R,{key:P,name:P,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",e3,[N(P)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",t3,[o.createVNode(o.unref(Qf),{class:"text-red-400 w-4"}),o.createVNode($,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",n3,o.toDisplayString(P||"1"),1),!I.disable&&!I.readonly&&I.canModifyVariations?(o.openBlock(),o.createElementBlock("div",r3,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=P)&&(h.value=P)},[o.createVNode(o.unref(Xf),{class:"w-3 text-blue-900"})],8,i3),we>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:ot=>g.value=P},[o.createVNode(o.unref(ko),{class:"w-3 text-red-900"})],8,o3)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(o.openBlock(),o.createBlock(R,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:w},{default:o.withCtx(()=>[I.saving?(o.openBlock(),o.createBlock(Q,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),(P,we)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:P.id,class:o.normalizeClass({"mt-4":we>0,[I.fieldClass]:!0})},[P.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:0,vnode:P.vnode,props:u(P),params:a.value,"onUpdate:modelValue":ot=>y(P.name,ot)},null,8,["vnode","props","params","onUpdate:modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(P.component),{key:P.name+"-"+f.value,"model-value":x(P.name),field:P,label:P.label||void 0,"no-label":I.noLabel,"show-name":I.showName,clearable:P.clearable||I.clearable,disable:I.disable,readonly:I.readonly,"onUpdate:modelValue":ot=>y(P.name,ot)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[o.vShow,c(P)]])),128)),o.renderSlot(I.$slots,"default"),I.savedAt?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([I.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[I.saving?o.renderSlot(I.$slots,"saving",{key:0},()=>[o.createTextVNode(" Saving... "),o.createVNode(te,{class:"ml-2"})]):o.renderSlot(I.$slots,"saved",{key:1},()=>[o.createTextVNode(" Saved at "+o.toDisplayString(o.unref(to)(I.savedAt,{format:"M/d/yy h:mm:ssa"})),1)])],2)):o.createCommentVNode("",!0),_.value!==!1?(o.openBlock(),o.createBlock(o.unref(dr),{key:2,title:"Change variation name",onConfirm:k,onClose:B[2]||(B[2]=P=>_.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(fi),{modelValue:h.value,"onUpdate:modelValue":B[1]||(B[1]=P=>h.value=P),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),g.value?(o.openBlock(),o.createBlock(o.unref(dr),{key:3,title:`Remove variation ${g.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:B[3]||(B[3]=P=>E(g.value)),onClose:B[4]||(B[4]=P=>g.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}}),s3=o.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0}},setup(t){const e=t,n={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass},r=o.ref({...e.target}),i={};return o.watch(()=>e.target,s=>{var l;if(s)for(let a of e.form.fields)(l=i[a.name])!=null&&l.isSaving||(r.value[a.name]=s[a.name])}),(s,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(im,o.mergeProps(n,{values:r.value,"onUpdate:values":[l[0]||(l[0]=a=>r.value=a),l[1]||(l[1]=a=>s.action.trigger(s.target,r.value))],"empty-value":"","saved-at":s.target.updated_at,saving:s.action.isApplying}),{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},16,["values","saved-at","saving"])]))}}),om=o.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},activeItem:{},panels:{}},setup(t){return(e,n)=>{const r=o.resolveComponent("QTabPanel"),i=o.resolveComponent("QTabPanels");return o.openBlock(),o.createBlock(i,{"model-value":e.activePanel,class:"dx-panels-drawer-panels overflow-y-auto h-full transition-all"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.panels,s=>(o.openBlock(),o.createBlock(r,{key:s.name,name:s.name},{default:o.withCtx(()=>[s.vnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:0,vnode:s.vnode,props:e.activeItem},null,8,["vnode","props"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),sm=mt(o.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},activeItem:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(r){return r.enabled===void 0?!0:r.enabled?typeof r.enabled=="function"?r.enabled(e.activeItem):!0:!1}return(r,i)=>{const s=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(s,{class:o.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",r.cls["panel-tabs"]]),"model-value":r.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.panels,l=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n(l)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.tabVnode?(o.openBlock(),o.createBlock(o.unref(kn),{key:l.name,vnode:l.tabVnode(r.activeItem,r.modelValue),"is-active":r.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(J.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1shkc_1",visible:"_visible_1shkc_1",collapse:"_collapse_1shkc_1",static:"_static_1shkc_1",absolute:"_absolute_1shkc_1",relative:"_relative_1shkc_1",sticky:"_sticky_1shkc_1","left-0":"_left-0_1shkc_1","right-0":"_right-0_1shkc_1","right-1":"_right-1_1shkc_1","top-0":"_top-0_1shkc_1","top-1":"_top-1_1shkc_1","m-2":"_m-2_1shkc_1","m-4":"_m-4_1shkc_1","m-auto":"_m-auto_1shkc_1","mx-1":"_mx-1_1shkc_1","mx-4":"_mx-4_1shkc_1","mx-auto":"_mx-auto_1shkc_1","my-2":"_my-2_1shkc_1","!mr-1":"_!mr-1_1shkc_1","mb-2":"_mb-2_1shkc_1","mb-4":"_mb-4_1shkc_1","ml-1":"_ml-1_1shkc_1","ml-2":"_ml-2_1shkc_1","ml-2.5":"_ml-2.5_1shkc_1","ml-3":"_ml-3_1shkc_1","ml-4":"_ml-4_1shkc_1","ml-5":"_ml-5_1shkc_1","ml-[-.2em]":"_ml-[-.2em]_1shkc_1","mr-1":"_mr-1_1shkc_1","mr-2":"_mr-2_1shkc_1","mr-3":"_mr-3_1shkc_1","mr-4":"_mr-4_1shkc_1","mt-1":"_mt-1_1shkc_1","mt-2":"_mt-2_1shkc_1","mt-3":"_mt-3_1shkc_1","mt-4":"_mt-4_1shkc_1",block:"_block_1shkc_1","inline-block":"_inline-block_1shkc_1",inline:"_inline_1shkc_1",flex:"_flex_1shkc_1",table:"_table_1shkc_1",hidden:"_hidden_1shkc_1","h-10":"_h-10_1shkc_1","h-16":"_h-16_1shkc_1","h-32":"_h-32_1shkc_1","h-4":"_h-4_1shkc_1","h-5":"_h-5_1shkc_1","h-8":"_h-8_1shkc_1","h-[2.25rem]":"_h-[2.25rem]_1shkc_1","h-full":"_h-full_1shkc_1","max-h-full":"_max-h-full_1shkc_1","w-10":"_w-10_1shkc_1","w-16":"_w-16_1shkc_1","w-2/5":"_w-2/5_1shkc_1","w-24":"_w-24_1shkc_1","w-3":"_w-3_1shkc_1","w-3/5":"_w-3/5_1shkc_1","w-32":"_w-32_1shkc_1","w-4":"_w-4_1shkc_1","w-48":"_w-48_1shkc_1","w-5":"_w-5_1shkc_1","w-6":"_w-6_1shkc_1","w-7":"_w-7_1shkc_1","w-72":"_w-72_1shkc_1","w-8":"_w-8_1shkc_1","w-96":"_w-96_1shkc_1","w-[13.5rem]":"_w-[13.5rem]_1shkc_1","w-[6.5rem]":"_w-[6.5rem]_1shkc_1","w-[80rem]":"_w-[80rem]_1shkc_1","w-full":"_w-full_1shkc_1","!min-w-0":"_!min-w-0_1shkc_1","max-w-full":"_max-w-full_1shkc_1","flex-shrink":"_flex-shrink_1shkc_1","flex-shrink-0":"_flex-shrink-0_1shkc_1",shrink:"_shrink_1shkc_1","flex-grow":"_flex-grow_1shkc_1",grow:"_grow_1shkc_1","rotate-180":"_rotate-180_1shkc_1",transform:"_transform_1shkc_1","cursor-ew-resize":"_cursor-ew-resize_1shkc_1","cursor-move":"_cursor-move_1shkc_1","cursor-not-allowed":"_cursor-not-allowed_1shkc_1","cursor-ns-resize":"_cursor-ns-resize_1shkc_1","cursor-pointer":"_cursor-pointer_1shkc_1",resize:"_resize_1shkc_1","flex-col":"_flex-col_1shkc_1","flex-nowrap":"_flex-nowrap_1shkc_1","items-center":"_items-center_1shkc_1","items-stretch":"_items-stretch_1shkc_1","justify-start":"_justify-start_1shkc_1","justify-end":"_justify-end_1shkc_1","justify-center":"_justify-center_1shkc_1","justify-between":"_justify-between_1shkc_1","gap-y-0":"_gap-y-0_1shkc_1","gap-y-1":"_gap-y-1_1shkc_1","space-x-1":"_space-x-1_1shkc_1","space-x-2":"_space-x-2_1shkc_1","self-center":"_self-center_1shkc_1","overflow-auto":"_overflow-auto_1shkc_1","overflow-hidden":"_overflow-hidden_1shkc_1","overflow-y-auto":"_overflow-y-auto_1shkc_73","overflow-x-hidden":"_overflow-x-hidden_1shkc_1","scroll-smooth":"_scroll-smooth_1shkc_1","overflow-ellipsis":"_overflow-ellipsis_1shkc_1","whitespace-normal":"_whitespace-normal_1shkc_1","whitespace-nowrap":"_whitespace-nowrap_1shkc_1",rounded:"_rounded_1shkc_1","rounded-2xl":"_rounded-2xl_1shkc_1","rounded-lg":"_rounded-lg_1shkc_1","rounded-md":"_rounded-md_1shkc_1","!rounded-l-none":"_!rounded-l-none_1shkc_1","!rounded-r-none":"_!rounded-r-none_1shkc_1","rounded-b-lg":"_rounded-b-lg_1shkc_1","rounded-t-lg":"_rounded-t-lg_1shkc_1","rounded-t-md":"_rounded-t-md_1shkc_1","!border-0":"_!border-0_1shkc_1",border:"_border_1shkc_1","border-b":"_border-b_1shkc_1","border-l":"_border-l_1shkc_1","border-l-0":"_border-l-0_1shkc_1","border-r":"_border-r_1shkc_1","border-solid":"_border-solid_1shkc_1","border-dashed":"_border-dashed_1shkc_1","border-none":"_border-none_1shkc_1","border-blue-600":"_border-blue-600_1shkc_1","border-blue-700":"_border-blue-700_1shkc_1","border-gray-200":"_border-gray-200_1shkc_1","border-gray-300":"_border-gray-300_1shkc_1","border-slate-200":"_border-slate-200_1shkc_1","bg-black":"_bg-black_1shkc_1","bg-blue-200":"_bg-blue-200_1shkc_1","bg-blue-600":"_bg-blue-600_1shkc_1","bg-emerald-200":"_bg-emerald-200_1shkc_1","bg-gray-100":"_bg-gray-100_1shkc_1","bg-gray-200":"_bg-gray-200_1shkc_1","bg-gray-400":"_bg-gray-400_1shkc_1","bg-gray-500":"_bg-gray-500_1shkc_1","bg-green-200":"_bg-green-200_1shkc_1","bg-green-300":"_bg-green-300_1shkc_1","bg-red-200":"_bg-red-200_1shkc_1","bg-red-300":"_bg-red-300_1shkc_1","bg-red-900":"_bg-red-900_1shkc_1","bg-slate-100":"_bg-slate-100_1shkc_1","bg-slate-500":"_bg-slate-500_1shkc_1","bg-slate-800":"_bg-slate-800_1shkc_1","bg-slate-900":"_bg-slate-900_1shkc_1","bg-transparent":"_bg-transparent_1shkc_1","bg-white":"_bg-white_1shkc_1","bg-yellow-300":"_bg-yellow-300_1shkc_1","!p-2":"_!p-2_1shkc_1","p-0":"_p-0_1shkc_1","p-1":"_p-1_1shkc_1","p-2":"_p-2_1shkc_1","p-3":"_p-3_1shkc_1","p-4":"_p-4_1shkc_1","!py-0":"_!py-0_1shkc_1","px-1":"_px-1_1shkc_1","px-12":"_px-12_1shkc_1","px-2":"_px-2_1shkc_1","px-2.5":"_px-2.5_1shkc_1","px-4":"_px-4_1shkc_1","px-6":"_px-6_1shkc_1","px-8":"_px-8_1shkc_1","py-1":"_py-1_1shkc_1","py-14":"_py-14_1shkc_1","py-2":"_py-2_1shkc_1","py-3":"_py-3_1shkc_1","py-4":"_py-4_1shkc_1","py-5":"_py-5_1shkc_1","py-8":"_py-8_1shkc_1","pl-1":"_pl-1_1shkc_1","pt-3":"_pt-3_1shkc_1","text-left":"_text-left_1shkc_1","text-center":"_text-center_1shkc_1","text-[.7rem]":"_text-[.7rem]_1shkc_1","text-[1rem]":"_text-[1rem]_1shkc_1","text-base":"_text-base_1shkc_1","text-sm":"_text-sm_1shkc_1","text-xs":"_text-xs_1shkc_1","font-bold":"_font-bold_1shkc_1","font-medium":"_font-medium_1shkc_1","font-semibold":"_font-semibold_1shkc_1",uppercase:"_uppercase_1shkc_1","leading-[1.2rem]":"_leading-[1.2rem]_1shkc_1","!text-green-900":"_!text-green-900_1shkc_1","!text-red-900":"_!text-red-900_1shkc_1","!text-white":"_!text-white_1shkc_1","!text-yellow-900":"_!text-yellow-900_1shkc_1","text-blue-600":"_text-blue-600_1shkc_1","text-blue-900":"_text-blue-900_1shkc_1","text-gray-300":"_text-gray-300_1shkc_1","text-gray-400":"_text-gray-400_1shkc_1","text-gray-500":"_text-gray-500_1shkc_1","text-gray-600":"_text-gray-600_1shkc_1","text-gray-700":"_text-gray-700_1shkc_1","text-green-700":"_text-green-700_1shkc_1","text-red-400":"_text-red-400_1shkc_1","text-red-800":"_text-red-800_1shkc_1","text-red-900":"_text-red-900_1shkc_1","text-slate-200":"_text-slate-200_1shkc_1","text-slate-300":"_text-slate-300_1shkc_1","text-slate-50":"_text-slate-50_1shkc_1","text-slate-500":"_text-slate-500_1shkc_1","text-white":"_text-white_1shkc_1","text-yellow-600":"_text-yellow-600_1shkc_1","text-zinc-500":"_text-zinc-500_1shkc_1","text-zinc-800":"_text-zinc-800_1shkc_1","line-through":"_line-through_1shkc_1","opacity-0":"_opacity-0_1shkc_1","opacity-20":"_opacity-20_1shkc_1","opacity-50":"_opacity-50_1shkc_1","opacity-70":"_opacity-70_1shkc_1","opacity-80":"_opacity-80_1shkc_1","shadow-none":"_shadow-none_1shkc_1","outline-none":"_outline-none_1shkc_1",outline:"_outline_1shkc_1",filter:"_filter_1shkc_1",transition:"_transition_1shkc_1","transition-all":"_transition-all_1shkc_1","duration-300":"_duration-300_1shkc_1","danx-app":"_danx-app_1shkc_4","q-tab":"_q-tab_1shkc_4","q-table__card":"_q-table__card_1shkc_7","q-checkbox__inner":"_q-checkbox__inner_1shkc_11","q-toolbar":"_q-toolbar_1shkc_14","q-notification__actions":"_q-notification__actions_1shkc_19","q-date":"_q-date_1shkc_22","q-date__view":"_q-date__view_1shkc_25","q-field":"_q-field_1shkc_28","q-field--auto-height":"_q-field--auto-height_1shkc_28","q-field__control":"_q-field__control_1shkc_28","q-field__native":"_q-field__native_1shkc_31","q-field--labeled":"_q-field--labeled_1shkc_35","q-field__control-container":"_q-field__control-container_1shkc_35","q-textarea":"_q-textarea_1shkc_38","q-field__marginal":"_q-field__marginal_1shkc_41","q-field__input":"_q-field__input_1shkc_41","q-field__label":"_q-field__label_1shkc_41","q-btn":"_q-btn_1shkc_48","q-item":"_q-item_1shkc_56","q-tab-panels":"_q-tab-panels_1shkc_60","q-panel":"_q-panel_1shkc_64",scroll:"_scroll_1shkc_67","q-tab-panel":"_q-tab-panel_1shkc_60","dx-dialog":"_dx-dialog_1shkc_77","q-card__section--vert":"_q-card__section--vert_1shkc_77","q-banner":"_q-banner_1shkc_81",app:"_app_1shkc_1","main-layout":"_main-layout_1shkc_1","is-disabled":"_is-disabled_1shkc_98","disable-all-transitions":"_disable-all-transitions_1shkc_103","v-enter-active":"_v-enter-active_1shkc_107","v-leave-active":"_v-leave-active_1shkc_108","v-enter-from":"_v-enter-from_1shkc_112","v-leave-to":"_v-leave-to_1shkc_113","dx-action-table":"_dx-action-table_1shkc_117","dx-column-shrink":"_dx-column-shrink_1shkc_117","panel-tabs":"_panel-tabs_1shkc_121","hover:bg-blue-200":"_hover:bg-blue-200_1shkc_1","hover:bg-gray-200":"_hover:bg-gray-200_1shkc_1","hover:bg-green-100":"_hover:bg-green-100_1shkc_1","hover:bg-red-100":"_hover:bg-red-100_1shkc_1","hover:bg-red-200":"_hover:bg-red-200_1shkc_1","hover:bg-slate-200":"_hover:bg-slate-200_1shkc_1","hover:bg-slate-300":"_hover:bg-slate-300_1shkc_1","hover:bg-slate-600":"_hover:bg-slate-600_1shkc_1","hover:text-blue-500":"_hover:text-blue-500_1shkc_1","hover:text-blue-600":"_hover:text-blue-600_1shkc_1","hover:opacity-100":"_hover:opacity-100_1shkc_1","hover:opacity-20":"_hover:opacity-20_1shkc_1","focus:bg-blue-200":"_focus:bg-blue-200_1shkc_1"}}]]),l3={class:"flex flex-col flex-nowrap h-full"},a3={class:"dx-panels-drawer-header flex items-center px-6 py-4"},c3={class:"flex-grow"},u3={key:0},d3={key:1},f3={key:0,class:"mr-4"},h3={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},_3={key:0,class:"flex items-stretch flex-nowrap h-full"},m3={key:0,class:"border-l overflow-y-auto"},lm=o.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},activeItem:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-[80rem]"},position:{default:"right"},panels:{}},emits:["update:model-value","close"],setup(t){const e=t,n=o.ref(e.modelValue),r=o.computed(()=>e.panels.find(i=>i.name===n.value));return o.watch(()=>e.modelValue,i=>n.value=i),o.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(i,s)=>{const l=o.resolveComponent("QSpinnerHourglass"),a=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Cl),{position:i.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":s[3]||(s[3]=c=>i.$emit("close"))},{default:o.withCtx(()=>{var c;return[o.createElementVNode("div",l3,[o.createElementVNode("div",a3,[o.createElementVNode("div",c3,[o.renderSlot(i.$slots,"header",{},()=>[i.title?(o.openBlock(),o.createElementBlock("h2",u3,o.toDisplayString(i.title),1)):o.createCommentVNode("",!0),i.activeItem?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",d3,[o.createTextVNode(" Loading "),o.createVNode(l)]))])]),i.$slots.controls?(o.openBlock(),o.createElementBlock("div",f3,[o.renderSlot(i.$slots,"controls")])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{class:"dx-close-button",onClick:s[0]||(s[0]=u=>i.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(xo),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",h3,[i.activeItem.__timestamp>0?(o.openBlock(),o.createElementBlock("div",_3,[(o.openBlock(),o.createBlock(o.unref(sm),{key:"pd-tabs:"+i.activeItem.id,modelValue:n.value,"onUpdate:modelValue":[s[1]||(s[1]=u=>n.value=u),s[2]||(s[2]=u=>i.$emit("update:model-value",u))],"active-item":i.activeItem,class:o.normalizeClass(i.tabsClass),panels:i.panels},null,8,["modelValue","active-item","class","panels"])),(o.openBlock(),o.createBlock(o.unref(om),{key:"pd-panels:"+i.activeItem.id,panels:i.panels,"active-panel":n.value,"active-item":i.activeItem,class:o.normalizeClass(((c=r.value)==null?void 0:c.class)||i.panelsClass)},null,8,["panels","active-panel","active-item","class"])),i.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",m3,[o.renderSlot(i.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])])]}),_:3},8,["position"])}}}),p3={class:"flex items-center justify-center text-sm py-14 w-full"},g3={key:0},y3={key:1},am={__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",p3,[t.loading?(o.openBlock(),o.createElementBlock("div",g3,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",y3,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}};function cm(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 um(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 dm(t,e=null){const n={},r=Yf("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(s=>{(!e||e.includes(s))&&(n[s]=i[s])})}return n}const b3={class:"flex flex-nowrap items-center"},w3={class:"relative"},k3={class:"ml-2"},fm=o.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let s=0;s<e.columns.length;s++){const l=e.columns[s].field||e.columns[s].name;if(e.summary[l])return s+1}return e.columns.length+1}),r=o.computed(()=>e.columns.slice(n.value-1));function i(s){const l=e.summary&&e.summary[s.name];return l===void 0?"":s.format?s.format(l):l}return(s,l)=>(o.openBlock(),o.createBlock(o.unref(J.QTr),{class:o.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":s.selectedCount,"is-loading":s.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(J.QTd),{colspan:n.value,class:o.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":s.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",b3,[o.createElementVNode("div",w3,[s.loading?(o.openBlock(),o.createBlock(o.unref(J.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass([{"opacity-0":s.loading},"flex items-center nowrap"])},[s.selectedCount?(o.openBlock(),o.createBlock(o.unref(Zk),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>s.$emit("clear"))})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(o.unref(Tt)(s.selectedCount||s.itemCount)),1)],2)]),o.createElementVNode("div",k3,o.toDisplayString(s.selectedCount?s.selectedLabel:s.label),1)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,a=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:a.name,align:a.align||"right",class:o.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:o.withCtx(()=>[s.summary?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass({"dx-summary-column-link":a.onClick})},o.toDisplayString(i(a)),3)):o.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),hm=mt(o.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:"multiple"}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=o.ref(null);cm(n);const r=o.computed(()=>e.columns.map(c=>({...c,field:c.field||c.name}))),i=o.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),s=`column-settings-${e.name}`,l=o.ref(Ht(s)||{});function a(){Gt(s,l.value)}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!i.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[o.createVNode(o.unref(yh)),o.createVNode(o.unref(J.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows,pagination:c.pagination,columns:r.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:o.unref(um)(f.pagination,r.value)}))},{"no-data":o.withCtx(()=>[o.renderSlot(c.$slots,"empty",{},()=>[o.createVNode(am,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":o.withCtx(()=>{var f;return[i.value?(o.openBlock(),o.createBlock(fm,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=h=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):o.createCommentVNode("",!0)]}),"header-cell":o.withCtx(f=>[o.createVNode(o.unref(R_),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(f=>[(o.openBlock(),o.createBlock(o.unref(v_),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-92434ba2"]]),x3={class:"dx-action-toolbar flex items-center"},S3={class:"flex-grow px-6"},C3={key:0},E3={class:"py-3 flex items-center flex-nowrap"},_m=o.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",x3,[o.createElementVNode("div",S3,[o.renderSlot(e.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("h4",C3,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",E3,[o.renderSlot(e.$slots,"default"),e.refreshButton?(o.openBlock(),o.createBlock(o.unref(eh),{key:0,loading:e.loading,onClick:n[0]||(n[0]=r=>e.$emit("refresh"))},null,8,["loading"])):o.createCommentVNode("",!0),e.exporter?(o.openBlock(),o.createBlock(o.unref(Jf),{key:1,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):o.createCommentVNode("",!0),e.actions&&e.actions.length>0?(o.openBlock(),o.createBlock(o.unref(ha),{key:2,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"after")])]))}}),T3={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},N3={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},I3=o.defineComponent({__name:"ActionTableLayout",props:{title:{default:""},controller:{},columns:{},filters:{default:void 0},panels:{default:void 0},actions:{default:void 0},exporter:{type:Function,default:void 0},panelTitleField:{default:""},tableClass:{default:""},refreshButton:{type:Boolean},showFilters:{type:Boolean},hideToolbar:{type:Boolean},selection:{default:"multiple"}},setup(t){const e=t,n=o.computed(()=>e.controller.activeFilter.value),r=o.computed(()=>e.controller.activeItem.value),i=o.computed(()=>e.controller.activePanel.value||""),s=o.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(l,a)=>(o.openBlock(),o.createElementBlock("div",T3,[o.renderSlot(l.$slots,"top"),o.renderSlot(l.$slots,"toolbar",{},()=>{var c;return[l.hideToolbar?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(_m),{key:0,title:l.title,"refresh-button":l.refreshButton,actions:(c=l.actions)==null?void 0:c.filter(u=>u.batch),"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll},{default:o.withCtx(()=>[o.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","actions","action-target","exporter","loading","onRefresh"]))]}),o.createElementVNode("div",N3,[o.renderSlot(l.$slots,"filters",{},()=>[n.value?(o.openBlock(),o.createBlock(o.unref(nm),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:l.filters,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):o.createCommentVNode("",!0)]),o.renderSlot(l.$slots,"default",{},()=>[o.createVNode(hm,{class:o.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.columns,selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),o.renderSlot(l.$slots,"panels",{},()=>[r.value&&l.panels?(o.openBlock(),o.createBlock(o.unref(lm),{key:0,title:s.value,"model-value":i.value,"active-item":r.value,panels:l.panels,"onUpdate:modelValue":a[0]||(a[0]=c=>l.controller.activatePanel(r.value,c)),onClose:a[1]||(a[1]=c=>l.controller.setActiveItem(null))},{controls:o.withCtx(()=>[o.createVNode(o.unref(uh),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","active-item","panels"])):o.createCommentVNode("",!0)])])]))}});function B3(t,e){let n=!1;const r=`dx-${t}-pager`,i=o.shallowRef(null),s=o.ref({}),l=o.ref({}),a=o.ref(!1),c=o.shallowRef([]),u=o.ref(!1),d=o.ref(!1),f=o.shallowRef(null),h=o.shallowRef(null),_=o.shallowRef(""),g=o.ref({}),m=o.ref(!1),p=o.computed(()=>Object.keys(s.value).filter(O=>s.value[O]!==void 0).length),x={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},y=o.shallowRef(x),b=o.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{...s.value,...l.value},sort:y.value.__sort||void 0}));o.watch(b,()=>{ot(),C()}),o.watch(s,()=>{ot(),T()}),o.watch(c,T),e.refreshFilters&&o.watch(s,E);async function C(){if(n){u.value=!0;try{I(await e.routes.list(b.value)),u.value=!1}catch{}}}async function T(){if(!e.routes.summary||!n)return;d.value=!0;const O={id:null,...s.value,...l.value};c.value.length&&(O.id=c.value.map(L=>L.id));try{f.value=await e.routes.summary(O),d.value=!1}catch{}}async function w(){await Promise.all([C(),T()])}function k(O){return g.value[O]||[]}async function E(){if(e.routes.fieldOptions){m.value=!0;try{g.value=await e.routes.fieldOptions(s.value)||{},m.value=!1}catch{}}}function N(O,L=null){var H;if(e.urlPattern&&O.match(e.urlPattern)){const $e=(H=L==null?void 0:L.value)==null?void 0:H.map(Pt=>Pt.fields.map(qo=>qo.name)).flat(),He=dm(O,$e);Object.keys(He).length>0&&(s.value=He,P("filter",s.value))}}function I(O){let L=[],H;Array.isArray(O)?(L=O,H={total:O.length}):O.data&&(L=O.data,H=O.meta),H&&H.total!==y.value.rowsNumber&&(y.value.rowsNumber=H.total),L=L.map($e=>($e.isSaving=$e.isSaving===void 0?!1:$e.isSaving,Ne($e))),i.value={data:L,meta:H}}function B(){y.value=x}function $(O){y.value={...y.value,...O}}function R(O){c.value=O}function Q(){c.value=[]}async function se(O,L=void 0){var H,$e,He;if(!e.routes.more)return!1;try{const Pt=await e.routes.more({page:O+1,perPage:L,filter:{...s.value,...l.value}});if(Pt&&Pt.length>0)return I({data:[...((H=i.value)==null?void 0:H.data)||[],...Pt],meta:{total:((He=($e=i.value)==null?void 0:$e.meta)==null?void 0:He.total)||0}}),!0}catch{}return!1}async function te(){return Promise.all([C(),T(),E(),At()])}function P(O,L){const H=Ht(r)||{};H[O]=L,Gt(r,H)}function we(){const O=Ht(r);O?(s.value={...O.filter,...s.value},y.value=O.pagination):s.value={...e.filterDefaults,...s.value},setTimeout(()=>{u.value||C(),d.value||T(),m.value||E()},1)}async function ot(){const O={filter:s.value,pagination:{...y.value,page:1}};Gt(r,O)}async function At(){try{const L=await jo("active-item",async()=>{if(!(!h.value||!e.routes.details))return await e.routes.details(h.value)})();if(L===void 0)return;if(!L||!L.__type||!L.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",L);h.value=Ne(L)}catch{}}e.routes.details&&o.watch(()=>h.value,async(O,L)=>{O!=null&&O.id&&(L==null?void 0:L.id)!=O.id&&await At()});function tn(O,L=""){var H;(O==null?void 0:O.id)==((H=h.value)==null?void 0:H.id)&&L===_.value||(St(O),_.value=L,O!=null&&O.id&&pm({id:O.id,panel:L}))}function St(O){h.value=O&&Ne(O),O!=null&&O.id||pm({})}async function Lo(O){var Pt,qo;if(!((Pt=i.value)!=null&&Pt.data))return;const L=i.value.data.findIndex(Vo=>{var mi;return Vo.id===((mi=h.value)==null?void 0:mi.id)});if(L==null)return;const H=L+O,He=await jo("getNextItem",async()=>{var Vo,mi,bm;return(Vo=i.value)!=null&&Vo.data?H<0?y.value.page>1?(y.value={...y.value,page:y.value.page-1},await Uo(u,!1),i.value.data.length-1):-1:H>=i.value.data.length?y.value.page<(((bm=(mi=i.value)==null?void 0:mi.meta)==null?void 0:bm.last_page)||1)?(y.value={...y.value,page:y.value.page+1},await Uo(u,!1),0):-1:H:-1})();He!==void 0&&He>=0&&(h.value=(qo=i.value)==null?void 0:qo.data[He])}function ft(O){s.value=O||{}}async function Dt(O){e.routes.export&&await e.routes.export(O)}function H3(){const O=ym();if(n=!0,we(),e.routes.details){const{params:L,meta:H,name:$e}=O.currentRoute.value;$e===t&&(O.afterEach(He=>{He.name===$e&&gm(He.params,He.meta)}),gm(L,H))}}function pm(O){const L=ym(),{name:H}=L.currentRoute.value;L.push({name:(Array.isArray(H)?H[0]:H)||"home",params:O})}function gm(O,L){const H=Array.isArray(O==null?void 0:O.id)?O.id[0]:O==null?void 0:O.id;if(H&&L.type){const $e=Array.isArray(O==null?void 0:O.panel)?O.panel[0]:O==null?void 0:O.panel;tn({id:H,__type:""+L.type},$e||_.value||"")}}function ym(){if(!le.value.router)throw new Error("Vue Router must be configured in danxOptions");return le.value.router}return{name:t,label:e.label||t,pagedItems:i,activeFilter:s,globalFilter:l,filterActiveCount:p,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFilters:m,isLoadingSummary:d,pager:b,pagination:y,activeItem:h,activePanel:_,initialize:H3,resetPaging:B,setPagination:$,setSelectedRows:R,clearSelectedRows:Q,loadList:C,loadSummary:T,loadListAndSummary:w,loadMore:se,loadFieldOptions:E,getActiveItemDetails:At,refreshAll:te,exportList:Dt,setActiveItem:St,getNextItem:Lo,activatePanel:tn,setActiveFilter:ft,applyFilterFromUrl:N,getFieldOptions:k}}function F3(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,s=o.ref(Ht(n)||[]),l=o.ref(Ht(r,[])),a=o.ref(Ht(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((_,g)=>{const m=s.value.indexOf(_.name),p=s.value.indexOf(g.name);return m===-1?1:p===-1?-1:m-p})),d=o.computed({get(){return u.value.slice(1)},set(_){s.value=[...c.value.map(g=>g.name),..._.map(g=>g.name)],Gt(n,s.value)}}),f=o.computed(()=>u.value.filter(_=>!l.value.includes(_.name))),h=o.computed(()=>u.value.filter(_=>a.value.includes(_.name)));return o.watch(()=>l.value,()=>Gt(r,l.value)),o.watch(()=>a.value,()=>Gt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const O3={class:"flex space-x-2"},$3=["innerHTML"],Sa={__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 Tt(r);case"CURRENCY":return no(r);case"DATE":return _t(r);case"DATETIME":return rr(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",O3,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(Qr),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,s=>(o.openBlock(),o.createBlock(o.unref(Qr),{key:"file-"+s.id,file:s,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,$3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},A3={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},D3={class:"flex-grow text-sm w-3/5 overflow-auto"},P3={class:"flex flex-nowrap items-center mt-4"},M3={class:"bg-red-200 line-through p-2"},v3={class:"bg-emerald-200 ml-2.5 p-2"},L3={class:"ml-4 text-sm w-2/5"},q3=["href"],V3={__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",A3,[o.createElementVNode("div",D3,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",P3,[o.createElementVNode("div",M3,[o.createVNode(o.unref(Sa),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",v3,[o.createVNode(o.unref(Sa),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",L3,[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(rr)(t.item.timestamp)),9,q3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(rr)(t.item.timestamp)),1)],64))])])]))}},R3=["href","target","onClick"],U3={key:0,class:"flex-shrink-0"},j3={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=le.value.router,r=o.computed(()=>e.items.filter(a=>!a.hidden));function i(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function s(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(i(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(i(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=o.resolveComponent("QTooltip"),d=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,f=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[o.createElementVNode("a",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>s(h,f)},[f.icon?(o.openBlock(),o.createElementBlock("div",U3,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.icon),{class:o.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",f.labelClass])},o.toDisplayString(f.label),3)),t.collapsed?(o.openBlock(),o.createBlock(u,o.normalizeProps(o.mergeProps({key:2},f.tooltip)),{default:o.withCtx(()=>{var h;return[o.createTextVNode(o.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,R3),f.separator?(o.openBlock(),o.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},z3={name:"quasar-ui-danx",version:"0.4.19",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},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:mm}=z3;function G3(){console.log(`Installing Danx UI ${mm}... Nothing to do really.`)}S.ActionForm=s3,S.ActionMenu=ha,S.ActionTable=hm,S.ActionTableColumn=v_,S.ActionTableHeaderColumn=R_,S.ActionTableLayout=I3,S.ActionToolbar=_m,S.ActionVnode=yh,S.AddressFormat=TS,S.AuditHistoryItem=V3,S.AuditHistoryItemValue=Sa,S.AutoHeightTransition=HS,S.BadgeTab=VS,S.BooleanField=pa,S.CaretDownIcon=th,S.CollapsableFiltersSidebar=nm,S.CollapsableSidebar=ph,S.ColumnListItem=ma,S.ColumnSettingsDialog=yE,S.ConfirmActionDialog=Yx,S.ConfirmDialog=dr,S.ConfirmPasswordField=OE,S.ContentDrawer=Cl,S.DateField=ya,S.DateRangeField=ba,S.DateTime=D,S.DateTimeField=VE,S.DateTimePicker=wa,S.DragAndDrop=_a,S.DragHandleDotsIcon=nh,S.DragHandleIcon=rh,S.EditOnClickTextField=XE,S.EditableDiv=RE,S.EmptyTableState=am,S.ExportButton=Jf,S.FieldLabel=kt,S.FilePreview=Qr,S.FileUpload=Kr,S.FileUploadButton=eT,S.FilterIcon=ih,S.FilterItem=em,S.FilterList=tm,S.FilterListToggle=rm,S.FilterToolbarLayout=QT,S.FilterableField=xa,S.FlashMessages=qe,S.FlatListFormat=NS,S.FullScreenCarouselDialog=hh,S.FullScreenDialog=sS,S.GpsCoordinatesFormat=FS,S.HandleDraggable=L_,S.IconWithTextFormat=$S,S.ImageIcon=xl,S.IndicatorTab=jS,S.InfoDialog=_h,S.InlineDateTimeField=rT,S.InputDialog=aS,S.IntegerField=z_,S.InteractiveTooltip=vS,S.LabelValueBlock=lT,S.LabelValueFormat=DS,S.LabeledInput=ga,S.ListDragAndDrop=q_,S.ListItemDraggable=V_,S.ListTransition=kh,S.MaxHeightTransition=WS,S.MaxLengthCounter=j_,S.MultiFileField=G_,S.MultiKeywordField=H_,S.NavigationMenu=j3,S.NewPasswordField=fT,S.NumberField=hi,S.NumberRangeField=vo,S.PanelsDrawer=lm,S.PanelsDrawerPanels=om,S.PanelsDrawerTabs=sm,S.PdfIcon=oh,S.PercentIcon=sh,S.PopoverMenu=wh,S.PreviousNextControls=uh,S.RefreshButton=eh,S.RenderComponent=bh,S.RenderVnode=kn,S.RenderedForm=im,S.SERVER_TZ=Vs,S.SelectDrawer=gT,S.SelectField=_i,S.SelectWithChildrenField=W_,S.SingleFileField=Z_,S.SkipNextIcon=lh,S.SkipPreviousIcon=ah,S.SlideTransition=ZS,S.SliderNumberField=CT,S.StaggeredListTransition=cE,S.SvgImg=mh,S.TableSummaryRow=fm,S.TextField=fi,S.TitleColumnFormat=U_,S.TrashIcon=ko,S.VisibleColumnsToggleButtons=SE,S.WarningIcon=ch,S.WysiwygField=J_,S.XIcon=xo,S.activeActionVnode=rn,S.addHotkey=Mk,S.applyCssVars=jk,S.buildCssVars=kl,S.centerTruncate=eg,S.configure=wm,S.danxOptions=le,S.dbDateTime=js,S.diffInDays=og,S.download=ro,S.downloadFile=ad,S.downloadFileResponse=cd,S.fBoolean=id,S.fCurrency=no,S.fCurrencyNoCents=Q0,S.fDate=_t,S.fDateTime=to,S.fElapsedTime=K0,S.fJSON=ld,S.fLocalizedDateTime=rr,S.fMarkdownCode=ig,S.fNameOrCount=sd,S.fNumber=Tt,S.fPercent=od,S.fPhone=tg,S.fQDate=Z0,S.fSecondsToTime=Y0,S.fShortCurrency=X0,S.fShortNumber=rd,S.fShortSize=J0,S.fetchResourceListWithSelected=Rk,S.getFilterFromUrl=dm,S.getItem=Ht,S.getResponseHeader=Gs,S.getUrlParam=Yf,S.incrementName=Fa,S.install=G3,S.isJSON=Oa,S.latestCallOnly=jo,S.listen=vk,S.localizedDateTime=Rs,S.mapSortBy=um,S.metersToMiles=Pm,S.milesToMeters=Mm,S.minmax=Dm,S.notify=Bm,S.parseCoords=vm,S.parseDateTime=pn,S.parseMarkdownCode=zs,S.parseMarkdownJSON=ng,S.parseMarkdownYAML=rg,S.parseQDate=eo,S.parseQDateTime=Us,S.pollUntil=Am,S.refreshApplication=Om,S.registerHotkeys=qk,S.registerStickyScrolling=cm,S.remoteDateTime=nd,S.remove=Sr,S.replace=Ro,S.request=be,S.resolveFileLocation=Gf,S.setItem=Gt,S.sleep=Cr,S.storeObject=Ne,S.uniqueBy=$m,S.unlisten=Lk,S.useActionRoutes=Uk,S.useActions=Fm,S.useCompatibility=Da,S.useDebounceFn=nn,S.useListControls=B3,S.useMultiFileUpload=Zf,S.useSingleFileUpload=Kf,S.useTableColumns=F3,S.version=mm,S.waitForRef=Uo,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
154
154
  //# sourceMappingURL=danx.umd.js.map