quasar-ui-danx 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +4 -3
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +2 -2
- package/dist/danx.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/request.ts +3 -2
- package/src/types/requests.d.ts +1 -1
package/dist/danx.umd.js
CHANGED
@@ -4,7 +4,7 @@ ${Ca(t)}
|
|
4
4
|
|
5
5
|
Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var C=document.createElement("iframe");document.body.appendChild(C),w||(k="data:"+k.replace(/^data:([\w/\-+]+)/,i)),C.src=k,setTimeout(function(){document.body.removeChild(C)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(_,f);if(r.URL)y(r.URL.createObjectURL(_),!0);else{if(typeof _=="string"||_.constructor===u)try{return y("data:"+l+";base64,"+r.btoa(_))}catch{return y("data:"+l+","+encodeURIComponent(_))}m=new FileReader,m.onload=function(k){y(this.result)},m.readAsDataURL(_)}return!0}async function Ta(t,e="",n=null){var s;let r;n&&(r={method:"POST",headers:{...(s=ue.value.request)==null?void 0:s.headers},body:JSON.stringify(n)});const i=await fetch(t,r);if(!i.ok)throw Error("File download failed: invalid response from server");let l;try{const a=JSON.parse(new TextDecoder().decode(i.data));console.error("Error downloading file:",a),l=a.message,a.errors&&(l=a.errors[0].message)}catch{}if(l)throw new Error("Failed to download file: "+l);await Ea(i,e)}async function Ea(t,e=""){const n=ti(t,"content-disposition",""),r=ti(t,"content-type",""),i=n.match(/filename="([^"]+)"/);e=e||i&&i[1]||"download.pdf";let l=t.data;l||(l=await t.blob()),zr(l,e,r)}function ti(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let va=class{constructor(e){if(rp(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function rp(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function Ba(t,e,n){try{return new DataView(t,e,n)}catch{return new va(t,e,n)}}function P(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i++)r.push(t.getUint8(e+i));return Sn(r)}function wn(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const i=t.getUint8(e+r);if(i===0)break;n.push(i),r++}return Sn(n)}function op(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i+=2)r.push(t.getUint16(e+i));return r[r.length-1]===0&&r.pop(),Sn(r)}function Ia(t,e){const n=t.getUint8(e),r=P(t,e+1,n);return[n,r]}function Sn(t){return t.map(e=>String.fromCharCode(e)).join("")}function M(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function Na(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function Fa(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function ip(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function lp(t,e,n){return Da(n,e-t.length)+t}function sp(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function Da(t,e){return new Array(e+1).join(t)}const qr=void 0,Oa=0;function $a(t,e,n="string"){if(e===Oa&&typeof DecompressionStream=="function"){const r=new DecompressionStream("deflate"),i=new Blob([t]).stream().pipeThrough(r);return n==="dataview"?new Response(i).arrayBuffer().then(l=>new DataView(l)):new Response(i).text()}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const Aa={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0};function se(t){return t.map(e=>String.fromCharCode(e)).join("")}function ni(t){if(t.length>=8){const e=se(t.slice(0,8));if(e==="ASCII\0\0\0")return se(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function jr(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const ri=18761,oi=19789,Ht={BIG_ENDIAN:oi,LITTLE_ENDIAN:ri,getByteOrder:ap};function ap(t,e){if(t.getUint16(e)===ri)return ri;if(t.getUint16(e)===oi)return oi;throw new Error("Illegal byte order value. Faulty image.")}const Pa={isTiffFile:cp,findTiffOffsets:dp};function cp(t){return!!t&&t.byteLength>=4&&up(t)}function up(t){const r=t.getUint16(0)===Ht.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function dp(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const Ma={isJpegFile:vp,findJpegOffsets:Bp},fp=2,_p=65496,Va=2,ze=4,pe=2,mp=2,pp=10,hp=18,La=33,Ra=79,Ua=18,gp=8,ii="ICC_PROFILE\0",za=ze+ii.length,yp=za+1,qa="MPF\0",ja=65472,Ga=65474,bp=65476,xp=65499,kp=65501,wp=65498,Ha=65504,li=65505,Za=65506,Sp=65517,Cp=65519,Tp=65534,Ep=65535,Wa="JFIF",Ya="Exif",Qa="http://ns.adobe.com/xap/1.0/\0",Xa="http://ns.adobe.com/xmp/extension/\0",Ka="Photoshop 3.0";function vp(t){return!!t&&t.byteLength>=fp&&t.getUint16(0)===_p}function Bp(t){let e=Va,n,r,i,l,s,a,c,u,d;for(;e+ze+5<=t.byteLength;){if(Ip(t,e))n=t.getUint16(e+pe),r=e+pe;else if(Np(t,e))n=t.getUint16(e+pe),i=e+pe;else if(Op(t,e))n=t.getUint16(e+pe),l=e+mp;else if($p(t,e))n=t.getUint16(e+pe),s=e+pp;else if(Ap(t,e))c||(c=[]),n=t.getUint16(e+pe),c.push(Lp(e,n));else if(Mp(t,e))c||(c=[]),n=t.getUint16(e+pe),c.push(Rp(e,n));else if(Up(t,e))n=t.getUint16(e+pe),a=e+hp;else if(Fp(t,e)){n=t.getUint16(e+pe);const f=e+Ua,_=n-(Ua-pe),m=t.getUint8(e+za),h=t.getUint8(e+yp);u||(u=[]),u.push({offset:f,length:_,chunkNumber:m,chunksTotal:h})}else if(Dp(t,e))n=t.getUint16(e+pe),d=e+gp;else if(zp(t,e))n=t.getUint16(e+pe);else if(qp(t,e)){e++;continue}else break;e+=pe+n}return{hasAppMarkers:e>Va,fileDataOffset:r||i,jfifDataOffset:l,tiffHeaderOffset:s,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function Ip(t,e){return t.getUint16(e)===ja}function Np(t,e){return t.getUint16(e)===Ga}function Fp(t,e){const n=ii.length;return t.getUint16(e)===Za&&P(t,e+ze,n)===ii}function Dp(t,e){const n=qa.length;return t.getUint16(e)===Za&&P(t,e+ze,n)===qa}function Op(t,e){const n=Wa.length;return t.getUint16(e)===Ha&&P(t,e+ze,n)===Wa&&t.getUint8(e+ze+n)===0}function $p(t,e){const n=Ya.length;return t.getUint16(e)===li&&P(t,e+ze,n)===Ya&&t.getUint8(e+ze+n)===0}function Ap(t,e){return t.getUint16(e)===li&&Pp(t,e)}function Pp(t,e){const n=Qa.length;return P(t,e+ze,n)===Qa}function Mp(t,e){return t.getUint16(e)===li&&Vp(t,e)}function Vp(t,e){const n=Xa.length;return P(t,e+ze,n)===Xa}function Lp(t,e){return{dataOffset:t+La,length:e-(La-pe)}}function Rp(t,e){return{dataOffset:t+Ra,length:e-(Ra-pe)}}function Up(t,e){const n=Ka.length;return t.getUint16(e)===Sp&&P(t,e+ze,n)===Ka&&t.getUint8(e+ze+n)===0}function zp(t,e){const n=t.getUint16(e);return n>=Ha&&n<=Cp||n===Tp||n===ja||n===Ga||n===bp||n===xp||n===kp||n===wp}function qp(t,e){return t.getUint16(e)===Ep}const Ja={isPngFile:Hp,findPngOffsets:Zp},si=`PNG\r
|
6
6
|
|
7
|
-
`,Gr=4,Ke=4,Cn=0,Tt=Gr,_e=Gr+Ke,ai="XML:com.adobe.xmp\0",ec="tEXt",Zt="iTXt",ci="zTXt",tc="pHYs",nc="tIME",jp="eXIf",Gp="iCCP";function Hp(t){return!!t&&P(t,0,si.length)===si}function Zp(t,e){const r={hasAppMarkers:!1};let i=si.length;for(;i+Gr+Ke<=t.byteLength;){if(Wp(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+_e;else if(Yp(t,i)){const l=e0(t,i);l!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:l,length:t.getUint32(i+Cn)-(l-(i+_e))}])}else if(Qp(t,i,e)){r.hasAppMarkers=!0;const l=P(t,i+Tt,Ke);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+Cn),type:l,offset:i+_e})}else if(Xp(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+_e;else if(e&&Kp(t,i)){r.hasAppMarkers=!0;const l=t.getUint32(i+Cn),s=i+_e,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=t0(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:l-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else Jp(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+Cn));i+=t.getUint32(i+Cn)+Gr+Ke+4}return r}function Wp(t,e){return P(t,e+Tt,Ke)==="IHDR"}function Yp(t,e){return P(t,e+Tt,Ke)===Zt&&P(t,e+_e,ai.length)===ai}function Qp(t,e,n){const r=P(t,e+Tt,Ke);return r===ec||r===Zt||r===ci&&n}function Xp(t,e){return P(t,e+Tt,Ke)===jp}function Kp(t,e){return P(t,e+Tt,Ke)===Gp}function Jp(t,e){const n=[tc,nc],r=P(t,e+Tt,Ke);return n.includes(r)}function e0(t,e){e+=_e+ai.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function t0(t,e){const i=wn(t,e);e+=i.length+1;const l=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:l,compressedProfileOffset:e}}function n0(t,e){return t.getUint32(e+4)}function r0(t,e,n,r){const{offsets:l,sizes:s}=o0(e,n+3),a=t.getUint8(l.offsetSize)>>4;s.item.extent.extentOffset=a;const c=t.getUint8(l.lengthSize)&15;s.item.extent.extentLength=c;const u=t.getUint8(l.baseOffsetSize)>>4;s.item.baseOffset=u;const d=i0(t,l.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=l0(t,l.itemCount,e);return{type:"iloc",items:s0(t,e,l,s,a,c,d,f),length:r}}function o0(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function i0(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function l0(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function s0(t,e,n,r,i,l,s,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=a0(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Hr(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let _=0;_<f.extentCount;_++){const m={};m.extentIndex=c0(t,e,u,s),u+=r.item.extent.extentIndex,m.extentOffset=Hr(t,u,i),u+=r.item.extent.extentOffset,m.extentLength=Hr(t,u,l),u+=r.item.extent.extentLength,f.extents.push(m)}c.push(f)}return c}function a0(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function c0(t,e,n,r){if((e===1||e===2)&&r>0)return Hr(t,n,r)}function Hr(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),n0(t,e)):0}const u0=1718909296,d0=1768977008,f0=1835365473,_0=1768714083,m0=1768517222,p0=1768842853,h0=1768973167,g0=1668246642,rc=1165519206,ui=1835625829,y0=1970432288;function Zr(t,e){const{length:l,contentOffset:s}=b0(t,e);if(l<8)return;const a=t.getUint32(e+4);if(a===u0)return N0(t,s,l);if(a===d0)return F0(t,e,s,l);if(a===h0)return D0(t,e,s,l);if(a===g0)return O0(t,s,l);const c=t.getUint8(s);return a===f0?A0(t,e,s+1,l):a===_0?r0(t,c,s+1,l):a===m0?P0(t,e,c,s+1,l):a===p0?V0(t,e,c,s+1,l):{type:void 0,length:l}}function b0(t,e){const s=t.getUint32(e);return x0(s)?{length:t.byteLength-e,contentOffset:e+4+4}:k0(s)&&w0(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function x0(t){return t===0}function k0(t){return t===1}function w0(t,e){return t.getUint32(e+8)===0}function oc(t){{const e={},n=S0(t);return n?(e.tiffHeaderOffset=C0(t,n),e.xmpChunks=v0(n),e.iccChunks=I0(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function S0(t){let r=0;for(;r+4+4<=t.byteLength;){const i=Zr(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function C0(t,e){try{const n=T0(e).itemId,r=di(e,n),i=r.baseOffset+r.extents[0].extentOffset;return E0(t,i)}catch{return}}function T0(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===rc)}function di(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function E0(t,e){return e+4+t.getUint32(e)}function v0(t){try{const e=B0(t).itemId,n=di(t,e),r=di(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function B0(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ui&&e.contentType==="application/rdf+xml")}function I0(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function N0(t,e,n){return{type:"ftyp",majorBrand:P(t,e,4),length:n}}function F0(t,e,n,r){return{type:"iprp",subBoxes:Wr(t,n,r-(n-e)),length:r}}function D0(t,e,n,r){return{type:"ipco",properties:Wr(t,n,r-(n-e)),length:r}}function O0(t,e,n){return{type:"colr",icc:$0(t,e),length:n}}function $0(t,e){const r=P(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function A0(t,e,n,r){return{type:"meta",subBoxes:Wr(t,n+3,r-(n+3-e)),length:r}}function Wr(t,e,n){const r=[rc,ui],i=[];let l=e;for(;l<e+n;){const s=Zr(t,l);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),l+=s.length}return i}function P0(t,e,n,r,i){const{offsets:l}=M0(n,r);return{type:"iinf",itemInfos:Wr(t,l.itemInfos,i-(l.itemInfos-e)),length:i}}function M0(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function V0(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=wn(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=wn(t,r),r+=s.itemName.length+1,s.itemType===ui?(s.contentType=wn(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=wn(t,r),r+=s.contentEncoding.length+1)):s.itemType===y0&&(s.itemUri=wn(t,r),r+=s.itemUri.length+1)),s}const ic={isHeicFile:L0,findHeicOffsets:R0};function L0(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Zr(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function R0(t){return oc(t)}const lc={isAvifFile:U0,findAvifOffsets:z0};function U0(t){if(!t)return!1;try{const e=Zr(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function z0(t){return oc(t)}const sc={isWebpFile:q0,findOffsets:j0};function q0(t){const n="RIFF",i="WEBP";return!!t&&P(t,0,n.length)===n&&P(t,8,i.length)===i}function j0(t){const r="Exif\0\0";let l=12,s=!1,a,c,u,d;for(;l+8<t.byteLength;){const f=P(t,l,4),_=t.getUint32(l+4,!0);f==="EXIF"?(s=!0,P(t,l+8,r.length)===r?a=l+8+r.length:a=l+8):f==="XMP "?(s=!0,c=[{dataOffset:l+8,length:_}]):f==="ICCP"?(s=!0,u=[{offset:l+8,length:_,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=l+8),l+=8+(_%2===0?_:_+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const ac={isGifFile:Z0,findOffsets:W0},G0=6,H0=["GIF87a","GIF89a"];function Z0(t){return!!t&&H0.includes(P(t,0,G0))}function W0(){return{gifHeaderOffset:0}}const Y0={parseAppMarkers:Q0};function Q0(t,e){if(Pa.isTiffFile(t))return Wt(Pa.findTiffOffsets(),"tiff","TIFF");if(Ma.isJpegFile(t))return Wt(Ma.findJpegOffsets(t),"jpeg","JPEG");if(Ja.isPngFile(t))return Wt(Ja.findPngOffsets(t,e),"png","PNG");if(ic.isHeicFile(t))return Wt(ic.findHeicOffsets(t),"heic","HEIC");if(lc.isAvifFile(t))return Wt(lc.findAvifOffsets(t),"avif","AVIF");if(sc.isWebpFile(t))return Wt(sc.findOffsets(t),"webp","WebP");if(ac.isGifFile(t))return Wt(ac.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function Wt(t,e,n){return M({},t,{fileType:{value:e,description:n}})}const A={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},cc={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:A.XResolution},283:{name:"YResolution",description:A.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:A.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:A.LightSource},50779:{name:"CalibrationIlluminant2",description:A.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},X0={33434:{name:"ExposureTime",description:A.ExposureTime},33437:{name:"FNumber",description:A.FNumber},34850:{name:"ExposureProgram",description:A.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>se(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:A.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:A.ShutterSpeedValue},37378:{name:"ApertureValue",description:A.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:A.MeteringMode},37384:{name:"LightSource",description:A.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:A.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:ni},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:A.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:A.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:A.CustomRendered},41986:{name:"ExposureMode",description:A.ExposureMode},41987:{name:"WhiteBalance",description:A.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:A.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:A.Contrast},41993:{name:"Saturation",description:A.Saturation},41994:{name:"Sharpness",description:A.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},K0={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:jr},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:jr},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:ni},28:{name:"GPSAreaInformation",description:ni},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},J0={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>se(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},e1={45056:{name:"MPFVersion",description:t=>se(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},uc=M({},cc,X0),fi="0th",dc="1st",fc="exif",_c="gps",mc="interoperability",pc="mpf",Et={[fi]:uc,[dc]:cc,[fc]:uc,[_c]:K0,[mc]:J0,[pc]:e1},hc={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},_i={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},I={getAsciiValue:t1,getByteAt:gc,getAsciiAt:n1,getShortAt:r1,getLongAt:Yr,getRationalAt:o1,getUndefinedAt:i1,getSlongAt:mi,getSrationalAt:l1,getIfdPointerAt:s1,typeSizes:hc,tagTypes:_i,getTypeSize:a1};function t1(t){return t.map(e=>String.fromCharCode(e))}function gc(t,e){return t.getUint8(e)}function n1(t,e){return t.getUint8(e)}function r1(t,e,n){return t.getUint16(e,n===Ht.LITTLE_ENDIAN)}function Yr(t,e,n){return t.getUint32(e,n===Ht.LITTLE_ENDIAN)}function o1(t,e,n){return[Yr(t,e,n),Yr(t,e+4,n)]}function i1(t,e){return gc(t,e)}function mi(t,e,n){return t.getInt32(e,n===Ht.LITTLE_ENDIAN)}function l1(t,e,n){return[mi(t,e,n),mi(t,e+4,n)]}function s1(t,e,n){return Yr(t,e,n)}function a1(t){if(_i[t]===void 0)throw new Error("No such type found.");return hc[_i[t]]}const c1={1:I.getByteAt,2:I.getAsciiAt,3:I.getShortAt,4:I.getLongAt,5:I.getRationalAt,7:I.getUndefinedAt,9:I.getSlongAt,10:I.getSrationalAt,13:I.getIfdPointerAt};function yc(t,e,n){return e+I.getLongAt(t,e+4,n)}function Tn(t,e,n,r,i,l){const s=I.getTypeSize("SHORT"),a=12,c={},u=u1(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=d1(t,e,n,r,i,l);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-I.getTypeSize("LONG")){const d=I.getLongAt(t,r,i);d!==0&&e===fi&&(c.Thumbnail=Tn(t,dc,n,n+d,i,!0))}return c}function u1(t,e,n){return e+I.getTypeSize("SHORT")<=t.byteLength?I.getShortAt(t,e,n):0}function d1(t,e,n,r,i,l){const a=I.getTypeSize("SHORT"),c=a+I.getTypeSize("SHORT"),u=c+I.getTypeSize("LONG"),d=I.getShortAt(t,r,i),f=I.getShortAt(t,r+a,i),_=I.getLongAt(t,r+c,i);let m;if(I.typeSizes[f]===void 0||!l&&Et[e][d]===void 0)return;if(f1(f,_))m=bc(t,r+u,f,_,i);else{const y=I.getLongAt(t,r+u,i);if(_1(t,n,y,f,_)){const k=d===33723;m=bc(t,n+y,f,_,i,k)}else m="<faulty value>"}f===I.tagTypes.ASCII&&(m=m1(m),m=p1(m));let h=`undefined-${d}`,p=m;if(Et[e][d]!==void 0)if(Et[e][d].name!==void 0&&Et[e][d].description!==void 0){h=Et[e][d].name;try{p=Et[e][d].description(m)}catch{p=xc(m)}}else f===I.tagTypes.RATIONAL||f===I.tagTypes.SRATIONAL?(h=Et[e][d],p=""+m[0]/m[1]):(h=Et[e][d],p=xc(m));return{id:d,name:h,value:m,description:p}}function f1(t,e){return I.typeSizes[t]*e<=I.getTypeSize("LONG")}function bc(t,e,n,r,i,l=!1){let s=[];l&&(r=r*I.typeSizes[n],n=I.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(c1[n](t,e,i)),e+=I.typeSizes[n];return n===I.tagTypes.ASCII?s=I.getAsciiValue(s):s.length===1&&(s=s[0]),s}function _1(t,e,n,r,i){return e+n+I.typeSizes[r]*i<=t.byteLength}function m1(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function p1(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function xc(t){return t instanceof Array?t.join(", "):t}const kc="Exif IFD Pointer",wc="GPS Info IFD Pointer",Sc="Interoperability IFD Pointer",Cc={read:h1};function h1(t,e,n){const r=Ht.getByteOrder(t,e);let i=g1(t,e,r,n);return i=y1(i,t,e,r,n),i=b1(i,t,e,r,n),i=x1(i,t,e,r,n),i}function g1(t,e,n,r){return Tn(t,fi,e,yc(t,e,n),n,r)}function y1(t,e,n,r,i){return t[kc]!==void 0?M(t,Tn(e,fc,n,n+t[kc].value,r,i)):t}function b1(t,e,n,r,i){return t[wc]!==void 0?M(t,Tn(e,_c,n,n+t[wc].value,r,i)):t}function x1(t,e,n,r,i){return t[Sc]!==void 0?M(t,Tn(e,mc,n,n+t[Sc].value,r,i)):t}const k1={read:w1},En=16;function w1(t,e,n){const r=Ht.getByteOrder(t,e),i=Tn(t,pc,e,yc(t,e,r),r,n);return S1(t,e,i,r)}function S1(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let l=0;l<Math.ceil(n.MPEntry.value.length/En);l++){i[l]={};const s=er(n.MPEntry.value,l*En,I.getTypeSize("LONG"),r);i[l].ImageFlags=C1(s),i[l].ImageFormat=T1(s),i[l].ImageType=E1(s);const a=er(n.MPEntry.value,l*En+4,I.getTypeSize("LONG"),r);i[l].ImageSize={value:a,description:""+a};const c=v1(l,n.MPEntry,r,e);i[l].ImageOffset={value:c,description:""+c};const u=er(n.MPEntry.value,l*En+12,I.getTypeSize("SHORT"),r);i[l].DependentImage1EntryNumber={value:u,description:""+u};const d=er(n.MPEntry.value,l*En+14,I.getTypeSize("SHORT"),r);i[l].DependentImage2EntryNumber={value:d,description:""+d},i[l].image=t.buffer.slice(c,c+a),Na(i[l],"base64",function(){return Fa(this.image)})}return n.Images=i,n}function er(t,e,n,r){if(r===Ht.LITTLE_ENDIAN){let l=0;for(let s=0;s<n;s++)l+=t[e+s]<<8*s;return l}let i=0;for(let l=0;l<n;l++)i+=t[e+l]<<8*(n-1-l);return i}function C1(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function T1(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function E1(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function v1(t,e,n,r){return B1(t)?0:er(e.value,t*En+8,I.getTypeSize("LONG"),n)+r}function B1(t){return t===0}const I1={read:N1};function N1(t,e){const n=F1(t,e),r=A1(t,e,n);return{"Bits Per Sample":D1(t,e,n),"Image Height":O1(t,e,n),"Image Width":$1(t,e,n),"Color Components":r,Subsampling:r&&P1(t,e,r.value,n)}}function F1(t,e){return I.getShortAt(t,e)}function D1(t,e,n){if(3>n)return;const l=I.getByteAt(t,e+2);return{value:l,description:""+l}}function O1(t,e,n){if(5>n)return;const l=I.getShortAt(t,e+3);return{value:l,description:`${l}px`}}function $1(t,e,n){if(7>n)return;const l=I.getShortAt(t,e+5);return{value:l,description:`${l}px`}}function A1(t,e,n){if(8>n)return;const l=I.getByteAt(t,e+7);return{value:l,description:""+l}}function P1(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const c=e+8+a*3;s.push([I.getByteAt(t,c),I.getByteAt(t,c+1),I.getByteAt(t,c+2)])}return{value:s,description:s.length>1?M1(s)+V1(s):""}}function M1(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function V1(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const L1={read:R1};function R1(t,e){const n=U1(t,e),r=Z1(t,e,n),i=W1(t,e,n),l={"JFIF Version":z1(t,e,n),"Resolution Unit":q1(t,e,n),XResolution:G1(t,e,n),YResolution:H1(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=Y1(t,e,3*r.value*i.value,n);s&&(l["JFIF Thumbnail"]=s)}for(const s in l)l[s]===void 0&&delete l[s];return l}function U1(t,e){return I.getShortAt(t,e)}function z1(t,e,n){if(9>n)return;const l=I.getByteAt(t,e+7),s=I.getByteAt(t,e+7+1);return{value:l*256+s,description:l+"."+s}}function q1(t,e,n){if(10>n)return;const l=I.getByteAt(t,e+9);return{value:l,description:j1(l)}}function j1(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function G1(t,e,n){if(12>n)return;const l=I.getShortAt(t,e+10);return{value:l,description:""+l}}function H1(t,e,n){if(14>n)return;const l=I.getShortAt(t,e+12);return{value:l,description:""+l}}function Z1(t,e,n){if(15>n)return;const l=I.getByteAt(t,e+14);return{value:l,description:`${l}px`}}function W1(t,e,n){if(16>n)return;const l=I.getByteAt(t,e+15);return{value:l,description:`${l}px`}}function Y1(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const vt={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:pi},336:{name:"Time Sent",description:hi},346:{name:"Coded Character Set",description:Tc,encoding_name:Tc},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>se(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=se(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=se(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:pi},572:{name:"Time Created",description:hi},574:{name:"Digital Creation Date",description:pi},575:{name:"Digital Creation Time",description:hi},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=se(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=se(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=se(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(se(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(se(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=se(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return se(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=se(t);if(e["ObjectData Preview File Format"]){const i=se(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function pi(t){const e=se(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function hi(t){const e=se(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function Tc(t){const e=se(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const Q1={get:X1};function X1(){if(typeof TextDecoder<"u")return TextDecoder}const Ec={decode:K1,TAG_HEADER_SIZE:5};function K1(t,e){const n=Q1.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return J1(r)}function J1(t){try{return decodeURIComponent(escape(t))}catch{return t}}const eh=943868237,vc=4,gi=vc+8,th=1028,Bc=5,yi={read:nh};function nh(t,e,n){try{if(Array.isArray(t))return Ic(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=rh(t,e);return Ic(t,r,i,n)}catch{return{}}}function rh(t,e){for(;e+gi<=t.byteLength;){const n=oh(t,e);if(ih(n))return{naaBlock:n,dataOffset:e+gi};e+=gi+n.size+lh(n)}throw new Error("No IPTC NAA resource block.")}function oh(t,e){if(t.getUint32(e,!1)!==eh)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+vc),size:t.getUint16(e+10)}}function ih(t){return t.type===th}function lh(t){return t.size%2!==0?1:0}function Ic(t,e,n,r){const i={};let l;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:c}=sh(t,n,i,l,r);if(a===null)break;a&&("encoding"in a&&(l=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=Bc+c}return i}function sh(t,e,n,r,i){if(ah(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!i&&!vt.iptc[a])return{tag:void 0,tagSize:c};const u=ch(t,e+Bc,c),d={id:a,name:uh(vt.iptc[a],a,u),value:u,description:_h(vt.iptc[a],u,n,r)};return hh(a)&&(d.repeatable=!0),gh(a)&&(d.encoding=vt.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function ah(t,e){return t.getUint8(e)!==28}function ch(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function uh(t,e,n){return t?dh(t)?t:fh(t)?t.name(n):t.name:`undefined-${e}`}function dh(t){return typeof t=="string"}function fh(t){return typeof t.name=="function"}function _h(t,e,n,r){if(ph(t))try{return t.description(e,n)}catch{}return mh(t,e)?Ec.decode(r,e):e}function mh(t,e){return t&&e instanceof Array}function ph(t){return t&&t.description!==void 0}function hh(t){return vt.iptc[t]&&vt.iptc[t].repeatable}function gh(t){return vt.iptc[t]&&vt.iptc[t].encoding_name!==void 0}const Qr={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>A.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>vn(A.XResolution,t),"tiff:YResolution":t=>vn(A.YResolution,t),"exif:ApertureValue":t=>vn(A.ApertureValue,t),"exif:GPSLatitude":Fc,"exif:GPSLongitude":Fc,"exif:FNumber":t=>vn(A.FNumber,t),"exif:FocalLength":t=>vn(A.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>A.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>A.ColorSpace(yh(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return A.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>A.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>A.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>A.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>A.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return Nc(t)?A.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>A.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>A.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>A.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>A.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>vn(A.ShutterSpeedValue,t),"exif:WhiteBalance":t=>A.WhiteBalance(parseInt(t,10))};function vn(t,e){return Nc(e)?t(e.split("/")):e}function yh(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function Nc(t){return/^-?\d+\/-?\d+$/.test(t)}function Fc(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),l=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+l}return t}const bh={get:xh};function xh(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const Dc={read:kh};function kh(t,e){const n={};if(typeof t=="string")return Xr(n,t),n;const[r,i]=wh(t,e),l=Xr(n,r);if(i){const s=Xr(n,i);!l&&!s&&(delete n._raw,Xr(n,bi(t,e)))}return n}function wh(t,e){if(e.length===0)return[];const n=[bi(t,e.slice(0,1))];return e.length>1&&n.push(bi(t,e.slice(1))),n}function bi(t,e){const n=e.reduce((l,s)=>l+s.length,0),r=new Uint8Array(n);let i=0;for(let l=0;l<e.length;l++){const s=e[l],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function Xr(t,e){try{const{doc:n,raw:r}=Sh(e);t._raw=(t._raw||"")+r;const i=Oc(n);return M(t,Ac($c(i,!0))),!0}catch{return!1}}function Sh(t){const e=bh.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:P(t,0,t.byteLength),r=e.parseFromString(Ch(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function Ch(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function Oc(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return Oc(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function $c(t,e=!1){const n=Th(t);return Eh(n)?e?{}:vh(n[0]):Bh(n)}function Th(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function Eh(t){return t.length===1&&t[0].nodeName==="#text"}function vh(t){return t.nodeValue}function Bh(t){const e={};return t.forEach(n=>{if(Ih(n)){const r=Nh(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function Ih(t){return t.nodeName&&t.nodeName!=="#text"}function Nh(t){return{attributes:Fh(t),value:$c(t)}}function Fh(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function Ac(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{M(e,xi(i.attributes)),typeof i.value=="object"&&M(e,Pc(i.value))})}return e}function xi(t){const e={};for(const n in t)try{Dh(n)&&(e[Jr(n)]={value:t[n],attributes:{},description:dt(t[n],n)})}catch{}return e}function Dh(t){return t!=="rdf:parseType"&&!Kr(t)}function Kr(t){return t.split(":")[0]==="xmlns"}function Jr(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function dt(t,e=void 0){if(Array.isArray(t)){const n=Oh(t);return e&&typeof Qr[e]=="function"?Qr[e](t,n):n}if(typeof t=="object")return $h(t);try{return e&&typeof Qr[e]=="function"?Qr[e](t):decodeURIComponent(escape(t))}catch{return t}}function Oh(t){return t.map(e=>e.value!==void 0?dt(e.value):dt(e)).join(", ")}function $h(t){const e=[];for(const n in t)e.push(`${Ah(n)}: ${dt(t[n].value)}`);return e.join("; ")}function Ah(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function Pc(t){const e={};for(const n in t)try{Kr(n)||(e[Jr(n)]=Ph(t[n],n))}catch{}return e}function Ph(t,e){return Vh(t)?Lh(t,e):Mh(t)?{value:"",attributes:{},description:""}:Mc(t)?Vc(t,e):Lc(t)?Rc(t,e):Uc(t)?zc(t,e):zh(t)?qh(t,e):ki(t,e)}function Mh(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function Vh(t){return Array.isArray(t)}function Lh(t,e){return ki(t[t.length-1],e)}function Mc(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function Vc(t,e){const n=tr(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),M(n,tr(t),Rh(t));const r=Uh(t);return{value:r,attributes:n,description:dt(r,e)}}function tr(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Kr(n)&&(e[Jr(n)]=t.attributes[n]);return e}function Rh(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Kr(n)&&(e[Jr(n)]=t.value[n].value);return e}function Uh(t){return jc(t.value["rdf:value"])||t.value["rdf:value"].value}function Lc(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function Rc(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(M(n.value,xi(t.value["rdf:Description"].attributes)),M(n.attributes,tr(t)),t=t.value["rdf:Description"]),M(n.value,Pc(t.value)),n.description=dt(n.value,e),n}function Uc(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function zc(t,e){const n=xi(t.attributes);return{value:n,attributes:{},description:dt(n,e)}}function zh(t){return qc(t.value)!==void 0}function qc(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function qh(t,e){let n=qc(t.value).value["rdf:li"];const r=tr(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(l=>{i.push(jh(l))}),{value:i,attributes:r,description:dt(i,e)}}function jh(t){return Mc(t)?Vc(t):Lc(t)?Rc(t).value:Uc(t)?zc(t).value:ki(t)}function ki(t,e){const n=jc(t)||Ac(t.value);return{value:n,attributes:tr(t),description:dt(n,e)}}function jc(t){return t.attributes&&t.attributes["rdf:resource"]}const ft={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},Gc=24,wi={2e3:{name:"PathInformation",description:Gh},2999:{name:"ClippingPathName",description(t){const[,e]=Ia(t,0);return e}}};function Gh(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+Gc){const l=I.getShortAt(t,i);Si[l]&&(n[l]||(n[l]=Si[l].description),r.push({type:l,path:Si[l].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const Si={[ft.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[I.getShortAt(t,e)]},[ft.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:eo},[ft.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:eo},[ft.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[I.getShortAt(t,e)]},[ft.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:eo},[ft.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:eo},[ft.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[ft.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[I.getShortAt(t,e)]},[ft.CLIPBOARD]:{description:"Clipboard",path:Zh}};function eo(t,e){const r=[];for(let i=0;i<Gc;i+=8)r.push(Hh(t,e+i));return r}function Hh(t,e){const n=Yt(t,e,8);return[Yt(t,e+4,8),n]}function Zh(t,e){return[[Yt(t,e,8),Yt(t,e+4,8),Yt(t,e+8,8),Yt(t,e+12,8)],Yt(t,e+16,8)]}function Yt(t,e,n){const r=I.getLongAt(t,e),i=r>>>31?-1:1,l=(r&2130706432)>>>32-n,s=r&parseInt(Da("1",32-n),2);return i*sp(l.toString(2)+"."+lp(s.toString(2),32-n,"0"),2)}const Wh={read:Xh},Hc="8BIM",Yh=2,Qh=4,Zc=Hc.length;function Xh(t,e){const n=Ba(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const l=P(n,i,Zc);i+=Zc;const s=I.getShortAt(n,i);i+=Yh;const{tagName:a,tagNameSize:c}=Kh(n,i);i+=c;const u=I.getLongAt(n,i);if(i+=Qh,l===Hc){const d=Ba(n.buffer,i,u),f={id:s,value:P(d,0,u)};if(wi[s]){try{f.description=wi[s].description(d)}catch{f.description="<no description formatter>"}r[a||wi[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function Kh(t,e){const[n,r]=Ia(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const Wc={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},Yc={4:{name:"Preferred CMM type",value:(t,e)=>P(t,e,4),description:t=>t!==null?Ci(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>P(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>P(t,e,4)},20:{name:"Connection Space",value:(t,e)=>P(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>Jh(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>eg(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>P(t,e,4),description:t=>Ci(t)},48:{name:"Device Manufacturer",value:(t,e)=>P(t,e,4),description:t=>Ci(t)},52:{name:"Device Model Number",value:(t,e)=>P(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>P(t,e,4)}};function Jh(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),l=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,l,s,a))}function eg(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ci(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const Qc={read:cg},tg=84,ng=128,rg="acsp",og="desc",ig="mluc",lg="text",sg="sig ",ag=12;function cg(t,e,n){return n&&e[0].compressionMethod!==qr?ug(t,e):fg(t,e)}function ug(t,e){if(!dg(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return $a(n,e[0].compressionMethod,"dataview").then(Xc).catch(()=>({}))}function dg(t){return t===Oa}function fg(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const l=_g(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const c=l.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,i),i+=u.length}return Xc(new DataView(r.buffer))}catch{return{}}}function _g(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function mg(t){return t.length<ng+4}function pg(t,e){return t.length<e+ag}function Xc(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<tg)throw new Error("ICC profile too short");const r={},i=Object.keys(Yc);for(let c=0;c<i.length;c++){const u=i[c],d=Yc[u],f=d.value(t,parseInt(u,10));let _=f;d.description&&(_=d.description(f)),r[d.name]={value:f,description:_}}if(to(e.slice(36,40))!==rg)throw new Error("ICC profile: missing signature");if(mg(e))return r;const s=t.getUint32(128);let a=132;for(let c=0;c<s;c++){if(pg(e,a))return r;const u=P(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const _=P(t,d,4);if(_===og){const m=t.getUint32(d+8);if(m>f)return r;const h=to(e.slice(d+12,d+m+11));nr(r,u,h)}else if(_===ig){const m=t.getUint32(d+8),h=t.getUint32(d+12);let p=d+16;const y=[];for(let k=0;k<m;k++){const w=P(t,p+0,2),C=P(t,p+2,2),T=t.getUint32(p+4),v=t.getUint32(p+8),x=op(t,d+v,T);y.push({languageCode:w,countryCode:C,text:x}),p+=h}if(m===1)nr(r,u,y[0].text);else{const k={};for(let w=0;w<y.length;w++)k[`${y[w].languageCode}-${y[w].countryCode}`]=y[w].text;nr(r,u,k)}}else if(_===lg){const m=to(e.slice(d+8,d+f-7));nr(r,u,m)}else if(_===sg){const m=to(e.slice(d+8,d+12));nr(r,u,m)}a=a+12}return r}function to(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function nr(t,e,n){Wc[e]?t[Wc[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const hg={read:gg};function gg(t,e){return{"Image Width":yg(t,e),"Image Height":bg(t,e),"Bit Depth":xg(t,e),"Color Type":kg(t,e),Compression:wg(t,e),Filter:Sg(t,e),Interlace:Cg(t,e)}}function yg(t,e){if(e+0+4>t.byteLength)return;const i=I.getLongAt(t,e);return{value:i,description:`${i}px`}}function bg(t,e){if(e+4+4>t.byteLength)return;const i=I.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function xg(t,e){if(e+8+1>t.byteLength)return;const i=I.getByteAt(t,e+8);return{value:i,description:`${i}`}}function kg(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const l=I.getByteAt(t,e+9);return{value:l,description:i[l]||"Unknown"}}function wg(t,e){if(e+10+1>t.byteLength)return;const i=I.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function Sg(t,e){if(e+11+1>t.byteLength)return;const i=I.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function Cg(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const l=I.getByteAt(t,e+12);return{value:l,description:i[l]||"Unknown"}}const Tg={read:Ng},Ti="STATE_KEYWORD",Ei="STATE_COMPRESSION",vi="STATE_LANG",Eg="STATE_TRANSLATED_KEYWORD",Bi="STATE_TEXT",vg=1,Bg=1,Ig=6;function Ng(t,e,n,r){const i={},l=[];for(let s=0;s<e.length;s++){const{offset:a,length:c,type:u}=e[s],d=Fg(t,a,c,u,n);if(d instanceof Promise)l.push(d.then(({name:f,value:_,description:m})=>{try{if(Aa.USE_EXIF&&Pg(f,_))return{__exif:Cc.read(Jc(_),Ig,r)};if(Aa.USE_IPTC&&Mg(f,_))return{__iptc:yi.read(Jc(_),0,r)};if(f)return{[f]:{value:_,description:m}}}catch{}return{}}));else{const{name:f,value:_,description:m}=d;f&&(i[f]={value:_,description:m})}}return{readTags:i,readTagsPromise:l.length>0?Promise.all(l):void 0}}function Fg(t,e,n,r,i){const l=[],s=[];let a,c=Ti,u=qr;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Ei){u=Dg({type:r,dataView:t,offset:e+f}),r===Zt&&(f+=vg),c=Kc(r,c);continue}else if(c===Bi){a=new DataView(t.buffer.slice(e+f,e+n));break}const _=t.getUint8(e+f);_===0?c=Kc(r,c):c===Ti?l.push(_):c===vi&&s.push(_)}if(u!==qr&&!i)return{};const d=$a(a,u);return d instanceof Promise?d.then(f=>Ii(f,r,s,l)).catch(()=>Ii("<text using unknown compression>".split(""),r,s,l)):Ii(d,r,s,l)}function Dg({type:t,dataView:e,offset:n}){if(t===Zt){if(e.getUint8(n)===Bg)return e.getUint8(n+1)}else if(t===ci)return e.getUint8(n);return qr}function Kc(t,e){return e===Ti&&[Zt,ci].includes(t)?Ei:e===Ei?t===Zt?vi:Bi:e===vi?Eg:Bi}function Ii(t,e,n,r){const i=$g(t);return{name:Og(e,n,r),value:i,description:e===Zt?Ag(t):i}}function Og(t,e,n){const r=Sn(n);if(t===ec||e.length===0)return r;const i=Sn(e);return`${r} (${i})`}function $g(t){return t instanceof DataView?P(t,0,t.byteLength):t}function Ag(t){return Ec.decode("UTF-8",t)}function Pg(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function Mg(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function Jc(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return Vg(e[2].replace(/\n/g,""))}function Vg(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const Lg={read:Rg};function Rg(t,e){const n={};for(let r=0;r<e.length;r++){const i=I.getLongAt(t,e[r]+Cn),l=P(t,e[r]+Tt,Ke);l===tc?(n["Pixels Per Unit X"]=Ug(t,e[r],i),n["Pixels Per Unit Y"]=zg(t,e[r],i),n["Pixel Units"]=qg(t,e[r],i)):l===nc&&(n["Modify Date"]=jg(t,e[r],i))}return n}function Ug(t,e,n){if(!no(t,e,n,0,4))return;const l=I.getLongAt(t,e+_e+0);return{value:l,description:""+l}}function zg(t,e,n){if(!no(t,e,n,4,4))return;const l=I.getLongAt(t,e+_e+4);return{value:l,description:""+l}}function qg(t,e,n){if(!no(t,e,n,8,1))return;const l=I.getByteAt(t,e+_e+8);return{value:l,description:l===1?"meters":"Unknown"}}function jg(t,e,n){if(!no(t,e,n,0,7))return;const i=I.getShortAt(t,e+_e),l=I.getByteAt(t,e+_e+2),s=I.getByteAt(t,e+_e+3),a=I.getByteAt(t,e+_e+4),c=I.getByteAt(t,e+_e+5),u=I.getByteAt(t,e+_e+6);return{value:[i,l,s,a,c,u],description:`${Bn(i,4)}-${Bn(l,2)}-${Bn(s,2)} ${Bn(a,2)}:${Bn(c,2)}:${Bn(u,2)}`}}function no(t,e,n,r,i){return r+i<=n&&e+_e+r+i<=t.byteLength}function Bn(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const Gg={read:Wg},Hg=4,Zg=7;function Wg(t,e){const n={},r=I.getByteAt(t,e);return n.Alpha=Yg(r),n.Animation=Qg(r),n.ImageWidth=eu(t,e+Hg),n.ImageHeight=eu(t,e+Zg),n}function Yg(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function Qg(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function eu(t,e){const n=I.getByteAt(t,e)+256*I.getByteAt(t,e+1)+65536*I.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const Xg={read:Kg};function Kg(t){return{"GIF Version":Jg(t),"Image Width":ey(t),"Image Height":ty(t),"Global Color Map":ny(t),"Bits Per Pixel":oy(t),"Color Resolution Depth":ry(t)}}function Jg(t){if(6>t.byteLength)return;const r=P(t,3,3);return{value:r,description:r}}function ey(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function ty(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function ny(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function ry(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function oy(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const iy=[6,7,99],ly={get:sy};function sy(t,e,n){if(ay(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),Na(e,"base64",function(){return Fa(this.image)})}return e}function ay(t){return t&&(t.Compression===void 0||iy.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function tu(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}tu.prototype=new Error;const nu={MetadataMissingError:tu},cy={load:uy,loadView:ru,errors:nu};function uy(t,e={}){return dy(t)?(e.async=!0,fy(t,e).then(n=>Ni(n,e))):by(t)?(e.async=!0,xy(t).then(n=>Ni(n,e))):Ni(t,e)}function dy(t){return typeof t=="string"}function fy(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?_y(t,e):my(t,e):hy(t)?Promise.resolve(ip(t)):gy(t,e)}function _y(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function my(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),py(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",c=>a.push(Buffer.from(c))),s.on("error",c=>r(c)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function py(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function hy(t){return/^data:[^;,]*(;base64)?,/.test(t)}function gy(t,{length:e}={}){return new Promise((n,r)=>{const i=yy();i.open(t,(l,s)=>{l?r(l):i.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,_=>{_?r(_):i.close(s,m=>{m&&console.warn(`Could not close file ${t}:`,m),n(d)})})}})})})}function yy(){try{return __non_webpack_require__("fs")}catch{return}}function by(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function xy(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ni(t,e){return ky(t)&&(t=new Uint8Array(t).buffer),ru(wy(t),e)}function ky(t){try{return Buffer.isBuffer(t)}catch{return!1}}function wy(t){try{return new DataView(t)}catch{return new va(t)}}function ru(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let i=!1,l={};const s=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:_,iccChunks:m,mpfDataOffset:h,pngHeaderOffset:p,pngTextChunks:y,pngChunkOffsets:k,vp8xChunkOffset:w,gifHeaderOffset:C}=Y0.parseAppMarkers(t,n);if(Sy(c)){i=!0;const g=I1.read(t,c);e?l.file=g:l=M({},l,g)}if(Cy(u)){i=!0;const g=L1.read(t,u);e?l.jfif=g:l=M({},l,g)}if(Ty(d)){i=!0;const g=Cc.read(t,d,r);if(g.Thumbnail&&(l.Thumbnail=g.Thumbnail,delete g.Thumbnail),e?(l.exif=g,Ey(l)):l=M({},l,g),g["IPTC-NAA"]&&!ou(f)){const S=yi.read(g["IPTC-NAA"].value,0,r);e?l.iptc=S:l=M({},l,S)}if(g.ApplicationNotes&&!iu(_)){const S=Dc.read(Sn(g.ApplicationNotes.value));e?l.xmp=S:(delete S._raw,l=M({},l,S))}if(g.ImageSourceData){const S=Wh.read(g.PhotoshopSettings.value,r);e?l.photoshop=S:l=M({},l,S)}if(g.ICC_Profile&&!lu(m)){const S=Qc.read(g.ICC_Profile.value,[{offset:0,length:g.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?l.icc=S:l=M({},l,S)}}if(ou(f)){i=!0;const g=yi.read(t,f,r);e?l.iptc=g:l=M({},l,g)}if(iu(_)){i=!0;const g=Dc.read(t,_);e?l.xmp=g:(delete g._raw,l=M({},l,g))}if(lu(m)){i=!0;const g=Qc.read(t,m,n);g instanceof Promise?s.push(g.then(v)):v(g)}if(vy(h)){i=!0;const g=k1.read(t,h,r);e?l.mpf=g:l=M({},l,g)}if(By(p)){i=!0;const g=hg.read(t,p);e?(l.png=l.png?M({},l.png,g):g,l.pngFile=g):l=M({},l,g)}if(Iy(y)){i=!0;const{readTags:g,readTagsPromise:S}=Tg.read(t,y,n,r);x(g),S&&s.push(S.then(E=>E.forEach(x)))}if(Ny(k)){i=!0;const g=Lg.read(t,k);e?l.png=l.png?M({},l.png,g):g:l=M({},l,g)}if(Fy(w)){i=!0;const g=Gg.read(t,w);e?l.riff=l.riff?M({},l.riff,g):g:l=M({},l,g)}if(Dy(C)){i=!0;const g=Xg.read(t,C);e?l.gif=l.gif?M({},l.gif,g):g:l=M({},l,g)}const T=ly.get(t,l.Thumbnail,d);if(T?(i=!0,l.Thumbnail=T):delete l.Thumbnail,a&&(e?(l.file||(l.file={}),l.file.FileType=a):l.FileType=a,i=!0),!i)throw new nu.MetadataMissingError;if(n)return Promise.all(s).then(()=>l);return l;function v(g){e?l.icc=g:l=M({},l,g)}function x(g){if(e){for(const S of["exif","iptc"]){const E=`__${S}`;g[E]&&(l[S]=l[S]?M({},l.exif,g[E]):g[E],delete g[E])}l.png=l.png?M({},l.png,g):g,l.pngText=l.pngText?M({},l.png,g):g}else l=M({},l,g.__exif?g.__exif:{},g.__iptc?g.__iptc:{},g)}}function Sy(t){return t!==void 0}function Cy(t){return t!==void 0}function Ty(t){return t!==void 0}function Ey(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=jr(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=jr(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function ou(t){return t!==void 0}function iu(t){return Array.isArray(t)&&t.length>0}function lu(t){return Array.isArray(t)&&t.length>0}function vy(t){return t!==void 0}function By(t){return t!==void 0}function Iy(t){return t!==void 0}function Ny(t){return t!==void 0}function Fy(t){return t!==void 0}function Dy(t){return t!==void 0}async function su(t,e=null){if(t.location)return t.location;try{const n=await cy.load(t.blobUrl||t.url,{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude};const{waitForLocation:r,location:i}=Gl();return e&&setTimeout(()=>{!i.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:"&&await r(),e=!1,i.value?{latitude:i.value.latitude,longitude:i.value.longitude,accuracy:i.value.accuracy,altitude:i.value.altitude,altitudeAccuracy:i.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class ro{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,...ue.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';");this.prepare()}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await su(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:""}}setXhrCallbacks(){var e,n,r;for(const i of this.fileUploads)(e=i.xhr)==null||e.addEventListener("error",l=>this.errorHandler(l,i.file),!1);if(this.onProgressCb)for(const i of this.fileUploads)(n=i.xhr)==null||n.upload.addEventListener("progress",l=>{const s=Math.min(.95,l.loaded/l.total);this.fireProgressCallback(i,s)},!1);for(const i of this.fileUploads)(r=i.xhr)==null||r.addEventListener("load",async l=>{try{const s=await this.completePresignedUpload(i);this.fireCompleteCallback(i,s),this.checkAllComplete()}catch(s){this.errorHandler(l,i.file,s)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const i=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!i.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const l=!i.url.match("upload-presigned-url-contents");n.file.resource_id=i.id;const s=new XMLHttpRequest;l?(s.open("PUT",i.url),s.setRequestHeader("Content-Type",r),n.body=n.file):(s.open("POST",i.url),n.body=n.formData),n.xhr=s}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const oo=o.ref([]),io=o.ref([]);function Oy(t){oo.value=[...oo.value,t]}function $y(t,e,n){io.value.push({id:n,name:t,callback:e})}function Ay(t){io.value=io.value.filter(e=>e.id!==t)}function au(t,e,n){for(let r of oo.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let i of io.value)i.name===r.name&&i.callback(n)}function cu(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function Py(t){oo.value=t,window.addEventListener("keydown",e=>{au("keydown",cu(e),e)}),window.addEventListener("keyup",e=>{au("keyup",cu(e),e)})}function uu(t){const e=o.ref([]),n=o.ref(null),r=o.ref(null),i=f=>{e.value=[...e.value,...f.target.files],new ro(f.target.files,t).onProgress(({file:_})=>{l(_)}).onComplete(({file:_,uploadedFile:m})=>{_&&l(_,m)}).onError(({file:_})=>{Ve.error(`Failed to upload ${_.name}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function l(f,_=null){const m=e.value.findIndex(h=>h.id===f.id);m!==-1&&e.value.splice(m,1,_||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const _=e.value.findIndex(m=>m.id===f.id);_!==-1&&e.value.splice(_,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var _;i({target:{files:(_=f.dataTransfer)==null?void 0:_.files}})},onFilesSelected:i,uploadedFiles:e}}const we={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=ue.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var s;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=we.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),we.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}const i=await fetch(we.url(t),e);if(My(i),n){if(r<we.abortControllers[n].timestamp)throw new Error("Request was aborted due to a newer request being made: "+r+" < "+we.abortControllers[n].timestamp);delete we.abortControllers[n]}const l=await i.json();if(i.status===401){const a=(s=ue.value.request)==null?void 0:s.onUnauthorized;return a?a(i):{error:!0,message:"Unauthorized"}}return i.status>400&&l.exception&&!l.error&&(l.error=!0),l},async get(t,e){var n;return await we.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=ue.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await we.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=ue.value.request)==null?void 0:r.headers},...n})}};function My(t){const e=ue.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function Vy(t,e,n,r){let i;n&&(i=e.value.find(l=>l.id===n)||(await t({id:n}))[0]),e.value=await t(r),i&&!e.value.find(l=>l.id===n)&&e.value.push(i)}function du(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function Ly(t){return{list(e){return we.post(`${t}/list`,e)},summary(e){return we.post(`${t}/summary`,{filter:e})},details(e){return we.get(`${t}/${e.id}/details`)},fieldOptions(){return we.get(`${t}/field-options`)},applyAction(e,n,r){return we.post(`${t}/${n?n.id:"new"}/apply-action`,{action:e,data:r})},batchAction(e,n,r){return we.post(`${t}/batch-action`,{action:e,filter:{id:n.map(i=>i.id)},data:r})},export(e,n){return Ta(`${t}/export`,n||"export.csv",{filter:e})}}}function fu(t=null){const e=o.ref(null),n=o.ref(null),r=o.ref(null),i=d=>{var f;e.value=null,new ro((f=d.target)==null?void 0:f.files[0],t).onProgress(({file:_})=>{e.value=_,r.value&&r.value(e.value)}).onComplete(({uploadedFile:_})=>{e.value=_,n.value&&n.value(e.value),r.value&&r.value(e.value)}).upload()},l=d=>{var f;i({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:o.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:l,onFileSelected:i,uploadedFile:e}}function Bt(t,e){localStorage.setItem(t,JSON.stringify(e))}function It(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function Ry(t,e=""){const n=Fi(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Fi(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Fi(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}function Uy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function _u(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function zy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function mu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function qy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function jy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function Gy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const pu={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=o.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(i){console.error(i),Ve.error("Failed to export data")}n.value=!1}return(i,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(s,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:o.withCtx(()=>[o.createVNode(o.unref(Uy),{class:"w-5"})]),_:1},8,["loading"])}}},hu=o.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:o.withCtx(()=>[o.createVNode(o.unref(qy),{class:"w-5"})]),_:1},8,["loading"])}}}),Hy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Zy=[o.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)];function Wy(t,e){return o.openBlock(),o.createElementBlock("svg",Hy,[...Zy])}const gu={render:Wy},Yy={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Qy=[o.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)];function Xy(t,e){return o.openBlock(),o.createElementBlock("svg",Yy,[...Qy])}const yu={render:Xy},Ky={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"},Jy=[o.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)];function e2(t,e){return o.openBlock(),o.createElementBlock("svg",Ky,[...Jy])}const bu={render:e2},t2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},n2=[o.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)];function r2(t,e){return o.openBlock(),o.createElementBlock("svg",t2,[...n2])}const xu={render:r2},o2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},i2=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)];function l2(t,e){return o.openBlock(),o.createElementBlock("svg",o2,[...i2])}const Di={render:l2},s2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"},a2=[o.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),o.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)];function c2(t,e){return o.openBlock(),o.createElementBlock("svg",s2,[...a2])}const ku={render:c2},u2={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"},d2=[o.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)];function f2(t,e){return o.openBlock(),o.createElementBlock("svg",u2,[...d2])}const wu={render:f2},_2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},m2=[o.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)];function p2(t,e){return o.openBlock(),o.createElementBlock("svg",_2,[...m2])}const Su={render:p2},h2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g2=[o.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)];function y2(t,e){return o.openBlock(),o.createElementBlock("svg",h2,[...g2])}const Cu={render:y2},b2={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"},x2=[o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)];function k2(t,e){return o.openBlock(),o.createElementBlock("svg",b2,[...x2])}const lo={render:k2},w2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},S2=[o.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)];function C2(t,e){return o.openBlock(),o.createElementBlock("svg",w2,[...S2])}const Tu={render:C2},T2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},E2=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)];function v2(t,e){return o.openBlock(),o.createElementBlock("svg",T2,[...E2])}const so={render:v2},B2={class:"dx-previous-next-controls"},Eu={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",B2,[o.createVNode(r,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=i=>e.$emit("next",-1))},{default:o.withCtx(()=>[o.createVNode(o.unref(Cu),{class:"w-6"})]),_:1},8,["disable","loading"]),o.createVNode(r,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=i=>e.$emit("next",1))},{default:o.withCtx(()=>[o.createVNode(o.unref(Su),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function vu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function I2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function Bu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function N2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function F2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function D2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function O2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function $2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function A2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function P2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function M2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function V2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function L2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function R2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const U2={class:"flex-grow"},z2={key:1,class:"dx-dialog-subtitle"},q2={class:"flex dx-dialog-actions"},Oi=o.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function r(){n("close")}return(i,l)=>{const s=o.resolveComponent("QCardSection"),a=o.resolveComponent("QCard"),c=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(c,{class:"dx-dialog","full-height":i.fullHeight,"full-width":i.fullWidth,"model-value":!0,"no-backdrop-dismiss":!i.backdropDismiss,maximized:i.maximized,"onUpdate:modelValue":r},{default:o.withCtx(()=>[o.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:o.withCtx(()=>[o.createVNode(s,{class:"dx-dialog-header flex items-center"},{default:o.withCtx(()=>[o.createElementVNode("div",U2,[i.title||i.$slots.title?(o.openBlock(),o.createElementBlock("h3",{key:0,class:o.normalizeClass(["dx-dialog-title flex items-center",i.titleClass])},[o.renderSlot(i.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(i.title),1)])],2)):o.createCommentVNode("",!0),i.subtitle||i.$slots.subtitle?(o.openBlock(),o.createElementBlock("div",z2,[o.renderSlot(i.$slots,"subtitle",{},()=>[o.createTextVNode(o.toDisplayString(i.subtitle),1)])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",null,[o.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[o.createVNode(o.unref(R2),{class:"w-5"})])])]),_:3}),i.$slots.toolbar?(o.openBlock(),o.createBlock(s,{key:0},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"toolbar")]),_:3})):o.createCommentVNode("",!0),i.content||i.$slots.default?(o.openBlock(),o.createBlock(s,{key:1,class:o.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",i.contentClass])},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(i.content),1)])]),_:3},8,["class"])):o.createCommentVNode("",!0),o.createElementVNode("div",q2,[o.renderSlot(i.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),j2={class:"dx-dialog-button-cancel"},G2={key:0,class:"dx-dialog-button-confirm"},In=o.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>({...r,disabled:void 0})),l=o.computed(()=>["title","subtitle","toolbar"]);function s(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Oi),o.mergeProps({class:"dx-confirm-dialog"},i.value,{onClose:a}),o.createSlots({actions:o.withCtx(()=>[o.createElementVNode("div",j2,[o.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),o.renderSlot(c.$slots,"actions"),c.hideConfirm?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",G2,[o.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:o.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:s},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:2},[o.renderList(l.value,f=>({name:f,fn:o.withCtx(()=>[o.renderSlot(c.$slots,f)])}))]),1040)}}}),H2=o.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=o.computed(()=>Sa(e.target,e.label||e.action)),r=o.computed(()=>`Confirm ${e.action}`),i=o.computed(()=>`${e.action}`),l=o.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),s=o.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(o.openBlock(),o.createBlock(o.unref(In),o.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||i.value,title:a.title||r.value,content:a.content||l.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),o.createSlots({default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:2},[o.renderList(s.value,u=>({name:u,fn:o.withCtx(()=>[o.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),Z2={"!visible":"_!visible_f7vc2_1",visible:"_visible_f7vc2_1",collapse:"_collapse_f7vc2_1",static:"_static_f7vc2_1",absolute:"_absolute_f7vc2_1",relative:"_relative_f7vc2_1",sticky:"_sticky_f7vc2_1","bottom-1":"_bottom-1_f7vc2_1","left-0":"_left-0_f7vc2_1","right-0":"_right-0_f7vc2_1","right-1":"_right-1_f7vc2_1","right-4":"_right-4_f7vc2_1","top-0":"_top-0_f7vc2_1","top-1":"_top-1_f7vc2_1","top-4":"_top-4_f7vc2_1","m-2":"_m-2_f7vc2_1","m-4":"_m-4_f7vc2_1","m-auto":"_m-auto_f7vc2_1","mx-1":"_mx-1_f7vc2_1","mx-4":"_mx-4_f7vc2_1","mx-auto":"_mx-auto_f7vc2_1","my-2":"_my-2_f7vc2_1","!mr-1":"_!mr-1_f7vc2_1","mb-1":"_mb-1_f7vc2_1","mb-2":"_mb-2_f7vc2_1","mb-4":"_mb-4_f7vc2_1","ml-1":"_ml-1_f7vc2_1","ml-2":"_ml-2_f7vc2_1","ml-2.5":"_ml-2.5_f7vc2_1","ml-3":"_ml-3_f7vc2_1","ml-4":"_ml-4_f7vc2_1","ml-5":"_ml-5_f7vc2_1","ml-[-.2em]":"_ml-[-.2em]_f7vc2_1","mr-1":"_mr-1_f7vc2_1","mr-2":"_mr-2_f7vc2_1","mr-3":"_mr-3_f7vc2_1","mr-4":"_mr-4_f7vc2_1","mt-1":"_mt-1_f7vc2_1","mt-2":"_mt-2_f7vc2_1","mt-3":"_mt-3_f7vc2_1","mt-4":"_mt-4_f7vc2_1",block:"_block_f7vc2_1","inline-block":"_inline-block_f7vc2_1",inline:"_inline_f7vc2_1",flex:"_flex_f7vc2_1",table:"_table_f7vc2_1",hidden:"_hidden_f7vc2_1","h-10":"_h-10_f7vc2_1","h-32":"_h-32_f7vc2_1","h-4":"_h-4_f7vc2_1","h-5":"_h-5_f7vc2_1","h-8":"_h-8_f7vc2_1","h-full":"_h-full_f7vc2_1","max-h-full":"_max-h-full_f7vc2_1","w-10":"_w-10_f7vc2_1","w-16":"_w-16_f7vc2_1","w-2/5":"_w-2/5_f7vc2_1","w-24":"_w-24_f7vc2_1","w-3":"_w-3_f7vc2_1","w-3/5":"_w-3/5_f7vc2_1","w-32":"_w-32_f7vc2_1","w-4":"_w-4_f7vc2_1","w-48":"_w-48_f7vc2_1","w-5":"_w-5_f7vc2_1","w-6":"_w-6_f7vc2_1","w-7":"_w-7_f7vc2_1","w-72":"_w-72_f7vc2_1","w-8":"_w-8_f7vc2_1","w-96":"_w-96_f7vc2_1","w-[13.5rem]":"_w-[13.5rem]_f7vc2_1","w-[35.5rem]":"_w-[35.5rem]_f7vc2_1","w-[6.5rem]":"_w-[6.5rem]_f7vc2_1","w-full":"_w-full_f7vc2_1","!min-w-0":"_!min-w-0_f7vc2_1","max-w-[50em]":"_max-w-[50em]_f7vc2_1","max-w-full":"_max-w-full_f7vc2_1","flex-shrink":"_flex-shrink_f7vc2_1","flex-shrink-0":"_flex-shrink-0_f7vc2_1","flex-grow":"_flex-grow_f7vc2_1",grow:"_grow_f7vc2_1","rotate-180":"_rotate-180_f7vc2_1",transform:"_transform_f7vc2_1","cursor-ew-resize":"_cursor-ew-resize_f7vc2_1","cursor-move":"_cursor-move_f7vc2_1","cursor-not-allowed":"_cursor-not-allowed_f7vc2_1","cursor-ns-resize":"_cursor-ns-resize_f7vc2_1","cursor-pointer":"_cursor-pointer_f7vc2_1",resize:"_resize_f7vc2_1","flex-col":"_flex-col_f7vc2_1","flex-nowrap":"_flex-nowrap_f7vc2_1","items-center":"_items-center_f7vc2_1","items-stretch":"_items-stretch_f7vc2_1","justify-start":"_justify-start_f7vc2_1","justify-end":"_justify-end_f7vc2_1","justify-center":"_justify-center_f7vc2_1","justify-between":"_justify-between_f7vc2_1","gap-y-0":"_gap-y-0_f7vc2_1","gap-y-1":"_gap-y-1_f7vc2_1","space-x-1":"_space-x-1_f7vc2_1","space-x-2":"_space-x-2_f7vc2_1","self-center":"_self-center_f7vc2_1","overflow-auto":"_overflow-auto_f7vc2_1","overflow-hidden":"_overflow-hidden_f7vc2_1","overflow-y-auto":"_overflow-y-auto_f7vc2_70","overflow-x-hidden":"_overflow-x-hidden_f7vc2_1","scroll-smooth":"_scroll-smooth_f7vc2_1","overflow-ellipsis":"_overflow-ellipsis_f7vc2_1","whitespace-nowrap":"_whitespace-nowrap_f7vc2_1",rounded:"_rounded_f7vc2_1","rounded-2xl":"_rounded-2xl_f7vc2_1","rounded-lg":"_rounded-lg_f7vc2_1","rounded-md":"_rounded-md_f7vc2_1","!rounded-l-none":"_!rounded-l-none_f7vc2_1","!rounded-r-none":"_!rounded-r-none_f7vc2_1","rounded-b-lg":"_rounded-b-lg_f7vc2_1","rounded-t-lg":"_rounded-t-lg_f7vc2_1","rounded-t-md":"_rounded-t-md_f7vc2_1","!border-0":"_!border-0_f7vc2_1",border:"_border_f7vc2_1","border-b":"_border-b_f7vc2_1","border-l":"_border-l_f7vc2_1","border-l-0":"_border-l-0_f7vc2_1","border-r":"_border-r_f7vc2_1","border-solid":"_border-solid_f7vc2_1","border-dashed":"_border-dashed_f7vc2_1","border-none":"_border-none_f7vc2_1","border-blue-600":"_border-blue-600_f7vc2_1","border-blue-700":"_border-blue-700_f7vc2_1","border-gray-200":"_border-gray-200_f7vc2_1","border-gray-300":"_border-gray-300_f7vc2_1","border-slate-200":"_border-slate-200_f7vc2_1","bg-black":"_bg-black_f7vc2_1","bg-blue-200":"_bg-blue-200_f7vc2_1","bg-blue-600":"_bg-blue-600_f7vc2_1","bg-emerald-200":"_bg-emerald-200_f7vc2_1","bg-gray-100":"_bg-gray-100_f7vc2_1","bg-gray-200":"_bg-gray-200_f7vc2_1","bg-gray-400":"_bg-gray-400_f7vc2_1","bg-gray-500":"_bg-gray-500_f7vc2_1","bg-green-200":"_bg-green-200_f7vc2_1","bg-green-300":"_bg-green-300_f7vc2_1","bg-red-200":"_bg-red-200_f7vc2_1","bg-red-300":"_bg-red-300_f7vc2_1","bg-red-900":"_bg-red-900_f7vc2_1","bg-slate-100":"_bg-slate-100_f7vc2_1","bg-slate-500":"_bg-slate-500_f7vc2_1","bg-transparent":"_bg-transparent_f7vc2_1","bg-white":"_bg-white_f7vc2_1","bg-yellow-300":"_bg-yellow-300_f7vc2_1","!p-2":"_!p-2_f7vc2_1","p-0":"_p-0_f7vc2_1","p-1":"_p-1_f7vc2_1","p-2":"_p-2_f7vc2_1","p-3":"_p-3_f7vc2_1","p-4":"_p-4_f7vc2_1","!py-0":"_!py-0_f7vc2_1","px-1":"_px-1_f7vc2_1","px-12":"_px-12_f7vc2_1","px-2":"_px-2_f7vc2_1","px-2.5":"_px-2.5_f7vc2_1","px-4":"_px-4_f7vc2_1","px-6":"_px-6_f7vc2_1","px-8":"_px-8_f7vc2_1","py-1":"_py-1_f7vc2_1","py-14":"_py-14_f7vc2_1","py-2":"_py-2_f7vc2_1","py-3":"_py-3_f7vc2_1","py-4":"_py-4_f7vc2_1","py-8":"_py-8_f7vc2_1","pl-1":"_pl-1_f7vc2_1","pl-2":"_pl-2_f7vc2_1","pt-3":"_pt-3_f7vc2_1","text-left":"_text-left_f7vc2_1","text-center":"_text-center_f7vc2_1","text-[1rem]":"_text-[1rem]_f7vc2_1","text-sm":"_text-sm_f7vc2_1","text-xs":"_text-xs_f7vc2_1","font-bold":"_font-bold_f7vc2_1","font-medium":"_font-medium_f7vc2_1","font-semibold":"_font-semibold_f7vc2_1",uppercase:"_uppercase_f7vc2_1","leading-[1.2rem]":"_leading-[1.2rem]_f7vc2_1","!text-green-900":"_!text-green-900_f7vc2_1","!text-red-900":"_!text-red-900_f7vc2_1","!text-white":"_!text-white_f7vc2_1","!text-yellow-900":"_!text-yellow-900_f7vc2_1","text-blue-600":"_text-blue-600_f7vc2_1","text-blue-900":"_text-blue-900_f7vc2_1","text-gray-300":"_text-gray-300_f7vc2_1","text-gray-400":"_text-gray-400_f7vc2_1","text-gray-500":"_text-gray-500_f7vc2_1","text-gray-600":"_text-gray-600_f7vc2_1","text-gray-700":"_text-gray-700_f7vc2_1","text-green-700":"_text-green-700_f7vc2_1","text-red-400":"_text-red-400_f7vc2_1","text-red-800":"_text-red-800_f7vc2_1","text-red-900":"_text-red-900_f7vc2_1","text-slate-500":"_text-slate-500_f7vc2_1","text-white":"_text-white_f7vc2_1","text-yellow-600":"_text-yellow-600_f7vc2_1","text-zinc-500":"_text-zinc-500_f7vc2_1","text-zinc-800":"_text-zinc-800_f7vc2_1","line-through":"_line-through_f7vc2_1","opacity-0":"_opacity-0_f7vc2_1","opacity-20":"_opacity-20_f7vc2_1","opacity-50":"_opacity-50_f7vc2_1","opacity-70":"_opacity-70_f7vc2_1","shadow-none":"_shadow-none_f7vc2_1","outline-none":"_outline-none_f7vc2_1",outline:"_outline_f7vc2_1",filter:"_filter_f7vc2_1",transition:"_transition_f7vc2_1","transition-all":"_transition-all_f7vc2_1","duration-300":"_duration-300_f7vc2_1","danx-app":"_danx-app_f7vc2_4","q-tab":"_q-tab_f7vc2_4","q-table__card":"_q-table__card_f7vc2_7","q-checkbox__inner":"_q-checkbox__inner_f7vc2_11","q-toolbar":"_q-toolbar_f7vc2_14","q-notification__actions":"_q-notification__actions_f7vc2_19","q-date":"_q-date_f7vc2_22","q-date__view":"_q-date__view_f7vc2_25","q-field":"_q-field_f7vc2_28","q-field--auto-height":"_q-field--auto-height_f7vc2_28","q-field__control":"_q-field__control_f7vc2_28","q-field__native":"_q-field__native_f7vc2_31","q-field--labeled":"_q-field--labeled_f7vc2_35","q-field__control-container":"_q-field__control-container_f7vc2_35","q-textarea":"_q-textarea_f7vc2_38","q-field__marginal":"_q-field__marginal_f7vc2_41","q-field__input":"_q-field__input_f7vc2_41","q-field__label":"_q-field__label_f7vc2_41","q-btn":"_q-btn_f7vc2_45","q-item":"_q-item_f7vc2_53","q-tab-panels":"_q-tab-panels_f7vc2_57","q-panel":"_q-panel_f7vc2_61",scroll:"_scroll_f7vc2_64","q-tab-panel":"_q-tab-panel_f7vc2_57","dx-dialog":"_dx-dialog_f7vc2_74","q-card__section--vert":"_q-card__section--vert_f7vc2_74","q-banner":"_q-banner_f7vc2_78",app:"_app_f7vc2_1","main-layout":"_main-layout_f7vc2_1","is-disabled":"_is-disabled_f7vc2_95","disable-all-transitions":"_disable-all-transitions_f7vc2_100","v-enter-active":"_v-enter-active_f7vc2_104","v-leave-active":"_v-leave-active_f7vc2_105","v-enter-from":"_v-enter-from_f7vc2_109","v-leave-to":"_v-leave-to_f7vc2_110","slide-image":"_slide-image_f7vc2_114",carousel:"_carousel_f7vc2_128","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_f7vc2_128","hover:bg-blue-200":"_hover:bg-blue-200_f7vc2_1","hover:bg-gray-200":"_hover:bg-gray-200_f7vc2_1","hover:bg-green-100":"_hover:bg-green-100_f7vc2_1","hover:bg-red-100":"_hover:bg-red-100_f7vc2_1","hover:bg-red-200":"_hover:bg-red-200_f7vc2_1","hover:bg-slate-200":"_hover:bg-slate-200_f7vc2_1","hover:bg-slate-300":"_hover:bg-slate-300_f7vc2_1","hover:text-blue-500":"_hover:text-blue-500_f7vc2_1","hover:text-blue-600":"_hover:text-blue-600_f7vc2_1","hover:opacity-100":"_hover:opacity-100_f7vc2_1","focus:bg-blue-200":"_focus:bg-blue-200_f7vc2_1"},_t=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},W2={class:"absolute top-0 left-0 w-full h-full"},Y2={key:0,class:"max-h-full w-full",controls:""},Q2=["src","type"],X2=["alt","src"],Iu=_t({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=o.ref(null),r=o.ref(e.defaultSlide);function i(a){var c;return(c=a.mime)==null?void 0:c.startsWith("video")}function l(a){var c,u;return((u=(c=a.transcodes)==null?void 0:c.compress)==null?void 0:u.url)||a.blobUrl||a.url}function s(a){return a.thumb?a.thumb.url:i(a)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M0 0h24v24H0z" fill="none"/><path d="M8 5v14l11-7z"/></svg>')}`:l(a)}return(a,c)=>{const u=o.resolveComponent("QCarouselSlide"),d=o.resolveComponent("QCarousel"),f=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(f,{"model-value":!0,maximized:"","onUpdate:modelValue":c[2]||(c[2]=_=>a.$emit("close")),onKeyup:[c[3]||(c[3]=o.withKeys(_=>n.value.previous(),["left"])),c[4]||(c[4]=o.withKeys(_=>n.value.next(),["right"]))]},{default:o.withCtx(()=>[o.createElementVNode("div",W2,[o.createVNode(d,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=_=>r.value=_),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:o.normalizeClass(a.cls.carousel)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.files,_=>(o.openBlock(),o.createBlock(u,{key:"file-"+_.id,name:_.id,"img-src":s(_),class:"bg-black"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(a.cls["slide-image"])},[i(_)?(o.openBlock(),o.createElementBlock("video",Y2,[o.createElementVNode("source",{src:l(_)+"#t=0.1",type:_.mime},null,8,Q2)])):(o.openBlock(),o.createElementBlock("img",{key:1,alt:_.filename,src:l(_)},null,8,X2))],2)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),o.createVNode(o.unref(so),{class:"absolute top-4 right-4 cursor-pointer text-white w-8 h-8",onClick:c[1]||(c[1]=_=>a.$emit("close"))})])]),_:1})}}},[["__cssModules",{cls:Z2}]]),K2={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},J2={__name:"FullScreenDialog",props:{modelValue:Boolean,center:Boolean,blue:Boolean,closeable:Boolean},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let i=o.computed(()=>({"bg-blue-600 text-white":r.blue,"bg-white text-gray-400":!r.blue,"items-center":r.center}));function l(){n("update:model-value",!1),n("close")}return(s,a)=>{const c=o.resolveComponent("QDialog"),u=o.resolveDirective("close-popup");return o.openBlock(),o.createBlock(c,{"model-value":t.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":l},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["flex justify-center min-w-xs",o.unref(i)])},[t.closeable?o.withDirectives((o.openBlock(),o.createElementBlock("div",K2,[o.createVNode(o.unref(so),{class:"w-5 h-5"})])),[[u]]):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"default")],2)]),_:3},8,["model-value"])}}},eb={class:"flex-grow"},Nu={__name:"InfoDialog",props:{...Oi.props,doneClass:{type:[String,Object],default:""},doneText:{type:String,default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function r(){n("update:model-value",!1),n("close")}return(i,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Oi),o.mergeProps({class:"dx-info-dialog"},i.$props,{onClose:r}),o.createSlots({actions:o.withCtx(()=>[o.createElementVNode("div",eb,[o.createVNode(s,{label:t.doneText,class:o.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),onClick:r},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"done-text")]),_:3},8,["label","class"])]),o.renderSlot(i.$slots,"actions")]),_:2},[i.$slots.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"title")]),key:"0"}:void 0,i.$slots.subtitle?{name:"subtitle",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},tb={__name:"InputDialog",props:{...In.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=o.ref(e.input);return(r,i)=>{const l=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(o.unref(In),o.mergeProps(r.$props,{onConfirm:i[2]||(i[2]=s=>r.$emit("confirm",n.value)),onClose:i[3]||(i[3]=s=>r.$emit("close",s))}),{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},()=>[o.createVNode(l,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=s=>n.value=s),type:"number",class:"w-full",onInput:i[1]||(i[1]=s=>r.$emit("update:input",s))},null,8,["modelValue"])])]),_:3},16)}}},nb={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},rb={class:"max-h-full",preload:"auto"},ob=["src","type"],ib={key:2,class:"flex items-center justify-center h-full"},lb={key:1,class:"absolute-bottom w-full"},sb={class:"absolute top-1 right-1 flex items-center justify-between space-x-1"},ab={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},rr=_t(o.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:Di},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>{var p;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((p=r.src.split(".").pop())==null?void 0:p.toLowerCase()),name:"",size:0}:null}),s=o.computed(()=>{var p,y;return((p=l.value)==null?void 0:p.type)||((y=l.value)==null?void 0:y.mime)||""}),a=o.computed(()=>!!s.value.match(/^image\//)),c=o.computed(()=>!!s.value.match(/^video\//)),u=o.computed(()=>!!s.value.match(/^application\/pdf/)),d=o.computed(()=>{var p,y,k,w,C;return((k=(y=(p=l.value)==null?void 0:p.transcodes)==null?void 0:y.compress)==null?void 0:k.url)||((w=l.value)==null?void 0:w.blobUrl)||((C=l.value)==null?void 0:C.url)}),f=o.computed(()=>{var p,y,k;return(k=(y=(p=l.value)==null?void 0:p.transcodes)==null?void 0:y.thumb)==null?void 0:k.url}),_=o.computed(()=>!!f.value||c.value||a.value),m=o.ref(!1);function h(){m.value?n("remove"):(m.value=!0,setTimeout(()=>{m.value=!1},2e3))}return(p,y)=>{var T,v;const k=o.resolveComponent("QImg"),w=o.resolveComponent("QLinearProgress"),C=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!p.square}])},[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"grow h-full",onClick:y[0]||(y[0]=x=>i.value=!0)},[c.value?(o.openBlock(),o.createElementBlock("div",nb,[o.createElementVNode("video",rb,[o.createElementVNode("source",{src:d.value+"#t=0.1",type:s.value},null,8,ob)]),o.createElementVNode("button",{class:o.normalizeClass(p.cls["play-button"])},[o.createVNode(o.unref(V2),{class:"w-16"})],2)])):o.createCommentVNode("",!0),f.value||_.value?(o.openBlock(),o.createBlock(k,{key:1,fit:p.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(f.value||d.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(o.openBlock(),o.createElementBlock("div",ib,[u.value?(o.openBlock(),o.createBlock(o.unref(ku),{key:0,class:"w-24"})):(o.openBlock(),o.createBlock(o.unref(F2),{key:1,class:"w-24"}))]))]),p.$slots["action-button"]?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(p.cls["action-button"])},[o.renderSlot(p.$slots,"action-button")],2)):o.createCommentVNode("",!0),p.file&&p.file.progress!==void 0?(o.openBlock(),o.createElementBlock("div",lb,[o.createVNode(w,{value:p.file.progress,size:"15px",color:"green-600",stripe:""},null,8,["value"])])):o.createCommentVNode("",!0)],64)):o.renderSlot(p.$slots,"missing",{key:1},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),o.createElementVNode("div",sb,[p.downloadable&&((T=l.value)!=null&&T.url)?(o.openBlock(),o.createBlock(C,{key:0,size:"sm",class:o.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",p.downloadButtonClass]),onClick:y[1]||(y[1]=o.withModifiers(x=>o.unref(zr)(l.value.url),["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(O2),{class:"w-4 h-5"})]),_:1},8,["class"])):o.createCommentVNode("",!0),p.removable?(o.openBlock(),o.createBlock(C,{key:1,size:"sm",class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:o.withModifiers(h,["stop"])},{default:o.withCtx(()=>[m.value?(o.openBlock(),o.createElementBlock("div",ab," ? ")):(o.openBlock(),o.createBlock(o.unref(lo),{key:1,class:"w-3"}))]),_:1})):o.createCommentVNode("",!0)]),i.value&&!p.disabled?(o.openBlock(),o.createBlock(o.unref(Iu),{key:2,files:p.relatedFiles||[l.value],"default-slide":((v=l.value)==null?void 0:v.id)||"",onClose:y[2]||(y[2]=x=>i.value=!1)},null,8,["files","default-slide"])):o.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"!visible":"_!visible_32ire_1",visible:"_visible_32ire_1",collapse:"_collapse_32ire_1",static:"_static_32ire_1",absolute:"_absolute_32ire_1",relative:"_relative_32ire_1",sticky:"_sticky_32ire_1","bottom-1":"_bottom-1_32ire_1","left-0":"_left-0_32ire_1","right-0":"_right-0_32ire_1","right-1":"_right-1_32ire_1","right-4":"_right-4_32ire_1","top-0":"_top-0_32ire_1","top-1":"_top-1_32ire_1","top-4":"_top-4_32ire_1","m-2":"_m-2_32ire_1","m-4":"_m-4_32ire_1","m-auto":"_m-auto_32ire_1","mx-1":"_mx-1_32ire_1","mx-4":"_mx-4_32ire_1","mx-auto":"_mx-auto_32ire_1","my-2":"_my-2_32ire_1","!mr-1":"_!mr-1_32ire_1","mb-1":"_mb-1_32ire_1","mb-2":"_mb-2_32ire_1","mb-4":"_mb-4_32ire_1","ml-1":"_ml-1_32ire_1","ml-2":"_ml-2_32ire_1","ml-2.5":"_ml-2.5_32ire_1","ml-3":"_ml-3_32ire_1","ml-4":"_ml-4_32ire_1","ml-5":"_ml-5_32ire_1","ml-[-.2em]":"_ml-[-.2em]_32ire_1","mr-1":"_mr-1_32ire_1","mr-2":"_mr-2_32ire_1","mr-3":"_mr-3_32ire_1","mr-4":"_mr-4_32ire_1","mt-1":"_mt-1_32ire_1","mt-2":"_mt-2_32ire_1","mt-3":"_mt-3_32ire_1","mt-4":"_mt-4_32ire_1",block:"_block_32ire_1","inline-block":"_inline-block_32ire_1",inline:"_inline_32ire_1",flex:"_flex_32ire_1",table:"_table_32ire_1",hidden:"_hidden_32ire_1","h-10":"_h-10_32ire_1","h-32":"_h-32_32ire_1","h-4":"_h-4_32ire_1","h-5":"_h-5_32ire_1","h-8":"_h-8_32ire_1","h-full":"_h-full_32ire_1","max-h-full":"_max-h-full_32ire_1","w-10":"_w-10_32ire_1","w-16":"_w-16_32ire_1","w-2/5":"_w-2/5_32ire_1","w-24":"_w-24_32ire_1","w-3":"_w-3_32ire_1","w-3/5":"_w-3/5_32ire_1","w-32":"_w-32_32ire_1","w-4":"_w-4_32ire_1","w-48":"_w-48_32ire_1","w-5":"_w-5_32ire_1","w-6":"_w-6_32ire_1","w-7":"_w-7_32ire_1","w-72":"_w-72_32ire_1","w-8":"_w-8_32ire_1","w-96":"_w-96_32ire_1","w-[13.5rem]":"_w-[13.5rem]_32ire_1","w-[35.5rem]":"_w-[35.5rem]_32ire_1","w-[6.5rem]":"_w-[6.5rem]_32ire_1","w-full":"_w-full_32ire_1","!min-w-0":"_!min-w-0_32ire_1","max-w-[50em]":"_max-w-[50em]_32ire_1","max-w-full":"_max-w-full_32ire_1","flex-shrink":"_flex-shrink_32ire_1","flex-shrink-0":"_flex-shrink-0_32ire_1","flex-grow":"_flex-grow_32ire_1",grow:"_grow_32ire_1","rotate-180":"_rotate-180_32ire_1",transform:"_transform_32ire_1","cursor-ew-resize":"_cursor-ew-resize_32ire_1","cursor-move":"_cursor-move_32ire_1","cursor-not-allowed":"_cursor-not-allowed_32ire_1","cursor-ns-resize":"_cursor-ns-resize_32ire_1","cursor-pointer":"_cursor-pointer_32ire_1",resize:"_resize_32ire_1","flex-col":"_flex-col_32ire_1","flex-nowrap":"_flex-nowrap_32ire_1","items-center":"_items-center_32ire_1","items-stretch":"_items-stretch_32ire_1","justify-start":"_justify-start_32ire_1","justify-end":"_justify-end_32ire_1","justify-center":"_justify-center_32ire_1","justify-between":"_justify-between_32ire_1","gap-y-0":"_gap-y-0_32ire_1","gap-y-1":"_gap-y-1_32ire_1","space-x-1":"_space-x-1_32ire_1","space-x-2":"_space-x-2_32ire_1","self-center":"_self-center_32ire_1","overflow-auto":"_overflow-auto_32ire_1","overflow-hidden":"_overflow-hidden_32ire_1","overflow-y-auto":"_overflow-y-auto_32ire_70","overflow-x-hidden":"_overflow-x-hidden_32ire_1","scroll-smooth":"_scroll-smooth_32ire_1","overflow-ellipsis":"_overflow-ellipsis_32ire_1","whitespace-nowrap":"_whitespace-nowrap_32ire_1",rounded:"_rounded_32ire_1","rounded-2xl":"_rounded-2xl_32ire_1","rounded-lg":"_rounded-lg_32ire_1","rounded-md":"_rounded-md_32ire_1","!rounded-l-none":"_!rounded-l-none_32ire_1","!rounded-r-none":"_!rounded-r-none_32ire_1","rounded-b-lg":"_rounded-b-lg_32ire_1","rounded-t-lg":"_rounded-t-lg_32ire_1","rounded-t-md":"_rounded-t-md_32ire_1","!border-0":"_!border-0_32ire_1",border:"_border_32ire_1","border-b":"_border-b_32ire_1","border-l":"_border-l_32ire_1","border-l-0":"_border-l-0_32ire_1","border-r":"_border-r_32ire_1","border-solid":"_border-solid_32ire_1","border-dashed":"_border-dashed_32ire_1","border-none":"_border-none_32ire_1","border-blue-600":"_border-blue-600_32ire_1","border-blue-700":"_border-blue-700_32ire_1","border-gray-200":"_border-gray-200_32ire_1","border-gray-300":"_border-gray-300_32ire_1","border-slate-200":"_border-slate-200_32ire_1","bg-black":"_bg-black_32ire_1","bg-blue-200":"_bg-blue-200_32ire_1","bg-blue-600":"_bg-blue-600_32ire_1","bg-emerald-200":"_bg-emerald-200_32ire_1","bg-gray-100":"_bg-gray-100_32ire_1","bg-gray-200":"_bg-gray-200_32ire_1","bg-gray-400":"_bg-gray-400_32ire_1","bg-gray-500":"_bg-gray-500_32ire_1","bg-green-200":"_bg-green-200_32ire_1","bg-green-300":"_bg-green-300_32ire_1","bg-red-200":"_bg-red-200_32ire_1","bg-red-300":"_bg-red-300_32ire_1","bg-red-900":"_bg-red-900_32ire_1","bg-slate-100":"_bg-slate-100_32ire_1","bg-slate-500":"_bg-slate-500_32ire_1","bg-transparent":"_bg-transparent_32ire_1","bg-white":"_bg-white_32ire_1","bg-yellow-300":"_bg-yellow-300_32ire_1","!p-2":"_!p-2_32ire_1","p-0":"_p-0_32ire_1","p-1":"_p-1_32ire_1","p-2":"_p-2_32ire_1","p-3":"_p-3_32ire_1","p-4":"_p-4_32ire_1","!py-0":"_!py-0_32ire_1","px-1":"_px-1_32ire_1","px-12":"_px-12_32ire_1","px-2":"_px-2_32ire_1","px-2.5":"_px-2.5_32ire_1","px-4":"_px-4_32ire_1","px-6":"_px-6_32ire_1","px-8":"_px-8_32ire_1","py-1":"_py-1_32ire_1","py-14":"_py-14_32ire_1","py-2":"_py-2_32ire_1","py-3":"_py-3_32ire_1","py-4":"_py-4_32ire_1","py-8":"_py-8_32ire_1","pl-1":"_pl-1_32ire_1","pl-2":"_pl-2_32ire_1","pt-3":"_pt-3_32ire_1","text-left":"_text-left_32ire_1","text-center":"_text-center_32ire_1","text-[1rem]":"_text-[1rem]_32ire_1","text-sm":"_text-sm_32ire_1","text-xs":"_text-xs_32ire_1","font-bold":"_font-bold_32ire_1","font-medium":"_font-medium_32ire_1","font-semibold":"_font-semibold_32ire_1",uppercase:"_uppercase_32ire_1","leading-[1.2rem]":"_leading-[1.2rem]_32ire_1","!text-green-900":"_!text-green-900_32ire_1","!text-red-900":"_!text-red-900_32ire_1","!text-white":"_!text-white_32ire_1","!text-yellow-900":"_!text-yellow-900_32ire_1","text-blue-600":"_text-blue-600_32ire_1","text-blue-900":"_text-blue-900_32ire_1","text-gray-300":"_text-gray-300_32ire_1","text-gray-400":"_text-gray-400_32ire_1","text-gray-500":"_text-gray-500_32ire_1","text-gray-600":"_text-gray-600_32ire_1","text-gray-700":"_text-gray-700_32ire_1","text-green-700":"_text-green-700_32ire_1","text-red-400":"_text-red-400_32ire_1","text-red-800":"_text-red-800_32ire_1","text-red-900":"_text-red-900_32ire_1","text-slate-500":"_text-slate-500_32ire_1","text-white":"_text-white_32ire_1","text-yellow-600":"_text-yellow-600_32ire_1","text-zinc-500":"_text-zinc-500_32ire_1","text-zinc-800":"_text-zinc-800_32ire_1","line-through":"_line-through_32ire_1","opacity-0":"_opacity-0_32ire_1","opacity-20":"_opacity-20_32ire_1","opacity-50":"_opacity-50_32ire_1","opacity-70":"_opacity-70_32ire_1","shadow-none":"_shadow-none_32ire_1","outline-none":"_outline-none_32ire_1",outline:"_outline_32ire_1",filter:"_filter_32ire_1",transition:"_transition_32ire_1","transition-all":"_transition-all_32ire_1","duration-300":"_duration-300_32ire_1","danx-app":"_danx-app_32ire_4","q-tab":"_q-tab_32ire_4","q-table__card":"_q-table__card_32ire_7","q-checkbox__inner":"_q-checkbox__inner_32ire_11","q-toolbar":"_q-toolbar_32ire_14","q-notification__actions":"_q-notification__actions_32ire_19","q-date":"_q-date_32ire_22","q-date__view":"_q-date__view_32ire_25","q-field":"_q-field_32ire_28","q-field--auto-height":"_q-field--auto-height_32ire_28","q-field__control":"_q-field__control_32ire_28","q-field__native":"_q-field__native_32ire_31","q-field--labeled":"_q-field--labeled_32ire_35","q-field__control-container":"_q-field__control-container_32ire_35","q-textarea":"_q-textarea_32ire_38","q-field__marginal":"_q-field__marginal_32ire_41","q-field__input":"_q-field__input_32ire_41","q-field__label":"_q-field__label_32ire_41","q-btn":"_q-btn_32ire_45","q-item":"_q-item_32ire_53","q-tab-panels":"_q-tab-panels_32ire_57","q-panel":"_q-panel_32ire_61",scroll:"_scroll_32ire_64","q-tab-panel":"_q-tab-panel_32ire_57","dx-dialog":"_dx-dialog_32ire_74","q-card__section--vert":"_q-card__section--vert_32ire_74","q-banner":"_q-banner_32ire_78",app:"_app_32ire_1","main-layout":"_main-layout_32ire_1","is-disabled":"_is-disabled_32ire_95","disable-all-transitions":"_disable-all-transitions_32ire_100","v-enter-active":"_v-enter-active_32ire_104","v-leave-active":"_v-leave-active_32ire_105","v-enter-from":"_v-enter-from_32ire_109","v-leave-to":"_v-leave-to_32ire_110","action-button":"_action-button_32ire_114","play-button":"_play-button_32ire_121","hover:bg-blue-200":"_hover:bg-blue-200_32ire_1","hover:bg-gray-200":"_hover:bg-gray-200_32ire_1","hover:bg-green-100":"_hover:bg-green-100_32ire_1","hover:bg-red-100":"_hover:bg-red-100_32ire_1","hover:bg-red-200":"_hover:bg-red-200_32ire_1","hover:bg-slate-200":"_hover:bg-slate-200_32ire_1","hover:bg-slate-300":"_hover:bg-slate-300_32ire_1","hover:text-blue-500":"_hover:text-blue-500_32ire_1","hover:text-blue-600":"_hover:text-blue-600_32ire_1","hover:opacity-100":"_hover:opacity-100_32ire_1","focus:bg-blue-200":"_focus:bg-blue-200_32ire_1"}}]]),cb=["src","alt"],Fu={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=o.computed(()=>e.svg.default?e.svg.default:e.svg),r=o.computed(()=>typeof n.value=="string");return(i,l)=>r.value?(o.openBlock(),o.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,cb)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.value),{key:1}))}},ub={class:"address-format"},db={key:0,class:"address-attn"},fb={key:1,class:"address-name"},_b={class:"address-line-1"},mb={key:0,class:"address-line-2"},pb={key:1,class:"address-line-3"},hb={class:"address-city-state-zip"},gb={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",ub,[t.address.attn?(o.openBlock(),o.createElementBlock("div",db,"Attn: "+o.toDisplayString(t.address.attn),1)):t.address.name?(o.openBlock(),o.createElementBlock("div",fb,o.toDisplayString(t.address.name),1)):o.createCommentVNode("",!0),t.address.line1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",_b,o.toDisplayString(t.address.line1),1),t.address.line2?(o.openBlock(),o.createElementBlock("div",mb,o.toDisplayString(t.address.line2),1)):o.createCommentVNode("",!0),t.address.line3?(o.openBlock(),o.createElementBlock("div",pb,o.toDisplayString(t.address.line3),1)):o.createCommentVNode("",!0),o.createElementVNode("div",hb,[t.address.city?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.address.city)+",",1)],64)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.address.state)+" "+o.toDisplayString(t.address.zip_code),1)])],64)):o.createCommentVNode("",!0)]))}},yb={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,r=>(o.openBlock(),o.createElementBlock("li",{key:r[t.column]},o.toDisplayString(r[t.column]),1))),128))]))}},bb={class:"flex flex-nowrap items-center"},xb={key:0,class:"whitespace-nowrap"},kb={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var r;return o.openBlock(),o.createElementBlock("div",bb,[o.createVNode(o.unref(zy),{class:o.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(o.openBlock(),o.createElementBlock("div",xb,o.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+o.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Unknown ")],64))])}}},wb={class:"flex items-center flex-nowrap"},Sb={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",wb,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.icon),{class:o.normalizeClass(t.iconClass)},null,8,["class"])),o.createElementVNode("div",{class:o.normalizeClass(t.textClass)},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])],2)]))}},Cb={class:"text-xs font-bold"},Tb={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QSpinnerTail");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Cb,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(o.openBlock(),o.createBlock(r,{key:0})):o.renderSlot(e.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)])}}},Eb={class:"flex-grow max-w-full"},Du={__name:"CollapsableSidebar",props:{rightSide:Boolean,displayClass:{type:String,default:"flex flex-col"},maxWidth:{type:String,default:"13.5rem"},minWidth:{type:String,default:"5.5rem"},disabled:Boolean,collapse:Boolean,name:{type:String,default:"sidebar"},toggleAtTop:Boolean,toggleClass:{type:String,default:""},hideToggleOnCollapse:Boolean},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(It(r.name+"-is-collapsed",r.collapse));function l(c){i.value=c,Bt(r.name+"-is-collapsed",!!i.value)}function s(){l(!i.value),n("collapse",i.value),n("update:collapse",i.value)}o.onMounted(()=>{n("collapse",i.value),n("update:collapse",i.value)});const a=o.computed(()=>({width:i.value?r.minWidth:r.maxWidth}));return o.watch(()=>r.collapse,()=>{l(r.collapse)}),(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-collapsable-sidebar overflow-y-auto overflow-x-hidden scroll-smooth flex-shrink-0 transition-all relative",{"is-collapsed":i.value,"is-right-side":t.rightSide,[t.displayClass]:!0}]),style:o.normalizeStyle(a.value)},[o.createElementVNode("div",Eb,[o.renderSlot(c.$slots,"default",{isCollapsed:i.value})]),!t.disabled&&(!t.hideToggleOnCollapse||!i.value)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.toggleAtTop?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",t.toggleClass]),onClick:s},[o.createVNode(o.unref(Bu),{class:o.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!i.value:i.value}])},null,8,["class"])],2)):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex w-full p-4",t.rightSide?"justify-start":"justify-end"])},[o.renderSlot(c.$slots,"toggle",{},()=>[o.createVNode(d,{class:"btn-secondary",onClick:s},{default:o.withCtx(()=>[o.createVNode(o.unref(Bu),{class:o.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!i.value:i.value}])},null,8,["class"])]),_:1})])],2))],64)):o.createCommentVNode("",!0)],6)}}},$i=_t(o.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const r=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:o.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=i=>e.$emit("update:show",!1))},{default:o.withCtx(()=>[o.createElementVNode("div",null,[e.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=o.withModifiers(()=>{},["stop","prevent"]))},o.toDisplayString(e.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[o.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1ku39_1",visible:"_visible_1ku39_1",collapse:"_collapse_1ku39_1",static:"_static_1ku39_1",absolute:"_absolute_1ku39_1",relative:"_relative_1ku39_1",sticky:"_sticky_1ku39_1","bottom-1":"_bottom-1_1ku39_1","left-0":"_left-0_1ku39_1","right-0":"_right-0_1ku39_1","right-1":"_right-1_1ku39_1","right-4":"_right-4_1ku39_1","top-0":"_top-0_1ku39_1","top-1":"_top-1_1ku39_1","top-4":"_top-4_1ku39_1","m-2":"_m-2_1ku39_1","m-4":"_m-4_1ku39_1","m-auto":"_m-auto_1ku39_1","mx-1":"_mx-1_1ku39_1","mx-4":"_mx-4_1ku39_1","mx-auto":"_mx-auto_1ku39_1","my-2":"_my-2_1ku39_1","!mr-1":"_!mr-1_1ku39_1","mb-1":"_mb-1_1ku39_1","mb-2":"_mb-2_1ku39_1","mb-4":"_mb-4_1ku39_1","ml-1":"_ml-1_1ku39_1","ml-2":"_ml-2_1ku39_1","ml-2.5":"_ml-2.5_1ku39_1","ml-3":"_ml-3_1ku39_1","ml-4":"_ml-4_1ku39_1","ml-5":"_ml-5_1ku39_1","ml-[-.2em]":"_ml-[-.2em]_1ku39_1","mr-1":"_mr-1_1ku39_1","mr-2":"_mr-2_1ku39_1","mr-3":"_mr-3_1ku39_1","mr-4":"_mr-4_1ku39_1","mt-1":"_mt-1_1ku39_1","mt-2":"_mt-2_1ku39_1","mt-3":"_mt-3_1ku39_1","mt-4":"_mt-4_1ku39_1",block:"_block_1ku39_1","inline-block":"_inline-block_1ku39_1",inline:"_inline_1ku39_1",flex:"_flex_1ku39_1",table:"_table_1ku39_1",hidden:"_hidden_1ku39_1","h-10":"_h-10_1ku39_1","h-32":"_h-32_1ku39_1","h-4":"_h-4_1ku39_1","h-5":"_h-5_1ku39_1","h-8":"_h-8_1ku39_1","h-full":"_h-full_1ku39_1","max-h-full":"_max-h-full_1ku39_1","w-10":"_w-10_1ku39_1","w-16":"_w-16_1ku39_1","w-2/5":"_w-2/5_1ku39_1","w-24":"_w-24_1ku39_1","w-3":"_w-3_1ku39_1","w-3/5":"_w-3/5_1ku39_1","w-32":"_w-32_1ku39_1","w-4":"_w-4_1ku39_1","w-48":"_w-48_1ku39_1","w-5":"_w-5_1ku39_1","w-6":"_w-6_1ku39_1","w-7":"_w-7_1ku39_1","w-72":"_w-72_1ku39_1","w-8":"_w-8_1ku39_1","w-96":"_w-96_1ku39_1","w-[13.5rem]":"_w-[13.5rem]_1ku39_1","w-[35.5rem]":"_w-[35.5rem]_1ku39_1","w-[6.5rem]":"_w-[6.5rem]_1ku39_1","w-full":"_w-full_1ku39_1","!min-w-0":"_!min-w-0_1ku39_1","max-w-[50em]":"_max-w-[50em]_1ku39_1","max-w-full":"_max-w-full_1ku39_1","flex-shrink":"_flex-shrink_1ku39_1","flex-shrink-0":"_flex-shrink-0_1ku39_1","flex-grow":"_flex-grow_1ku39_1",grow:"_grow_1ku39_1","rotate-180":"_rotate-180_1ku39_1",transform:"_transform_1ku39_1","cursor-ew-resize":"_cursor-ew-resize_1ku39_1","cursor-move":"_cursor-move_1ku39_1","cursor-not-allowed":"_cursor-not-allowed_1ku39_1","cursor-ns-resize":"_cursor-ns-resize_1ku39_1","cursor-pointer":"_cursor-pointer_1ku39_1",resize:"_resize_1ku39_1","flex-col":"_flex-col_1ku39_1","flex-nowrap":"_flex-nowrap_1ku39_1","items-center":"_items-center_1ku39_1","items-stretch":"_items-stretch_1ku39_1","justify-start":"_justify-start_1ku39_1","justify-end":"_justify-end_1ku39_1","justify-center":"_justify-center_1ku39_1","justify-between":"_justify-between_1ku39_1","gap-y-0":"_gap-y-0_1ku39_1","gap-y-1":"_gap-y-1_1ku39_1","space-x-1":"_space-x-1_1ku39_1","space-x-2":"_space-x-2_1ku39_1","self-center":"_self-center_1ku39_1","overflow-auto":"_overflow-auto_1ku39_1","overflow-hidden":"_overflow-hidden_1ku39_1","overflow-y-auto":"_overflow-y-auto_1ku39_70","overflow-x-hidden":"_overflow-x-hidden_1ku39_1","scroll-smooth":"_scroll-smooth_1ku39_1","overflow-ellipsis":"_overflow-ellipsis_1ku39_1","whitespace-nowrap":"_whitespace-nowrap_1ku39_1",rounded:"_rounded_1ku39_1","rounded-2xl":"_rounded-2xl_1ku39_1","rounded-lg":"_rounded-lg_1ku39_1","rounded-md":"_rounded-md_1ku39_1","!rounded-l-none":"_!rounded-l-none_1ku39_1","!rounded-r-none":"_!rounded-r-none_1ku39_1","rounded-b-lg":"_rounded-b-lg_1ku39_1","rounded-t-lg":"_rounded-t-lg_1ku39_1","rounded-t-md":"_rounded-t-md_1ku39_1","!border-0":"_!border-0_1ku39_1",border:"_border_1ku39_1","border-b":"_border-b_1ku39_1","border-l":"_border-l_1ku39_1","border-l-0":"_border-l-0_1ku39_1","border-r":"_border-r_1ku39_1","border-solid":"_border-solid_1ku39_1","border-dashed":"_border-dashed_1ku39_1","border-none":"_border-none_1ku39_1","border-blue-600":"_border-blue-600_1ku39_1","border-blue-700":"_border-blue-700_1ku39_1","border-gray-200":"_border-gray-200_1ku39_1","border-gray-300":"_border-gray-300_1ku39_1","border-slate-200":"_border-slate-200_1ku39_1","bg-black":"_bg-black_1ku39_1","bg-blue-200":"_bg-blue-200_1ku39_1","bg-blue-600":"_bg-blue-600_1ku39_1","bg-emerald-200":"_bg-emerald-200_1ku39_1","bg-gray-100":"_bg-gray-100_1ku39_1","bg-gray-200":"_bg-gray-200_1ku39_1","bg-gray-400":"_bg-gray-400_1ku39_1","bg-gray-500":"_bg-gray-500_1ku39_1","bg-green-200":"_bg-green-200_1ku39_1","bg-green-300":"_bg-green-300_1ku39_1","bg-red-200":"_bg-red-200_1ku39_1","bg-red-300":"_bg-red-300_1ku39_1","bg-red-900":"_bg-red-900_1ku39_1","bg-slate-100":"_bg-slate-100_1ku39_1","bg-slate-500":"_bg-slate-500_1ku39_1","bg-transparent":"_bg-transparent_1ku39_1","bg-white":"_bg-white_1ku39_1","bg-yellow-300":"_bg-yellow-300_1ku39_1","!p-2":"_!p-2_1ku39_1","p-0":"_p-0_1ku39_1","p-1":"_p-1_1ku39_1","p-2":"_p-2_1ku39_1","p-3":"_p-3_1ku39_1","p-4":"_p-4_1ku39_1","!py-0":"_!py-0_1ku39_1","px-1":"_px-1_1ku39_1","px-12":"_px-12_1ku39_1","px-2":"_px-2_1ku39_1","px-2.5":"_px-2.5_1ku39_1","px-4":"_px-4_1ku39_1","px-6":"_px-6_1ku39_1","px-8":"_px-8_1ku39_1","py-1":"_py-1_1ku39_1","py-14":"_py-14_1ku39_1","py-2":"_py-2_1ku39_1","py-3":"_py-3_1ku39_1","py-4":"_py-4_1ku39_1","py-8":"_py-8_1ku39_1","pl-1":"_pl-1_1ku39_1","pl-2":"_pl-2_1ku39_1","pt-3":"_pt-3_1ku39_1","text-left":"_text-left_1ku39_1","text-center":"_text-center_1ku39_1","text-[1rem]":"_text-[1rem]_1ku39_1","text-sm":"_text-sm_1ku39_1","text-xs":"_text-xs_1ku39_1","font-bold":"_font-bold_1ku39_1","font-medium":"_font-medium_1ku39_1","font-semibold":"_font-semibold_1ku39_1",uppercase:"_uppercase_1ku39_1","leading-[1.2rem]":"_leading-[1.2rem]_1ku39_1","!text-green-900":"_!text-green-900_1ku39_1","!text-red-900":"_!text-red-900_1ku39_1","!text-white":"_!text-white_1ku39_1","!text-yellow-900":"_!text-yellow-900_1ku39_1","text-blue-600":"_text-blue-600_1ku39_1","text-blue-900":"_text-blue-900_1ku39_1","text-gray-300":"_text-gray-300_1ku39_1","text-gray-400":"_text-gray-400_1ku39_1","text-gray-500":"_text-gray-500_1ku39_1","text-gray-600":"_text-gray-600_1ku39_1","text-gray-700":"_text-gray-700_1ku39_1","text-green-700":"_text-green-700_1ku39_1","text-red-400":"_text-red-400_1ku39_1","text-red-800":"_text-red-800_1ku39_1","text-red-900":"_text-red-900_1ku39_1","text-slate-500":"_text-slate-500_1ku39_1","text-white":"_text-white_1ku39_1","text-yellow-600":"_text-yellow-600_1ku39_1","text-zinc-500":"_text-zinc-500_1ku39_1","text-zinc-800":"_text-zinc-800_1ku39_1","line-through":"_line-through_1ku39_1","opacity-0":"_opacity-0_1ku39_1","opacity-20":"_opacity-20_1ku39_1","opacity-50":"_opacity-50_1ku39_1","opacity-70":"_opacity-70_1ku39_1","shadow-none":"_shadow-none_1ku39_1","outline-none":"_outline-none_1ku39_1",outline:"_outline_1ku39_1",filter:"_filter_1ku39_1",transition:"_transition_1ku39_1","transition-all":"_transition-all_1ku39_1","duration-300":"_duration-300_1ku39_1","danx-app":"_danx-app_1ku39_4","q-tab":"_q-tab_1ku39_4","q-table__card":"_q-table__card_1ku39_7","q-checkbox__inner":"_q-checkbox__inner_1ku39_11","q-toolbar":"_q-toolbar_1ku39_14","q-notification__actions":"_q-notification__actions_1ku39_19","q-date":"_q-date_1ku39_22","q-date__view":"_q-date__view_1ku39_25","q-field":"_q-field_1ku39_28","q-field--auto-height":"_q-field--auto-height_1ku39_28","q-field__control":"_q-field__control_1ku39_28","q-field__native":"_q-field__native_1ku39_31","q-field--labeled":"_q-field--labeled_1ku39_35","q-field__control-container":"_q-field__control-container_1ku39_35","q-textarea":"_q-textarea_1ku39_38","q-field__marginal":"_q-field__marginal_1ku39_41","q-field__input":"_q-field__input_1ku39_41","q-field__label":"_q-field__label_1ku39_41","q-btn":"_q-btn_1ku39_45","q-item":"_q-item_1ku39_53","q-tab-panels":"_q-tab-panels_1ku39_57","q-panel":"_q-panel_1ku39_61",scroll:"_scroll_1ku39_64","q-tab-panel":"_q-tab-panel_1ku39_57","dx-dialog":"_dx-dialog_1ku39_74","q-card__section--vert":"_q-card__section--vert_1ku39_74","q-banner":"_q-banner_1ku39_78",app:"_app_1ku39_1","main-layout":"_main-layout_1ku39_1","is-disabled":"_is-disabled_1ku39_95","disable-all-transitions":"_disable-all-transitions_1ku39_100","v-enter-active":"_v-enter-active_1ku39_104","v-leave-active":"_v-leave-active_1ku39_105","v-enter-from":"_v-enter-from_1ku39_109","v-leave-to":"_v-leave-to_1ku39_110","dialog-title":"_dialog-title_1ku39_114","dialog-content":"_dialog-content_1ku39_121","hover:bg-blue-200":"_hover:bg-blue-200_1ku39_1","hover:bg-gray-200":"_hover:bg-gray-200_1ku39_1","hover:bg-green-100":"_hover:bg-green-100_1ku39_1","hover:bg-red-100":"_hover:bg-red-100_1ku39_1","hover:bg-red-200":"_hover:bg-red-200_1ku39_1","hover:bg-slate-200":"_hover:bg-slate-200_1ku39_1","hover:bg-slate-300":"_hover:bg-slate-300_1ku39_1","hover:text-blue-500":"_hover:text-blue-500_1ku39_1","hover:text-blue-600":"_hover:text-blue-600_1ku39_1","hover:opacity-100":"_hover:opacity-100_1ku39_1","focus:bg-blue-200":"_focus:bg-blue-200_1ku39_1"}}]]),Ou=t=>o.isVNode(t.vnode)?t.vnode:o.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props):null;Ou.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})}};const Qt=Ou,$u={__name:"ActionVnode",setup(t){const e=o.ref(!1);async function n(r){e.value=!0,await Lt.value.confirm(r),e.value=!1}return(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.unref(Lt)?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:o.unref(Lt).vnode,"is-saving":e.value,onConfirm:n,onClose:o.unref(Lt).cancel},null,8,["vnode","is-saving","onClose"])):o.createCommentVNode("",!0)]))}},Au={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=o.computed(()=>{var i,l,s;return((i=r.value)==null?void 0:i.value)||((s=(l=r.value)==null?void 0:l.props)==null?void 0:s.text)}),r=o.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(i,l)=>n.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:l[0]||(l[0]=s=>i.$emit("action",s))}),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.value),1)]),_:1},16)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:l[1]||(l[1]=s=>i.$emit("action",s))}),null,16))}},vb=["href"],Pu={__name:"PopoverMenu",props:{items:{type:Array,required:!0,validator(t){return t.every(e=>e.url||e.action||e.name)}},tooltip:{type:String,default:null},disabled:Boolean,loading:Boolean,loadingComponent:{type:[Function,Object],default:()=>({is:J.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(i){n("action",i.name||i.action),n("action-item",i)}return(i,l)=>{const s=o.resolveComponent("QTooltip"),a=o.resolveComponent("QItem"),c=o.resolveComponent("QList"),u=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("a",{class:o.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":t.disabled}])},[i.$slots.tooltip||t.tooltip?(o.openBlock(),o.createBlock(s,{key:0},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"tooltip",{},()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)])]),_:3})):o.createCommentVNode("",!0),o.createVNode(o.Transition,{mode:"out-in",duration:150},{default:o.withCtx(()=>[t.loading?(o.openBlock(),o.createBlock(o.unref(Au),{key:0,component:t.loadingComponent},null,8,["component"])):(o.openBlock(),o.createBlock(o.unref(D2),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),t.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(u,{key:1,"auto-close":""},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.url?(o.openBlock(),o.createElementBlock("a",{key:d.url,class:o.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},o.toDisplayString(d.label),11,vb)):(o.openBlock(),o.createBlock(a,{key:d.name||d.action,clickable:"",class:o.normalizeClass(d.class),onClick:f=>r(d)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),256))]),_:1})]),_:1}))],2)}}},Bb={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=o.ref(!1),n=o.ref(null),r=o.ref(!1),i=o.ref(!1);let l=null;o.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",s),n.value.$el.parentNode.addEventListener("mouseleave",a)});function s(){e.value=!0,i.value=!0,l&&clearTimeout(l)}function a(){i.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,l&&clearTimeout(l)}function u(){r.value=!1,e.value&&d()}function d(){l&&clearTimeout(l),l=setTimeout(()=>{r.value||i.value?d():e.value=!1},200)}return(f,_)=>{const m=o.resolveComponent("QTooltip");return o.openBlock(),o.createBlock(m,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":_[0]||(_[0]=h=>e.value=h),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},Ib={class:"flex items-center w-full"},Nb={class:"flex-grow text-sm"},Fb={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),i=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(i,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Ib,[o.createElementVNode("div",Nb,o.toDisplayString(t.label),1),o.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},Db={class:"flex items-center w-full"},Ob={class:"flex-grow text-sm"},$b={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Db,[o.createElementVNode("div",Ob,o.toDisplayString(t.label),1),o.createElementVNode("div",null,[t.overdue?(o.openBlock(),o.createBlock(o.unref(_u),{key:0,class:o.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(o.openBlock(),o.createBlock(o.unref(Tu),{key:1,class:"text-yellow-600 w-5"})):o.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},Mu={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},Ab=o.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return o.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:"maxHeight"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Pb={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:t.name},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function mt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
7
|
+
`,Gr=4,Ke=4,Cn=0,Tt=Gr,_e=Gr+Ke,ai="XML:com.adobe.xmp\0",ec="tEXt",Zt="iTXt",ci="zTXt",tc="pHYs",nc="tIME",jp="eXIf",Gp="iCCP";function Hp(t){return!!t&&P(t,0,si.length)===si}function Zp(t,e){const r={hasAppMarkers:!1};let i=si.length;for(;i+Gr+Ke<=t.byteLength;){if(Wp(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+_e;else if(Yp(t,i)){const l=e0(t,i);l!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:l,length:t.getUint32(i+Cn)-(l-(i+_e))}])}else if(Qp(t,i,e)){r.hasAppMarkers=!0;const l=P(t,i+Tt,Ke);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+Cn),type:l,offset:i+_e})}else if(Xp(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+_e;else if(e&&Kp(t,i)){r.hasAppMarkers=!0;const l=t.getUint32(i+Cn),s=i+_e,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=t0(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:l-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else Jp(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+Cn));i+=t.getUint32(i+Cn)+Gr+Ke+4}return r}function Wp(t,e){return P(t,e+Tt,Ke)==="IHDR"}function Yp(t,e){return P(t,e+Tt,Ke)===Zt&&P(t,e+_e,ai.length)===ai}function Qp(t,e,n){const r=P(t,e+Tt,Ke);return r===ec||r===Zt||r===ci&&n}function Xp(t,e){return P(t,e+Tt,Ke)===jp}function Kp(t,e){return P(t,e+Tt,Ke)===Gp}function Jp(t,e){const n=[tc,nc],r=P(t,e+Tt,Ke);return n.includes(r)}function e0(t,e){e+=_e+ai.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function t0(t,e){const i=wn(t,e);e+=i.length+1;const l=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:l,compressedProfileOffset:e}}function n0(t,e){return t.getUint32(e+4)}function r0(t,e,n,r){const{offsets:l,sizes:s}=o0(e,n+3),a=t.getUint8(l.offsetSize)>>4;s.item.extent.extentOffset=a;const c=t.getUint8(l.lengthSize)&15;s.item.extent.extentLength=c;const u=t.getUint8(l.baseOffsetSize)>>4;s.item.baseOffset=u;const d=i0(t,l.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=l0(t,l.itemCount,e);return{type:"iloc",items:s0(t,e,l,s,a,c,d,f),length:r}}function o0(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function i0(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function l0(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function s0(t,e,n,r,i,l,s,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=a0(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Hr(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let _=0;_<f.extentCount;_++){const m={};m.extentIndex=c0(t,e,u,s),u+=r.item.extent.extentIndex,m.extentOffset=Hr(t,u,i),u+=r.item.extent.extentOffset,m.extentLength=Hr(t,u,l),u+=r.item.extent.extentLength,f.extents.push(m)}c.push(f)}return c}function a0(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function c0(t,e,n,r){if((e===1||e===2)&&r>0)return Hr(t,n,r)}function Hr(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),n0(t,e)):0}const u0=1718909296,d0=1768977008,f0=1835365473,_0=1768714083,m0=1768517222,p0=1768842853,h0=1768973167,g0=1668246642,rc=1165519206,ui=1835625829,y0=1970432288;function Zr(t,e){const{length:l,contentOffset:s}=b0(t,e);if(l<8)return;const a=t.getUint32(e+4);if(a===u0)return N0(t,s,l);if(a===d0)return F0(t,e,s,l);if(a===h0)return D0(t,e,s,l);if(a===g0)return O0(t,s,l);const c=t.getUint8(s);return a===f0?A0(t,e,s+1,l):a===_0?r0(t,c,s+1,l):a===m0?P0(t,e,c,s+1,l):a===p0?V0(t,e,c,s+1,l):{type:void 0,length:l}}function b0(t,e){const s=t.getUint32(e);return x0(s)?{length:t.byteLength-e,contentOffset:e+4+4}:k0(s)&&w0(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function x0(t){return t===0}function k0(t){return t===1}function w0(t,e){return t.getUint32(e+8)===0}function oc(t){{const e={},n=S0(t);return n?(e.tiffHeaderOffset=C0(t,n),e.xmpChunks=v0(n),e.iccChunks=I0(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function S0(t){let r=0;for(;r+4+4<=t.byteLength;){const i=Zr(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function C0(t,e){try{const n=T0(e).itemId,r=di(e,n),i=r.baseOffset+r.extents[0].extentOffset;return E0(t,i)}catch{return}}function T0(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===rc)}function di(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function E0(t,e){return e+4+t.getUint32(e)}function v0(t){try{const e=B0(t).itemId,n=di(t,e),r=di(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function B0(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ui&&e.contentType==="application/rdf+xml")}function I0(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function N0(t,e,n){return{type:"ftyp",majorBrand:P(t,e,4),length:n}}function F0(t,e,n,r){return{type:"iprp",subBoxes:Wr(t,n,r-(n-e)),length:r}}function D0(t,e,n,r){return{type:"ipco",properties:Wr(t,n,r-(n-e)),length:r}}function O0(t,e,n){return{type:"colr",icc:$0(t,e),length:n}}function $0(t,e){const r=P(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function A0(t,e,n,r){return{type:"meta",subBoxes:Wr(t,n+3,r-(n+3-e)),length:r}}function Wr(t,e,n){const r=[rc,ui],i=[];let l=e;for(;l<e+n;){const s=Zr(t,l);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),l+=s.length}return i}function P0(t,e,n,r,i){const{offsets:l}=M0(n,r);return{type:"iinf",itemInfos:Wr(t,l.itemInfos,i-(l.itemInfos-e)),length:i}}function M0(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function V0(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=wn(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=wn(t,r),r+=s.itemName.length+1,s.itemType===ui?(s.contentType=wn(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=wn(t,r),r+=s.contentEncoding.length+1)):s.itemType===y0&&(s.itemUri=wn(t,r),r+=s.itemUri.length+1)),s}const ic={isHeicFile:L0,findHeicOffsets:R0};function L0(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Zr(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function R0(t){return oc(t)}const lc={isAvifFile:U0,findAvifOffsets:z0};function U0(t){if(!t)return!1;try{const e=Zr(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function z0(t){return oc(t)}const sc={isWebpFile:q0,findOffsets:j0};function q0(t){const n="RIFF",i="WEBP";return!!t&&P(t,0,n.length)===n&&P(t,8,i.length)===i}function j0(t){const r="Exif\0\0";let l=12,s=!1,a,c,u,d;for(;l+8<t.byteLength;){const f=P(t,l,4),_=t.getUint32(l+4,!0);f==="EXIF"?(s=!0,P(t,l+8,r.length)===r?a=l+8+r.length:a=l+8):f==="XMP "?(s=!0,c=[{dataOffset:l+8,length:_}]):f==="ICCP"?(s=!0,u=[{offset:l+8,length:_,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=l+8),l+=8+(_%2===0?_:_+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const ac={isGifFile:Z0,findOffsets:W0},G0=6,H0=["GIF87a","GIF89a"];function Z0(t){return!!t&&H0.includes(P(t,0,G0))}function W0(){return{gifHeaderOffset:0}}const Y0={parseAppMarkers:Q0};function Q0(t,e){if(Pa.isTiffFile(t))return Wt(Pa.findTiffOffsets(),"tiff","TIFF");if(Ma.isJpegFile(t))return Wt(Ma.findJpegOffsets(t),"jpeg","JPEG");if(Ja.isPngFile(t))return Wt(Ja.findPngOffsets(t,e),"png","PNG");if(ic.isHeicFile(t))return Wt(ic.findHeicOffsets(t),"heic","HEIC");if(lc.isAvifFile(t))return Wt(lc.findAvifOffsets(t),"avif","AVIF");if(sc.isWebpFile(t))return Wt(sc.findOffsets(t),"webp","WebP");if(ac.isGifFile(t))return Wt(ac.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function Wt(t,e,n){return M({},t,{fileType:{value:e,description:n}})}const A={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},cc={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:A.XResolution},283:{name:"YResolution",description:A.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:A.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:A.LightSource},50779:{name:"CalibrationIlluminant2",description:A.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},X0={33434:{name:"ExposureTime",description:A.ExposureTime},33437:{name:"FNumber",description:A.FNumber},34850:{name:"ExposureProgram",description:A.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>se(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:A.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:A.ShutterSpeedValue},37378:{name:"ApertureValue",description:A.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:A.MeteringMode},37384:{name:"LightSource",description:A.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:A.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:ni},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:A.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:A.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:A.CustomRendered},41986:{name:"ExposureMode",description:A.ExposureMode},41987:{name:"WhiteBalance",description:A.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:A.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:A.Contrast},41993:{name:"Saturation",description:A.Saturation},41994:{name:"Sharpness",description:A.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},K0={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:jr},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:jr},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:ni},28:{name:"GPSAreaInformation",description:ni},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},J0={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>se(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},e1={45056:{name:"MPFVersion",description:t=>se(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},uc=M({},cc,X0),fi="0th",dc="1st",fc="exif",_c="gps",mc="interoperability",pc="mpf",Et={[fi]:uc,[dc]:cc,[fc]:uc,[_c]:K0,[mc]:J0,[pc]:e1},hc={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},_i={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},I={getAsciiValue:t1,getByteAt:gc,getAsciiAt:n1,getShortAt:r1,getLongAt:Yr,getRationalAt:o1,getUndefinedAt:i1,getSlongAt:mi,getSrationalAt:l1,getIfdPointerAt:s1,typeSizes:hc,tagTypes:_i,getTypeSize:a1};function t1(t){return t.map(e=>String.fromCharCode(e))}function gc(t,e){return t.getUint8(e)}function n1(t,e){return t.getUint8(e)}function r1(t,e,n){return t.getUint16(e,n===Ht.LITTLE_ENDIAN)}function Yr(t,e,n){return t.getUint32(e,n===Ht.LITTLE_ENDIAN)}function o1(t,e,n){return[Yr(t,e,n),Yr(t,e+4,n)]}function i1(t,e){return gc(t,e)}function mi(t,e,n){return t.getInt32(e,n===Ht.LITTLE_ENDIAN)}function l1(t,e,n){return[mi(t,e,n),mi(t,e+4,n)]}function s1(t,e,n){return Yr(t,e,n)}function a1(t){if(_i[t]===void 0)throw new Error("No such type found.");return hc[_i[t]]}const c1={1:I.getByteAt,2:I.getAsciiAt,3:I.getShortAt,4:I.getLongAt,5:I.getRationalAt,7:I.getUndefinedAt,9:I.getSlongAt,10:I.getSrationalAt,13:I.getIfdPointerAt};function yc(t,e,n){return e+I.getLongAt(t,e+4,n)}function Tn(t,e,n,r,i,l){const s=I.getTypeSize("SHORT"),a=12,c={},u=u1(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=d1(t,e,n,r,i,l);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-I.getTypeSize("LONG")){const d=I.getLongAt(t,r,i);d!==0&&e===fi&&(c.Thumbnail=Tn(t,dc,n,n+d,i,!0))}return c}function u1(t,e,n){return e+I.getTypeSize("SHORT")<=t.byteLength?I.getShortAt(t,e,n):0}function d1(t,e,n,r,i,l){const a=I.getTypeSize("SHORT"),c=a+I.getTypeSize("SHORT"),u=c+I.getTypeSize("LONG"),d=I.getShortAt(t,r,i),f=I.getShortAt(t,r+a,i),_=I.getLongAt(t,r+c,i);let m;if(I.typeSizes[f]===void 0||!l&&Et[e][d]===void 0)return;if(f1(f,_))m=bc(t,r+u,f,_,i);else{const y=I.getLongAt(t,r+u,i);if(_1(t,n,y,f,_)){const k=d===33723;m=bc(t,n+y,f,_,i,k)}else m="<faulty value>"}f===I.tagTypes.ASCII&&(m=m1(m),m=p1(m));let h=`undefined-${d}`,p=m;if(Et[e][d]!==void 0)if(Et[e][d].name!==void 0&&Et[e][d].description!==void 0){h=Et[e][d].name;try{p=Et[e][d].description(m)}catch{p=xc(m)}}else f===I.tagTypes.RATIONAL||f===I.tagTypes.SRATIONAL?(h=Et[e][d],p=""+m[0]/m[1]):(h=Et[e][d],p=xc(m));return{id:d,name:h,value:m,description:p}}function f1(t,e){return I.typeSizes[t]*e<=I.getTypeSize("LONG")}function bc(t,e,n,r,i,l=!1){let s=[];l&&(r=r*I.typeSizes[n],n=I.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(c1[n](t,e,i)),e+=I.typeSizes[n];return n===I.tagTypes.ASCII?s=I.getAsciiValue(s):s.length===1&&(s=s[0]),s}function _1(t,e,n,r,i){return e+n+I.typeSizes[r]*i<=t.byteLength}function m1(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function p1(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function xc(t){return t instanceof Array?t.join(", "):t}const kc="Exif IFD Pointer",wc="GPS Info IFD Pointer",Sc="Interoperability IFD Pointer",Cc={read:h1};function h1(t,e,n){const r=Ht.getByteOrder(t,e);let i=g1(t,e,r,n);return i=y1(i,t,e,r,n),i=b1(i,t,e,r,n),i=x1(i,t,e,r,n),i}function g1(t,e,n,r){return Tn(t,fi,e,yc(t,e,n),n,r)}function y1(t,e,n,r,i){return t[kc]!==void 0?M(t,Tn(e,fc,n,n+t[kc].value,r,i)):t}function b1(t,e,n,r,i){return t[wc]!==void 0?M(t,Tn(e,_c,n,n+t[wc].value,r,i)):t}function x1(t,e,n,r,i){return t[Sc]!==void 0?M(t,Tn(e,mc,n,n+t[Sc].value,r,i)):t}const k1={read:w1},En=16;function w1(t,e,n){const r=Ht.getByteOrder(t,e),i=Tn(t,pc,e,yc(t,e,r),r,n);return S1(t,e,i,r)}function S1(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let l=0;l<Math.ceil(n.MPEntry.value.length/En);l++){i[l]={};const s=er(n.MPEntry.value,l*En,I.getTypeSize("LONG"),r);i[l].ImageFlags=C1(s),i[l].ImageFormat=T1(s),i[l].ImageType=E1(s);const a=er(n.MPEntry.value,l*En+4,I.getTypeSize("LONG"),r);i[l].ImageSize={value:a,description:""+a};const c=v1(l,n.MPEntry,r,e);i[l].ImageOffset={value:c,description:""+c};const u=er(n.MPEntry.value,l*En+12,I.getTypeSize("SHORT"),r);i[l].DependentImage1EntryNumber={value:u,description:""+u};const d=er(n.MPEntry.value,l*En+14,I.getTypeSize("SHORT"),r);i[l].DependentImage2EntryNumber={value:d,description:""+d},i[l].image=t.buffer.slice(c,c+a),Na(i[l],"base64",function(){return Fa(this.image)})}return n.Images=i,n}function er(t,e,n,r){if(r===Ht.LITTLE_ENDIAN){let l=0;for(let s=0;s<n;s++)l+=t[e+s]<<8*s;return l}let i=0;for(let l=0;l<n;l++)i+=t[e+l]<<8*(n-1-l);return i}function C1(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function T1(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function E1(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function v1(t,e,n,r){return B1(t)?0:er(e.value,t*En+8,I.getTypeSize("LONG"),n)+r}function B1(t){return t===0}const I1={read:N1};function N1(t,e){const n=F1(t,e),r=A1(t,e,n);return{"Bits Per Sample":D1(t,e,n),"Image Height":O1(t,e,n),"Image Width":$1(t,e,n),"Color Components":r,Subsampling:r&&P1(t,e,r.value,n)}}function F1(t,e){return I.getShortAt(t,e)}function D1(t,e,n){if(3>n)return;const l=I.getByteAt(t,e+2);return{value:l,description:""+l}}function O1(t,e,n){if(5>n)return;const l=I.getShortAt(t,e+3);return{value:l,description:`${l}px`}}function $1(t,e,n){if(7>n)return;const l=I.getShortAt(t,e+5);return{value:l,description:`${l}px`}}function A1(t,e,n){if(8>n)return;const l=I.getByteAt(t,e+7);return{value:l,description:""+l}}function P1(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const c=e+8+a*3;s.push([I.getByteAt(t,c),I.getByteAt(t,c+1),I.getByteAt(t,c+2)])}return{value:s,description:s.length>1?M1(s)+V1(s):""}}function M1(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function V1(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const L1={read:R1};function R1(t,e){const n=U1(t,e),r=Z1(t,e,n),i=W1(t,e,n),l={"JFIF Version":z1(t,e,n),"Resolution Unit":q1(t,e,n),XResolution:G1(t,e,n),YResolution:H1(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=Y1(t,e,3*r.value*i.value,n);s&&(l["JFIF Thumbnail"]=s)}for(const s in l)l[s]===void 0&&delete l[s];return l}function U1(t,e){return I.getShortAt(t,e)}function z1(t,e,n){if(9>n)return;const l=I.getByteAt(t,e+7),s=I.getByteAt(t,e+7+1);return{value:l*256+s,description:l+"."+s}}function q1(t,e,n){if(10>n)return;const l=I.getByteAt(t,e+9);return{value:l,description:j1(l)}}function j1(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function G1(t,e,n){if(12>n)return;const l=I.getShortAt(t,e+10);return{value:l,description:""+l}}function H1(t,e,n){if(14>n)return;const l=I.getShortAt(t,e+12);return{value:l,description:""+l}}function Z1(t,e,n){if(15>n)return;const l=I.getByteAt(t,e+14);return{value:l,description:`${l}px`}}function W1(t,e,n){if(16>n)return;const l=I.getByteAt(t,e+15);return{value:l,description:`${l}px`}}function Y1(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const vt={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:pi},336:{name:"Time Sent",description:hi},346:{name:"Coded Character Set",description:Tc,encoding_name:Tc},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>se(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=se(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=se(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:pi},572:{name:"Time Created",description:hi},574:{name:"Digital Creation Date",description:pi},575:{name:"Digital Creation Time",description:hi},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=se(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=se(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=se(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(se(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(se(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=se(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return se(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=se(t);if(e["ObjectData Preview File Format"]){const i=se(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function pi(t){const e=se(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function hi(t){const e=se(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function Tc(t){const e=se(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const Q1={get:X1};function X1(){if(typeof TextDecoder<"u")return TextDecoder}const Ec={decode:K1,TAG_HEADER_SIZE:5};function K1(t,e){const n=Q1.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return J1(r)}function J1(t){try{return decodeURIComponent(escape(t))}catch{return t}}const eh=943868237,vc=4,gi=vc+8,th=1028,Bc=5,yi={read:nh};function nh(t,e,n){try{if(Array.isArray(t))return Ic(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=rh(t,e);return Ic(t,r,i,n)}catch{return{}}}function rh(t,e){for(;e+gi<=t.byteLength;){const n=oh(t,e);if(ih(n))return{naaBlock:n,dataOffset:e+gi};e+=gi+n.size+lh(n)}throw new Error("No IPTC NAA resource block.")}function oh(t,e){if(t.getUint32(e,!1)!==eh)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+vc),size:t.getUint16(e+10)}}function ih(t){return t.type===th}function lh(t){return t.size%2!==0?1:0}function Ic(t,e,n,r){const i={};let l;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:c}=sh(t,n,i,l,r);if(a===null)break;a&&("encoding"in a&&(l=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=Bc+c}return i}function sh(t,e,n,r,i){if(ah(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!i&&!vt.iptc[a])return{tag:void 0,tagSize:c};const u=ch(t,e+Bc,c),d={id:a,name:uh(vt.iptc[a],a,u),value:u,description:_h(vt.iptc[a],u,n,r)};return hh(a)&&(d.repeatable=!0),gh(a)&&(d.encoding=vt.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function ah(t,e){return t.getUint8(e)!==28}function ch(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function uh(t,e,n){return t?dh(t)?t:fh(t)?t.name(n):t.name:`undefined-${e}`}function dh(t){return typeof t=="string"}function fh(t){return typeof t.name=="function"}function _h(t,e,n,r){if(ph(t))try{return t.description(e,n)}catch{}return mh(t,e)?Ec.decode(r,e):e}function mh(t,e){return t&&e instanceof Array}function ph(t){return t&&t.description!==void 0}function hh(t){return vt.iptc[t]&&vt.iptc[t].repeatable}function gh(t){return vt.iptc[t]&&vt.iptc[t].encoding_name!==void 0}const Qr={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>A.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>vn(A.XResolution,t),"tiff:YResolution":t=>vn(A.YResolution,t),"exif:ApertureValue":t=>vn(A.ApertureValue,t),"exif:GPSLatitude":Fc,"exif:GPSLongitude":Fc,"exif:FNumber":t=>vn(A.FNumber,t),"exif:FocalLength":t=>vn(A.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>A.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>A.ColorSpace(yh(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return A.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>A.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>A.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>A.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>A.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return Nc(t)?A.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>A.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>A.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>A.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>A.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>vn(A.ShutterSpeedValue,t),"exif:WhiteBalance":t=>A.WhiteBalance(parseInt(t,10))};function vn(t,e){return Nc(e)?t(e.split("/")):e}function yh(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function Nc(t){return/^-?\d+\/-?\d+$/.test(t)}function Fc(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),l=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+l}return t}const bh={get:xh};function xh(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const Dc={read:kh};function kh(t,e){const n={};if(typeof t=="string")return Xr(n,t),n;const[r,i]=wh(t,e),l=Xr(n,r);if(i){const s=Xr(n,i);!l&&!s&&(delete n._raw,Xr(n,bi(t,e)))}return n}function wh(t,e){if(e.length===0)return[];const n=[bi(t,e.slice(0,1))];return e.length>1&&n.push(bi(t,e.slice(1))),n}function bi(t,e){const n=e.reduce((l,s)=>l+s.length,0),r=new Uint8Array(n);let i=0;for(let l=0;l<e.length;l++){const s=e[l],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function Xr(t,e){try{const{doc:n,raw:r}=Sh(e);t._raw=(t._raw||"")+r;const i=Oc(n);return M(t,Ac($c(i,!0))),!0}catch{return!1}}function Sh(t){const e=bh.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:P(t,0,t.byteLength),r=e.parseFromString(Ch(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function Ch(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function Oc(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return Oc(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function $c(t,e=!1){const n=Th(t);return Eh(n)?e?{}:vh(n[0]):Bh(n)}function Th(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function Eh(t){return t.length===1&&t[0].nodeName==="#text"}function vh(t){return t.nodeValue}function Bh(t){const e={};return t.forEach(n=>{if(Ih(n)){const r=Nh(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function Ih(t){return t.nodeName&&t.nodeName!=="#text"}function Nh(t){return{attributes:Fh(t),value:$c(t)}}function Fh(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function Ac(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{M(e,xi(i.attributes)),typeof i.value=="object"&&M(e,Pc(i.value))})}return e}function xi(t){const e={};for(const n in t)try{Dh(n)&&(e[Jr(n)]={value:t[n],attributes:{},description:dt(t[n],n)})}catch{}return e}function Dh(t){return t!=="rdf:parseType"&&!Kr(t)}function Kr(t){return t.split(":")[0]==="xmlns"}function Jr(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function dt(t,e=void 0){if(Array.isArray(t)){const n=Oh(t);return e&&typeof Qr[e]=="function"?Qr[e](t,n):n}if(typeof t=="object")return $h(t);try{return e&&typeof Qr[e]=="function"?Qr[e](t):decodeURIComponent(escape(t))}catch{return t}}function Oh(t){return t.map(e=>e.value!==void 0?dt(e.value):dt(e)).join(", ")}function $h(t){const e=[];for(const n in t)e.push(`${Ah(n)}: ${dt(t[n].value)}`);return e.join("; ")}function Ah(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function Pc(t){const e={};for(const n in t)try{Kr(n)||(e[Jr(n)]=Ph(t[n],n))}catch{}return e}function Ph(t,e){return Vh(t)?Lh(t,e):Mh(t)?{value:"",attributes:{},description:""}:Mc(t)?Vc(t,e):Lc(t)?Rc(t,e):Uc(t)?zc(t,e):zh(t)?qh(t,e):ki(t,e)}function Mh(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function Vh(t){return Array.isArray(t)}function Lh(t,e){return ki(t[t.length-1],e)}function Mc(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function Vc(t,e){const n=tr(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),M(n,tr(t),Rh(t));const r=Uh(t);return{value:r,attributes:n,description:dt(r,e)}}function tr(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Kr(n)&&(e[Jr(n)]=t.attributes[n]);return e}function Rh(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Kr(n)&&(e[Jr(n)]=t.value[n].value);return e}function Uh(t){return jc(t.value["rdf:value"])||t.value["rdf:value"].value}function Lc(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function Rc(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(M(n.value,xi(t.value["rdf:Description"].attributes)),M(n.attributes,tr(t)),t=t.value["rdf:Description"]),M(n.value,Pc(t.value)),n.description=dt(n.value,e),n}function Uc(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function zc(t,e){const n=xi(t.attributes);return{value:n,attributes:{},description:dt(n,e)}}function zh(t){return qc(t.value)!==void 0}function qc(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function qh(t,e){let n=qc(t.value).value["rdf:li"];const r=tr(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(l=>{i.push(jh(l))}),{value:i,attributes:r,description:dt(i,e)}}function jh(t){return Mc(t)?Vc(t):Lc(t)?Rc(t).value:Uc(t)?zc(t).value:ki(t)}function ki(t,e){const n=jc(t)||Ac(t.value);return{value:n,attributes:tr(t),description:dt(n,e)}}function jc(t){return t.attributes&&t.attributes["rdf:resource"]}const ft={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},Gc=24,wi={2e3:{name:"PathInformation",description:Gh},2999:{name:"ClippingPathName",description(t){const[,e]=Ia(t,0);return e}}};function Gh(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+Gc){const l=I.getShortAt(t,i);Si[l]&&(n[l]||(n[l]=Si[l].description),r.push({type:l,path:Si[l].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const Si={[ft.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[I.getShortAt(t,e)]},[ft.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:eo},[ft.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:eo},[ft.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[I.getShortAt(t,e)]},[ft.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:eo},[ft.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:eo},[ft.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[ft.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[I.getShortAt(t,e)]},[ft.CLIPBOARD]:{description:"Clipboard",path:Zh}};function eo(t,e){const r=[];for(let i=0;i<Gc;i+=8)r.push(Hh(t,e+i));return r}function Hh(t,e){const n=Yt(t,e,8);return[Yt(t,e+4,8),n]}function Zh(t,e){return[[Yt(t,e,8),Yt(t,e+4,8),Yt(t,e+8,8),Yt(t,e+12,8)],Yt(t,e+16,8)]}function Yt(t,e,n){const r=I.getLongAt(t,e),i=r>>>31?-1:1,l=(r&2130706432)>>>32-n,s=r&parseInt(Da("1",32-n),2);return i*sp(l.toString(2)+"."+lp(s.toString(2),32-n,"0"),2)}const Wh={read:Xh},Hc="8BIM",Yh=2,Qh=4,Zc=Hc.length;function Xh(t,e){const n=Ba(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const l=P(n,i,Zc);i+=Zc;const s=I.getShortAt(n,i);i+=Yh;const{tagName:a,tagNameSize:c}=Kh(n,i);i+=c;const u=I.getLongAt(n,i);if(i+=Qh,l===Hc){const d=Ba(n.buffer,i,u),f={id:s,value:P(d,0,u)};if(wi[s]){try{f.description=wi[s].description(d)}catch{f.description="<no description formatter>"}r[a||wi[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function Kh(t,e){const[n,r]=Ia(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const Wc={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},Yc={4:{name:"Preferred CMM type",value:(t,e)=>P(t,e,4),description:t=>t!==null?Ci(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>P(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>P(t,e,4)},20:{name:"Connection Space",value:(t,e)=>P(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>Jh(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>eg(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>P(t,e,4),description:t=>Ci(t)},48:{name:"Device Manufacturer",value:(t,e)=>P(t,e,4),description:t=>Ci(t)},52:{name:"Device Model Number",value:(t,e)=>P(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>P(t,e,4)}};function Jh(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),l=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,l,s,a))}function eg(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ci(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const Qc={read:cg},tg=84,ng=128,rg="acsp",og="desc",ig="mluc",lg="text",sg="sig ",ag=12;function cg(t,e,n){return n&&e[0].compressionMethod!==qr?ug(t,e):fg(t,e)}function ug(t,e){if(!dg(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return $a(n,e[0].compressionMethod,"dataview").then(Xc).catch(()=>({}))}function dg(t){return t===Oa}function fg(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const l=_g(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const c=l.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,i),i+=u.length}return Xc(new DataView(r.buffer))}catch{return{}}}function _g(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function mg(t){return t.length<ng+4}function pg(t,e){return t.length<e+ag}function Xc(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<tg)throw new Error("ICC profile too short");const r={},i=Object.keys(Yc);for(let c=0;c<i.length;c++){const u=i[c],d=Yc[u],f=d.value(t,parseInt(u,10));let _=f;d.description&&(_=d.description(f)),r[d.name]={value:f,description:_}}if(to(e.slice(36,40))!==rg)throw new Error("ICC profile: missing signature");if(mg(e))return r;const s=t.getUint32(128);let a=132;for(let c=0;c<s;c++){if(pg(e,a))return r;const u=P(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const _=P(t,d,4);if(_===og){const m=t.getUint32(d+8);if(m>f)return r;const h=to(e.slice(d+12,d+m+11));nr(r,u,h)}else if(_===ig){const m=t.getUint32(d+8),h=t.getUint32(d+12);let p=d+16;const y=[];for(let k=0;k<m;k++){const w=P(t,p+0,2),C=P(t,p+2,2),T=t.getUint32(p+4),v=t.getUint32(p+8),x=op(t,d+v,T);y.push({languageCode:w,countryCode:C,text:x}),p+=h}if(m===1)nr(r,u,y[0].text);else{const k={};for(let w=0;w<y.length;w++)k[`${y[w].languageCode}-${y[w].countryCode}`]=y[w].text;nr(r,u,k)}}else if(_===lg){const m=to(e.slice(d+8,d+f-7));nr(r,u,m)}else if(_===sg){const m=to(e.slice(d+8,d+12));nr(r,u,m)}a=a+12}return r}function to(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function nr(t,e,n){Wc[e]?t[Wc[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const hg={read:gg};function gg(t,e){return{"Image Width":yg(t,e),"Image Height":bg(t,e),"Bit Depth":xg(t,e),"Color Type":kg(t,e),Compression:wg(t,e),Filter:Sg(t,e),Interlace:Cg(t,e)}}function yg(t,e){if(e+0+4>t.byteLength)return;const i=I.getLongAt(t,e);return{value:i,description:`${i}px`}}function bg(t,e){if(e+4+4>t.byteLength)return;const i=I.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function xg(t,e){if(e+8+1>t.byteLength)return;const i=I.getByteAt(t,e+8);return{value:i,description:`${i}`}}function kg(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const l=I.getByteAt(t,e+9);return{value:l,description:i[l]||"Unknown"}}function wg(t,e){if(e+10+1>t.byteLength)return;const i=I.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function Sg(t,e){if(e+11+1>t.byteLength)return;const i=I.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function Cg(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const l=I.getByteAt(t,e+12);return{value:l,description:i[l]||"Unknown"}}const Tg={read:Ng},Ti="STATE_KEYWORD",Ei="STATE_COMPRESSION",vi="STATE_LANG",Eg="STATE_TRANSLATED_KEYWORD",Bi="STATE_TEXT",vg=1,Bg=1,Ig=6;function Ng(t,e,n,r){const i={},l=[];for(let s=0;s<e.length;s++){const{offset:a,length:c,type:u}=e[s],d=Fg(t,a,c,u,n);if(d instanceof Promise)l.push(d.then(({name:f,value:_,description:m})=>{try{if(Aa.USE_EXIF&&Pg(f,_))return{__exif:Cc.read(Jc(_),Ig,r)};if(Aa.USE_IPTC&&Mg(f,_))return{__iptc:yi.read(Jc(_),0,r)};if(f)return{[f]:{value:_,description:m}}}catch{}return{}}));else{const{name:f,value:_,description:m}=d;f&&(i[f]={value:_,description:m})}}return{readTags:i,readTagsPromise:l.length>0?Promise.all(l):void 0}}function Fg(t,e,n,r,i){const l=[],s=[];let a,c=Ti,u=qr;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Ei){u=Dg({type:r,dataView:t,offset:e+f}),r===Zt&&(f+=vg),c=Kc(r,c);continue}else if(c===Bi){a=new DataView(t.buffer.slice(e+f,e+n));break}const _=t.getUint8(e+f);_===0?c=Kc(r,c):c===Ti?l.push(_):c===vi&&s.push(_)}if(u!==qr&&!i)return{};const d=$a(a,u);return d instanceof Promise?d.then(f=>Ii(f,r,s,l)).catch(()=>Ii("<text using unknown compression>".split(""),r,s,l)):Ii(d,r,s,l)}function Dg({type:t,dataView:e,offset:n}){if(t===Zt){if(e.getUint8(n)===Bg)return e.getUint8(n+1)}else if(t===ci)return e.getUint8(n);return qr}function Kc(t,e){return e===Ti&&[Zt,ci].includes(t)?Ei:e===Ei?t===Zt?vi:Bi:e===vi?Eg:Bi}function Ii(t,e,n,r){const i=$g(t);return{name:Og(e,n,r),value:i,description:e===Zt?Ag(t):i}}function Og(t,e,n){const r=Sn(n);if(t===ec||e.length===0)return r;const i=Sn(e);return`${r} (${i})`}function $g(t){return t instanceof DataView?P(t,0,t.byteLength):t}function Ag(t){return Ec.decode("UTF-8",t)}function Pg(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function Mg(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function Jc(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return Vg(e[2].replace(/\n/g,""))}function Vg(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const Lg={read:Rg};function Rg(t,e){const n={};for(let r=0;r<e.length;r++){const i=I.getLongAt(t,e[r]+Cn),l=P(t,e[r]+Tt,Ke);l===tc?(n["Pixels Per Unit X"]=Ug(t,e[r],i),n["Pixels Per Unit Y"]=zg(t,e[r],i),n["Pixel Units"]=qg(t,e[r],i)):l===nc&&(n["Modify Date"]=jg(t,e[r],i))}return n}function Ug(t,e,n){if(!no(t,e,n,0,4))return;const l=I.getLongAt(t,e+_e+0);return{value:l,description:""+l}}function zg(t,e,n){if(!no(t,e,n,4,4))return;const l=I.getLongAt(t,e+_e+4);return{value:l,description:""+l}}function qg(t,e,n){if(!no(t,e,n,8,1))return;const l=I.getByteAt(t,e+_e+8);return{value:l,description:l===1?"meters":"Unknown"}}function jg(t,e,n){if(!no(t,e,n,0,7))return;const i=I.getShortAt(t,e+_e),l=I.getByteAt(t,e+_e+2),s=I.getByteAt(t,e+_e+3),a=I.getByteAt(t,e+_e+4),c=I.getByteAt(t,e+_e+5),u=I.getByteAt(t,e+_e+6);return{value:[i,l,s,a,c,u],description:`${Bn(i,4)}-${Bn(l,2)}-${Bn(s,2)} ${Bn(a,2)}:${Bn(c,2)}:${Bn(u,2)}`}}function no(t,e,n,r,i){return r+i<=n&&e+_e+r+i<=t.byteLength}function Bn(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const Gg={read:Wg},Hg=4,Zg=7;function Wg(t,e){const n={},r=I.getByteAt(t,e);return n.Alpha=Yg(r),n.Animation=Qg(r),n.ImageWidth=eu(t,e+Hg),n.ImageHeight=eu(t,e+Zg),n}function Yg(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function Qg(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function eu(t,e){const n=I.getByteAt(t,e)+256*I.getByteAt(t,e+1)+65536*I.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const Xg={read:Kg};function Kg(t){return{"GIF Version":Jg(t),"Image Width":ey(t),"Image Height":ty(t),"Global Color Map":ny(t),"Bits Per Pixel":oy(t),"Color Resolution Depth":ry(t)}}function Jg(t){if(6>t.byteLength)return;const r=P(t,3,3);return{value:r,description:r}}function ey(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function ty(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function ny(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function ry(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function oy(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const iy=[6,7,99],ly={get:sy};function sy(t,e,n){if(ay(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),Na(e,"base64",function(){return Fa(this.image)})}return e}function ay(t){return t&&(t.Compression===void 0||iy.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function tu(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}tu.prototype=new Error;const nu={MetadataMissingError:tu},cy={load:uy,loadView:ru,errors:nu};function uy(t,e={}){return dy(t)?(e.async=!0,fy(t,e).then(n=>Ni(n,e))):by(t)?(e.async=!0,xy(t).then(n=>Ni(n,e))):Ni(t,e)}function dy(t){return typeof t=="string"}function fy(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?_y(t,e):my(t,e):hy(t)?Promise.resolve(ip(t)):gy(t,e)}function _y(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function my(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),py(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",c=>a.push(Buffer.from(c))),s.on("error",c=>r(c)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function py(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function hy(t){return/^data:[^;,]*(;base64)?,/.test(t)}function gy(t,{length:e}={}){return new Promise((n,r)=>{const i=yy();i.open(t,(l,s)=>{l?r(l):i.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,_=>{_?r(_):i.close(s,m=>{m&&console.warn(`Could not close file ${t}:`,m),n(d)})})}})})})}function yy(){try{return __non_webpack_require__("fs")}catch{return}}function by(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function xy(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ni(t,e){return ky(t)&&(t=new Uint8Array(t).buffer),ru(wy(t),e)}function ky(t){try{return Buffer.isBuffer(t)}catch{return!1}}function wy(t){try{return new DataView(t)}catch{return new va(t)}}function ru(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let i=!1,l={};const s=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:_,iccChunks:m,mpfDataOffset:h,pngHeaderOffset:p,pngTextChunks:y,pngChunkOffsets:k,vp8xChunkOffset:w,gifHeaderOffset:C}=Y0.parseAppMarkers(t,n);if(Sy(c)){i=!0;const g=I1.read(t,c);e?l.file=g:l=M({},l,g)}if(Cy(u)){i=!0;const g=L1.read(t,u);e?l.jfif=g:l=M({},l,g)}if(Ty(d)){i=!0;const g=Cc.read(t,d,r);if(g.Thumbnail&&(l.Thumbnail=g.Thumbnail,delete g.Thumbnail),e?(l.exif=g,Ey(l)):l=M({},l,g),g["IPTC-NAA"]&&!ou(f)){const S=yi.read(g["IPTC-NAA"].value,0,r);e?l.iptc=S:l=M({},l,S)}if(g.ApplicationNotes&&!iu(_)){const S=Dc.read(Sn(g.ApplicationNotes.value));e?l.xmp=S:(delete S._raw,l=M({},l,S))}if(g.ImageSourceData){const S=Wh.read(g.PhotoshopSettings.value,r);e?l.photoshop=S:l=M({},l,S)}if(g.ICC_Profile&&!lu(m)){const S=Qc.read(g.ICC_Profile.value,[{offset:0,length:g.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?l.icc=S:l=M({},l,S)}}if(ou(f)){i=!0;const g=yi.read(t,f,r);e?l.iptc=g:l=M({},l,g)}if(iu(_)){i=!0;const g=Dc.read(t,_);e?l.xmp=g:(delete g._raw,l=M({},l,g))}if(lu(m)){i=!0;const g=Qc.read(t,m,n);g instanceof Promise?s.push(g.then(v)):v(g)}if(vy(h)){i=!0;const g=k1.read(t,h,r);e?l.mpf=g:l=M({},l,g)}if(By(p)){i=!0;const g=hg.read(t,p);e?(l.png=l.png?M({},l.png,g):g,l.pngFile=g):l=M({},l,g)}if(Iy(y)){i=!0;const{readTags:g,readTagsPromise:S}=Tg.read(t,y,n,r);x(g),S&&s.push(S.then(E=>E.forEach(x)))}if(Ny(k)){i=!0;const g=Lg.read(t,k);e?l.png=l.png?M({},l.png,g):g:l=M({},l,g)}if(Fy(w)){i=!0;const g=Gg.read(t,w);e?l.riff=l.riff?M({},l.riff,g):g:l=M({},l,g)}if(Dy(C)){i=!0;const g=Xg.read(t,C);e?l.gif=l.gif?M({},l.gif,g):g:l=M({},l,g)}const T=ly.get(t,l.Thumbnail,d);if(T?(i=!0,l.Thumbnail=T):delete l.Thumbnail,a&&(e?(l.file||(l.file={}),l.file.FileType=a):l.FileType=a,i=!0),!i)throw new nu.MetadataMissingError;if(n)return Promise.all(s).then(()=>l);return l;function v(g){e?l.icc=g:l=M({},l,g)}function x(g){if(e){for(const S of["exif","iptc"]){const E=`__${S}`;g[E]&&(l[S]=l[S]?M({},l.exif,g[E]):g[E],delete g[E])}l.png=l.png?M({},l.png,g):g,l.pngText=l.pngText?M({},l.png,g):g}else l=M({},l,g.__exif?g.__exif:{},g.__iptc?g.__iptc:{},g)}}function Sy(t){return t!==void 0}function Cy(t){return t!==void 0}function Ty(t){return t!==void 0}function Ey(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=jr(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=jr(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function ou(t){return t!==void 0}function iu(t){return Array.isArray(t)&&t.length>0}function lu(t){return Array.isArray(t)&&t.length>0}function vy(t){return t!==void 0}function By(t){return t!==void 0}function Iy(t){return t!==void 0}function Ny(t){return t!==void 0}function Fy(t){return t!==void 0}function Dy(t){return t!==void 0}async function su(t,e=null){if(t.location)return t.location;try{const n=await cy.load(t.blobUrl||t.url,{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude};const{waitForLocation:r,location:i}=Gl();return e&&setTimeout(()=>{!i.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:"&&await r(),e=!1,i.value?{latitude:i.value.latitude,longitude:i.value.longitude,accuracy:i.value.accuracy,altitude:i.value.altitude,altitudeAccuracy:i.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class ro{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,...ue.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';");this.prepare()}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await su(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:""}}setXhrCallbacks(){var e,n,r;for(const i of this.fileUploads)(e=i.xhr)==null||e.addEventListener("error",l=>this.errorHandler(l,i.file),!1);if(this.onProgressCb)for(const i of this.fileUploads)(n=i.xhr)==null||n.upload.addEventListener("progress",l=>{const s=Math.min(.95,l.loaded/l.total);this.fireProgressCallback(i,s)},!1);for(const i of this.fileUploads)(r=i.xhr)==null||r.addEventListener("load",async l=>{try{const s=await this.completePresignedUpload(i);this.fireCompleteCallback(i,s),this.checkAllComplete()}catch(s){this.errorHandler(l,i.file,s)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const i=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!i.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const l=!i.url.match("upload-presigned-url-contents");n.file.resource_id=i.id;const s=new XMLHttpRequest;l?(s.open("PUT",i.url),s.setRequestHeader("Content-Type",r),n.body=n.file):(s.open("POST",i.url),n.body=n.formData),n.xhr=s}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const oo=o.ref([]),io=o.ref([]);function Oy(t){oo.value=[...oo.value,t]}function $y(t,e,n){io.value.push({id:n,name:t,callback:e})}function Ay(t){io.value=io.value.filter(e=>e.id!==t)}function au(t,e,n){for(let r of oo.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let i of io.value)i.name===r.name&&i.callback(n)}function cu(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function Py(t){oo.value=t,window.addEventListener("keydown",e=>{au("keydown",cu(e),e)}),window.addEventListener("keyup",e=>{au("keyup",cu(e),e)})}function uu(t){const e=o.ref([]),n=o.ref(null),r=o.ref(null),i=f=>{e.value=[...e.value,...f.target.files],new ro(f.target.files,t).onProgress(({file:_})=>{l(_)}).onComplete(({file:_,uploadedFile:m})=>{_&&l(_,m)}).onError(({file:_})=>{Ve.error(`Failed to upload ${_.name}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function l(f,_=null){const m=e.value.findIndex(h=>h.id===f.id);m!==-1&&e.value.splice(m,1,_||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const _=e.value.findIndex(m=>m.id===f.id);_!==-1&&e.value.splice(_,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var _;i({target:{files:(_=f.dataTransfer)==null?void 0:_.files}})},onFilesSelected:i,uploadedFiles:e}}const we={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=ue.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var s;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=we.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),we.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}const i=await fetch(we.url(t),e);if(My(i),n){if(r<we.abortControllers[n].timestamp)throw new Error("Request was aborted due to a newer request being made: "+r+" < "+we.abortControllers[n].timestamp);delete we.abortControllers[n]}const l=await i.json();if(i.status===401){const a=(s=ue.value.request)==null?void 0:s.onUnauthorized;return a?a(l,i):{error:!0,message:"Unauthorized",...l}}return i.status>400&&l.exception&&!l.error&&(l.error=!0),l},async get(t,e){var n;return await we.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=ue.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await we.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=ue.value.request)==null?void 0:r.headers},...n})}};function My(t){const e=ue.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function Vy(t,e,n,r){let i;n&&(i=e.value.find(l=>l.id===n)||(await t({id:n}))[0]),e.value=await t(r),i&&!e.value.find(l=>l.id===n)&&e.value.push(i)}function du(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function Ly(t){return{list(e){return we.post(`${t}/list`,e)},summary(e){return we.post(`${t}/summary`,{filter:e})},details(e){return we.get(`${t}/${e.id}/details`)},fieldOptions(){return we.get(`${t}/field-options`)},applyAction(e,n,r){return we.post(`${t}/${n?n.id:"new"}/apply-action`,{action:e,data:r})},batchAction(e,n,r){return we.post(`${t}/batch-action`,{action:e,filter:{id:n.map(i=>i.id)},data:r})},export(e,n){return Ta(`${t}/export`,n||"export.csv",{filter:e})}}}function fu(t=null){const e=o.ref(null),n=o.ref(null),r=o.ref(null),i=d=>{var f;e.value=null,new ro((f=d.target)==null?void 0:f.files[0],t).onProgress(({file:_})=>{e.value=_,r.value&&r.value(e.value)}).onComplete(({uploadedFile:_})=>{e.value=_,n.value&&n.value(e.value),r.value&&r.value(e.value)}).upload()},l=d=>{var f;i({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:o.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:l,onFileSelected:i,uploadedFile:e}}function Bt(t,e){localStorage.setItem(t,JSON.stringify(e))}function It(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function Ry(t,e=""){const n=Fi(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Fi(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Fi(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}function Uy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function _u(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function zy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function mu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function qy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function jy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function Gy(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const pu={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=o.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(i){console.error(i),Ve.error("Failed to export data")}n.value=!1}return(i,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(s,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:o.withCtx(()=>[o.createVNode(o.unref(Uy),{class:"w-5"})]),_:1},8,["loading"])}}},hu=o.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:o.withCtx(()=>[o.createVNode(o.unref(qy),{class:"w-5"})]),_:1},8,["loading"])}}}),Hy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Zy=[o.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)];function Wy(t,e){return o.openBlock(),o.createElementBlock("svg",Hy,[...Zy])}const gu={render:Wy},Yy={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Qy=[o.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)];function Xy(t,e){return o.openBlock(),o.createElementBlock("svg",Yy,[...Qy])}const yu={render:Xy},Ky={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"},Jy=[o.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)];function e2(t,e){return o.openBlock(),o.createElementBlock("svg",Ky,[...Jy])}const bu={render:e2},t2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},n2=[o.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)];function r2(t,e){return o.openBlock(),o.createElementBlock("svg",t2,[...n2])}const xu={render:r2},o2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},i2=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)];function l2(t,e){return o.openBlock(),o.createElementBlock("svg",o2,[...i2])}const Di={render:l2},s2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"},a2=[o.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),o.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)];function c2(t,e){return o.openBlock(),o.createElementBlock("svg",s2,[...a2])}const ku={render:c2},u2={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"},d2=[o.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)];function f2(t,e){return o.openBlock(),o.createElementBlock("svg",u2,[...d2])}const wu={render:f2},_2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},m2=[o.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)];function p2(t,e){return o.openBlock(),o.createElementBlock("svg",_2,[...m2])}const Su={render:p2},h2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g2=[o.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)];function y2(t,e){return o.openBlock(),o.createElementBlock("svg",h2,[...g2])}const Cu={render:y2},b2={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"},x2=[o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)];function k2(t,e){return o.openBlock(),o.createElementBlock("svg",b2,[...x2])}const lo={render:k2},w2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},S2=[o.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)];function C2(t,e){return o.openBlock(),o.createElementBlock("svg",w2,[...S2])}const Tu={render:C2},T2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},E2=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)];function v2(t,e){return o.openBlock(),o.createElementBlock("svg",T2,[...E2])}const so={render:v2},B2={class:"dx-previous-next-controls"},Eu={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",B2,[o.createVNode(r,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=i=>e.$emit("next",-1))},{default:o.withCtx(()=>[o.createVNode(o.unref(Cu),{class:"w-6"})]),_:1},8,["disable","loading"]),o.createVNode(r,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=i=>e.$emit("next",1))},{default:o.withCtx(()=>[o.createVNode(o.unref(Su),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function vu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function I2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function Bu(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function N2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function F2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function D2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function O2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function $2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function A2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function P2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function M2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function V2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function L2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function R2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const U2={class:"flex-grow"},z2={key:1,class:"dx-dialog-subtitle"},q2={class:"flex dx-dialog-actions"},Oi=o.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function r(){n("close")}return(i,l)=>{const s=o.resolveComponent("QCardSection"),a=o.resolveComponent("QCard"),c=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(c,{class:"dx-dialog","full-height":i.fullHeight,"full-width":i.fullWidth,"model-value":!0,"no-backdrop-dismiss":!i.backdropDismiss,maximized:i.maximized,"onUpdate:modelValue":r},{default:o.withCtx(()=>[o.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:o.withCtx(()=>[o.createVNode(s,{class:"dx-dialog-header flex items-center"},{default:o.withCtx(()=>[o.createElementVNode("div",U2,[i.title||i.$slots.title?(o.openBlock(),o.createElementBlock("h3",{key:0,class:o.normalizeClass(["dx-dialog-title flex items-center",i.titleClass])},[o.renderSlot(i.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(i.title),1)])],2)):o.createCommentVNode("",!0),i.subtitle||i.$slots.subtitle?(o.openBlock(),o.createElementBlock("div",z2,[o.renderSlot(i.$slots,"subtitle",{},()=>[o.createTextVNode(o.toDisplayString(i.subtitle),1)])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",null,[o.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[o.createVNode(o.unref(R2),{class:"w-5"})])])]),_:3}),i.$slots.toolbar?(o.openBlock(),o.createBlock(s,{key:0},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"toolbar")]),_:3})):o.createCommentVNode("",!0),i.content||i.$slots.default?(o.openBlock(),o.createBlock(s,{key:1,class:o.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",i.contentClass])},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(i.content),1)])]),_:3},8,["class"])):o.createCommentVNode("",!0),o.createElementVNode("div",q2,[o.renderSlot(i.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),j2={class:"dx-dialog-button-cancel"},G2={key:0,class:"dx-dialog-button-confirm"},In=o.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>({...r,disabled:void 0})),l=o.computed(()=>["title","subtitle","toolbar"]);function s(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Oi),o.mergeProps({class:"dx-confirm-dialog"},i.value,{onClose:a}),o.createSlots({actions:o.withCtx(()=>[o.createElementVNode("div",j2,[o.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),o.renderSlot(c.$slots,"actions"),c.hideConfirm?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",G2,[o.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:o.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:s},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:2},[o.renderList(l.value,f=>({name:f,fn:o.withCtx(()=>[o.renderSlot(c.$slots,f)])}))]),1040)}}}),H2=o.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=o.computed(()=>Sa(e.target,e.label||e.action)),r=o.computed(()=>`Confirm ${e.action}`),i=o.computed(()=>`${e.action}`),l=o.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),s=o.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(o.openBlock(),o.createBlock(o.unref(In),o.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||i.value,title:a.title||r.value,content:a.content||l.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),o.createSlots({default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:2},[o.renderList(s.value,u=>({name:u,fn:o.withCtx(()=>[o.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),Z2={"!visible":"_!visible_f7vc2_1",visible:"_visible_f7vc2_1",collapse:"_collapse_f7vc2_1",static:"_static_f7vc2_1",absolute:"_absolute_f7vc2_1",relative:"_relative_f7vc2_1",sticky:"_sticky_f7vc2_1","bottom-1":"_bottom-1_f7vc2_1","left-0":"_left-0_f7vc2_1","right-0":"_right-0_f7vc2_1","right-1":"_right-1_f7vc2_1","right-4":"_right-4_f7vc2_1","top-0":"_top-0_f7vc2_1","top-1":"_top-1_f7vc2_1","top-4":"_top-4_f7vc2_1","m-2":"_m-2_f7vc2_1","m-4":"_m-4_f7vc2_1","m-auto":"_m-auto_f7vc2_1","mx-1":"_mx-1_f7vc2_1","mx-4":"_mx-4_f7vc2_1","mx-auto":"_mx-auto_f7vc2_1","my-2":"_my-2_f7vc2_1","!mr-1":"_!mr-1_f7vc2_1","mb-1":"_mb-1_f7vc2_1","mb-2":"_mb-2_f7vc2_1","mb-4":"_mb-4_f7vc2_1","ml-1":"_ml-1_f7vc2_1","ml-2":"_ml-2_f7vc2_1","ml-2.5":"_ml-2.5_f7vc2_1","ml-3":"_ml-3_f7vc2_1","ml-4":"_ml-4_f7vc2_1","ml-5":"_ml-5_f7vc2_1","ml-[-.2em]":"_ml-[-.2em]_f7vc2_1","mr-1":"_mr-1_f7vc2_1","mr-2":"_mr-2_f7vc2_1","mr-3":"_mr-3_f7vc2_1","mr-4":"_mr-4_f7vc2_1","mt-1":"_mt-1_f7vc2_1","mt-2":"_mt-2_f7vc2_1","mt-3":"_mt-3_f7vc2_1","mt-4":"_mt-4_f7vc2_1",block:"_block_f7vc2_1","inline-block":"_inline-block_f7vc2_1",inline:"_inline_f7vc2_1",flex:"_flex_f7vc2_1",table:"_table_f7vc2_1",hidden:"_hidden_f7vc2_1","h-10":"_h-10_f7vc2_1","h-32":"_h-32_f7vc2_1","h-4":"_h-4_f7vc2_1","h-5":"_h-5_f7vc2_1","h-8":"_h-8_f7vc2_1","h-full":"_h-full_f7vc2_1","max-h-full":"_max-h-full_f7vc2_1","w-10":"_w-10_f7vc2_1","w-16":"_w-16_f7vc2_1","w-2/5":"_w-2/5_f7vc2_1","w-24":"_w-24_f7vc2_1","w-3":"_w-3_f7vc2_1","w-3/5":"_w-3/5_f7vc2_1","w-32":"_w-32_f7vc2_1","w-4":"_w-4_f7vc2_1","w-48":"_w-48_f7vc2_1","w-5":"_w-5_f7vc2_1","w-6":"_w-6_f7vc2_1","w-7":"_w-7_f7vc2_1","w-72":"_w-72_f7vc2_1","w-8":"_w-8_f7vc2_1","w-96":"_w-96_f7vc2_1","w-[13.5rem]":"_w-[13.5rem]_f7vc2_1","w-[35.5rem]":"_w-[35.5rem]_f7vc2_1","w-[6.5rem]":"_w-[6.5rem]_f7vc2_1","w-full":"_w-full_f7vc2_1","!min-w-0":"_!min-w-0_f7vc2_1","max-w-[50em]":"_max-w-[50em]_f7vc2_1","max-w-full":"_max-w-full_f7vc2_1","flex-shrink":"_flex-shrink_f7vc2_1","flex-shrink-0":"_flex-shrink-0_f7vc2_1","flex-grow":"_flex-grow_f7vc2_1",grow:"_grow_f7vc2_1","rotate-180":"_rotate-180_f7vc2_1",transform:"_transform_f7vc2_1","cursor-ew-resize":"_cursor-ew-resize_f7vc2_1","cursor-move":"_cursor-move_f7vc2_1","cursor-not-allowed":"_cursor-not-allowed_f7vc2_1","cursor-ns-resize":"_cursor-ns-resize_f7vc2_1","cursor-pointer":"_cursor-pointer_f7vc2_1",resize:"_resize_f7vc2_1","flex-col":"_flex-col_f7vc2_1","flex-nowrap":"_flex-nowrap_f7vc2_1","items-center":"_items-center_f7vc2_1","items-stretch":"_items-stretch_f7vc2_1","justify-start":"_justify-start_f7vc2_1","justify-end":"_justify-end_f7vc2_1","justify-center":"_justify-center_f7vc2_1","justify-between":"_justify-between_f7vc2_1","gap-y-0":"_gap-y-0_f7vc2_1","gap-y-1":"_gap-y-1_f7vc2_1","space-x-1":"_space-x-1_f7vc2_1","space-x-2":"_space-x-2_f7vc2_1","self-center":"_self-center_f7vc2_1","overflow-auto":"_overflow-auto_f7vc2_1","overflow-hidden":"_overflow-hidden_f7vc2_1","overflow-y-auto":"_overflow-y-auto_f7vc2_70","overflow-x-hidden":"_overflow-x-hidden_f7vc2_1","scroll-smooth":"_scroll-smooth_f7vc2_1","overflow-ellipsis":"_overflow-ellipsis_f7vc2_1","whitespace-nowrap":"_whitespace-nowrap_f7vc2_1",rounded:"_rounded_f7vc2_1","rounded-2xl":"_rounded-2xl_f7vc2_1","rounded-lg":"_rounded-lg_f7vc2_1","rounded-md":"_rounded-md_f7vc2_1","!rounded-l-none":"_!rounded-l-none_f7vc2_1","!rounded-r-none":"_!rounded-r-none_f7vc2_1","rounded-b-lg":"_rounded-b-lg_f7vc2_1","rounded-t-lg":"_rounded-t-lg_f7vc2_1","rounded-t-md":"_rounded-t-md_f7vc2_1","!border-0":"_!border-0_f7vc2_1",border:"_border_f7vc2_1","border-b":"_border-b_f7vc2_1","border-l":"_border-l_f7vc2_1","border-l-0":"_border-l-0_f7vc2_1","border-r":"_border-r_f7vc2_1","border-solid":"_border-solid_f7vc2_1","border-dashed":"_border-dashed_f7vc2_1","border-none":"_border-none_f7vc2_1","border-blue-600":"_border-blue-600_f7vc2_1","border-blue-700":"_border-blue-700_f7vc2_1","border-gray-200":"_border-gray-200_f7vc2_1","border-gray-300":"_border-gray-300_f7vc2_1","border-slate-200":"_border-slate-200_f7vc2_1","bg-black":"_bg-black_f7vc2_1","bg-blue-200":"_bg-blue-200_f7vc2_1","bg-blue-600":"_bg-blue-600_f7vc2_1","bg-emerald-200":"_bg-emerald-200_f7vc2_1","bg-gray-100":"_bg-gray-100_f7vc2_1","bg-gray-200":"_bg-gray-200_f7vc2_1","bg-gray-400":"_bg-gray-400_f7vc2_1","bg-gray-500":"_bg-gray-500_f7vc2_1","bg-green-200":"_bg-green-200_f7vc2_1","bg-green-300":"_bg-green-300_f7vc2_1","bg-red-200":"_bg-red-200_f7vc2_1","bg-red-300":"_bg-red-300_f7vc2_1","bg-red-900":"_bg-red-900_f7vc2_1","bg-slate-100":"_bg-slate-100_f7vc2_1","bg-slate-500":"_bg-slate-500_f7vc2_1","bg-transparent":"_bg-transparent_f7vc2_1","bg-white":"_bg-white_f7vc2_1","bg-yellow-300":"_bg-yellow-300_f7vc2_1","!p-2":"_!p-2_f7vc2_1","p-0":"_p-0_f7vc2_1","p-1":"_p-1_f7vc2_1","p-2":"_p-2_f7vc2_1","p-3":"_p-3_f7vc2_1","p-4":"_p-4_f7vc2_1","!py-0":"_!py-0_f7vc2_1","px-1":"_px-1_f7vc2_1","px-12":"_px-12_f7vc2_1","px-2":"_px-2_f7vc2_1","px-2.5":"_px-2.5_f7vc2_1","px-4":"_px-4_f7vc2_1","px-6":"_px-6_f7vc2_1","px-8":"_px-8_f7vc2_1","py-1":"_py-1_f7vc2_1","py-14":"_py-14_f7vc2_1","py-2":"_py-2_f7vc2_1","py-3":"_py-3_f7vc2_1","py-4":"_py-4_f7vc2_1","py-8":"_py-8_f7vc2_1","pl-1":"_pl-1_f7vc2_1","pl-2":"_pl-2_f7vc2_1","pt-3":"_pt-3_f7vc2_1","text-left":"_text-left_f7vc2_1","text-center":"_text-center_f7vc2_1","text-[1rem]":"_text-[1rem]_f7vc2_1","text-sm":"_text-sm_f7vc2_1","text-xs":"_text-xs_f7vc2_1","font-bold":"_font-bold_f7vc2_1","font-medium":"_font-medium_f7vc2_1","font-semibold":"_font-semibold_f7vc2_1",uppercase:"_uppercase_f7vc2_1","leading-[1.2rem]":"_leading-[1.2rem]_f7vc2_1","!text-green-900":"_!text-green-900_f7vc2_1","!text-red-900":"_!text-red-900_f7vc2_1","!text-white":"_!text-white_f7vc2_1","!text-yellow-900":"_!text-yellow-900_f7vc2_1","text-blue-600":"_text-blue-600_f7vc2_1","text-blue-900":"_text-blue-900_f7vc2_1","text-gray-300":"_text-gray-300_f7vc2_1","text-gray-400":"_text-gray-400_f7vc2_1","text-gray-500":"_text-gray-500_f7vc2_1","text-gray-600":"_text-gray-600_f7vc2_1","text-gray-700":"_text-gray-700_f7vc2_1","text-green-700":"_text-green-700_f7vc2_1","text-red-400":"_text-red-400_f7vc2_1","text-red-800":"_text-red-800_f7vc2_1","text-red-900":"_text-red-900_f7vc2_1","text-slate-500":"_text-slate-500_f7vc2_1","text-white":"_text-white_f7vc2_1","text-yellow-600":"_text-yellow-600_f7vc2_1","text-zinc-500":"_text-zinc-500_f7vc2_1","text-zinc-800":"_text-zinc-800_f7vc2_1","line-through":"_line-through_f7vc2_1","opacity-0":"_opacity-0_f7vc2_1","opacity-20":"_opacity-20_f7vc2_1","opacity-50":"_opacity-50_f7vc2_1","opacity-70":"_opacity-70_f7vc2_1","shadow-none":"_shadow-none_f7vc2_1","outline-none":"_outline-none_f7vc2_1",outline:"_outline_f7vc2_1",filter:"_filter_f7vc2_1",transition:"_transition_f7vc2_1","transition-all":"_transition-all_f7vc2_1","duration-300":"_duration-300_f7vc2_1","danx-app":"_danx-app_f7vc2_4","q-tab":"_q-tab_f7vc2_4","q-table__card":"_q-table__card_f7vc2_7","q-checkbox__inner":"_q-checkbox__inner_f7vc2_11","q-toolbar":"_q-toolbar_f7vc2_14","q-notification__actions":"_q-notification__actions_f7vc2_19","q-date":"_q-date_f7vc2_22","q-date__view":"_q-date__view_f7vc2_25","q-field":"_q-field_f7vc2_28","q-field--auto-height":"_q-field--auto-height_f7vc2_28","q-field__control":"_q-field__control_f7vc2_28","q-field__native":"_q-field__native_f7vc2_31","q-field--labeled":"_q-field--labeled_f7vc2_35","q-field__control-container":"_q-field__control-container_f7vc2_35","q-textarea":"_q-textarea_f7vc2_38","q-field__marginal":"_q-field__marginal_f7vc2_41","q-field__input":"_q-field__input_f7vc2_41","q-field__label":"_q-field__label_f7vc2_41","q-btn":"_q-btn_f7vc2_45","q-item":"_q-item_f7vc2_53","q-tab-panels":"_q-tab-panels_f7vc2_57","q-panel":"_q-panel_f7vc2_61",scroll:"_scroll_f7vc2_64","q-tab-panel":"_q-tab-panel_f7vc2_57","dx-dialog":"_dx-dialog_f7vc2_74","q-card__section--vert":"_q-card__section--vert_f7vc2_74","q-banner":"_q-banner_f7vc2_78",app:"_app_f7vc2_1","main-layout":"_main-layout_f7vc2_1","is-disabled":"_is-disabled_f7vc2_95","disable-all-transitions":"_disable-all-transitions_f7vc2_100","v-enter-active":"_v-enter-active_f7vc2_104","v-leave-active":"_v-leave-active_f7vc2_105","v-enter-from":"_v-enter-from_f7vc2_109","v-leave-to":"_v-leave-to_f7vc2_110","slide-image":"_slide-image_f7vc2_114",carousel:"_carousel_f7vc2_128","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_f7vc2_128","hover:bg-blue-200":"_hover:bg-blue-200_f7vc2_1","hover:bg-gray-200":"_hover:bg-gray-200_f7vc2_1","hover:bg-green-100":"_hover:bg-green-100_f7vc2_1","hover:bg-red-100":"_hover:bg-red-100_f7vc2_1","hover:bg-red-200":"_hover:bg-red-200_f7vc2_1","hover:bg-slate-200":"_hover:bg-slate-200_f7vc2_1","hover:bg-slate-300":"_hover:bg-slate-300_f7vc2_1","hover:text-blue-500":"_hover:text-blue-500_f7vc2_1","hover:text-blue-600":"_hover:text-blue-600_f7vc2_1","hover:opacity-100":"_hover:opacity-100_f7vc2_1","focus:bg-blue-200":"_focus:bg-blue-200_f7vc2_1"},_t=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},W2={class:"absolute top-0 left-0 w-full h-full"},Y2={key:0,class:"max-h-full w-full",controls:""},Q2=["src","type"],X2=["alt","src"],Iu=_t({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=o.ref(null),r=o.ref(e.defaultSlide);function i(a){var c;return(c=a.mime)==null?void 0:c.startsWith("video")}function l(a){var c,u;return((u=(c=a.transcodes)==null?void 0:c.compress)==null?void 0:u.url)||a.blobUrl||a.url}function s(a){return a.thumb?a.thumb.url:i(a)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M0 0h24v24H0z" fill="none"/><path d="M8 5v14l11-7z"/></svg>')}`:l(a)}return(a,c)=>{const u=o.resolveComponent("QCarouselSlide"),d=o.resolveComponent("QCarousel"),f=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(f,{"model-value":!0,maximized:"","onUpdate:modelValue":c[2]||(c[2]=_=>a.$emit("close")),onKeyup:[c[3]||(c[3]=o.withKeys(_=>n.value.previous(),["left"])),c[4]||(c[4]=o.withKeys(_=>n.value.next(),["right"]))]},{default:o.withCtx(()=>[o.createElementVNode("div",W2,[o.createVNode(d,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=_=>r.value=_),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:o.normalizeClass(a.cls.carousel)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.files,_=>(o.openBlock(),o.createBlock(u,{key:"file-"+_.id,name:_.id,"img-src":s(_),class:"bg-black"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(a.cls["slide-image"])},[i(_)?(o.openBlock(),o.createElementBlock("video",Y2,[o.createElementVNode("source",{src:l(_)+"#t=0.1",type:_.mime},null,8,Q2)])):(o.openBlock(),o.createElementBlock("img",{key:1,alt:_.filename,src:l(_)},null,8,X2))],2)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),o.createVNode(o.unref(so),{class:"absolute top-4 right-4 cursor-pointer text-white w-8 h-8",onClick:c[1]||(c[1]=_=>a.$emit("close"))})])]),_:1})}}},[["__cssModules",{cls:Z2}]]),K2={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},J2={__name:"FullScreenDialog",props:{modelValue:Boolean,center:Boolean,blue:Boolean,closeable:Boolean},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let i=o.computed(()=>({"bg-blue-600 text-white":r.blue,"bg-white text-gray-400":!r.blue,"items-center":r.center}));function l(){n("update:model-value",!1),n("close")}return(s,a)=>{const c=o.resolveComponent("QDialog"),u=o.resolveDirective("close-popup");return o.openBlock(),o.createBlock(c,{"model-value":t.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":l},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["flex justify-center min-w-xs",o.unref(i)])},[t.closeable?o.withDirectives((o.openBlock(),o.createElementBlock("div",K2,[o.createVNode(o.unref(so),{class:"w-5 h-5"})])),[[u]]):o.createCommentVNode("",!0),o.renderSlot(s.$slots,"default")],2)]),_:3},8,["model-value"])}}},eb={class:"flex-grow"},Nu={__name:"InfoDialog",props:{...Oi.props,doneClass:{type:[String,Object],default:""},doneText:{type:String,default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function r(){n("update:model-value",!1),n("close")}return(i,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(Oi),o.mergeProps({class:"dx-info-dialog"},i.$props,{onClose:r}),o.createSlots({actions:o.withCtx(()=>[o.createElementVNode("div",eb,[o.createVNode(s,{label:t.doneText,class:o.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),onClick:r},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"done-text")]),_:3},8,["label","class"])]),o.renderSlot(i.$slots,"actions")]),_:2},[i.$slots.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"title")]),key:"0"}:void 0,i.$slots.subtitle?{name:"subtitle",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},tb={__name:"InputDialog",props:{...In.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=o.ref(e.input);return(r,i)=>{const l=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(o.unref(In),o.mergeProps(r.$props,{onConfirm:i[2]||(i[2]=s=>r.$emit("confirm",n.value)),onClose:i[3]||(i[3]=s=>r.$emit("close",s))}),{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},()=>[o.createVNode(l,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=s=>n.value=s),type:"number",class:"w-full",onInput:i[1]||(i[1]=s=>r.$emit("update:input",s))},null,8,["modelValue"])])]),_:3},16)}}},nb={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},rb={class:"max-h-full",preload:"auto"},ob=["src","type"],ib={key:2,class:"flex items-center justify-center h-full"},lb={key:1,class:"absolute-bottom w-full"},sb={class:"absolute top-1 right-1 flex items-center justify-between space-x-1"},ab={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},rr=_t(o.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:Di},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>{var p;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((p=r.src.split(".").pop())==null?void 0:p.toLowerCase()),name:"",size:0}:null}),s=o.computed(()=>{var p,y;return((p=l.value)==null?void 0:p.type)||((y=l.value)==null?void 0:y.mime)||""}),a=o.computed(()=>!!s.value.match(/^image\//)),c=o.computed(()=>!!s.value.match(/^video\//)),u=o.computed(()=>!!s.value.match(/^application\/pdf/)),d=o.computed(()=>{var p,y,k,w,C;return((k=(y=(p=l.value)==null?void 0:p.transcodes)==null?void 0:y.compress)==null?void 0:k.url)||((w=l.value)==null?void 0:w.blobUrl)||((C=l.value)==null?void 0:C.url)}),f=o.computed(()=>{var p,y,k;return(k=(y=(p=l.value)==null?void 0:p.transcodes)==null?void 0:y.thumb)==null?void 0:k.url}),_=o.computed(()=>!!f.value||c.value||a.value),m=o.ref(!1);function h(){m.value?n("remove"):(m.value=!0,setTimeout(()=>{m.value=!1},2e3))}return(p,y)=>{var T,v;const k=o.resolveComponent("QImg"),w=o.resolveComponent("QLinearProgress"),C=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!p.square}])},[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"grow h-full",onClick:y[0]||(y[0]=x=>i.value=!0)},[c.value?(o.openBlock(),o.createElementBlock("div",nb,[o.createElementVNode("video",rb,[o.createElementVNode("source",{src:d.value+"#t=0.1",type:s.value},null,8,ob)]),o.createElementVNode("button",{class:o.normalizeClass(p.cls["play-button"])},[o.createVNode(o.unref(V2),{class:"w-16"})],2)])):o.createCommentVNode("",!0),f.value||_.value?(o.openBlock(),o.createBlock(k,{key:1,fit:p.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(f.value||d.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(o.openBlock(),o.createElementBlock("div",ib,[u.value?(o.openBlock(),o.createBlock(o.unref(ku),{key:0,class:"w-24"})):(o.openBlock(),o.createBlock(o.unref(F2),{key:1,class:"w-24"}))]))]),p.$slots["action-button"]?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(p.cls["action-button"])},[o.renderSlot(p.$slots,"action-button")],2)):o.createCommentVNode("",!0),p.file&&p.file.progress!==void 0?(o.openBlock(),o.createElementBlock("div",lb,[o.createVNode(w,{value:p.file.progress,size:"15px",color:"green-600",stripe:""},null,8,["value"])])):o.createCommentVNode("",!0)],64)):o.renderSlot(p.$slots,"missing",{key:1},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),o.createElementVNode("div",sb,[p.downloadable&&((T=l.value)!=null&&T.url)?(o.openBlock(),o.createBlock(C,{key:0,size:"sm",class:o.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",p.downloadButtonClass]),onClick:y[1]||(y[1]=o.withModifiers(x=>o.unref(zr)(l.value.url),["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(O2),{class:"w-4 h-5"})]),_:1},8,["class"])):o.createCommentVNode("",!0),p.removable?(o.openBlock(),o.createBlock(C,{key:1,size:"sm",class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:o.withModifiers(h,["stop"])},{default:o.withCtx(()=>[m.value?(o.openBlock(),o.createElementBlock("div",ab," ? ")):(o.openBlock(),o.createBlock(o.unref(lo),{key:1,class:"w-3"}))]),_:1})):o.createCommentVNode("",!0)]),i.value&&!p.disabled?(o.openBlock(),o.createBlock(o.unref(Iu),{key:2,files:p.relatedFiles||[l.value],"default-slide":((v=l.value)==null?void 0:v.id)||"",onClose:y[2]||(y[2]=x=>i.value=!1)},null,8,["files","default-slide"])):o.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"!visible":"_!visible_32ire_1",visible:"_visible_32ire_1",collapse:"_collapse_32ire_1",static:"_static_32ire_1",absolute:"_absolute_32ire_1",relative:"_relative_32ire_1",sticky:"_sticky_32ire_1","bottom-1":"_bottom-1_32ire_1","left-0":"_left-0_32ire_1","right-0":"_right-0_32ire_1","right-1":"_right-1_32ire_1","right-4":"_right-4_32ire_1","top-0":"_top-0_32ire_1","top-1":"_top-1_32ire_1","top-4":"_top-4_32ire_1","m-2":"_m-2_32ire_1","m-4":"_m-4_32ire_1","m-auto":"_m-auto_32ire_1","mx-1":"_mx-1_32ire_1","mx-4":"_mx-4_32ire_1","mx-auto":"_mx-auto_32ire_1","my-2":"_my-2_32ire_1","!mr-1":"_!mr-1_32ire_1","mb-1":"_mb-1_32ire_1","mb-2":"_mb-2_32ire_1","mb-4":"_mb-4_32ire_1","ml-1":"_ml-1_32ire_1","ml-2":"_ml-2_32ire_1","ml-2.5":"_ml-2.5_32ire_1","ml-3":"_ml-3_32ire_1","ml-4":"_ml-4_32ire_1","ml-5":"_ml-5_32ire_1","ml-[-.2em]":"_ml-[-.2em]_32ire_1","mr-1":"_mr-1_32ire_1","mr-2":"_mr-2_32ire_1","mr-3":"_mr-3_32ire_1","mr-4":"_mr-4_32ire_1","mt-1":"_mt-1_32ire_1","mt-2":"_mt-2_32ire_1","mt-3":"_mt-3_32ire_1","mt-4":"_mt-4_32ire_1",block:"_block_32ire_1","inline-block":"_inline-block_32ire_1",inline:"_inline_32ire_1",flex:"_flex_32ire_1",table:"_table_32ire_1",hidden:"_hidden_32ire_1","h-10":"_h-10_32ire_1","h-32":"_h-32_32ire_1","h-4":"_h-4_32ire_1","h-5":"_h-5_32ire_1","h-8":"_h-8_32ire_1","h-full":"_h-full_32ire_1","max-h-full":"_max-h-full_32ire_1","w-10":"_w-10_32ire_1","w-16":"_w-16_32ire_1","w-2/5":"_w-2/5_32ire_1","w-24":"_w-24_32ire_1","w-3":"_w-3_32ire_1","w-3/5":"_w-3/5_32ire_1","w-32":"_w-32_32ire_1","w-4":"_w-4_32ire_1","w-48":"_w-48_32ire_1","w-5":"_w-5_32ire_1","w-6":"_w-6_32ire_1","w-7":"_w-7_32ire_1","w-72":"_w-72_32ire_1","w-8":"_w-8_32ire_1","w-96":"_w-96_32ire_1","w-[13.5rem]":"_w-[13.5rem]_32ire_1","w-[35.5rem]":"_w-[35.5rem]_32ire_1","w-[6.5rem]":"_w-[6.5rem]_32ire_1","w-full":"_w-full_32ire_1","!min-w-0":"_!min-w-0_32ire_1","max-w-[50em]":"_max-w-[50em]_32ire_1","max-w-full":"_max-w-full_32ire_1","flex-shrink":"_flex-shrink_32ire_1","flex-shrink-0":"_flex-shrink-0_32ire_1","flex-grow":"_flex-grow_32ire_1",grow:"_grow_32ire_1","rotate-180":"_rotate-180_32ire_1",transform:"_transform_32ire_1","cursor-ew-resize":"_cursor-ew-resize_32ire_1","cursor-move":"_cursor-move_32ire_1","cursor-not-allowed":"_cursor-not-allowed_32ire_1","cursor-ns-resize":"_cursor-ns-resize_32ire_1","cursor-pointer":"_cursor-pointer_32ire_1",resize:"_resize_32ire_1","flex-col":"_flex-col_32ire_1","flex-nowrap":"_flex-nowrap_32ire_1","items-center":"_items-center_32ire_1","items-stretch":"_items-stretch_32ire_1","justify-start":"_justify-start_32ire_1","justify-end":"_justify-end_32ire_1","justify-center":"_justify-center_32ire_1","justify-between":"_justify-between_32ire_1","gap-y-0":"_gap-y-0_32ire_1","gap-y-1":"_gap-y-1_32ire_1","space-x-1":"_space-x-1_32ire_1","space-x-2":"_space-x-2_32ire_1","self-center":"_self-center_32ire_1","overflow-auto":"_overflow-auto_32ire_1","overflow-hidden":"_overflow-hidden_32ire_1","overflow-y-auto":"_overflow-y-auto_32ire_70","overflow-x-hidden":"_overflow-x-hidden_32ire_1","scroll-smooth":"_scroll-smooth_32ire_1","overflow-ellipsis":"_overflow-ellipsis_32ire_1","whitespace-nowrap":"_whitespace-nowrap_32ire_1",rounded:"_rounded_32ire_1","rounded-2xl":"_rounded-2xl_32ire_1","rounded-lg":"_rounded-lg_32ire_1","rounded-md":"_rounded-md_32ire_1","!rounded-l-none":"_!rounded-l-none_32ire_1","!rounded-r-none":"_!rounded-r-none_32ire_1","rounded-b-lg":"_rounded-b-lg_32ire_1","rounded-t-lg":"_rounded-t-lg_32ire_1","rounded-t-md":"_rounded-t-md_32ire_1","!border-0":"_!border-0_32ire_1",border:"_border_32ire_1","border-b":"_border-b_32ire_1","border-l":"_border-l_32ire_1","border-l-0":"_border-l-0_32ire_1","border-r":"_border-r_32ire_1","border-solid":"_border-solid_32ire_1","border-dashed":"_border-dashed_32ire_1","border-none":"_border-none_32ire_1","border-blue-600":"_border-blue-600_32ire_1","border-blue-700":"_border-blue-700_32ire_1","border-gray-200":"_border-gray-200_32ire_1","border-gray-300":"_border-gray-300_32ire_1","border-slate-200":"_border-slate-200_32ire_1","bg-black":"_bg-black_32ire_1","bg-blue-200":"_bg-blue-200_32ire_1","bg-blue-600":"_bg-blue-600_32ire_1","bg-emerald-200":"_bg-emerald-200_32ire_1","bg-gray-100":"_bg-gray-100_32ire_1","bg-gray-200":"_bg-gray-200_32ire_1","bg-gray-400":"_bg-gray-400_32ire_1","bg-gray-500":"_bg-gray-500_32ire_1","bg-green-200":"_bg-green-200_32ire_1","bg-green-300":"_bg-green-300_32ire_1","bg-red-200":"_bg-red-200_32ire_1","bg-red-300":"_bg-red-300_32ire_1","bg-red-900":"_bg-red-900_32ire_1","bg-slate-100":"_bg-slate-100_32ire_1","bg-slate-500":"_bg-slate-500_32ire_1","bg-transparent":"_bg-transparent_32ire_1","bg-white":"_bg-white_32ire_1","bg-yellow-300":"_bg-yellow-300_32ire_1","!p-2":"_!p-2_32ire_1","p-0":"_p-0_32ire_1","p-1":"_p-1_32ire_1","p-2":"_p-2_32ire_1","p-3":"_p-3_32ire_1","p-4":"_p-4_32ire_1","!py-0":"_!py-0_32ire_1","px-1":"_px-1_32ire_1","px-12":"_px-12_32ire_1","px-2":"_px-2_32ire_1","px-2.5":"_px-2.5_32ire_1","px-4":"_px-4_32ire_1","px-6":"_px-6_32ire_1","px-8":"_px-8_32ire_1","py-1":"_py-1_32ire_1","py-14":"_py-14_32ire_1","py-2":"_py-2_32ire_1","py-3":"_py-3_32ire_1","py-4":"_py-4_32ire_1","py-8":"_py-8_32ire_1","pl-1":"_pl-1_32ire_1","pl-2":"_pl-2_32ire_1","pt-3":"_pt-3_32ire_1","text-left":"_text-left_32ire_1","text-center":"_text-center_32ire_1","text-[1rem]":"_text-[1rem]_32ire_1","text-sm":"_text-sm_32ire_1","text-xs":"_text-xs_32ire_1","font-bold":"_font-bold_32ire_1","font-medium":"_font-medium_32ire_1","font-semibold":"_font-semibold_32ire_1",uppercase:"_uppercase_32ire_1","leading-[1.2rem]":"_leading-[1.2rem]_32ire_1","!text-green-900":"_!text-green-900_32ire_1","!text-red-900":"_!text-red-900_32ire_1","!text-white":"_!text-white_32ire_1","!text-yellow-900":"_!text-yellow-900_32ire_1","text-blue-600":"_text-blue-600_32ire_1","text-blue-900":"_text-blue-900_32ire_1","text-gray-300":"_text-gray-300_32ire_1","text-gray-400":"_text-gray-400_32ire_1","text-gray-500":"_text-gray-500_32ire_1","text-gray-600":"_text-gray-600_32ire_1","text-gray-700":"_text-gray-700_32ire_1","text-green-700":"_text-green-700_32ire_1","text-red-400":"_text-red-400_32ire_1","text-red-800":"_text-red-800_32ire_1","text-red-900":"_text-red-900_32ire_1","text-slate-500":"_text-slate-500_32ire_1","text-white":"_text-white_32ire_1","text-yellow-600":"_text-yellow-600_32ire_1","text-zinc-500":"_text-zinc-500_32ire_1","text-zinc-800":"_text-zinc-800_32ire_1","line-through":"_line-through_32ire_1","opacity-0":"_opacity-0_32ire_1","opacity-20":"_opacity-20_32ire_1","opacity-50":"_opacity-50_32ire_1","opacity-70":"_opacity-70_32ire_1","shadow-none":"_shadow-none_32ire_1","outline-none":"_outline-none_32ire_1",outline:"_outline_32ire_1",filter:"_filter_32ire_1",transition:"_transition_32ire_1","transition-all":"_transition-all_32ire_1","duration-300":"_duration-300_32ire_1","danx-app":"_danx-app_32ire_4","q-tab":"_q-tab_32ire_4","q-table__card":"_q-table__card_32ire_7","q-checkbox__inner":"_q-checkbox__inner_32ire_11","q-toolbar":"_q-toolbar_32ire_14","q-notification__actions":"_q-notification__actions_32ire_19","q-date":"_q-date_32ire_22","q-date__view":"_q-date__view_32ire_25","q-field":"_q-field_32ire_28","q-field--auto-height":"_q-field--auto-height_32ire_28","q-field__control":"_q-field__control_32ire_28","q-field__native":"_q-field__native_32ire_31","q-field--labeled":"_q-field--labeled_32ire_35","q-field__control-container":"_q-field__control-container_32ire_35","q-textarea":"_q-textarea_32ire_38","q-field__marginal":"_q-field__marginal_32ire_41","q-field__input":"_q-field__input_32ire_41","q-field__label":"_q-field__label_32ire_41","q-btn":"_q-btn_32ire_45","q-item":"_q-item_32ire_53","q-tab-panels":"_q-tab-panels_32ire_57","q-panel":"_q-panel_32ire_61",scroll:"_scroll_32ire_64","q-tab-panel":"_q-tab-panel_32ire_57","dx-dialog":"_dx-dialog_32ire_74","q-card__section--vert":"_q-card__section--vert_32ire_74","q-banner":"_q-banner_32ire_78",app:"_app_32ire_1","main-layout":"_main-layout_32ire_1","is-disabled":"_is-disabled_32ire_95","disable-all-transitions":"_disable-all-transitions_32ire_100","v-enter-active":"_v-enter-active_32ire_104","v-leave-active":"_v-leave-active_32ire_105","v-enter-from":"_v-enter-from_32ire_109","v-leave-to":"_v-leave-to_32ire_110","action-button":"_action-button_32ire_114","play-button":"_play-button_32ire_121","hover:bg-blue-200":"_hover:bg-blue-200_32ire_1","hover:bg-gray-200":"_hover:bg-gray-200_32ire_1","hover:bg-green-100":"_hover:bg-green-100_32ire_1","hover:bg-red-100":"_hover:bg-red-100_32ire_1","hover:bg-red-200":"_hover:bg-red-200_32ire_1","hover:bg-slate-200":"_hover:bg-slate-200_32ire_1","hover:bg-slate-300":"_hover:bg-slate-300_32ire_1","hover:text-blue-500":"_hover:text-blue-500_32ire_1","hover:text-blue-600":"_hover:text-blue-600_32ire_1","hover:opacity-100":"_hover:opacity-100_32ire_1","focus:bg-blue-200":"_focus:bg-blue-200_32ire_1"}}]]),cb=["src","alt"],Fu={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=o.computed(()=>e.svg.default?e.svg.default:e.svg),r=o.computed(()=>typeof n.value=="string");return(i,l)=>r.value?(o.openBlock(),o.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,cb)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.value),{key:1}))}},ub={class:"address-format"},db={key:0,class:"address-attn"},fb={key:1,class:"address-name"},_b={class:"address-line-1"},mb={key:0,class:"address-line-2"},pb={key:1,class:"address-line-3"},hb={class:"address-city-state-zip"},gb={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",ub,[t.address.attn?(o.openBlock(),o.createElementBlock("div",db,"Attn: "+o.toDisplayString(t.address.attn),1)):t.address.name?(o.openBlock(),o.createElementBlock("div",fb,o.toDisplayString(t.address.name),1)):o.createCommentVNode("",!0),t.address.line1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",_b,o.toDisplayString(t.address.line1),1),t.address.line2?(o.openBlock(),o.createElementBlock("div",mb,o.toDisplayString(t.address.line2),1)):o.createCommentVNode("",!0),t.address.line3?(o.openBlock(),o.createElementBlock("div",pb,o.toDisplayString(t.address.line3),1)):o.createCommentVNode("",!0),o.createElementVNode("div",hb,[t.address.city?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.address.city)+",",1)],64)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.address.state)+" "+o.toDisplayString(t.address.zip_code),1)])],64)):o.createCommentVNode("",!0)]))}},yb={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,r=>(o.openBlock(),o.createElementBlock("li",{key:r[t.column]},o.toDisplayString(r[t.column]),1))),128))]))}},bb={class:"flex flex-nowrap items-center"},xb={key:0,class:"whitespace-nowrap"},kb={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var r;return o.openBlock(),o.createElementBlock("div",bb,[o.createVNode(o.unref(zy),{class:o.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(o.openBlock(),o.createElementBlock("div",xb,o.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+o.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Unknown ")],64))])}}},wb={class:"flex items-center flex-nowrap"},Sb={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",wb,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.icon),{class:o.normalizeClass(t.iconClass)},null,8,["class"])),o.createElementVNode("div",{class:o.normalizeClass(t.textClass)},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])],2)]))}},Cb={class:"text-xs font-bold"},Tb={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QSpinnerTail");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Cb,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(o.openBlock(),o.createBlock(r,{key:0})):o.renderSlot(e.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)])}}},Eb={class:"flex-grow max-w-full"},Du={__name:"CollapsableSidebar",props:{rightSide:Boolean,displayClass:{type:String,default:"flex flex-col"},maxWidth:{type:String,default:"13.5rem"},minWidth:{type:String,default:"5.5rem"},disabled:Boolean,collapse:Boolean,name:{type:String,default:"sidebar"},toggleAtTop:Boolean,toggleClass:{type:String,default:""},hideToggleOnCollapse:Boolean},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(It(r.name+"-is-collapsed",r.collapse));function l(c){i.value=c,Bt(r.name+"-is-collapsed",!!i.value)}function s(){l(!i.value),n("collapse",i.value),n("update:collapse",i.value)}o.onMounted(()=>{n("collapse",i.value),n("update:collapse",i.value)});const a=o.computed(()=>({width:i.value?r.minWidth:r.maxWidth}));return o.watch(()=>r.collapse,()=>{l(r.collapse)}),(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-collapsable-sidebar overflow-y-auto overflow-x-hidden scroll-smooth flex-shrink-0 transition-all relative",{"is-collapsed":i.value,"is-right-side":t.rightSide,[t.displayClass]:!0}]),style:o.normalizeStyle(a.value)},[o.createElementVNode("div",Eb,[o.renderSlot(c.$slots,"default",{isCollapsed:i.value})]),!t.disabled&&(!t.hideToggleOnCollapse||!i.value)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.toggleAtTop?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",t.toggleClass]),onClick:s},[o.createVNode(o.unref(Bu),{class:o.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!i.value:i.value}])},null,8,["class"])],2)):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex w-full p-4",t.rightSide?"justify-start":"justify-end"])},[o.renderSlot(c.$slots,"toggle",{},()=>[o.createVNode(d,{class:"btn-secondary",onClick:s},{default:o.withCtx(()=>[o.createVNode(o.unref(Bu),{class:o.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!i.value:i.value}])},null,8,["class"])]),_:1})])],2))],64)):o.createCommentVNode("",!0)],6)}}},$i=_t(o.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const r=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:o.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=i=>e.$emit("update:show",!1))},{default:o.withCtx(()=>[o.createElementVNode("div",null,[e.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=o.withModifiers(()=>{},["stop","prevent"]))},o.toDisplayString(e.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[o.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1ku39_1",visible:"_visible_1ku39_1",collapse:"_collapse_1ku39_1",static:"_static_1ku39_1",absolute:"_absolute_1ku39_1",relative:"_relative_1ku39_1",sticky:"_sticky_1ku39_1","bottom-1":"_bottom-1_1ku39_1","left-0":"_left-0_1ku39_1","right-0":"_right-0_1ku39_1","right-1":"_right-1_1ku39_1","right-4":"_right-4_1ku39_1","top-0":"_top-0_1ku39_1","top-1":"_top-1_1ku39_1","top-4":"_top-4_1ku39_1","m-2":"_m-2_1ku39_1","m-4":"_m-4_1ku39_1","m-auto":"_m-auto_1ku39_1","mx-1":"_mx-1_1ku39_1","mx-4":"_mx-4_1ku39_1","mx-auto":"_mx-auto_1ku39_1","my-2":"_my-2_1ku39_1","!mr-1":"_!mr-1_1ku39_1","mb-1":"_mb-1_1ku39_1","mb-2":"_mb-2_1ku39_1","mb-4":"_mb-4_1ku39_1","ml-1":"_ml-1_1ku39_1","ml-2":"_ml-2_1ku39_1","ml-2.5":"_ml-2.5_1ku39_1","ml-3":"_ml-3_1ku39_1","ml-4":"_ml-4_1ku39_1","ml-5":"_ml-5_1ku39_1","ml-[-.2em]":"_ml-[-.2em]_1ku39_1","mr-1":"_mr-1_1ku39_1","mr-2":"_mr-2_1ku39_1","mr-3":"_mr-3_1ku39_1","mr-4":"_mr-4_1ku39_1","mt-1":"_mt-1_1ku39_1","mt-2":"_mt-2_1ku39_1","mt-3":"_mt-3_1ku39_1","mt-4":"_mt-4_1ku39_1",block:"_block_1ku39_1","inline-block":"_inline-block_1ku39_1",inline:"_inline_1ku39_1",flex:"_flex_1ku39_1",table:"_table_1ku39_1",hidden:"_hidden_1ku39_1","h-10":"_h-10_1ku39_1","h-32":"_h-32_1ku39_1","h-4":"_h-4_1ku39_1","h-5":"_h-5_1ku39_1","h-8":"_h-8_1ku39_1","h-full":"_h-full_1ku39_1","max-h-full":"_max-h-full_1ku39_1","w-10":"_w-10_1ku39_1","w-16":"_w-16_1ku39_1","w-2/5":"_w-2/5_1ku39_1","w-24":"_w-24_1ku39_1","w-3":"_w-3_1ku39_1","w-3/5":"_w-3/5_1ku39_1","w-32":"_w-32_1ku39_1","w-4":"_w-4_1ku39_1","w-48":"_w-48_1ku39_1","w-5":"_w-5_1ku39_1","w-6":"_w-6_1ku39_1","w-7":"_w-7_1ku39_1","w-72":"_w-72_1ku39_1","w-8":"_w-8_1ku39_1","w-96":"_w-96_1ku39_1","w-[13.5rem]":"_w-[13.5rem]_1ku39_1","w-[35.5rem]":"_w-[35.5rem]_1ku39_1","w-[6.5rem]":"_w-[6.5rem]_1ku39_1","w-full":"_w-full_1ku39_1","!min-w-0":"_!min-w-0_1ku39_1","max-w-[50em]":"_max-w-[50em]_1ku39_1","max-w-full":"_max-w-full_1ku39_1","flex-shrink":"_flex-shrink_1ku39_1","flex-shrink-0":"_flex-shrink-0_1ku39_1","flex-grow":"_flex-grow_1ku39_1",grow:"_grow_1ku39_1","rotate-180":"_rotate-180_1ku39_1",transform:"_transform_1ku39_1","cursor-ew-resize":"_cursor-ew-resize_1ku39_1","cursor-move":"_cursor-move_1ku39_1","cursor-not-allowed":"_cursor-not-allowed_1ku39_1","cursor-ns-resize":"_cursor-ns-resize_1ku39_1","cursor-pointer":"_cursor-pointer_1ku39_1",resize:"_resize_1ku39_1","flex-col":"_flex-col_1ku39_1","flex-nowrap":"_flex-nowrap_1ku39_1","items-center":"_items-center_1ku39_1","items-stretch":"_items-stretch_1ku39_1","justify-start":"_justify-start_1ku39_1","justify-end":"_justify-end_1ku39_1","justify-center":"_justify-center_1ku39_1","justify-between":"_justify-between_1ku39_1","gap-y-0":"_gap-y-0_1ku39_1","gap-y-1":"_gap-y-1_1ku39_1","space-x-1":"_space-x-1_1ku39_1","space-x-2":"_space-x-2_1ku39_1","self-center":"_self-center_1ku39_1","overflow-auto":"_overflow-auto_1ku39_1","overflow-hidden":"_overflow-hidden_1ku39_1","overflow-y-auto":"_overflow-y-auto_1ku39_70","overflow-x-hidden":"_overflow-x-hidden_1ku39_1","scroll-smooth":"_scroll-smooth_1ku39_1","overflow-ellipsis":"_overflow-ellipsis_1ku39_1","whitespace-nowrap":"_whitespace-nowrap_1ku39_1",rounded:"_rounded_1ku39_1","rounded-2xl":"_rounded-2xl_1ku39_1","rounded-lg":"_rounded-lg_1ku39_1","rounded-md":"_rounded-md_1ku39_1","!rounded-l-none":"_!rounded-l-none_1ku39_1","!rounded-r-none":"_!rounded-r-none_1ku39_1","rounded-b-lg":"_rounded-b-lg_1ku39_1","rounded-t-lg":"_rounded-t-lg_1ku39_1","rounded-t-md":"_rounded-t-md_1ku39_1","!border-0":"_!border-0_1ku39_1",border:"_border_1ku39_1","border-b":"_border-b_1ku39_1","border-l":"_border-l_1ku39_1","border-l-0":"_border-l-0_1ku39_1","border-r":"_border-r_1ku39_1","border-solid":"_border-solid_1ku39_1","border-dashed":"_border-dashed_1ku39_1","border-none":"_border-none_1ku39_1","border-blue-600":"_border-blue-600_1ku39_1","border-blue-700":"_border-blue-700_1ku39_1","border-gray-200":"_border-gray-200_1ku39_1","border-gray-300":"_border-gray-300_1ku39_1","border-slate-200":"_border-slate-200_1ku39_1","bg-black":"_bg-black_1ku39_1","bg-blue-200":"_bg-blue-200_1ku39_1","bg-blue-600":"_bg-blue-600_1ku39_1","bg-emerald-200":"_bg-emerald-200_1ku39_1","bg-gray-100":"_bg-gray-100_1ku39_1","bg-gray-200":"_bg-gray-200_1ku39_1","bg-gray-400":"_bg-gray-400_1ku39_1","bg-gray-500":"_bg-gray-500_1ku39_1","bg-green-200":"_bg-green-200_1ku39_1","bg-green-300":"_bg-green-300_1ku39_1","bg-red-200":"_bg-red-200_1ku39_1","bg-red-300":"_bg-red-300_1ku39_1","bg-red-900":"_bg-red-900_1ku39_1","bg-slate-100":"_bg-slate-100_1ku39_1","bg-slate-500":"_bg-slate-500_1ku39_1","bg-transparent":"_bg-transparent_1ku39_1","bg-white":"_bg-white_1ku39_1","bg-yellow-300":"_bg-yellow-300_1ku39_1","!p-2":"_!p-2_1ku39_1","p-0":"_p-0_1ku39_1","p-1":"_p-1_1ku39_1","p-2":"_p-2_1ku39_1","p-3":"_p-3_1ku39_1","p-4":"_p-4_1ku39_1","!py-0":"_!py-0_1ku39_1","px-1":"_px-1_1ku39_1","px-12":"_px-12_1ku39_1","px-2":"_px-2_1ku39_1","px-2.5":"_px-2.5_1ku39_1","px-4":"_px-4_1ku39_1","px-6":"_px-6_1ku39_1","px-8":"_px-8_1ku39_1","py-1":"_py-1_1ku39_1","py-14":"_py-14_1ku39_1","py-2":"_py-2_1ku39_1","py-3":"_py-3_1ku39_1","py-4":"_py-4_1ku39_1","py-8":"_py-8_1ku39_1","pl-1":"_pl-1_1ku39_1","pl-2":"_pl-2_1ku39_1","pt-3":"_pt-3_1ku39_1","text-left":"_text-left_1ku39_1","text-center":"_text-center_1ku39_1","text-[1rem]":"_text-[1rem]_1ku39_1","text-sm":"_text-sm_1ku39_1","text-xs":"_text-xs_1ku39_1","font-bold":"_font-bold_1ku39_1","font-medium":"_font-medium_1ku39_1","font-semibold":"_font-semibold_1ku39_1",uppercase:"_uppercase_1ku39_1","leading-[1.2rem]":"_leading-[1.2rem]_1ku39_1","!text-green-900":"_!text-green-900_1ku39_1","!text-red-900":"_!text-red-900_1ku39_1","!text-white":"_!text-white_1ku39_1","!text-yellow-900":"_!text-yellow-900_1ku39_1","text-blue-600":"_text-blue-600_1ku39_1","text-blue-900":"_text-blue-900_1ku39_1","text-gray-300":"_text-gray-300_1ku39_1","text-gray-400":"_text-gray-400_1ku39_1","text-gray-500":"_text-gray-500_1ku39_1","text-gray-600":"_text-gray-600_1ku39_1","text-gray-700":"_text-gray-700_1ku39_1","text-green-700":"_text-green-700_1ku39_1","text-red-400":"_text-red-400_1ku39_1","text-red-800":"_text-red-800_1ku39_1","text-red-900":"_text-red-900_1ku39_1","text-slate-500":"_text-slate-500_1ku39_1","text-white":"_text-white_1ku39_1","text-yellow-600":"_text-yellow-600_1ku39_1","text-zinc-500":"_text-zinc-500_1ku39_1","text-zinc-800":"_text-zinc-800_1ku39_1","line-through":"_line-through_1ku39_1","opacity-0":"_opacity-0_1ku39_1","opacity-20":"_opacity-20_1ku39_1","opacity-50":"_opacity-50_1ku39_1","opacity-70":"_opacity-70_1ku39_1","shadow-none":"_shadow-none_1ku39_1","outline-none":"_outline-none_1ku39_1",outline:"_outline_1ku39_1",filter:"_filter_1ku39_1",transition:"_transition_1ku39_1","transition-all":"_transition-all_1ku39_1","duration-300":"_duration-300_1ku39_1","danx-app":"_danx-app_1ku39_4","q-tab":"_q-tab_1ku39_4","q-table__card":"_q-table__card_1ku39_7","q-checkbox__inner":"_q-checkbox__inner_1ku39_11","q-toolbar":"_q-toolbar_1ku39_14","q-notification__actions":"_q-notification__actions_1ku39_19","q-date":"_q-date_1ku39_22","q-date__view":"_q-date__view_1ku39_25","q-field":"_q-field_1ku39_28","q-field--auto-height":"_q-field--auto-height_1ku39_28","q-field__control":"_q-field__control_1ku39_28","q-field__native":"_q-field__native_1ku39_31","q-field--labeled":"_q-field--labeled_1ku39_35","q-field__control-container":"_q-field__control-container_1ku39_35","q-textarea":"_q-textarea_1ku39_38","q-field__marginal":"_q-field__marginal_1ku39_41","q-field__input":"_q-field__input_1ku39_41","q-field__label":"_q-field__label_1ku39_41","q-btn":"_q-btn_1ku39_45","q-item":"_q-item_1ku39_53","q-tab-panels":"_q-tab-panels_1ku39_57","q-panel":"_q-panel_1ku39_61",scroll:"_scroll_1ku39_64","q-tab-panel":"_q-tab-panel_1ku39_57","dx-dialog":"_dx-dialog_1ku39_74","q-card__section--vert":"_q-card__section--vert_1ku39_74","q-banner":"_q-banner_1ku39_78",app:"_app_1ku39_1","main-layout":"_main-layout_1ku39_1","is-disabled":"_is-disabled_1ku39_95","disable-all-transitions":"_disable-all-transitions_1ku39_100","v-enter-active":"_v-enter-active_1ku39_104","v-leave-active":"_v-leave-active_1ku39_105","v-enter-from":"_v-enter-from_1ku39_109","v-leave-to":"_v-leave-to_1ku39_110","dialog-title":"_dialog-title_1ku39_114","dialog-content":"_dialog-content_1ku39_121","hover:bg-blue-200":"_hover:bg-blue-200_1ku39_1","hover:bg-gray-200":"_hover:bg-gray-200_1ku39_1","hover:bg-green-100":"_hover:bg-green-100_1ku39_1","hover:bg-red-100":"_hover:bg-red-100_1ku39_1","hover:bg-red-200":"_hover:bg-red-200_1ku39_1","hover:bg-slate-200":"_hover:bg-slate-200_1ku39_1","hover:bg-slate-300":"_hover:bg-slate-300_1ku39_1","hover:text-blue-500":"_hover:text-blue-500_1ku39_1","hover:text-blue-600":"_hover:text-blue-600_1ku39_1","hover:opacity-100":"_hover:opacity-100_1ku39_1","focus:bg-blue-200":"_focus:bg-blue-200_1ku39_1"}}]]),Ou=t=>o.isVNode(t.vnode)?t.vnode:o.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props):null;Ou.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})}};const Qt=Ou,$u={__name:"ActionVnode",setup(t){const e=o.ref(!1);async function n(r){e.value=!0,await Lt.value.confirm(r),e.value=!1}return(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.unref(Lt)?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:o.unref(Lt).vnode,"is-saving":e.value,onConfirm:n,onClose:o.unref(Lt).cancel},null,8,["vnode","is-saving","onClose"])):o.createCommentVNode("",!0)]))}},Au={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=o.computed(()=>{var i,l,s;return((i=r.value)==null?void 0:i.value)||((s=(l=r.value)==null?void 0:l.props)==null?void 0:s.text)}),r=o.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(i,l)=>n.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:l[0]||(l[0]=s=>i.$emit("action",s))}),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.value),1)]),_:1},16)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:l[1]||(l[1]=s=>i.$emit("action",s))}),null,16))}},vb=["href"],Pu={__name:"PopoverMenu",props:{items:{type:Array,required:!0,validator(t){return t.every(e=>e.url||e.action||e.name)}},tooltip:{type:String,default:null},disabled:Boolean,loading:Boolean,loadingComponent:{type:[Function,Object],default:()=>({is:J.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(i){n("action",i.name||i.action),n("action-item",i)}return(i,l)=>{const s=o.resolveComponent("QTooltip"),a=o.resolveComponent("QItem"),c=o.resolveComponent("QList"),u=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("a",{class:o.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":t.disabled}])},[i.$slots.tooltip||t.tooltip?(o.openBlock(),o.createBlock(s,{key:0},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"tooltip",{},()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)])]),_:3})):o.createCommentVNode("",!0),o.createVNode(o.Transition,{mode:"out-in",duration:150},{default:o.withCtx(()=>[t.loading?(o.openBlock(),o.createBlock(o.unref(Au),{key:0,component:t.loadingComponent},null,8,["component"])):(o.openBlock(),o.createBlock(o.unref(D2),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),t.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(u,{key:1,"auto-close":""},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.url?(o.openBlock(),o.createElementBlock("a",{key:d.url,class:o.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},o.toDisplayString(d.label),11,vb)):(o.openBlock(),o.createBlock(a,{key:d.name||d.action,clickable:"",class:o.normalizeClass(d.class),onClick:f=>r(d)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),256))]),_:1})]),_:1}))],2)}}},Bb={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=o.ref(!1),n=o.ref(null),r=o.ref(!1),i=o.ref(!1);let l=null;o.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",s),n.value.$el.parentNode.addEventListener("mouseleave",a)});function s(){e.value=!0,i.value=!0,l&&clearTimeout(l)}function a(){i.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,l&&clearTimeout(l)}function u(){r.value=!1,e.value&&d()}function d(){l&&clearTimeout(l),l=setTimeout(()=>{r.value||i.value?d():e.value=!1},200)}return(f,_)=>{const m=o.resolveComponent("QTooltip");return o.openBlock(),o.createBlock(m,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":_[0]||(_[0]=h=>e.value=h),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},Ib={class:"flex items-center w-full"},Nb={class:"flex-grow text-sm"},Fb={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),i=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(i,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Ib,[o.createElementVNode("div",Nb,o.toDisplayString(t.label),1),o.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},Db={class:"flex items-center w-full"},Ob={class:"flex-grow text-sm"},$b={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Db,[o.createElementVNode("div",Ob,o.toDisplayString(t.label),1),o.createElementVNode("div",null,[t.overdue?(o.openBlock(),o.createBlock(o.unref(_u),{key:0,class:o.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(o.openBlock(),o.createBlock(o.unref(Tu),{key:1,class:"text-yellow-600 w-5"})):o.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},Mu={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},Ab=o.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return o.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:"maxHeight"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Pb={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:t.name},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function mt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
8
8
|
* GSAP 3.12.5
|
9
9
|
* https://gsap.com
|
10
10
|
*
|
@@ -20,5 +20,5 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
20
20
|
* Subject to the terms at https://gsap.com/standard-license or for
|
21
21
|
* Club GSAP members, the agreement issued with that membership.
|
22
22
|
* @author: Jack Doyle, jack@greensock.com
|
23
|
-
*/var Od,At,Mn,fl,rn,$d,_l,Ix=function(){return typeof window<"u"},ht={},on=180/Math.PI,Vn=Math.PI/180,Ln=Math.atan2,Ad=1e8,ml=/([A-Z])/g,Nx=/(left|right|width|margin|padding|x)/i,Fx=/[\s,\(]\S/,it={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},pl=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Dx=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)},Ox=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)},$x=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Pd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Md=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Ax=function(e,n,r){return e.style[n]=r},Px=function(e,n,r){return e.style.setProperty(n,r)},Mx=function(e,n,r){return e._gsap[n]=r},Vx=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Lx=function(e,n,r,i,l){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(l,s)},Rx=function(e,n,r,i,l){var s=e._gsap;s[n]=r,s.renderTransform(l,s)},te="transform",Ie=te+"Origin",Ux=function t(e,n){var r=this,i=this.target,l=i.style,s=i._gsap;if(e in ht&&l){if(this.tfm=this.tfm||{},e!=="transform")e=it[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=gt(i,a)}):this.tfm[e]=s.x?s[e]:gt(i,e),e===Ie&&(this.tfm.zOrigin=s.zOrigin);else return it.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(te)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ie,n,"")),e=te}(l||n)&&this.props.push(e,n,l[e])},Vd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},zx=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,l,s;for(l=0;l<e.length;l+=3)e[l+1]?n[e[l]]=e[l+2]:e[l+2]?r[e[l]]=e[l+2]:r.removeProperty(e[l].substr(0,2)==="--"?e[l]:e[l].replace(ml,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),l=_l(),(!l||!l.isStart)&&!r[te]&&(Vd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Ld=function(e,n){var r={target:e,props:[],revert:zx,save:Ux};return e._gsap||Be.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Rd,hl=function(e,n){var r=At.createElementNS?At.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):At.createElement(e);return r&&r.style?r:At.createElement(e)},lt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ml,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Rn(n)||n,1)||""},Ud="O,Moz,ms,Ms,Webkit".split(","),Rn=function(e,n,r){var i=n||rn,l=i.style,s=5;if(e in l&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Ud[s]+e in l););return s<0?null:(s===3?"ms":s>=0?Ud[s]:"")+e},gl=function(){Ix()&&window.document&&(Od=window,At=Od.document,Mn=At.documentElement,rn=hl("div")||{style:{}},hl("div"),te=Rn(te),Ie=te+"Origin",rn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rd=!!Rn("perspective"),_l=Be.core.reverting,fl=1)},yl=function t(e){var n=hl("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,l=this.style.cssText,s;if(Mn.appendChild(n),n.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Mn.removeChild(n),this.style.cssText=l,s},zd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},qd=function(e){var n;try{n=e.getBBox()}catch{n=yl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===yl||(n=yl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+zd(e,["x","cx","x1"])||0,y:+zd(e,["y","cy","y1"])||0,width:0,height:0}:n},jd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&qd(e))},ln=function(e,n){if(n){var r=e.style,i;n in ht&&n!==Ie&&(n=te),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ml,"-$1").toLowerCase())):r.removeAttribute(n)}},Pt=function(e,n,r,i,l,s){var a=new ve(e._pt,n,r,0,1,s?Md:Pd);return e._pt=a,a.b=i,a.e=l,e._props.push(r),a},Gd={deg:1,rad:1,turn:1},qx={grid:1,flex:1},Mt=function t(e,n,r,i){var l=parseFloat(r)||0,s=(r+"").trim().substr((l+"").length)||"px",a=rn.style,c=Nx.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,_=i==="px",m=i==="%",h,p,y,k;if(i===s||!l||Gd[i]||Gd[s])return l;if(s!=="px"&&!_&&(l=t(e,n,r,"px")),k=e.getCTM&&jd(e),(m||s==="%")&&(ht[n]||~n.indexOf("adius")))return h=k?e.getBBox()[c?"width":"height"]:e[d],ie(m?l/h*f:l/100*h);if(a[c?"width":"height"]=f+(_?s:i),p=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,k&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===At||!p.appendChild)&&(p=At.body),y=p._gsap,y&&m&&y.width&&c&&y.time===Ae.time&&!y.uncache)return ie(l/y.width*f);if(m&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=f+i,h=e[d],w?e.style[n]=w:ln(e,n)}else(m||s==="%")&&!qx[lt(p,"display")]&&(a.position=lt(e,"position")),p===e&&(a.position="static"),p.appendChild(rn),h=rn[d],p.removeChild(rn),a.position="absolute";return c&&m&&(y=Xt(p),y.time=Ae.time,y.width=p[d]),ie(_?h*l/f:h&&l?f/h*l:0)},gt=function(e,n,r,i){var l;return fl||gl(),n in it&&n!=="transform"&&(n=it[n],~n.indexOf(",")&&(n=n.split(",")[0])),ht[n]&&n!=="transform"?(l=hr(e,i),l=n!=="transformOrigin"?l[n]:l.svg?l.origin:wo(lt(e,Ie))+" "+l.zOrigin+"px"):(l=e.style[n],(!l||l==="auto"||i||~(l+"").indexOf("calc("))&&(l=ko[n]&&ko[n](e,n,r)||lt(e,n)||Yu(e,n)||(n==="opacity"?1:0))),r&&!~(l+"").trim().indexOf(" ")?Mt(e,n,l,r)+r:l},jx=function(e,n,r,i){if(!r||r==="none"){var l=Rn(n,e,1),s=l&<(e,l,1);s&&s!==r?(n=l,r=s):n==="borderColor"&&(r=lt(e,"borderTopColor"))}var a=new ve(this._pt,e.style,n,0,1,Id),c=0,u=0,d,f,_,m,h,p,y,k,w,C,T,v;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(p=e.style[n],e.style[n]=i,i=lt(e,n)||i,p?e.style[n]=p:ln(e,n)),d=[r,i],bd(d),r=d[0],i=d[1],_=r.match(Fn)||[],v=i.match(Fn)||[],v.length){for(;f=Fn.exec(i);)y=f[0],w=i.substring(c,f.index),h?h=(h+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(h=1),y!==(p=_[u++]||"")&&(m=parseFloat(p)||0,T=p.substr((m+"").length),y.charAt(1)==="="&&(y=Dn(m,y)+T),k=parseFloat(y),C=y.substr((k+"").length),c=Fn.lastIndex-C.length,C||(C=C||Fe.units[n]||T,c===i.length&&(i+=C,a.e+=C)),T!==C&&(m=Mt(e,n,p,C)||0),a._pt={_next:a._pt,p:w||u===1?w:",",s:m,c:k-m,m:h&&h<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?Md:Pd;return zu.test(i)&&(a.e=0),this._pt=a,a},Hd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Gx=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]=Hd[r]||r,n[1]=Hd[i]||i,n.join(" ")},Hx=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,l=n.u,s=r._gsap,a,c,u;if(l==="all"||l===!0)i.cssText="",c=1;else for(l=l.split(","),u=l.length;--u>-1;)a=l[u],ht[a]&&(c=1,a=a==="transformOrigin"?Ie:te),ln(r,a);c&&(ln(r,te),s&&(s.svg&&r.removeAttribute("transform"),hr(r,1),s.uncache=1,Vd(i)))}},ko={clearProps:function(e,n,r,i,l){if(l.data!=="isFromStart"){var s=e._pt=new ve(e._pt,n,r,0,0,Hx);return s.u=i,s.pr=-10,s.tween=l,e._props.push(r),1}}},pr=[1,0,0,1,0,0],Zd={},Wd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Yd=function(e){var n=lt(e,te);return Wd(n)?pr:n.substr(7).match(Uu).map(ie)},bl=function(e,n){var r=e._gsap||Xt(e),i=e.style,l=Yd(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,l=[c.a,c.b,c.c,c.d,c.e,c.f],l.join(",")==="1,0,0,1,0,0"?pr:l):(l===pr&&!e.offsetParent&&e!==Mn&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(u=1,a=e.nextElementSibling,Mn.appendChild(e)),l=Yd(e),c?i.display=c:ln(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):Mn.removeChild(e))),n&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},xl=function(e,n,r,i,l,s){var a=e._gsap,c=l||bl(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,_=a.yOffset||0,m=c[0],h=c[1],p=c[2],y=c[3],k=c[4],w=c[5],C=n.split(" "),T=parseFloat(C[0])||0,v=parseFloat(C[1])||0,x,g,S,E;r?c!==pr&&(g=m*y-h*p)&&(S=T*(y/g)+v*(-p/g)+(p*w-y*k)/g,E=T*(-h/g)+v*(m/g)-(m*w-h*k)/g,T=S,v=E):(x=qd(e),T=x.x+(~C[0].indexOf("%")?T/100*x.width:T),v=x.y+(~(C[1]||C[0]).indexOf("%")?v/100*x.height:v)),i||i!==!1&&a.smooth?(k=T-u,w=v-d,a.xOffset=f+(k*m+w*p)-k,a.yOffset=_+(k*h+w*y)-w):a.xOffset=a.yOffset=0,a.xOrigin=T,a.yOrigin=v,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",s&&(Pt(s,a,"xOrigin",u,T),Pt(s,a,"yOrigin",d,v),Pt(s,a,"xOffset",f,a.xOffset),Pt(s,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",T+" "+v)},hr=function(e,n){var r=e._gsap||new Sd(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,l=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=lt(e,Ie)||"0",d,f,_,m,h,p,y,k,w,C,T,v,x,g,S,E,F,L,q,j,O,K,Y,ce,Pe,Un,un,Vt,Je,xr,Ze,yt;return d=f=_=p=y=k=w=C=T=0,m=h=1,r.svg=!!(e.getCTM&&jd(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[te]=(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[te]!=="none"?c[te]:"")),i.scale=i.rotate=i.translate="none"),g=bl(e,r.svg),r.svg&&(r.uncache?(Pe=e.getBBox(),u=r.xOrigin-Pe.x+"px "+(r.yOrigin-Pe.y)+"px",ce=""):ce=!n&&e.getAttribute("data-svg-origin"),xl(e,ce||u,!!ce||r.originIsAbsolute,r.smooth!==!1,g)),v=r.xOrigin||0,x=r.yOrigin||0,g!==pr&&(L=g[0],q=g[1],j=g[2],O=g[3],d=K=g[4],f=Y=g[5],g.length===6?(m=Math.sqrt(L*L+q*q),h=Math.sqrt(O*O+j*j),p=L||q?Ln(q,L)*on:0,w=j||O?Ln(j,O)*on+p:0,w&&(h*=Math.abs(Math.cos(w*Vn))),r.svg&&(d-=v-(v*L+x*j),f-=x-(v*q+x*O))):(yt=g[6],xr=g[7],un=g[8],Vt=g[9],Je=g[10],Ze=g[11],d=g[12],f=g[13],_=g[14],S=Ln(yt,Je),y=S*on,S&&(E=Math.cos(-S),F=Math.sin(-S),ce=K*E+un*F,Pe=Y*E+Vt*F,Un=yt*E+Je*F,un=K*-F+un*E,Vt=Y*-F+Vt*E,Je=yt*-F+Je*E,Ze=xr*-F+Ze*E,K=ce,Y=Pe,yt=Un),S=Ln(-j,Je),k=S*on,S&&(E=Math.cos(-S),F=Math.sin(-S),ce=L*E-un*F,Pe=q*E-Vt*F,Un=j*E-Je*F,Ze=O*F+Ze*E,L=ce,q=Pe,j=Un),S=Ln(q,L),p=S*on,S&&(E=Math.cos(S),F=Math.sin(S),ce=L*E+q*F,Pe=K*E+Y*F,q=q*E-L*F,Y=Y*E-K*F,L=ce,K=Pe),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,k=180-k),m=ie(Math.sqrt(L*L+q*q+j*j)),h=ie(Math.sqrt(Y*Y+yt*yt)),S=Ln(K,Y),w=Math.abs(S)>2e-4?S*on:0,T=Ze?1/(Ze<0?-Ze:Ze):0),r.svg&&(ce=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Wd(lt(e,te)),ce&&e.setAttribute("transform",ce))),Math.abs(w)>90&&Math.abs(w)<270&&(l?(m*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(h*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=ie(m),r.scaleY=ie(h),r.rotation=ie(p)+a,r.rotationX=ie(y)+a,r.rotationY=ie(k)+a,r.skewX=w+a,r.skewY=C+a,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=wo(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?Wx:Rd?Qd:Zx,r.uncache=0,r},wo=function(e){return(e=e.split(" "))[0]+" "+e[1]},kl=function(e,n,r){var i=ye(n);return ie(parseFloat(n)+parseFloat(Mt(e,"x",r+"px",i)))+i},Zx=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Qd(e,n)},sn="0deg",gr="0px",an=") ",Qd=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,_=r.skewX,m=r.skewY,h=r.scaleX,p=r.scaleY,y=r.transformPerspective,k=r.force3D,w=r.target,C=r.zOrigin,T="",v=k==="auto"&&e&&e!==1||k===!0;if(C&&(f!==sn||d!==sn)){var x=parseFloat(d)*Vn,g=Math.sin(x),S=Math.cos(x),E;x=parseFloat(f)*Vn,E=Math.cos(x),s=kl(w,s,g*E*-C),a=kl(w,a,-Math.sin(x)*-C),c=kl(w,c,S*E*-C+C)}y!==gr&&(T+="perspective("+y+an),(i||l)&&(T+="translate("+i+"%, "+l+"%) "),(v||s!==gr||a!==gr||c!==gr)&&(T+=c!==gr||v?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+an),u!==sn&&(T+="rotate("+u+an),d!==sn&&(T+="rotateY("+d+an),f!==sn&&(T+="rotateX("+f+an),(_!==sn||m!==sn)&&(T+="skew("+_+", "+m+an),(h!==1||p!==1)&&(T+="scale("+h+", "+p+an),w.style[te]=T||"translate(0, 0)"},Wx=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,_=r.scaleY,m=r.target,h=r.xOrigin,p=r.yOrigin,y=r.xOffset,k=r.yOffset,w=r.forceCSS,C=parseFloat(s),T=parseFloat(a),v,x,g,S,E;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Vn,u*=Vn,v=Math.cos(c)*f,x=Math.sin(c)*f,g=Math.sin(c-u)*-_,S=Math.cos(c-u)*_,u&&(d*=Vn,E=Math.tan(u-d),E=Math.sqrt(1+E*E),g*=E,S*=E,d&&(E=Math.tan(d),E=Math.sqrt(1+E*E),v*=E,x*=E)),v=ie(v),x=ie(x),g=ie(g),S=ie(S)):(v=f,S=_,x=g=0),(C&&!~(s+"").indexOf("px")||T&&!~(a+"").indexOf("px"))&&(C=Mt(m,"x",s,"px"),T=Mt(m,"y",a,"px")),(h||p||y||k)&&(C=ie(C+h-(h*v+p*g)+y),T=ie(T+p-(h*x+p*S)+k)),(i||l)&&(E=m.getBBox(),C=ie(C+i/100*E.width),T=ie(T+l/100*E.height)),E="matrix("+v+","+x+","+g+","+S+","+C+","+T+")",m.setAttribute("transform",E),w&&(m.style[te]=E)},Yx=function(e,n,r,i,l){var s=360,a=de(l),c=parseFloat(l)*(a&&~l.indexOf("rad")?on:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=l.split("_")[1],f==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),f==="cw"&&u<0?u=(u+s*Ad)%s-~~(u/s)*s:f==="ccw"&&u>0&&(u=(u-s*Ad)%s-~~(u/s)*s)),e._pt=_=new ve(e._pt,n,r,i,u,Dx),_.e=d,_.u="deg",e._props.push(r),_},Xd=function(e,n){for(var r in n)e[r]=n[r];return e},Qx=function(e,n,r){var i=Xd({},r._gsap),l="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,d,f,_,m,h;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[te]=n,a=hr(r,1),ln(r,te),r.setAttribute("transform",u)):(u=getComputedStyle(r)[te],s[te]=n,a=hr(r,1),s[te]=u);for(c in ht)u=i[c],d=a[c],u!==d&&l.indexOf(c)<0&&(m=ye(u),h=ye(d),f=m!==h?Mt(r,c,u,h):parseFloat(u),_=parseFloat(d),e._pt=new ve(e._pt,a,c,f,_-f,pl),e._pt.u=h||0,e._props.push(c));Xd(a,i)};Ee("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",l="Left",s=(e<3?[n,r,i,l]:[n+l,n+r,i+r,i+l]).map(function(a){return e<2?t+a:"border"+a+t});ko[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=s.map(function(h){return gt(a,h,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},s.forEach(function(h,p){return m[h]=_[p]=_[p]||_[(p-1)/2|0]}),a.init(c,m,f)}});var Kd={name:"css",register:gl,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,l){var s=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,h,p,y,k,w,C,T,v,x,g,S;fl||gl(),this.styles=this.styles||Ld(e),S=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(d=n[p],!(Oe[p]&&Cd(p,n,r,i,e,l)))){if(m=typeof d,h=ko[p],m==="function"&&(d=d.call(r,i,e,l),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=cr(d)),h)h(this,e,p,d,r)&&(g=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",Ot.lastIndex=0,Ot.test(u)||(y=ye(u),k=ye(d)),k?y!==k&&(u=Mt(e,p,u,k)+k):y&&(d+=y),this.add(a,"setProperty",u,d,i,l,0,0,p),s.push(p),S.push(p,0,a[p]);else if(m!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,l):c[p],de(u)&&~u.indexOf("random(")&&(u=cr(u)),ye(u+"")||u==="auto"||(u+=Fe.units[p]||ye(gt(e,p))||""),(u+"").charAt(1)==="="&&(u=gt(e,p))):u=gt(e,p),_=parseFloat(u),w=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),w&&(d=d.substr(2)),f=parseFloat(d),p in it&&(p==="autoAlpha"&&(_===1&>(e,"visibility")==="hidden"&&f&&(_=0),S.push("visibility",0,a.visibility),Pt(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=it[p],~p.indexOf(",")&&(p=p.split(",")[0]))),C=p in ht,C){if(this.styles.save(p),T||(v=e._gsap,v.renderTransform&&!n.parseTransform||hr(e,n.parseTransform),x=n.smoothOrigin!==!1&&v.smooth,T=this._pt=new ve(this._pt,a,te,0,1,v.renderTransform,v,0,-1),T.dep=1),p==="scale")this._pt=new ve(this._pt,v,"scaleY",v.scaleY,(w?Dn(v.scaleY,w+f):f)-v.scaleY||0,pl),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){S.push(Ie,0,a[Ie]),d=Gx(d),v.svg?xl(e,d,0,x,0,this):(k=parseFloat(d.split(" ")[2])||0,k!==v.zOrigin&&Pt(this,v,"zOrigin",v.zOrigin,k),Pt(this,a,p,wo(u),wo(d)));continue}else if(p==="svgOrigin"){xl(e,d,1,x,0,this);continue}else if(p in Zd){Yx(this,v,p,_,w?Dn(_,w+d):d);continue}else if(p==="smoothOrigin"){Pt(this,v,"smooth",v.smooth,d);continue}else if(p==="force3D"){v[p]=d;continue}else if(p==="transform"){Qx(this,d,e);continue}}else p in a||(p=Rn(p)||p);if(C||(f||f===0)&&(_||_===0)&&!Fx.test(d)&&p in a)y=(u+"").substr((_+"").length),f||(f=0),k=ye(d)||(p in Fe.units?Fe.units[p]:y),y!==k&&(_=Mt(e,p,u,k)),this._pt=new ve(this._pt,C?v:a,p,_,(w?Dn(_,w+f):f)-_,!C&&(k==="px"||p==="zIndex")&&n.autoRound!==!1?$x:pl),this._pt.u=k||0,y!==k&&k!=="%"&&(this._pt.b=u,this._pt.r=Ox);else if(p in a)jx.call(this,e,p,u,w?w+d:d);else if(p in e)this.add(e,p,u||e[p],w?w+d:d,i,l);else if(p!=="parseTransform"){qi(p,d);continue}C||(p in a?S.push(p,0,a[p]):S.push(p,1,u||e[p])),s.push(p)}}g&&Nd(this)},render:function(e,n){if(n.tween._time||!_l())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:gt,aliases:it,getSetter:function(e,n,r){var i=it[n];return i&&i.indexOf(",")<0&&(n=i),n in ht&&n!==Ie&&(e._gsap.x||gt(e,"x"))?r&&$d===r?n==="scale"?Vx:Mx:($d=r||{})&&(n==="scale"?Lx:Rx):e.style&&!Mi(e.style[n])?Ax:~n.indexOf("-")?Px:sl(e,n)},core:{_removeProperty:ln,_getMatrix:bl}};Be.utils.checkPrefix=Rn,Be.core.getStyleSaver=Ld,function(t,e,n,r){var i=Ee(t+","+e+","+n,function(l){ht[l]=1});Ee(e,function(l){Fe.units[l]="deg",Zd[l]=1}),it[i[13]]=t+","+e,Ee(r,function(l){var s=l.split(":");it[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ee("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),Be.registerPlugin(Kd);var wl=Be.registerPlugin(Kd)||Be;wl.core.Tween;const Xx={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=o.ref(null),r=o.computed(()=>e.delayOffset/n.value.$el.children.length);function i(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function l(a,c){if(e.disabled){c();return}wl.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function s(a,c){if(e.disabled){c();return}wl.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:l,onLeave:s},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}},Sl={__name:"ActionMenu",props:{actions:{type:Array,required:!0},target:{type:[Array,Object],default:()=>[]},tooltip:{type:String,default:"First select records to perform a batch action"},loading:Boolean,loadingComponent:{type:[Function,Object],default:void 0}},setup(t){const e=t,n=o.computed(()=>Array.isArray(e.target)?e.target.length>0:!!e.target),r=o.computed(()=>e.actions.filter(s=>Array.isArray(e.target)?s.batchEnabled?s.batchEnabled(e.target):!0:s.enabled?s.enabled(e.target):!0)),i=o.ref(!1);async function l(s){if(!s.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");i.value=!0,await s.trigger(e.target),i.value=!1}return(s,a)=>(o.openBlock(),o.createBlock(o.unref(Pu),{class:"px-2 flex dx-action-button",items:r.value,disabled:!n.value,tooltip:n.value?null:t.tooltip,loading:i.value||t.loading,"loading-component":t.loadingComponent,onActionItem:l},null,8,["items","disabled","tooltip","loading","loading-component"]))}},Kx={class:"flex-grow overflow-hidden"},Jx={key:0,class:"flex flex-shrink-0 pl-2"},Jd={__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=o.computed(()=>e.rowProps.row),r=o.computed(()=>e.rowProps.col),i=o.computed(()=>e.rowProps.value),l=o.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),s=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":l.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",Kx,[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(Qt),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{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(of),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",Jx,[o.createVNode(o.unref(Sl),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:l.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}};class Cl{constructor(e={}){G(this,"options",{direction:"vertical",hideDragImage:!1});G(this,"startY",0);G(this,"startX",0);G(this,"startSize",0);G(this,"cursorY",0);G(this,"cursorX",0);G(this,"onStartCb",null);G(this,"onEndCb",null);G(this,"onDropCb",null);G(this,"onDraggingCb",null);G(this,"dropZoneResolver",null);G(this,"currentDropZone",null);G(this,"draggableData",null);G(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 ef={__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 Cl().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(zn(()=>{n("resize",{distance:i.getDistance(),percent:i.getPercentChange(),startDropZoneSize:i.startSize,dropZoneSize:i.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(l,s)=>(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:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.renderSlot(l.$slots,"default")],34))}};class tf extends Cl{constructor(n={}){super({showPlaceholder:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.updateScrollPosition())}dragEnd(n){var i;const r=this.draggableData;(i=this.placeholder)==null||i.remove(),super.dragEnd(n),this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){super.dragOver(n),this.updateListPosition(n)}updateListPosition(n){const r=this.listPosition,i=this.getListPositionOfPoint({x:n.clientX,y:n.clientY});this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==r&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.draggableData))}getListPosition(n){let r=0;for(const i of this.getChildren()){if(i===n)return r;r++}return null}getChildren(){return[...this.currentDropZone.children].filter(n=>n.className.match(/drag-placeholder/)===null)}getListPositionOfPoint(n){let r=0;const i=this.getChildren();for(;r<i.length;){const l=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<l.top+l.height/2)break}else if(n.x<l.left+l.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const l=f=>f*5,s=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-s,d=s-(c-r);u>0?i=-l(u):d>0&&(i=l(d)),i&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+i,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+i,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}}renderPlaceholder(){this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("direction-vertical"),this.placeholder.classList.remove("direction-horizontal"),this.placeholder.style.height=void 0):(this.placeholder.classList.add("direction-horizontal"),this.placeholder.classList.remove("direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const ek={class:"flex items-center"},tk={key:0},nk={class:"flex-grow"},nf={__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 tf().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction}).onPositionChange((l,s)=>{if(n("position",l),r.listItems){const a=[...r.listItems];a.splice(l,0,a.splice(s,1)[0]),n("update:list-items",a)}});return(l,s)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",ek,[t.showHandle?(o.openBlock(),o.createElementBlock("div",tk,[o.createVNode(o.unref(Fu),{svg:o.unref(yu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",nk,[o.renderSlot(l.$slots,"default")])])],32))}},rf=_t({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),l=o.computed(()=>i.value.resizeable),s=o.computed(()=>{var u;const c=((u=r.settings)==null?void 0:u.width)||i.value.width;return{width:c?`${c}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}});function a(c){const u={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(c.distance+c.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":l.value&&"resize-column-"+i.value.name,class:o.normalizeClass(l.value&&c.cls["handle-drop-zone"]),style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),l.value?(o.openBlock(),o.createBlock(o.unref(ef),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(c.cls["resize-handle"]),onResize:a},{default:o.withCtx(()=>[o.createVNode(o.unref(bu),{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_pspxj_1",visible:"_visible_pspxj_1",collapse:"_collapse_pspxj_1",static:"_static_pspxj_1",absolute:"_absolute_pspxj_1",relative:"_relative_pspxj_1",sticky:"_sticky_pspxj_1","bottom-1":"_bottom-1_pspxj_1","left-0":"_left-0_pspxj_1","right-0":"_right-0_pspxj_1","right-1":"_right-1_pspxj_1","right-4":"_right-4_pspxj_1","top-0":"_top-0_pspxj_1","top-1":"_top-1_pspxj_1","top-4":"_top-4_pspxj_1","m-2":"_m-2_pspxj_1","m-4":"_m-4_pspxj_1","m-auto":"_m-auto_pspxj_1","mx-1":"_mx-1_pspxj_1","mx-4":"_mx-4_pspxj_1","mx-auto":"_mx-auto_pspxj_1","my-2":"_my-2_pspxj_1","!mr-1":"_!mr-1_pspxj_1","mb-1":"_mb-1_pspxj_1","mb-2":"_mb-2_pspxj_1","mb-4":"_mb-4_pspxj_1","ml-1":"_ml-1_pspxj_1","ml-2":"_ml-2_pspxj_1","ml-2.5":"_ml-2.5_pspxj_1","ml-3":"_ml-3_pspxj_1","ml-4":"_ml-4_pspxj_1","ml-5":"_ml-5_pspxj_1","ml-[-.2em]":"_ml-[-.2em]_pspxj_1","mr-1":"_mr-1_pspxj_1","mr-2":"_mr-2_pspxj_1","mr-3":"_mr-3_pspxj_1","mr-4":"_mr-4_pspxj_1","mt-1":"_mt-1_pspxj_1","mt-2":"_mt-2_pspxj_1","mt-3":"_mt-3_pspxj_1","mt-4":"_mt-4_pspxj_1",block:"_block_pspxj_1","inline-block":"_inline-block_pspxj_1",inline:"_inline_pspxj_1",flex:"_flex_pspxj_1",table:"_table_pspxj_1",hidden:"_hidden_pspxj_1","h-10":"_h-10_pspxj_1","h-32":"_h-32_pspxj_1","h-4":"_h-4_pspxj_1","h-5":"_h-5_pspxj_1","h-8":"_h-8_pspxj_1","h-full":"_h-full_pspxj_1","max-h-full":"_max-h-full_pspxj_1","w-10":"_w-10_pspxj_1","w-16":"_w-16_pspxj_1","w-2/5":"_w-2/5_pspxj_1","w-24":"_w-24_pspxj_1","w-3":"_w-3_pspxj_1","w-3/5":"_w-3/5_pspxj_1","w-32":"_w-32_pspxj_1","w-4":"_w-4_pspxj_1","w-48":"_w-48_pspxj_1","w-5":"_w-5_pspxj_1","w-6":"_w-6_pspxj_1","w-7":"_w-7_pspxj_1","w-72":"_w-72_pspxj_1","w-8":"_w-8_pspxj_1","w-96":"_w-96_pspxj_1","w-[13.5rem]":"_w-[13.5rem]_pspxj_1","w-[35.5rem]":"_w-[35.5rem]_pspxj_1","w-[6.5rem]":"_w-[6.5rem]_pspxj_1","w-full":"_w-full_pspxj_1","!min-w-0":"_!min-w-0_pspxj_1","max-w-[50em]":"_max-w-[50em]_pspxj_1","max-w-full":"_max-w-full_pspxj_1","flex-shrink":"_flex-shrink_pspxj_1","flex-shrink-0":"_flex-shrink-0_pspxj_1","flex-grow":"_flex-grow_pspxj_1",grow:"_grow_pspxj_1","rotate-180":"_rotate-180_pspxj_1",transform:"_transform_pspxj_1","cursor-ew-resize":"_cursor-ew-resize_pspxj_1","cursor-move":"_cursor-move_pspxj_1","cursor-not-allowed":"_cursor-not-allowed_pspxj_1","cursor-ns-resize":"_cursor-ns-resize_pspxj_1","cursor-pointer":"_cursor-pointer_pspxj_1",resize:"_resize_pspxj_114","flex-col":"_flex-col_pspxj_1","flex-nowrap":"_flex-nowrap_pspxj_1","items-center":"_items-center_pspxj_1","items-stretch":"_items-stretch_pspxj_1","justify-start":"_justify-start_pspxj_1","justify-end":"_justify-end_pspxj_1","justify-center":"_justify-center_pspxj_1","justify-between":"_justify-between_pspxj_1","gap-y-0":"_gap-y-0_pspxj_1","gap-y-1":"_gap-y-1_pspxj_1","space-x-1":"_space-x-1_pspxj_1","space-x-2":"_space-x-2_pspxj_1","self-center":"_self-center_pspxj_1","overflow-auto":"_overflow-auto_pspxj_1","overflow-hidden":"_overflow-hidden_pspxj_1","overflow-y-auto":"_overflow-y-auto_pspxj_70","overflow-x-hidden":"_overflow-x-hidden_pspxj_1","scroll-smooth":"_scroll-smooth_pspxj_1","overflow-ellipsis":"_overflow-ellipsis_pspxj_1","whitespace-nowrap":"_whitespace-nowrap_pspxj_1",rounded:"_rounded_pspxj_1","rounded-2xl":"_rounded-2xl_pspxj_1","rounded-lg":"_rounded-lg_pspxj_1","rounded-md":"_rounded-md_pspxj_1","!rounded-l-none":"_!rounded-l-none_pspxj_1","!rounded-r-none":"_!rounded-r-none_pspxj_1","rounded-b-lg":"_rounded-b-lg_pspxj_1","rounded-t-lg":"_rounded-t-lg_pspxj_1","rounded-t-md":"_rounded-t-md_pspxj_1","!border-0":"_!border-0_pspxj_1",border:"_border_pspxj_1","border-b":"_border-b_pspxj_1","border-l":"_border-l_pspxj_1","border-l-0":"_border-l-0_pspxj_1","border-r":"_border-r_pspxj_1","border-solid":"_border-solid_pspxj_1","border-dashed":"_border-dashed_pspxj_1","border-none":"_border-none_pspxj_1","border-blue-600":"_border-blue-600_pspxj_1","border-blue-700":"_border-blue-700_pspxj_1","border-gray-200":"_border-gray-200_pspxj_1","border-gray-300":"_border-gray-300_pspxj_1","border-slate-200":"_border-slate-200_pspxj_1","bg-black":"_bg-black_pspxj_1","bg-blue-200":"_bg-blue-200_pspxj_1","bg-blue-600":"_bg-blue-600_pspxj_1","bg-emerald-200":"_bg-emerald-200_pspxj_1","bg-gray-100":"_bg-gray-100_pspxj_1","bg-gray-200":"_bg-gray-200_pspxj_1","bg-gray-400":"_bg-gray-400_pspxj_1","bg-gray-500":"_bg-gray-500_pspxj_1","bg-green-200":"_bg-green-200_pspxj_1","bg-green-300":"_bg-green-300_pspxj_1","bg-red-200":"_bg-red-200_pspxj_1","bg-red-300":"_bg-red-300_pspxj_1","bg-red-900":"_bg-red-900_pspxj_1","bg-slate-100":"_bg-slate-100_pspxj_1","bg-slate-500":"_bg-slate-500_pspxj_1","bg-transparent":"_bg-transparent_pspxj_1","bg-white":"_bg-white_pspxj_1","bg-yellow-300":"_bg-yellow-300_pspxj_1","!p-2":"_!p-2_pspxj_1","p-0":"_p-0_pspxj_1","p-1":"_p-1_pspxj_1","p-2":"_p-2_pspxj_1","p-3":"_p-3_pspxj_1","p-4":"_p-4_pspxj_1","!py-0":"_!py-0_pspxj_1","px-1":"_px-1_pspxj_1","px-12":"_px-12_pspxj_1","px-2":"_px-2_pspxj_1","px-2.5":"_px-2.5_pspxj_1","px-4":"_px-4_pspxj_1","px-6":"_px-6_pspxj_1","px-8":"_px-8_pspxj_1","py-1":"_py-1_pspxj_1","py-14":"_py-14_pspxj_1","py-2":"_py-2_pspxj_1","py-3":"_py-3_pspxj_1","py-4":"_py-4_pspxj_1","py-8":"_py-8_pspxj_1","pl-1":"_pl-1_pspxj_1","pl-2":"_pl-2_pspxj_1","pt-3":"_pt-3_pspxj_1","text-left":"_text-left_pspxj_1","text-center":"_text-center_pspxj_1","text-[1rem]":"_text-[1rem]_pspxj_1","text-sm":"_text-sm_pspxj_1","text-xs":"_text-xs_pspxj_1","font-bold":"_font-bold_pspxj_1","font-medium":"_font-medium_pspxj_1","font-semibold":"_font-semibold_pspxj_1",uppercase:"_uppercase_pspxj_1","leading-[1.2rem]":"_leading-[1.2rem]_pspxj_1","!text-green-900":"_!text-green-900_pspxj_1","!text-red-900":"_!text-red-900_pspxj_1","!text-white":"_!text-white_pspxj_1","!text-yellow-900":"_!text-yellow-900_pspxj_1","text-blue-600":"_text-blue-600_pspxj_1","text-blue-900":"_text-blue-900_pspxj_1","text-gray-300":"_text-gray-300_pspxj_1","text-gray-400":"_text-gray-400_pspxj_1","text-gray-500":"_text-gray-500_pspxj_1","text-gray-600":"_text-gray-600_pspxj_1","text-gray-700":"_text-gray-700_pspxj_1","text-green-700":"_text-green-700_pspxj_1","text-red-400":"_text-red-400_pspxj_1","text-red-800":"_text-red-800_pspxj_1","text-red-900":"_text-red-900_pspxj_1","text-slate-500":"_text-slate-500_pspxj_1","text-white":"_text-white_pspxj_1","text-yellow-600":"_text-yellow-600_pspxj_1","text-zinc-500":"_text-zinc-500_pspxj_1","text-zinc-800":"_text-zinc-800_pspxj_1","line-through":"_line-through_pspxj_1","opacity-0":"_opacity-0_pspxj_1","opacity-20":"_opacity-20_pspxj_1","opacity-50":"_opacity-50_pspxj_1","opacity-70":"_opacity-70_pspxj_1","shadow-none":"_shadow-none_pspxj_1","outline-none":"_outline-none_pspxj_1",outline:"_outline_pspxj_1",filter:"_filter_pspxj_1",transition:"_transition_pspxj_1","transition-all":"_transition-all_pspxj_1","duration-300":"_duration-300_pspxj_1","danx-app":"_danx-app_pspxj_4","q-tab":"_q-tab_pspxj_4","q-table__card":"_q-table__card_pspxj_7","q-checkbox__inner":"_q-checkbox__inner_pspxj_11","q-toolbar":"_q-toolbar_pspxj_14","q-notification__actions":"_q-notification__actions_pspxj_19","q-date":"_q-date_pspxj_22","q-date__view":"_q-date__view_pspxj_25","q-field":"_q-field_pspxj_28","q-field--auto-height":"_q-field--auto-height_pspxj_28","q-field__control":"_q-field__control_pspxj_28","q-field__native":"_q-field__native_pspxj_31","q-field--labeled":"_q-field--labeled_pspxj_35","q-field__control-container":"_q-field__control-container_pspxj_35","q-textarea":"_q-textarea_pspxj_38","q-field__marginal":"_q-field__marginal_pspxj_41","q-field__input":"_q-field__input_pspxj_41","q-field__label":"_q-field__label_pspxj_41","q-btn":"_q-btn_pspxj_45","q-item":"_q-item_pspxj_53","q-tab-panels":"_q-tab-panels_pspxj_57","q-panel":"_q-panel_pspxj_61",scroll:"_scroll_pspxj_64","q-tab-panel":"_q-tab-panel_pspxj_57","dx-dialog":"_dx-dialog_pspxj_74","q-card__section--vert":"_q-card__section--vert_pspxj_74","q-banner":"_q-banner_pspxj_78",app:"_app_pspxj_1","main-layout":"_main-layout_pspxj_1","is-disabled":"_is-disabled_pspxj_95","disable-all-transitions":"_disable-all-transitions_pspxj_100","v-enter-active":"_v-enter-active_pspxj_104","v-leave-active":"_v-leave-active_pspxj_105","v-enter-from":"_v-enter-from_pspxj_109","v-leave-to":"_v-leave-to_pspxj_110","handle-drop-zone":"_handle-drop-zone_pspxj_114","resize-handle":"_resize-handle_pspxj_114","hover:bg-blue-200":"_hover:bg-blue-200_pspxj_1","hover:bg-gray-200":"_hover:bg-gray-200_pspxj_1","hover:bg-green-100":"_hover:bg-green-100_pspxj_1","hover:bg-red-100":"_hover:bg-red-100_pspxj_1","hover:bg-red-200":"_hover:bg-red-200_pspxj_1","hover:bg-slate-200":"_hover:bg-slate-200_pspxj_1","hover:bg-slate-300":"_hover:bg-slate-300_pspxj_1","hover:text-blue-500":"_hover:text-blue-500_pspxj_1","hover:text-blue-600":"_hover:text-blue-600_pspxj_1","hover:opacity-100":"_hover:opacity-100_pspxj_1","focus:bg-blue-200":"_focus:bg-blue-200_pspxj_1"}}]]),rk={key:0,class:"text-zinc-800 cursor-not-allowed"},ok={class:"font-semibold text-sm ml-5 py-3 flex-grow"},ik={key:1,class:"flex items-center"},Tl={__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",rk,[o.createVNode(o.unref(M2),{class:"w-4"})])):o.createCommentVNode("",!0),o.createElementVNode("div",ok,o.toDisplayString(t.column.label),1),t.locked?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ik,[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(A2),{key:0,class:"w-4"})):(o.openBlock(),o.createBlock(o.unref($2),{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(jy),{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)}}},lk=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),sk={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function l(u){return!r.hiddenColumnNames.includes(u.name)}function s(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=qn(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!i.value){Ve.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=qn(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Nu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[lk,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(Tl),{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(Mu),{name:"fade-down-list","data-drop-zone":"column-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sortableColumns,(f,_)=>(o.openBlock(),o.createBlock(o.unref(nf),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:o.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":_===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=m=>u.$emit("update:sortable-columns",m))},{default:o.withCtx(()=>[o.createVNode(o.unref(Tl),{column:f,visible:l(f),"is-title":a(f),onVisible:m=>s(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},of={__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))]))}},ak={"!visible":"_!visible_t8iv2_1",visible:"_visible_t8iv2_1",collapse:"_collapse_t8iv2_1",static:"_static_t8iv2_1",absolute:"_absolute_t8iv2_1",relative:"_relative_t8iv2_1",sticky:"_sticky_t8iv2_1","bottom-1":"_bottom-1_t8iv2_1","left-0":"_left-0_t8iv2_1","right-0":"_right-0_t8iv2_1","right-1":"_right-1_t8iv2_1","right-4":"_right-4_t8iv2_1","top-0":"_top-0_t8iv2_1","top-1":"_top-1_t8iv2_1","top-4":"_top-4_t8iv2_1","m-2":"_m-2_t8iv2_1","m-4":"_m-4_t8iv2_1","m-auto":"_m-auto_t8iv2_1","mx-1":"_mx-1_t8iv2_1","mx-4":"_mx-4_t8iv2_1","mx-auto":"_mx-auto_t8iv2_1","my-2":"_my-2_t8iv2_1","!mr-1":"_!mr-1_t8iv2_1","mb-1":"_mb-1_t8iv2_1","mb-2":"_mb-2_t8iv2_1","mb-4":"_mb-4_t8iv2_1","ml-1":"_ml-1_t8iv2_1","ml-2":"_ml-2_t8iv2_1","ml-2.5":"_ml-2.5_t8iv2_1","ml-3":"_ml-3_t8iv2_1","ml-4":"_ml-4_t8iv2_1","ml-5":"_ml-5_t8iv2_1","ml-[-.2em]":"_ml-[-.2em]_t8iv2_1","mr-1":"_mr-1_t8iv2_1","mr-2":"_mr-2_t8iv2_1","mr-3":"_mr-3_t8iv2_1","mr-4":"_mr-4_t8iv2_1","mt-1":"_mt-1_t8iv2_1","mt-2":"_mt-2_t8iv2_1","mt-3":"_mt-3_t8iv2_1","mt-4":"_mt-4_t8iv2_1",block:"_block_t8iv2_1","inline-block":"_inline-block_t8iv2_1",inline:"_inline_t8iv2_1",flex:"_flex_t8iv2_1",table:"_table_t8iv2_1",hidden:"_hidden_t8iv2_1","h-10":"_h-10_t8iv2_1","h-32":"_h-32_t8iv2_1","h-4":"_h-4_t8iv2_1","h-5":"_h-5_t8iv2_1","h-8":"_h-8_t8iv2_1","h-full":"_h-full_t8iv2_1","max-h-full":"_max-h-full_t8iv2_1","w-10":"_w-10_t8iv2_1","w-16":"_w-16_t8iv2_1","w-2/5":"_w-2/5_t8iv2_1","w-24":"_w-24_t8iv2_1","w-3":"_w-3_t8iv2_1","w-3/5":"_w-3/5_t8iv2_1","w-32":"_w-32_t8iv2_1","w-4":"_w-4_t8iv2_1","w-48":"_w-48_t8iv2_1","w-5":"_w-5_t8iv2_1","w-6":"_w-6_t8iv2_1","w-7":"_w-7_t8iv2_1","w-72":"_w-72_t8iv2_1","w-8":"_w-8_t8iv2_1","w-96":"_w-96_t8iv2_1","w-[13.5rem]":"_w-[13.5rem]_t8iv2_1","w-[35.5rem]":"_w-[35.5rem]_t8iv2_1","w-[6.5rem]":"_w-[6.5rem]_t8iv2_1","w-full":"_w-full_t8iv2_1","!min-w-0":"_!min-w-0_t8iv2_1","max-w-[50em]":"_max-w-[50em]_t8iv2_1","max-w-full":"_max-w-full_t8iv2_1","flex-shrink":"_flex-shrink_t8iv2_1","flex-shrink-0":"_flex-shrink-0_t8iv2_1","flex-grow":"_flex-grow_t8iv2_1",grow:"_grow_t8iv2_1","rotate-180":"_rotate-180_t8iv2_1",transform:"_transform_t8iv2_1","cursor-ew-resize":"_cursor-ew-resize_t8iv2_1","cursor-move":"_cursor-move_t8iv2_1","cursor-not-allowed":"_cursor-not-allowed_t8iv2_1","cursor-ns-resize":"_cursor-ns-resize_t8iv2_1","cursor-pointer":"_cursor-pointer_t8iv2_1",resize:"_resize_t8iv2_1","flex-col":"_flex-col_t8iv2_1","flex-nowrap":"_flex-nowrap_t8iv2_1","items-center":"_items-center_t8iv2_1","items-stretch":"_items-stretch_t8iv2_1","justify-start":"_justify-start_t8iv2_1","justify-end":"_justify-end_t8iv2_1","justify-center":"_justify-center_t8iv2_1","justify-between":"_justify-between_t8iv2_1","gap-y-0":"_gap-y-0_t8iv2_1","gap-y-1":"_gap-y-1_t8iv2_1","space-x-1":"_space-x-1_t8iv2_1","space-x-2":"_space-x-2_t8iv2_1","self-center":"_self-center_t8iv2_1","overflow-auto":"_overflow-auto_t8iv2_1","overflow-hidden":"_overflow-hidden_t8iv2_1","overflow-y-auto":"_overflow-y-auto_t8iv2_70","overflow-x-hidden":"_overflow-x-hidden_t8iv2_1","scroll-smooth":"_scroll-smooth_t8iv2_1","overflow-ellipsis":"_overflow-ellipsis_t8iv2_1","whitespace-nowrap":"_whitespace-nowrap_t8iv2_1",rounded:"_rounded_t8iv2_1","rounded-2xl":"_rounded-2xl_t8iv2_1","rounded-lg":"_rounded-lg_t8iv2_1","rounded-md":"_rounded-md_t8iv2_1","!rounded-l-none":"_!rounded-l-none_t8iv2_1","!rounded-r-none":"_!rounded-r-none_t8iv2_1","rounded-b-lg":"_rounded-b-lg_t8iv2_1","rounded-t-lg":"_rounded-t-lg_t8iv2_1","rounded-t-md":"_rounded-t-md_t8iv2_1","!border-0":"_!border-0_t8iv2_1",border:"_border_t8iv2_1","border-b":"_border-b_t8iv2_1","border-l":"_border-l_t8iv2_1","border-l-0":"_border-l-0_t8iv2_1","border-r":"_border-r_t8iv2_1","border-solid":"_border-solid_t8iv2_1","border-dashed":"_border-dashed_t8iv2_1","border-none":"_border-none_t8iv2_1","border-blue-600":"_border-blue-600_t8iv2_1","border-blue-700":"_border-blue-700_t8iv2_1","border-gray-200":"_border-gray-200_t8iv2_1","border-gray-300":"_border-gray-300_t8iv2_1","border-slate-200":"_border-slate-200_t8iv2_1","bg-black":"_bg-black_t8iv2_1","bg-blue-200":"_bg-blue-200_t8iv2_1","bg-blue-600":"_bg-blue-600_t8iv2_1","bg-emerald-200":"_bg-emerald-200_t8iv2_1","bg-gray-100":"_bg-gray-100_t8iv2_1","bg-gray-200":"_bg-gray-200_t8iv2_1","bg-gray-400":"_bg-gray-400_t8iv2_1","bg-gray-500":"_bg-gray-500_t8iv2_1","bg-green-200":"_bg-green-200_t8iv2_1","bg-green-300":"_bg-green-300_t8iv2_1","bg-red-200":"_bg-red-200_t8iv2_1","bg-red-300":"_bg-red-300_t8iv2_1","bg-red-900":"_bg-red-900_t8iv2_1","bg-slate-100":"_bg-slate-100_t8iv2_1","bg-slate-500":"_bg-slate-500_t8iv2_1","bg-transparent":"_bg-transparent_t8iv2_1","bg-white":"_bg-white_t8iv2_1","bg-yellow-300":"_bg-yellow-300_t8iv2_1","!p-2":"_!p-2_t8iv2_1","p-0":"_p-0_t8iv2_1","p-1":"_p-1_t8iv2_1","p-2":"_p-2_t8iv2_1","p-3":"_p-3_t8iv2_1","p-4":"_p-4_t8iv2_1","!py-0":"_!py-0_t8iv2_1","px-1":"_px-1_t8iv2_1","px-12":"_px-12_t8iv2_1","px-2":"_px-2_t8iv2_1","px-2.5":"_px-2.5_t8iv2_1","px-4":"_px-4_t8iv2_1","px-6":"_px-6_t8iv2_1","px-8":"_px-8_t8iv2_1","py-1":"_py-1_t8iv2_1","py-14":"_py-14_t8iv2_1","py-2":"_py-2_t8iv2_1","py-3":"_py-3_t8iv2_1","py-4":"_py-4_t8iv2_1","py-8":"_py-8_t8iv2_1","pl-1":"_pl-1_t8iv2_1","pl-2":"_pl-2_t8iv2_1","pt-3":"_pt-3_t8iv2_1","text-left":"_text-left_t8iv2_1","text-center":"_text-center_t8iv2_1","text-[1rem]":"_text-[1rem]_t8iv2_1","text-sm":"_text-sm_t8iv2_1","text-xs":"_text-xs_t8iv2_1","font-bold":"_font-bold_t8iv2_1","font-medium":"_font-medium_t8iv2_1","font-semibold":"_font-semibold_t8iv2_1",uppercase:"_uppercase_t8iv2_1","leading-[1.2rem]":"_leading-[1.2rem]_t8iv2_1","!text-green-900":"_!text-green-900_t8iv2_1","!text-red-900":"_!text-red-900_t8iv2_1","!text-white":"_!text-white_t8iv2_1","!text-yellow-900":"_!text-yellow-900_t8iv2_1","text-blue-600":"_text-blue-600_t8iv2_1","text-blue-900":"_text-blue-900_t8iv2_1","text-gray-300":"_text-gray-300_t8iv2_1","text-gray-400":"_text-gray-400_t8iv2_1","text-gray-500":"_text-gray-500_t8iv2_1","text-gray-600":"_text-gray-600_t8iv2_1","text-gray-700":"_text-gray-700_t8iv2_1","text-green-700":"_text-green-700_t8iv2_1","text-red-400":"_text-red-400_t8iv2_1","text-red-800":"_text-red-800_t8iv2_1","text-red-900":"_text-red-900_t8iv2_1","text-slate-500":"_text-slate-500_t8iv2_1","text-white":"_text-white_t8iv2_1","text-yellow-600":"_text-yellow-600_t8iv2_1","text-zinc-500":"_text-zinc-500_t8iv2_1","text-zinc-800":"_text-zinc-800_t8iv2_1","line-through":"_line-through_t8iv2_1","opacity-0":"_opacity-0_t8iv2_1","opacity-20":"_opacity-20_t8iv2_1","opacity-50":"_opacity-50_t8iv2_1","opacity-70":"_opacity-70_t8iv2_1","shadow-none":"_shadow-none_t8iv2_1","outline-none":"_outline-none_t8iv2_1",outline:"_outline_t8iv2_1",filter:"_filter_t8iv2_1",transition:"_transition_t8iv2_1","transition-all":"_transition-all_t8iv2_1","duration-300":"_duration-300_t8iv2_1","danx-app":"_danx-app_t8iv2_4","q-tab":"_q-tab_t8iv2_4","q-table__card":"_q-table__card_t8iv2_7","q-checkbox__inner":"_q-checkbox__inner_t8iv2_11","q-toolbar":"_q-toolbar_t8iv2_14","q-notification__actions":"_q-notification__actions_t8iv2_19","q-date":"_q-date_t8iv2_22","q-date__view":"_q-date__view_t8iv2_25","q-field":"_q-field_t8iv2_28","q-field--auto-height":"_q-field--auto-height_t8iv2_28","q-field__control":"_q-field__control_t8iv2_28","q-field__native":"_q-field__native_t8iv2_31","q-field--labeled":"_q-field--labeled_t8iv2_35","q-field__control-container":"_q-field__control-container_t8iv2_35","q-textarea":"_q-textarea_t8iv2_38","q-field__marginal":"_q-field__marginal_t8iv2_41","q-field__input":"_q-field__input_t8iv2_41","q-field__label":"_q-field__label_t8iv2_41","q-btn":"_q-btn_t8iv2_45","q-item":"_q-item_t8iv2_53","q-tab-panels":"_q-tab-panels_t8iv2_57","q-panel":"_q-panel_t8iv2_61",scroll:"_scroll_t8iv2_64","q-tab-panel":"_q-tab-panel_t8iv2_57","dx-dialog":"_dx-dialog_t8iv2_74","q-card__section--vert":"_q-card__section--vert_t8iv2_74","q-banner":"_q-banner_t8iv2_78",app:"_app_t8iv2_1","main-layout":"_main-layout_t8iv2_1","is-disabled":"_is-disabled_t8iv2_95","disable-all-transitions":"_disable-all-transitions_t8iv2_100","v-enter-active":"_v-enter-active_t8iv2_104","v-leave-active":"_v-leave-active_t8iv2_105","v-enter-from":"_v-enter-from_t8iv2_109","v-leave-to":"_v-leave-to_t8iv2_110","category-toggle":"_category-toggle_t8iv2_114","has-visible-columns":"_has-visible-columns_t8iv2_117","hover:bg-blue-200":"_hover:bg-blue-200_t8iv2_1","hover:bg-gray-200":"_hover:bg-gray-200_t8iv2_1","hover:bg-green-100":"_hover:bg-green-100_t8iv2_1","hover:bg-red-100":"_hover:bg-red-100_t8iv2_1","hover:bg-red-200":"_hover:bg-red-200_t8iv2_1","hover:bg-slate-200":"_hover:bg-slate-200_t8iv2_1","hover:bg-slate-300":"_hover:bg-slate-300_t8iv2_1","hover:text-blue-500":"_hover:text-blue-500_t8iv2_1","hover:text-blue-600":"_hover:text-blue-600_t8iv2_1","hover:opacity-100":"_hover:opacity-100_t8iv2_1","focus:bg-blue-200":"_focus:bg-blue-200_t8iv2_1"},ck={class:"flex items-center flex-nowrap"},uk=["onClick"],dk={class:"text-xs"},fk=_t({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(""),l=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function s(m){return r.columns.filter(h=>h.category===m)}function a(m){return s(m).filter(h=>!h.required).map(h=>h.name).some(h=>!r.hiddenColumnNames.includes(h))}function c(m){let h=s(m).filter(y=>!y.required);const p=h.filter(y=>!r.hiddenColumnNames.includes(y.name));return p.length===0?!1:p.length===h.length?!0:null}function u(m,h){m=m.filter(y=>!y.required);let p=[...r.hiddenColumnNames];h?p=p.filter(y=>!m.map(k=>k.name).includes(y)):p=[...new Set([...p,...m.map(y=>y.name)])],n("update:hidden-column-names",p)}function d(m,h){if(r.columns.find(y=>y.name===m).required)return;h=h??r.hiddenColumnNames.includes(m);let p=[...r.hiddenColumnNames];h?p=qn(p,m):(p.push(m),p=[...new Set(p)]),n("update:hidden-column-names",p)}const f=o.useCssModule();function _(m){return f["category-toggle"]+(a(m)?" "+f["has-visible-columns"]:"")}return(m,h)=>{const p=o.resolveComponent("QCheckbox"),y=o.resolveComponent("QList"),k=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",ck,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,w=>(o.openBlock(),o.createElementBlock("div",{key:w,class:o.normalizeClass(_(w))},[o.createVNode(p,{"toggle-indeterminate":"",size:"20px","model-value":c(w),class:"mr-2 cb-white-border",onClick:C=>u(s(w),!a(w))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(w),1),o.createVNode(o.unref(gu),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===w}])},null,8,["class"]),o.createVNode(k,{"onUpdate:modelValue":C=>i.value=C?w:""},{default:o.withCtx(()=>[o.createVNode(y,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s(w),C=>(o.openBlock(),o.createElementBlock("div",{key:C,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:T=>d(C.name)},[o.createVNode(p,{"model-value":!t.hiddenColumnNames.includes(C.name),class:"mr-3 cb-white-border",size:"20px",color:C.required?"gray-400":"blue-600",disable:C.required,onClick:T=>d(C.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",dk,o.toDisplayString(C.label),1)],8,uk))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:ak}]]),_k={key:0,class:"text-red-900 ml-1 text-xs bottom-1 relative"},st=o.defineComponent({__name:"FieldLabel",props:{field:{},label:{},showName:{type:Boolean},required:{type:Boolean}},setup(t){const e=t,n=o.computed(()=>{var i;return e.label||((i=e.field)==null?void 0:i.label)}),r=o.computed(()=>{var i,l;return((i=e.field)==null?void 0:i.required_group)||(e.required||(l=e.field)!=null&&l.required?"*":"")});return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var s;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),i.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((s=i.field)==null?void 0:s.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",_k,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}}),El={__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(st),{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"])}}},mk={for:"first_name",class:"form-label"},pk={class:"mt-1"},vl={__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",mk,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",pk,[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"])])])}}},hk={__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(vl),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16,["name","model-value"]))}},gk={key:0,class:"font-bold text-xs mb-2"},yk={class:"flex items-center cursor-pointer"},bk={class:"font-bold ml-3 hover:text-blue-600"},Bl={__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?tt(Rr(r.modelValue||"0000-00-00")):null),l=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>l.value=a);function s(){n("update:model-value",l.value)}return(a,c)=>{const u=o.resolveComponent("QDate"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",gk,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",yk,[o.createVNode(o.unref(vu),{class:"w-5 text-blue-600"}),o.createElementVNode("div",bk,[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>l.value=f),s]},null,8,["modelValue"])]),_:1})])}}},xk={class:"mb-2"},kk={class:"flex items-center cursor-pointer"},wk={class:"font-bold ml-3 hover:text-blue-600"},Il={__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:tt(Ko(a.value.from||"0000-00-00")),to:tt(Ko(a.value.to||"9999-12-31"))}:{from:tt(Rr(a.value.from||"0000-00-00")),to:tt(Rr(a.value.to||"9999-12-31"))}:{from:null,to:null}),l=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,u=>l.value=s(u));function s(u){return u!=null&&u.from&&(u!=null&&u.to)?tt(u.from)===tt(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof l.value=="string"?u={from:l.value,to:l.value}:l.value&&(u={from:l.value.from,to:l.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=o.resolveComponent("QDate"),_=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",xk,[o.createVNode(o.unref(st),{label:t.label},null,8,["label"])]),t.inline?(o.openBlock(),o.createBlock(f,{key:0,modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>l.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",kk,[o.createVNode(o.unref(vu),{class:"w-5 text-blue-600"}),o.createElementVNode("div",wk,[a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value.from)+" - "+o.toDisplayString(i.value.to),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>l.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},Sk={class:"flex items-center justify-center"},Ck={key:0,class:"flex-grow"},Nl={__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:()=>Jo(Xo(r.modelValue)),set(l){const s=l?Jo(ka(l)):null;(s||r.nullable)&&n("update:modelValue",s)}});return(l,s)=>{const a=o.resolveComponent("QBtn"),c=o.resolveComponent("QDate"),u=o.resolveComponent("QTime"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",Sk,[t.nullable?(o.openBlock(),o.createElementBlock("div",Ck,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:s[0]||(s[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:s[1]||(s[1]=f=>l.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:s[2]||(s[2]=f=>l.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Tk={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.ref(r.modelValue);function s(){n("update:model-value",l.value),i.value=!1}return(a,c)=>{const u=o.resolveComponent("QPopupProxy"),d=o.resolveComponent("QIcon"),f=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{"model-value":o.unref(kn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>i.value=!0)},{append:o.withCtx(()=>[o.createVNode(d,{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value=_)},{default:o.withCtx(()=>[o.createVNode(o.unref(Nl),{modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=_=>l.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:s},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Ek={__name:"EditableDiv",props:{modelValue:{type:String,required:!0},debounceDelay:{type:Number,default:500}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.modelValue),l=zn(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function s(a){i.value=a.target.innerText,l()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:s},o.toDisplayString(i.value),33))}},vk={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},Bk=[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 Ik(t,e){return o.openBlock(),o.createElementBlock("svg",vk,[...Bk])}const Nk={render:Ik},Fk={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},Dk=[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 Ok(t,e){return o.openBlock(),o.createElementBlock("svg",Fk,[...Dk])}const $k={render:Ok},Ak=["contenteditable"],Pk={key:0},Mk=_t(o.defineComponent({__name:"EditOnClickTextField",props:o.mergeModels({class:{},editingClass:{},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 l(){r.readonly||(i.value=!0,o.nextTick(()=>{var s;(s=e.value)==null||s.focus()}))}return(s,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":s.readonly,"cursor-pointer":!i.value&&!s.readonly}]),onClick:l},[o.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!s.readonly&&i.value,class:o.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[s.editingClass]:i.value}]),onInput:a[0]||(a[0]=u=>n.value=u.target.innerText)},o.toDisplayString(n.value),43,Ak),s.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Pk,[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(Nk),{class:"w-4"})]),_:1})):(o.openBlock(),o.createBlock(c,{key:1,class:"edit-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref($k),{class:"w-4"})]),_:1}))]))],2)}}}),[["__scopeId","data-v-92dfa3ca"]]),Vk=["accept","capture"],Lk={__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:s});const r=n,i=t,l=o.ref(null);function s(){l.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new ro(c).onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});i.geolocation&&await u.resolveLocation(i.locationWaitMessage),u.upload()}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(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(L2),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:l,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,Vk)]),_:3},16))}},Rk={class:"inline-block"},Uk={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},zk={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(i){n("update:model-value",i.value),n("save",i.value),i.set()}return(i,l)=>{const s=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",Rk,[o.createElementVNode("div",Uk,[o.createTextVNode(o.toDisplayString(o.unref(kn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(mu),{class:"w-4 font-bold ml-2 text-gray-400"}),o.createVNode(s,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:o.withCtx(a=>[o.createVNode(o.unref(Nl),{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"])])])}}},yr={__name:"NumberField",props:{modelValue:{type:[String,Number],default:""},precision:{type:Number,default:2},label:{type:String,default:void 0},field:{type:Object,default:null},inputClass:{type:[String,Object],default:""},delay:{type:Number,default:1e3},hidePrependLabel:Boolean,currency:Boolean,showName:Boolean},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));const l=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function s(u){var _;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((_=(""+u).split(".")[1])==null?void 0:_.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Ct(u,f)}const a=zn(u=>n("update",u),r.delay);function c(u){let d="";if(u.match(/[^\d.,$]/)){const f=i.value;return i.value+=" ",o.nextTick(()=>i.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=Number(u),i.value=s(d)),d=d===""?void 0:d,n("update:model-value",d),a(d)}return(u,d)=>{const f=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(f,{class:o.normalizeClass(["dx-number-field max-w-full",{"dx-no-prepend-label":t.hidePrependLabel,"dx-prepend-label":!t.hidePrependLabel}]),"model-value":i.value,"data-testid":"number-field-"+l.value.id,placeholder:l.value.placeholder,outlined:"",dense:"",inputmode:"numeric","input-class":t.inputClass,"onUpdate:modelValue":c},{prepend:o.withCtx(()=>[o.createVNode(o.unref(st),{field:l.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["class","model-value","data-testid","placeholder","input-class"])}}},lf={__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(yr),{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"]))}},qk={class:"text-xs font-bold"},jk={__name:"LabelValueBlock",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",qk,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)]))}},Gk={class:"max-w-[50em] flex items-stretch justify-start"},Hk={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"},Zk=o.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),Wk={key:1,class:"p-1"},sf=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:l,onFilesSelected:s,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=uu();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((..._)=>o.unref(l)&&o.unref(l)(..._),["prevent"]))},[o.createVNode(o.unref(st),{field:d.field,label:d.label,"show-name":d.showName,class:"text-sm font-semibold"},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]=(..._)=>o.unref(s)&&o.unref(s)(..._))},null,544)):o.createCommentVNode("",!0),o.createElementVNode("div",Gk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(rr),{key:"file-upload-"+_.id,class:o.normalizeClass(["w-32 h-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),file:_,"related-files":o.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:m=>o.unref(u)(_)},null,8,["class","file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("div",Hk,[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]=_=>d.$refs.file.click())},[o.createElementVNode("div",null,[o.createVNode(o.unref(Di),{class:"w-10 m-auto"}),Zk])]),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]=(..._)=>o.unref(c)&&o.unref(c)(..._))},[o.createVNode(o.unref(lo),{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",Wk," -- ")):o.createCommentVNode("",!0)])],34))}}),br=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),l=o.ref(null),s=o.ref(!1),a=o.computed(()=>{let x=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(x=[{label:r.placeholder,value:null},...r.options]),x=x.map(g=>{let S=o.isRef(g)?g.value:g;return{label:m(S),value:p(S),selectionLabel:h(S)}}),x}),c=o.computed(()=>l.value&&!r.filterFn?a.value.filter(x=>{var g;return x.label.toLocaleLowerCase().indexOf((g=l.value)==null?void 0:g.toLowerCase())>-1}):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(g=>g===null?"__null__":g)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let x=u.value;return r.multiple||(x=x||x===0?[x]:[]),a.value.filter(g=>{var S;return x.includes(g.value)||x.map(E=>typeof E=="object"&&E.id).includes((S=g.value)==null?void 0:S.id)})}),f=o.computed(()=>r.filterable&&s.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=o.computed(()=>d.value.slice(0,r.chipLimit));function m(x){return typeof x=="string"?x:typeof r.optionLabel=="string"?x[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(x):x==null?void 0:x.label}function h(x){return typeof x=="string"?x:typeof r.selectionLabel=="string"?x[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(x):(x==null?void 0:x.selectionLabel)||(x==null?void 0:x.label)}function p(x){if(!x||typeof x=="string")return x;let g=x.value;return typeof r.optionValue=="string"?g=x[r.optionValue]:typeof r.optionValue=="function"&&(g=r.optionValue(x)),g===null?"__null__":g}function y(x){Array.isArray(x)&&(x=x.map(g=>g==="__null__"?null:g)),x=x==="__null__"?null:x,n("update",x),n("update:model-value",x)}const k=o.ref(!1);async function w(x,g){if(!r.filterFn)l.value=x,await o.nextTick(g);else{if(g(),k.value===!1)return;x!==null&&x!==l.value&&(l.value=x,r.filterFn&&await r.filterFn(x))}}function C(){n("update:model-value",void 0),n("update",void 0)}function T(){s.value=!0,k.value=!1,o.nextTick(()=>{k.value=!0,i.value.focus()})}function v(){s.value=!1,k.value=!1}return(x,g)=>{const S=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[x.label?(o.openBlock(),o.createBlock(o.unref(st),{key:0,label:x.label,class:"mb-1 block"},null,8,["label"])):o.createCommentVNode("",!0),o.createVNode(o.unref(J.QSelect),o.mergeProps({ref_key:"selectField",ref:i},x.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":x.filterable,"hide-selected":x.filterable&&s.value&&!x.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!s.value,[x.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:w,onClear:C,onPopupShow:T,onPopupHide:v,"onUpdate:modelValue":y}),{append:o.withCtx(()=>[o.createVNode(o.unref(I2),{class:o.normalizeClass(["w-4 transition",s.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[x.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":x.chipLimit===1,[x.selectionClass]:!0}])},[_.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,E=>(o.openBlock(),o.createBlock(S,{key:"selected-"+E.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(S,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-_.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(x.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(x.selectionClass)},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),af=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(Ct)(e.length))+" / "+o.toDisplayString(o.unref(Ct)(e.maxLength))+" characters ",3)):o.createCommentVNode("",!0)}}),So=o.defineComponent({__name:"TextField",props:{modelValue:{default:""},field:{default:null},type:{default:"text"},label:{default:""},labelClass:{default:""},parentClass:{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)=>{var i,l,s,a;const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(st),{field:e.field,label:e.label,"show-name":e.showName,class:o.normalizeClass([e.labelClass,"mb-1 block"]),value:e.readonly?e.modelValue:""},null,8,["field","label","show-name","class","value"]),e.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(r,{placeholder:(i=e.field)==null?void 0:i.placeholder,outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,class:o.normalizeClass(e.parentClass),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax||(l=e.field)==null?void 0:l.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=o.withKeys(c=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=c=>e.$emit("update:model-value",c))},null,8,["placeholder","readonly","autogrow","disable","label-slot","input-class","class","type","model-value","maxlength","debounce"]),o.createVNode(o.unref(af),{length:((s=e.modelValue)==null?void 0:s.length)||0,"max-length":(a=e.field)==null?void 0:a.maxLength},null,8,["length","max-length"])],64))])}}}),cf={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.field.defaultOption),l=o.computed(()=>r.modelValue&&r.modelValue[i.value]),s=o.ref(c());function a(){var u;s.value=((u=s.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",s.value?{[i.value]:s.value.split(",")}:void 0)}function c(){var u;return Array.isArray(l.value)?(u=l.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{s.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(br),{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(So),{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>s.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},Yk={__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(vl),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16))}},Qk={key:0,class:"font-bold text-xs mb-2"},Xk={class:"flex items-center flex-nowrap cursor-pointer"},Kk={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},Co={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.currency?"$":r.percent?"%":""),l=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),s=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?N2:r.percent?wu:P2)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(_){const m=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*m:void 0,to:_!=null&&_.to?_.to*m:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?ei(_):r.percent?wa(_,{multiplier:1,maximumFractionDigits:2}):Ct(_)}const f=zn(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let m={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",m)}},r.debounce);return(_,m)=>{const h=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",Qk,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Xk,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",Kk,[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(h,null,{default:o.withCtx(()=>[o.createVNode(o.unref(yr),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=p=>c.value.from=p),o.unref(f)],field:l.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(yr),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=p=>c.value.to=p),o.unref(f)],class:"mt-2",field:s.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Jk=["data-dusk","onClick"],ew={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function s(d){return d.value===void 0?d:d.value}function a(d){return l.value.find(f=>f.value===d).label}function c(d){const f=s(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=s(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(m=>m!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=o.resolveComponent("QCheckbox"),m=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref($i),{show:i.value,"onUpdate:show":f[0]||(f[0]=h=>i.value=h),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,h=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+h.value,"data-dusk":"drawer-opt-"+h.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:p=>u(h)},[o.createVNode(_,{"model-value":c(h),class:"mr-2",onClick:o.withModifiers(p=>u(h),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:h},()=>[o.createTextVNode(o.toDisplayString(h.label),1)])],8,Jk))),128))]),_:3},8,["show","title"]),o.createVNode(m,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=h=>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)])}}},tw={key:0,class:"text-zinc-500"},nw={key:1},rw={class:"text-xs text-zinc-500"},uf=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 l=o.ref(i()),s=o.ref(r.modelValue||[]);function a(u){s.value.includes(u.id)?s.value=qn(s.value,u.id):s.value.push(u.id),n("update:model-value",s.value.length>0?s.value:void 0)}function c(){s.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{l.value=i(),s.value=u||[]}),(u,d)=>{const f=o.resolveComponent("QCheckbox");return o.openBlock(),o.createElementBlock("div",null,[!u.loading&&!u.options.length?(o.openBlock(),o.createElementBlock("div",tw," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(br),{modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>l.value=_),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":_=>_,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),l.value?(o.openBlock(),o.createElementBlock("div",nw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":s.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":m=>a(_)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(_.label),1),o.createElementVNode("div",rw,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}}),ow={key:0,class:"text-sm mt-2"},iw={key:2,class:"py-1"},df={__name:"SingleFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFileSelected:s,uploadedFile:a,clearUploadedFile:c}=fu();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(l)&&o.unref(l)(...f),["prevent"]))},[o.createVNode(o.unref(st),{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",ow,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(s)&&o.unref(s)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(rr),{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",iw," -- ")):o.createCommentVNode("",!0)],34))}},lw={class:"dx-slider-number-field"},sw=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,l)=>{const s=o.resolveComponent("QSlider");return o.openBlock(),o.createElementBlock("div",lw,[o.createVNode(o.unref(st),{label:i.label,field:i.field},null,8,["label","field"]),o.createVNode(s,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 aw=["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"],cw=function(t){return aw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},uw=function(t,e,n){Object.keys(e).filter(cw).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(l){return i(l,n)}))})},dw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,l=Array.isArray(i)?i.join(" "):i;o.watch(r,function(s,a){n&&typeof s=="string"&&s!==a&&s!==n.getContent({format:t.outputFormat})&&n.setContent(s)}),n.on(l||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},fw=function(t,e,n,r,i,l){r.setContent(l()),n.attrs["onUpdate:modelValue"]&&dw(e,n,r,i),uw(t,n.attrs,r)},ff=0,_f=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return ff++,t+"_"+n+ff+String(e)},_w=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},mf=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},mw=function(t,e){return mf(t).concat(mf(e))},pw=function(t){return t==null},pf=function(){return{listeners:[],scriptId:_f("tiny-script"),scriptLoaded:!1}},hw=function(){var t=pf(),e=function(i,l,s,a){var c=l.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=s;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),l.head&&l.head.appendChild(c)},n=function(i,l,s){t.scriptLoaded?s():(t.listeners.push(s),i.getElementById(t.scriptId)||e(t.scriptId,i,l,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=pf()};return{load:n,reinitialize:r}},gw=hw(),yw=function(){return typeof window<"u"?window:global},cn=function(){var t=yw();return t&&t.tinymce?t.tinymce:null},bw={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"}}},at=function(){return at=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},at.apply(this,arguments)},xw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},kw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},Fl={selector:void 0,target:void 0},ww=o.defineComponent({props:bw,setup:function(t,e){var n=t.init?at(at({},t.init),Fl):at({},Fl),r=o.toRefs(t),i=r.disabled,l=r.modelValue,s=r.tagName,a=o.ref(null),c=null,u=t.id||_f("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",h="",p=function(w){return f?function(){return l!=null&&l.value?l.value:""}:function(){return w?m:h}},y=function(){var w=p(_),C=at(at({},n),{readonly:t.disabled,target:a.value,plugins:mw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(T){c=T,T.on("init",function(v){return fw(v,t,e,T,l,w)}),typeof n.setup=="function"&&n.setup(T)}});_w(a.value)&&(a.value.style.visibility=""),cn().init(C),_=!1};o.watch(i,function(w){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(w?"readonly":"design"):c.setMode(w?"readonly":"design"))}),o.watch(s,function(w){var C;f||(h=c.getContent()),(C=cn())===null||C===void 0||C.remove(c),o.nextTick(function(){return y()})}),o.onMounted(function(){if(cn()!==null)y();else if(a.value&&a.value.ownerDocument){var w=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",T=pw(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(w,"/tinymce.min.js"):t.tinymceScriptSrc;gw.load(a.value.ownerDocument,T,y)}}),o.onBeforeUnmount(function(){cn()!==null&&cn().remove(c)}),d||(o.onActivated(function(){_||y()}),o.onDeactivated(function(){var w;f||(h=c.getContent()),(w=cn())===null||w===void 0||w.remove(c)}));var k=function(w){var C;h=c.getContent(),(C=cn())===null||C===void 0||C.remove(c),n=at(at(at({},n),w),Fl),o.nextTick(function(){return y()})};return e.expose({rerender:k,getEditor:function(){return c}}),function(){return d?xw(o.h,u,a,t.tagName):kw(o.h,u,a)}}});const Sw=["innerHTML"],hf={__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(st),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-700 block mb-2"},null,8,["field","show-name"])),t.readonly?(o.openBlock(),o.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Sw)):(o.openBlock(),o.createBlock(o.unref(ww),{key:2,class:"mt-2","api-key":o.unref(ue).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"]))]))}},Cw={key:1,class:"mt-2"},Tw={class:"text-xs font-bold"},Ew=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),Dl=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(l){let s=l||void 0;switch(r.field.type){case"multi-select":s=l&&l.length>0?l:void 0;break;case"single-select":case"boolean":s=l===null?void 0:l;break}n("update:model-value",s)}return(l,s)=>{var a;return o.openBlock(),o.createElementBlock("div",null,[l.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=l.field.options)==null?void 0:a.length)>0||l.loading?(o.openBlock(),o.createBlock(o.unref(br),{key:0,"model-value":l.modelValue,options:l.field.options,clearable:l.field.clearable===void 0?!0:l.field.clearable,multiple:"",loading:l.loading,"chip-limit":1,filterable:"",placeholder:l.field.placeholder,label:l.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",Cw,[o.createElementVNode("div",Tw,o.toDisplayString(l.field.label),1),Ew]))],64)):l.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(br),{key:1,"model-value":l.modelValue,options:l.field.options,clearable:l.field.clearable===void 0?!0:l.field.clearable,placeholder:l.field.placeholder,loading:l.loading,label:l.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","placeholder","loading","label"])):l.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(Bl),{key:2,"model-value":l.modelValue,label:l.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(Il),{key:3,"model-value":l.modelValue,label:l.field.label,inline:!!l.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):l.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:4,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:5,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:6,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(El),{key:7,field:l.field,"model-value":l.modelValue,class:"mt-2","toggle-indeterminate":l.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):l.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(cf),{key:8,"model-value":l.modelValue,field:l.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):l.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(uf),{key:9,"model-value":l.modelValue,options:l.field.options,loading:l.loading,label:l.field.label,placeholder:l.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(l.field.name)+'": Unknown filter type '+o.toDisplayString(l.field.type),1)],64))])}}}),vw={class:"flex items-center flex-nowrap flex-grow"},Bw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},gf={__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",vw,[o.createElementVNode("div",Bw,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})}}},Iw={class:"px-4 py-2 max-w-full"},yf={__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 s={};for(const a of r.filters)s[a.name]=a.fields.filter(c=>r.activeFilter[c.name]!==void 0).length;return s});function l(s,a){let c={[s.name]:a};s.filterBy&&(c=s.filterBy(a)),n("update:filter",{...r.activeFilter,...c})}return(s,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Iw,[(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,_=>(o.openBlock(),o.createBlock(o.unref(Dl),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.activeFilter):t.activeFilter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(gf),{key:1,name:d.name,count:i.value[d.name]},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Dl),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.activeFilter):t.activeFilter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},bf=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(Du),{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(yf),{"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"]))}}),Nw={class:"flex-grow"},xf=_t({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=o.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,i)=>{const l=o.resolveComponent("QBadge"),s=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[o.createElementVNode("div",Nw,[o.createVNode(s,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(xu),{class:"w-5 mr-2"}),o.createVNode(l,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Fw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Dw={class:"flex-grow"},Ow={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},$w={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(l,s)=>(o.openBlock(),o.createElementBlock("div",Fw,[o.createVNode(o.unref(xf),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":s[0]||(s[0]=a=>l.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Dw,[o.renderSlot(l.$slots,"default")]),l.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Ow,[l.$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(l.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},Aw={class:"dx-rendered-form"},Pw={key:0,class:"mb-4"},Mw={class:"flex flex-nowrap items-center text-sm w-full"},Vw={key:0,class:"variation-missing-icon pl-1"},Lw={class:"flex-grow"},Rw={key:1,class:"flex flex-nowrap items-center mr-2"},Uw=["onClick"],zw=["onClick"],qw=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:null}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,i={BOOLEAN:El,DATE:Bl,DATE_RANGE:Il,INTEGER:lf,NUMBER:yr,TEXT:So,SINGLE_FILE:df,MULTI_FILE:sf,WYSIWYG:hf},l=n.form.fields.map(g=>({placeholder:`Enter ${g.label}`,...g,component:g.component||i[g.type],default:g.type==="BOOLEAN"?!1:""})),s=o.computed(()=>n.values?Array.isArray(n.values)?n.values:Object.entries(n.values).map(([g,S])=>({name:g,value:S,variation:""})):[]);function a(g){return{modelValue:p(g.name),label:g.label,clearable:g.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const c=o.computed(()=>{const g=[...new Set(s.value.map(S=>S.variation))].sort();return g.length===0&&g.push(""),g}),u=o.ref(c.value[0]||""),d=o.ref(""),f=o.ref(!1),_=o.ref(""),m=o.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&c.value.length<n.form.variations);function h(g,S=void 0){if(s.value)return s.value.find(E=>E.variation===(S!==void 0?S:u.value)&&E.name===g)}function p(g){var S;return(S=h(g))==null?void 0:S.value}function y(g,S){const E=h(g),F={name:g,variation:u.value||"",value:S===void 0?n.emptyValue:S},L=Eo(s.value,E,F,!0);T(L)}function k(g){return n.form.fields.map(S=>({variation:g,name:S.name,value:S.type==="BOOLEAN"?!1:null}))}function w(){if(n.saving)return;let g=[...s.value];g.length===0&&(g=k(""));const S=c.value[c.value.length-1],E=Ul(S||"1"),F=k(E);T([...g,...F]),u.value=E}function C(){if(!d.value)return;if(c.value.includes(d.value)){Ve.error("Variation name already exists");return}const g=s.value.map(S=>S.variation===f.value?{...S,variation:d.value}:S);T(g),u.value=d.value,f.value=!1,d.value=""}function T(g){let S=g;Array.isArray(n.values)||(S=g.reduce((E,F)=>(E[F.name]=F.value,E),{})),r("update:values",S)}function v(g){if(!g)return;const S=s.value.filter(E=>E.variation!==g);T(S),u.value===g&&(u.value=c.value[0]),_.value=""}function x(g){const S={};return n.form.fields.filter(E=>E.required||E.required_group).every(E=>{const F=h(E.name,g),L=!!F&&F.value!==null;return E.required_group?S[E.required_group]?!0:S[E.required_group]=L:L})}return(g,S)=>{const E=o.resolveComponent("QTooltip"),F=o.resolveComponent("QTab"),L=o.resolveComponent("QSpinnerBall"),q=o.resolveComponent("QTabs"),j=o.resolveComponent("QSpinnerPie");return o.openBlock(),o.createElementBlock("div",Aw,[g.form.variations>1?(o.openBlock(),o.createElementBlock("div",Pw,[o.createVNode(q,{modelValue:u.value,"onUpdate:modelValue":S[0]||(S[0]=O=>u.value=O),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(O,K)=>(o.openBlock(),o.createBlock(F,{key:O,name:O,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Mw,[x(O)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Vw,[o.createVNode(o.unref(_u),{class:"text-red-400 w-4"}),o.createVNode(E,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",Lw,o.toDisplayString(O||"1"),1),!g.disable&&!g.readonly&&g.canModifyVariations?(o.openBlock(),o.createElementBlock("div",Rw,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(f.value=O)&&(d.value=O)},[o.createVNode(o.unref(mu),{class:"w-3 text-blue-900"})],8,Uw),K>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:Y=>_.value=O},[o.createVNode(o.unref(lo),{class:"w-3 text-red-900"})],8,zw)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(o.openBlock(),o.createBlock(F,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:w},{default:o.withCtx(()=>[g.saving?(o.openBlock(),o.createBlock(L,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(O,K)=>(o.openBlock(),o.createElementBlock("div",{key:O.id,class:o.normalizeClass({"mt-4":K>0,[g.fieldClass]:!0})},[O.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:O.vnode,field:O,props:a(O),"onUpdate:modelValue":Y=>y(O.name,Y)},null,8,["vnode","field","props","onUpdate:modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(O.component),{key:O.name+"-"+u.value,"model-value":p(O.name),field:O,label:O.label||void 0,"no-label":g.noLabel,"show-name":g.showName,clearable:O.clearable||g.clearable,disable:g.disable,readonly:g.readonly,"onUpdate:modelValue":Y=>y(O.name,Y)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2))),128)),g.savedAt?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([g.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[g.saving?o.renderSlot(g.$slots,"saving",{key:0},()=>[o.createTextVNode(" Saving... "),o.createVNode(j,{class:"ml-2"})]):o.renderSlot(g.$slots,"saved",{key:1},()=>[o.createTextVNode(" Saved at "+o.toDisplayString(o.unref(Ur)(g.savedAt,{format:"M/d/yy h:mm:ssa"})),1)])],2)):o.createCommentVNode("",!0),f.value!==!1?(o.openBlock(),o.createBlock(o.unref(In),{key:2,title:"Change variation name",onConfirm:C,onClose:S[2]||(S[2]=O=>f.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(So),{modelValue:d.value,"onUpdate:modelValue":S[1]||(S[1]=O=>d.value=O),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),_.value?(o.openBlock(),o.createBlock(o.unref(In),{key:3,title:`Remove variation ${_.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:S[3]||(S[3]=O=>v(_.value)),onClose:S[4]||(S[4]=O=>_.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}}),kf=o.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},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,l=>(o.openBlock(),o.createBlock(r,{key:l.name,name:l.name},{default:o.withCtx(()=>[l.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:l.vnode},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),wf=_t(o.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},panels:{}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(r,{class:o.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",e.cls["panel-tabs"]]),"model-value":e.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.panels,i=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.enabled===void 0||i.enabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.tabVnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:i.name,vnode:i.tabVnode(e.modelValue),"is-active":e.modelValue===i.name,name:i.name,label:i.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(J.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_d1yoe_1",visible:"_visible_d1yoe_1",collapse:"_collapse_d1yoe_1",static:"_static_d1yoe_1",absolute:"_absolute_d1yoe_1",relative:"_relative_d1yoe_1",sticky:"_sticky_d1yoe_1","bottom-1":"_bottom-1_d1yoe_1","left-0":"_left-0_d1yoe_1","right-0":"_right-0_d1yoe_1","right-1":"_right-1_d1yoe_1","right-4":"_right-4_d1yoe_1","top-0":"_top-0_d1yoe_1","top-1":"_top-1_d1yoe_1","top-4":"_top-4_d1yoe_1","m-2":"_m-2_d1yoe_1","m-4":"_m-4_d1yoe_1","m-auto":"_m-auto_d1yoe_1","mx-1":"_mx-1_d1yoe_1","mx-4":"_mx-4_d1yoe_1","mx-auto":"_mx-auto_d1yoe_1","my-2":"_my-2_d1yoe_1","!mr-1":"_!mr-1_d1yoe_1","mb-1":"_mb-1_d1yoe_1","mb-2":"_mb-2_d1yoe_1","mb-4":"_mb-4_d1yoe_1","ml-1":"_ml-1_d1yoe_1","ml-2":"_ml-2_d1yoe_1","ml-2.5":"_ml-2.5_d1yoe_1","ml-3":"_ml-3_d1yoe_1","ml-4":"_ml-4_d1yoe_1","ml-5":"_ml-5_d1yoe_1","ml-[-.2em]":"_ml-[-.2em]_d1yoe_1","mr-1":"_mr-1_d1yoe_1","mr-2":"_mr-2_d1yoe_1","mr-3":"_mr-3_d1yoe_1","mr-4":"_mr-4_d1yoe_1","mt-1":"_mt-1_d1yoe_1","mt-2":"_mt-2_d1yoe_1","mt-3":"_mt-3_d1yoe_1","mt-4":"_mt-4_d1yoe_1",block:"_block_d1yoe_1","inline-block":"_inline-block_d1yoe_1",inline:"_inline_d1yoe_1",flex:"_flex_d1yoe_1",table:"_table_d1yoe_1",hidden:"_hidden_d1yoe_1","h-10":"_h-10_d1yoe_1","h-32":"_h-32_d1yoe_1","h-4":"_h-4_d1yoe_1","h-5":"_h-5_d1yoe_1","h-8":"_h-8_d1yoe_1","h-full":"_h-full_d1yoe_1","max-h-full":"_max-h-full_d1yoe_1","w-10":"_w-10_d1yoe_1","w-16":"_w-16_d1yoe_1","w-2/5":"_w-2/5_d1yoe_1","w-24":"_w-24_d1yoe_1","w-3":"_w-3_d1yoe_1","w-3/5":"_w-3/5_d1yoe_1","w-32":"_w-32_d1yoe_1","w-4":"_w-4_d1yoe_1","w-48":"_w-48_d1yoe_1","w-5":"_w-5_d1yoe_1","w-6":"_w-6_d1yoe_1","w-7":"_w-7_d1yoe_1","w-72":"_w-72_d1yoe_1","w-8":"_w-8_d1yoe_1","w-96":"_w-96_d1yoe_1","w-[13.5rem]":"_w-[13.5rem]_d1yoe_1","w-[35.5rem]":"_w-[35.5rem]_d1yoe_1","w-[6.5rem]":"_w-[6.5rem]_d1yoe_1","w-full":"_w-full_d1yoe_1","!min-w-0":"_!min-w-0_d1yoe_1","max-w-[50em]":"_max-w-[50em]_d1yoe_1","max-w-full":"_max-w-full_d1yoe_1","flex-shrink":"_flex-shrink_d1yoe_1","flex-shrink-0":"_flex-shrink-0_d1yoe_1","flex-grow":"_flex-grow_d1yoe_1",grow:"_grow_d1yoe_1","rotate-180":"_rotate-180_d1yoe_1",transform:"_transform_d1yoe_1","cursor-ew-resize":"_cursor-ew-resize_d1yoe_1","cursor-move":"_cursor-move_d1yoe_1","cursor-not-allowed":"_cursor-not-allowed_d1yoe_1","cursor-ns-resize":"_cursor-ns-resize_d1yoe_1","cursor-pointer":"_cursor-pointer_d1yoe_1",resize:"_resize_d1yoe_1","flex-col":"_flex-col_d1yoe_1","flex-nowrap":"_flex-nowrap_d1yoe_1","items-center":"_items-center_d1yoe_1","items-stretch":"_items-stretch_d1yoe_1","justify-start":"_justify-start_d1yoe_1","justify-end":"_justify-end_d1yoe_1","justify-center":"_justify-center_d1yoe_1","justify-between":"_justify-between_d1yoe_1","gap-y-0":"_gap-y-0_d1yoe_1","gap-y-1":"_gap-y-1_d1yoe_1","space-x-1":"_space-x-1_d1yoe_1","space-x-2":"_space-x-2_d1yoe_1","self-center":"_self-center_d1yoe_1","overflow-auto":"_overflow-auto_d1yoe_1","overflow-hidden":"_overflow-hidden_d1yoe_1","overflow-y-auto":"_overflow-y-auto_d1yoe_70","overflow-x-hidden":"_overflow-x-hidden_d1yoe_1","scroll-smooth":"_scroll-smooth_d1yoe_1","overflow-ellipsis":"_overflow-ellipsis_d1yoe_1","whitespace-nowrap":"_whitespace-nowrap_d1yoe_1",rounded:"_rounded_d1yoe_1","rounded-2xl":"_rounded-2xl_d1yoe_1","rounded-lg":"_rounded-lg_d1yoe_1","rounded-md":"_rounded-md_d1yoe_1","!rounded-l-none":"_!rounded-l-none_d1yoe_1","!rounded-r-none":"_!rounded-r-none_d1yoe_1","rounded-b-lg":"_rounded-b-lg_d1yoe_1","rounded-t-lg":"_rounded-t-lg_d1yoe_1","rounded-t-md":"_rounded-t-md_d1yoe_1","!border-0":"_!border-0_d1yoe_1",border:"_border_d1yoe_1","border-b":"_border-b_d1yoe_1","border-l":"_border-l_d1yoe_1","border-l-0":"_border-l-0_d1yoe_1","border-r":"_border-r_d1yoe_1","border-solid":"_border-solid_d1yoe_1","border-dashed":"_border-dashed_d1yoe_1","border-none":"_border-none_d1yoe_1","border-blue-600":"_border-blue-600_d1yoe_1","border-blue-700":"_border-blue-700_d1yoe_1","border-gray-200":"_border-gray-200_d1yoe_1","border-gray-300":"_border-gray-300_d1yoe_1","border-slate-200":"_border-slate-200_d1yoe_1","bg-black":"_bg-black_d1yoe_1","bg-blue-200":"_bg-blue-200_d1yoe_1","bg-blue-600":"_bg-blue-600_d1yoe_1","bg-emerald-200":"_bg-emerald-200_d1yoe_1","bg-gray-100":"_bg-gray-100_d1yoe_1","bg-gray-200":"_bg-gray-200_d1yoe_1","bg-gray-400":"_bg-gray-400_d1yoe_1","bg-gray-500":"_bg-gray-500_d1yoe_1","bg-green-200":"_bg-green-200_d1yoe_1","bg-green-300":"_bg-green-300_d1yoe_1","bg-red-200":"_bg-red-200_d1yoe_1","bg-red-300":"_bg-red-300_d1yoe_1","bg-red-900":"_bg-red-900_d1yoe_1","bg-slate-100":"_bg-slate-100_d1yoe_1","bg-slate-500":"_bg-slate-500_d1yoe_1","bg-transparent":"_bg-transparent_d1yoe_1","bg-white":"_bg-white_d1yoe_1","bg-yellow-300":"_bg-yellow-300_d1yoe_1","!p-2":"_!p-2_d1yoe_1","p-0":"_p-0_d1yoe_1","p-1":"_p-1_d1yoe_1","p-2":"_p-2_d1yoe_1","p-3":"_p-3_d1yoe_1","p-4":"_p-4_d1yoe_1","!py-0":"_!py-0_d1yoe_1","px-1":"_px-1_d1yoe_1","px-12":"_px-12_d1yoe_1","px-2":"_px-2_d1yoe_1","px-2.5":"_px-2.5_d1yoe_1","px-4":"_px-4_d1yoe_1","px-6":"_px-6_d1yoe_1","px-8":"_px-8_d1yoe_1","py-1":"_py-1_d1yoe_1","py-14":"_py-14_d1yoe_1","py-2":"_py-2_d1yoe_1","py-3":"_py-3_d1yoe_1","py-4":"_py-4_d1yoe_1","py-8":"_py-8_d1yoe_1","pl-1":"_pl-1_d1yoe_1","pl-2":"_pl-2_d1yoe_1","pt-3":"_pt-3_d1yoe_1","text-left":"_text-left_d1yoe_1","text-center":"_text-center_d1yoe_1","text-[1rem]":"_text-[1rem]_d1yoe_1","text-sm":"_text-sm_d1yoe_1","text-xs":"_text-xs_d1yoe_1","font-bold":"_font-bold_d1yoe_1","font-medium":"_font-medium_d1yoe_1","font-semibold":"_font-semibold_d1yoe_1",uppercase:"_uppercase_d1yoe_1","leading-[1.2rem]":"_leading-[1.2rem]_d1yoe_1","!text-green-900":"_!text-green-900_d1yoe_1","!text-red-900":"_!text-red-900_d1yoe_1","!text-white":"_!text-white_d1yoe_1","!text-yellow-900":"_!text-yellow-900_d1yoe_1","text-blue-600":"_text-blue-600_d1yoe_1","text-blue-900":"_text-blue-900_d1yoe_1","text-gray-300":"_text-gray-300_d1yoe_1","text-gray-400":"_text-gray-400_d1yoe_1","text-gray-500":"_text-gray-500_d1yoe_1","text-gray-600":"_text-gray-600_d1yoe_1","text-gray-700":"_text-gray-700_d1yoe_1","text-green-700":"_text-green-700_d1yoe_1","text-red-400":"_text-red-400_d1yoe_1","text-red-800":"_text-red-800_d1yoe_1","text-red-900":"_text-red-900_d1yoe_1","text-slate-500":"_text-slate-500_d1yoe_1","text-white":"_text-white_d1yoe_1","text-yellow-600":"_text-yellow-600_d1yoe_1","text-zinc-500":"_text-zinc-500_d1yoe_1","text-zinc-800":"_text-zinc-800_d1yoe_1","line-through":"_line-through_d1yoe_1","opacity-0":"_opacity-0_d1yoe_1","opacity-20":"_opacity-20_d1yoe_1","opacity-50":"_opacity-50_d1yoe_1","opacity-70":"_opacity-70_d1yoe_1","shadow-none":"_shadow-none_d1yoe_1","outline-none":"_outline-none_d1yoe_1",outline:"_outline_d1yoe_1",filter:"_filter_d1yoe_1",transition:"_transition_d1yoe_1","transition-all":"_transition-all_d1yoe_1","duration-300":"_duration-300_d1yoe_1","danx-app":"_danx-app_d1yoe_4","q-tab":"_q-tab_d1yoe_4","q-table__card":"_q-table__card_d1yoe_7","q-checkbox__inner":"_q-checkbox__inner_d1yoe_11","q-toolbar":"_q-toolbar_d1yoe_14","q-notification__actions":"_q-notification__actions_d1yoe_19","q-date":"_q-date_d1yoe_22","q-date__view":"_q-date__view_d1yoe_25","q-field":"_q-field_d1yoe_28","q-field--auto-height":"_q-field--auto-height_d1yoe_28","q-field__control":"_q-field__control_d1yoe_28","q-field__native":"_q-field__native_d1yoe_31","q-field--labeled":"_q-field--labeled_d1yoe_35","q-field__control-container":"_q-field__control-container_d1yoe_35","q-textarea":"_q-textarea_d1yoe_38","q-field__marginal":"_q-field__marginal_d1yoe_41","q-field__input":"_q-field__input_d1yoe_41","q-field__label":"_q-field__label_d1yoe_41","q-btn":"_q-btn_d1yoe_45","q-item":"_q-item_d1yoe_53","q-tab-panels":"_q-tab-panels_d1yoe_57","q-panel":"_q-panel_d1yoe_61",scroll:"_scroll_d1yoe_64","q-tab-panel":"_q-tab-panel_d1yoe_57","dx-dialog":"_dx-dialog_d1yoe_74","q-card__section--vert":"_q-card__section--vert_d1yoe_74","q-banner":"_q-banner_d1yoe_78",app:"_app_d1yoe_1","main-layout":"_main-layout_d1yoe_1","is-disabled":"_is-disabled_d1yoe_95","disable-all-transitions":"_disable-all-transitions_d1yoe_100","v-enter-active":"_v-enter-active_d1yoe_104","v-leave-active":"_v-leave-active_d1yoe_105","v-enter-from":"_v-enter-from_d1yoe_109","v-leave-to":"_v-leave-to_d1yoe_110","panel-tabs":"_panel-tabs_d1yoe_114","hover:bg-blue-200":"_hover:bg-blue-200_d1yoe_1","hover:bg-gray-200":"_hover:bg-gray-200_d1yoe_1","hover:bg-green-100":"_hover:bg-green-100_d1yoe_1","hover:bg-red-100":"_hover:bg-red-100_d1yoe_1","hover:bg-red-200":"_hover:bg-red-200_d1yoe_1","hover:bg-slate-200":"_hover:bg-slate-200_d1yoe_1","hover:bg-slate-300":"_hover:bg-slate-300_d1yoe_1","hover:text-blue-500":"_hover:text-blue-500_d1yoe_1","hover:text-blue-600":"_hover:text-blue-600_d1yoe_1","hover:opacity-100":"_hover:opacity-100_d1yoe_1","focus:bg-blue-200":"_focus:bg-blue-200_d1yoe_1"}}]]),jw={class:"flex flex-col flex-nowrap h-full"},Gw={class:"dx-panels-drawer-header flex items-center px-6 py-4"},Hw={class:"flex-grow"},Zw={key:0,class:"mr-4"},Ww={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},Yw={class:"flex items-stretch flex-nowrap h-full"},Qw={key:0,class:"border-l overflow-y-auto"},Sf=o.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},activeItem:{default:null},tabsClass:{default:"w-[13.5rem]"},panelsClass:{default:"w-[35.5rem]"},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,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref($i),{position:"right",show:!0,overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":l[3]||(l[3]=a=>i.$emit("close"))},{default:o.withCtx(()=>{var a;return[o.createElementVNode("div",jw,[o.createElementVNode("div",Gw,[o.createElementVNode("div",Hw,[o.renderSlot(i.$slots,"header",{},()=>[o.createElementVNode("h2",null,o.toDisplayString(i.title),1)])]),i.$slots.controls?(o.openBlock(),o.createElementBlock("div",Zw,[o.renderSlot(i.$slots,"controls")])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(s,{class:"dx-close-button",onClick:l[0]||(l[0]=c=>i.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(so),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[(o.openBlock(),o.createBlock(o.unref(wf),{key:"pd-tabs:"+i.activeItem.id,modelValue:n.value,"onUpdate:modelValue":[l[1]||(l[1]=c=>n.value=c),l[2]||(l[2]=c=>i.$emit("update:model-value",c))],class:o.normalizeClass(i.tabsClass),panels:i.panels},null,8,["modelValue","class","panels"])),(o.openBlock(),o.createBlock(o.unref(kf),{key:"pd-panels:"+i.activeItem.id,panels:i.panels,"active-panel":n.value,class:o.normalizeClass(((a=r.value)==null?void 0:a.class)||i.panelsClass)},null,8,["panels","active-panel","class"])),i.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",Qw,[o.renderSlot(i.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]}),_:3})}}}),Xw={class:"flex items-center justify-center text-sm py-14 w-full"},Kw={key:0},Jw={key:1},Cf={__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",Xw,[t.loading?(o.openBlock(),o.createElementBlock("div",Kw,[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",Jw,[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 Tf(t){o.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function Ef(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 vf(t,e=null){const n={},r=du("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(l=>{(!e||e.includes(l))&&(n[l]=i[l])})}return n}const e3={class:"flex flex-nowrap items-center"},t3={class:"relative"},n3={class:"ml-2"},Bf={__name:"TableSummaryRow",props:{loading:Boolean,label:{type:String,default:"Rows"},selectedLabel:{type:String,default:"Selected"},selectedCount:{type:Number,default:0},itemCount:{type:Number,default:0},summary:{type:Object,default:null},columns:{type:Array,required:!0},stickyColspan:{type:Number,default:2}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>e.columns.slice(e.stickyColspan-1));function r(i){const l=e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(o.openBlock(),o.createBlock(o.unref(J.QTr),{class:o.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":t.selectedCount,"is-loading":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(J.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["dx-table-summary-td transition-all",{"has-selection":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",e3,[o.createElementVNode("div",t3,[t.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":t.loading},"flex items-center nowrap"])},[t.selectedCount?(o.openBlock(),o.createBlock(o.unref(Gy),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=s=>i.$emit("clear"))})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(o.unref(Ct)(t.selectedCount||t.itemCount)),1)],2)]),o.createElementVNode("div",n3,o.toDisplayString(t.selectedCount?t.selectedLabel:t.label),1)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:s.name,align:s.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(s)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},If=_t(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]}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=o.ref(null);Tf(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}),l=`column-settings-${e.name}`,s=o.ref(It(l)||{});function a(){Bt(l,s.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($u)),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:"multiple","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(Ef)(f.pagination,r.value)}))},{"no-data":o.withCtx(()=>[o.renderSlot(c.$slots,"empty",{},()=>[o.createVNode(Cf,{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(Bf,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=_=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])):o.createCommentVNode("",!0)]}),"header-cell":o.withCtx(f=>[o.createVNode(o.unref(rf),{modelValue:s.value,"onUpdate:modelValue":[u[1]||(u[1]=_=>s.value=_),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(f=>[(o.openBlock(),o.createBlock(o.unref(Jd),{key:f.key,"row-props":f,settings:s.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","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-715096d4"]]),r3={class:"dx-action-toolbar flex items-center"},o3={class:"flex-grow px-6"},i3={key:0},l3={class:"py-3 px-6 flex items-center flex-nowrap"},Nf=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",r3,[o.createElementVNode("div",o3,[o.renderSlot(e.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("h4",i3,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",l3,[o.renderSlot(e.$slots,"default"),e.refreshButton?(o.openBlock(),o.createBlock(o.unref(hu),{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(pu),{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(Sl),{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")])]))}}),s3={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},a3={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},c3=o.defineComponent({__name:"ActionTableLayout",props:{title:{},refreshButton:{type:Boolean},showFilters:{type:Boolean},controller:{},columns:{},filters:{},panels:{},actions:{},exporter:{type:Function},panelTitleField:{},tableClass:{}},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||""),l=o.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(s,a)=>(o.openBlock(),o.createElementBlock("div",s3,[o.renderSlot(s.$slots,"top"),o.renderSlot(s.$slots,"toolbar",{},()=>{var c;return[o.createVNode(o.unref(Nf),{title:s.title,"refresh-button":s.refreshButton,actions:(c=s.actions)==null?void 0:c.filter(u=>u.batch),"action-target":s.controller.selectedRows.value,exporter:s.controller.exportList,loading:s.controller.isLoadingList.value||s.controller.isLoadingSummary.value,onRefresh:s.controller.refreshAll},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","actions","action-target","exporter","loading","onRefresh"])]}),o.createElementVNode("div",a3,[o.renderSlot(s.$slots,"filters",{},()=>[n.value?(o.openBlock(),o.createBlock(o.unref(bf),{key:0,name:s.controller.name,"show-filters":s.showFilters,filters:s.filters,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":s.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):o.createCommentVNode("",!0)]),o.renderSlot(s.$slots,"default",{},()=>[o.createVNode(o.unref(If),{class:o.normalizeClass(["flex-grow",s.tableClass]),pagination:s.controller.pagination.value,"selected-rows":s.controller.selectedRows.value,label:s.controller.label,name:s.controller.name,summary:s.controller.summary.value,"loading-list":s.controller.isLoadingList.value,"loading-summary":s.controller.isLoadingSummary.value,"paged-items":s.controller.pagedItems.value,columns:s.columns,"onUpdate:selectedRows":s.controller.setSelectedRows,"onUpdate:pagination":s.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","summary","loading-list","loading-summary","paged-items","columns","onUpdate:selectedRows","onUpdate:pagination"])]),o.renderSlot(s.$slots,"panels",{},()=>[r.value&&s.panels?(o.openBlock(),o.createBlock(o.unref(Sf),{key:0,title:l.value,"model-value":i.value,"active-item":r.value,panels:s.panels,"onUpdate:modelValue":a[0]||(a[0]=c=>s.controller.activatePanel(r.value,c)),onClose:a[1]||(a[1]=c=>s.controller.setActiveItem(null))},{controls:o.withCtx(()=>[o.createVNode(o.unref(Eu),{"is-loading":s.controller.isLoadingList.value,onNext:s.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","active-item","panels"])):o.createCommentVNode("",!0)])])]))}});function u3(t,e){let n=!1,r,i;const l=`dx-${t}-pager`,s=o.shallowRef(null),a=o.ref({}),c=o.ref({}),u=o.ref(!1),d=o.shallowRef([]),f=o.ref(!1),_=o.ref(!1),m=o.shallowRef(null),h=o.shallowRef(null),p=o.shallowRef(""),y=o.ref({}),k=o.ref(!1),w=o.computed(()=>Object.keys(a.value).filter(B=>a.value[B]!==void 0).length),C={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},T=o.shallowRef(C),v=o.computed(()=>({perPage:T.value.rowsPerPage,page:T.value.page,filter:{...a.value,...c.value},sort:T.value.__sort||void 0}));o.watch(v,()=>{Vt(),x()}),o.watch(a,()=>{Vt(),g()}),o.watch(d,g),e.refreshFilters&&o.watch(a,F);async function x(){if(n){f.value=!0;try{q(await e.routes.list(v.value)),f.value=!1}catch{}}}async function g(){if(!e.routes.summary||!n)return;_.value=!0;const B={id:null,...a.value,...c.value};d.value.length&&(B.id=d.value.map(R=>R.id));try{m.value=await e.routes.summary(B),_.value=!1}catch{}}async function S(){await Promise.all([x(),g()])}function E(B){return y.value[B]||[]}async function F(){if(!(!e.routes.fieldOptions||!n)){k.value=!0;try{y.value=await e.routes.fieldOptions(a.value)||{},k.value=!1}catch{}}}function L(B,R=null){var H;if(e.urlPattern&&B.match(e.urlPattern)){const xe=(H=R==null?void 0:R.value)==null?void 0:H.map(Me=>Me.fields.map(To=>To.name)).flat(),ct=vf(B,xe);Object.keys(ct).length>0&&(a.value=ct,Un("filter",a.value))}}function q(B){let R=[],H;Array.isArray(B)?(R=B,H={total:B.length}):B.data&&(R=B.data,H=B.meta),H&&H.total!==T.value.rowsNumber&&(T.value.rowsNumber=H.total),R=R.map(xe=>(xe.isSaving=xe.isSaving===void 0?!1:xe.isSaving,ut(xe))),s.value={data:R,meta:H}}function j(){T.value=C}function O(B){T.value=B}function K(B){d.value=B}function Y(){d.value=[]}async function ce(B,R=void 0){var H,xe,ct;if(!e.routes.more)return!1;try{const Me=await e.routes.more({page:B+1,perPage:R,filter:{...a.value,...c.value}});if(Me&&Me.length>0)return q({data:[...((H=s.value)==null?void 0:H.data)||[],...Me],meta:{total:((ct=(xe=s.value)==null?void 0:xe.meta)==null?void 0:ct.total)||0}}),!0}catch{}return!1}async function Pe(){return Promise.all([x(),g(),F(),Je()])}function Un(B,R){const H=It(l)||{};H[B]=R,Bt(l,H)}function un(){if(!n)return;const B=It(l);B?(a.value={...B.filter,...a.value},T.value=B.pagination):a.value={...e.filterDefaults,...a.value},setTimeout(()=>{f.value||x(),_.value||g(),k.value||F()},1)}async function Vt(){const B={filter:a.value,pagination:{...T.value,page:1}};Bt(l,B)}async function Je(){if(!(!h.value||!e.routes.details))try{const B=await e.routes.details(h.value);if(!B||!B.__type||!B.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",B);h.value=ut(B)}catch{}}e.routes.details&&o.watch(()=>h.value,async(B,R)=>{B&&(R==null?void 0:R.id)!==B.id&&await Je()});function xr(B,R=""){var H;(B==null?void 0:B.id)===((H=h.value)==null?void 0:H.id)&&R===p.value||(Ze(B),p.value=R,B!=null&&B.id&&Df({id:B.id,panel:R}))}function Ze(B){h.value=B&&ut(B),B!=null&&B.id||Df({})}async function yt(B){var xe,ct,Me,To;if(!((xe=s.value)!=null&&xe.data))return;const R=s.value.data.findIndex(N3=>{var $f;return N3.id===(($f=h.value)==null?void 0:$f.id)});if(R==null)return;let H=R+B;if(H<0)if(T.value.page>1)T.value={...T.value,page:T.value.page-1},await vo(f,!1),H=s.value.data.length-1;else return;if(H>=s.value.data.length)if(T.value.page<(((Me=(ct=s.value)==null?void 0:ct.meta)==null?void 0:Me.last_page)||1))T.value={...T.value,page:T.value.page+1},await vo(f,!1),H=0;else return;h.value=(To=s.value)==null?void 0:To.data[H]}function v3(B){a.value=B||{}}async function B3(B){e.routes.export&&await e.routes.export(B)}function I3(B){var R;if(i=B==null?void 0:B.vueRouter,r=(R=B==null?void 0:B.vueRouter)==null?void 0:R.currentRoute.value,n=!0,un(),e.routes.details&&r&&i){const{params:H,meta:xe}=r,ct=r.name;i.afterEach(Me=>{Me.name===ct&&Of(Me.params,Me.meta)}),Of(H,xe)}}function Df(B){i&&r&&i.push({name:(Array.isArray(r.name)?r.name[0]:r.name)||"home",params:B})}function Of(B,R){const H=Array.isArray(B==null?void 0:B.id)?B.id[0]:B==null?void 0:B.id;if(H&&R.type){const xe=Array.isArray(B==null?void 0:B.panel)?B.panel[0]:B==null?void 0:B.panel;xr({id:H,__type:""+R.type},xe||p.value||"")}}return{name:t,label:e.label||t,pagedItems:s,activeFilter:a,globalFilter:c,filterActiveCount:w,showFilters:u,summary:m,selectedRows:d,isLoadingList:f,isLoadingFilters:k,isLoadingSummary:_,pager:v,pagination:T,activeItem:h,activePanel:p,initialize:I3,resetPaging:j,setPagination:O,setSelectedRows:K,clearSelectedRows:Y,loadList:x,loadSummary:g,loadListAndSummary:S,loadMore:ce,getActiveItemDetails:Je,refreshAll:Pe,exportList:B3,setActiveItem:Ze,getNextItem:yt,activatePanel:xr,setActiveFilter:v3,applyFilterFromUrl:L,getFieldOptions:E}}function d3(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,l=o.ref(It(n)||[]),s=o.ref(It(r,[])),a=o.ref(It(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,h)=>{const p=l.value.indexOf(m.name),y=l.value.indexOf(h.name);return p===-1?1:y===-1?-1:p-y})),d=o.computed({get(){return u.value.slice(1)},set(m){l.value=[...c.value.map(h=>h.name),...m.map(h=>h.name)],Bt(n,l.value)}}),f=o.computed(()=>u.value.filter(m=>!s.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>s.value,()=>Bt(r,s.value)),o.watch(()=>a.value,()=>Bt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:s,titleColumnNames:a,orderedTitleColumns:_}}const f3={class:"flex space-x-2"},_3=["innerHTML"],Ol={__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 Ct(r);case"CURRENCY":return ei(r);case"DATE":return tt(r);case"DATETIME":return kn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",f3,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(rr),{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,l=>(o.openBlock(),o.createBlock(o.unref(rr),{key:"file-"+l.id,file:l,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))]))}},m3={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},p3={class:"flex-grow text-sm w-3/5 overflow-auto"},h3={class:"flex flex-nowrap items-center mt-4"},g3={class:"bg-red-200 line-through p-2"},y3={class:"bg-emerald-200 ml-2.5 p-2"},b3={class:"ml-4 text-sm w-2/5"},x3=["href"],k3={__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",m3,[o.createElementVNode("div",p3,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",h3,[o.createElementVNode("div",g3,[o.createVNode(o.unref(Ol),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",y3,[o.createVNode(o.unref(Ol),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",b3,[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(kn)(t.item.timestamp)),9,x3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(kn)(t.item.timestamp)),1)],64))])])]))}},w3=["onClick"],S3={key:0,class:"flex-shrink-0"},C3={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=o.computed(()=>e.items.filter(r=>!r.hidden));return(r,i)=>{const l=o.resolveComponent("QTooltip"),s=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+a.label,class:"nav-menu-item-box"},[o.createElementVNode("div",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",a.class||t.itemClass]),onClick:a.onClick},[a.icon?(o.openBlock(),o.createElementBlock("div",S3,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.icon),{class:o.normalizeClass(["nav-icon",a.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",a.labelClass])},o.toDisplayString(a.label),3)),t.collapsed?(o.openBlock(),o.createBlock(l,o.normalizeProps(o.mergeProps({key:2},a.tooltip)),{default:o.withCtx(()=>{var c;return[o.createTextVNode(o.toDisplayString(((c=a.tooltip)==null?void 0:c.text)||a.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,w3),a.separator?(o.openBlock(),o.createBlock(s,{key:"separator-"+a.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},T3={name:"quasar-ui-danx",version:"0.4.6",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"dist/danx.es.js",module:"dist/danx.es.js",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},devDependencies:{"@quasar/extras":"^1.16.4","@types/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"},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:Ff}=T3;function E3(t){console.log(`Installing Danx UI ${Ff}... Nothing to do really.`)}b.ActionMenu=Sl,b.ActionTable=If,b.ActionTableColumn=Jd,b.ActionTableHeaderColumn=rf,b.ActionTableLayout=c3,b.ActionToolbar=Nf,b.ActionVnode=$u,b.AddressFormat=gb,b.AuditHistoryItem=k3,b.AuditHistoryItemValue=Ol,b.BadgeTab=Fb,b.BooleanField=El,b.CaretDownIcon=gu,b.CollapsableFiltersSidebar=bf,b.CollapsableSidebar=Du,b.ColumnListItem=Tl,b.ColumnSettingsDialog=sk,b.ConfirmActionDialog=H2,b.ConfirmDialog=In,b.ConfirmPasswordField=hk,b.ContentDrawer=$i,b.DateField=Bl,b.DateRangeField=Il,b.DateTime=D,b.DateTimeField=Tk,b.DateTimePicker=Nl,b.DragAndDrop=Cl,b.DragHandleDotsIcon=yu,b.DragHandleIcon=bu,b.EditOnClickTextField=Mk,b.EditableDiv=Ek,b.EmptyTableState=Cf,b.ExportButton=pu,b.FieldLabel=st,b.FilePreview=rr,b.FileUpload=ro,b.FileUploadButton=Lk,b.FilterIcon=xu,b.FilterItem=gf,b.FilterList=yf,b.FilterListToggle=xf,b.FilterToolbarLayout=$w,b.FilterableField=Dl,b.FlashMessages=Ve,b.FlatListFormat=yb,b.FullScreenCarouselDialog=Iu,b.FullScreenDialog=J2,b.GpsCoordinatesFormat=kb,b.HandleDraggable=ef,b.IconWithTextFormat=Sb,b.ImageIcon=Di,b.IndicatorTab=$b,b.InfoDialog=Nu,b.InlineDateTimeField=zk,b.InputDialog=tb,b.IntegerField=lf,b.InteractiveTooltip=Bb,b.LabelValueBlock=jk,b.LabelValueFormat=Tb,b.LabeledInput=vl,b.ListDragAndDrop=tf,b.ListItemDraggable=nf,b.ListTransition=Mu,b.MaxHeightTransition=Ab,b.MaxLengthCounter=af,b.MultiFileField=sf,b.MultiKeywordField=cf,b.NavigationMenu=C3,b.NewPasswordField=Yk,b.NumberField=yr,b.NumberRangeField=Co,b.PanelsDrawer=Sf,b.PanelsDrawerPanels=kf,b.PanelsDrawerTabs=wf,b.PdfIcon=ku,b.PercentIcon=wu,b.PopoverMenu=Pu,b.PreviousNextControls=Eu,b.RefreshButton=hu,b.RenderComponent=Au,b.RenderVnode=Qt,b.RenderedForm=qw,b.SERVER_TZ=Qo,b.SelectDrawer=ew,b.SelectField=br,b.SelectWithChildrenField=uf,b.SingleFileField=df,b.SkipNextIcon=Su,b.SkipPreviousIcon=Cu,b.SlideTransition=Pb,b.SliderNumberField=sw,b.StaggeredListTransition=Xx,b.SvgImg=Fu,b.TableSummaryRow=Bf,b.TextField=So,b.TitleColumnFormat=of,b.TrashIcon=lo,b.VisibleColumnsToggleButtons=fk,b.WarningIcon=Tu,b.WysiwygField=hf,b.XIcon=so,b.activeActionVnode=Lt,b.addHotkey=Oy,b.applyCssVars=Ry,b.buildCssVars=Fi,b.centerTruncate=Jm,b.configure=Af,b.danxOptions=ue,b.dbDateTime=Jo,b.diffInDays=np,b.download=zr,b.downloadFile=Ta,b.downloadFileResponse=Ea,b.fCurrency=ei,b.fDate=tt,b.fDateTime=Ur,b.fElapsedTime=Km,b.fJSON=Ca,b.fLocalizedDateTime=kn,b.fMarkdownJSON=tp,b.fNameOrCount=Sa,b.fNumber=Ct,b.fPercent=wa,b.fPhone=ep,b.fQDate=Qm,b.fSecondsToTime=Xm,b.fetchResourceListWithSelected=Vy,b.getFilterFromUrl=vf,b.getItem=It,b.getResponseHeader=ti,b.getUrlParam=du,b.incrementName=Ul,b.install=E3,b.isJSON=zl,b.listen=$y,b.localizedDateTime=Xo,b.mapSortBy=Ef,b.metersToMiles=Yf,b.milesToMeters=Qf,b.minmax=Wf,b.notify=jf,b.parseCoords=Xf,b.parseDateTime=Gt,b.parseQDate=Rr,b.parseQDateTime=Ko,b.refreshApplication=Hf,b.registerHotkeys=Py,b.registerStickyScrolling=Tf,b.remoteDateTime=ka,b.remove=qn,b.replace=Eo,b.request=we,b.resolveFileLocation=su,b.setItem=Bt,b.sleep=Rl,b.storeObject=ut,b.uniqueBy=Zf,b.unlisten=Ay,b.useActionRoutes=Ly,b.useActions=Gf,b.useCompatibility=Gl,b.useListControls=u3,b.useMultiFileUpload=uu,b.useSingleFileUpload=fu,b.useTableColumns=d3,b.version=Ff,b.waitForRef=vo,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|
23
|
+
*/var Od,At,Mn,fl,rn,$d,_l,Ix=function(){return typeof window<"u"},ht={},on=180/Math.PI,Vn=Math.PI/180,Ln=Math.atan2,Ad=1e8,ml=/([A-Z])/g,Nx=/(left|right|width|margin|padding|x)/i,Fx=/[\s,\(]\S/,it={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},pl=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Dx=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)},Ox=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)},$x=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Pd=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Md=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Ax=function(e,n,r){return e.style[n]=r},Px=function(e,n,r){return e.style.setProperty(n,r)},Mx=function(e,n,r){return e._gsap[n]=r},Vx=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Lx=function(e,n,r,i,l){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(l,s)},Rx=function(e,n,r,i,l){var s=e._gsap;s[n]=r,s.renderTransform(l,s)},te="transform",Ie=te+"Origin",Ux=function t(e,n){var r=this,i=this.target,l=i.style,s=i._gsap;if(e in ht&&l){if(this.tfm=this.tfm||{},e!=="transform")e=it[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=gt(i,a)}):this.tfm[e]=s.x?s[e]:gt(i,e),e===Ie&&(this.tfm.zOrigin=s.zOrigin);else return it.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(te)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ie,n,"")),e=te}(l||n)&&this.props.push(e,n,l[e])},Vd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},zx=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,l,s;for(l=0;l<e.length;l+=3)e[l+1]?n[e[l]]=e[l+2]:e[l+2]?r[e[l]]=e[l+2]:r.removeProperty(e[l].substr(0,2)==="--"?e[l]:e[l].replace(ml,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),l=_l(),(!l||!l.isStart)&&!r[te]&&(Vd(r),i.zOrigin&&r[Ie]&&(r[Ie]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Ld=function(e,n){var r={target:e,props:[],revert:zx,save:Ux};return e._gsap||Be.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},Rd,hl=function(e,n){var r=At.createElementNS?At.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):At.createElement(e);return r&&r.style?r:At.createElement(e)},lt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ml,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Rn(n)||n,1)||""},Ud="O,Moz,ms,Ms,Webkit".split(","),Rn=function(e,n,r){var i=n||rn,l=i.style,s=5;if(e in l&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Ud[s]+e in l););return s<0?null:(s===3?"ms":s>=0?Ud[s]:"")+e},gl=function(){Ix()&&window.document&&(Od=window,At=Od.document,Mn=At.documentElement,rn=hl("div")||{style:{}},hl("div"),te=Rn(te),Ie=te+"Origin",rn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rd=!!Rn("perspective"),_l=Be.core.reverting,fl=1)},yl=function t(e){var n=hl("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,l=this.style.cssText,s;if(Mn.appendChild(n),n.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Mn.removeChild(n),this.style.cssText=l,s},zd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},qd=function(e){var n;try{n=e.getBBox()}catch{n=yl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===yl||(n=yl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+zd(e,["x","cx","x1"])||0,y:+zd(e,["y","cy","y1"])||0,width:0,height:0}:n},jd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&qd(e))},ln=function(e,n){if(n){var r=e.style,i;n in ht&&n!==Ie&&(n=te),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ml,"-$1").toLowerCase())):r.removeAttribute(n)}},Pt=function(e,n,r,i,l,s){var a=new ve(e._pt,n,r,0,1,s?Md:Pd);return e._pt=a,a.b=i,a.e=l,e._props.push(r),a},Gd={deg:1,rad:1,turn:1},qx={grid:1,flex:1},Mt=function t(e,n,r,i){var l=parseFloat(r)||0,s=(r+"").trim().substr((l+"").length)||"px",a=rn.style,c=Nx.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,_=i==="px",m=i==="%",h,p,y,k;if(i===s||!l||Gd[i]||Gd[s])return l;if(s!=="px"&&!_&&(l=t(e,n,r,"px")),k=e.getCTM&&jd(e),(m||s==="%")&&(ht[n]||~n.indexOf("adius")))return h=k?e.getBBox()[c?"width":"height"]:e[d],ie(m?l/h*f:l/100*h);if(a[c?"width":"height"]=f+(_?s:i),p=~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,k&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===At||!p.appendChild)&&(p=At.body),y=p._gsap,y&&m&&y.width&&c&&y.time===Ae.time&&!y.uncache)return ie(l/y.width*f);if(m&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=f+i,h=e[d],w?e.style[n]=w:ln(e,n)}else(m||s==="%")&&!qx[lt(p,"display")]&&(a.position=lt(e,"position")),p===e&&(a.position="static"),p.appendChild(rn),h=rn[d],p.removeChild(rn),a.position="absolute";return c&&m&&(y=Xt(p),y.time=Ae.time,y.width=p[d]),ie(_?h*l/f:h&&l?f/h*l:0)},gt=function(e,n,r,i){var l;return fl||gl(),n in it&&n!=="transform"&&(n=it[n],~n.indexOf(",")&&(n=n.split(",")[0])),ht[n]&&n!=="transform"?(l=hr(e,i),l=n!=="transformOrigin"?l[n]:l.svg?l.origin:wo(lt(e,Ie))+" "+l.zOrigin+"px"):(l=e.style[n],(!l||l==="auto"||i||~(l+"").indexOf("calc("))&&(l=ko[n]&&ko[n](e,n,r)||lt(e,n)||Yu(e,n)||(n==="opacity"?1:0))),r&&!~(l+"").trim().indexOf(" ")?Mt(e,n,l,r)+r:l},jx=function(e,n,r,i){if(!r||r==="none"){var l=Rn(n,e,1),s=l&<(e,l,1);s&&s!==r?(n=l,r=s):n==="borderColor"&&(r=lt(e,"borderTopColor"))}var a=new ve(this._pt,e.style,n,0,1,Id),c=0,u=0,d,f,_,m,h,p,y,k,w,C,T,v;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(p=e.style[n],e.style[n]=i,i=lt(e,n)||i,p?e.style[n]=p:ln(e,n)),d=[r,i],bd(d),r=d[0],i=d[1],_=r.match(Fn)||[],v=i.match(Fn)||[],v.length){for(;f=Fn.exec(i);)y=f[0],w=i.substring(c,f.index),h?h=(h+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(h=1),y!==(p=_[u++]||"")&&(m=parseFloat(p)||0,T=p.substr((m+"").length),y.charAt(1)==="="&&(y=Dn(m,y)+T),k=parseFloat(y),C=y.substr((k+"").length),c=Fn.lastIndex-C.length,C||(C=C||Fe.units[n]||T,c===i.length&&(i+=C,a.e+=C)),T!==C&&(m=Mt(e,n,p,C)||0),a._pt={_next:a._pt,p:w||u===1?w:",",s:m,c:k-m,m:h&&h<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?Md:Pd;return zu.test(i)&&(a.e=0),this._pt=a,a},Hd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Gx=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]=Hd[r]||r,n[1]=Hd[i]||i,n.join(" ")},Hx=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,l=n.u,s=r._gsap,a,c,u;if(l==="all"||l===!0)i.cssText="",c=1;else for(l=l.split(","),u=l.length;--u>-1;)a=l[u],ht[a]&&(c=1,a=a==="transformOrigin"?Ie:te),ln(r,a);c&&(ln(r,te),s&&(s.svg&&r.removeAttribute("transform"),hr(r,1),s.uncache=1,Vd(i)))}},ko={clearProps:function(e,n,r,i,l){if(l.data!=="isFromStart"){var s=e._pt=new ve(e._pt,n,r,0,0,Hx);return s.u=i,s.pr=-10,s.tween=l,e._props.push(r),1}}},pr=[1,0,0,1,0,0],Zd={},Wd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Yd=function(e){var n=lt(e,te);return Wd(n)?pr:n.substr(7).match(Uu).map(ie)},bl=function(e,n){var r=e._gsap||Xt(e),i=e.style,l=Yd(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,l=[c.a,c.b,c.c,c.d,c.e,c.f],l.join(",")==="1,0,0,1,0,0"?pr:l):(l===pr&&!e.offsetParent&&e!==Mn&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(u=1,a=e.nextElementSibling,Mn.appendChild(e)),l=Yd(e),c?i.display=c:ln(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):Mn.removeChild(e))),n&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},xl=function(e,n,r,i,l,s){var a=e._gsap,c=l||bl(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,_=a.yOffset||0,m=c[0],h=c[1],p=c[2],y=c[3],k=c[4],w=c[5],C=n.split(" "),T=parseFloat(C[0])||0,v=parseFloat(C[1])||0,x,g,S,E;r?c!==pr&&(g=m*y-h*p)&&(S=T*(y/g)+v*(-p/g)+(p*w-y*k)/g,E=T*(-h/g)+v*(m/g)-(m*w-h*k)/g,T=S,v=E):(x=qd(e),T=x.x+(~C[0].indexOf("%")?T/100*x.width:T),v=x.y+(~(C[1]||C[0]).indexOf("%")?v/100*x.height:v)),i||i!==!1&&a.smooth?(k=T-u,w=v-d,a.xOffset=f+(k*m+w*p)-k,a.yOffset=_+(k*h+w*y)-w):a.xOffset=a.yOffset=0,a.xOrigin=T,a.yOrigin=v,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Ie]="0px 0px",s&&(Pt(s,a,"xOrigin",u,T),Pt(s,a,"yOrigin",d,v),Pt(s,a,"xOffset",f,a.xOffset),Pt(s,a,"yOffset",_,a.yOffset)),e.setAttribute("data-svg-origin",T+" "+v)},hr=function(e,n){var r=e._gsap||new Sd(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,l=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=lt(e,Ie)||"0",d,f,_,m,h,p,y,k,w,C,T,v,x,g,S,E,F,L,q,j,O,K,Y,ce,Pe,Un,un,Vt,Je,xr,Ze,yt;return d=f=_=p=y=k=w=C=T=0,m=h=1,r.svg=!!(e.getCTM&&jd(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[te]=(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[te]!=="none"?c[te]:"")),i.scale=i.rotate=i.translate="none"),g=bl(e,r.svg),r.svg&&(r.uncache?(Pe=e.getBBox(),u=r.xOrigin-Pe.x+"px "+(r.yOrigin-Pe.y)+"px",ce=""):ce=!n&&e.getAttribute("data-svg-origin"),xl(e,ce||u,!!ce||r.originIsAbsolute,r.smooth!==!1,g)),v=r.xOrigin||0,x=r.yOrigin||0,g!==pr&&(L=g[0],q=g[1],j=g[2],O=g[3],d=K=g[4],f=Y=g[5],g.length===6?(m=Math.sqrt(L*L+q*q),h=Math.sqrt(O*O+j*j),p=L||q?Ln(q,L)*on:0,w=j||O?Ln(j,O)*on+p:0,w&&(h*=Math.abs(Math.cos(w*Vn))),r.svg&&(d-=v-(v*L+x*j),f-=x-(v*q+x*O))):(yt=g[6],xr=g[7],un=g[8],Vt=g[9],Je=g[10],Ze=g[11],d=g[12],f=g[13],_=g[14],S=Ln(yt,Je),y=S*on,S&&(E=Math.cos(-S),F=Math.sin(-S),ce=K*E+un*F,Pe=Y*E+Vt*F,Un=yt*E+Je*F,un=K*-F+un*E,Vt=Y*-F+Vt*E,Je=yt*-F+Je*E,Ze=xr*-F+Ze*E,K=ce,Y=Pe,yt=Un),S=Ln(-j,Je),k=S*on,S&&(E=Math.cos(-S),F=Math.sin(-S),ce=L*E-un*F,Pe=q*E-Vt*F,Un=j*E-Je*F,Ze=O*F+Ze*E,L=ce,q=Pe,j=Un),S=Ln(q,L),p=S*on,S&&(E=Math.cos(S),F=Math.sin(S),ce=L*E+q*F,Pe=K*E+Y*F,q=q*E-L*F,Y=Y*E-K*F,L=ce,K=Pe),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,k=180-k),m=ie(Math.sqrt(L*L+q*q+j*j)),h=ie(Math.sqrt(Y*Y+yt*yt)),S=Ln(K,Y),w=Math.abs(S)>2e-4?S*on:0,T=Ze?1/(Ze<0?-Ze:Ze):0),r.svg&&(ce=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Wd(lt(e,te)),ce&&e.setAttribute("transform",ce))),Math.abs(w)>90&&Math.abs(w)<270&&(l?(m*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(h*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=ie(m),r.scaleY=ie(h),r.rotation=ie(p)+a,r.rotationX=ie(y)+a,r.rotationY=ie(k)+a,r.skewX=w+a,r.skewY=C+a,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Ie]=wo(u)),r.xOffset=r.yOffset=0,r.force3D=Fe.force3D,r.renderTransform=r.svg?Wx:Rd?Qd:Zx,r.uncache=0,r},wo=function(e){return(e=e.split(" "))[0]+" "+e[1]},kl=function(e,n,r){var i=ye(n);return ie(parseFloat(n)+parseFloat(Mt(e,"x",r+"px",i)))+i},Zx=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Qd(e,n)},sn="0deg",gr="0px",an=") ",Qd=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,_=r.skewX,m=r.skewY,h=r.scaleX,p=r.scaleY,y=r.transformPerspective,k=r.force3D,w=r.target,C=r.zOrigin,T="",v=k==="auto"&&e&&e!==1||k===!0;if(C&&(f!==sn||d!==sn)){var x=parseFloat(d)*Vn,g=Math.sin(x),S=Math.cos(x),E;x=parseFloat(f)*Vn,E=Math.cos(x),s=kl(w,s,g*E*-C),a=kl(w,a,-Math.sin(x)*-C),c=kl(w,c,S*E*-C+C)}y!==gr&&(T+="perspective("+y+an),(i||l)&&(T+="translate("+i+"%, "+l+"%) "),(v||s!==gr||a!==gr||c!==gr)&&(T+=c!==gr||v?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+an),u!==sn&&(T+="rotate("+u+an),d!==sn&&(T+="rotateY("+d+an),f!==sn&&(T+="rotateX("+f+an),(_!==sn||m!==sn)&&(T+="skew("+_+", "+m+an),(h!==1||p!==1)&&(T+="scale("+h+", "+p+an),w.style[te]=T||"translate(0, 0)"},Wx=function(e,n){var r=n||this,i=r.xPercent,l=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,_=r.scaleY,m=r.target,h=r.xOrigin,p=r.yOrigin,y=r.xOffset,k=r.yOffset,w=r.forceCSS,C=parseFloat(s),T=parseFloat(a),v,x,g,S,E;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Vn,u*=Vn,v=Math.cos(c)*f,x=Math.sin(c)*f,g=Math.sin(c-u)*-_,S=Math.cos(c-u)*_,u&&(d*=Vn,E=Math.tan(u-d),E=Math.sqrt(1+E*E),g*=E,S*=E,d&&(E=Math.tan(d),E=Math.sqrt(1+E*E),v*=E,x*=E)),v=ie(v),x=ie(x),g=ie(g),S=ie(S)):(v=f,S=_,x=g=0),(C&&!~(s+"").indexOf("px")||T&&!~(a+"").indexOf("px"))&&(C=Mt(m,"x",s,"px"),T=Mt(m,"y",a,"px")),(h||p||y||k)&&(C=ie(C+h-(h*v+p*g)+y),T=ie(T+p-(h*x+p*S)+k)),(i||l)&&(E=m.getBBox(),C=ie(C+i/100*E.width),T=ie(T+l/100*E.height)),E="matrix("+v+","+x+","+g+","+S+","+C+","+T+")",m.setAttribute("transform",E),w&&(m.style[te]=E)},Yx=function(e,n,r,i,l){var s=360,a=de(l),c=parseFloat(l)*(a&&~l.indexOf("rad")?on:1),u=c-i,d=i+u+"deg",f,_;return a&&(f=l.split("_")[1],f==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),f==="cw"&&u<0?u=(u+s*Ad)%s-~~(u/s)*s:f==="ccw"&&u>0&&(u=(u-s*Ad)%s-~~(u/s)*s)),e._pt=_=new ve(e._pt,n,r,i,u,Dx),_.e=d,_.u="deg",e._props.push(r),_},Xd=function(e,n){for(var r in n)e[r]=n[r];return e},Qx=function(e,n,r){var i=Xd({},r._gsap),l="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,d,f,_,m,h;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[te]=n,a=hr(r,1),ln(r,te),r.setAttribute("transform",u)):(u=getComputedStyle(r)[te],s[te]=n,a=hr(r,1),s[te]=u);for(c in ht)u=i[c],d=a[c],u!==d&&l.indexOf(c)<0&&(m=ye(u),h=ye(d),f=m!==h?Mt(r,c,u,h):parseFloat(u),_=parseFloat(d),e._pt=new ve(e._pt,a,c,f,_-f,pl),e._pt.u=h||0,e._props.push(c));Xd(a,i)};Ee("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",l="Left",s=(e<3?[n,r,i,l]:[n+l,n+r,i+r,i+l]).map(function(a){return e<2?t+a:"border"+a+t});ko[e>1?"border"+t:t]=function(a,c,u,d,f){var _,m;if(arguments.length<4)return _=s.map(function(h){return gt(a,h,u)}),m=_.join(" "),m.split(_[0]).length===5?_[0]:m;_=(d+"").split(" "),m={},s.forEach(function(h,p){return m[h]=_[p]=_[p]||_[(p-1)/2|0]}),a.init(c,m,f)}});var Kd={name:"css",register:gl,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,l){var s=this._props,a=e.style,c=r.vars.startAt,u,d,f,_,m,h,p,y,k,w,C,T,v,x,g,S;fl||gl(),this.styles=this.styles||Ld(e),S=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(d=n[p],!(Oe[p]&&Cd(p,n,r,i,e,l)))){if(m=typeof d,h=ko[p],m==="function"&&(d=d.call(r,i,e,l),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=cr(d)),h)h(this,e,p,d,r)&&(g=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",Ot.lastIndex=0,Ot.test(u)||(y=ye(u),k=ye(d)),k?y!==k&&(u=Mt(e,p,u,k)+k):y&&(d+=y),this.add(a,"setProperty",u,d,i,l,0,0,p),s.push(p),S.push(p,0,a[p]);else if(m!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,l):c[p],de(u)&&~u.indexOf("random(")&&(u=cr(u)),ye(u+"")||u==="auto"||(u+=Fe.units[p]||ye(gt(e,p))||""),(u+"").charAt(1)==="="&&(u=gt(e,p))):u=gt(e,p),_=parseFloat(u),w=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),w&&(d=d.substr(2)),f=parseFloat(d),p in it&&(p==="autoAlpha"&&(_===1&>(e,"visibility")==="hidden"&&f&&(_=0),S.push("visibility",0,a.visibility),Pt(this,a,"visibility",_?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=it[p],~p.indexOf(",")&&(p=p.split(",")[0]))),C=p in ht,C){if(this.styles.save(p),T||(v=e._gsap,v.renderTransform&&!n.parseTransform||hr(e,n.parseTransform),x=n.smoothOrigin!==!1&&v.smooth,T=this._pt=new ve(this._pt,a,te,0,1,v.renderTransform,v,0,-1),T.dep=1),p==="scale")this._pt=new ve(this._pt,v,"scaleY",v.scaleY,(w?Dn(v.scaleY,w+f):f)-v.scaleY||0,pl),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){S.push(Ie,0,a[Ie]),d=Gx(d),v.svg?xl(e,d,0,x,0,this):(k=parseFloat(d.split(" ")[2])||0,k!==v.zOrigin&&Pt(this,v,"zOrigin",v.zOrigin,k),Pt(this,a,p,wo(u),wo(d)));continue}else if(p==="svgOrigin"){xl(e,d,1,x,0,this);continue}else if(p in Zd){Yx(this,v,p,_,w?Dn(_,w+d):d);continue}else if(p==="smoothOrigin"){Pt(this,v,"smooth",v.smooth,d);continue}else if(p==="force3D"){v[p]=d;continue}else if(p==="transform"){Qx(this,d,e);continue}}else p in a||(p=Rn(p)||p);if(C||(f||f===0)&&(_||_===0)&&!Fx.test(d)&&p in a)y=(u+"").substr((_+"").length),f||(f=0),k=ye(d)||(p in Fe.units?Fe.units[p]:y),y!==k&&(_=Mt(e,p,u,k)),this._pt=new ve(this._pt,C?v:a,p,_,(w?Dn(_,w+f):f)-_,!C&&(k==="px"||p==="zIndex")&&n.autoRound!==!1?$x:pl),this._pt.u=k||0,y!==k&&k!=="%"&&(this._pt.b=u,this._pt.r=Ox);else if(p in a)jx.call(this,e,p,u,w?w+d:d);else if(p in e)this.add(e,p,u||e[p],w?w+d:d,i,l);else if(p!=="parseTransform"){qi(p,d);continue}C||(p in a?S.push(p,0,a[p]):S.push(p,1,u||e[p])),s.push(p)}}g&&Nd(this)},render:function(e,n){if(n.tween._time||!_l())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:gt,aliases:it,getSetter:function(e,n,r){var i=it[n];return i&&i.indexOf(",")<0&&(n=i),n in ht&&n!==Ie&&(e._gsap.x||gt(e,"x"))?r&&$d===r?n==="scale"?Vx:Mx:($d=r||{})&&(n==="scale"?Lx:Rx):e.style&&!Mi(e.style[n])?Ax:~n.indexOf("-")?Px:sl(e,n)},core:{_removeProperty:ln,_getMatrix:bl}};Be.utils.checkPrefix=Rn,Be.core.getStyleSaver=Ld,function(t,e,n,r){var i=Ee(t+","+e+","+n,function(l){ht[l]=1});Ee(e,function(l){Fe.units[l]="deg",Zd[l]=1}),it[i[13]]=t+","+e,Ee(r,function(l){var s=l.split(":");it[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ee("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Fe.units[t]="px"}),Be.registerPlugin(Kd);var wl=Be.registerPlugin(Kd)||Be;wl.core.Tween;const Xx={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=o.ref(null),r=o.computed(()=>e.delayOffset/n.value.$el.children.length);function i(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function l(a,c){if(e.disabled){c();return}wl.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function s(a,c){if(e.disabled){c();return}wl.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:i,onEnter:l,onLeave:s},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}},Sl={__name:"ActionMenu",props:{actions:{type:Array,required:!0},target:{type:[Array,Object],default:()=>[]},tooltip:{type:String,default:"First select records to perform a batch action"},loading:Boolean,loadingComponent:{type:[Function,Object],default:void 0}},setup(t){const e=t,n=o.computed(()=>Array.isArray(e.target)?e.target.length>0:!!e.target),r=o.computed(()=>e.actions.filter(s=>Array.isArray(e.target)?s.batchEnabled?s.batchEnabled(e.target):!0:s.enabled?s.enabled(e.target):!0)),i=o.ref(!1);async function l(s){if(!s.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");i.value=!0,await s.trigger(e.target),i.value=!1}return(s,a)=>(o.openBlock(),o.createBlock(o.unref(Pu),{class:"px-2 flex dx-action-button",items:r.value,disabled:!n.value,tooltip:n.value?null:t.tooltip,loading:i.value||t.loading,"loading-component":t.loadingComponent,onActionItem:l},null,8,["items","disabled","tooltip","loading","loading-component"]))}},Kx={class:"flex-grow overflow-hidden"},Jx={key:0,class:"flex flex-shrink-0 pl-2"},Jd={__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=o.computed(()=>e.rowProps.row),r=o.computed(()=>e.rowProps.col),i=o.computed(()=>e.rowProps.value),l=o.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),s=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":l.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.createElementVNode("div",Kx,[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(Qt),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(i.value),1)])],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(r.value.innerClass)},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{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(of),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)]),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",Jx,[o.createVNode(o.unref(Sl),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:l.value},null,8,["actions","target","loading"])])):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style"]))}};class Cl{constructor(e={}){G(this,"options",{direction:"vertical",hideDragImage:!1});G(this,"startY",0);G(this,"startX",0);G(this,"startSize",0);G(this,"cursorY",0);G(this,"cursorX",0);G(this,"onStartCb",null);G(this,"onEndCb",null);G(this,"onDropCb",null);G(this,"onDraggingCb",null);G(this,"dropZoneResolver",null);G(this,"currentDropZone",null);G(this,"draggableData",null);G(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 ef={__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 Cl().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(zn(()=>{n("resize",{distance:i.getDistance(),percent:i.getPercentChange(),startDropZoneSize:i.startSize,dropZoneSize:i.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(l,s)=>(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:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.renderSlot(l.$slots,"default")],34))}};class tf extends Cl{constructor(n={}){super({showPlaceholder:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.updateScrollPosition())}dragEnd(n){var i;const r=this.draggableData;(i=this.placeholder)==null||i.remove(),super.dragEnd(n),this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){super.dragOver(n),this.updateListPosition(n)}updateListPosition(n){const r=this.listPosition,i=this.getListPositionOfPoint({x:n.clientX,y:n.clientY});this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==r&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.draggableData))}getListPosition(n){let r=0;for(const i of this.getChildren()){if(i===n)return r;r++}return null}getChildren(){return[...this.currentDropZone.children].filter(n=>n.className.match(/drag-placeholder/)===null)}getListPositionOfPoint(n){let r=0;const i=this.getChildren();for(;r<i.length;){const l=i[r].getBoundingClientRect();if(this.isVertical()){if(n.y<l.top+l.height/2)break}else if(n.x<l.left+l.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let i=0;const l=f=>f*5,s=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-s,d=s-(c-r);u>0?i=-l(u):d>0&&(i=l(d)),i&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+i,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+i,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}}renderPlaceholder(){this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("direction-vertical"),this.placeholder.classList.remove("direction-horizontal"),this.placeholder.style.height=void 0):(this.placeholder.classList.add("direction-horizontal"),this.placeholder.classList.remove("direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const ek={class:"flex items-center"},tk={key:0},nk={class:"flex-grow"},nf={__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 tf().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction}).onPositionChange((l,s)=>{if(n("position",l),r.listItems){const a=[...r.listItems];a.splice(l,0,a.splice(s,1)[0]),n("update:list-items",a)}});return(l,s)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-move",draggable:"true",onDragstart:s[0]||(s[0]=(...a)=>o.unref(i).dragStart&&o.unref(i).dragStart(...a)),onDragend:s[1]||(s[1]=(...a)=>o.unref(i).dragEnd&&o.unref(i).dragEnd(...a))},[o.createElementVNode("div",ek,[t.showHandle?(o.openBlock(),o.createElementBlock("div",tk,[o.createVNode(o.unref(Fu),{svg:o.unref(yu),class:"w-4 h-4",alt:"drag-handle"},null,8,["svg"])])):o.createCommentVNode("",!0),o.createElementVNode("div",nk,[o.renderSlot(l.$slots,"default")])])],32))}},rf=_t({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.rowProps.col),l=o.computed(()=>i.value.resizeable),s=o.computed(()=>{var u;const c=((u=r.settings)==null?void 0:u.width)||i.value.width;return{width:c?`${c}px`:void 0,minWidth:i.value.minWidth?`${i.value.minWidth}px`:void 0,...i.value.headerStyle||{}}});function a(c){const u={...r.modelValue,[i.value.name]:{width:Math.max(Math.min(c.distance+c.startDropZoneSize,i.value.maxWidth||500),i.value.minWidth||80)}};n("update:model-value",u)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":l.value&&"resize-column-"+i.value.name,class:o.normalizeClass(l.value&&c.cls["handle-drop-zone"]),style:o.normalizeStyle(s.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value.label)+" ",1),l.value?(o.openBlock(),o.createBlock(o.unref(ef),{key:0,"drop-zone":"resize-column-"+i.value.name,class:o.normalizeClass(c.cls["resize-handle"]),onResize:a},{default:o.withCtx(()=>[o.createVNode(o.unref(bu),{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_pspxj_1",visible:"_visible_pspxj_1",collapse:"_collapse_pspxj_1",static:"_static_pspxj_1",absolute:"_absolute_pspxj_1",relative:"_relative_pspxj_1",sticky:"_sticky_pspxj_1","bottom-1":"_bottom-1_pspxj_1","left-0":"_left-0_pspxj_1","right-0":"_right-0_pspxj_1","right-1":"_right-1_pspxj_1","right-4":"_right-4_pspxj_1","top-0":"_top-0_pspxj_1","top-1":"_top-1_pspxj_1","top-4":"_top-4_pspxj_1","m-2":"_m-2_pspxj_1","m-4":"_m-4_pspxj_1","m-auto":"_m-auto_pspxj_1","mx-1":"_mx-1_pspxj_1","mx-4":"_mx-4_pspxj_1","mx-auto":"_mx-auto_pspxj_1","my-2":"_my-2_pspxj_1","!mr-1":"_!mr-1_pspxj_1","mb-1":"_mb-1_pspxj_1","mb-2":"_mb-2_pspxj_1","mb-4":"_mb-4_pspxj_1","ml-1":"_ml-1_pspxj_1","ml-2":"_ml-2_pspxj_1","ml-2.5":"_ml-2.5_pspxj_1","ml-3":"_ml-3_pspxj_1","ml-4":"_ml-4_pspxj_1","ml-5":"_ml-5_pspxj_1","ml-[-.2em]":"_ml-[-.2em]_pspxj_1","mr-1":"_mr-1_pspxj_1","mr-2":"_mr-2_pspxj_1","mr-3":"_mr-3_pspxj_1","mr-4":"_mr-4_pspxj_1","mt-1":"_mt-1_pspxj_1","mt-2":"_mt-2_pspxj_1","mt-3":"_mt-3_pspxj_1","mt-4":"_mt-4_pspxj_1",block:"_block_pspxj_1","inline-block":"_inline-block_pspxj_1",inline:"_inline_pspxj_1",flex:"_flex_pspxj_1",table:"_table_pspxj_1",hidden:"_hidden_pspxj_1","h-10":"_h-10_pspxj_1","h-32":"_h-32_pspxj_1","h-4":"_h-4_pspxj_1","h-5":"_h-5_pspxj_1","h-8":"_h-8_pspxj_1","h-full":"_h-full_pspxj_1","max-h-full":"_max-h-full_pspxj_1","w-10":"_w-10_pspxj_1","w-16":"_w-16_pspxj_1","w-2/5":"_w-2/5_pspxj_1","w-24":"_w-24_pspxj_1","w-3":"_w-3_pspxj_1","w-3/5":"_w-3/5_pspxj_1","w-32":"_w-32_pspxj_1","w-4":"_w-4_pspxj_1","w-48":"_w-48_pspxj_1","w-5":"_w-5_pspxj_1","w-6":"_w-6_pspxj_1","w-7":"_w-7_pspxj_1","w-72":"_w-72_pspxj_1","w-8":"_w-8_pspxj_1","w-96":"_w-96_pspxj_1","w-[13.5rem]":"_w-[13.5rem]_pspxj_1","w-[35.5rem]":"_w-[35.5rem]_pspxj_1","w-[6.5rem]":"_w-[6.5rem]_pspxj_1","w-full":"_w-full_pspxj_1","!min-w-0":"_!min-w-0_pspxj_1","max-w-[50em]":"_max-w-[50em]_pspxj_1","max-w-full":"_max-w-full_pspxj_1","flex-shrink":"_flex-shrink_pspxj_1","flex-shrink-0":"_flex-shrink-0_pspxj_1","flex-grow":"_flex-grow_pspxj_1",grow:"_grow_pspxj_1","rotate-180":"_rotate-180_pspxj_1",transform:"_transform_pspxj_1","cursor-ew-resize":"_cursor-ew-resize_pspxj_1","cursor-move":"_cursor-move_pspxj_1","cursor-not-allowed":"_cursor-not-allowed_pspxj_1","cursor-ns-resize":"_cursor-ns-resize_pspxj_1","cursor-pointer":"_cursor-pointer_pspxj_1",resize:"_resize_pspxj_114","flex-col":"_flex-col_pspxj_1","flex-nowrap":"_flex-nowrap_pspxj_1","items-center":"_items-center_pspxj_1","items-stretch":"_items-stretch_pspxj_1","justify-start":"_justify-start_pspxj_1","justify-end":"_justify-end_pspxj_1","justify-center":"_justify-center_pspxj_1","justify-between":"_justify-between_pspxj_1","gap-y-0":"_gap-y-0_pspxj_1","gap-y-1":"_gap-y-1_pspxj_1","space-x-1":"_space-x-1_pspxj_1","space-x-2":"_space-x-2_pspxj_1","self-center":"_self-center_pspxj_1","overflow-auto":"_overflow-auto_pspxj_1","overflow-hidden":"_overflow-hidden_pspxj_1","overflow-y-auto":"_overflow-y-auto_pspxj_70","overflow-x-hidden":"_overflow-x-hidden_pspxj_1","scroll-smooth":"_scroll-smooth_pspxj_1","overflow-ellipsis":"_overflow-ellipsis_pspxj_1","whitespace-nowrap":"_whitespace-nowrap_pspxj_1",rounded:"_rounded_pspxj_1","rounded-2xl":"_rounded-2xl_pspxj_1","rounded-lg":"_rounded-lg_pspxj_1","rounded-md":"_rounded-md_pspxj_1","!rounded-l-none":"_!rounded-l-none_pspxj_1","!rounded-r-none":"_!rounded-r-none_pspxj_1","rounded-b-lg":"_rounded-b-lg_pspxj_1","rounded-t-lg":"_rounded-t-lg_pspxj_1","rounded-t-md":"_rounded-t-md_pspxj_1","!border-0":"_!border-0_pspxj_1",border:"_border_pspxj_1","border-b":"_border-b_pspxj_1","border-l":"_border-l_pspxj_1","border-l-0":"_border-l-0_pspxj_1","border-r":"_border-r_pspxj_1","border-solid":"_border-solid_pspxj_1","border-dashed":"_border-dashed_pspxj_1","border-none":"_border-none_pspxj_1","border-blue-600":"_border-blue-600_pspxj_1","border-blue-700":"_border-blue-700_pspxj_1","border-gray-200":"_border-gray-200_pspxj_1","border-gray-300":"_border-gray-300_pspxj_1","border-slate-200":"_border-slate-200_pspxj_1","bg-black":"_bg-black_pspxj_1","bg-blue-200":"_bg-blue-200_pspxj_1","bg-blue-600":"_bg-blue-600_pspxj_1","bg-emerald-200":"_bg-emerald-200_pspxj_1","bg-gray-100":"_bg-gray-100_pspxj_1","bg-gray-200":"_bg-gray-200_pspxj_1","bg-gray-400":"_bg-gray-400_pspxj_1","bg-gray-500":"_bg-gray-500_pspxj_1","bg-green-200":"_bg-green-200_pspxj_1","bg-green-300":"_bg-green-300_pspxj_1","bg-red-200":"_bg-red-200_pspxj_1","bg-red-300":"_bg-red-300_pspxj_1","bg-red-900":"_bg-red-900_pspxj_1","bg-slate-100":"_bg-slate-100_pspxj_1","bg-slate-500":"_bg-slate-500_pspxj_1","bg-transparent":"_bg-transparent_pspxj_1","bg-white":"_bg-white_pspxj_1","bg-yellow-300":"_bg-yellow-300_pspxj_1","!p-2":"_!p-2_pspxj_1","p-0":"_p-0_pspxj_1","p-1":"_p-1_pspxj_1","p-2":"_p-2_pspxj_1","p-3":"_p-3_pspxj_1","p-4":"_p-4_pspxj_1","!py-0":"_!py-0_pspxj_1","px-1":"_px-1_pspxj_1","px-12":"_px-12_pspxj_1","px-2":"_px-2_pspxj_1","px-2.5":"_px-2.5_pspxj_1","px-4":"_px-4_pspxj_1","px-6":"_px-6_pspxj_1","px-8":"_px-8_pspxj_1","py-1":"_py-1_pspxj_1","py-14":"_py-14_pspxj_1","py-2":"_py-2_pspxj_1","py-3":"_py-3_pspxj_1","py-4":"_py-4_pspxj_1","py-8":"_py-8_pspxj_1","pl-1":"_pl-1_pspxj_1","pl-2":"_pl-2_pspxj_1","pt-3":"_pt-3_pspxj_1","text-left":"_text-left_pspxj_1","text-center":"_text-center_pspxj_1","text-[1rem]":"_text-[1rem]_pspxj_1","text-sm":"_text-sm_pspxj_1","text-xs":"_text-xs_pspxj_1","font-bold":"_font-bold_pspxj_1","font-medium":"_font-medium_pspxj_1","font-semibold":"_font-semibold_pspxj_1",uppercase:"_uppercase_pspxj_1","leading-[1.2rem]":"_leading-[1.2rem]_pspxj_1","!text-green-900":"_!text-green-900_pspxj_1","!text-red-900":"_!text-red-900_pspxj_1","!text-white":"_!text-white_pspxj_1","!text-yellow-900":"_!text-yellow-900_pspxj_1","text-blue-600":"_text-blue-600_pspxj_1","text-blue-900":"_text-blue-900_pspxj_1","text-gray-300":"_text-gray-300_pspxj_1","text-gray-400":"_text-gray-400_pspxj_1","text-gray-500":"_text-gray-500_pspxj_1","text-gray-600":"_text-gray-600_pspxj_1","text-gray-700":"_text-gray-700_pspxj_1","text-green-700":"_text-green-700_pspxj_1","text-red-400":"_text-red-400_pspxj_1","text-red-800":"_text-red-800_pspxj_1","text-red-900":"_text-red-900_pspxj_1","text-slate-500":"_text-slate-500_pspxj_1","text-white":"_text-white_pspxj_1","text-yellow-600":"_text-yellow-600_pspxj_1","text-zinc-500":"_text-zinc-500_pspxj_1","text-zinc-800":"_text-zinc-800_pspxj_1","line-through":"_line-through_pspxj_1","opacity-0":"_opacity-0_pspxj_1","opacity-20":"_opacity-20_pspxj_1","opacity-50":"_opacity-50_pspxj_1","opacity-70":"_opacity-70_pspxj_1","shadow-none":"_shadow-none_pspxj_1","outline-none":"_outline-none_pspxj_1",outline:"_outline_pspxj_1",filter:"_filter_pspxj_1",transition:"_transition_pspxj_1","transition-all":"_transition-all_pspxj_1","duration-300":"_duration-300_pspxj_1","danx-app":"_danx-app_pspxj_4","q-tab":"_q-tab_pspxj_4","q-table__card":"_q-table__card_pspxj_7","q-checkbox__inner":"_q-checkbox__inner_pspxj_11","q-toolbar":"_q-toolbar_pspxj_14","q-notification__actions":"_q-notification__actions_pspxj_19","q-date":"_q-date_pspxj_22","q-date__view":"_q-date__view_pspxj_25","q-field":"_q-field_pspxj_28","q-field--auto-height":"_q-field--auto-height_pspxj_28","q-field__control":"_q-field__control_pspxj_28","q-field__native":"_q-field__native_pspxj_31","q-field--labeled":"_q-field--labeled_pspxj_35","q-field__control-container":"_q-field__control-container_pspxj_35","q-textarea":"_q-textarea_pspxj_38","q-field__marginal":"_q-field__marginal_pspxj_41","q-field__input":"_q-field__input_pspxj_41","q-field__label":"_q-field__label_pspxj_41","q-btn":"_q-btn_pspxj_45","q-item":"_q-item_pspxj_53","q-tab-panels":"_q-tab-panels_pspxj_57","q-panel":"_q-panel_pspxj_61",scroll:"_scroll_pspxj_64","q-tab-panel":"_q-tab-panel_pspxj_57","dx-dialog":"_dx-dialog_pspxj_74","q-card__section--vert":"_q-card__section--vert_pspxj_74","q-banner":"_q-banner_pspxj_78",app:"_app_pspxj_1","main-layout":"_main-layout_pspxj_1","is-disabled":"_is-disabled_pspxj_95","disable-all-transitions":"_disable-all-transitions_pspxj_100","v-enter-active":"_v-enter-active_pspxj_104","v-leave-active":"_v-leave-active_pspxj_105","v-enter-from":"_v-enter-from_pspxj_109","v-leave-to":"_v-leave-to_pspxj_110","handle-drop-zone":"_handle-drop-zone_pspxj_114","resize-handle":"_resize-handle_pspxj_114","hover:bg-blue-200":"_hover:bg-blue-200_pspxj_1","hover:bg-gray-200":"_hover:bg-gray-200_pspxj_1","hover:bg-green-100":"_hover:bg-green-100_pspxj_1","hover:bg-red-100":"_hover:bg-red-100_pspxj_1","hover:bg-red-200":"_hover:bg-red-200_pspxj_1","hover:bg-slate-200":"_hover:bg-slate-200_pspxj_1","hover:bg-slate-300":"_hover:bg-slate-300_pspxj_1","hover:text-blue-500":"_hover:text-blue-500_pspxj_1","hover:text-blue-600":"_hover:text-blue-600_pspxj_1","hover:opacity-100":"_hover:opacity-100_pspxj_1","focus:bg-blue-200":"_focus:bg-blue-200_pspxj_1"}}]]),rk={key:0,class:"text-zinc-800 cursor-not-allowed"},ok={class:"font-semibold text-sm ml-5 py-3 flex-grow"},ik={key:1,class:"flex items-center"},Tl={__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",rk,[o.createVNode(o.unref(M2),{class:"w-4"})])):o.createCommentVNode("",!0),o.createElementVNode("div",ok,o.toDisplayString(t.column.label),1),t.locked?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ik,[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(A2),{key:0,class:"w-4"})):(o.openBlock(),o.createBlock(o.unref($2),{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(jy),{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)}}},lk=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),sk={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function l(u){return!r.hiddenColumnNames.includes(u.name)}function s(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=qn(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!i.value){Ve.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=qn(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Nu),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[lk,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(Tl),{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(Mu),{name:"fade-down-list","data-drop-zone":"column-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sortableColumns,(f,_)=>(o.openBlock(),o.createBlock(o.unref(nf),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:o.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":_===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=m=>u.$emit("update:sortable-columns",m))},{default:o.withCtx(()=>[o.createVNode(o.unref(Tl),{column:f,visible:l(f),"is-title":a(f),onVisible:m=>s(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},of={__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))]))}},ak={"!visible":"_!visible_t8iv2_1",visible:"_visible_t8iv2_1",collapse:"_collapse_t8iv2_1",static:"_static_t8iv2_1",absolute:"_absolute_t8iv2_1",relative:"_relative_t8iv2_1",sticky:"_sticky_t8iv2_1","bottom-1":"_bottom-1_t8iv2_1","left-0":"_left-0_t8iv2_1","right-0":"_right-0_t8iv2_1","right-1":"_right-1_t8iv2_1","right-4":"_right-4_t8iv2_1","top-0":"_top-0_t8iv2_1","top-1":"_top-1_t8iv2_1","top-4":"_top-4_t8iv2_1","m-2":"_m-2_t8iv2_1","m-4":"_m-4_t8iv2_1","m-auto":"_m-auto_t8iv2_1","mx-1":"_mx-1_t8iv2_1","mx-4":"_mx-4_t8iv2_1","mx-auto":"_mx-auto_t8iv2_1","my-2":"_my-2_t8iv2_1","!mr-1":"_!mr-1_t8iv2_1","mb-1":"_mb-1_t8iv2_1","mb-2":"_mb-2_t8iv2_1","mb-4":"_mb-4_t8iv2_1","ml-1":"_ml-1_t8iv2_1","ml-2":"_ml-2_t8iv2_1","ml-2.5":"_ml-2.5_t8iv2_1","ml-3":"_ml-3_t8iv2_1","ml-4":"_ml-4_t8iv2_1","ml-5":"_ml-5_t8iv2_1","ml-[-.2em]":"_ml-[-.2em]_t8iv2_1","mr-1":"_mr-1_t8iv2_1","mr-2":"_mr-2_t8iv2_1","mr-3":"_mr-3_t8iv2_1","mr-4":"_mr-4_t8iv2_1","mt-1":"_mt-1_t8iv2_1","mt-2":"_mt-2_t8iv2_1","mt-3":"_mt-3_t8iv2_1","mt-4":"_mt-4_t8iv2_1",block:"_block_t8iv2_1","inline-block":"_inline-block_t8iv2_1",inline:"_inline_t8iv2_1",flex:"_flex_t8iv2_1",table:"_table_t8iv2_1",hidden:"_hidden_t8iv2_1","h-10":"_h-10_t8iv2_1","h-32":"_h-32_t8iv2_1","h-4":"_h-4_t8iv2_1","h-5":"_h-5_t8iv2_1","h-8":"_h-8_t8iv2_1","h-full":"_h-full_t8iv2_1","max-h-full":"_max-h-full_t8iv2_1","w-10":"_w-10_t8iv2_1","w-16":"_w-16_t8iv2_1","w-2/5":"_w-2/5_t8iv2_1","w-24":"_w-24_t8iv2_1","w-3":"_w-3_t8iv2_1","w-3/5":"_w-3/5_t8iv2_1","w-32":"_w-32_t8iv2_1","w-4":"_w-4_t8iv2_1","w-48":"_w-48_t8iv2_1","w-5":"_w-5_t8iv2_1","w-6":"_w-6_t8iv2_1","w-7":"_w-7_t8iv2_1","w-72":"_w-72_t8iv2_1","w-8":"_w-8_t8iv2_1","w-96":"_w-96_t8iv2_1","w-[13.5rem]":"_w-[13.5rem]_t8iv2_1","w-[35.5rem]":"_w-[35.5rem]_t8iv2_1","w-[6.5rem]":"_w-[6.5rem]_t8iv2_1","w-full":"_w-full_t8iv2_1","!min-w-0":"_!min-w-0_t8iv2_1","max-w-[50em]":"_max-w-[50em]_t8iv2_1","max-w-full":"_max-w-full_t8iv2_1","flex-shrink":"_flex-shrink_t8iv2_1","flex-shrink-0":"_flex-shrink-0_t8iv2_1","flex-grow":"_flex-grow_t8iv2_1",grow:"_grow_t8iv2_1","rotate-180":"_rotate-180_t8iv2_1",transform:"_transform_t8iv2_1","cursor-ew-resize":"_cursor-ew-resize_t8iv2_1","cursor-move":"_cursor-move_t8iv2_1","cursor-not-allowed":"_cursor-not-allowed_t8iv2_1","cursor-ns-resize":"_cursor-ns-resize_t8iv2_1","cursor-pointer":"_cursor-pointer_t8iv2_1",resize:"_resize_t8iv2_1","flex-col":"_flex-col_t8iv2_1","flex-nowrap":"_flex-nowrap_t8iv2_1","items-center":"_items-center_t8iv2_1","items-stretch":"_items-stretch_t8iv2_1","justify-start":"_justify-start_t8iv2_1","justify-end":"_justify-end_t8iv2_1","justify-center":"_justify-center_t8iv2_1","justify-between":"_justify-between_t8iv2_1","gap-y-0":"_gap-y-0_t8iv2_1","gap-y-1":"_gap-y-1_t8iv2_1","space-x-1":"_space-x-1_t8iv2_1","space-x-2":"_space-x-2_t8iv2_1","self-center":"_self-center_t8iv2_1","overflow-auto":"_overflow-auto_t8iv2_1","overflow-hidden":"_overflow-hidden_t8iv2_1","overflow-y-auto":"_overflow-y-auto_t8iv2_70","overflow-x-hidden":"_overflow-x-hidden_t8iv2_1","scroll-smooth":"_scroll-smooth_t8iv2_1","overflow-ellipsis":"_overflow-ellipsis_t8iv2_1","whitespace-nowrap":"_whitespace-nowrap_t8iv2_1",rounded:"_rounded_t8iv2_1","rounded-2xl":"_rounded-2xl_t8iv2_1","rounded-lg":"_rounded-lg_t8iv2_1","rounded-md":"_rounded-md_t8iv2_1","!rounded-l-none":"_!rounded-l-none_t8iv2_1","!rounded-r-none":"_!rounded-r-none_t8iv2_1","rounded-b-lg":"_rounded-b-lg_t8iv2_1","rounded-t-lg":"_rounded-t-lg_t8iv2_1","rounded-t-md":"_rounded-t-md_t8iv2_1","!border-0":"_!border-0_t8iv2_1",border:"_border_t8iv2_1","border-b":"_border-b_t8iv2_1","border-l":"_border-l_t8iv2_1","border-l-0":"_border-l-0_t8iv2_1","border-r":"_border-r_t8iv2_1","border-solid":"_border-solid_t8iv2_1","border-dashed":"_border-dashed_t8iv2_1","border-none":"_border-none_t8iv2_1","border-blue-600":"_border-blue-600_t8iv2_1","border-blue-700":"_border-blue-700_t8iv2_1","border-gray-200":"_border-gray-200_t8iv2_1","border-gray-300":"_border-gray-300_t8iv2_1","border-slate-200":"_border-slate-200_t8iv2_1","bg-black":"_bg-black_t8iv2_1","bg-blue-200":"_bg-blue-200_t8iv2_1","bg-blue-600":"_bg-blue-600_t8iv2_1","bg-emerald-200":"_bg-emerald-200_t8iv2_1","bg-gray-100":"_bg-gray-100_t8iv2_1","bg-gray-200":"_bg-gray-200_t8iv2_1","bg-gray-400":"_bg-gray-400_t8iv2_1","bg-gray-500":"_bg-gray-500_t8iv2_1","bg-green-200":"_bg-green-200_t8iv2_1","bg-green-300":"_bg-green-300_t8iv2_1","bg-red-200":"_bg-red-200_t8iv2_1","bg-red-300":"_bg-red-300_t8iv2_1","bg-red-900":"_bg-red-900_t8iv2_1","bg-slate-100":"_bg-slate-100_t8iv2_1","bg-slate-500":"_bg-slate-500_t8iv2_1","bg-transparent":"_bg-transparent_t8iv2_1","bg-white":"_bg-white_t8iv2_1","bg-yellow-300":"_bg-yellow-300_t8iv2_1","!p-2":"_!p-2_t8iv2_1","p-0":"_p-0_t8iv2_1","p-1":"_p-1_t8iv2_1","p-2":"_p-2_t8iv2_1","p-3":"_p-3_t8iv2_1","p-4":"_p-4_t8iv2_1","!py-0":"_!py-0_t8iv2_1","px-1":"_px-1_t8iv2_1","px-12":"_px-12_t8iv2_1","px-2":"_px-2_t8iv2_1","px-2.5":"_px-2.5_t8iv2_1","px-4":"_px-4_t8iv2_1","px-6":"_px-6_t8iv2_1","px-8":"_px-8_t8iv2_1","py-1":"_py-1_t8iv2_1","py-14":"_py-14_t8iv2_1","py-2":"_py-2_t8iv2_1","py-3":"_py-3_t8iv2_1","py-4":"_py-4_t8iv2_1","py-8":"_py-8_t8iv2_1","pl-1":"_pl-1_t8iv2_1","pl-2":"_pl-2_t8iv2_1","pt-3":"_pt-3_t8iv2_1","text-left":"_text-left_t8iv2_1","text-center":"_text-center_t8iv2_1","text-[1rem]":"_text-[1rem]_t8iv2_1","text-sm":"_text-sm_t8iv2_1","text-xs":"_text-xs_t8iv2_1","font-bold":"_font-bold_t8iv2_1","font-medium":"_font-medium_t8iv2_1","font-semibold":"_font-semibold_t8iv2_1",uppercase:"_uppercase_t8iv2_1","leading-[1.2rem]":"_leading-[1.2rem]_t8iv2_1","!text-green-900":"_!text-green-900_t8iv2_1","!text-red-900":"_!text-red-900_t8iv2_1","!text-white":"_!text-white_t8iv2_1","!text-yellow-900":"_!text-yellow-900_t8iv2_1","text-blue-600":"_text-blue-600_t8iv2_1","text-blue-900":"_text-blue-900_t8iv2_1","text-gray-300":"_text-gray-300_t8iv2_1","text-gray-400":"_text-gray-400_t8iv2_1","text-gray-500":"_text-gray-500_t8iv2_1","text-gray-600":"_text-gray-600_t8iv2_1","text-gray-700":"_text-gray-700_t8iv2_1","text-green-700":"_text-green-700_t8iv2_1","text-red-400":"_text-red-400_t8iv2_1","text-red-800":"_text-red-800_t8iv2_1","text-red-900":"_text-red-900_t8iv2_1","text-slate-500":"_text-slate-500_t8iv2_1","text-white":"_text-white_t8iv2_1","text-yellow-600":"_text-yellow-600_t8iv2_1","text-zinc-500":"_text-zinc-500_t8iv2_1","text-zinc-800":"_text-zinc-800_t8iv2_1","line-through":"_line-through_t8iv2_1","opacity-0":"_opacity-0_t8iv2_1","opacity-20":"_opacity-20_t8iv2_1","opacity-50":"_opacity-50_t8iv2_1","opacity-70":"_opacity-70_t8iv2_1","shadow-none":"_shadow-none_t8iv2_1","outline-none":"_outline-none_t8iv2_1",outline:"_outline_t8iv2_1",filter:"_filter_t8iv2_1",transition:"_transition_t8iv2_1","transition-all":"_transition-all_t8iv2_1","duration-300":"_duration-300_t8iv2_1","danx-app":"_danx-app_t8iv2_4","q-tab":"_q-tab_t8iv2_4","q-table__card":"_q-table__card_t8iv2_7","q-checkbox__inner":"_q-checkbox__inner_t8iv2_11","q-toolbar":"_q-toolbar_t8iv2_14","q-notification__actions":"_q-notification__actions_t8iv2_19","q-date":"_q-date_t8iv2_22","q-date__view":"_q-date__view_t8iv2_25","q-field":"_q-field_t8iv2_28","q-field--auto-height":"_q-field--auto-height_t8iv2_28","q-field__control":"_q-field__control_t8iv2_28","q-field__native":"_q-field__native_t8iv2_31","q-field--labeled":"_q-field--labeled_t8iv2_35","q-field__control-container":"_q-field__control-container_t8iv2_35","q-textarea":"_q-textarea_t8iv2_38","q-field__marginal":"_q-field__marginal_t8iv2_41","q-field__input":"_q-field__input_t8iv2_41","q-field__label":"_q-field__label_t8iv2_41","q-btn":"_q-btn_t8iv2_45","q-item":"_q-item_t8iv2_53","q-tab-panels":"_q-tab-panels_t8iv2_57","q-panel":"_q-panel_t8iv2_61",scroll:"_scroll_t8iv2_64","q-tab-panel":"_q-tab-panel_t8iv2_57","dx-dialog":"_dx-dialog_t8iv2_74","q-card__section--vert":"_q-card__section--vert_t8iv2_74","q-banner":"_q-banner_t8iv2_78",app:"_app_t8iv2_1","main-layout":"_main-layout_t8iv2_1","is-disabled":"_is-disabled_t8iv2_95","disable-all-transitions":"_disable-all-transitions_t8iv2_100","v-enter-active":"_v-enter-active_t8iv2_104","v-leave-active":"_v-leave-active_t8iv2_105","v-enter-from":"_v-enter-from_t8iv2_109","v-leave-to":"_v-leave-to_t8iv2_110","category-toggle":"_category-toggle_t8iv2_114","has-visible-columns":"_has-visible-columns_t8iv2_117","hover:bg-blue-200":"_hover:bg-blue-200_t8iv2_1","hover:bg-gray-200":"_hover:bg-gray-200_t8iv2_1","hover:bg-green-100":"_hover:bg-green-100_t8iv2_1","hover:bg-red-100":"_hover:bg-red-100_t8iv2_1","hover:bg-red-200":"_hover:bg-red-200_t8iv2_1","hover:bg-slate-200":"_hover:bg-slate-200_t8iv2_1","hover:bg-slate-300":"_hover:bg-slate-300_t8iv2_1","hover:text-blue-500":"_hover:text-blue-500_t8iv2_1","hover:text-blue-600":"_hover:text-blue-600_t8iv2_1","hover:opacity-100":"_hover:opacity-100_t8iv2_1","focus:bg-blue-200":"_focus:bg-blue-200_t8iv2_1"},ck={class:"flex items-center flex-nowrap"},uk=["onClick"],dk={class:"text-xs"},fk=_t({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(""),l=o.computed(()=>[...new Set(r.columns.map(m=>m.category)).values()]);function s(m){return r.columns.filter(h=>h.category===m)}function a(m){return s(m).filter(h=>!h.required).map(h=>h.name).some(h=>!r.hiddenColumnNames.includes(h))}function c(m){let h=s(m).filter(y=>!y.required);const p=h.filter(y=>!r.hiddenColumnNames.includes(y.name));return p.length===0?!1:p.length===h.length?!0:null}function u(m,h){m=m.filter(y=>!y.required);let p=[...r.hiddenColumnNames];h?p=p.filter(y=>!m.map(k=>k.name).includes(y)):p=[...new Set([...p,...m.map(y=>y.name)])],n("update:hidden-column-names",p)}function d(m,h){if(r.columns.find(y=>y.name===m).required)return;h=h??r.hiddenColumnNames.includes(m);let p=[...r.hiddenColumnNames];h?p=qn(p,m):(p.push(m),p=[...new Set(p)]),n("update:hidden-column-names",p)}const f=o.useCssModule();function _(m){return f["category-toggle"]+(a(m)?" "+f["has-visible-columns"]:"")}return(m,h)=>{const p=o.resolveComponent("QCheckbox"),y=o.resolveComponent("QList"),k=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",ck,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,w=>(o.openBlock(),o.createElementBlock("div",{key:w,class:o.normalizeClass(_(w))},[o.createVNode(p,{"toggle-indeterminate":"",size:"20px","model-value":c(w),class:"mr-2 cb-white-border",onClick:C=>u(s(w),!a(w))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(w),1),o.createVNode(o.unref(gu),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":i.value===w}])},null,8,["class"]),o.createVNode(k,{"onUpdate:modelValue":C=>i.value=C?w:""},{default:o.withCtx(()=>[o.createVNode(y,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s(w),C=>(o.openBlock(),o.createElementBlock("div",{key:C,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:T=>d(C.name)},[o.createVNode(p,{"model-value":!t.hiddenColumnNames.includes(C.name),class:"mr-3 cb-white-border",size:"20px",color:C.required?"gray-400":"blue-600",disable:C.required,onClick:T=>d(C.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",dk,o.toDisplayString(C.label),1)],8,uk))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:ak}]]),_k={key:0,class:"text-red-900 ml-1 text-xs bottom-1 relative"},st=o.defineComponent({__name:"FieldLabel",props:{field:{},label:{},showName:{type:Boolean},required:{type:Boolean}},setup(t){const e=t,n=o.computed(()=>{var i;return e.label||((i=e.field)==null?void 0:i.label)}),r=o.computed(()=>{var i,l;return((i=e.field)==null?void 0:i.required_group)||(e.required||(l=e.field)!=null&&l.required?"*":"")});return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,[o.renderSlot(i.$slots,"default",{},()=>{var s;return[o.createTextVNode(o.toDisplayString(n.value)+" ",1),i.showName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("("+o.toDisplayString((s=i.field)==null?void 0:s.name)+")",1)],64)):o.createCommentVNode("",!0)]}),r.value?(o.openBlock(),o.createElementBlock("span",_k,o.toDisplayString(r.value),1)):o.createCommentVNode("",!0)]))}}),El={__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(st),{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"])}}},mk={for:"first_name",class:"form-label"},pk={class:"mt-1"},vl={__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",mk,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",pk,[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"])])])}}},hk={__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(vl),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16,["name","model-value"]))}},gk={key:0,class:"font-bold text-xs mb-2"},yk={class:"flex items-center cursor-pointer"},bk={class:"font-bold ml-3 hover:text-blue-600"},Bl={__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?tt(Rr(r.modelValue||"0000-00-00")):null),l=o.ref(r.modelValue);o.watch(()=>r.modelValue,a=>l.value=a);function s(){n("update:model-value",l.value)}return(a,c)=>{const u=o.resolveComponent("QDate"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",gk,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",yk,[o.createVNode(o.unref(vu),{class:"w-5 text-blue-600"}),o.createElementVNode("div",bk,[l.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>l.value=f),s]},null,8,["modelValue"])]),_:1})])}}},xk={class:"mb-2"},kk={class:"flex items-center cursor-pointer"},wk={class:"font-bold ml-3 hover:text-blue-600"},Il={__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:tt(Ko(a.value.from||"0000-00-00")),to:tt(Ko(a.value.to||"9999-12-31"))}:{from:tt(Rr(a.value.from||"0000-00-00")),to:tt(Rr(a.value.to||"9999-12-31"))}:{from:null,to:null}),l=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,u=>l.value=s(u));function s(u){return u!=null&&u.from&&(u!=null&&u.to)?tt(u.from)===tt(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof l.value=="string"?u={from:l.value,to:l.value}:l.value&&(u={from:l.value.from,to:l.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=o.resolveComponent("QDate"),_=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",xk,[o.createVNode(o.unref(st),{label:t.label},null,8,["label"])]),t.inline?(o.openBlock(),o.createBlock(f,{key:0,modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>l.value=m),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",kk,[o.createVNode(o.unref(vu),{class:"w-5 text-blue-600"}),o.createElementVNode("div",wk,[a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(i.value.from)+" - "+o.toDisplayString(i.value.to),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))])]),o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=m=>l.value=m),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}},Sk={class:"flex items-center justify-center"},Ck={key:0,class:"flex-grow"},Nl={__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:()=>Jo(Xo(r.modelValue)),set(l){const s=l?Jo(ka(l)):null;(s||r.nullable)&&n("update:modelValue",s)}});return(l,s)=>{const a=o.resolveComponent("QBtn"),c=o.resolveComponent("QDate"),u=o.resolveComponent("QTime"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",Sk,[t.nullable?(o.openBlock(),o.createElementBlock("div",Ck,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:s[0]||(s[0]=f=>i.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:s[1]||(s[1]=f=>l.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:s[2]||(s[2]=f=>l.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Tk={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.ref(r.modelValue);function s(){n("update:model-value",l.value),i.value=!1}return(a,c)=>{const u=o.resolveComponent("QPopupProxy"),d=o.resolveComponent("QIcon"),f=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{"model-value":o.unref(kn)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>i.value=!0)},{append:o.withCtx(()=>[o.createVNode(d,{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value=_)},{default:o.withCtx(()=>[o.createVNode(o.unref(Nl),{modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=_=>l.value=_),onCancel:c[1]||(c[1]=_=>i.value=!1),onSave:s},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Ek={__name:"EditableDiv",props:{modelValue:{type:String,required:!0},debounceDelay:{type:Number,default:500}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.modelValue),l=zn(()=>{n("update:model-value",i.value),n("change",i.value)},r.debounceDelay);function s(a){i.value=a.target.innerText,l()}return(a,c)=>(o.openBlock(),o.createElementBlock("div",{contenteditable:"",class:"inline-block hover:bg-blue-200 focus:bg-blue-200 transition duration-300 outline-none",onInput:s},o.toDisplayString(i.value),33))}},vk={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},Bk=[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 Ik(t,e){return o.openBlock(),o.createElementBlock("svg",vk,[...Bk])}const Nk={render:Ik},Fk={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},Dk=[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 Ok(t,e){return o.openBlock(),o.createElementBlock("svg",Fk,[...Dk])}const $k={render:Ok},Ak=["contenteditable"],Pk={key:0},Mk=_t(o.defineComponent({__name:"EditOnClickTextField",props:o.mergeModels({class:{},editingClass:{},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 l(){r.readonly||(i.value=!0,o.nextTick(()=>{var s;(s=e.value)==null||s.focus()}))}return(s,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":s.readonly,"cursor-pointer":!i.value&&!s.readonly}]),onClick:l},[o.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!s.readonly&&i.value,class:o.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[s.editingClass]:i.value}]),onInput:a[0]||(a[0]=u=>n.value=u.target.innerText)},o.toDisplayString(n.value),43,Ak),s.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Pk,[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(Nk),{class:"w-4"})]),_:1})):(o.openBlock(),o.createBlock(c,{key:1,class:"edit-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref($k),{class:"w-4"})]),_:1}))]))],2)}}}),[["__scopeId","data-v-92dfa3ca"]]),Vk=["accept","capture"],Lk={__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:s});const r=n,i=t,l=o.ref(null);function s(){l.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new ro(c).onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});i.geolocation&&await u.resolveLocation(i.locationWaitMessage),u.upload()}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(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(L2),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:l,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,Vk)]),_:3},16))}},Rk={class:"inline-block"},Uk={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},zk={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(i){n("update:model-value",i.value),n("save",i.value),i.set()}return(i,l)=>{const s=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",Rk,[o.createElementVNode("div",Uk,[o.createTextVNode(o.toDisplayString(o.unref(kn)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(mu),{class:"w-4 font-bold ml-2 text-gray-400"}),o.createVNode(s,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:o.withCtx(a=>[o.createVNode(o.unref(Nl),{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"])])])}}},yr={__name:"NumberField",props:{modelValue:{type:[String,Number],default:""},precision:{type:Number,default:2},label:{type:String,default:void 0},field:{type:Object,default:null},inputClass:{type:[String,Object],default:""},delay:{type:Number,default:1e3},hidePrependLabel:Boolean,currency:Boolean,showName:Boolean},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(s(r.modelValue));o.watch(()=>r.modelValue,()=>i.value=s(r.modelValue));const l=o.computed(()=>r.field||{label:r.label||"",placeholder:"",id:""});function s(u){var _;if(!u&&u!==0&&u!=="0")return u;const d=Math.min(r.precision,((_=(""+u).split(".")[1])==null?void 0:_.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Ct(u,f)}const a=zn(u=>n("update",u),r.delay);function c(u){let d="";if(u.match(/[^\d.,$]/)){const f=i.value;return i.value+=" ",o.nextTick(()=>i.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=Number(u),i.value=s(d)),d=d===""?void 0:d,n("update:model-value",d),a(d)}return(u,d)=>{const f=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(f,{class:o.normalizeClass(["dx-number-field max-w-full",{"dx-no-prepend-label":t.hidePrependLabel,"dx-prepend-label":!t.hidePrependLabel}]),"model-value":i.value,"data-testid":"number-field-"+l.value.id,placeholder:l.value.placeholder,outlined:"",dense:"",inputmode:"numeric","input-class":t.inputClass,"onUpdate:modelValue":c},{prepend:o.withCtx(()=>[o.createVNode(o.unref(st),{field:l.value,"show-name":t.showName},null,8,["field","show-name"])]),_:1},8,["class","model-value","data-testid","placeholder","input-class"])}}},lf={__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(yr),{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"]))}},qk={class:"text-xs font-bold"},jk={__name:"LabelValueBlock",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",qk,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)]))}},Gk={class:"max-w-[50em] flex items-stretch justify-start"},Hk={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"},Zk=o.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),Wk={key:1,class:"p-1"},sf=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:l,onFilesSelected:s,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=uu();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((..._)=>o.unref(l)&&o.unref(l)(..._),["prevent"]))},[o.createVNode(o.unref(st),{field:d.field,label:d.label,"show-name":d.showName,class:"text-sm font-semibold"},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]=(..._)=>o.unref(s)&&o.unref(s)(..._))},null,544)):o.createCommentVNode("",!0),o.createElementVNode("div",Gk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),_=>(o.openBlock(),o.createBlock(o.unref(rr),{key:"file-upload-"+_.id,class:o.normalizeClass(["w-32 h-32 m-2 cursor-pointer bg-gray-200",{"border border-dashed border-blue-600":!o.unref(a).length}]),file:_,"related-files":o.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:m=>o.unref(u)(_)},null,8,["class","file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(o.openBlock(),o.createElementBlock("div",Hk,[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]=_=>d.$refs.file.click())},[o.createElementVNode("div",null,[o.createVNode(o.unref(Di),{class:"w-10 m-auto"}),Zk])]),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]=(..._)=>o.unref(c)&&o.unref(c)(..._))},[o.createVNode(o.unref(lo),{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",Wk," -- ")):o.createCommentVNode("",!0)])],34))}}),br=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),l=o.ref(null),s=o.ref(!1),a=o.computed(()=>{let x=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(x=[{label:r.placeholder,value:null},...r.options]),x=x.map(g=>{let S=o.isRef(g)?g.value:g;return{label:m(S),value:p(S),selectionLabel:h(S)}}),x}),c=o.computed(()=>l.value&&!r.filterFn?a.value.filter(x=>{var g;return x.label.toLocaleLowerCase().indexOf((g=l.value)==null?void 0:g.toLowerCase())>-1}):a.value),u=o.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(g=>g===null?"__null__":g)||[]:r.modelValue===null?"__null__":r.modelValue),d=o.computed(()=>{let x=u.value;return r.multiple||(x=x||x===0?[x]:[]),a.value.filter(g=>{var S;return x.includes(g.value)||x.map(E=>typeof E=="object"&&E.id).includes((S=g.value)==null?void 0:S.id)})}),f=o.computed(()=>r.filterable&&s.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=o.computed(()=>d.value.slice(0,r.chipLimit));function m(x){return typeof x=="string"?x:typeof r.optionLabel=="string"?x[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(x):x==null?void 0:x.label}function h(x){return typeof x=="string"?x:typeof r.selectionLabel=="string"?x[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(x):(x==null?void 0:x.selectionLabel)||(x==null?void 0:x.label)}function p(x){if(!x||typeof x=="string")return x;let g=x.value;return typeof r.optionValue=="string"?g=x[r.optionValue]:typeof r.optionValue=="function"&&(g=r.optionValue(x)),g===null?"__null__":g}function y(x){Array.isArray(x)&&(x=x.map(g=>g==="__null__"?null:g)),x=x==="__null__"?null:x,n("update",x),n("update:model-value",x)}const k=o.ref(!1);async function w(x,g){if(!r.filterFn)l.value=x,await o.nextTick(g);else{if(g(),k.value===!1)return;x!==null&&x!==l.value&&(l.value=x,r.filterFn&&await r.filterFn(x))}}function C(){n("update:model-value",void 0),n("update",void 0)}function T(){s.value=!0,k.value=!1,o.nextTick(()=>{k.value=!0,i.value.focus()})}function v(){s.value=!1,k.value=!1}return(x,g)=>{const S=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[x.label?(o.openBlock(),o.createBlock(o.unref(st),{key:0,label:x.label,class:"mb-1 block"},null,8,["label"])):o.createCommentVNode("",!0),o.createVNode(o.unref(J.QSelect),o.mergeProps({ref_key:"selectField",ref:i},x.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":x.filterable,"hide-selected":x.filterable&&s.value&&!x.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!s.value,[x.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:w,onClear:C,onPopupShow:T,onPopupHide:v,"onUpdate:modelValue":y}),{append:o.withCtx(()=>[o.createVNode(o.unref(I2),{class:o.normalizeClass(["w-4 transition",s.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[x.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden",{"flex-nowrap gap-y-0":x.chipLimit===1,[x.selectionClass]:!0}])},[_.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,E=>(o.openBlock(),o.createBlock(S,{key:"selected-"+E.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(o.openBlock(),o.createBlock(S,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-_.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(x.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(x.selectionClass)},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),af=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(Ct)(e.length))+" / "+o.toDisplayString(o.unref(Ct)(e.maxLength))+" characters ",3)):o.createCommentVNode("",!0)}}),So=o.defineComponent({__name:"TextField",props:{modelValue:{default:""},field:{default:null},type:{default:"text"},label:{default:""},labelClass:{default:""},parentClass:{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)=>{var i,l,s,a;const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(st),{field:e.field,label:e.label,"show-name":e.showName,class:o.normalizeClass([e.labelClass,"mb-1 block"]),value:e.readonly?e.modelValue:""},null,8,["field","label","show-name","class","value"]),e.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(r,{placeholder:(i=e.field)==null?void 0:i.placeholder,outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,class:o.normalizeClass(e.parentClass),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax||(l=e.field)==null?void 0:l.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=o.withKeys(c=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=c=>e.$emit("update:model-value",c))},null,8,["placeholder","readonly","autogrow","disable","label-slot","input-class","class","type","model-value","maxlength","debounce"]),o.createVNode(o.unref(af),{length:((s=e.modelValue)==null?void 0:s.length)||0,"max-length":(a=e.field)==null?void 0:a.maxLength},null,8,["length","max-length"])],64))])}}}),cf={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(r.field.defaultOption),l=o.computed(()=>r.modelValue&&r.modelValue[i.value]),s=o.ref(c());function a(){var u;s.value=((u=s.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",s.value?{[i.value]:s.value.split(",")}:void 0)}function c(){var u;return Array.isArray(l.value)?(u=l.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{s.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(br),{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(So),{modelValue:s.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>s.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","parent-class":"tight-label","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},Yk={__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(vl),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":i[0]||(i[0]=l=>r.$emit("update:model-value",l))}),null,16))}},Qk={key:0,class:"font-bold text-xs mb-2"},Xk={class:"flex items-center flex-nowrap cursor-pointer"},Kk={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},Co={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,i=o.computed(()=>r.currency?"$":r.percent?"%":""),l=o.computed(()=>({id:"min-field",name:"from",label:"Min"+i.value,placeholder:"0"})),s=o.computed(()=>({id:"max-field",name:"to",label:"Max"+i.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?N2:r.percent?wu:P2)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(_){const m=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*m:void 0,to:_!=null&&_.to?_.to*m:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?ei(_):r.percent?wa(_,{multiplier:1,maximumFractionDigits:2}):Ct(_)}const f=zn(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let m={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",m)}},r.debounce);return(_,m)=>{const h=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",Qk,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Xk,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",Kk,[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(h,null,{default:o.withCtx(()=>[o.createVNode(o.unref(yr),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=p=>c.value.from=p),o.unref(f)],field:l.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(yr),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=p=>c.value.to=p),o.unref(f)],class:"mt-2",field:s.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Jk=["data-dusk","onClick"],ew={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,i=o.ref(!1),l=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function s(d){return d.value===void 0?d:d.value}function a(d){return l.value.find(f=>f.value===d).label}function c(d){const f=s(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=s(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(m=>m!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=o.resolveComponent("QCheckbox"),m=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref($i),{show:i.value,"onUpdate:show":f[0]||(f[0]=h=>i.value=h),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,h=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+h.value,"data-dusk":"drawer-opt-"+h.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:p=>u(h)},[o.createVNode(_,{"model-value":c(h),class:"mr-2",onClick:o.withModifiers(p=>u(h),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:h},()=>[o.createTextVNode(o.toDisplayString(h.label),1)])],8,Jk))),128))]),_:3},8,["show","title"]),o.createVNode(m,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=h=>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)])}}},tw={key:0,class:"text-zinc-500"},nw={key:1},rw={class:"text-xs text-zinc-500"},uf=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 l=o.ref(i()),s=o.ref(r.modelValue||[]);function a(u){s.value.includes(u.id)?s.value=qn(s.value,u.id):s.value.push(u.id),n("update:model-value",s.value.length>0?s.value:void 0)}function c(){s.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{l.value=i(),s.value=u||[]}),(u,d)=>{const f=o.resolveComponent("QCheckbox");return o.openBlock(),o.createElementBlock("div",null,[!u.loading&&!u.options.length?(o.openBlock(),o.createElementBlock("div",tw," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(br),{modelValue:l.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>l.value=_),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":_=>_,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),l.value?(o.openBlock(),o.createElementBlock("div",nw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value.children,_=>(o.openBlock(),o.createBlock(f,{key:_.id,"model-value":s.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":m=>a(_)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(_.label),1),o.createElementVNode("div",rw,o.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}}),ow={key:0,class:"text-sm mt-2"},iw={key:2,class:"py-1"},df={__name:"SingleFileField",props:{modelValue:{type:[Object,String],default:null},field:{type:Object,required:!0},showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:i,onDrop:l,onFileSelected:s,uploadedFile:a,clearUploadedFile:c}=fu();return i(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!t.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(l)&&o.unref(l)(...f),["prevent"]))},[o.createVNode(o.unref(st),{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",ow,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(s)&&o.unref(s)(...f))},null,544)])):o.createCommentVNode("",!0),!t.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(rr),{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",iw," -- ")):o.createCommentVNode("",!0)],34))}},lw={class:"dx-slider-number-field"},sw=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,l)=>{const s=o.resolveComponent("QSlider");return o.openBlock(),o.createElementBlock("div",lw,[o.createVNode(o.unref(st),{label:i.label,field:i.field},null,8,["label","field"]),o.createVNode(s,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 aw=["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"],cw=function(t){return aw.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},uw=function(t,e,n){Object.keys(e).filter(cw).forEach(function(r){var i=e[r];typeof i=="function"&&(r==="onInit"?i(t,n):n.on(r.substring(2),function(l){return i(l,n)}))})},dw=function(t,e,n,r){var i=t.modelEvents?t.modelEvents:null,l=Array.isArray(i)?i.join(" "):i;o.watch(r,function(s,a){n&&typeof s=="string"&&s!==a&&s!==n.getContent({format:t.outputFormat})&&n.setContent(s)}),n.on(l||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},fw=function(t,e,n,r,i,l){r.setContent(l()),n.attrs["onUpdate:modelValue"]&&dw(e,n,r,i),uw(t,n.attrs,r)},ff=0,_f=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return ff++,t+"_"+n+ff+String(e)},_w=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},mf=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},mw=function(t,e){return mf(t).concat(mf(e))},pw=function(t){return t==null},pf=function(){return{listeners:[],scriptId:_f("tiny-script"),scriptLoaded:!1}},hw=function(){var t=pf(),e=function(i,l,s,a){var c=l.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=i,c.src=s;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),l.head&&l.head.appendChild(c)},n=function(i,l,s){t.scriptLoaded?s():(t.listeners.push(s),i.getElementById(t.scriptId)||e(t.scriptId,i,l,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=pf()};return{load:n,reinitialize:r}},gw=hw(),yw=function(){return typeof window<"u"?window:global},cn=function(){var t=yw();return t&&t.tinymce?t.tinymce:null},bw={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"}}},at=function(){return at=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},at.apply(this,arguments)},xw=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},kw=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},Fl={selector:void 0,target:void 0},ww=o.defineComponent({props:bw,setup:function(t,e){var n=t.init?at(at({},t.init),Fl):at({},Fl),r=o.toRefs(t),i=r.disabled,l=r.modelValue,s=r.tagName,a=o.ref(null),c=null,u=t.id||_f("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,m=t.initialValue?t.initialValue:"",h="",p=function(w){return f?function(){return l!=null&&l.value?l.value:""}:function(){return w?m:h}},y=function(){var w=p(_),C=at(at({},n),{readonly:t.disabled,target:a.value,plugins:mw(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(T){c=T,T.on("init",function(v){return fw(v,t,e,T,l,w)}),typeof n.setup=="function"&&n.setup(T)}});_w(a.value)&&(a.value.style.visibility=""),cn().init(C),_=!1};o.watch(i,function(w){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(w?"readonly":"design"):c.setMode(w?"readonly":"design"))}),o.watch(s,function(w){var C;f||(h=c.getContent()),(C=cn())===null||C===void 0||C.remove(c),o.nextTick(function(){return y()})}),o.onMounted(function(){if(cn()!==null)y();else if(a.value&&a.value.ownerDocument){var w=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",T=pw(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(w,"/tinymce.min.js"):t.tinymceScriptSrc;gw.load(a.value.ownerDocument,T,y)}}),o.onBeforeUnmount(function(){cn()!==null&&cn().remove(c)}),d||(o.onActivated(function(){_||y()}),o.onDeactivated(function(){var w;f||(h=c.getContent()),(w=cn())===null||w===void 0||w.remove(c)}));var k=function(w){var C;h=c.getContent(),(C=cn())===null||C===void 0||C.remove(c),n=at(at(at({},n),w),Fl),o.nextTick(function(){return y()})};return e.expose({rerender:k,getEditor:function(){return c}}),function(){return d?xw(o.h,u,a,t.tagName):kw(o.h,u,a)}}});const Sw=["innerHTML"],hf={__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(st),{key:0,field:t.field,"show-name":t.showName,class:"text-sm font-semibold text-gray-700 block mb-2"},null,8,["field","show-name"])),t.readonly?(o.openBlock(),o.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Sw)):(o.openBlock(),o.createBlock(o.unref(ww),{key:2,class:"mt-2","api-key":o.unref(ue).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"]))]))}},Cw={key:1,class:"mt-2"},Tw={class:"text-xs font-bold"},Ew=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),Dl=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(l){let s=l||void 0;switch(r.field.type){case"multi-select":s=l&&l.length>0?l:void 0;break;case"single-select":case"boolean":s=l===null?void 0:l;break}n("update:model-value",s)}return(l,s)=>{var a;return o.openBlock(),o.createElementBlock("div",null,[l.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[((a=l.field.options)==null?void 0:a.length)>0||l.loading?(o.openBlock(),o.createBlock(o.unref(br),{key:0,"model-value":l.modelValue,options:l.field.options,clearable:l.field.clearable===void 0?!0:l.field.clearable,multiple:"",loading:l.loading,"chip-limit":1,filterable:"",placeholder:l.field.placeholder,label:l.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",Cw,[o.createElementVNode("div",Tw,o.toDisplayString(l.field.label),1),Ew]))],64)):l.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(br),{key:1,"model-value":l.modelValue,options:l.field.options,clearable:l.field.clearable===void 0?!0:l.field.clearable,placeholder:l.field.placeholder,loading:l.loading,label:l.field.label,"onUpdate:modelValue":i},null,8,["model-value","options","clearable","placeholder","loading","label"])):l.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(Bl),{key:2,"model-value":l.modelValue,label:l.field.label,class:"mt-2","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(Il),{key:3,"model-value":l.modelValue,label:l.field.label,inline:!!l.field.inline,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":i},null,8,["model-value","label","inline"])):l.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:4,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:5,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(Co),{key:6,"model-value":l.modelValue,label:l.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":i},null,8,["model-value","label"])):l.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(El),{key:7,field:l.field,"model-value":l.modelValue,class:"mt-2","toggle-indeterminate":l.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":i},null,8,["field","model-value","toggle-indeterminate"])):l.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(cf),{key:8,"model-value":l.modelValue,field:l.field,"onUpdate:modelValue":i},null,8,["model-value","field"])):l.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(uf),{key:9,"model-value":l.modelValue,options:l.field.options,loading:l.loading,label:l.field.label,placeholder:l.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(l.field.name)+'": Unknown filter type '+o.toDisplayString(l.field.type),1)],64))])}}}),vw={class:"flex items-center flex-nowrap flex-grow"},Bw={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},gf={__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",vw,[o.createElementVNode("div",Bw,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})}}},Iw={class:"px-4 py-2 max-w-full"},yf={__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 s={};for(const a of r.filters)s[a.name]=a.fields.filter(c=>r.activeFilter[c.name]!==void 0).length;return s});function l(s,a){let c={[s.name]:a};s.filterBy&&(c=s.filterBy(a)),n("update:filter",{...r.activeFilter,...c})}return(s,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",Iw,[(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,_=>(o.openBlock(),o.createBlock(o.unref(Dl),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.activeFilter):t.activeFilter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(gf),{key:1,name:d.name,count:i.value[d.name]},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.fields,_=>(o.openBlock(),o.createBlock(o.unref(Dl),{key:"field-"+_.name,"model-value":_.calcValue?_.calcValue(t.activeFilter):t.activeFilter[_.name],field:_,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>l(_,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},bf=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(Du),{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(yf),{"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"]))}}),Nw={class:"flex-grow"},xf=_t({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=o.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,i)=>{const l=o.resolveComponent("QBadge"),s=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[o.createElementVNode("div",Nw,[o.createVNode(s,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:i[0]||(i[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(xu),{class:"w-5 mr-2"}),o.createVNode(l,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:i[1]||(i[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Fw={class:"w-full flex justify-end items-center flex-nowrap border-b"},Dw={class:"flex-grow"},Ow={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},$w={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function i(){n("update:show-filters",!r.showFilters)}return(l,s)=>(o.openBlock(),o.createElementBlock("div",Fw,[o.createVNode(o.unref(xf),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":i,"onUpdate:filter":s[0]||(s[0]=a=>l.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",Dw,[o.renderSlot(l.$slots,"default")]),l.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",Ow,[l.$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(l.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},Aw={class:"dx-rendered-form"},Pw={key:0,class:"mb-4"},Mw={class:"flex flex-nowrap items-center text-sm w-full"},Vw={key:0,class:"variation-missing-icon pl-1"},Lw={class:"flex-grow"},Rw={key:1,class:"flex flex-nowrap items-center mr-2"},Uw=["onClick"],zw=["onClick"],qw=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:null}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,i={BOOLEAN:El,DATE:Bl,DATE_RANGE:Il,INTEGER:lf,NUMBER:yr,TEXT:So,SINGLE_FILE:df,MULTI_FILE:sf,WYSIWYG:hf},l=n.form.fields.map(g=>({placeholder:`Enter ${g.label}`,...g,component:g.component||i[g.type],default:g.type==="BOOLEAN"?!1:""})),s=o.computed(()=>n.values?Array.isArray(n.values)?n.values:Object.entries(n.values).map(([g,S])=>({name:g,value:S,variation:""})):[]);function a(g){return{modelValue:p(g.name),label:g.label,clearable:g.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const c=o.computed(()=>{const g=[...new Set(s.value.map(S=>S.variation))].sort();return g.length===0&&g.push(""),g}),u=o.ref(c.value[0]||""),d=o.ref(""),f=o.ref(!1),_=o.ref(""),m=o.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&c.value.length<n.form.variations);function h(g,S=void 0){if(s.value)return s.value.find(E=>E.variation===(S!==void 0?S:u.value)&&E.name===g)}function p(g){var S;return(S=h(g))==null?void 0:S.value}function y(g,S){const E=h(g),F={name:g,variation:u.value||"",value:S===void 0?n.emptyValue:S},L=Eo(s.value,E,F,!0);T(L)}function k(g){return n.form.fields.map(S=>({variation:g,name:S.name,value:S.type==="BOOLEAN"?!1:null}))}function w(){if(n.saving)return;let g=[...s.value];g.length===0&&(g=k(""));const S=c.value[c.value.length-1],E=Ul(S||"1"),F=k(E);T([...g,...F]),u.value=E}function C(){if(!d.value)return;if(c.value.includes(d.value)){Ve.error("Variation name already exists");return}const g=s.value.map(S=>S.variation===f.value?{...S,variation:d.value}:S);T(g),u.value=d.value,f.value=!1,d.value=""}function T(g){let S=g;Array.isArray(n.values)||(S=g.reduce((E,F)=>(E[F.name]=F.value,E),{})),r("update:values",S)}function v(g){if(!g)return;const S=s.value.filter(E=>E.variation!==g);T(S),u.value===g&&(u.value=c.value[0]),_.value=""}function x(g){const S={};return n.form.fields.filter(E=>E.required||E.required_group).every(E=>{const F=h(E.name,g),L=!!F&&F.value!==null;return E.required_group?S[E.required_group]?!0:S[E.required_group]=L:L})}return(g,S)=>{const E=o.resolveComponent("QTooltip"),F=o.resolveComponent("QTab"),L=o.resolveComponent("QSpinnerBall"),q=o.resolveComponent("QTabs"),j=o.resolveComponent("QSpinnerPie");return o.openBlock(),o.createElementBlock("div",Aw,[g.form.variations>1?(o.openBlock(),o.createElementBlock("div",Pw,[o.createVNode(q,{modelValue:u.value,"onUpdate:modelValue":S[0]||(S[0]=O=>u.value=O),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(O,K)=>(o.openBlock(),o.createBlock(F,{key:O,name:O,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",Mw,[x(O)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Vw,[o.createVNode(o.unref(_u),{class:"text-red-400 w-4"}),o.createVNode(E,null,{default:o.withCtx(()=>[o.createTextVNode("Creative Form Incomplete")]),_:1})])),o.createElementVNode("div",Lw,o.toDisplayString(O||"1"),1),!g.disable&&!g.readonly&&g.canModifyVariations?(o.openBlock(),o.createElementBlock("div",Rw,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(f.value=O)&&(d.value=O)},[o.createVNode(o.unref(mu),{class:"w-3 text-blue-900"})],8,Uw),K>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:Y=>_.value=O},[o.createVNode(o.unref(lo),{class:"w-3 text-red-900"})],8,zw)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(o.openBlock(),o.createBlock(F,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:w},{default:o.withCtx(()=>[g.saving?(o.openBlock(),o.createBlock(L,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(O,K)=>(o.openBlock(),o.createElementBlock("div",{key:O.id,class:o.normalizeClass({"mt-4":K>0,[g.fieldClass]:!0})},[O.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:O.vnode,field:O,props:a(O),"onUpdate:modelValue":Y=>y(O.name,Y)},null,8,["vnode","field","props","onUpdate:modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(O.component),{key:O.name+"-"+u.value,"model-value":p(O.name),field:O,label:O.label||void 0,"no-label":g.noLabel,"show-name":g.showName,clearable:O.clearable||g.clearable,disable:g.disable,readonly:g.readonly,"onUpdate:modelValue":Y=>y(O.name,Y)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2))),128)),g.savedAt?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([g.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[g.saving?o.renderSlot(g.$slots,"saving",{key:0},()=>[o.createTextVNode(" Saving... "),o.createVNode(j,{class:"ml-2"})]):o.renderSlot(g.$slots,"saved",{key:1},()=>[o.createTextVNode(" Saved at "+o.toDisplayString(o.unref(Ur)(g.savedAt,{format:"M/d/yy h:mm:ssa"})),1)])],2)):o.createCommentVNode("",!0),f.value!==!1?(o.openBlock(),o.createBlock(o.unref(In),{key:2,title:"Change variation name",onConfirm:C,onClose:S[2]||(S[2]=O=>f.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(So),{modelValue:d.value,"onUpdate:modelValue":S[1]||(S[1]=O=>d.value=O),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),_.value?(o.openBlock(),o.createBlock(o.unref(In),{key:3,title:`Remove variation ${_.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:S[3]||(S[3]=O=>v(_.value)),onClose:S[4]||(S[4]=O=>_.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}}),kf=o.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},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,l=>(o.openBlock(),o.createBlock(r,{key:l.name,name:l.name},{default:o.withCtx(()=>[l.vnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:0,vnode:l.vnode},null,8,["vnode"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),wf=_t(o.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},panels:{}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(r,{class:o.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",e.cls["panel-tabs"]]),"model-value":e.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":n[0]||(n[0]=i=>e.$emit("update:model-value",i))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.panels,i=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.enabled===void 0||i.enabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.tabVnode?(o.openBlock(),o.createBlock(o.unref(Qt),{key:i.name,vnode:i.tabVnode(e.modelValue),"is-active":e.modelValue===i.name,name:i.name,label:i.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(J.QTab),{key:i.name,name:i.name,label:i.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_d1yoe_1",visible:"_visible_d1yoe_1",collapse:"_collapse_d1yoe_1",static:"_static_d1yoe_1",absolute:"_absolute_d1yoe_1",relative:"_relative_d1yoe_1",sticky:"_sticky_d1yoe_1","bottom-1":"_bottom-1_d1yoe_1","left-0":"_left-0_d1yoe_1","right-0":"_right-0_d1yoe_1","right-1":"_right-1_d1yoe_1","right-4":"_right-4_d1yoe_1","top-0":"_top-0_d1yoe_1","top-1":"_top-1_d1yoe_1","top-4":"_top-4_d1yoe_1","m-2":"_m-2_d1yoe_1","m-4":"_m-4_d1yoe_1","m-auto":"_m-auto_d1yoe_1","mx-1":"_mx-1_d1yoe_1","mx-4":"_mx-4_d1yoe_1","mx-auto":"_mx-auto_d1yoe_1","my-2":"_my-2_d1yoe_1","!mr-1":"_!mr-1_d1yoe_1","mb-1":"_mb-1_d1yoe_1","mb-2":"_mb-2_d1yoe_1","mb-4":"_mb-4_d1yoe_1","ml-1":"_ml-1_d1yoe_1","ml-2":"_ml-2_d1yoe_1","ml-2.5":"_ml-2.5_d1yoe_1","ml-3":"_ml-3_d1yoe_1","ml-4":"_ml-4_d1yoe_1","ml-5":"_ml-5_d1yoe_1","ml-[-.2em]":"_ml-[-.2em]_d1yoe_1","mr-1":"_mr-1_d1yoe_1","mr-2":"_mr-2_d1yoe_1","mr-3":"_mr-3_d1yoe_1","mr-4":"_mr-4_d1yoe_1","mt-1":"_mt-1_d1yoe_1","mt-2":"_mt-2_d1yoe_1","mt-3":"_mt-3_d1yoe_1","mt-4":"_mt-4_d1yoe_1",block:"_block_d1yoe_1","inline-block":"_inline-block_d1yoe_1",inline:"_inline_d1yoe_1",flex:"_flex_d1yoe_1",table:"_table_d1yoe_1",hidden:"_hidden_d1yoe_1","h-10":"_h-10_d1yoe_1","h-32":"_h-32_d1yoe_1","h-4":"_h-4_d1yoe_1","h-5":"_h-5_d1yoe_1","h-8":"_h-8_d1yoe_1","h-full":"_h-full_d1yoe_1","max-h-full":"_max-h-full_d1yoe_1","w-10":"_w-10_d1yoe_1","w-16":"_w-16_d1yoe_1","w-2/5":"_w-2/5_d1yoe_1","w-24":"_w-24_d1yoe_1","w-3":"_w-3_d1yoe_1","w-3/5":"_w-3/5_d1yoe_1","w-32":"_w-32_d1yoe_1","w-4":"_w-4_d1yoe_1","w-48":"_w-48_d1yoe_1","w-5":"_w-5_d1yoe_1","w-6":"_w-6_d1yoe_1","w-7":"_w-7_d1yoe_1","w-72":"_w-72_d1yoe_1","w-8":"_w-8_d1yoe_1","w-96":"_w-96_d1yoe_1","w-[13.5rem]":"_w-[13.5rem]_d1yoe_1","w-[35.5rem]":"_w-[35.5rem]_d1yoe_1","w-[6.5rem]":"_w-[6.5rem]_d1yoe_1","w-full":"_w-full_d1yoe_1","!min-w-0":"_!min-w-0_d1yoe_1","max-w-[50em]":"_max-w-[50em]_d1yoe_1","max-w-full":"_max-w-full_d1yoe_1","flex-shrink":"_flex-shrink_d1yoe_1","flex-shrink-0":"_flex-shrink-0_d1yoe_1","flex-grow":"_flex-grow_d1yoe_1",grow:"_grow_d1yoe_1","rotate-180":"_rotate-180_d1yoe_1",transform:"_transform_d1yoe_1","cursor-ew-resize":"_cursor-ew-resize_d1yoe_1","cursor-move":"_cursor-move_d1yoe_1","cursor-not-allowed":"_cursor-not-allowed_d1yoe_1","cursor-ns-resize":"_cursor-ns-resize_d1yoe_1","cursor-pointer":"_cursor-pointer_d1yoe_1",resize:"_resize_d1yoe_1","flex-col":"_flex-col_d1yoe_1","flex-nowrap":"_flex-nowrap_d1yoe_1","items-center":"_items-center_d1yoe_1","items-stretch":"_items-stretch_d1yoe_1","justify-start":"_justify-start_d1yoe_1","justify-end":"_justify-end_d1yoe_1","justify-center":"_justify-center_d1yoe_1","justify-between":"_justify-between_d1yoe_1","gap-y-0":"_gap-y-0_d1yoe_1","gap-y-1":"_gap-y-1_d1yoe_1","space-x-1":"_space-x-1_d1yoe_1","space-x-2":"_space-x-2_d1yoe_1","self-center":"_self-center_d1yoe_1","overflow-auto":"_overflow-auto_d1yoe_1","overflow-hidden":"_overflow-hidden_d1yoe_1","overflow-y-auto":"_overflow-y-auto_d1yoe_70","overflow-x-hidden":"_overflow-x-hidden_d1yoe_1","scroll-smooth":"_scroll-smooth_d1yoe_1","overflow-ellipsis":"_overflow-ellipsis_d1yoe_1","whitespace-nowrap":"_whitespace-nowrap_d1yoe_1",rounded:"_rounded_d1yoe_1","rounded-2xl":"_rounded-2xl_d1yoe_1","rounded-lg":"_rounded-lg_d1yoe_1","rounded-md":"_rounded-md_d1yoe_1","!rounded-l-none":"_!rounded-l-none_d1yoe_1","!rounded-r-none":"_!rounded-r-none_d1yoe_1","rounded-b-lg":"_rounded-b-lg_d1yoe_1","rounded-t-lg":"_rounded-t-lg_d1yoe_1","rounded-t-md":"_rounded-t-md_d1yoe_1","!border-0":"_!border-0_d1yoe_1",border:"_border_d1yoe_1","border-b":"_border-b_d1yoe_1","border-l":"_border-l_d1yoe_1","border-l-0":"_border-l-0_d1yoe_1","border-r":"_border-r_d1yoe_1","border-solid":"_border-solid_d1yoe_1","border-dashed":"_border-dashed_d1yoe_1","border-none":"_border-none_d1yoe_1","border-blue-600":"_border-blue-600_d1yoe_1","border-blue-700":"_border-blue-700_d1yoe_1","border-gray-200":"_border-gray-200_d1yoe_1","border-gray-300":"_border-gray-300_d1yoe_1","border-slate-200":"_border-slate-200_d1yoe_1","bg-black":"_bg-black_d1yoe_1","bg-blue-200":"_bg-blue-200_d1yoe_1","bg-blue-600":"_bg-blue-600_d1yoe_1","bg-emerald-200":"_bg-emerald-200_d1yoe_1","bg-gray-100":"_bg-gray-100_d1yoe_1","bg-gray-200":"_bg-gray-200_d1yoe_1","bg-gray-400":"_bg-gray-400_d1yoe_1","bg-gray-500":"_bg-gray-500_d1yoe_1","bg-green-200":"_bg-green-200_d1yoe_1","bg-green-300":"_bg-green-300_d1yoe_1","bg-red-200":"_bg-red-200_d1yoe_1","bg-red-300":"_bg-red-300_d1yoe_1","bg-red-900":"_bg-red-900_d1yoe_1","bg-slate-100":"_bg-slate-100_d1yoe_1","bg-slate-500":"_bg-slate-500_d1yoe_1","bg-transparent":"_bg-transparent_d1yoe_1","bg-white":"_bg-white_d1yoe_1","bg-yellow-300":"_bg-yellow-300_d1yoe_1","!p-2":"_!p-2_d1yoe_1","p-0":"_p-0_d1yoe_1","p-1":"_p-1_d1yoe_1","p-2":"_p-2_d1yoe_1","p-3":"_p-3_d1yoe_1","p-4":"_p-4_d1yoe_1","!py-0":"_!py-0_d1yoe_1","px-1":"_px-1_d1yoe_1","px-12":"_px-12_d1yoe_1","px-2":"_px-2_d1yoe_1","px-2.5":"_px-2.5_d1yoe_1","px-4":"_px-4_d1yoe_1","px-6":"_px-6_d1yoe_1","px-8":"_px-8_d1yoe_1","py-1":"_py-1_d1yoe_1","py-14":"_py-14_d1yoe_1","py-2":"_py-2_d1yoe_1","py-3":"_py-3_d1yoe_1","py-4":"_py-4_d1yoe_1","py-8":"_py-8_d1yoe_1","pl-1":"_pl-1_d1yoe_1","pl-2":"_pl-2_d1yoe_1","pt-3":"_pt-3_d1yoe_1","text-left":"_text-left_d1yoe_1","text-center":"_text-center_d1yoe_1","text-[1rem]":"_text-[1rem]_d1yoe_1","text-sm":"_text-sm_d1yoe_1","text-xs":"_text-xs_d1yoe_1","font-bold":"_font-bold_d1yoe_1","font-medium":"_font-medium_d1yoe_1","font-semibold":"_font-semibold_d1yoe_1",uppercase:"_uppercase_d1yoe_1","leading-[1.2rem]":"_leading-[1.2rem]_d1yoe_1","!text-green-900":"_!text-green-900_d1yoe_1","!text-red-900":"_!text-red-900_d1yoe_1","!text-white":"_!text-white_d1yoe_1","!text-yellow-900":"_!text-yellow-900_d1yoe_1","text-blue-600":"_text-blue-600_d1yoe_1","text-blue-900":"_text-blue-900_d1yoe_1","text-gray-300":"_text-gray-300_d1yoe_1","text-gray-400":"_text-gray-400_d1yoe_1","text-gray-500":"_text-gray-500_d1yoe_1","text-gray-600":"_text-gray-600_d1yoe_1","text-gray-700":"_text-gray-700_d1yoe_1","text-green-700":"_text-green-700_d1yoe_1","text-red-400":"_text-red-400_d1yoe_1","text-red-800":"_text-red-800_d1yoe_1","text-red-900":"_text-red-900_d1yoe_1","text-slate-500":"_text-slate-500_d1yoe_1","text-white":"_text-white_d1yoe_1","text-yellow-600":"_text-yellow-600_d1yoe_1","text-zinc-500":"_text-zinc-500_d1yoe_1","text-zinc-800":"_text-zinc-800_d1yoe_1","line-through":"_line-through_d1yoe_1","opacity-0":"_opacity-0_d1yoe_1","opacity-20":"_opacity-20_d1yoe_1","opacity-50":"_opacity-50_d1yoe_1","opacity-70":"_opacity-70_d1yoe_1","shadow-none":"_shadow-none_d1yoe_1","outline-none":"_outline-none_d1yoe_1",outline:"_outline_d1yoe_1",filter:"_filter_d1yoe_1",transition:"_transition_d1yoe_1","transition-all":"_transition-all_d1yoe_1","duration-300":"_duration-300_d1yoe_1","danx-app":"_danx-app_d1yoe_4","q-tab":"_q-tab_d1yoe_4","q-table__card":"_q-table__card_d1yoe_7","q-checkbox__inner":"_q-checkbox__inner_d1yoe_11","q-toolbar":"_q-toolbar_d1yoe_14","q-notification__actions":"_q-notification__actions_d1yoe_19","q-date":"_q-date_d1yoe_22","q-date__view":"_q-date__view_d1yoe_25","q-field":"_q-field_d1yoe_28","q-field--auto-height":"_q-field--auto-height_d1yoe_28","q-field__control":"_q-field__control_d1yoe_28","q-field__native":"_q-field__native_d1yoe_31","q-field--labeled":"_q-field--labeled_d1yoe_35","q-field__control-container":"_q-field__control-container_d1yoe_35","q-textarea":"_q-textarea_d1yoe_38","q-field__marginal":"_q-field__marginal_d1yoe_41","q-field__input":"_q-field__input_d1yoe_41","q-field__label":"_q-field__label_d1yoe_41","q-btn":"_q-btn_d1yoe_45","q-item":"_q-item_d1yoe_53","q-tab-panels":"_q-tab-panels_d1yoe_57","q-panel":"_q-panel_d1yoe_61",scroll:"_scroll_d1yoe_64","q-tab-panel":"_q-tab-panel_d1yoe_57","dx-dialog":"_dx-dialog_d1yoe_74","q-card__section--vert":"_q-card__section--vert_d1yoe_74","q-banner":"_q-banner_d1yoe_78",app:"_app_d1yoe_1","main-layout":"_main-layout_d1yoe_1","is-disabled":"_is-disabled_d1yoe_95","disable-all-transitions":"_disable-all-transitions_d1yoe_100","v-enter-active":"_v-enter-active_d1yoe_104","v-leave-active":"_v-leave-active_d1yoe_105","v-enter-from":"_v-enter-from_d1yoe_109","v-leave-to":"_v-leave-to_d1yoe_110","panel-tabs":"_panel-tabs_d1yoe_114","hover:bg-blue-200":"_hover:bg-blue-200_d1yoe_1","hover:bg-gray-200":"_hover:bg-gray-200_d1yoe_1","hover:bg-green-100":"_hover:bg-green-100_d1yoe_1","hover:bg-red-100":"_hover:bg-red-100_d1yoe_1","hover:bg-red-200":"_hover:bg-red-200_d1yoe_1","hover:bg-slate-200":"_hover:bg-slate-200_d1yoe_1","hover:bg-slate-300":"_hover:bg-slate-300_d1yoe_1","hover:text-blue-500":"_hover:text-blue-500_d1yoe_1","hover:text-blue-600":"_hover:text-blue-600_d1yoe_1","hover:opacity-100":"_hover:opacity-100_d1yoe_1","focus:bg-blue-200":"_focus:bg-blue-200_d1yoe_1"}}]]),jw={class:"flex flex-col flex-nowrap h-full"},Gw={class:"dx-panels-drawer-header flex items-center px-6 py-4"},Hw={class:"flex-grow"},Zw={key:0,class:"mr-4"},Ww={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},Yw={class:"flex items-stretch flex-nowrap h-full"},Qw={key:0,class:"border-l overflow-y-auto"},Sf=o.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},activeItem:{default:null},tabsClass:{default:"w-[13.5rem]"},panelsClass:{default:"w-[35.5rem]"},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,l)=>{const s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref($i),{position:"right",show:!0,overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":l[3]||(l[3]=a=>i.$emit("close"))},{default:o.withCtx(()=>{var a;return[o.createElementVNode("div",jw,[o.createElementVNode("div",Gw,[o.createElementVNode("div",Hw,[o.renderSlot(i.$slots,"header",{},()=>[o.createElementVNode("h2",null,o.toDisplayString(i.title),1)])]),i.$slots.controls?(o.openBlock(),o.createElementBlock("div",Zw,[o.renderSlot(i.$slots,"controls")])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(s,{class:"dx-close-button",onClick:l[0]||(l[0]=c=>i.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(so),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[(o.openBlock(),o.createBlock(o.unref(wf),{key:"pd-tabs:"+i.activeItem.id,modelValue:n.value,"onUpdate:modelValue":[l[1]||(l[1]=c=>n.value=c),l[2]||(l[2]=c=>i.$emit("update:model-value",c))],class:o.normalizeClass(i.tabsClass),panels:i.panels},null,8,["modelValue","class","panels"])),(o.openBlock(),o.createBlock(o.unref(kf),{key:"pd-panels:"+i.activeItem.id,panels:i.panels,"active-panel":n.value,class:o.normalizeClass(((a=r.value)==null?void 0:a.class)||i.panelsClass)},null,8,["panels","active-panel","class"])),i.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",Qw,[o.renderSlot(i.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])])])]}),_:3})}}}),Xw={class:"flex items-center justify-center text-sm py-14 w-full"},Kw={key:0},Jw={key:1},Cf={__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",Xw,[t.loading?(o.openBlock(),o.createElementBlock("div",Kw,[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",Jw,[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 Tf(t){o.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function Ef(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 vf(t,e=null){const n={},r=du("filter",t);if(r){const i=JSON.parse(r);Object.keys(i).forEach(l=>{(!e||e.includes(l))&&(n[l]=i[l])})}return n}const e3={class:"flex flex-nowrap items-center"},t3={class:"relative"},n3={class:"ml-2"},Bf={__name:"TableSummaryRow",props:{loading:Boolean,label:{type:String,default:"Rows"},selectedLabel:{type:String,default:"Selected"},selectedCount:{type:Number,default:0},itemCount:{type:Number,default:0},summary:{type:Object,default:null},columns:{type:Array,required:!0},stickyColspan:{type:Number,default:2}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>e.columns.slice(e.stickyColspan-1));function r(i){const l=e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(o.openBlock(),o.createBlock(o.unref(J.QTr),{class:o.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":t.selectedCount,"is-loading":t.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(J.QTd),{colspan:t.stickyColspan,class:o.normalizeClass(["dx-table-summary-td transition-all",{"has-selection":t.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",e3,[o.createElementVNode("div",t3,[t.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":t.loading},"flex items-center nowrap"])},[t.selectedCount?(o.openBlock(),o.createBlock(o.unref(Gy),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=s=>i.$emit("clear"))})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(o.unref(Ct)(t.selectedCount||t.itemCount)),1)],2)]),o.createElementVNode("div",n3,o.toDisplayString(t.selectedCount?t.selectedLabel:t.label),1)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(o.unref(J.QTd),{key:s.name,align:s.align||"left"},{default:o.withCtx(()=>[t.summary?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(r(s)),1)],64)):o.createCommentVNode("",!0)]),_:2},1032,["align"]))),128))]),_:1},8,["class"]))}},If=_t(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]}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=o.ref(null);Tf(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}),l=`column-settings-${e.name}`,s=o.ref(It(l)||{});function a(){Bt(l,s.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($u)),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:"multiple","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(Ef)(f.pagination,r.value)}))},{"no-data":o.withCtx(()=>[o.renderSlot(c.$slots,"empty",{},()=>[o.createVNode(Cf,{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(Bf,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=_=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","loading","summary","columns"])):o.createCommentVNode("",!0)]}),"header-cell":o.withCtx(f=>[o.createVNode(o.unref(rf),{modelValue:s.value,"onUpdate:modelValue":[u[1]||(u[1]=_=>s.value=_),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(f=>[(o.openBlock(),o.createBlock(o.unref(Jd),{key:f.key,"row-props":f,settings:s.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","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-715096d4"]]),r3={class:"dx-action-toolbar flex items-center"},o3={class:"flex-grow px-6"},i3={key:0},l3={class:"py-3 px-6 flex items-center flex-nowrap"},Nf=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",r3,[o.createElementVNode("div",o3,[o.renderSlot(e.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("h4",i3,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",l3,[o.renderSlot(e.$slots,"default"),e.refreshButton?(o.openBlock(),o.createBlock(o.unref(hu),{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(pu),{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(Sl),{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")])]))}}),s3={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},a3={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},c3=o.defineComponent({__name:"ActionTableLayout",props:{title:{},refreshButton:{type:Boolean},showFilters:{type:Boolean},controller:{},columns:{},filters:{},panels:{},actions:{},exporter:{type:Function},panelTitleField:{},tableClass:{}},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||""),l=o.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(s,a)=>(o.openBlock(),o.createElementBlock("div",s3,[o.renderSlot(s.$slots,"top"),o.renderSlot(s.$slots,"toolbar",{},()=>{var c;return[o.createVNode(o.unref(Nf),{title:s.title,"refresh-button":s.refreshButton,actions:(c=s.actions)==null?void 0:c.filter(u=>u.batch),"action-target":s.controller.selectedRows.value,exporter:s.controller.exportList,loading:s.controller.isLoadingList.value||s.controller.isLoadingSummary.value,onRefresh:s.controller.refreshAll},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","actions","action-target","exporter","loading","onRefresh"])]}),o.createElementVNode("div",a3,[o.renderSlot(s.$slots,"filters",{},()=>[n.value?(o.openBlock(),o.createBlock(o.unref(bf),{key:0,name:s.controller.name,"show-filters":s.showFilters,filters:s.filters,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":s.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):o.createCommentVNode("",!0)]),o.renderSlot(s.$slots,"default",{},()=>[o.createVNode(o.unref(If),{class:o.normalizeClass(["flex-grow",s.tableClass]),pagination:s.controller.pagination.value,"selected-rows":s.controller.selectedRows.value,label:s.controller.label,name:s.controller.name,summary:s.controller.summary.value,"loading-list":s.controller.isLoadingList.value,"loading-summary":s.controller.isLoadingSummary.value,"paged-items":s.controller.pagedItems.value,columns:s.columns,"onUpdate:selectedRows":s.controller.setSelectedRows,"onUpdate:pagination":s.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","summary","loading-list","loading-summary","paged-items","columns","onUpdate:selectedRows","onUpdate:pagination"])]),o.renderSlot(s.$slots,"panels",{},()=>[r.value&&s.panels?(o.openBlock(),o.createBlock(o.unref(Sf),{key:0,title:l.value,"model-value":i.value,"active-item":r.value,panels:s.panels,"onUpdate:modelValue":a[0]||(a[0]=c=>s.controller.activatePanel(r.value,c)),onClose:a[1]||(a[1]=c=>s.controller.setActiveItem(null))},{controls:o.withCtx(()=>[o.createVNode(o.unref(Eu),{"is-loading":s.controller.isLoadingList.value,onNext:s.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","active-item","panels"])):o.createCommentVNode("",!0)])])]))}});function u3(t,e){let n=!1,r,i;const l=`dx-${t}-pager`,s=o.shallowRef(null),a=o.ref({}),c=o.ref({}),u=o.ref(!1),d=o.shallowRef([]),f=o.ref(!1),_=o.ref(!1),m=o.shallowRef(null),h=o.shallowRef(null),p=o.shallowRef(""),y=o.ref({}),k=o.ref(!1),w=o.computed(()=>Object.keys(a.value).filter(B=>a.value[B]!==void 0).length),C={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},T=o.shallowRef(C),v=o.computed(()=>({perPage:T.value.rowsPerPage,page:T.value.page,filter:{...a.value,...c.value},sort:T.value.__sort||void 0}));o.watch(v,()=>{Vt(),x()}),o.watch(a,()=>{Vt(),g()}),o.watch(d,g),e.refreshFilters&&o.watch(a,F);async function x(){if(n){f.value=!0;try{q(await e.routes.list(v.value)),f.value=!1}catch{}}}async function g(){if(!e.routes.summary||!n)return;_.value=!0;const B={id:null,...a.value,...c.value};d.value.length&&(B.id=d.value.map(R=>R.id));try{m.value=await e.routes.summary(B),_.value=!1}catch{}}async function S(){await Promise.all([x(),g()])}function E(B){return y.value[B]||[]}async function F(){if(!(!e.routes.fieldOptions||!n)){k.value=!0;try{y.value=await e.routes.fieldOptions(a.value)||{},k.value=!1}catch{}}}function L(B,R=null){var H;if(e.urlPattern&&B.match(e.urlPattern)){const xe=(H=R==null?void 0:R.value)==null?void 0:H.map(Me=>Me.fields.map(To=>To.name)).flat(),ct=vf(B,xe);Object.keys(ct).length>0&&(a.value=ct,Un("filter",a.value))}}function q(B){let R=[],H;Array.isArray(B)?(R=B,H={total:B.length}):B.data&&(R=B.data,H=B.meta),H&&H.total!==T.value.rowsNumber&&(T.value.rowsNumber=H.total),R=R.map(xe=>(xe.isSaving=xe.isSaving===void 0?!1:xe.isSaving,ut(xe))),s.value={data:R,meta:H}}function j(){T.value=C}function O(B){T.value=B}function K(B){d.value=B}function Y(){d.value=[]}async function ce(B,R=void 0){var H,xe,ct;if(!e.routes.more)return!1;try{const Me=await e.routes.more({page:B+1,perPage:R,filter:{...a.value,...c.value}});if(Me&&Me.length>0)return q({data:[...((H=s.value)==null?void 0:H.data)||[],...Me],meta:{total:((ct=(xe=s.value)==null?void 0:xe.meta)==null?void 0:ct.total)||0}}),!0}catch{}return!1}async function Pe(){return Promise.all([x(),g(),F(),Je()])}function Un(B,R){const H=It(l)||{};H[B]=R,Bt(l,H)}function un(){if(!n)return;const B=It(l);B?(a.value={...B.filter,...a.value},T.value=B.pagination):a.value={...e.filterDefaults,...a.value},setTimeout(()=>{f.value||x(),_.value||g(),k.value||F()},1)}async function Vt(){const B={filter:a.value,pagination:{...T.value,page:1}};Bt(l,B)}async function Je(){if(!(!h.value||!e.routes.details))try{const B=await e.routes.details(h.value);if(!B||!B.__type||!B.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",B);h.value=ut(B)}catch{}}e.routes.details&&o.watch(()=>h.value,async(B,R)=>{B&&(R==null?void 0:R.id)!==B.id&&await Je()});function xr(B,R=""){var H;(B==null?void 0:B.id)===((H=h.value)==null?void 0:H.id)&&R===p.value||(Ze(B),p.value=R,B!=null&&B.id&&Df({id:B.id,panel:R}))}function Ze(B){h.value=B&&ut(B),B!=null&&B.id||Df({})}async function yt(B){var xe,ct,Me,To;if(!((xe=s.value)!=null&&xe.data))return;const R=s.value.data.findIndex(N3=>{var $f;return N3.id===(($f=h.value)==null?void 0:$f.id)});if(R==null)return;let H=R+B;if(H<0)if(T.value.page>1)T.value={...T.value,page:T.value.page-1},await vo(f,!1),H=s.value.data.length-1;else return;if(H>=s.value.data.length)if(T.value.page<(((Me=(ct=s.value)==null?void 0:ct.meta)==null?void 0:Me.last_page)||1))T.value={...T.value,page:T.value.page+1},await vo(f,!1),H=0;else return;h.value=(To=s.value)==null?void 0:To.data[H]}function v3(B){a.value=B||{}}async function B3(B){e.routes.export&&await e.routes.export(B)}function I3(B){var R;if(i=B==null?void 0:B.vueRouter,r=(R=B==null?void 0:B.vueRouter)==null?void 0:R.currentRoute.value,n=!0,un(),e.routes.details&&r&&i){const{params:H,meta:xe}=r,ct=r.name;i.afterEach(Me=>{Me.name===ct&&Of(Me.params,Me.meta)}),Of(H,xe)}}function Df(B){i&&r&&i.push({name:(Array.isArray(r.name)?r.name[0]:r.name)||"home",params:B})}function Of(B,R){const H=Array.isArray(B==null?void 0:B.id)?B.id[0]:B==null?void 0:B.id;if(H&&R.type){const xe=Array.isArray(B==null?void 0:B.panel)?B.panel[0]:B==null?void 0:B.panel;xr({id:H,__type:""+R.type},xe||p.value||"")}}return{name:t,label:e.label||t,pagedItems:s,activeFilter:a,globalFilter:c,filterActiveCount:w,showFilters:u,summary:m,selectedRows:d,isLoadingList:f,isLoadingFilters:k,isLoadingSummary:_,pager:v,pagination:T,activeItem:h,activePanel:p,initialize:I3,resetPaging:j,setPagination:O,setSelectedRows:K,clearSelectedRows:Y,loadList:x,loadSummary:g,loadListAndSummary:S,loadMore:ce,getActiveItemDetails:Je,refreshAll:Pe,exportList:B3,setActiveItem:Ze,getNextItem:yt,activatePanel:xr,setActiveFilter:v3,applyFilterFromUrl:L,getFieldOptions:E}}function d3(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,i=`${t}-title-columns`,l=o.ref(It(n)||[]),s=o.ref(It(r,[])),a=o.ref(It(i,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((m,h)=>{const p=l.value.indexOf(m.name),y=l.value.indexOf(h.name);return p===-1?1:y===-1?-1:p-y})),d=o.computed({get(){return u.value.slice(1)},set(m){l.value=[...c.value.map(h=>h.name),...m.map(h=>h.name)],Bt(n,l.value)}}),f=o.computed(()=>u.value.filter(m=>!s.value.includes(m.name))),_=o.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return o.watch(()=>s.value,()=>Bt(r,s.value)),o.watch(()=>a.value,()=>Bt(i,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:s,titleColumnNames:a,orderedTitleColumns:_}}const f3={class:"flex space-x-2"},_3=["innerHTML"],Ol={__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 Ct(r);case"CURRENCY":return ei(r);case"DATE":return tt(r);case"DATETIME":return kn(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,i)=>(o.openBlock(),o.createElementBlock("div",f3,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(rr),{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,l=>(o.openBlock(),o.createBlock(o.unref(rr),{key:"file-"+l.id,file:l,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))]))}},m3={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},p3={class:"flex-grow text-sm w-3/5 overflow-auto"},h3={class:"flex flex-nowrap items-center mt-4"},g3={class:"bg-red-200 line-through p-2"},y3={class:"bg-emerald-200 ml-2.5 p-2"},b3={class:"ml-4 text-sm w-2/5"},x3=["href"],k3={__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",m3,[o.createElementVNode("div",p3,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",h3,[o.createElementVNode("div",g3,[o.createVNode(o.unref(Ol),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",y3,[o.createVNode(o.unref(Ol),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",b3,[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(kn)(t.item.timestamp)),9,x3)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(kn)(t.item.timestamp)),1)],64))])])]))}},w3=["onClick"],S3={key:0,class:"flex-shrink-0"},C3={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=o.computed(()=>e.items.filter(r=>!r.hidden));return(r,i)=>{const l=o.resolveComponent("QTooltip"),s=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+a.label,class:"nav-menu-item-box"},[o.createElementVNode("div",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",a.class||t.itemClass]),onClick:a.onClick},[a.icon?(o.openBlock(),o.createElementBlock("div",S3,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.icon),{class:o.normalizeClass(["nav-icon",a.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",a.labelClass])},o.toDisplayString(a.label),3)),t.collapsed?(o.openBlock(),o.createBlock(l,o.normalizeProps(o.mergeProps({key:2},a.tooltip)),{default:o.withCtx(()=>{var c;return[o.createTextVNode(o.toDisplayString(((c=a.tooltip)==null?void 0:c.text)||a.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,w3),a.separator?(o.openBlock(),o.createBlock(s,{key:"separator-"+a.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},T3={name:"quasar-ui-danx",version:"0.4.7",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"dist/danx.es.js",module:"dist/danx.es.js",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},devDependencies:{"@quasar/extras":"^1.16.4","@types/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"},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:Ff}=T3;function E3(t){console.log(`Installing Danx UI ${Ff}... Nothing to do really.`)}b.ActionMenu=Sl,b.ActionTable=If,b.ActionTableColumn=Jd,b.ActionTableHeaderColumn=rf,b.ActionTableLayout=c3,b.ActionToolbar=Nf,b.ActionVnode=$u,b.AddressFormat=gb,b.AuditHistoryItem=k3,b.AuditHistoryItemValue=Ol,b.BadgeTab=Fb,b.BooleanField=El,b.CaretDownIcon=gu,b.CollapsableFiltersSidebar=bf,b.CollapsableSidebar=Du,b.ColumnListItem=Tl,b.ColumnSettingsDialog=sk,b.ConfirmActionDialog=H2,b.ConfirmDialog=In,b.ConfirmPasswordField=hk,b.ContentDrawer=$i,b.DateField=Bl,b.DateRangeField=Il,b.DateTime=D,b.DateTimeField=Tk,b.DateTimePicker=Nl,b.DragAndDrop=Cl,b.DragHandleDotsIcon=yu,b.DragHandleIcon=bu,b.EditOnClickTextField=Mk,b.EditableDiv=Ek,b.EmptyTableState=Cf,b.ExportButton=pu,b.FieldLabel=st,b.FilePreview=rr,b.FileUpload=ro,b.FileUploadButton=Lk,b.FilterIcon=xu,b.FilterItem=gf,b.FilterList=yf,b.FilterListToggle=xf,b.FilterToolbarLayout=$w,b.FilterableField=Dl,b.FlashMessages=Ve,b.FlatListFormat=yb,b.FullScreenCarouselDialog=Iu,b.FullScreenDialog=J2,b.GpsCoordinatesFormat=kb,b.HandleDraggable=ef,b.IconWithTextFormat=Sb,b.ImageIcon=Di,b.IndicatorTab=$b,b.InfoDialog=Nu,b.InlineDateTimeField=zk,b.InputDialog=tb,b.IntegerField=lf,b.InteractiveTooltip=Bb,b.LabelValueBlock=jk,b.LabelValueFormat=Tb,b.LabeledInput=vl,b.ListDragAndDrop=tf,b.ListItemDraggable=nf,b.ListTransition=Mu,b.MaxHeightTransition=Ab,b.MaxLengthCounter=af,b.MultiFileField=sf,b.MultiKeywordField=cf,b.NavigationMenu=C3,b.NewPasswordField=Yk,b.NumberField=yr,b.NumberRangeField=Co,b.PanelsDrawer=Sf,b.PanelsDrawerPanels=kf,b.PanelsDrawerTabs=wf,b.PdfIcon=ku,b.PercentIcon=wu,b.PopoverMenu=Pu,b.PreviousNextControls=Eu,b.RefreshButton=hu,b.RenderComponent=Au,b.RenderVnode=Qt,b.RenderedForm=qw,b.SERVER_TZ=Qo,b.SelectDrawer=ew,b.SelectField=br,b.SelectWithChildrenField=uf,b.SingleFileField=df,b.SkipNextIcon=Su,b.SkipPreviousIcon=Cu,b.SlideTransition=Pb,b.SliderNumberField=sw,b.StaggeredListTransition=Xx,b.SvgImg=Fu,b.TableSummaryRow=Bf,b.TextField=So,b.TitleColumnFormat=of,b.TrashIcon=lo,b.VisibleColumnsToggleButtons=fk,b.WarningIcon=Tu,b.WysiwygField=hf,b.XIcon=so,b.activeActionVnode=Lt,b.addHotkey=Oy,b.applyCssVars=Ry,b.buildCssVars=Fi,b.centerTruncate=Jm,b.configure=Af,b.danxOptions=ue,b.dbDateTime=Jo,b.diffInDays=np,b.download=zr,b.downloadFile=Ta,b.downloadFileResponse=Ea,b.fCurrency=ei,b.fDate=tt,b.fDateTime=Ur,b.fElapsedTime=Km,b.fJSON=Ca,b.fLocalizedDateTime=kn,b.fMarkdownJSON=tp,b.fNameOrCount=Sa,b.fNumber=Ct,b.fPercent=wa,b.fPhone=ep,b.fQDate=Qm,b.fSecondsToTime=Xm,b.fetchResourceListWithSelected=Vy,b.getFilterFromUrl=vf,b.getItem=It,b.getResponseHeader=ti,b.getUrlParam=du,b.incrementName=Ul,b.install=E3,b.isJSON=zl,b.listen=$y,b.localizedDateTime=Xo,b.mapSortBy=Ef,b.metersToMiles=Yf,b.milesToMeters=Qf,b.minmax=Wf,b.notify=jf,b.parseCoords=Xf,b.parseDateTime=Gt,b.parseQDate=Rr,b.parseQDateTime=Ko,b.refreshApplication=Hf,b.registerHotkeys=Py,b.registerStickyScrolling=Tf,b.remoteDateTime=ka,b.remove=qn,b.replace=Eo,b.request=we,b.resolveFileLocation=su,b.setItem=Bt,b.sleep=Rl,b.storeObject=ut,b.uniqueBy=Zf,b.unlisten=Ay,b.useActionRoutes=Ly,b.useActions=Gf,b.useCompatibility=Gl,b.useListControls=u3,b.useMultiFileUpload=uu,b.useSingleFileUpload=fu,b.useTableColumns=d3,b.version=Ff,b.waitForRef=vo,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|
24
24
|
//# sourceMappingURL=danx.umd.js.map
|