quasar-ui-danx 0.4.49 → 0.4.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/danx.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(k,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(k=typeof globalThis<"u"?globalThis:k||self,i(k.Danx={},k.Vue,k.Quasar))})(this,function(k,i,ee){"use strict";var T8=Object.defineProperty;var B8=(k,i,ee)=>i in k?T8(k,i,{enumerable:!0,configurable:!0,writable:!0,value:ee}):k[i]=ee;var G=(k,i,ee)=>B8(k,typeof i!="symbol"?i+"":i,ee);const re=i.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function tm(t){re.value={...re.value,...t,fileUpload:{...re.value.fileUpload,...t.fileUpload},flashMessages:{...re.value.flashMessages,...t.flashMessages},request:{...re.value.request,...t.request}}}function nm(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function va(t){return typeof t=="function"?t():i.unref(t)}const rm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const La=()=>{};function om(t,e){function n(...r){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return n}function im(t,e={}){let n,r,o=La;const s=a=>{clearTimeout(a),o(),o=La};return a=>{const c=va(t),u=va(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},c)})}}function ln(t,e=200,n={}){return om(im(e,n),t)}const sm=rm?window.navigator:void 0;function lm(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function am(t){const e=lm();return i.computed(()=>(e.value,!!t()))}function cm(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=sm,immediate:s=!0}=t,l=am(()=>o&&"geolocation"in o),a=i.ref(null),c=i.shallowRef(null),u=i.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(p){a.value=p.timestamp,u.value=p.coords,c.value=null}let f;function _(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&_();function h(){f&&o&&o.geolocation.clearWatch(f)}return nm(()=>{h()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:_,pause:h}}const um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function dm(t,e){return i.openBlock(),i.createElementBlock("svg",um,e[0]||(e[0]=[i.createElementVNode("path",{d:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8 62.5-62.5 163.8-62.5 226.3 0l17.1 17.2H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h111.9c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2l-17.5-17.6c-87.5-87.5-229.3-87.5-316.8 0-24.4 24.4-42 53.1-52.8 83.8-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2-4 4-6.7 8.8-8.1 14-.3 1.2-.6 2.5-.8 3.8-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-35.1l17.6 17.5c87.5 87.4 229.3 87.4 316.7 0 24.4-24.4 42.1-53.1 52.9-83.7 5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8-62.5 62.5-163.8 62.5-226.3 0l-.1-.1-17.1-17.1H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4q-2.4 0-4.8.3c-2.4.3-3.1.5-4.6 1"},null,-1)]))}const fm={render:dm},_m={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function hm(t,e){return i.openBlock(),i.createElementBlock("svg",_m,e[0]||(e[0]=[i.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)]))}const Va={render:hm},mm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function pm(t,e){return i.openBlock(),i.createElementBlock("svg",mm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},null,-1)]))}const gm={render:pm},ym={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function bm(t,e){return i.openBlock(),i.createElementBlock("svg",ym,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-81-337c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9"},null,-1)]))}const qa={render:bm},wm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function km(t,e){return i.openBlock(),i.createElementBlock("svg",wm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)]))}const Ra={render:km},xm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Sm(t,e){return i.openBlock(),i.createElementBlock("svg",xm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)]))}const Cm={render:Sm},Em={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function Tm(t,e){return i.openBlock(),i.createElementBlock("svg",Em,e[0]||(e[0]=[i.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)]))}const Bm={render:Tm},Nm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Im(t,e){return i.openBlock(),i.createElementBlock("svg",Nm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)]))}const Fm={render:Im},$m={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Am(t,e){return i.openBlock(),i.createElementBlock("svg",$m,e[0]||(e[0]=[i.createElementVNode("path",{d:"M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113c-9.3-9.4-9.3-24.6 0-34s24.6-9.4 33.9 0L63 101.1l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L63 261.2l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m-64 160c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32M48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96"},null,-1)]))}const Om={render:Am},Dm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function Mm(t,e){return i.openBlock(),i.createElementBlock("svg",Dm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48z"},null,-1)]))}const Pm={render:Mm},vm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Lm(t,e){return i.openBlock(),i.createElementBlock("svg",vm,e[0]||(e[0]=[i.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)]))}const Pn={render:Lm},Vm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function qm(t,e){return i.openBlock(),i.createElementBlock("svg",Vm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41z"},null,-1)]))}const Rm={render:qm},Um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function jm(t,e){return i.openBlock(),i.createElementBlock("svg",Um,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Ua={render:jm},zm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Hm(t,e){return i.openBlock(),i.createElementBlock("svg",zm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 128c0-35.3 28.7-64 64-64h256c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64z"},null,-1)]))}const Gm={render:Hm},Zm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Wm(t,e){return i.openBlock(),i.createElementBlock("svg",Zm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const ja={render:Wm},Ym={class:"flex items-center flex-nowrap"},Km={class:"p-4 bg-slate-600"},Qm={class:"flex items-center flex-nowrap mt-2"},Xm={class:"flex-grow"},Eo=i.defineComponent({__name:"ActionButton",props:{type:{default:null},color:{default:null},size:{default:"md"},icon:{default:null},iconClass:{default:""},label:{default:""},labelClass:{default:""},tooltip:{default:""},saving:{type:Boolean},action:{default:null},target:{default:null},input:{default:null},disabled:{type:Boolean},disabledClass:{default:"text-slate-800 bg-slate-500 opacity-50"},confirm:{type:Boolean},confirmText:{default:"Are you sure?"}},emits:["success","error","always"],setup(t,{emit:e}){const n=e,r=t,o={xxs:{icon:"w-2",button:"px-.5 h-5"},xs:{icon:"w-3",button:"px-1.5 h-6"},sm:{icon:"w-4",button:"px-2 h-8"},md:{icon:"w-5",button:"px-2.5 h-10"},lg:{icon:"w-6",button:"px-3 h-12"}},s=i.computed(()=>({[r.disabled?r.disabledClass:l.value]:!0,[o[r.size].button]:!0})),l=i.computed(()=>{switch(r.color){case"red":return"text-red-900 bg-red-300 hover:bg-red-400";case"lime":return"text-lime-900 bg-lime-300 hover:bg-lime-400";case"green":return"text-green-900 bg-green-300 hover:bg-green-400";case"green-invert":return"text-green-300 bg-green-900 hover:bg-green-800";case"blue":return"text-blue-900 bg-blue-300 hover:bg-blue-400";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";default:return""}}),a=i.computed(()=>{const f=o[r.size].icon;switch(r.type){case"trash":return{icon:ja,iconClass:f};case"create":return{icon:Ua,iconClass:f};case"confirm":return{icon:gm,iconClass:f};case"cancel":return{icon:qa,iconClass:f};case"edit":return{icon:Pn,iconClass:f};case"copy":return{icon:Ra,iconClass:f};case"play":return{icon:Rm,iconClass:f};case"stop":return{icon:Gm,iconClass:f};case"pause":return{icon:Pm,iconClass:f};case"refresh":return{icon:fm,iconClass:f};default:return{icon:Pn,iconClass:f}}}),c=i.computed(()=>r.saving?!0:r.action?r.action.isApplying:r.target?Array.isArray(r.target)?r.target.some(f=>f.isSaving):r.target.isSaving:!1),u=i.ref(!1);function d(f=!1){if(!r.disabled){if(r.confirm&&!f)return u.value=!0,!1;u.value=!1,r.action?r.action.trigger(r.target,r.input).then(async _=>{n("success",typeof _.json=="function"?await _.json():_)}).catch(_=>{console.error(`Action emitted an error: ${r.action.name}`,_,r.target),n("error",_)}).finally(()=>{n("always")}):n("always")}}return(f,_)=>{const h=i.resolveComponent("QTooltip"),p=i.resolveComponent("ActionButton",!0),m=i.resolveComponent("QMenu"),g=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(g,{loading:c.value,class:i.normalizeClass(["shadow-none py-0",s.value]),disable:f.disabled,onClick:_[2]||(_[2]=()=>d())},{default:i.withCtx(()=>[i.createElementVNode("div",Ym,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.icon||a.value.icon),{class:i.normalizeClass(["transition-all",f.iconClass+" "+a.value.iconClass])},null,8,["class"])),i.renderSlot(f.$slots,"default",{},()=>[f.label?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ml-2",f.labelClass])},i.toDisplayString(f.label),3)):i.createCommentVNode("",!0)])]),f.tooltip?(i.openBlock(),i.createBlock(h,{key:0,class:"whitespace-nowrap"},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(f.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),u.value?(i.openBlock(),i.createBlock(m,{key:1,"model-value":!0},{default:i.withCtx(()=>[i.createElementVNode("div",Km,[i.createElementVNode("div",null,i.toDisplayString(f.confirmText),1),i.createElementVNode("div",Qm,[i.createElementVNode("div",Xm,[i.createVNode(p,{type:"cancel",color:"gray",onClick:_[0]||(_[0]=w=>u.value=!1)})]),i.createVNode(p,{type:"confirm",color:"green",onClick:_[1]||(_[1]=()=>d(!0))})])])]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function Jm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 za(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 e0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 Ha(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 t0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 n0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 r0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 Ga={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=i.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(o){console.error(o),qe.error("Failed to export data")}n.value=!1}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:i.withCtx(()=>[i.createVNode(i.unref(Jm),{class:"w-5"})]),_:1},8,["loading"])}}},Za=i.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:i.withCtx(()=>[i.createVNode(i.unref(t0),{class:"w-5"})]),_:1},8,["loading"])}}}),es="show-hide-button",To=i.defineComponent({__name:"ShowHideButton",props:i.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},labelClass:{default:"ml-2"},label:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t,s=Ct(es,{});o.name&&s[o.name]!==void 0&&(r.value=s[o.name]);function l(){r.value=!r.value,i.nextTick(()=>{r.value?n("show"):n("hide"),o.name&&(s[o.name]=r.value,vt(es,{...Ct(es,{}),[o.name]:r.value}))})}return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Eo),{icon:r.value?a.hideIcon||i.unref(Cm):a.showIcon||i.unref(Bm),label:(r.value?a.hideLabel:a.showLabel)||a.label,"label-class":a.labelClass,onClick:l},{tooltip:i.withCtx(()=>[i.renderSlot(a.$slots,"tooltip")]),default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},8,["icon","label","label-class"]))}}),o0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function i0(t,e){return i.openBlock(),i.createElementBlock("svg",o0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const Wa={render:i0},s0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function l0(t,e){return i.openBlock(),i.createElementBlock("svg",s0,e[0]||(e[0]=[i.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)]))}const Ya={render:l0},a0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function c0(t,e){return i.openBlock(),i.createElementBlock("svg",a0,e[0]||(e[0]=[i.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)]))}const Ka={render:c0},u0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,e[0]||(e[0]=[i.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)]))}const Qa={render:d0},f0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function _0(t,e){return i.openBlock(),i.createElementBlock("svg",f0,e[0]||(e[0]=[i.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),i.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),i.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)]))}const ts={render:_0},h0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function m0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,e[0]||(e[0]=[i.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),i.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)]))}const Xa={render:m0},p0={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function g0(t,e){return i.openBlock(),i.createElementBlock("svg",p0,e[0]||(e[0]=[i.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)]))}const Ja={render:g0},y0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function b0(t,e){return i.openBlock(),i.createElementBlock("svg",y0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const ec={render:b0},w0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const tc={render:k0},x0={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,e[0]||(e[0]=[i.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)]))}const Bo={render:S0},C0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function E0(t,e){return i.openBlock(),i.createElementBlock("svg",C0,e[0]||(e[0]=[i.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)]))}const nc={render:E0},T0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function B0(t,e){return i.openBlock(),i.createElementBlock("svg",T0,e[0]||(e[0]=[i.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),i.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)]))}const No={render:B0},N0={class:"dx-previous-next-controls"},rc={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",N0,[i.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]=o=>e.$emit("next",-1))},{default:i.withCtx(()=>[i.createVNode(i.unref(tc),{class:"w-6"})]),_:1},8,["disable","loading"]),i.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]=o=>e.$emit("next",1))},{default:i.withCtx(()=>[i.createVNode(i.unref(ec),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function oc(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 I0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function ic(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function F0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 $0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 A0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 O0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 D0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 M0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),i.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 P0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function v0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 L0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function V0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function q0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const R0={class:"flex-grow"},U0={key:1,class:"dx-dialog-subtitle"},j0={class:"flex dx-dialog-actions"},ns=i.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(o,s)=>{const l=i.resolveComponent("QCardSection"),a=i.resolveComponent("QCard"),c=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(c,{class:"dx-dialog","full-height":o.fullHeight,"full-width":o.fullWidth,"model-value":!0,"no-backdrop-dismiss":!o.backdropDismiss,maximized:o.maximized,"onUpdate:modelValue":r},{default:i.withCtx(()=>[i.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:i.withCtx(()=>[i.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:i.withCtx(()=>[i.createElementVNode("div",R0,[o.title||o.$slots.title?(i.openBlock(),i.createElementBlock("h3",{key:0,class:i.normalizeClass(["dx-dialog-title flex items-center",o.titleClass])},[i.renderSlot(o.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(o.title),1)])],2)):i.createCommentVNode("",!0),o.subtitle||o.$slots.subtitle?(i.openBlock(),i.createElementBlock("div",U0,[i.renderSlot(o.$slots,"subtitle",{},()=>[i.createTextVNode(i.toDisplayString(o.subtitle),1)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[i.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[i.createVNode(i.unref(q0),{class:"w-5"})])])]),_:3}),o.$slots.toolbar?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"toolbar")]),_:3})):i.createCommentVNode("",!0),o.content||o.$slots.default?(i.openBlock(),i.createBlock(l,{key:1,class:i.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",o.contentClass])},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.content),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),i.createElementVNode("div",j0,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),z0={class:"dx-dialog-button-cancel"},H0={key:0,class:"dx-dialog-button-confirm"},Tt=i.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,o=i.computed(()=>({...r,disabled:void 0})),s=i.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(ns),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a,onKeyup:i.withKeys(l,["enter"])}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",z0,[i.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),i.renderSlot(c.$slots,"actions"),c.hideConfirm?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",H0,[i.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:i.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[i.renderList(s.value,f=>({name:f,fn:i.withCtx(()=>[i.renderSlot(c.$slots,f)])}))]),1040)}}}),G0=i.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[0]||(r[0]=o=>n.$emit("confirm",{name:e.value})),onClose:r[1]||(r[1]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Sc),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),sc=i.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=i.computed(()=>t_(e.target,e.label||e.action)),r=i.computed(()=>`Confirm ${e.action}`),o=i.computed(()=>`${e.action}`),s=i.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=i.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Tt),i.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||o.value,title:a.title||r.value,content:a.content||s.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:2},[i.renderList(l.value,u=>({name:u,fn:i.withCtx(()=>[i.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),lc=i.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[1]||(r[1]=o=>n.$emit("confirm",{name:e.value})),onClose:r[2]||(r[2]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(an),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),label:"Name"},null,8,["modelValue"]),i.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}}),Z0={"pointer-events-none":"_pointer-events-none_1qcdh_1","!visible":"_!visible_1qcdh_1",visible:"_visible_1qcdh_1",collapse:"_collapse_1qcdh_1",static:"_static_1qcdh_1",absolute:"_absolute_1qcdh_1",relative:"_relative_1qcdh_1",sticky:"_sticky_1qcdh_1","left-0":"_left-0_1qcdh_1","right-0":"_right-0_1qcdh_1","right-1":"_right-1_1qcdh_1","top-0":"_top-0_1qcdh_1","top-1":"_top-1_1qcdh_1","z-10":"_z-10_1qcdh_1","m-2":"_m-2_1qcdh_1","m-4":"_m-4_1qcdh_1","m-auto":"_m-auto_1qcdh_1","mx-1":"_mx-1_1qcdh_1","mx-4":"_mx-4_1qcdh_1","mx-auto":"_mx-auto_1qcdh_1","my-2":"_my-2_1qcdh_1","!mr-1":"_!mr-1_1qcdh_1","mb-2":"_mb-2_1qcdh_1","mb-4":"_mb-4_1qcdh_1","ml-1":"_ml-1_1qcdh_1","ml-2":"_ml-2_1qcdh_1","ml-2.5":"_ml-2.5_1qcdh_1","ml-3":"_ml-3_1qcdh_1","ml-4":"_ml-4_1qcdh_1","ml-5":"_ml-5_1qcdh_1","ml-[-.2em]":"_ml-[-.2em]_1qcdh_1","mr-1":"_mr-1_1qcdh_1","mr-2":"_mr-2_1qcdh_1","mr-3":"_mr-3_1qcdh_1","mr-4":"_mr-4_1qcdh_1","mt-1":"_mt-1_1qcdh_1","mt-2":"_mt-2_1qcdh_1","mt-3":"_mt-3_1qcdh_1","mt-4":"_mt-4_1qcdh_1",block:"_block_1qcdh_1","inline-block":"_inline-block_1qcdh_1",inline:"_inline_1qcdh_1",flex:"_flex_1qcdh_1",table:"_table_1qcdh_1",hidden:"_hidden_1qcdh_1","h-10":"_h-10_1qcdh_1","h-12":"_h-12_1qcdh_1","h-16":"_h-16_1qcdh_1","h-4":"_h-4_1qcdh_1","h-5":"_h-5_1qcdh_1","h-6":"_h-6_1qcdh_1","h-8":"_h-8_1qcdh_1","h-96":"_h-96_1qcdh_1","h-[2.25rem]":"_h-[2.25rem]_1qcdh_1","h-full":"_h-full_1qcdh_1","max-h-full":"_max-h-full_1qcdh_1","min-h-10":"_min-h-10_1qcdh_1","w-10":"_w-10_1qcdh_1","w-16":"_w-16_1qcdh_1","w-2":"_w-2_1qcdh_1","w-2/5":"_w-2/5_1qcdh_1","w-24":"_w-24_1qcdh_1","w-3":"_w-3_1qcdh_1","w-3/4":"_w-3/4_1qcdh_1","w-3/5":"_w-3/5_1qcdh_1","w-32":"_w-32_1qcdh_1","w-4":"_w-4_1qcdh_1","w-48":"_w-48_1qcdh_1","w-5":"_w-5_1qcdh_1","w-6":"_w-6_1qcdh_1","w-7":"_w-7_1qcdh_1","w-72":"_w-72_1qcdh_1","w-8":"_w-8_1qcdh_1","w-96":"_w-96_1qcdh_1","w-[13.5rem]":"_w-[13.5rem]_1qcdh_1","w-[6.5rem]":"_w-[6.5rem]_1qcdh_1","w-full":"_w-full_1qcdh_1","!min-w-0":"_!min-w-0_1qcdh_1","min-w-10":"_min-w-10_1qcdh_1","max-w-full":"_max-w-full_1qcdh_1","flex-shrink":"_flex-shrink_1qcdh_1","flex-shrink-0":"_flex-shrink-0_1qcdh_1",shrink:"_shrink_1qcdh_1","flex-grow":"_flex-grow_1qcdh_1",grow:"_grow_1qcdh_1","rotate-180":"_rotate-180_1qcdh_1",transform:"_transform_1qcdh_1","cursor-ew-resize":"_cursor-ew-resize_1qcdh_1","cursor-move":"_cursor-move_1qcdh_1","cursor-not-allowed":"_cursor-not-allowed_1qcdh_1","cursor-ns-resize":"_cursor-ns-resize_1qcdh_1","cursor-pointer":"_cursor-pointer_1qcdh_1",resize:"_resize_1qcdh_1","flex-col":"_flex-col_1qcdh_1","flex-nowrap":"_flex-nowrap_1qcdh_1","items-center":"_items-center_1qcdh_1","items-stretch":"_items-stretch_1qcdh_1","justify-start":"_justify-start_1qcdh_1","justify-end":"_justify-end_1qcdh_1","justify-center":"_justify-center_1qcdh_1","justify-between":"_justify-between_1qcdh_1","gap-x-1":"_gap-x-1_1qcdh_1","gap-x-4":"_gap-x-4_1qcdh_1","gap-y-0":"_gap-y-0_1qcdh_1","gap-y-1":"_gap-y-1_1qcdh_1","space-x-1":"_space-x-1_1qcdh_1","space-x-2":"_space-x-2_1qcdh_1","self-center":"_self-center_1qcdh_1","overflow-auto":"_overflow-auto_1qcdh_1","overflow-hidden":"_overflow-hidden_1qcdh_1","overflow-y-auto":"_overflow-y-auto_1qcdh_73","overflow-x-hidden":"_overflow-x-hidden_1qcdh_1","scroll-smooth":"_scroll-smooth_1qcdh_1","overflow-ellipsis":"_overflow-ellipsis_1qcdh_1","whitespace-normal":"_whitespace-normal_1qcdh_1","whitespace-nowrap":"_whitespace-nowrap_1qcdh_1",rounded:"_rounded_1qcdh_1","rounded-2xl":"_rounded-2xl_1qcdh_1","rounded-full":"_rounded-full_1qcdh_1","rounded-lg":"_rounded-lg_1qcdh_1","rounded-md":"_rounded-md_1qcdh_1","rounded-sm":"_rounded-sm_1qcdh_1","!rounded-l-none":"_!rounded-l-none_1qcdh_1","!rounded-r-none":"_!rounded-r-none_1qcdh_1","rounded-b-lg":"_rounded-b-lg_1qcdh_1","rounded-l-lg":"_rounded-l-lg_1qcdh_1","rounded-r-lg":"_rounded-r-lg_1qcdh_1","rounded-t-lg":"_rounded-t-lg_1qcdh_1","rounded-t-md":"_rounded-t-md_1qcdh_1","!border-0":"_!border-0_1qcdh_1",border:"_border_1qcdh_1","border-b":"_border-b_1qcdh_1","border-l":"_border-l_1qcdh_1","border-l-0":"_border-l-0_1qcdh_1","border-r":"_border-r_1qcdh_1","border-solid":"_border-solid_1qcdh_1","border-dashed":"_border-dashed_1qcdh_1","border-none":"_border-none_1qcdh_1","border-blue-600":"_border-blue-600_1qcdh_1","border-blue-700":"_border-blue-700_1qcdh_1","border-gray-200":"_border-gray-200_1qcdh_1","border-gray-300":"_border-gray-300_1qcdh_1","border-slate-200":"_border-slate-200_1qcdh_1","bg-amber-950":"_bg-amber-950_1qcdh_1","bg-black":"_bg-black_1qcdh_1","bg-blue-200":"_bg-blue-200_1qcdh_1","bg-blue-300":"_bg-blue-300_1qcdh_1","bg-blue-600":"_bg-blue-600_1qcdh_1","bg-blue-950":"_bg-blue-950_1qcdh_1","bg-emerald-200":"_bg-emerald-200_1qcdh_1","bg-gray-100":"_bg-gray-100_1qcdh_1","bg-gray-200":"_bg-gray-200_1qcdh_1","bg-gray-400":"_bg-gray-400_1qcdh_1","bg-gray-500":"_bg-gray-500_1qcdh_1","bg-gray-800":"_bg-gray-800_1qcdh_1","bg-green-200":"_bg-green-200_1qcdh_1","bg-green-300":"_bg-green-300_1qcdh_1","bg-green-900":"_bg-green-900_1qcdh_1","bg-green-950":"_bg-green-950_1qcdh_1","bg-lime-300":"_bg-lime-300_1qcdh_1","bg-red-200":"_bg-red-200_1qcdh_1","bg-red-300":"_bg-red-300_1qcdh_1","bg-red-900":"_bg-red-900_1qcdh_1","bg-red-950":"_bg-red-950_1qcdh_1","bg-sky-300":"_bg-sky-300_1qcdh_1","bg-sky-800":"_bg-sky-800_1qcdh_1","bg-sky-900":"_bg-sky-900_1qcdh_1","bg-sky-950":"_bg-sky-950_1qcdh_1","bg-slate-100":"_bg-slate-100_1qcdh_1","bg-slate-400":"_bg-slate-400_1qcdh_1","bg-slate-500":"_bg-slate-500_1qcdh_1","bg-slate-600":"_bg-slate-600_1qcdh_1","bg-slate-700":"_bg-slate-700_1qcdh_1","bg-slate-800":"_bg-slate-800_1qcdh_1","bg-slate-900":"_bg-slate-900_1qcdh_1","bg-slate-950":"_bg-slate-950_1qcdh_1","bg-transparent":"_bg-transparent_1qcdh_1","bg-white":"_bg-white_1qcdh_1","bg-yellow-300":"_bg-yellow-300_1qcdh_1","bg-yellow-950":"_bg-yellow-950_1qcdh_1","!bg-none":"_!bg-none_1qcdh_1","!p-2":"_!p-2_1qcdh_1","p-0":"_p-0_1qcdh_1","p-1":"_p-1_1qcdh_1","p-2":"_p-2_1qcdh_1","p-3":"_p-3_1qcdh_1","p-4":"_p-4_1qcdh_1","p-8":"_p-8_1qcdh_1","!py-0":"_!py-0_1qcdh_1","px-1":"_px-1_1qcdh_1","px-1.5":"_px-1.5_1qcdh_1","px-12":"_px-12_1qcdh_1","px-2":"_px-2_1qcdh_1","px-2.5":"_px-2.5_1qcdh_1","px-3":"_px-3_1qcdh_1","px-4":"_px-4_1qcdh_1","px-6":"_px-6_1qcdh_1","px-8":"_px-8_1qcdh_1","py-0":"_py-0_1qcdh_1","py-1":"_py-1_1qcdh_1","py-1.5":"_py-1.5_1qcdh_1","py-14":"_py-14_1qcdh_1","py-2":"_py-2_1qcdh_1","py-3":"_py-3_1qcdh_1","py-4":"_py-4_1qcdh_1","py-5":"_py-5_1qcdh_1","py-8":"_py-8_1qcdh_1","pl-1":"_pl-1_1qcdh_1","pt-3":"_pt-3_1qcdh_1","text-left":"_text-left_1qcdh_1","text-center":"_text-center_1qcdh_1","text-[.7rem]":"_text-[.7rem]_1qcdh_1","text-[1rem]":"_text-[1rem]_1qcdh_1","text-base":"_text-base_1qcdh_1","text-lg":"_text-lg_1qcdh_1","text-sm":"_text-sm_1qcdh_1","text-xs":"_text-xs_1qcdh_1","font-bold":"_font-bold_1qcdh_1","font-medium":"_font-medium_1qcdh_1","font-semibold":"_font-semibold_1qcdh_1",uppercase:"_uppercase_1qcdh_1","leading-[1.2rem]":"_leading-[1.2rem]_1qcdh_1","!text-green-900":"_!text-green-900_1qcdh_1","!text-red-900":"_!text-red-900_1qcdh_1","!text-sky-900":"_!text-sky-900_1qcdh_1","!text-white":"_!text-white_1qcdh_1","!text-yellow-900":"_!text-yellow-900_1qcdh_1","text-amber-400":"_text-amber-400_1qcdh_1","text-blue-400":"_text-blue-400_1qcdh_1","text-blue-600":"_text-blue-600_1qcdh_1","text-blue-900":"_text-blue-900_1qcdh_1","text-gray-300":"_text-gray-300_1qcdh_1","text-gray-400":"_text-gray-400_1qcdh_1","text-gray-500":"_text-gray-500_1qcdh_1","text-gray-600":"_text-gray-600_1qcdh_1","text-gray-700":"_text-gray-700_1qcdh_1","text-green-300":"_text-green-300_1qcdh_1","text-green-400":"_text-green-400_1qcdh_1","text-green-700":"_text-green-700_1qcdh_1","text-green-900":"_text-green-900_1qcdh_1","text-lime-900":"_text-lime-900_1qcdh_1","text-red-400":"_text-red-400_1qcdh_1","text-red-500":"_text-red-500_1qcdh_1","text-red-800":"_text-red-800_1qcdh_1","text-red-900":"_text-red-900_1qcdh_1","text-sky-400":"_text-sky-400_1qcdh_1","text-sky-900":"_text-sky-900_1qcdh_1","text-slate-200":"_text-slate-200_1qcdh_1","text-slate-300":"_text-slate-300_1qcdh_1","text-slate-400":"_text-slate-400_1qcdh_1","text-slate-50":"_text-slate-50_1qcdh_1","text-slate-500":"_text-slate-500_1qcdh_1","text-slate-600":"_text-slate-600_1qcdh_1","text-slate-800":"_text-slate-800_1qcdh_1","text-slate-900":"_text-slate-900_1qcdh_1","text-white":"_text-white_1qcdh_1","text-yellow-400":"_text-yellow-400_1qcdh_1","text-yellow-600":"_text-yellow-600_1qcdh_1","text-zinc-500":"_text-zinc-500_1qcdh_1","text-zinc-800":"_text-zinc-800_1qcdh_1","line-through":"_line-through_1qcdh_1","opacity-0":"_opacity-0_1qcdh_1","opacity-20":"_opacity-20_1qcdh_1","opacity-50":"_opacity-50_1qcdh_1","opacity-70":"_opacity-70_1qcdh_1","opacity-80":"_opacity-80_1qcdh_1","shadow-none":"_shadow-none_1qcdh_1","outline-none":"_outline-none_1qcdh_1",outline:"_outline_1qcdh_1","outline-offset-0":"_outline-offset-0_1qcdh_1",filter:"_filter_1qcdh_1",transition:"_transition_1qcdh_1","transition-all":"_transition-all_1qcdh_1","duration-300":"_duration-300_1qcdh_1","danx-app":"_danx-app_1qcdh_4","q-tab":"_q-tab_1qcdh_4","q-table__card":"_q-table__card_1qcdh_7","q-checkbox__inner":"_q-checkbox__inner_1qcdh_11","q-toolbar":"_q-toolbar_1qcdh_14","q-notification__actions":"_q-notification__actions_1qcdh_19","q-date":"_q-date_1qcdh_22","q-date__view":"_q-date__view_1qcdh_25","q-field":"_q-field_1qcdh_28","q-field--auto-height":"_q-field--auto-height_1qcdh_28","q-field__control":"_q-field__control_1qcdh_28","q-field__native":"_q-field__native_1qcdh_31","q-field--labeled":"_q-field--labeled_1qcdh_35","q-field__control-container":"_q-field__control-container_1qcdh_35","q-textarea":"_q-textarea_1qcdh_38","q-field__marginal":"_q-field__marginal_1qcdh_41","q-field__input":"_q-field__input_1qcdh_41","q-field__label":"_q-field__label_1qcdh_41","q-btn":"_q-btn_1qcdh_48","q-item":"_q-item_1qcdh_56","q-tab-panels":"_q-tab-panels_1qcdh_60","q-panel":"_q-panel_1qcdh_64",scroll:"_scroll_1qcdh_67","q-tab-panel":"_q-tab-panel_1qcdh_60","dx-dialog":"_dx-dialog_1qcdh_77","q-card__section--vert":"_q-card__section--vert_1qcdh_77","q-banner":"_q-banner_1qcdh_81",app:"_app_1qcdh_1","main-layout":"_main-layout_1qcdh_1","is-disabled":"_is-disabled_1qcdh_98","disable-all-transitions":"_disable-all-transitions_1qcdh_103","v-enter-active":"_v-enter-active_1qcdh_107","v-leave-active":"_v-leave-active_1qcdh_108","v-enter-from":"_v-enter-from_1qcdh_112","v-leave-to":"_v-leave-to_1qcdh_113","dx-action-table":"_dx-action-table_1qcdh_117","dx-column-shrink":"_dx-column-shrink_1qcdh_117","slide-image":"_slide-image_1qcdh_121",carousel:"_carousel_1qcdh_135","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_1qcdh_135","hover:bg-blue-200":"_hover:bg-blue-200_1qcdh_1","hover:bg-blue-400":"_hover:bg-blue-400_1qcdh_1","hover:bg-gray-200":"_hover:bg-gray-200_1qcdh_1","hover:bg-green-100":"_hover:bg-green-100_1qcdh_1","hover:bg-green-400":"_hover:bg-green-400_1qcdh_1","hover:bg-green-800":"_hover:bg-green-800_1qcdh_1","hover:bg-lime-400":"_hover:bg-lime-400_1qcdh_1","hover:bg-red-100":"_hover:bg-red-100_1qcdh_1","hover:bg-red-200":"_hover:bg-red-200_1qcdh_1","hover:bg-red-400":"_hover:bg-red-400_1qcdh_1","hover:bg-sky-400":"_hover:bg-sky-400_1qcdh_1","hover:bg-sky-800":"_hover:bg-sky-800_1qcdh_1","hover:bg-slate-200":"_hover:bg-slate-200_1qcdh_1","hover:bg-slate-300":"_hover:bg-slate-300_1qcdh_1","hover:bg-slate-600":"_hover:bg-slate-600_1qcdh_1","hover:bg-slate-900":"_hover:bg-slate-900_1qcdh_1","hover:text-blue-500":"_hover:text-blue-500_1qcdh_1","hover:text-blue-600":"_hover:text-blue-600_1qcdh_1","hover:opacity-100":"_hover:opacity-100_1qcdh_1","hover:opacity-20":"_hover:opacity-20_1qcdh_1","hover:opacity-70":"_hover:opacity-70_1qcdh_1","hover:outline-4":"_hover:outline-4_1qcdh_1","focus:bg-blue-200":"_focus:bg-blue-200_1qcdh_1","focus:outline-4":"_focus:outline-4_1qcdh_1","focus:outline-blue-200":"_focus:outline-blue-200_1qcdh_1",group:"_group_1qcdh_1","group-hover:opacity-100":"_group-hover:opacity-100_1qcdh_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},W0={class:"absolute top-0 left-0 w-full h-full"},Y0={key:0,class:"max-h-full w-full",controls:""},K0=["src","type"],Q0=["alt","src"],X0={key:2},J0=["href"],ep={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},ac=ft({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=i.ref(null),r=i.ref(e.defaultSlide);function o(c){var u;return(u=c.mime)==null?void 0:u.startsWith("video")}function s(c){var u;return(u=c.mime)==null?void 0:u.startsWith("image")}function l(c){var u,d;return((u=c.optimized)==null?void 0:u.url)||(s(c)?c.blobUrl||c.url:(d=c.thumb)==null?void 0:d.url)}function a(c){return c.thumb?c.thumb.url:o(c)?`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(c)}return(c,u)=>{const d=i.resolveComponent("QCarouselSlide"),f=i.resolveComponent("QCarousel"),_=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(_,{"model-value":!0,maximized:"","onUpdate:modelValue":u[2]||(u[2]=h=>c.$emit("close")),onKeyup:[u[3]||(u[3]=i.withKeys(h=>n.value.previous(),["left"])),u[4]||(u[4]=i.withKeys(h=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",W0,[i.createVNode(f,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=h=>r.value=h),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(c.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,h=>(i.openBlock(),i.createBlock(d,{key:"file-"+h.id,name:h.id,"img-src":a(h),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(c.cls["slide-image"])},[o(h)?(i.openBlock(),i.createElementBlock("video",Y0,[i.createElementVNode("source",{src:l(h)+"#t=0.1",type:h.mime},null,8,K0)])):l(h)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:h.filename,src:l(h)},null,8,Q0)):(i.openBlock(),i.createElementBlock("div",X0,[u[5]||(u[5]=i.createElementVNode("h3",{class:"text-center mb-4"}," No Preview Available ",-1)),i.createElementVNode("a",{href:h.url,target:"_blank",class:"text-base"},i.toDisplayString(h.url),9,J0)]))],2),i.createElementVNode("div",ep,i.toDisplayString(h.filename||h.name),1)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),i.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all",onClick:u[1]||(u[1]=h=>c.$emit("close"))},[i.createVNode(i.unref(No),{class:"w-8 h-8"})])])]),_:1})}}},[["__cssModules",{cls:Z0}]]),tp={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},np={__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 o=i.computed(()=>({"bg-blue-600 text-white":r.blue,"bg-white text-gray-400":!r.blue,"items-center":r.center}));function s(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=i.resolveComponent("QDialog"),u=i.resolveDirective("close-popup");return i.openBlock(),i.createBlock(c,{"model-value":t.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":s},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["flex justify-center min-w-xs",i.unref(o)])},[t.closeable?i.withDirectives((i.openBlock(),i.createElementBlock("div",tp,[i.createVNode(i.unref(No),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}},rp={class:"flex-grow"},cc={__name:"InfoDialog",props:{...ns.props,disable:Boolean,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(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(ns),i.mergeProps({class:"dx-info-dialog"},o.$props,{onClose:r}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",rp,[i.createVNode(l,{label:t.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),disable:t.disable,onClick:r},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"done-text")]),_:3},8,["label","class","disable"])]),i.renderSlot(o.$slots,"actions")]),default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:2},[o.$slots.title?{name:"title",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.subtitle?{name:"subtitle",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},op={__name:"InputDialog",props:{...Tt.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=i.ref(e.input);return(r,o)=>{const s=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(i.unref(Tt),i.mergeProps(r.$props,{onConfirm:o[2]||(o[2]=l=>r.$emit("confirm",n.value)),onClose:o[3]||(o[3]=l=>r.$emit("close",l))}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default",{},()=>[i.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),type:"number",class:"w-full",onInput:o[1]||(o[1]=l=>r.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},ip={class:"dx-field-label"},sp={class:"dx-field-label-text"},lp={class:"dx-field-label-label"},ap={key:0,class:"dx-field-label-name"},cp={key:0,class:"dx-field-required"},_t=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",ip,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",sp,[i.createElementVNode("div",lp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",ap," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",cp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),rs=i.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 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=i.resolveComponent("QToggle");return i.openBlock(),i.createBlock(r,{"data-testid":"boolean-field-"+(t.name||t.label),"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]=o=>e.$emit("update:model-value",o))},{default:i.withCtx(()=>[i.createVNode(i.unref(_t),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:i.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),up={for:"first_name",class:"form-label"},dp={class:"mt-1"},os={__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=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",up,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",dp,[i.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]=o=>e.$emit("update:model-value",o))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},fp={__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,o)=>(i.openBlock(),i.createBlock(i.unref(os),i.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},_p={key:0,class:"font-bold text-xs mb-2"},hp={class:"flex items-center cursor-pointer"},mp={class:"flex-grow font-bold ml-3 hover:opacity-70"},pp={key:0},is=i.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.modelValue?St(Ot(r.modelValue||"0000-00-00")):"- -"),s=i.ref(Ot(r.modelValue));i.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.value)}return(a,c)=>{const u=i.resolveComponent("QBtn"),d=i.resolveComponent("QDate"),f=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[a.label?(i.openBlock(),i.createElementBlock("div",_p,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",hp,[i.createVNode(i.unref(oc),{class:"w-5"}),i.createElementVNode("div",mp,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),a.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",pp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(_=>(s.value=null)||l(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(f,null,{default:i.withCtx(()=>[i.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":[c[1]||(c[1]=_=>s.value=_),l]},null,8,["modelValue"])]),_:1})])}}}),gp={class:"mb-2"},yp={class:"flex items-center cursor-pointer"},bp={class:"flex-grow font-bold ml-3 hover:opacity-70"},wp={key:0},ss=i.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>a.value?r.withTime?{from:St(sa(a.value.from||"0000-00-00")),to:St(sa(a.value.to||"9999-12-31"))}:{from:St(ia(a.value.from||"0000-00-00")),to:St(ia(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=i.ref(l(r.modelValue));i.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?St(u.from)===St(u.to)?u.from:u:null}const a=i.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=i.resolveComponent("QDate"),_=i.resolveComponent("QBtn"),h=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",gp,[i.createVNode(i.unref(_t),{label:u.label},null,8,["label"])]),u.inline?(i.openBlock(),i.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=p=>s.value=p),c],range:"",class:"reactive"},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",yp,[i.createVNode(i.unref(oc),{class:"w-5 py-2"}),i.createElementVNode("div",bp,[a.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value.from)+" - "+i.toDisplayString(o.value.to),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),u.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",wp,[i.createVNode(_,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=i.withModifiers(p=>(s.value=null)||c(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(h,null,{default:i.withCtx(()=>[i.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[2]||(d[2]=p=>s.value=p),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),kp={class:"flex items-center justify-center"},xp={key:0,class:"flex-grow"},ls={__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,o=i.computed({get:()=>oa(ra(r.modelValue)),set(s){const l=s?oa(Y1(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{const a=i.resolveComponent("QBtn"),c=i.resolveComponent("QDate"),u=i.resolveComponent("QTime"),d=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:i.withCtx(()=>[i.createVNode(c,{modelValue:o.value,"onUpdate:modelValue":l[3]||(l[3]=f=>o.value=f),mask:t.mask,color:t.color},{default:i.withCtx(()=>[i.createElementVNode("div",kp,[t.nullable?(i.openBlock(),i.createElementBlock("div",xp,[i.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>o.value=null)})])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),i.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":l[4]||(l[4]=f=>o.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Sp={__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,o=i.ref(!1),s=i.ref(r.modelValue);function l(){n("update:model-value",s.value),o.value=!1}return(a,c)=>{const u=i.resolveComponent("QPopupProxy"),d=i.resolveComponent("QIcon"),f=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{"model-value":i.unref(kr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>o.value=!0)},{append:i.withCtx(()=>[i.createVNode(d,{name:"event",class:"cursor-pointer"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=_=>o.value=_)},{default:i.withCtx(()=>[i.createVNode(i.unref(ls),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=_=>s.value=_),onCancel:c[1]||(c[1]=_=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Cp={class:"inline-block relative"},Ep=["contenteditable"],uc=i.defineComponent({__name:"EditableDiv",props:{modelValue:{default:""},color:{default:"blue-200"},textColor:{default:"blue-900"},debounceDelay:{default:1e3},readonly:{type:Boolean},placeholder:{default:"Enter Text..."}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(null),l=i.ref("0"),a=i.ref("0"),c=i.ref(!1);i.onMounted(()=>{var _,h;s.value&&(l.value=((_=s.value)==null?void 0:_.offsetWidth)+"px",a.value=((h=s.value)==null?void 0:h.offsetHeight)+"px")}),i.watch(()=>r.modelValue,_=>{c.value||(o.value=_)});const u=ln(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function d(_){o.value=_.target.innerText,u()}const f=i.computed(()=>[...r.readonly?[]:[`hover:bg-${r.color} focus:bg-${r.color}`,`hover:text-${r.textColor} focus:text-${r.textColor}`,`hover:outline-${r.color} focus:outline-${r.color}`,"focus:outline-4 hover:outline-4"],o.value?"":"!bg-none"]);return(_,h)=>(i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",{contenteditable:_.readonly?"false":"true",class:i.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none rounded-sm z-10 min-w-10 min-h-10",f.value]),style:i.normalizeStyle({minWidth:l.value,minHeight:a.value}),onInput:d,onFocusin:h[0]||(h[0]=p=>c.value=!0),onFocusout:h[1]||(h[1]=p=>c.value=!1)},i.toDisplayString(o.value),47,Ep),!o.value&&_.placeholder&&!c.value&&!_.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:s,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},i.toDisplayString(_.placeholder),513)):i.createCommentVNode("",!0)]))}}),Tp=["contenteditable"],Bp={key:0},Np=ft(i.defineComponent({__name:"EditOnClickTextField",props:i.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.ref(null),n=i.useModel(t,"modelValue"),r=i.ref(n.value),o=t,s=i.ref(!1);function l(){o.readonly||(s.value=!0,r.value=n.value,i.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){r.value=c,n.value=c}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[o.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!s.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>s.value=!1)},[i.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&s.value,class:i.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:s.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},i.toDisplayString(s.value?r.value:n.value),43,Tp),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Bp,[s.value?(i.openBlock(),i.createBlock(d,{key:0,onClick:u[1]||(u[1]=i.withModifiers(f=>s.value=!1,["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Va),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Pn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),Ip=["accept","capture"],Fp={__name:"FileUploadButton",props:{...ee.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,o=t,s=i.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new xo(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});o.geolocation&&await u.resolveLocation(o.locationWaitMessage),u.upload()}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(ee.QBtn),i.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},()=>[i.createVNode(i.unref(V0),{class:"w-5 mr-2"}),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),i.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,Ip)]),_:3},16))}},$p={class:"inline-block"},Ap={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},Op={__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(o){n("update:model-value",o.value),n("save",o.value),o.set()}return(o,s)=>{const l=i.resolveComponent("QPopupEdit");return i.openBlock(),i.createElementBlock("div",$p,[i.createElementVNode("div",Ap,[i.createTextVNode(i.toDisplayString(i.unref(kr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref(Ha),{class:"w-4 font-bold ml-2 text-gray-400"}),i.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:i.withCtx(a=>[i.createVNode(i.unref(ls),{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"])])])}}},dc=i.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},i.toDisplayString(i.unref(Dt)(e.length))+" / "+i.toDisplayString(i.unref(Dt)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),Dp={class:"dx-text-field"},Mp={key:1,class:"dx-text-field-readonly-value"},an=i.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0},loading:{type:Boolean}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",Dp,[e.prependLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(i.openBlock(),i.createElementBlock("div",Mp,i.toDisplayString(e.modelValue),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:i.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,loading:e.loading,onKeydown:n[0]||(n[0]=i.withKeys(o=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=o=>e.$emit("update:model-value",o))},i.createSlots({append:i.withCtx(()=>[i.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.createVNode(i.unref(_t),{class:i.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),i.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce","loading"]),i.createVNode(i.unref(dc),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Ir=i.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(s(r.modelValue));i.watch(()=>r.modelValue,()=>o.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),Dt(c,d)}const l=ln(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=o.value;return o.value+=" ",i.nextTick(()=>o.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),o.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(an),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),fc=i.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ir),i.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))}),null,16,["model-value"]))}}),Pp={class:"text-xs font-bold"},vp=["href"],Lp=["href"],Vp=i.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=i.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=i.computed(()=>typeof e.value=="string"&&e.value.length>30),o=i.computed(()=>{switch(typeof e.value){case"boolean":return J1(e.value);case"number":return Dt(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Pp,[i.renderSlot(s.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(s.label),1)])]),i.createElementVNode("div",{class:i.normalizeClass(n.value)},[s.url?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)]),i.createElementVNode("a",{target:"_blank",href:s.url,class:"inline-block ml-2"},[i.createVNode(i.unref(Fm),{class:"w-4"})],8,Lp)],64)):(i.openBlock(),i.createElementBlock("a",{key:0,target:"_blank",href:s.url},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],8,vp))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),qp={class:"flex items-stretch justify-start"},Rp={key:1,class:"p-1"},_c=i.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Zh();i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),o(()=>n("update:model-value",a.value));const d=i.computed(()=>({width:typeof r.width=="number"?`${r.width}px`:r.width,height:typeof r.height=="number"?`${r.height}px`:r.height}));return(f,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!f.readonly}]),onDragover:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onDrop:_[4]||(_[4]=i.withModifiers((...h)=>i.unref(s)&&i.unref(s)(...h),["prevent"]))},[f.label?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:f.label},null,8,["label"])):i.createCommentVNode("",!0),!f.disable&&!f.readonly?(i.openBlock(),i.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:_[0]||(_[0]=(...h)=>i.unref(l)&&i.unref(l)(...h))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",qp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),h=>(i.openBlock(),i.createBlock(i.unref(Fr),{key:"file-upload-"+h.id,class:i.normalizeClass(["m-2 cursor-pointer bg-gray-200",f.filePreviewClass]),style:i.normalizeStyle(d.value),file:h,"related-files":h.transcodes||i.unref(a),downloadable:"",removable:!f.readonly&&!f.disable,onRemove:p=>i.unref(u)(h)},null,8,["class","style","file","related-files","removable","onRemove"]))),128)),!f.disable&&!f.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["dx-add-remove-files m-2 flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer",f.filePreviewClass]),style:i.normalizeStyle(d.value)},[i.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:_[1]||(_[1]=h=>f.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(ts),{class:i.normalizeClass(["m-auto",f.addIconClass])},null,8,["class"]),_[5]||(_[5]=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),i.unref(a).length>0?(i.openBlock(),i.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:_[2]||(_[2]=(...h)=>i.unref(c)&&i.unref(c)(...h))},[i.createVNode(i.unref(Bo),{class:"mr-2 w-3"}),_[6]||(_[6]=i.createTextVNode(" Remove All "))])):i.createCommentVNode("",!0)],6)):i.createCommentVNode("",!0),f.readonly&&i.unref(a).length===0?(i.openBlock(),i.createElementBlock("div",Rp," -- ")):i.createCommentVNode("",!0)])],34))}}),vn=i.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},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:{},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},useChips:{type:Boolean},useInput:{type:Boolean},maxlength:{},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},disableTabSelection:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(null),s=i.ref(null),l=i.ref(!1),a=i.computed(()=>{let y=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(y=[{label:r.placeholder,value:null},...r.options]),y=y.map(b=>{let T=i.isRef(b)?b.value:b;return{label:h(T),value:m(T),selectionLabel:p(T)}}),y}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(y=>{var b;return y.label.toLocaleLowerCase().indexOf((b=s.value)==null?void 0:b.toLowerCase())>-1}):a.value),u=i.computed(()=>{var y,b;return r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(B=>B===null?"__null__":B)||[]:r.modelValue===null?"__null__":r.selectByObject?((y=r.modelValue)==null?void 0:y.value)||((b=r.modelValue)==null?void 0:b.id):r.modelValue}),d=i.computed(()=>{let y=u.value;r.multiple||(y=y||y===0?[y]:[]);const b=y.map(T=>T==="__null__"?null:typeof T=="object"?T.value||T.id:T);return a.value.filter(T=>b.includes(T.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=i.computed(()=>d.value.slice(0,r.chipLimit));function h(y){return typeof y=="string"?y:typeof r.optionLabel=="string"?y[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(y):y==null?void 0:y.label}function p(y){return typeof y=="string"?y:typeof r.selectionLabel=="string"?y[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(y):(y==null?void 0:y.selectionLabel)||(y==null?void 0:y.label)||y&&y[r.optionLabel]}function m(y){if(!y||typeof y=="string")return y;let b=y.value||y.id;return typeof r.optionValue=="string"?b=y[r.optionValue]:typeof r.optionValue=="function"&&(b=r.optionValue(y)),b===null?"__null__":b}function g(y){Array.isArray(y)&&(y=y.map(b=>b==="__null__"?null:b)),y=y==="__null__"?null:y,r.selectByObject&&y!==null&&y!==void 0&&typeof y!="object"&&(r.multiple?y=r.options.filter(b=>y.includes(m(b))):y=r.options.find(b=>m(b)===y)),n("update:model-value",y),n("update",y)}const w=i.ref(!1);async function x(y,b){if(!r.filterFn)s.value=y,await i.nextTick(b);else{if(b(),!w.value)return;y!==null&&y!==s.value&&(s.value=y,r.filterFn&&await r.filterFn(y))}}function C(){n("update:model-value",void 0),n("update",void 0)}function S(){l.value=!0,w.value=!1,i.nextTick(()=>{w.value=!0,o.value.focus()})}function E(){l.value=!1,w.value=!1}return(y,b)=>{const T=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[y.label?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:y.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(ee.QSelect),i.mergeProps({ref_key:"selectField",ref:o},y.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":y.filterable,"hide-selected":y.filterable&&l.value&&!y.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[y.inputClass]:!0},class:["max-w-full dx-select-field",y.selectClass],onFilter:x,onClear:C,onPopupShow:S,onPopupHide:E,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(I0),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[y.$props.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":y.chipLimit===1,"dx-selected-chips":_.value.length>0,[y.selectionClass]:!0}])},[_.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.value,B=>(i.openBlock(),i.createBlock(T,{key:"selected-"+B.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(B.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(i.openBlock(),i.createBlock(T,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-_.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(y.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([y.selectionClass,"dx-selected-label"])},i.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class","class"])])}}}),hc={__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,o=i.ref(r.field.defaultOption),s=i.computed(()=>r.modelValue&&r.modelValue[o.value]),l=i.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[o.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return i.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(vn),{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),i.createVNode(i.unref(an),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},Up={__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,o)=>(i.openBlock(),i.createBlock(i.unref(os),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},jp={key:0,class:"font-bold text-xs mb-2"},zp={class:"flex items-center flex-nowrap cursor-pointer"},Hp={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},Io={__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,o=i.computed(()=>r.currency?"$":r.percent?"%":""),s=i.computed(()=>({id:"min-field",name:"from",label:"Min"+o.value,placeholder:"0"})),l=i.computed(()=>({id:"max-field",name:"to",label:"Max"+o.value,placeholder:"No Limit"})),a=i.computed(()=>r.icon||(r.currency?F0:r.percent?Ja:P0)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(_){const h=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*h:void 0,to:_!=null&&_.to?_.to*h:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?Fi(_):r.percent?e_(_,{multiplier:1,maximumFractionDigits:2}):Dt(_)}const f=ln(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let h={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",h)}},r.debounce);return(_,h)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",jp,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",zp,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",Hp,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(d(c.value.from||0))+" - "+i.toDisplayString(d(c.value.to)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" No Limit ")],64))])]),i.createVNode(p,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Ir),{modelValue:c.value.from,"onUpdate:modelValue":[h[0]||(h[0]=m=>c.value.from=m),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Ir),{modelValue:c.value.to,"onUpdate:modelValue":[h[1]||(h[1]=m=>c.value.to=m),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Gp=["data-dusk","onClick"],Zp={__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,o=i.ref(!1),s=i.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(h=>h!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=i.resolveComponent("QCheckbox"),h=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(us),{show:o.value,"onUpdate:show":f[0]||(f[0]=p=>o.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,p=>(i.openBlock(),i.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(p)},[i.createVNode(_,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(m=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,Gp))),128))]),_:3},8,["show","title"]),i.createVNode(h,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>o.value=!0)},{default:i.withCtx(()=>[i.renderSlot(d.$slots,"selected",{},()=>[i.renderSlot(d.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label)+":  ",1)]),t.modelValue&&t.modelValue.length>0?i.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" + "+i.toDisplayString(t.modelValue.length-1),1)],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a(t.modelValue)),1)],64))]):i.renderSlot(d.$slots,"placeholder",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},Wp={class:"group flex items-center flex-nowrap gap-x-1 relative"},Yp=["onClick"],Kp={class:"flex-grow px-4 py-2"},Qp={class:"px-4 mb-2"},Xp=i.defineComponent({__name:"SelectionMenuField",props:i.mergeModels({options:{},showEdit:{type:Boolean},loading:{type:Boolean},selectText:{default:""},createText:{default:""},editText:{default:""},clearText:{default:""},placeholder:{default:"(No selection)"},selectClass:{default:"bg-sky-800"},createClass:{default:""},editClass:{default:""},clearClass:{default:"rounded-full"},labelClass:{default:"text-slate-600"},selectIcon:{default:null},selectable:{type:Boolean},creatable:{type:Boolean},editable:{type:Boolean},deletable:{type:Boolean},nameEditable:{type:Boolean},clearable:{type:Boolean},disable:{type:Boolean},size:{default:"md"}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create","update","delete"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing"),r=i.ref(!1);return(o,s)=>{const l=i.resolveComponent("QSeparator"),a=i.resolveComponent("QMenu"),c=i.resolveComponent("QBtn"),u=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("div",Wp,[o.selectable?(i.openBlock(),i.createBlock(i.unref(To),{key:0,modelValue:r.value,"onUpdate:modelValue":s[3]||(s[3]=d=>r.value=d),disable:o.disable,label:o.selectText,saving:o.loading,class:i.normalizeClass([o.selectClass,"mr-2"]),"show-icon":o.selectIcon||i.unref(Om),size:o.size},{default:i.withCtx(()=>[i.createVNode(a,{"model-value":r.value,onBeforeHide:s[1]||(s[1]=d=>r.value=!1),onHide:s[2]||(s[2]=d=>r.value=!1)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.options,d=>{var f,_;return i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:d.id,class:i.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":((f=e.value)==null?void 0:f.id)===d.id,"hover:bg-slate-600":((_=e.value)==null?void 0:_.id)!==d.id}]),onClick:h=>e.value=d},[i.createElementVNode("div",Kp,i.toDisplayString(d.name),1),o.deletable?(i.openBlock(),i.createBlock(i.unref(Eo),{key:0,type:"trash",class:"ml-4 mr-2",size:o.size,onClick:i.withModifiers(h=>o.$emit("delete",d),["stop","prevent"])},null,8,["size","onClick"])):i.createCommentVNode("",!0)],10,Yp)),[[u]])}),128)),o.creatable?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(l,{class:"bg-slate-400 my-2"}),i.createElementVNode("div",Qp,[i.createVNode(i.unref(Eo),{type:"create",color:"green",class:i.normalizeClass(o.createClass),label:o.createText,saving:o.loading,size:o.size,onClick:s[0]||(s[0]=d=>o.$emit("create"))},null,8,["class","label","saving","size"])])],64)):i.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disable","label","saving","class","show-icon","size"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(o.labelClass)},[e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nameEditable?(i.openBlock(),i.createBlock(i.unref(uc),{key:0,"model-value":e.value.name,color:"slate-600","onUpdate:modelValue":s[4]||(s[4]=d=>o.$emit("update",{name:d}))},null,8,["model-value"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.value.name),1)],64))],64)):i.renderSlot(o.$slots,"no-selection",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.placeholder),1)])],2),o.editable&&e.value?(i.openBlock(),i.createBlock(i.unref(To),{key:1,modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=d=>n.value=d),label:o.editText,class:i.normalizeClass([o.editClass,"opacity-0 group-hover:opacity-100 transition-all"]),size:o.size,"show-icon":i.unref(Pn),"hide-icon":i.unref(Va)},null,8,["modelValue","label","class","size","show-icon","hide-icon"])):i.createCommentVNode("",!0),o.clearable&&e.value?(i.openBlock(),i.createBlock(c,{key:2,label:o.clearText,class:i.normalizeClass([o.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:s[6]||(s[6]=d=>e.value=null)},{default:i.withCtx(()=>[i.createVNode(i.unref(qa),{class:"w-4"})]),_:1},8,["label","class"])):i.createCommentVNode("",!0)])}}}),Jp={class:"flex items-stretch flex-nowrap gap-x-4"},eg=i.defineComponent({__name:"SelectOrCreateField",props:i.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:""},editText:{default:""},createClass:{default:"bg-green-900 px-4"},editClass:{default:"bg-sky-800 px-4"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing");return(r,o)=>{const s=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",Jp,[i.createVNode(s,{class:i.normalizeClass(r.createClass),loading:r.loading,onClick:o[0]||(o[0]=l=>r.$emit("create"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ua),{class:i.normalizeClass(["w-4",r.createText?"mr-2":""])},null,8,["class"]),i.createTextVNode(" "+i.toDisplayString(r.createText),1)]),_:1},8,["class","loading"]),r.showEdit?(i.openBlock(),i.createBlock(i.unref(To),{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=l=>n.value=l),disable:!r.canEdit,label:r.editText,class:i.normalizeClass(r.editClass),"show-icon":i.unref(Pn)},null,8,["modelValue","disable","label","class","show-icon"])):i.createCommentVNode("",!0),i.createVNode(i.unref(vn),{modelValue:e.value,"onUpdate:modelValue":o[2]||(o[2]=l=>e.value=l),class:"flex-grow",options:r.options,clearable:r.clearable,"select-by-object":r.selectByObject,"option-label":r.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"])])}}}),tg={key:0,class:"text-zinc-500"},ng={key:1},rg={class:"text-xs text-zinc-500"},mc=i.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 o(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const s=i.ref(o()),l=i.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=Hr(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return i.watch(()=>r.modelValue,u=>{s.value=o(),l.value=u||[]}),(u,d)=>{const f=i.resolveComponent("QCheckbox");return i.openBlock(),i.createElementBlock("div",null,[!u.loading&&!u.options.length?(i.openBlock(),i.createElementBlock("div",tg," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(vn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.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"]),s.value?(i.openBlock(),i.createElementBlock("div",ng,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,_=>(i.openBlock(),i.createBlock(f,{key:_.id,"model-value":l.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":h=>a(_)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(_.label),1),i.createElementVNode("div",rg,i.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),og={key:1,class:"text-sm mt-2"},ig={key:3,class:"py-1"},pc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=Yh();return o(()=>n("update:model-value",a.value)),i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=i.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=i.withModifiers((...f)=>i.unref(s)&&i.unref(s)(...f),["prevent"]))},[u.label||u.name||u.showName?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):i.createCommentVNode("",!0),!u.disable&&!u.readonly?(i.openBlock(),i.createElementBlock("div",og,[i.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),i.unref(a)?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>i.unref(c)&&i.unref(c)(...f))},"Clear")):i.createCommentVNode("",!0),i.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>i.unref(l)&&i.unref(l)(...f))},null,544)])):i.createCommentVNode("",!0),!u.readonly||i.unref(a)?(i.openBlock(),i.createBlock(i.unref(Fr),{key:2,class:i.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!i.unref(a),"mx-auto":!u.readonly}]),file:i.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disable&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",ig," -- ")):i.createCommentVNode("",!0)],34))}}),sg={class:"dx-slider-number-field"},lg=i.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=i.computed(()=>({...e,field:void 0,label:!!e.label})),r=i.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(o,s)=>{const l=i.resolveComponent("QSlider");return i.openBlock(),i.createElementBlock("div",sg,[i.createVNode(i.unref(_t),{label:o.label,field:o.field},null,8,["label","field"]),i.createVNode(l,i.mergeProps(n.value,{min:o.min,max:o.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var ag=["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"],cg=function(t){return ag.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},ug=function(t,e,n){Object.keys(e).filter(cg).forEach(function(r){var o=e[r];typeof o=="function"&&(r==="onInit"?o(t,n):n.on(r.substring(2),function(s){return o(s,n)}))})},dg=function(t,e,n,r){var o=t.modelEvents?t.modelEvents:null,s=Array.isArray(o)?o.join(" "):o;i.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},fg=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&dg(e,n,r,o),ug(t,n.attrs,r)},gc=0,yc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return gc++,t+"_"+n+gc+String(e)},_g=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},bc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},hg=function(t,e){return bc(t).concat(bc(e))},mg=function(t){return t==null},wc=function(){return{listeners:[],scriptId:yc("tiny-script"),scriptLoaded:!1}},pg=function(){var t=wc(),e=function(o,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(o,s,l){t.scriptLoaded?l():(t.listeners.push(l),o.getElementById(t.scriptId)||e(t.scriptId,o,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=wc()};return{load:n,reinitialize:r}},gg=pg(),yg=function(){return typeof window<"u"?window:global},cn=function(){var t=yg();return t&&t.tinymce?t.tinymce:null},bg={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"}}},ht=function(){return ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},ht.apply(this,arguments)},wg=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},kg=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},as={selector:void 0,target:void 0},xg=i.defineComponent({props:bg,setup:function(t,e){var n=t.init?ht(ht({},t.init),as):ht({},as),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||yc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,h=t.initialValue?t.initialValue:"",p="",m=function(x){return f?function(){return s!=null&&s.value?s.value:""}:function(){return x?h:p}},g=function(){var x=m(_),C=ht(ht({},n),{readonly:t.disabled,target:a.value,plugins:hg(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(S){c=S,S.on("init",function(E){return fg(E,t,e,S,s,x)}),typeof n.setup=="function"&&n.setup(S)}});_g(a.value)&&(a.value.style.visibility=""),cn().init(C),_=!1};i.watch(o,function(x){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(x?"readonly":"design"):c.setMode(x?"readonly":"design"))}),i.watch(l,function(x){var C;f||(p=c.getContent()),(C=cn())===null||C===void 0||C.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(cn()!==null)g();else if(a.value&&a.value.ownerDocument){var x=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",S=mg(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(x,"/tinymce.min.js"):t.tinymceScriptSrc;gg.load(a.value.ownerDocument,S,g)}}),i.onBeforeUnmount(function(){cn()!==null&&cn().remove(c)}),d||(i.onActivated(function(){_||g()}),i.onDeactivated(function(){var x;f||(p=c.getContent()),(x=cn())===null||x===void 0||x.remove(c)}));var w=function(x){var C;p=c.getContent(),(C=cn())===null||C===void 0||C.remove(c),n=ht(ht(ht({},n),x),as),i.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?wg(i.h,u,a,t.tagName):kg(i.h,u,a)}}});const Sg=["innerHTML"],kc={__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)=>(i.openBlock(),i.createElementBlock("div",null,[t.noLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(_t),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(i.openBlock(),i.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Sg)):(i.openBlock(),i.createBlock(i.unref(xg),{key:2,class:"mt-2","api-key":i.unref(re).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"]))]))}},xc=i.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerPie");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?i.renderSlot(e.$slots,"saving",{key:0},()=>[n[0]||(n[0]=i.createTextVNode(" Saving... ")),i.createVNode(r,{class:"ml-2"})]):i.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" Saved at "+i.toDisplayString(i.unref(Ii)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Not saved ")],64))])],2)}}}),Cg={class:"dx-rendered-form"},Eg={key:0,class:"mb-4"},Tg={class:"flex flex-nowrap items-center text-sm w-full"},Bg={key:0,class:"variation-missing-icon pl-1"},Ng={class:"flex-grow"},Ig={key:1,class:"flex flex-nowrap items-center mr-2"},Fg=["onClick"],$g=["onClick"],cs=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,o={BOOLEAN:rs,DATE:is,DATE_RANGE:ss,INTEGER:fc,NUMBER:Ir,TEXT:an,SINGLE_FILE:pc,MULTI_FILE:_c,WYSIWYG:kc},s=n.form.fields.map(N=>({placeholder:`Enter ${N.label}`,...N,component:N.component||o[N.type]})),l=i.computed(()=>{const N=n.values;return N?Array.isArray(N)?N:Object.entries(N).filter(I=>s.find(A=>A.name===I[0])).map(([I,A])=>({name:I,value:A,variation:""})):[]}),a=i.computed(()=>{const N={};for(const I of s)N[I.name]=w(I.name);return N});function c(N){return N.enabled===void 0?!0:typeof N.enabled=="function"?N.enabled(a.value):N.enabled}function u(N){return{modelValue:w(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=i.computed(()=>{const N=[...new Set(l.value.map(I=>I.variation))].sort();return N.length===0&&N.push(""),N}),f=i.ref(d.value[0]||""),_=i.ref(""),h=i.ref(!1),p=i.ref(""),m=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function g(N,I){if(l.value)return l.value.find(A=>A.variation===(I!==void 0?I:f.value)&&A.name===N)}function w(N){var I;return(I=g(N))==null?void 0:I.value}function x(N,I){const A=g(N),P={name:N,variation:f.value||"",value:I===void 0?n.emptyValue:I},Y=ol(l.value,A,P,!0);C(Y)}function C(N){let I=N;Array.isArray(n.values)||(I=N.reduce((A,P)=>(A[P.name]=P.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",S)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",S)});function S(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function E(N){return n.form.fields.map(I=>({variation:N,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function y(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=E(""));const I=d.value[d.value.length-1],A=kd(I||"1"),P=E(A);C([...N,...P]),f.value=A}function b(){if(!_.value)return;if(d.value.includes(_.value)){qe.error("Variation name already exists");return}const N=l.value.map(I=>I.variation===h.value?{...I,variation:_.value}:I);C(N),f.value=_.value,h.value=!1,_.value=""}function T(N){if(!N)return;const I=l.value.filter(A=>A.variation!==N);C(I),f.value===N&&(f.value=d.value[0]),p.value=""}function B(N){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const P=g(A.name,N),Y=!!P&&P.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=Y:Y})}return(N,I)=>{const A=i.resolveComponent("QTooltip"),P=i.resolveComponent("QTab"),Y=i.resolveComponent("QSpinnerBall"),ae=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",Cg,[N.form.variations>1?(i.openBlock(),i.createElementBlock("div",Eg,[i.createVNode(ae,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=M=>f.value=M),class:"text-xs"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(M,J)=>(i.openBlock(),i.createBlock(P,{key:M,name:M,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",Tg,[B(M)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Bg,[i.createVNode(i.unref(za),{class:"text-red-400 w-4"}),i.createVNode(A,null,{default:i.withCtx(()=>I[5]||(I[5]=[i.createTextVNode("Creative Form Incomplete")])),_:1})])),i.createElementVNode("div",Ng,i.toDisplayString(M||"1"),1),!N.disable&&!N.readonly&&N.canModifyVariations?(i.openBlock(),i.createElementBlock("div",Ig,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(h.value=M)&&(_.value=M)},[i.createVNode(i.unref(Ha),{class:"w-3 text-blue-900"})],8,Fg),J>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:be=>p.value=M},[i.createVNode(i.unref(Bo),{class:"w-3 text-red-900"})],8,$g)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(i.openBlock(),i.createBlock(P,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:y},{default:i.withCtx(()=>[N.saving?(i.openBlock(),i.createBlock(Y,{key:0,class:"w-4"})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" + Add Variation ")],64))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(M,J)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:M.id,class:i.normalizeClass({"mt-4":J>0,[N.fieldClass]:!0})},[M.vnode?(i.openBlock(),i.createBlock(i.unref(un),{key:0,vnode:M.vnode,props:u(M),params:a.value,"onUpdate:modelValue":be=>x(M.name,be)},null,8,["vnode","props","params","onUpdate:modelValue"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(M.component),{key:M.name+"-"+f.value,"model-value":w(M.name),field:M,label:M.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:M.clearable||N.clearable,disable:N.disable,readonly:N.readonly,"onUpdate:modelValue":be=>x(M.name,be)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(M)]])),128)),i.renderSlot(N.$slots,"default"),i.createVNode(i.unref(xc),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),h.value!==!1?(i.openBlock(),i.createBlock(i.unref(Tt),{key:1,title:"Change variation name",onConfirm:b,onClose:I[2]||(I[2]=M=>h.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(an),{modelValue:_.value,"onUpdate:modelValue":I[1]||(I[1]=M=>_.value=M),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createBlock(i.unref(Tt),{key:2,title:`Remove variation ${p.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:I[3]||(I[3]=M=>T(p.value)),onClose:I[4]||(I[4]=M=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),Sc=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,r=t,o={form:r.form,noLabel:r.noLabel,showName:r.showName,disable:r.disable,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,c=>{var u;if(c)for(let d of r.form.fields)(u=l[d.name])!=null&&u.isSaving||(s.value[d.name]=c[d.name])});async function a(){await r.action.trigger(r.target,s.value),n("saved")}return(c,u)=>(i.openBlock(),i.createBlock(cs,i.mergeProps(o,{values:s.value,"onUpdate:values":[u[0]||(u[0]=d=>s.value=d),a],"empty-value":"","saved-at":c.hideSavedAt?void 0:c.target.updated_at,saving:c.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),Ag=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=i.useModel(t,"modelValue"),r={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:o.title,"confirm-text":o.confirmText||o.title,"content-class":o.contentClass,onConfirm:s[1]||(s[1]=l=>o.$emit("confirm",n.value)),onClose:s[2]||(s[2]=l=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(cs),i.mergeProps(r,{values:n.value,"onUpdate:values":s[0]||(s[0]=l=>n.value=l),"empty-value":""}),{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}}),Og={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},Dg={class:"max-h-full",preload:"auto"},Mg=["src","type"],Pg={key:2,class:"flex items-center justify-center h-full"},vg={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},Lg={key:1,class:"absolute-bottom w-full bg-slate-800"},Vg={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},qg={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},Rg={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Fr=ft(i.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:ts},showFilename:{type:Boolean},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},btnSize:{default:"sm"}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var S;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((S=r.src.split(".").pop())==null?void 0:S.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.computed(()=>{var S;return!r.file||((S=r.file)==null?void 0:S.progress)!==void 0}),a=i.computed(()=>{var S;return((S=r.relatedFiles)==null?void 0:S.length)>0?wd([s.value,...r.relatedFiles],c):[s.value]});function c(S,E){var y,b,T,B;return S.id===E.id||[E.url,(y=E.optimized)==null?void 0:y.url,(b=E.thumb)==null?void 0:b.url].includes(S.url)||[S.url,(T=S.optimized)==null?void 0:T.url,(B=S.thumb)==null?void 0:B.url].includes(E.url)}const u=i.computed(()=>{var S,E;return((S=s.value)==null?void 0:S.name)||((E=s.value)==null?void 0:E.filename)||""}),d=i.computed(()=>{var S,E;return((S=s.value)==null?void 0:S.type)||((E=s.value)==null?void 0:E.mime)||""}),f=i.computed(()=>!!d.value.match(/^image\//)),_=i.computed(()=>!!d.value.match(/^video\//)),h=i.computed(()=>!!d.value.match(/^application\/pdf/)),p=i.computed(()=>{var S,E,y,b;return((E=(S=s.value)==null?void 0:S.optimized)==null?void 0:E.url)||((y=s.value)==null?void 0:y.blobUrl)||((b=s.value)==null?void 0:b.url)}),m=i.computed(()=>{var S,E;return(E=(S=s.value)==null?void 0:S.thumb)==null?void 0:E.url}),g=i.computed(()=>!!m.value||_.value||f.value),w=i.computed(()=>{var y,b;let S=null;const E=((b=(y=r.file)==null?void 0:y.meta)==null?void 0:b.transcodes)||[];for(let T of Object.keys(E)){const B=E[T];if(!(B!=null&&B.completed_at))return{...B,message:`${T} ${B.status}`}}return S});i.onMounted(()=>{w.value&&new xo([]).waitForTranscode(r.file)});const x=i.ref(!1);function C(){x.value?n("remove"):(x.value=!0,setTimeout(()=>{x.value=!1},2e3))}return(S,E)=>{var I,A,P;const y=i.resolveComponent("QImg"),b=i.resolveComponent("QTooltip"),T=i.resolveComponent("QSpinnerPie"),B=i.resolveComponent("QLinearProgress"),N=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!S.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:E[0]||(E[0]=Y=>o.value=!0)},[_.value?(i.openBlock(),i.createElementBlock("div",Og,[i.createElementVNode("video",Dg,[i.createElementVNode("source",{src:p.value+"#t=0.1",type:d.value},null,8,Mg)]),i.createElementVNode("button",{class:i.normalizeClass(S.cls["play-button"])},[i.createVNode(i.unref(L0),{class:"w-16"})],2)])):i.createCommentVNode("",!0),m.value||g.value?(i.openBlock(),i.createBlock(y,{key:1,fit:S.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(m.value||p.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",Pg,[h.value?(i.openBlock(),i.createBlock(i.unref(Xa),{key:0,class:"w-3/4"})):(i.openBlock(),i.createBlock(i.unref($0),{key:1,class:"w-3/4"})),u.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[S.showFilename?(i.openBlock(),i.createElementBlock("div",vg,i.toDisplayString(u.value),1)):(i.openBlock(),i.createBlock(b,{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(u.value),1)]),_:1}))],64)):i.createCommentVNode("",!0)]))]),S.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(S.cls["action-button"])},[i.renderSlot(S.$slots,"action-button")],2)):i.createCommentVNode("",!0),l.value||w.value?(i.openBlock(),i.createElementBlock("div",Lg,[i.createVNode(B,{value:l.value?S.file.progress:w.value.progress/100,size:"36px",color:l.value?"green-800":"blue-800","animation-speed":((I=w.value)==null?void 0:I.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",Vg,[i.createVNode(T,{class:"mr-2 text-slate-50 ml-1",size:"20"}),i.createElementVNode("div",null,i.toDisplayString(l.value?"Uploading...":w.value.message),1)])]),_:1},8,["value","color","animation-speed"])])):i.createCommentVNode("",!0)],64)):i.renderSlot(S.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(S.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",qg,[S.downloadable&&((A=s.value)!=null&&A.url)?(i.openBlock(),i.createBlock(N,{key:0,size:S.btnSize,class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",S.downloadButtonClass]),onClick:E[1]||(E[1]=i.withModifiers(Y=>i.unref(Ai)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(O0),{class:"w-4 h-5"})]),_:1},8,["size","class"])):i.createCommentVNode("",!0),S.removable?(i.openBlock(),i.createBlock(N,{key:1,size:S.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(C,["stop"])},{default:i.withCtx(()=>[x.value?(i.openBlock(),i.createElementBlock("div",Rg," ? ")):(i.openBlock(),i.createBlock(i.unref(Bo),{key:1,class:"w-3"}))]),_:1},8,["size"])):i.createCommentVNode("",!0)]),o.value&&!S.disabled&&a.value?(i.openBlock(),i.createBlock(i.unref(ac),{key:2,files:a.value,"default-slide":((P=a.value[0])==null?void 0:P.id)||"",onClose:E[2]||(E[2]=Y=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_131fu_1","!visible":"_!visible_131fu_1",visible:"_visible_131fu_1",collapse:"_collapse_131fu_1",static:"_static_131fu_1",absolute:"_absolute_131fu_1",relative:"_relative_131fu_1",sticky:"_sticky_131fu_1","left-0":"_left-0_131fu_1","right-0":"_right-0_131fu_1","right-1":"_right-1_131fu_1","top-0":"_top-0_131fu_1","top-1":"_top-1_131fu_1","z-10":"_z-10_131fu_1","m-2":"_m-2_131fu_1","m-4":"_m-4_131fu_1","m-auto":"_m-auto_131fu_1","mx-1":"_mx-1_131fu_1","mx-4":"_mx-4_131fu_1","mx-auto":"_mx-auto_131fu_1","my-2":"_my-2_131fu_1","!mr-1":"_!mr-1_131fu_1","mb-2":"_mb-2_131fu_1","mb-4":"_mb-4_131fu_1","ml-1":"_ml-1_131fu_1","ml-2":"_ml-2_131fu_1","ml-2.5":"_ml-2.5_131fu_1","ml-3":"_ml-3_131fu_1","ml-4":"_ml-4_131fu_1","ml-5":"_ml-5_131fu_1","ml-[-.2em]":"_ml-[-.2em]_131fu_1","mr-1":"_mr-1_131fu_1","mr-2":"_mr-2_131fu_1","mr-3":"_mr-3_131fu_1","mr-4":"_mr-4_131fu_1","mt-1":"_mt-1_131fu_1","mt-2":"_mt-2_131fu_1","mt-3":"_mt-3_131fu_1","mt-4":"_mt-4_131fu_1",block:"_block_131fu_1","inline-block":"_inline-block_131fu_1",inline:"_inline_131fu_1",flex:"_flex_131fu_1",table:"_table_131fu_1",hidden:"_hidden_131fu_1","h-10":"_h-10_131fu_1","h-12":"_h-12_131fu_1","h-16":"_h-16_131fu_1","h-4":"_h-4_131fu_1","h-5":"_h-5_131fu_1","h-6":"_h-6_131fu_1","h-8":"_h-8_131fu_1","h-96":"_h-96_131fu_1","h-[2.25rem]":"_h-[2.25rem]_131fu_1","h-full":"_h-full_131fu_1","max-h-full":"_max-h-full_131fu_1","min-h-10":"_min-h-10_131fu_1","w-10":"_w-10_131fu_1","w-16":"_w-16_131fu_1","w-2":"_w-2_131fu_1","w-2/5":"_w-2/5_131fu_1","w-24":"_w-24_131fu_1","w-3":"_w-3_131fu_1","w-3/4":"_w-3/4_131fu_1","w-3/5":"_w-3/5_131fu_1","w-32":"_w-32_131fu_1","w-4":"_w-4_131fu_1","w-48":"_w-48_131fu_1","w-5":"_w-5_131fu_1","w-6":"_w-6_131fu_1","w-7":"_w-7_131fu_1","w-72":"_w-72_131fu_1","w-8":"_w-8_131fu_1","w-96":"_w-96_131fu_1","w-[13.5rem]":"_w-[13.5rem]_131fu_1","w-[6.5rem]":"_w-[6.5rem]_131fu_1","w-full":"_w-full_131fu_1","!min-w-0":"_!min-w-0_131fu_1","min-w-10":"_min-w-10_131fu_1","max-w-full":"_max-w-full_131fu_1","flex-shrink":"_flex-shrink_131fu_1","flex-shrink-0":"_flex-shrink-0_131fu_1",shrink:"_shrink_131fu_1","flex-grow":"_flex-grow_131fu_1",grow:"_grow_131fu_1","rotate-180":"_rotate-180_131fu_1",transform:"_transform_131fu_1","cursor-ew-resize":"_cursor-ew-resize_131fu_1","cursor-move":"_cursor-move_131fu_1","cursor-not-allowed":"_cursor-not-allowed_131fu_1","cursor-ns-resize":"_cursor-ns-resize_131fu_1","cursor-pointer":"_cursor-pointer_131fu_1",resize:"_resize_131fu_1","flex-col":"_flex-col_131fu_1","flex-nowrap":"_flex-nowrap_131fu_1","items-center":"_items-center_131fu_1","items-stretch":"_items-stretch_131fu_1","justify-start":"_justify-start_131fu_1","justify-end":"_justify-end_131fu_1","justify-center":"_justify-center_131fu_1","justify-between":"_justify-between_131fu_1","gap-x-1":"_gap-x-1_131fu_1","gap-x-4":"_gap-x-4_131fu_1","gap-y-0":"_gap-y-0_131fu_1","gap-y-1":"_gap-y-1_131fu_1","space-x-1":"_space-x-1_131fu_1","space-x-2":"_space-x-2_131fu_1","self-center":"_self-center_131fu_1","overflow-auto":"_overflow-auto_131fu_1","overflow-hidden":"_overflow-hidden_131fu_1","overflow-y-auto":"_overflow-y-auto_131fu_73","overflow-x-hidden":"_overflow-x-hidden_131fu_1","scroll-smooth":"_scroll-smooth_131fu_1","overflow-ellipsis":"_overflow-ellipsis_131fu_1","whitespace-normal":"_whitespace-normal_131fu_1","whitespace-nowrap":"_whitespace-nowrap_131fu_1",rounded:"_rounded_131fu_1","rounded-2xl":"_rounded-2xl_131fu_1","rounded-full":"_rounded-full_131fu_1","rounded-lg":"_rounded-lg_131fu_1","rounded-md":"_rounded-md_131fu_1","rounded-sm":"_rounded-sm_131fu_1","!rounded-l-none":"_!rounded-l-none_131fu_1","!rounded-r-none":"_!rounded-r-none_131fu_1","rounded-b-lg":"_rounded-b-lg_131fu_1","rounded-l-lg":"_rounded-l-lg_131fu_1","rounded-r-lg":"_rounded-r-lg_131fu_1","rounded-t-lg":"_rounded-t-lg_131fu_1","rounded-t-md":"_rounded-t-md_131fu_1","!border-0":"_!border-0_131fu_1",border:"_border_131fu_1","border-b":"_border-b_131fu_1","border-l":"_border-l_131fu_1","border-l-0":"_border-l-0_131fu_1","border-r":"_border-r_131fu_1","border-solid":"_border-solid_131fu_1","border-dashed":"_border-dashed_131fu_1","border-none":"_border-none_131fu_1","border-blue-600":"_border-blue-600_131fu_1","border-blue-700":"_border-blue-700_131fu_1","border-gray-200":"_border-gray-200_131fu_1","border-gray-300":"_border-gray-300_131fu_1","border-slate-200":"_border-slate-200_131fu_1","bg-amber-950":"_bg-amber-950_131fu_1","bg-black":"_bg-black_131fu_1","bg-blue-200":"_bg-blue-200_131fu_1","bg-blue-300":"_bg-blue-300_131fu_1","bg-blue-600":"_bg-blue-600_131fu_1","bg-blue-950":"_bg-blue-950_131fu_1","bg-emerald-200":"_bg-emerald-200_131fu_1","bg-gray-100":"_bg-gray-100_131fu_1","bg-gray-200":"_bg-gray-200_131fu_1","bg-gray-400":"_bg-gray-400_131fu_1","bg-gray-500":"_bg-gray-500_131fu_1","bg-gray-800":"_bg-gray-800_131fu_1","bg-green-200":"_bg-green-200_131fu_1","bg-green-300":"_bg-green-300_131fu_1","bg-green-900":"_bg-green-900_131fu_1","bg-green-950":"_bg-green-950_131fu_1","bg-lime-300":"_bg-lime-300_131fu_1","bg-red-200":"_bg-red-200_131fu_1","bg-red-300":"_bg-red-300_131fu_1","bg-red-900":"_bg-red-900_131fu_1","bg-red-950":"_bg-red-950_131fu_1","bg-sky-300":"_bg-sky-300_131fu_1","bg-sky-800":"_bg-sky-800_131fu_1","bg-sky-900":"_bg-sky-900_131fu_1","bg-sky-950":"_bg-sky-950_131fu_1","bg-slate-100":"_bg-slate-100_131fu_1","bg-slate-400":"_bg-slate-400_131fu_1","bg-slate-500":"_bg-slate-500_131fu_1","bg-slate-600":"_bg-slate-600_131fu_1","bg-slate-700":"_bg-slate-700_131fu_1","bg-slate-800":"_bg-slate-800_131fu_1","bg-slate-900":"_bg-slate-900_131fu_1","bg-slate-950":"_bg-slate-950_131fu_1","bg-transparent":"_bg-transparent_131fu_1","bg-white":"_bg-white_131fu_1","bg-yellow-300":"_bg-yellow-300_131fu_1","bg-yellow-950":"_bg-yellow-950_131fu_1","!bg-none":"_!bg-none_131fu_1","!p-2":"_!p-2_131fu_1","p-0":"_p-0_131fu_1","p-1":"_p-1_131fu_1","p-2":"_p-2_131fu_1","p-3":"_p-3_131fu_1","p-4":"_p-4_131fu_1","p-8":"_p-8_131fu_1","!py-0":"_!py-0_131fu_1","px-1":"_px-1_131fu_1","px-1.5":"_px-1.5_131fu_1","px-12":"_px-12_131fu_1","px-2":"_px-2_131fu_1","px-2.5":"_px-2.5_131fu_1","px-3":"_px-3_131fu_1","px-4":"_px-4_131fu_1","px-6":"_px-6_131fu_1","px-8":"_px-8_131fu_1","py-0":"_py-0_131fu_1","py-1":"_py-1_131fu_1","py-1.5":"_py-1.5_131fu_1","py-14":"_py-14_131fu_1","py-2":"_py-2_131fu_1","py-3":"_py-3_131fu_1","py-4":"_py-4_131fu_1","py-5":"_py-5_131fu_1","py-8":"_py-8_131fu_1","pl-1":"_pl-1_131fu_1","pt-3":"_pt-3_131fu_1","text-left":"_text-left_131fu_1","text-center":"_text-center_131fu_1","text-[.7rem]":"_text-[.7rem]_131fu_1","text-[1rem]":"_text-[1rem]_131fu_1","text-base":"_text-base_131fu_1","text-lg":"_text-lg_131fu_1","text-sm":"_text-sm_131fu_1","text-xs":"_text-xs_131fu_1","font-bold":"_font-bold_131fu_1","font-medium":"_font-medium_131fu_1","font-semibold":"_font-semibold_131fu_1",uppercase:"_uppercase_131fu_1","leading-[1.2rem]":"_leading-[1.2rem]_131fu_1","!text-green-900":"_!text-green-900_131fu_1","!text-red-900":"_!text-red-900_131fu_1","!text-sky-900":"_!text-sky-900_131fu_1","!text-white":"_!text-white_131fu_1","!text-yellow-900":"_!text-yellow-900_131fu_1","text-amber-400":"_text-amber-400_131fu_1","text-blue-400":"_text-blue-400_131fu_1","text-blue-600":"_text-blue-600_131fu_1","text-blue-900":"_text-blue-900_131fu_1","text-gray-300":"_text-gray-300_131fu_1","text-gray-400":"_text-gray-400_131fu_1","text-gray-500":"_text-gray-500_131fu_1","text-gray-600":"_text-gray-600_131fu_1","text-gray-700":"_text-gray-700_131fu_1","text-green-300":"_text-green-300_131fu_1","text-green-400":"_text-green-400_131fu_1","text-green-700":"_text-green-700_131fu_1","text-green-900":"_text-green-900_131fu_1","text-lime-900":"_text-lime-900_131fu_1","text-red-400":"_text-red-400_131fu_1","text-red-500":"_text-red-500_131fu_1","text-red-800":"_text-red-800_131fu_1","text-red-900":"_text-red-900_131fu_1","text-sky-400":"_text-sky-400_131fu_1","text-sky-900":"_text-sky-900_131fu_1","text-slate-200":"_text-slate-200_131fu_1","text-slate-300":"_text-slate-300_131fu_1","text-slate-400":"_text-slate-400_131fu_1","text-slate-50":"_text-slate-50_131fu_1","text-slate-500":"_text-slate-500_131fu_1","text-slate-600":"_text-slate-600_131fu_1","text-slate-800":"_text-slate-800_131fu_1","text-slate-900":"_text-slate-900_131fu_1","text-white":"_text-white_131fu_1","text-yellow-400":"_text-yellow-400_131fu_1","text-yellow-600":"_text-yellow-600_131fu_1","text-zinc-500":"_text-zinc-500_131fu_1","text-zinc-800":"_text-zinc-800_131fu_1","line-through":"_line-through_131fu_1","opacity-0":"_opacity-0_131fu_1","opacity-20":"_opacity-20_131fu_1","opacity-50":"_opacity-50_131fu_1","opacity-70":"_opacity-70_131fu_1","opacity-80":"_opacity-80_131fu_1","shadow-none":"_shadow-none_131fu_1","outline-none":"_outline-none_131fu_1",outline:"_outline_131fu_1","outline-offset-0":"_outline-offset-0_131fu_1",filter:"_filter_131fu_1",transition:"_transition_131fu_1","transition-all":"_transition-all_131fu_1","duration-300":"_duration-300_131fu_1","danx-app":"_danx-app_131fu_4","q-tab":"_q-tab_131fu_4","q-table__card":"_q-table__card_131fu_7","q-checkbox__inner":"_q-checkbox__inner_131fu_11","q-toolbar":"_q-toolbar_131fu_14","q-notification__actions":"_q-notification__actions_131fu_19","q-date":"_q-date_131fu_22","q-date__view":"_q-date__view_131fu_25","q-field":"_q-field_131fu_28","q-field--auto-height":"_q-field--auto-height_131fu_28","q-field__control":"_q-field__control_131fu_28","q-field__native":"_q-field__native_131fu_31","q-field--labeled":"_q-field--labeled_131fu_35","q-field__control-container":"_q-field__control-container_131fu_35","q-textarea":"_q-textarea_131fu_38","q-field__marginal":"_q-field__marginal_131fu_41","q-field__input":"_q-field__input_131fu_41","q-field__label":"_q-field__label_131fu_41","q-btn":"_q-btn_131fu_48","q-item":"_q-item_131fu_56","q-tab-panels":"_q-tab-panels_131fu_60","q-panel":"_q-panel_131fu_64",scroll:"_scroll_131fu_67","q-tab-panel":"_q-tab-panel_131fu_60","dx-dialog":"_dx-dialog_131fu_77","q-card__section--vert":"_q-card__section--vert_131fu_77","q-banner":"_q-banner_131fu_81",app:"_app_131fu_1","main-layout":"_main-layout_131fu_1","is-disabled":"_is-disabled_131fu_98","disable-all-transitions":"_disable-all-transitions_131fu_103","v-enter-active":"_v-enter-active_131fu_107","v-leave-active":"_v-leave-active_131fu_108","v-enter-from":"_v-enter-from_131fu_112","v-leave-to":"_v-leave-to_131fu_113","dx-action-table":"_dx-action-table_131fu_117","dx-column-shrink":"_dx-column-shrink_131fu_117","action-button":"_action-button_131fu_121","play-button":"_play-button_131fu_128","hover:bg-blue-200":"_hover:bg-blue-200_131fu_1","hover:bg-blue-400":"_hover:bg-blue-400_131fu_1","hover:bg-gray-200":"_hover:bg-gray-200_131fu_1","hover:bg-green-100":"_hover:bg-green-100_131fu_1","hover:bg-green-400":"_hover:bg-green-400_131fu_1","hover:bg-green-800":"_hover:bg-green-800_131fu_1","hover:bg-lime-400":"_hover:bg-lime-400_131fu_1","hover:bg-red-100":"_hover:bg-red-100_131fu_1","hover:bg-red-200":"_hover:bg-red-200_131fu_1","hover:bg-red-400":"_hover:bg-red-400_131fu_1","hover:bg-sky-400":"_hover:bg-sky-400_131fu_1","hover:bg-sky-800":"_hover:bg-sky-800_131fu_1","hover:bg-slate-200":"_hover:bg-slate-200_131fu_1","hover:bg-slate-300":"_hover:bg-slate-300_131fu_1","hover:bg-slate-600":"_hover:bg-slate-600_131fu_1","hover:bg-slate-900":"_hover:bg-slate-900_131fu_1","hover:text-blue-500":"_hover:text-blue-500_131fu_1","hover:text-blue-600":"_hover:text-blue-600_131fu_1","hover:opacity-100":"_hover:opacity-100_131fu_1","hover:opacity-20":"_hover:opacity-20_131fu_1","hover:opacity-70":"_hover:opacity-70_131fu_1","hover:outline-4":"_hover:outline-4_131fu_1","focus:bg-blue-200":"_focus:bg-blue-200_131fu_1","focus:outline-4":"_focus:outline-4_131fu_1","focus:outline-blue-200":"_focus:outline-blue-200_131fu_1",group:"_group_131fu_1","group-hover:opacity-100":"_group-hover:opacity-100_131fu_1"}}]]),Ug=["src","alt"],Cc={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.svg.default?e.svg.default:e.svg),r=i.computed(()=>typeof n.value=="string");return(o,s)=>r.value?(i.openBlock(),i.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,Ug)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},jg={class:"address-format"},zg={key:0,class:"address-attn"},Hg={key:1,class:"address-name"},Gg={class:"address-line-1"},Zg={key:0,class:"address-line-2"},Wg={key:1,class:"address-line-3"},Yg={class:"address-city-state-zip"},Kg={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",jg,[t.address.attn?(i.openBlock(),i.createElementBlock("div",zg,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",Hg,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",Gg,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",Zg,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",Wg,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Yg,[t.address.city?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.address.city)+",",1)],64)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(t.address.state)+" "+i.toDisplayString(t.address.zip_code),1)])],64)):i.createCommentVNode("",!0)]))}},Qg={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,r=>(i.openBlock(),i.createElementBlock("li",{key:r[t.column]},i.toDisplayString(r[t.column]),1))),128))]))}},Xg={class:"flex flex-nowrap items-center"},Jg={key:0,class:"whitespace-nowrap"},ey={__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 i.openBlock(),i.createElementBlock("div",Xg,[i.createVNode(i.unref(e0),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",Jg,i.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+i.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Unknown ")],64))])}}},ty={class:"flex items-center flex-nowrap"},ny={__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)=>(i.openBlock(),i.createElementBlock("div",ty,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon),{class:i.normalizeClass(t.iconClass)},null,8,["class"])),i.createElementVNode("div",{class:i.normalizeClass(t.textClass)},[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])],2)]))}},ry={class:"text-xs font-bold"},oy={__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=i.resolveComponent("QSpinnerTail");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",ry,i.toDisplayString(t.label),1),i.createElementVNode("div",{class:i.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(i.openBlock(),i.createBlock(r,{key:0})):i.renderSlot(e.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.value||"-"),1)])],2)])}}},iy={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Ec=i.defineComponent({__name:"CollapsableSidebar",props:{displayClass:{default:"flex flex-col"},toggleClass:{default:""},toggleIconClass:{default:"w-5 transition-all"},rightSide:{type:Boolean},maxWidth:{default:"13.5rem"},minWidth:{default:"5.5rem"},disabled:{type:Boolean},collapse:{type:Boolean},name:{default:"sidebar"},toggleAtTop:{type:Boolean},hideToggleOnCollapse:{type:Boolean}},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(Ct(r.name+"-is-collapsed",r.collapse));function s(d){o.value=d,vt(r.name+"-is-collapsed",!!o.value)}function l(){s(!o.value),n("collapse",o.value),n("update:collapse",o.value)}i.onMounted(()=>{n("collapse",o.value),n("update:collapse",o.value)});const a=i.computed(()=>({width:o.value?r.minWidth:r.maxWidth})),c=i.computed(()=>typeof r.toggleClass=="string"?{[r.toggleClass]:!0}:r.toggleClass),u=i.computed(()=>typeof r.toggleIconClass=="string"?{[r.toggleIconClass]:!0}:r.toggleIconClass);return i.watch(()=>r.collapse,()=>{s(r.collapse)}),(d,f)=>{const _=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-collapsable-sidebar overflow-hidden scroll-smooth flex-shrink-0 flex-nowrap transition-all relative",{"is-collapsed":o.value,"is-right-side":d.rightSide,[d.displayClass]:!0}]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",iy,[i.renderSlot(d.$slots,"default",{isCollapsed:o.value})]),!d.disabled&&(!d.hideToggleOnCollapse||!o.value)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[d.toggleAtTop?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",c.value]),onClick:l},[i.createVNode(i.unref(ic),{class:i.normalizeClass({"rotate-180":d.rightSide?!o.value:o.value,...u.value})},null,8,["class"])],2)):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex w-full p-4 flex-shrink-0",{"justify-start":d.rightSide,"justify-end":!d.rightSide,...c.value}])},[i.renderSlot(d.$slots,"toggle",{},()=>[i.createVNode(_,{class:"btn-secondary",onClick:l},{default:i.withCtx(()=>[i.createVNode(i.unref(ic),{class:i.normalizeClass({"rotate-180":d.rightSide?!o.value:o.value,...u.value})},null,8,["class"])]),_:1})])],2))],64)):i.createCommentVNode("",!0)],6)}}}),us=ft(i.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=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:i.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=o=>e.$emit("update:show",!1))},{default:i.withCtx(()=>[i.createElementVNode("div",null,[e.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["stop","prevent"]))},i.toDisplayString(e.title),3)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[i.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1816t_1","!visible":"_!visible_1816t_1",visible:"_visible_1816t_1",collapse:"_collapse_1816t_1",static:"_static_1816t_1",absolute:"_absolute_1816t_1",relative:"_relative_1816t_1",sticky:"_sticky_1816t_1","left-0":"_left-0_1816t_1","right-0":"_right-0_1816t_1","right-1":"_right-1_1816t_1","top-0":"_top-0_1816t_1","top-1":"_top-1_1816t_1","z-10":"_z-10_1816t_1","m-2":"_m-2_1816t_1","m-4":"_m-4_1816t_1","m-auto":"_m-auto_1816t_1","mx-1":"_mx-1_1816t_1","mx-4":"_mx-4_1816t_1","mx-auto":"_mx-auto_1816t_1","my-2":"_my-2_1816t_1","!mr-1":"_!mr-1_1816t_1","mb-2":"_mb-2_1816t_1","mb-4":"_mb-4_1816t_1","ml-1":"_ml-1_1816t_1","ml-2":"_ml-2_1816t_1","ml-2.5":"_ml-2.5_1816t_1","ml-3":"_ml-3_1816t_1","ml-4":"_ml-4_1816t_1","ml-5":"_ml-5_1816t_1","ml-[-.2em]":"_ml-[-.2em]_1816t_1","mr-1":"_mr-1_1816t_1","mr-2":"_mr-2_1816t_1","mr-3":"_mr-3_1816t_1","mr-4":"_mr-4_1816t_1","mt-1":"_mt-1_1816t_1","mt-2":"_mt-2_1816t_1","mt-3":"_mt-3_1816t_1","mt-4":"_mt-4_1816t_1",block:"_block_1816t_1","inline-block":"_inline-block_1816t_1",inline:"_inline_1816t_1",flex:"_flex_1816t_1",table:"_table_1816t_1",hidden:"_hidden_1816t_1","h-10":"_h-10_1816t_1","h-12":"_h-12_1816t_1","h-16":"_h-16_1816t_1","h-4":"_h-4_1816t_1","h-5":"_h-5_1816t_1","h-6":"_h-6_1816t_1","h-8":"_h-8_1816t_1","h-96":"_h-96_1816t_1","h-[2.25rem]":"_h-[2.25rem]_1816t_1","h-full":"_h-full_1816t_1","max-h-full":"_max-h-full_1816t_1","min-h-10":"_min-h-10_1816t_1","w-10":"_w-10_1816t_1","w-16":"_w-16_1816t_1","w-2":"_w-2_1816t_1","w-2/5":"_w-2/5_1816t_1","w-24":"_w-24_1816t_1","w-3":"_w-3_1816t_1","w-3/4":"_w-3/4_1816t_1","w-3/5":"_w-3/5_1816t_1","w-32":"_w-32_1816t_1","w-4":"_w-4_1816t_1","w-48":"_w-48_1816t_1","w-5":"_w-5_1816t_1","w-6":"_w-6_1816t_1","w-7":"_w-7_1816t_1","w-72":"_w-72_1816t_1","w-8":"_w-8_1816t_1","w-96":"_w-96_1816t_1","w-[13.5rem]":"_w-[13.5rem]_1816t_1","w-[6.5rem]":"_w-[6.5rem]_1816t_1","w-full":"_w-full_1816t_1","!min-w-0":"_!min-w-0_1816t_1","min-w-10":"_min-w-10_1816t_1","max-w-full":"_max-w-full_1816t_1","flex-shrink":"_flex-shrink_1816t_1","flex-shrink-0":"_flex-shrink-0_1816t_1",shrink:"_shrink_1816t_1","flex-grow":"_flex-grow_1816t_1",grow:"_grow_1816t_1","rotate-180":"_rotate-180_1816t_1",transform:"_transform_1816t_1","cursor-ew-resize":"_cursor-ew-resize_1816t_1","cursor-move":"_cursor-move_1816t_1","cursor-not-allowed":"_cursor-not-allowed_1816t_1","cursor-ns-resize":"_cursor-ns-resize_1816t_1","cursor-pointer":"_cursor-pointer_1816t_1",resize:"_resize_1816t_1","flex-col":"_flex-col_1816t_1","flex-nowrap":"_flex-nowrap_1816t_1","items-center":"_items-center_1816t_1","items-stretch":"_items-stretch_1816t_1","justify-start":"_justify-start_1816t_1","justify-end":"_justify-end_1816t_1","justify-center":"_justify-center_1816t_1","justify-between":"_justify-between_1816t_1","gap-x-1":"_gap-x-1_1816t_1","gap-x-4":"_gap-x-4_1816t_1","gap-y-0":"_gap-y-0_1816t_1","gap-y-1":"_gap-y-1_1816t_1","space-x-1":"_space-x-1_1816t_1","space-x-2":"_space-x-2_1816t_1","self-center":"_self-center_1816t_1","overflow-auto":"_overflow-auto_1816t_1","overflow-hidden":"_overflow-hidden_1816t_1","overflow-y-auto":"_overflow-y-auto_1816t_73","overflow-x-hidden":"_overflow-x-hidden_1816t_1","scroll-smooth":"_scroll-smooth_1816t_1","overflow-ellipsis":"_overflow-ellipsis_1816t_1","whitespace-normal":"_whitespace-normal_1816t_1","whitespace-nowrap":"_whitespace-nowrap_1816t_1",rounded:"_rounded_1816t_1","rounded-2xl":"_rounded-2xl_1816t_1","rounded-full":"_rounded-full_1816t_1","rounded-lg":"_rounded-lg_1816t_1","rounded-md":"_rounded-md_1816t_1","rounded-sm":"_rounded-sm_1816t_1","!rounded-l-none":"_!rounded-l-none_1816t_1","!rounded-r-none":"_!rounded-r-none_1816t_1","rounded-b-lg":"_rounded-b-lg_1816t_1","rounded-l-lg":"_rounded-l-lg_1816t_1","rounded-r-lg":"_rounded-r-lg_1816t_1","rounded-t-lg":"_rounded-t-lg_1816t_1","rounded-t-md":"_rounded-t-md_1816t_1","!border-0":"_!border-0_1816t_1",border:"_border_1816t_1","border-b":"_border-b_1816t_1","border-l":"_border-l_1816t_1","border-l-0":"_border-l-0_1816t_1","border-r":"_border-r_1816t_1","border-solid":"_border-solid_1816t_1","border-dashed":"_border-dashed_1816t_1","border-none":"_border-none_1816t_1","border-blue-600":"_border-blue-600_1816t_1","border-blue-700":"_border-blue-700_1816t_1","border-gray-200":"_border-gray-200_1816t_1","border-gray-300":"_border-gray-300_1816t_1","border-slate-200":"_border-slate-200_1816t_1","bg-amber-950":"_bg-amber-950_1816t_1","bg-black":"_bg-black_1816t_1","bg-blue-200":"_bg-blue-200_1816t_1","bg-blue-300":"_bg-blue-300_1816t_1","bg-blue-600":"_bg-blue-600_1816t_1","bg-blue-950":"_bg-blue-950_1816t_1","bg-emerald-200":"_bg-emerald-200_1816t_1","bg-gray-100":"_bg-gray-100_1816t_1","bg-gray-200":"_bg-gray-200_1816t_1","bg-gray-400":"_bg-gray-400_1816t_1","bg-gray-500":"_bg-gray-500_1816t_1","bg-gray-800":"_bg-gray-800_1816t_1","bg-green-200":"_bg-green-200_1816t_1","bg-green-300":"_bg-green-300_1816t_1","bg-green-900":"_bg-green-900_1816t_1","bg-green-950":"_bg-green-950_1816t_1","bg-lime-300":"_bg-lime-300_1816t_1","bg-red-200":"_bg-red-200_1816t_1","bg-red-300":"_bg-red-300_1816t_1","bg-red-900":"_bg-red-900_1816t_1","bg-red-950":"_bg-red-950_1816t_1","bg-sky-300":"_bg-sky-300_1816t_1","bg-sky-800":"_bg-sky-800_1816t_1","bg-sky-900":"_bg-sky-900_1816t_1","bg-sky-950":"_bg-sky-950_1816t_1","bg-slate-100":"_bg-slate-100_1816t_1","bg-slate-400":"_bg-slate-400_1816t_1","bg-slate-500":"_bg-slate-500_1816t_1","bg-slate-600":"_bg-slate-600_1816t_1","bg-slate-700":"_bg-slate-700_1816t_1","bg-slate-800":"_bg-slate-800_1816t_1","bg-slate-900":"_bg-slate-900_1816t_1","bg-slate-950":"_bg-slate-950_1816t_1","bg-transparent":"_bg-transparent_1816t_1","bg-white":"_bg-white_1816t_1","bg-yellow-300":"_bg-yellow-300_1816t_1","bg-yellow-950":"_bg-yellow-950_1816t_1","!bg-none":"_!bg-none_1816t_1","!p-2":"_!p-2_1816t_1","p-0":"_p-0_1816t_1","p-1":"_p-1_1816t_1","p-2":"_p-2_1816t_1","p-3":"_p-3_1816t_1","p-4":"_p-4_1816t_1","p-8":"_p-8_1816t_1","!py-0":"_!py-0_1816t_1","px-1":"_px-1_1816t_1","px-1.5":"_px-1.5_1816t_1","px-12":"_px-12_1816t_1","px-2":"_px-2_1816t_1","px-2.5":"_px-2.5_1816t_1","px-3":"_px-3_1816t_1","px-4":"_px-4_1816t_1","px-6":"_px-6_1816t_1","px-8":"_px-8_1816t_1","py-0":"_py-0_1816t_1","py-1":"_py-1_1816t_1","py-1.5":"_py-1.5_1816t_1","py-14":"_py-14_1816t_1","py-2":"_py-2_1816t_1","py-3":"_py-3_1816t_1","py-4":"_py-4_1816t_1","py-5":"_py-5_1816t_1","py-8":"_py-8_1816t_1","pl-1":"_pl-1_1816t_1","pt-3":"_pt-3_1816t_1","text-left":"_text-left_1816t_1","text-center":"_text-center_1816t_1","text-[.7rem]":"_text-[.7rem]_1816t_1","text-[1rem]":"_text-[1rem]_1816t_1","text-base":"_text-base_1816t_1","text-lg":"_text-lg_1816t_1","text-sm":"_text-sm_1816t_1","text-xs":"_text-xs_1816t_1","font-bold":"_font-bold_1816t_1","font-medium":"_font-medium_1816t_1","font-semibold":"_font-semibold_1816t_1",uppercase:"_uppercase_1816t_1","leading-[1.2rem]":"_leading-[1.2rem]_1816t_1","!text-green-900":"_!text-green-900_1816t_1","!text-red-900":"_!text-red-900_1816t_1","!text-sky-900":"_!text-sky-900_1816t_1","!text-white":"_!text-white_1816t_1","!text-yellow-900":"_!text-yellow-900_1816t_1","text-amber-400":"_text-amber-400_1816t_1","text-blue-400":"_text-blue-400_1816t_1","text-blue-600":"_text-blue-600_1816t_1","text-blue-900":"_text-blue-900_1816t_1","text-gray-300":"_text-gray-300_1816t_1","text-gray-400":"_text-gray-400_1816t_1","text-gray-500":"_text-gray-500_1816t_1","text-gray-600":"_text-gray-600_1816t_1","text-gray-700":"_text-gray-700_1816t_1","text-green-300":"_text-green-300_1816t_1","text-green-400":"_text-green-400_1816t_1","text-green-700":"_text-green-700_1816t_1","text-green-900":"_text-green-900_1816t_1","text-lime-900":"_text-lime-900_1816t_1","text-red-400":"_text-red-400_1816t_1","text-red-500":"_text-red-500_1816t_1","text-red-800":"_text-red-800_1816t_1","text-red-900":"_text-red-900_1816t_1","text-sky-400":"_text-sky-400_1816t_1","text-sky-900":"_text-sky-900_1816t_1","text-slate-200":"_text-slate-200_1816t_1","text-slate-300":"_text-slate-300_1816t_1","text-slate-400":"_text-slate-400_1816t_1","text-slate-50":"_text-slate-50_1816t_1","text-slate-500":"_text-slate-500_1816t_1","text-slate-600":"_text-slate-600_1816t_1","text-slate-800":"_text-slate-800_1816t_1","text-slate-900":"_text-slate-900_1816t_1","text-white":"_text-white_1816t_1","text-yellow-400":"_text-yellow-400_1816t_1","text-yellow-600":"_text-yellow-600_1816t_1","text-zinc-500":"_text-zinc-500_1816t_1","text-zinc-800":"_text-zinc-800_1816t_1","line-through":"_line-through_1816t_1","opacity-0":"_opacity-0_1816t_1","opacity-20":"_opacity-20_1816t_1","opacity-50":"_opacity-50_1816t_1","opacity-70":"_opacity-70_1816t_1","opacity-80":"_opacity-80_1816t_1","shadow-none":"_shadow-none_1816t_1","outline-none":"_outline-none_1816t_1",outline:"_outline_1816t_1","outline-offset-0":"_outline-offset-0_1816t_1",filter:"_filter_1816t_1",transition:"_transition_1816t_1","transition-all":"_transition-all_1816t_1","duration-300":"_duration-300_1816t_1","danx-app":"_danx-app_1816t_4","q-tab":"_q-tab_1816t_4","q-table__card":"_q-table__card_1816t_7","q-checkbox__inner":"_q-checkbox__inner_1816t_11","q-toolbar":"_q-toolbar_1816t_14","q-notification__actions":"_q-notification__actions_1816t_19","q-date":"_q-date_1816t_22","q-date__view":"_q-date__view_1816t_25","q-field":"_q-field_1816t_28","q-field--auto-height":"_q-field--auto-height_1816t_28","q-field__control":"_q-field__control_1816t_28","q-field__native":"_q-field__native_1816t_31","q-field--labeled":"_q-field--labeled_1816t_35","q-field__control-container":"_q-field__control-container_1816t_35","q-textarea":"_q-textarea_1816t_38","q-field__marginal":"_q-field__marginal_1816t_41","q-field__input":"_q-field__input_1816t_41","q-field__label":"_q-field__label_1816t_41","q-btn":"_q-btn_1816t_48","q-item":"_q-item_1816t_56","q-tab-panels":"_q-tab-panels_1816t_60","q-panel":"_q-panel_1816t_64",scroll:"_scroll_1816t_67","q-tab-panel":"_q-tab-panel_1816t_60","dx-dialog":"_dx-dialog_1816t_77","q-card__section--vert":"_q-card__section--vert_1816t_77","q-banner":"_q-banner_1816t_81",app:"_app_1816t_1","main-layout":"_main-layout_1816t_1","is-disabled":"_is-disabled_1816t_98","disable-all-transitions":"_disable-all-transitions_1816t_103","v-enter-active":"_v-enter-active_1816t_107","v-leave-active":"_v-leave-active_1816t_108","v-enter-from":"_v-enter-from_1816t_112","v-leave-to":"_v-leave-to_1816t_113","dx-action-table":"_dx-action-table_1816t_117","dx-column-shrink":"_dx-column-shrink_1816t_117","dialog-title":"_dialog-title_1816t_121","dialog-content":"_dialog-content_1816t_128","hover:bg-blue-200":"_hover:bg-blue-200_1816t_1","hover:bg-blue-400":"_hover:bg-blue-400_1816t_1","hover:bg-gray-200":"_hover:bg-gray-200_1816t_1","hover:bg-green-100":"_hover:bg-green-100_1816t_1","hover:bg-green-400":"_hover:bg-green-400_1816t_1","hover:bg-green-800":"_hover:bg-green-800_1816t_1","hover:bg-lime-400":"_hover:bg-lime-400_1816t_1","hover:bg-red-100":"_hover:bg-red-100_1816t_1","hover:bg-red-200":"_hover:bg-red-200_1816t_1","hover:bg-red-400":"_hover:bg-red-400_1816t_1","hover:bg-sky-400":"_hover:bg-sky-400_1816t_1","hover:bg-sky-800":"_hover:bg-sky-800_1816t_1","hover:bg-slate-200":"_hover:bg-slate-200_1816t_1","hover:bg-slate-300":"_hover:bg-slate-300_1816t_1","hover:bg-slate-600":"_hover:bg-slate-600_1816t_1","hover:bg-slate-900":"_hover:bg-slate-900_1816t_1","hover:text-blue-500":"_hover:text-blue-500_1816t_1","hover:text-blue-600":"_hover:text-blue-600_1816t_1","hover:opacity-100":"_hover:opacity-100_1816t_1","hover:opacity-20":"_hover:opacity-20_1816t_1","hover:opacity-70":"_hover:opacity-70_1816t_1","hover:outline-4":"_hover:outline-4_1816t_1","focus:bg-blue-200":"_focus:bg-blue-200_1816t_1","focus:outline-4":"_focus:outline-4_1816t_1","focus:outline-blue-200":"_focus:outline-blue-200_1816t_1",group:"_group_1816t_1","group-hover:opacity-100":"_group-hover:opacity-100_1816t_1"}}]]),Tc=t=>i.isVNode(t.vnode)?t.vnode:i.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;Tc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const un=Tc,sy={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await kn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(kn)?(i.openBlock(),i.createBlock(i.unref(un),{key:0,vnode:i.unref(kn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(kn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},Bc={__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=i.computed(()=>{var o,s,l;return((o=r.value)==null?void 0:o.value)||((l=(s=r.value)==null?void 0:s.props)==null?void 0:l.text)}),r=i.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(o,s)=>n.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:s[0]||(s[0]=l=>o.$emit("action",l))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.value),1)]),_:1},16)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:s[1]||(s[1]=l=>o.$emit("action",l))}),null,16))}},ly=["href"],Nc=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:ee.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(o){n("action",o.name||o.action),n("action-item",o)}return(o,s)=>{const l=i.resolveComponent("QTooltip"),a=i.resolveComponent("QItem"),c=i.resolveComponent("QList"),u=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("a",{class:i.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":o.disabled}])},[o.$slots.tooltip||o.tooltip?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(o.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),i.createVNode(i.Transition,{mode:"out-in",duration:150},{default:i.withCtx(()=>[o.loading?(i.openBlock(),i.createBlock(i.unref(Bc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(A0),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),o.disabled?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"auto-close":""},{default:i.withCtx(()=>[i.createVNode(c,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.items,d=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.name},[d.url?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)],10,ly)):(i.openBlock(),i.createBlock(a,{key:1,clickable:"",class:i.normalizeClass(d.class),onClick:f=>r(d)},{default:i.withCtx(()=>[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),ay={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=i.ref(!1),n=i.ref(null),r=i.ref(!1),o=i.ref(!1);let s=null;i.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,o.value=!0,s&&clearTimeout(s)}function a(){o.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,s&&clearTimeout(s)}function u(){r.value=!1,e.value&&d()}function d(){s&&clearTimeout(s),s=setTimeout(()=>{r.value||o.value?d():e.value=!1},200)}return(f,_)=>{const h=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(h,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":_[0]||(_[0]=p=>e.value=p),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},cy={class:"flex items-center w-full"},uy={class:"flex-grow text-sm"},dy={__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=i.resolveComponent("QBadge"),o=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(o,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",cy,[i.createElementVNode("div",uy,i.toDisplayString(t.label),1),i.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},fy={class:"flex items-center w-full"},_y={class:"flex-grow text-sm"},hy={__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=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",fy,[i.createElementVNode("div",_y,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(za),{key:0,class:i.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(i.openBlock(),i.createBlock(i.unref(nc),{key:1,class:"text-yellow-600 w-5"})):i.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},my={};function py(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const gy=ft(my,[["render",py]]),Ic={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},yy=i.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return i.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:"maxHeight"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3}))}}),by={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:t.name},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Bt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
1
+ (function(k,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(k=typeof globalThis<"u"?globalThis:k||self,i(k.Danx={},k.Vue,k.Quasar))})(this,function(k,i,ee){"use strict";var T8=Object.defineProperty;var B8=(k,i,ee)=>i in k?T8(k,i,{enumerable:!0,configurable:!0,writable:!0,value:ee}):k[i]=ee;var G=(k,i,ee)=>B8(k,typeof i!="symbol"?i+"":i,ee);const re=i.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function tm(t){re.value={...re.value,...t,fileUpload:{...re.value.fileUpload,...t.fileUpload},flashMessages:{...re.value.flashMessages,...t.flashMessages},request:{...re.value.request,...t.request}}}function nm(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function va(t){return typeof t=="function"?t():i.unref(t)}const rm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const La=()=>{};function om(t,e){function n(...r){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return n}function im(t,e={}){let n,r,o=La;const s=a=>{clearTimeout(a),o(),o=La};return a=>{const c=va(t),u=va(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},c)})}}function ln(t,e=200,n={}){return om(im(e,n),t)}const sm=rm?window.navigator:void 0;function lm(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function am(t){const e=lm();return i.computed(()=>(e.value,!!t()))}function cm(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=sm,immediate:s=!0}=t,l=am(()=>o&&"geolocation"in o),a=i.ref(null),c=i.shallowRef(null),u=i.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(p){a.value=p.timestamp,u.value=p.coords,c.value=null}let f;function _(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&_();function h(){f&&o&&o.geolocation.clearWatch(f)}return nm(()=>{h()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:_,pause:h}}const um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function dm(t,e){return i.openBlock(),i.createElementBlock("svg",um,e[0]||(e[0]=[i.createElementVNode("path",{d:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8 62.5-62.5 163.8-62.5 226.3 0l17.1 17.2H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h111.9c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2l-17.5-17.6c-87.5-87.5-229.3-87.5-316.8 0-24.4 24.4-42 53.1-52.8 83.8-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2-4 4-6.7 8.8-8.1 14-.3 1.2-.6 2.5-.8 3.8-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-35.1l17.6 17.5c87.5 87.4 229.3 87.4 316.7 0 24.4-24.4 42.1-53.1 52.9-83.7 5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8-62.5 62.5-163.8 62.5-226.3 0l-.1-.1-17.1-17.1H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4q-2.4 0-4.8.3c-2.4.3-3.1.5-4.6 1"},null,-1)]))}const fm={render:dm},_m={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function hm(t,e){return i.openBlock(),i.createElementBlock("svg",_m,e[0]||(e[0]=[i.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)]))}const Va={render:hm},mm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function pm(t,e){return i.openBlock(),i.createElementBlock("svg",mm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},null,-1)]))}const gm={render:pm},ym={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function bm(t,e){return i.openBlock(),i.createElementBlock("svg",ym,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-81-337c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9"},null,-1)]))}const qa={render:bm},wm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function km(t,e){return i.openBlock(),i.createElementBlock("svg",wm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)]))}const Ra={render:km},xm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Sm(t,e){return i.openBlock(),i.createElementBlock("svg",xm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)]))}const Cm={render:Sm},Em={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function Tm(t,e){return i.openBlock(),i.createElementBlock("svg",Em,e[0]||(e[0]=[i.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)]))}const Bm={render:Tm},Nm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Im(t,e){return i.openBlock(),i.createElementBlock("svg",Nm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)]))}const Fm={render:Im},$m={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Am(t,e){return i.openBlock(),i.createElementBlock("svg",$m,e[0]||(e[0]=[i.createElementVNode("path",{d:"M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113c-9.3-9.4-9.3-24.6 0-34s24.6-9.4 33.9 0L63 101.1l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L63 261.2l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m-64 160c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32M48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96"},null,-1)]))}const Om={render:Am},Dm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function Mm(t,e){return i.openBlock(),i.createElementBlock("svg",Dm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48z"},null,-1)]))}const Pm={render:Mm},vm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Lm(t,e){return i.openBlock(),i.createElementBlock("svg",vm,e[0]||(e[0]=[i.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)]))}const Pn={render:Lm},Vm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function qm(t,e){return i.openBlock(),i.createElementBlock("svg",Vm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41z"},null,-1)]))}const Rm={render:qm},Um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function jm(t,e){return i.openBlock(),i.createElementBlock("svg",Um,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Ua={render:jm},zm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Hm(t,e){return i.openBlock(),i.createElementBlock("svg",zm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 128c0-35.3 28.7-64 64-64h256c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64z"},null,-1)]))}const Gm={render:Hm},Zm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Wm(t,e){return i.openBlock(),i.createElementBlock("svg",Zm,e[0]||(e[0]=[i.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const ja={render:Wm},Ym={class:"flex items-center flex-nowrap"},Km={class:"p-4 bg-slate-600"},Qm={class:"flex items-center flex-nowrap mt-2"},Xm={class:"flex-grow"},Eo=i.defineComponent({__name:"ActionButton",props:{type:{default:null},color:{default:null},size:{default:"md"},icon:{default:null},iconClass:{default:""},label:{default:""},labelClass:{default:""},tooltip:{default:""},saving:{type:Boolean},action:{default:null},target:{default:null},input:{default:null},disabled:{type:Boolean},disabledClass:{default:"text-slate-800 bg-slate-500 opacity-50"},confirm:{type:Boolean},confirmText:{default:"Are you sure?"}},emits:["success","error","always"],setup(t,{emit:e}){const n=e,r=t,o={xxs:{icon:"w-2",button:"px-.5 h-5"},xs:{icon:"w-3",button:"px-1.5 h-6"},sm:{icon:"w-4",button:"px-2 h-8"},md:{icon:"w-5",button:"px-2.5 h-10"},lg:{icon:"w-6",button:"px-3 h-12"}},s=i.computed(()=>({[r.disabled?r.disabledClass:l.value]:!0,[o[r.size].button]:!0})),l=i.computed(()=>{switch(r.color){case"red":return"text-red-900 bg-red-300 hover:bg-red-400";case"lime":return"text-lime-900 bg-lime-300 hover:bg-lime-400";case"green":return"text-green-900 bg-green-300 hover:bg-green-400";case"green-invert":return"text-green-300 bg-green-900 hover:bg-green-800";case"blue":return"text-blue-900 bg-blue-300 hover:bg-blue-400";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";default:return""}}),a=i.computed(()=>{const f=o[r.size].icon;switch(r.type){case"trash":return{icon:ja,iconClass:f};case"create":return{icon:Ua,iconClass:f};case"confirm":return{icon:gm,iconClass:f};case"cancel":return{icon:qa,iconClass:f};case"edit":return{icon:Pn,iconClass:f};case"copy":return{icon:Ra,iconClass:f};case"play":return{icon:Rm,iconClass:f};case"stop":return{icon:Gm,iconClass:f};case"pause":return{icon:Pm,iconClass:f};case"refresh":return{icon:fm,iconClass:f};default:return{icon:Pn,iconClass:f}}}),c=i.computed(()=>r.saving?!0:r.action?r.action.isApplying:r.target?Array.isArray(r.target)?r.target.some(f=>f.isSaving):r.target.isSaving:!1),u=i.ref(!1);function d(f=!1){if(!r.disabled){if(r.confirm&&!f)return u.value=!0,!1;u.value=!1,r.action?r.action.trigger(r.target,r.input).then(async _=>{n("success",typeof _.json=="function"?await _.json():_)}).catch(_=>{console.error(`Action emitted an error: ${r.action.name}`,_,r.target),n("error",_)}).finally(()=>{n("always")}):n("always")}}return(f,_)=>{const h=i.resolveComponent("QTooltip"),p=i.resolveComponent("ActionButton",!0),m=i.resolveComponent("QMenu"),g=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(g,{loading:c.value,class:i.normalizeClass(["shadow-none py-0",s.value]),disable:f.disabled,onClick:_[2]||(_[2]=()=>d())},{default:i.withCtx(()=>[i.createElementVNode("div",Ym,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.icon||a.value.icon),{class:i.normalizeClass(["transition-all",f.iconClass+" "+a.value.iconClass])},null,8,["class"])),i.renderSlot(f.$slots,"default",{},()=>[f.label?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ml-2",f.labelClass])},i.toDisplayString(f.label),3)):i.createCommentVNode("",!0)])]),f.tooltip?(i.openBlock(),i.createBlock(h,{key:0,class:"whitespace-nowrap"},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(f.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),u.value?(i.openBlock(),i.createBlock(m,{key:1,"model-value":!0},{default:i.withCtx(()=>[i.createElementVNode("div",Km,[i.createElementVNode("div",null,i.toDisplayString(f.confirmText),1),i.createElementVNode("div",Qm,[i.createElementVNode("div",Xm,[i.createVNode(p,{type:"cancel",color:"gray",onClick:_[0]||(_[0]=w=>u.value=!1)})]),i.createVNode(p,{type:"confirm",color:"green",onClick:_[1]||(_[1]=()=>d(!0))})])])]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function Jm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 za(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 e0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 Ha(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 t0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 n0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 r0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.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 Ga={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=i.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(o){console.error(o),qe.error("Failed to export data")}n.value=!1}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:i.withCtx(()=>[i.createVNode(i.unref(Jm),{class:"w-5"})]),_:1},8,["loading"])}}},Za=i.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:i.withCtx(()=>[i.createVNode(i.unref(t0),{class:"w-5"})]),_:1},8,["loading"])}}}),es="show-hide-button",To=i.defineComponent({__name:"ShowHideButton",props:i.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},labelClass:{default:"ml-2"},label:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t,s=Ct(es,{});o.name&&s[o.name]!==void 0&&(r.value=s[o.name]);function l(){r.value=!r.value,i.nextTick(()=>{r.value?n("show"):n("hide"),o.name&&(s[o.name]=r.value,vt(es,{...Ct(es,{}),[o.name]:r.value}))})}return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Eo),{icon:r.value?a.hideIcon||i.unref(Cm):a.showIcon||i.unref(Bm),label:(r.value?a.hideLabel:a.showLabel)||a.label,"label-class":a.labelClass,onClick:l},{tooltip:i.withCtx(()=>[i.renderSlot(a.$slots,"tooltip")]),default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},8,["icon","label","label-class"]))}}),o0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function i0(t,e){return i.openBlock(),i.createElementBlock("svg",o0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const Wa={render:i0},s0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function l0(t,e){return i.openBlock(),i.createElementBlock("svg",s0,e[0]||(e[0]=[i.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)]))}const Ya={render:l0},a0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function c0(t,e){return i.openBlock(),i.createElementBlock("svg",a0,e[0]||(e[0]=[i.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)]))}const Ka={render:c0},u0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,e[0]||(e[0]=[i.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)]))}const Qa={render:d0},f0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function _0(t,e){return i.openBlock(),i.createElementBlock("svg",f0,e[0]||(e[0]=[i.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),i.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),i.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)]))}const ts={render:_0},h0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function m0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,e[0]||(e[0]=[i.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),i.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)]))}const Xa={render:m0},p0={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function g0(t,e){return i.openBlock(),i.createElementBlock("svg",p0,e[0]||(e[0]=[i.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)]))}const Ja={render:g0},y0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function b0(t,e){return i.openBlock(),i.createElementBlock("svg",y0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const ec={render:b0},w0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const tc={render:k0},x0={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,e[0]||(e[0]=[i.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)]))}const Bo={render:S0},C0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function E0(t,e){return i.openBlock(),i.createElementBlock("svg",C0,e[0]||(e[0]=[i.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)]))}const nc={render:E0},T0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function B0(t,e){return i.openBlock(),i.createElementBlock("svg",T0,e[0]||(e[0]=[i.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),i.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)]))}const No={render:B0},N0={class:"dx-previous-next-controls"},rc={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",N0,[i.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]=o=>e.$emit("next",-1))},{default:i.withCtx(()=>[i.createVNode(i.unref(tc),{class:"w-6"})]),_:1},8,["disable","loading"]),i.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]=o=>e.$emit("next",1))},{default:i.withCtx(()=>[i.createVNode(i.unref(ec),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function oc(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 I0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function ic(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function F0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 $0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 A0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 O0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 D0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 M0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),i.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 P0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function v0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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 L0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.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"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function V0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function q0(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const R0={class:"flex-grow"},U0={key:1,class:"dx-dialog-subtitle"},j0={class:"flex dx-dialog-actions"},ns=i.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(o,s)=>{const l=i.resolveComponent("QCardSection"),a=i.resolveComponent("QCard"),c=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(c,{class:"dx-dialog","full-height":o.fullHeight,"full-width":o.fullWidth,"model-value":!0,"no-backdrop-dismiss":!o.backdropDismiss,maximized:o.maximized,"onUpdate:modelValue":r},{default:i.withCtx(()=>[i.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:i.withCtx(()=>[i.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:i.withCtx(()=>[i.createElementVNode("div",R0,[o.title||o.$slots.title?(i.openBlock(),i.createElementBlock("h3",{key:0,class:i.normalizeClass(["dx-dialog-title flex items-center",o.titleClass])},[i.renderSlot(o.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(o.title),1)])],2)):i.createCommentVNode("",!0),o.subtitle||o.$slots.subtitle?(i.openBlock(),i.createElementBlock("div",U0,[i.renderSlot(o.$slots,"subtitle",{},()=>[i.createTextVNode(i.toDisplayString(o.subtitle),1)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[i.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[i.createVNode(i.unref(q0),{class:"w-5"})])])]),_:3}),o.$slots.toolbar?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"toolbar")]),_:3})):i.createCommentVNode("",!0),o.content||o.$slots.default?(i.openBlock(),i.createBlock(l,{key:1,class:i.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",o.contentClass])},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.content),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),i.createElementVNode("div",j0,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),z0={class:"dx-dialog-button-cancel"},H0={key:0,class:"dx-dialog-button-confirm"},Tt=i.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,o=i.computed(()=>({...r,disabled:void 0})),s=i.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(ns),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a,onKeyup:i.withKeys(l,["enter"])}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",z0,[i.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),i.renderSlot(c.$slots,"actions"),c.hideConfirm?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",H0,[i.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:i.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[i.renderList(s.value,f=>({name:f,fn:i.withCtx(()=>[i.renderSlot(c.$slots,f)])}))]),1040)}}}),G0=i.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[0]||(r[0]=o=>n.$emit("confirm",{name:e.value})),onClose:r[1]||(r[1]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Sc),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),sc=i.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=i.computed(()=>t_(e.target,e.label||e.action)),r=i.computed(()=>`Confirm ${e.action}`),o=i.computed(()=>`${e.action}`),s=i.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=i.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Tt),i.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||o.value,title:a.title||r.value,content:a.content||s.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:2},[i.renderList(l.value,u=>({name:u,fn:i.withCtx(()=>[i.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),lc=i.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[1]||(r[1]=o=>n.$emit("confirm",{name:e.value})),onClose:r[2]||(r[2]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(an),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),label:"Name"},null,8,["modelValue"]),i.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}}),Z0={"pointer-events-none":"_pointer-events-none_1qcdh_1","!visible":"_!visible_1qcdh_1",visible:"_visible_1qcdh_1",collapse:"_collapse_1qcdh_1",static:"_static_1qcdh_1",absolute:"_absolute_1qcdh_1",relative:"_relative_1qcdh_1",sticky:"_sticky_1qcdh_1","left-0":"_left-0_1qcdh_1","right-0":"_right-0_1qcdh_1","right-1":"_right-1_1qcdh_1","top-0":"_top-0_1qcdh_1","top-1":"_top-1_1qcdh_1","z-10":"_z-10_1qcdh_1","m-2":"_m-2_1qcdh_1","m-4":"_m-4_1qcdh_1","m-auto":"_m-auto_1qcdh_1","mx-1":"_mx-1_1qcdh_1","mx-4":"_mx-4_1qcdh_1","mx-auto":"_mx-auto_1qcdh_1","my-2":"_my-2_1qcdh_1","!mr-1":"_!mr-1_1qcdh_1","mb-2":"_mb-2_1qcdh_1","mb-4":"_mb-4_1qcdh_1","ml-1":"_ml-1_1qcdh_1","ml-2":"_ml-2_1qcdh_1","ml-2.5":"_ml-2.5_1qcdh_1","ml-3":"_ml-3_1qcdh_1","ml-4":"_ml-4_1qcdh_1","ml-5":"_ml-5_1qcdh_1","ml-[-.2em]":"_ml-[-.2em]_1qcdh_1","mr-1":"_mr-1_1qcdh_1","mr-2":"_mr-2_1qcdh_1","mr-3":"_mr-3_1qcdh_1","mr-4":"_mr-4_1qcdh_1","mt-1":"_mt-1_1qcdh_1","mt-2":"_mt-2_1qcdh_1","mt-3":"_mt-3_1qcdh_1","mt-4":"_mt-4_1qcdh_1",block:"_block_1qcdh_1","inline-block":"_inline-block_1qcdh_1",inline:"_inline_1qcdh_1",flex:"_flex_1qcdh_1",table:"_table_1qcdh_1",hidden:"_hidden_1qcdh_1","h-10":"_h-10_1qcdh_1","h-12":"_h-12_1qcdh_1","h-16":"_h-16_1qcdh_1","h-4":"_h-4_1qcdh_1","h-5":"_h-5_1qcdh_1","h-6":"_h-6_1qcdh_1","h-8":"_h-8_1qcdh_1","h-96":"_h-96_1qcdh_1","h-[2.25rem]":"_h-[2.25rem]_1qcdh_1","h-full":"_h-full_1qcdh_1","max-h-full":"_max-h-full_1qcdh_1","min-h-10":"_min-h-10_1qcdh_1","w-10":"_w-10_1qcdh_1","w-16":"_w-16_1qcdh_1","w-2":"_w-2_1qcdh_1","w-2/5":"_w-2/5_1qcdh_1","w-24":"_w-24_1qcdh_1","w-3":"_w-3_1qcdh_1","w-3/4":"_w-3/4_1qcdh_1","w-3/5":"_w-3/5_1qcdh_1","w-32":"_w-32_1qcdh_1","w-4":"_w-4_1qcdh_1","w-48":"_w-48_1qcdh_1","w-5":"_w-5_1qcdh_1","w-6":"_w-6_1qcdh_1","w-7":"_w-7_1qcdh_1","w-72":"_w-72_1qcdh_1","w-8":"_w-8_1qcdh_1","w-96":"_w-96_1qcdh_1","w-[13.5rem]":"_w-[13.5rem]_1qcdh_1","w-[6.5rem]":"_w-[6.5rem]_1qcdh_1","w-full":"_w-full_1qcdh_1","!min-w-0":"_!min-w-0_1qcdh_1","min-w-10":"_min-w-10_1qcdh_1","max-w-full":"_max-w-full_1qcdh_1","flex-shrink":"_flex-shrink_1qcdh_1","flex-shrink-0":"_flex-shrink-0_1qcdh_1",shrink:"_shrink_1qcdh_1","flex-grow":"_flex-grow_1qcdh_1",grow:"_grow_1qcdh_1","rotate-180":"_rotate-180_1qcdh_1",transform:"_transform_1qcdh_1","cursor-ew-resize":"_cursor-ew-resize_1qcdh_1","cursor-move":"_cursor-move_1qcdh_1","cursor-not-allowed":"_cursor-not-allowed_1qcdh_1","cursor-ns-resize":"_cursor-ns-resize_1qcdh_1","cursor-pointer":"_cursor-pointer_1qcdh_1",resize:"_resize_1qcdh_1","flex-col":"_flex-col_1qcdh_1","flex-nowrap":"_flex-nowrap_1qcdh_1","items-center":"_items-center_1qcdh_1","items-stretch":"_items-stretch_1qcdh_1","justify-start":"_justify-start_1qcdh_1","justify-end":"_justify-end_1qcdh_1","justify-center":"_justify-center_1qcdh_1","justify-between":"_justify-between_1qcdh_1","gap-x-1":"_gap-x-1_1qcdh_1","gap-x-4":"_gap-x-4_1qcdh_1","gap-y-0":"_gap-y-0_1qcdh_1","gap-y-1":"_gap-y-1_1qcdh_1","space-x-1":"_space-x-1_1qcdh_1","space-x-2":"_space-x-2_1qcdh_1","self-center":"_self-center_1qcdh_1","overflow-auto":"_overflow-auto_1qcdh_1","overflow-hidden":"_overflow-hidden_1qcdh_1","overflow-y-auto":"_overflow-y-auto_1qcdh_73","overflow-x-hidden":"_overflow-x-hidden_1qcdh_1","scroll-smooth":"_scroll-smooth_1qcdh_1","overflow-ellipsis":"_overflow-ellipsis_1qcdh_1","whitespace-normal":"_whitespace-normal_1qcdh_1","whitespace-nowrap":"_whitespace-nowrap_1qcdh_1",rounded:"_rounded_1qcdh_1","rounded-2xl":"_rounded-2xl_1qcdh_1","rounded-full":"_rounded-full_1qcdh_1","rounded-lg":"_rounded-lg_1qcdh_1","rounded-md":"_rounded-md_1qcdh_1","rounded-sm":"_rounded-sm_1qcdh_1","!rounded-l-none":"_!rounded-l-none_1qcdh_1","!rounded-r-none":"_!rounded-r-none_1qcdh_1","rounded-b-lg":"_rounded-b-lg_1qcdh_1","rounded-l-lg":"_rounded-l-lg_1qcdh_1","rounded-r-lg":"_rounded-r-lg_1qcdh_1","rounded-t-lg":"_rounded-t-lg_1qcdh_1","rounded-t-md":"_rounded-t-md_1qcdh_1","!border-0":"_!border-0_1qcdh_1",border:"_border_1qcdh_1","border-b":"_border-b_1qcdh_1","border-l":"_border-l_1qcdh_1","border-l-0":"_border-l-0_1qcdh_1","border-r":"_border-r_1qcdh_1","border-solid":"_border-solid_1qcdh_1","border-dashed":"_border-dashed_1qcdh_1","border-none":"_border-none_1qcdh_1","border-blue-600":"_border-blue-600_1qcdh_1","border-blue-700":"_border-blue-700_1qcdh_1","border-gray-200":"_border-gray-200_1qcdh_1","border-gray-300":"_border-gray-300_1qcdh_1","border-slate-200":"_border-slate-200_1qcdh_1","bg-amber-950":"_bg-amber-950_1qcdh_1","bg-black":"_bg-black_1qcdh_1","bg-blue-200":"_bg-blue-200_1qcdh_1","bg-blue-300":"_bg-blue-300_1qcdh_1","bg-blue-600":"_bg-blue-600_1qcdh_1","bg-blue-950":"_bg-blue-950_1qcdh_1","bg-emerald-200":"_bg-emerald-200_1qcdh_1","bg-gray-100":"_bg-gray-100_1qcdh_1","bg-gray-200":"_bg-gray-200_1qcdh_1","bg-gray-400":"_bg-gray-400_1qcdh_1","bg-gray-500":"_bg-gray-500_1qcdh_1","bg-gray-800":"_bg-gray-800_1qcdh_1","bg-green-200":"_bg-green-200_1qcdh_1","bg-green-300":"_bg-green-300_1qcdh_1","bg-green-900":"_bg-green-900_1qcdh_1","bg-green-950":"_bg-green-950_1qcdh_1","bg-lime-300":"_bg-lime-300_1qcdh_1","bg-red-200":"_bg-red-200_1qcdh_1","bg-red-300":"_bg-red-300_1qcdh_1","bg-red-900":"_bg-red-900_1qcdh_1","bg-red-950":"_bg-red-950_1qcdh_1","bg-sky-300":"_bg-sky-300_1qcdh_1","bg-sky-800":"_bg-sky-800_1qcdh_1","bg-sky-900":"_bg-sky-900_1qcdh_1","bg-sky-950":"_bg-sky-950_1qcdh_1","bg-slate-100":"_bg-slate-100_1qcdh_1","bg-slate-400":"_bg-slate-400_1qcdh_1","bg-slate-500":"_bg-slate-500_1qcdh_1","bg-slate-600":"_bg-slate-600_1qcdh_1","bg-slate-700":"_bg-slate-700_1qcdh_1","bg-slate-800":"_bg-slate-800_1qcdh_1","bg-slate-900":"_bg-slate-900_1qcdh_1","bg-slate-950":"_bg-slate-950_1qcdh_1","bg-transparent":"_bg-transparent_1qcdh_1","bg-white":"_bg-white_1qcdh_1","bg-yellow-300":"_bg-yellow-300_1qcdh_1","bg-yellow-950":"_bg-yellow-950_1qcdh_1","!bg-none":"_!bg-none_1qcdh_1","!p-2":"_!p-2_1qcdh_1","p-0":"_p-0_1qcdh_1","p-1":"_p-1_1qcdh_1","p-2":"_p-2_1qcdh_1","p-3":"_p-3_1qcdh_1","p-4":"_p-4_1qcdh_1","p-8":"_p-8_1qcdh_1","!py-0":"_!py-0_1qcdh_1","px-1":"_px-1_1qcdh_1","px-1.5":"_px-1.5_1qcdh_1","px-12":"_px-12_1qcdh_1","px-2":"_px-2_1qcdh_1","px-2.5":"_px-2.5_1qcdh_1","px-3":"_px-3_1qcdh_1","px-4":"_px-4_1qcdh_1","px-6":"_px-6_1qcdh_1","px-8":"_px-8_1qcdh_1","py-0":"_py-0_1qcdh_1","py-1":"_py-1_1qcdh_1","py-1.5":"_py-1.5_1qcdh_1","py-14":"_py-14_1qcdh_1","py-2":"_py-2_1qcdh_1","py-3":"_py-3_1qcdh_1","py-4":"_py-4_1qcdh_1","py-5":"_py-5_1qcdh_1","py-8":"_py-8_1qcdh_1","pl-1":"_pl-1_1qcdh_1","pt-3":"_pt-3_1qcdh_1","text-left":"_text-left_1qcdh_1","text-center":"_text-center_1qcdh_1","text-[.7rem]":"_text-[.7rem]_1qcdh_1","text-[1rem]":"_text-[1rem]_1qcdh_1","text-base":"_text-base_1qcdh_1","text-lg":"_text-lg_1qcdh_1","text-sm":"_text-sm_1qcdh_1","text-xs":"_text-xs_1qcdh_1","font-bold":"_font-bold_1qcdh_1","font-medium":"_font-medium_1qcdh_1","font-semibold":"_font-semibold_1qcdh_1",uppercase:"_uppercase_1qcdh_1","leading-[1.2rem]":"_leading-[1.2rem]_1qcdh_1","!text-green-900":"_!text-green-900_1qcdh_1","!text-red-900":"_!text-red-900_1qcdh_1","!text-sky-900":"_!text-sky-900_1qcdh_1","!text-white":"_!text-white_1qcdh_1","!text-yellow-900":"_!text-yellow-900_1qcdh_1","text-amber-400":"_text-amber-400_1qcdh_1","text-blue-400":"_text-blue-400_1qcdh_1","text-blue-600":"_text-blue-600_1qcdh_1","text-blue-900":"_text-blue-900_1qcdh_1","text-gray-300":"_text-gray-300_1qcdh_1","text-gray-400":"_text-gray-400_1qcdh_1","text-gray-500":"_text-gray-500_1qcdh_1","text-gray-600":"_text-gray-600_1qcdh_1","text-gray-700":"_text-gray-700_1qcdh_1","text-green-300":"_text-green-300_1qcdh_1","text-green-400":"_text-green-400_1qcdh_1","text-green-700":"_text-green-700_1qcdh_1","text-green-900":"_text-green-900_1qcdh_1","text-lime-900":"_text-lime-900_1qcdh_1","text-red-400":"_text-red-400_1qcdh_1","text-red-500":"_text-red-500_1qcdh_1","text-red-800":"_text-red-800_1qcdh_1","text-red-900":"_text-red-900_1qcdh_1","text-sky-400":"_text-sky-400_1qcdh_1","text-sky-900":"_text-sky-900_1qcdh_1","text-slate-200":"_text-slate-200_1qcdh_1","text-slate-300":"_text-slate-300_1qcdh_1","text-slate-400":"_text-slate-400_1qcdh_1","text-slate-50":"_text-slate-50_1qcdh_1","text-slate-500":"_text-slate-500_1qcdh_1","text-slate-600":"_text-slate-600_1qcdh_1","text-slate-800":"_text-slate-800_1qcdh_1","text-slate-900":"_text-slate-900_1qcdh_1","text-white":"_text-white_1qcdh_1","text-yellow-400":"_text-yellow-400_1qcdh_1","text-yellow-600":"_text-yellow-600_1qcdh_1","text-zinc-500":"_text-zinc-500_1qcdh_1","text-zinc-800":"_text-zinc-800_1qcdh_1","line-through":"_line-through_1qcdh_1","opacity-0":"_opacity-0_1qcdh_1","opacity-20":"_opacity-20_1qcdh_1","opacity-50":"_opacity-50_1qcdh_1","opacity-70":"_opacity-70_1qcdh_1","opacity-80":"_opacity-80_1qcdh_1","shadow-none":"_shadow-none_1qcdh_1","outline-none":"_outline-none_1qcdh_1",outline:"_outline_1qcdh_1","outline-offset-0":"_outline-offset-0_1qcdh_1",filter:"_filter_1qcdh_1",transition:"_transition_1qcdh_1","transition-all":"_transition-all_1qcdh_1","duration-300":"_duration-300_1qcdh_1","danx-app":"_danx-app_1qcdh_4","q-tab":"_q-tab_1qcdh_4","q-table__card":"_q-table__card_1qcdh_7","q-checkbox__inner":"_q-checkbox__inner_1qcdh_11","q-toolbar":"_q-toolbar_1qcdh_14","q-notification__actions":"_q-notification__actions_1qcdh_19","q-date":"_q-date_1qcdh_22","q-date__view":"_q-date__view_1qcdh_25","q-field":"_q-field_1qcdh_28","q-field--auto-height":"_q-field--auto-height_1qcdh_28","q-field__control":"_q-field__control_1qcdh_28","q-field__native":"_q-field__native_1qcdh_31","q-field--labeled":"_q-field--labeled_1qcdh_35","q-field__control-container":"_q-field__control-container_1qcdh_35","q-textarea":"_q-textarea_1qcdh_38","q-field__marginal":"_q-field__marginal_1qcdh_41","q-field__input":"_q-field__input_1qcdh_41","q-field__label":"_q-field__label_1qcdh_41","q-btn":"_q-btn_1qcdh_48","q-item":"_q-item_1qcdh_56","q-tab-panels":"_q-tab-panels_1qcdh_60","q-panel":"_q-panel_1qcdh_64",scroll:"_scroll_1qcdh_67","q-tab-panel":"_q-tab-panel_1qcdh_60","dx-dialog":"_dx-dialog_1qcdh_77","q-card__section--vert":"_q-card__section--vert_1qcdh_77","q-banner":"_q-banner_1qcdh_81",app:"_app_1qcdh_1","main-layout":"_main-layout_1qcdh_1","is-disabled":"_is-disabled_1qcdh_98","disable-all-transitions":"_disable-all-transitions_1qcdh_103","v-enter-active":"_v-enter-active_1qcdh_107","v-leave-active":"_v-leave-active_1qcdh_108","v-enter-from":"_v-enter-from_1qcdh_112","v-leave-to":"_v-leave-to_1qcdh_113","dx-action-table":"_dx-action-table_1qcdh_117","dx-column-shrink":"_dx-column-shrink_1qcdh_117","slide-image":"_slide-image_1qcdh_121",carousel:"_carousel_1qcdh_135","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_1qcdh_135","hover:bg-blue-200":"_hover:bg-blue-200_1qcdh_1","hover:bg-blue-400":"_hover:bg-blue-400_1qcdh_1","hover:bg-gray-200":"_hover:bg-gray-200_1qcdh_1","hover:bg-green-100":"_hover:bg-green-100_1qcdh_1","hover:bg-green-400":"_hover:bg-green-400_1qcdh_1","hover:bg-green-800":"_hover:bg-green-800_1qcdh_1","hover:bg-lime-400":"_hover:bg-lime-400_1qcdh_1","hover:bg-red-100":"_hover:bg-red-100_1qcdh_1","hover:bg-red-200":"_hover:bg-red-200_1qcdh_1","hover:bg-red-400":"_hover:bg-red-400_1qcdh_1","hover:bg-sky-400":"_hover:bg-sky-400_1qcdh_1","hover:bg-sky-800":"_hover:bg-sky-800_1qcdh_1","hover:bg-slate-200":"_hover:bg-slate-200_1qcdh_1","hover:bg-slate-300":"_hover:bg-slate-300_1qcdh_1","hover:bg-slate-600":"_hover:bg-slate-600_1qcdh_1","hover:bg-slate-900":"_hover:bg-slate-900_1qcdh_1","hover:text-blue-500":"_hover:text-blue-500_1qcdh_1","hover:text-blue-600":"_hover:text-blue-600_1qcdh_1","hover:opacity-100":"_hover:opacity-100_1qcdh_1","hover:opacity-20":"_hover:opacity-20_1qcdh_1","hover:opacity-70":"_hover:opacity-70_1qcdh_1","hover:outline-4":"_hover:outline-4_1qcdh_1","focus:bg-blue-200":"_focus:bg-blue-200_1qcdh_1","focus:outline-4":"_focus:outline-4_1qcdh_1","focus:outline-blue-200":"_focus:outline-blue-200_1qcdh_1",group:"_group_1qcdh_1","group-hover:opacity-100":"_group-hover:opacity-100_1qcdh_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},W0={class:"absolute top-0 left-0 w-full h-full"},Y0={key:0,class:"max-h-full w-full",controls:""},K0=["src","type"],Q0=["alt","src"],X0={key:2},J0=["href"],ep={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},ac=ft({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=i.ref(null),r=i.ref(e.defaultSlide);function o(c){var u;return(u=c.mime)==null?void 0:u.startsWith("video")}function s(c){var u;return(u=c.mime)==null?void 0:u.startsWith("image")}function l(c){var u,d;return((u=c.optimized)==null?void 0:u.url)||(s(c)?c.blobUrl||c.url:(d=c.thumb)==null?void 0:d.url)}function a(c){return c.thumb?c.thumb.url:o(c)?`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(c)}return(c,u)=>{const d=i.resolveComponent("QCarouselSlide"),f=i.resolveComponent("QCarousel"),_=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(_,{"model-value":!0,maximized:"","onUpdate:modelValue":u[2]||(u[2]=h=>c.$emit("close")),onKeyup:[u[3]||(u[3]=i.withKeys(h=>n.value.previous(),["left"])),u[4]||(u[4]=i.withKeys(h=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",W0,[i.createVNode(f,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=h=>r.value=h),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(c.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,h=>(i.openBlock(),i.createBlock(d,{key:"file-"+h.id,name:h.id,"img-src":a(h),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(c.cls["slide-image"])},[o(h)?(i.openBlock(),i.createElementBlock("video",Y0,[i.createElementVNode("source",{src:l(h)+"#t=0.1",type:h.mime},null,8,K0)])):l(h)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:h.filename,src:l(h)},null,8,Q0)):(i.openBlock(),i.createElementBlock("div",X0,[u[5]||(u[5]=i.createElementVNode("h3",{class:"text-center mb-4"}," No Preview Available ",-1)),i.createElementVNode("a",{href:h.url,target:"_blank",class:"text-base"},i.toDisplayString(h.url),9,J0)]))],2),i.createElementVNode("div",ep,i.toDisplayString(h.filename||h.name),1)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),i.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all",onClick:u[1]||(u[1]=h=>c.$emit("close"))},[i.createVNode(i.unref(No),{class:"w-8 h-8"})])])]),_:1})}}},[["__cssModules",{cls:Z0}]]),tp={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},np=i.defineComponent({__name:"FullScreenDialog",props:{modelValue:{type:Boolean},center:{type:Boolean},blue:{type:Boolean},closeable:{type:Boolean},contentClass:{default:"bg-white text-gray-400"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let o=i.computed(()=>({"bg-blue-600 text-white":r.blue,"items-center":r.center,[r.contentClass]:!r.blue}));function s(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=i.resolveComponent("QDialog"),u=i.resolveDirective("close-popup");return i.openBlock(),i.createBlock(c,{class:"full-screen-dialog","model-value":l.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":s},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["flex justify-center min-w-xs",i.unref(o)])},[l.closeable?i.withDirectives((i.openBlock(),i.createElementBlock("div",tp,[i.createVNode(i.unref(No),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}}),rp={class:"flex-grow"},cc={__name:"InfoDialog",props:{...ns.props,disable:Boolean,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(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(ns),i.mergeProps({class:"dx-info-dialog"},o.$props,{onClose:r}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",rp,[i.createVNode(l,{label:t.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),disable:t.disable,onClick:r},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"done-text")]),_:3},8,["label","class","disable"])]),i.renderSlot(o.$slots,"actions")]),default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:2},[o.$slots.title?{name:"title",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.subtitle?{name:"subtitle",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},op={__name:"InputDialog",props:{...Tt.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=i.ref(e.input);return(r,o)=>{const s=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(i.unref(Tt),i.mergeProps(r.$props,{onConfirm:o[2]||(o[2]=l=>r.$emit("confirm",n.value)),onClose:o[3]||(o[3]=l=>r.$emit("close",l))}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default",{},()=>[i.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),type:"number",class:"w-full",onInput:o[1]||(o[1]=l=>r.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},ip={class:"dx-field-label"},sp={class:"dx-field-label-text"},lp={class:"dx-field-label-label"},ap={key:0,class:"dx-field-label-name"},cp={key:0,class:"dx-field-required"},_t=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",ip,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",sp,[i.createElementVNode("div",lp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",ap," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",cp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),rs=i.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 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=i.resolveComponent("QToggle");return i.openBlock(),i.createBlock(r,{"data-testid":"boolean-field-"+(t.name||t.label),"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]=o=>e.$emit("update:model-value",o))},{default:i.withCtx(()=>[i.createVNode(i.unref(_t),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:i.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),up={for:"first_name",class:"form-label"},dp={class:"mt-1"},os={__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=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",up,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",dp,[i.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]=o=>e.$emit("update:model-value",o))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},fp={__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,o)=>(i.openBlock(),i.createBlock(i.unref(os),i.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},_p={key:0,class:"font-bold text-xs mb-2"},hp={class:"flex items-center cursor-pointer"},mp={class:"flex-grow font-bold ml-3 hover:opacity-70"},pp={key:0},is=i.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.modelValue?St(Ot(r.modelValue||"0000-00-00")):"- -"),s=i.ref(Ot(r.modelValue));i.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.value)}return(a,c)=>{const u=i.resolveComponent("QBtn"),d=i.resolveComponent("QDate"),f=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[a.label?(i.openBlock(),i.createElementBlock("div",_p,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",hp,[i.createVNode(i.unref(oc),{class:"w-5"}),i.createElementVNode("div",mp,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),a.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",pp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(_=>(s.value=null)||l(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(f,null,{default:i.withCtx(()=>[i.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":[c[1]||(c[1]=_=>s.value=_),l]},null,8,["modelValue"])]),_:1})])}}}),gp={class:"mb-2"},yp={class:"flex items-center cursor-pointer"},bp={class:"flex-grow font-bold ml-3 hover:opacity-70"},wp={key:0},ss=i.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>a.value?r.withTime?{from:St(sa(a.value.from||"0000-00-00")),to:St(sa(a.value.to||"9999-12-31"))}:{from:St(ia(a.value.from||"0000-00-00")),to:St(ia(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=i.ref(l(r.modelValue));i.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?St(u.from)===St(u.to)?u.from:u:null}const a=i.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=i.resolveComponent("QDate"),_=i.resolveComponent("QBtn"),h=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",gp,[i.createVNode(i.unref(_t),{label:u.label},null,8,["label"])]),u.inline?(i.openBlock(),i.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=p=>s.value=p),c],range:"",class:"reactive"},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",yp,[i.createVNode(i.unref(oc),{class:"w-5 py-2"}),i.createElementVNode("div",bp,[a.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value.from)+" - "+i.toDisplayString(o.value.to),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),u.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",wp,[i.createVNode(_,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=i.withModifiers(p=>(s.value=null)||c(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(h,null,{default:i.withCtx(()=>[i.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[2]||(d[2]=p=>s.value=p),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),kp={class:"flex items-center justify-center"},xp={key:0,class:"flex-grow"},ls={__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,o=i.computed({get:()=>oa(ra(r.modelValue)),set(s){const l=s?oa(Y1(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{const a=i.resolveComponent("QBtn"),c=i.resolveComponent("QDate"),u=i.resolveComponent("QTime"),d=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:i.withCtx(()=>[i.createVNode(c,{modelValue:o.value,"onUpdate:modelValue":l[3]||(l[3]=f=>o.value=f),mask:t.mask,color:t.color},{default:i.withCtx(()=>[i.createElementVNode("div",kp,[t.nullable?(i.openBlock(),i.createElementBlock("div",xp,[i.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>o.value=null)})])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),i.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":l[4]||(l[4]=f=>o.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Sp={__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,o=i.ref(!1),s=i.ref(r.modelValue);function l(){n("update:model-value",s.value),o.value=!1}return(a,c)=>{const u=i.resolveComponent("QPopupProxy"),d=i.resolveComponent("QIcon"),f=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{"model-value":i.unref(kr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=_=>o.value=!0)},{append:i.withCtx(()=>[i.createVNode(d,{name:"event",class:"cursor-pointer"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=_=>o.value=_)},{default:i.withCtx(()=>[i.createVNode(i.unref(ls),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=_=>s.value=_),onCancel:c[1]||(c[1]=_=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Cp={class:"inline-block relative"},Ep=["contenteditable"],uc=i.defineComponent({__name:"EditableDiv",props:{modelValue:{default:""},color:{default:"blue-200"},textColor:{default:"blue-900"},debounceDelay:{default:1e3},readonly:{type:Boolean},placeholder:{default:"Enter Text..."}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(null),l=i.ref("0"),a=i.ref("0"),c=i.ref(!1);i.onMounted(()=>{var _,h;s.value&&(l.value=((_=s.value)==null?void 0:_.offsetWidth)+"px",a.value=((h=s.value)==null?void 0:h.offsetHeight)+"px")}),i.watch(()=>r.modelValue,_=>{c.value||(o.value=_)});const u=ln(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function d(_){o.value=_.target.innerText,u()}const f=i.computed(()=>[...r.readonly?[]:[`hover:bg-${r.color} focus:bg-${r.color}`,`hover:text-${r.textColor} focus:text-${r.textColor}`,`hover:outline-${r.color} focus:outline-${r.color}`,"focus:outline-4 hover:outline-4"],o.value?"":"!bg-none"]);return(_,h)=>(i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",{contenteditable:_.readonly?"false":"true",class:i.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none rounded-sm z-10 min-w-10 min-h-10",f.value]),style:i.normalizeStyle({minWidth:l.value,minHeight:a.value}),onInput:d,onFocusin:h[0]||(h[0]=p=>c.value=!0),onFocusout:h[1]||(h[1]=p=>c.value=!1)},i.toDisplayString(o.value),47,Ep),!o.value&&_.placeholder&&!c.value&&!_.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:s,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},i.toDisplayString(_.placeholder),513)):i.createCommentVNode("",!0)]))}}),Tp=["contenteditable"],Bp={key:0},Np=ft(i.defineComponent({__name:"EditOnClickTextField",props:i.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.ref(null),n=i.useModel(t,"modelValue"),r=i.ref(n.value),o=t,s=i.ref(!1);function l(){o.readonly||(s.value=!0,r.value=n.value,i.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){r.value=c,n.value=c}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[o.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!s.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>s.value=!1)},[i.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&s.value,class:i.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:s.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},i.toDisplayString(s.value?r.value:n.value),43,Tp),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Bp,[s.value?(i.openBlock(),i.createBlock(d,{key:0,onClick:u[1]||(u[1]=i.withModifiers(f=>s.value=!1,["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Va),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Pn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),Ip=["accept","capture"],Fp={__name:"FileUploadButton",props:{...ee.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,o=t,s=i.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new xo(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});o.geolocation&&await u.resolveLocation(o.locationWaitMessage),u.upload()}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(ee.QBtn),i.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},()=>[i.createVNode(i.unref(V0),{class:"w-5 mr-2"}),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),i.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,Ip)]),_:3},16))}},$p={class:"inline-block"},Ap={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},Op={__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(o){n("update:model-value",o.value),n("save",o.value),o.set()}return(o,s)=>{const l=i.resolveComponent("QPopupEdit");return i.openBlock(),i.createElementBlock("div",$p,[i.createElementVNode("div",Ap,[i.createTextVNode(i.toDisplayString(i.unref(kr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref(Ha),{class:"w-4 font-bold ml-2 text-gray-400"}),i.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:i.withCtx(a=>[i.createVNode(i.unref(ls),{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"])])])}}},dc=i.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},i.toDisplayString(i.unref(Dt)(e.length))+" / "+i.toDisplayString(i.unref(Dt)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),Dp={class:"dx-text-field"},Mp={key:1,class:"dx-text-field-readonly-value"},an=i.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0},loading:{type:Boolean}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",Dp,[e.prependLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(i.openBlock(),i.createElementBlock("div",Mp,i.toDisplayString(e.modelValue),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:i.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,loading:e.loading,onKeydown:n[0]||(n[0]=i.withKeys(o=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=o=>e.$emit("update:model-value",o))},i.createSlots({append:i.withCtx(()=>[i.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.createVNode(i.unref(_t),{class:i.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),i.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce","loading"]),i.createVNode(i.unref(dc),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Ir=i.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(s(r.modelValue));i.watch(()=>r.modelValue,()=>o.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),Dt(c,d)}const l=ln(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=o.value;return o.value+=" ",i.nextTick(()=>o.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),o.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(an),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),fc=i.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ir),i.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))}),null,16,["model-value"]))}}),Pp={class:"text-xs font-bold"},vp=["href"],Lp=["href"],Vp=i.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=i.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=i.computed(()=>typeof e.value=="string"&&e.value.length>30),o=i.computed(()=>{switch(typeof e.value){case"boolean":return J1(e.value);case"number":return Dt(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Pp,[i.renderSlot(s.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(s.label),1)])]),i.createElementVNode("div",{class:i.normalizeClass(n.value)},[s.url?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)]),i.createElementVNode("a",{target:"_blank",href:s.url,class:"inline-block ml-2"},[i.createVNode(i.unref(Fm),{class:"w-4"})],8,Lp)],64)):(i.openBlock(),i.createElementBlock("a",{key:0,target:"_blank",href:s.url},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],8,vp))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),qp={class:"flex items-stretch justify-start"},Rp={key:1,class:"p-1"},_c=i.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=Zh();i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),o(()=>n("update:model-value",a.value));const d=i.computed(()=>({width:typeof r.width=="number"?`${r.width}px`:r.width,height:typeof r.height=="number"?`${r.height}px`:r.height}));return(f,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!f.readonly}]),onDragover:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onDrop:_[4]||(_[4]=i.withModifiers((...h)=>i.unref(s)&&i.unref(s)(...h),["prevent"]))},[f.label?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:f.label},null,8,["label"])):i.createCommentVNode("",!0),!f.disable&&!f.readonly?(i.openBlock(),i.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:_[0]||(_[0]=(...h)=>i.unref(l)&&i.unref(l)(...h))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",qp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),h=>(i.openBlock(),i.createBlock(i.unref(Fr),{key:"file-upload-"+h.id,class:i.normalizeClass(["m-2 cursor-pointer bg-gray-200",f.filePreviewClass]),style:i.normalizeStyle(d.value),file:h,"related-files":h.transcodes||i.unref(a),downloadable:"",removable:!f.readonly&&!f.disable,onRemove:p=>i.unref(u)(h)},null,8,["class","style","file","related-files","removable","onRemove"]))),128)),!f.disable&&!f.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["dx-add-remove-files m-2 flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer",f.filePreviewClass]),style:i.normalizeStyle(d.value)},[i.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:_[1]||(_[1]=h=>f.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(ts),{class:i.normalizeClass(["m-auto",f.addIconClass])},null,8,["class"]),_[5]||(_[5]=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),i.unref(a).length>0?(i.openBlock(),i.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:_[2]||(_[2]=(...h)=>i.unref(c)&&i.unref(c)(...h))},[i.createVNode(i.unref(Bo),{class:"mr-2 w-3"}),_[6]||(_[6]=i.createTextVNode(" Remove All "))])):i.createCommentVNode("",!0)],6)):i.createCommentVNode("",!0),f.readonly&&i.unref(a).length===0?(i.openBlock(),i.createElementBlock("div",Rp," -- ")):i.createCommentVNode("",!0)])],34))}}),vn=i.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},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:{},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},useChips:{type:Boolean},useInput:{type:Boolean},maxlength:{},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},disableTabSelection:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(null),s=i.ref(null),l=i.ref(!1),a=i.computed(()=>{let y=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(y=[{label:r.placeholder,value:null},...r.options]),y=y.map(b=>{let T=i.isRef(b)?b.value:b;return{label:h(T),value:m(T),selectionLabel:p(T)}}),y}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(y=>{var b;return y.label.toLocaleLowerCase().indexOf((b=s.value)==null?void 0:b.toLowerCase())>-1}):a.value),u=i.computed(()=>{var y,b;return r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(B=>B===null?"__null__":B)||[]:r.modelValue===null?"__null__":r.selectByObject?((y=r.modelValue)==null?void 0:y.value)||((b=r.modelValue)==null?void 0:b.id):r.modelValue}),d=i.computed(()=>{let y=u.value;r.multiple||(y=y||y===0?[y]:[]);const b=y.map(T=>T==="__null__"?null:typeof T=="object"?T.value||T.id:T);return a.value.filter(T=>b.includes(T.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),_=i.computed(()=>d.value.slice(0,r.chipLimit));function h(y){return typeof y=="string"?y:typeof r.optionLabel=="string"?y[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(y):y==null?void 0:y.label}function p(y){return typeof y=="string"?y:typeof r.selectionLabel=="string"?y[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(y):(y==null?void 0:y.selectionLabel)||(y==null?void 0:y.label)||y&&y[r.optionLabel]}function m(y){if(!y||typeof y=="string")return y;let b=y.value||y.id;return typeof r.optionValue=="string"?b=y[r.optionValue]:typeof r.optionValue=="function"&&(b=r.optionValue(y)),b===null?"__null__":b}function g(y){Array.isArray(y)&&(y=y.map(b=>b==="__null__"?null:b)),y=y==="__null__"?null:y,r.selectByObject&&y!==null&&y!==void 0&&typeof y!="object"&&(r.multiple?y=r.options.filter(b=>y.includes(m(b))):y=r.options.find(b=>m(b)===y)),n("update:model-value",y),n("update",y)}const w=i.ref(!1);async function x(y,b){if(!r.filterFn)s.value=y,await i.nextTick(b);else{if(b(),!w.value)return;y!==null&&y!==s.value&&(s.value=y,r.filterFn&&await r.filterFn(y))}}function C(){n("update:model-value",void 0),n("update",void 0)}function S(){l.value=!0,w.value=!1,i.nextTick(()=>{w.value=!0,o.value.focus()})}function E(){l.value=!1,w.value=!1}return(y,b)=>{const T=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[y.label?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:y.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(ee.QSelect),i.mergeProps({ref_key:"selectField",ref:o},y.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":y.filterable,"hide-selected":y.filterable&&l.value&&!y.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[y.inputClass]:!0},class:["max-w-full dx-select-field",y.selectClass],onFilter:x,onClear:C,onPopupShow:S,onPopupHide:E,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(I0),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[y.$props.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":y.chipLimit===1,"dx-selected-chips":_.value.length>0,[y.selectionClass]:!0}])},[_.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.value,B=>(i.openBlock(),i.createBlock(T,{key:"selected-"+B.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(B.label),1)]),_:2},1024))),128)),d.value.length>_.value.length?(i.openBlock(),i.createBlock(T,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-_.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(y.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([y.selectionClass,"dx-selected-label"])},i.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class","class"])])}}}),hc={__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,o=i.ref(r.field.defaultOption),s=i.computed(()=>r.modelValue&&r.modelValue[o.value]),l=i.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[o.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return i.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(vn),{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),i.createVNode(i.unref(an),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},Up={__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,o)=>(i.openBlock(),i.createBlock(i.unref(os),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},jp={key:0,class:"font-bold text-xs mb-2"},zp={class:"flex items-center flex-nowrap cursor-pointer"},Hp={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},Io={__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,o=i.computed(()=>r.currency?"$":r.percent?"%":""),s=i.computed(()=>({id:"min-field",name:"from",label:"Min"+o.value,placeholder:"0"})),l=i.computed(()=>({id:"max-field",name:"to",label:"Max"+o.value,placeholder:"No Limit"})),a=i.computed(()=>r.icon||(r.currency?F0:r.percent?Ja:P0)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(_){const h=r.percent?100:1;c.value={from:_!=null&&_.from?_.from*h:void 0,to:_!=null&&_.to?_.to*h:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(_){return _===void 0?"No Limit":r.currency?Fi(_):r.percent?e_(_,{multiplier:1,maximumFractionDigits:2}):Dt(_)}const f=ln(()=>{if(c.value&&(c.value.from||c.value.to)){const _=r.percent?.01:1;let h={from:c.value.from?c.value.from*_:void 0,to:c.value.to?c.value.to*_:void 0};n("update:model-value",h)}},r.debounce);return(_,h)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",jp,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",zp,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",Hp,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(d(c.value.from||0))+" - "+i.toDisplayString(d(c.value.to)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" No Limit ")],64))])]),i.createVNode(p,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Ir),{modelValue:c.value.from,"onUpdate:modelValue":[h[0]||(h[0]=m=>c.value.from=m),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Ir),{modelValue:c.value.to,"onUpdate:modelValue":[h[1]||(h[1]=m=>c.value.to=m),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},Gp=["data-dusk","onClick"],Zp={__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,o=i.ref(!1),s=i.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(d),_=f;r.multiple?(_=[...r.modelValue],c(f)?_=_.filter(h=>h!==f):_.push(f)):_===r.modelValue&&(_=null),n("update:modelValue",_)}return(d,f)=>{const _=i.resolveComponent("QCheckbox"),h=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(us),{show:o.value,"onUpdate:show":f[0]||(f[0]=p=>o.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,p=>(i.openBlock(),i.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(p)},[i.createVNode(_,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(m=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,Gp))),128))]),_:3},8,["show","title"]),i.createVNode(h,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>o.value=!0)},{default:i.withCtx(()=>[i.renderSlot(d.$slots,"selected",{},()=>[i.renderSlot(d.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label)+":  ",1)]),t.modelValue&&t.modelValue.length>0?i.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" + "+i.toDisplayString(t.modelValue.length-1),1)],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a(t.modelValue)),1)],64))]):i.renderSlot(d.$slots,"placeholder",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},Wp={class:"group flex items-center flex-nowrap gap-x-1 relative"},Yp=["onClick"],Kp={class:"flex-grow px-4 py-2"},Qp={class:"px-4 mb-2"},Xp=i.defineComponent({__name:"SelectionMenuField",props:i.mergeModels({options:{},showEdit:{type:Boolean},loading:{type:Boolean},selectText:{default:""},createText:{default:""},editText:{default:""},clearText:{default:""},placeholder:{default:"(No selection)"},selectClass:{default:"bg-sky-800"},createClass:{default:""},editClass:{default:""},clearClass:{default:"rounded-full"},labelClass:{default:"text-slate-600"},selectIcon:{default:null},selectable:{type:Boolean},creatable:{type:Boolean},editable:{type:Boolean},deletable:{type:Boolean},nameEditable:{type:Boolean},clearable:{type:Boolean},disable:{type:Boolean},size:{default:"md"}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create","update","delete"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing"),r=i.ref(!1);return(o,s)=>{const l=i.resolveComponent("QSeparator"),a=i.resolveComponent("QMenu"),c=i.resolveComponent("QBtn"),u=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("div",Wp,[o.selectable?(i.openBlock(),i.createBlock(i.unref(To),{key:0,modelValue:r.value,"onUpdate:modelValue":s[3]||(s[3]=d=>r.value=d),disable:o.disable,label:o.selectText,saving:o.loading,class:i.normalizeClass([o.selectClass,"mr-2"]),"show-icon":o.selectIcon||i.unref(Om),size:o.size},{default:i.withCtx(()=>[i.createVNode(a,{"model-value":r.value,onBeforeHide:s[1]||(s[1]=d=>r.value=!1),onHide:s[2]||(s[2]=d=>r.value=!1)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.options,d=>{var f,_;return i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:d.id,class:i.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":((f=e.value)==null?void 0:f.id)===d.id,"hover:bg-slate-600":((_=e.value)==null?void 0:_.id)!==d.id}]),onClick:h=>e.value=d},[i.createElementVNode("div",Kp,i.toDisplayString(d.name),1),o.deletable?(i.openBlock(),i.createBlock(i.unref(Eo),{key:0,type:"trash",class:"ml-4 mr-2",size:o.size,onClick:i.withModifiers(h=>o.$emit("delete",d),["stop","prevent"])},null,8,["size","onClick"])):i.createCommentVNode("",!0)],10,Yp)),[[u]])}),128)),o.creatable?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(l,{class:"bg-slate-400 my-2"}),i.createElementVNode("div",Qp,[i.createVNode(i.unref(Eo),{type:"create",color:"green",class:i.normalizeClass(o.createClass),label:o.createText,saving:o.loading,size:o.size,onClick:s[0]||(s[0]=d=>o.$emit("create"))},null,8,["class","label","saving","size"])])],64)):i.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disable","label","saving","class","show-icon","size"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(o.labelClass)},[e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nameEditable?(i.openBlock(),i.createBlock(i.unref(uc),{key:0,"model-value":e.value.name,color:"slate-600","onUpdate:modelValue":s[4]||(s[4]=d=>o.$emit("update",{name:d}))},null,8,["model-value"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.value.name),1)],64))],64)):i.renderSlot(o.$slots,"no-selection",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.placeholder),1)])],2),o.editable&&e.value?(i.openBlock(),i.createBlock(i.unref(To),{key:1,modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=d=>n.value=d),label:o.editText,class:i.normalizeClass([o.editClass,"opacity-0 group-hover:opacity-100 transition-all"]),size:o.size,"show-icon":i.unref(Pn),"hide-icon":i.unref(Va)},null,8,["modelValue","label","class","size","show-icon","hide-icon"])):i.createCommentVNode("",!0),o.clearable&&e.value?(i.openBlock(),i.createBlock(c,{key:2,label:o.clearText,class:i.normalizeClass([o.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:s[6]||(s[6]=d=>e.value=null)},{default:i.withCtx(()=>[i.createVNode(i.unref(qa),{class:"w-4"})]),_:1},8,["label","class"])):i.createCommentVNode("",!0)])}}}),Jp={class:"flex items-stretch flex-nowrap gap-x-4"},eg=i.defineComponent({__name:"SelectOrCreateField",props:i.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:""},editText:{default:""},createClass:{default:"bg-green-900 px-4"},editClass:{default:"bg-sky-800 px-4"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing");return(r,o)=>{const s=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",Jp,[i.createVNode(s,{class:i.normalizeClass(r.createClass),loading:r.loading,onClick:o[0]||(o[0]=l=>r.$emit("create"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ua),{class:i.normalizeClass(["w-4",r.createText?"mr-2":""])},null,8,["class"]),i.createTextVNode(" "+i.toDisplayString(r.createText),1)]),_:1},8,["class","loading"]),r.showEdit?(i.openBlock(),i.createBlock(i.unref(To),{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=l=>n.value=l),disable:!r.canEdit,label:r.editText,class:i.normalizeClass(r.editClass),"show-icon":i.unref(Pn)},null,8,["modelValue","disable","label","class","show-icon"])):i.createCommentVNode("",!0),i.createVNode(i.unref(vn),{modelValue:e.value,"onUpdate:modelValue":o[2]||(o[2]=l=>e.value=l),class:"flex-grow",options:r.options,clearable:r.clearable,"select-by-object":r.selectByObject,"option-label":r.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"])])}}}),tg={key:0,class:"text-zinc-500"},ng={key:1},rg={class:"text-xs text-zinc-500"},mc=i.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 o(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const s=i.ref(o()),l=i.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=Hr(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return i.watch(()=>r.modelValue,u=>{s.value=o(),l.value=u||[]}),(u,d)=>{const f=i.resolveComponent("QCheckbox");return i.openBlock(),i.createElementBlock("div",null,[!u.loading&&!u.options.length?(i.openBlock(),i.createElementBlock("div",tg," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(vn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=_=>s.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"]),s.value?(i.openBlock(),i.createElementBlock("div",ng,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,_=>(i.openBlock(),i.createBlock(f,{key:_.id,"model-value":l.value.includes(_.id),field:_,class:"mt-3","onUpdate:modelValue":h=>a(_)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(_.label),1),i.createElementVNode("div",rg,i.toDisplayString(_.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),og={key:1,class:"text-sm mt-2"},ig={key:3,class:"py-1"},pc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=Yh();return o(()=>n("update:model-value",a.value)),i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=i.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=i.withModifiers((...f)=>i.unref(s)&&i.unref(s)(...f),["prevent"]))},[u.label||u.name||u.showName?(i.openBlock(),i.createBlock(i.unref(_t),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):i.createCommentVNode("",!0),!u.disable&&!u.readonly?(i.openBlock(),i.createElementBlock("div",og,[i.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),i.unref(a)?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>i.unref(c)&&i.unref(c)(...f))},"Clear")):i.createCommentVNode("",!0),i.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>i.unref(l)&&i.unref(l)(...f))},null,544)])):i.createCommentVNode("",!0),!u.readonly||i.unref(a)?(i.openBlock(),i.createBlock(i.unref(Fr),{key:2,class:i.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!i.unref(a),"mx-auto":!u.readonly}]),file:i.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disable&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",ig," -- ")):i.createCommentVNode("",!0)],34))}}),sg={class:"dx-slider-number-field"},lg=i.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=i.computed(()=>({...e,field:void 0,label:!!e.label})),r=i.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(o,s)=>{const l=i.resolveComponent("QSlider");return i.openBlock(),i.createElementBlock("div",sg,[i.createVNode(i.unref(_t),{label:o.label,field:o.field},null,8,["label","field"]),i.createVNode(l,i.mergeProps(n.value,{min:o.min,max:o.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var ag=["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"],cg=function(t){return ag.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},ug=function(t,e,n){Object.keys(e).filter(cg).forEach(function(r){var o=e[r];typeof o=="function"&&(r==="onInit"?o(t,n):n.on(r.substring(2),function(s){return o(s,n)}))})},dg=function(t,e,n,r){var o=t.modelEvents?t.modelEvents:null,s=Array.isArray(o)?o.join(" "):o;i.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},fg=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&dg(e,n,r,o),ug(t,n.attrs,r)},gc=0,yc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return gc++,t+"_"+n+gc+String(e)},_g=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},bc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},hg=function(t,e){return bc(t).concat(bc(e))},mg=function(t){return t==null},wc=function(){return{listeners:[],scriptId:yc("tiny-script"),scriptLoaded:!1}},pg=function(){var t=wc(),e=function(o,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(o,s,l){t.scriptLoaded?l():(t.listeners.push(l),o.getElementById(t.scriptId)||e(t.scriptId,o,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=wc()};return{load:n,reinitialize:r}},gg=pg(),yg=function(){return typeof window<"u"?window:global},cn=function(){var t=yg();return t&&t.tinymce?t.tinymce:null},bg={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"}}},ht=function(){return ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},ht.apply(this,arguments)},wg=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},kg=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},as={selector:void 0,target:void 0},xg=i.defineComponent({props:bg,setup:function(t,e){var n=t.init?ht(ht({},t.init),as):ht({},as),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||yc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],_=!0,h=t.initialValue?t.initialValue:"",p="",m=function(x){return f?function(){return s!=null&&s.value?s.value:""}:function(){return x?h:p}},g=function(){var x=m(_),C=ht(ht({},n),{readonly:t.disabled,target:a.value,plugins:hg(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(S){c=S,S.on("init",function(E){return fg(E,t,e,S,s,x)}),typeof n.setup=="function"&&n.setup(S)}});_g(a.value)&&(a.value.style.visibility=""),cn().init(C),_=!1};i.watch(o,function(x){var C;c!==null&&(typeof((C=c.mode)===null||C===void 0?void 0:C.set)=="function"?c.mode.set(x?"readonly":"design"):c.setMode(x?"readonly":"design"))}),i.watch(l,function(x){var C;f||(p=c.getContent()),(C=cn())===null||C===void 0||C.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(cn()!==null)g();else if(a.value&&a.value.ownerDocument){var x=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",S=mg(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(x,"/tinymce.min.js"):t.tinymceScriptSrc;gg.load(a.value.ownerDocument,S,g)}}),i.onBeforeUnmount(function(){cn()!==null&&cn().remove(c)}),d||(i.onActivated(function(){_||g()}),i.onDeactivated(function(){var x;f||(p=c.getContent()),(x=cn())===null||x===void 0||x.remove(c)}));var w=function(x){var C;p=c.getContent(),(C=cn())===null||C===void 0||C.remove(c),n=ht(ht(ht({},n),x),as),i.nextTick(function(){return g()})};return e.expose({rerender:w,getEditor:function(){return c}}),function(){return d?wg(i.h,u,a,t.tagName):kg(i.h,u,a)}}});const Sg=["innerHTML"],kc={__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)=>(i.openBlock(),i.createElementBlock("div",null,[t.noLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(_t),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(i.openBlock(),i.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Sg)):(i.openBlock(),i.createBlock(i.unref(xg),{key:2,class:"mt-2","api-key":i.unref(re).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"]))]))}},xc=i.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerPie");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?i.renderSlot(e.$slots,"saving",{key:0},()=>[n[0]||(n[0]=i.createTextVNode(" Saving... ")),i.createVNode(r,{class:"ml-2"})]):i.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" Saved at "+i.toDisplayString(i.unref(Ii)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Not saved ")],64))])],2)}}}),Cg={class:"dx-rendered-form"},Eg={key:0,class:"mb-4"},Tg={class:"flex flex-nowrap items-center text-sm w-full"},Bg={key:0,class:"variation-missing-icon pl-1"},Ng={class:"flex-grow"},Ig={key:1,class:"flex flex-nowrap items-center mr-2"},Fg=["onClick"],$g=["onClick"],cs=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,o={BOOLEAN:rs,DATE:is,DATE_RANGE:ss,INTEGER:fc,NUMBER:Ir,TEXT:an,SINGLE_FILE:pc,MULTI_FILE:_c,WYSIWYG:kc},s=n.form.fields.map(N=>({placeholder:`Enter ${N.label}`,...N,component:N.component||o[N.type]})),l=i.computed(()=>{const N=n.values;return N?Array.isArray(N)?N:Object.entries(N).filter(I=>s.find(A=>A.name===I[0])).map(([I,A])=>({name:I,value:A,variation:""})):[]}),a=i.computed(()=>{const N={};for(const I of s)N[I.name]=w(I.name);return N});function c(N){return N.enabled===void 0?!0:typeof N.enabled=="function"?N.enabled(a.value):N.enabled}function u(N){return{modelValue:w(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=i.computed(()=>{const N=[...new Set(l.value.map(I=>I.variation))].sort();return N.length===0&&N.push(""),N}),f=i.ref(d.value[0]||""),_=i.ref(""),h=i.ref(!1),p=i.ref(""),m=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function g(N,I){if(l.value)return l.value.find(A=>A.variation===(I!==void 0?I:f.value)&&A.name===N)}function w(N){var I;return(I=g(N))==null?void 0:I.value}function x(N,I){const A=g(N),P={name:N,variation:f.value||"",value:I===void 0?n.emptyValue:I},Y=ol(l.value,A,P,!0);C(Y)}function C(N){let I=N;Array.isArray(n.values)||(I=N.reduce((A,P)=>(A[P.name]=P.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",S)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",S)});function S(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function E(N){return n.form.fields.map(I=>({variation:N,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function y(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=E(""));const I=d.value[d.value.length-1],A=kd(I||"1"),P=E(A);C([...N,...P]),f.value=A}function b(){if(!_.value)return;if(d.value.includes(_.value)){qe.error("Variation name already exists");return}const N=l.value.map(I=>I.variation===h.value?{...I,variation:_.value}:I);C(N),f.value=_.value,h.value=!1,_.value=""}function T(N){if(!N)return;const I=l.value.filter(A=>A.variation!==N);C(I),f.value===N&&(f.value=d.value[0]),p.value=""}function B(N){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const P=g(A.name,N),Y=!!P&&P.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=Y:Y})}return(N,I)=>{const A=i.resolveComponent("QTooltip"),P=i.resolveComponent("QTab"),Y=i.resolveComponent("QSpinnerBall"),ae=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",Cg,[N.form.variations>1?(i.openBlock(),i.createElementBlock("div",Eg,[i.createVNode(ae,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=M=>f.value=M),class:"text-xs"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(M,J)=>(i.openBlock(),i.createBlock(P,{key:M,name:M,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",Tg,[B(M)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Bg,[i.createVNode(i.unref(za),{class:"text-red-400 w-4"}),i.createVNode(A,null,{default:i.withCtx(()=>I[5]||(I[5]=[i.createTextVNode("Creative Form Incomplete")])),_:1})])),i.createElementVNode("div",Ng,i.toDisplayString(M||"1"),1),!N.disable&&!N.readonly&&N.canModifyVariations?(i.openBlock(),i.createElementBlock("div",Ig,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(h.value=M)&&(_.value=M)},[i.createVNode(i.unref(Ha),{class:"w-3 text-blue-900"})],8,Fg),J>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:be=>p.value=M},[i.createVNode(i.unref(Bo),{class:"w-3 text-red-900"})],8,$g)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(i.openBlock(),i.createBlock(P,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:y},{default:i.withCtx(()=>[N.saving?(i.openBlock(),i.createBlock(Y,{key:0,class:"w-4"})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" + Add Variation ")],64))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(M,J)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:M.id,class:i.normalizeClass({"mt-4":J>0,[N.fieldClass]:!0})},[M.vnode?(i.openBlock(),i.createBlock(i.unref(un),{key:0,vnode:M.vnode,props:u(M),params:a.value,"onUpdate:modelValue":be=>x(M.name,be)},null,8,["vnode","props","params","onUpdate:modelValue"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(M.component),{key:M.name+"-"+f.value,"model-value":w(M.name),field:M,label:M.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:M.clearable||N.clearable,disable:N.disable,readonly:N.readonly,"onUpdate:modelValue":be=>x(M.name,be)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(M)]])),128)),i.renderSlot(N.$slots,"default"),i.createVNode(i.unref(xc),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),h.value!==!1?(i.openBlock(),i.createBlock(i.unref(Tt),{key:1,title:"Change variation name",onConfirm:b,onClose:I[2]||(I[2]=M=>h.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(an),{modelValue:_.value,"onUpdate:modelValue":I[1]||(I[1]=M=>_.value=M),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createBlock(i.unref(Tt),{key:2,title:`Remove variation ${p.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:I[3]||(I[3]=M=>T(p.value)),onClose:I[4]||(I[4]=M=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),Sc=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,r=t,o={form:r.form,noLabel:r.noLabel,showName:r.showName,disable:r.disable,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,c=>{var u;if(c)for(let d of r.form.fields)(u=l[d.name])!=null&&u.isSaving||(s.value[d.name]=c[d.name])});async function a(){await r.action.trigger(r.target,s.value),n("saved")}return(c,u)=>(i.openBlock(),i.createBlock(cs,i.mergeProps(o,{values:s.value,"onUpdate:values":[u[0]||(u[0]=d=>s.value=d),a],"empty-value":"","saved-at":c.hideSavedAt?void 0:c.target.updated_at,saving:c.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),Ag=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=i.useModel(t,"modelValue"),r={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Tt),{title:o.title,"confirm-text":o.confirmText||o.title,"content-class":o.contentClass,onConfirm:s[1]||(s[1]=l=>o.$emit("confirm",n.value)),onClose:s[2]||(s[2]=l=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(cs),i.mergeProps(r,{values:n.value,"onUpdate:values":s[0]||(s[0]=l=>n.value=l),"empty-value":""}),{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}}),Og={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},Dg={class:"max-h-full",preload:"auto"},Mg=["src","type"],Pg={key:2,class:"flex items-center justify-center h-full"},vg={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},Lg={key:1,class:"absolute-bottom w-full bg-slate-800"},Vg={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},qg={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},Rg={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Fr=ft(i.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:ts},showFilename:{type:Boolean},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},btnSize:{default:"sm"}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var S;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((S=r.src.split(".").pop())==null?void 0:S.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.computed(()=>{var S;return!r.file||((S=r.file)==null?void 0:S.progress)!==void 0}),a=i.computed(()=>{var S;return((S=r.relatedFiles)==null?void 0:S.length)>0?wd([s.value,...r.relatedFiles],c):[s.value]});function c(S,E){var y,b,T,B;return S.id===E.id||[E.url,(y=E.optimized)==null?void 0:y.url,(b=E.thumb)==null?void 0:b.url].includes(S.url)||[S.url,(T=S.optimized)==null?void 0:T.url,(B=S.thumb)==null?void 0:B.url].includes(E.url)}const u=i.computed(()=>{var S,E;return((S=s.value)==null?void 0:S.name)||((E=s.value)==null?void 0:E.filename)||""}),d=i.computed(()=>{var S,E;return((S=s.value)==null?void 0:S.type)||((E=s.value)==null?void 0:E.mime)||""}),f=i.computed(()=>!!d.value.match(/^image\//)),_=i.computed(()=>!!d.value.match(/^video\//)),h=i.computed(()=>!!d.value.match(/^application\/pdf/)),p=i.computed(()=>{var S,E,y,b;return((E=(S=s.value)==null?void 0:S.optimized)==null?void 0:E.url)||((y=s.value)==null?void 0:y.blobUrl)||((b=s.value)==null?void 0:b.url)}),m=i.computed(()=>{var S,E;return(E=(S=s.value)==null?void 0:S.thumb)==null?void 0:E.url}),g=i.computed(()=>!!m.value||_.value||f.value),w=i.computed(()=>{var y,b;let S=null;const E=((b=(y=r.file)==null?void 0:y.meta)==null?void 0:b.transcodes)||[];for(let T of Object.keys(E)){const B=E[T];if(!(B!=null&&B.completed_at))return{...B,message:`${T} ${B.status}`}}return S});i.onMounted(()=>{w.value&&new xo([]).waitForTranscode(r.file)});const x=i.ref(!1);function C(){x.value?n("remove"):(x.value=!0,setTimeout(()=>{x.value=!1},2e3))}return(S,E)=>{var I,A,P;const y=i.resolveComponent("QImg"),b=i.resolveComponent("QTooltip"),T=i.resolveComponent("QSpinnerPie"),B=i.resolveComponent("QLinearProgress"),N=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!S.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:E[0]||(E[0]=Y=>o.value=!0)},[_.value?(i.openBlock(),i.createElementBlock("div",Og,[i.createElementVNode("video",Dg,[i.createElementVNode("source",{src:p.value+"#t=0.1",type:d.value},null,8,Mg)]),i.createElementVNode("button",{class:i.normalizeClass(S.cls["play-button"])},[i.createVNode(i.unref(L0),{class:"w-16"})],2)])):i.createCommentVNode("",!0),m.value||g.value?(i.openBlock(),i.createBlock(y,{key:1,fit:S.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(m.value||p.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",Pg,[h.value?(i.openBlock(),i.createBlock(i.unref(Xa),{key:0,class:"w-3/4"})):(i.openBlock(),i.createBlock(i.unref($0),{key:1,class:"w-3/4"})),u.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[S.showFilename?(i.openBlock(),i.createElementBlock("div",vg,i.toDisplayString(u.value),1)):(i.openBlock(),i.createBlock(b,{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(u.value),1)]),_:1}))],64)):i.createCommentVNode("",!0)]))]),S.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(S.cls["action-button"])},[i.renderSlot(S.$slots,"action-button")],2)):i.createCommentVNode("",!0),l.value||w.value?(i.openBlock(),i.createElementBlock("div",Lg,[i.createVNode(B,{value:l.value?S.file.progress:w.value.progress/100,size:"36px",color:l.value?"green-800":"blue-800","animation-speed":((I=w.value)==null?void 0:I.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",Vg,[i.createVNode(T,{class:"mr-2 text-slate-50 ml-1",size:"20"}),i.createElementVNode("div",null,i.toDisplayString(l.value?"Uploading...":w.value.message),1)])]),_:1},8,["value","color","animation-speed"])])):i.createCommentVNode("",!0)],64)):i.renderSlot(S.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(S.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",qg,[S.downloadable&&((A=s.value)!=null&&A.url)?(i.openBlock(),i.createBlock(N,{key:0,size:S.btnSize,class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",S.downloadButtonClass]),onClick:E[1]||(E[1]=i.withModifiers(Y=>i.unref(Ai)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(O0),{class:"w-4 h-5"})]),_:1},8,["size","class"])):i.createCommentVNode("",!0),S.removable?(i.openBlock(),i.createBlock(N,{key:1,size:S.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(C,["stop"])},{default:i.withCtx(()=>[x.value?(i.openBlock(),i.createElementBlock("div",Rg," ? ")):(i.openBlock(),i.createBlock(i.unref(Bo),{key:1,class:"w-3"}))]),_:1},8,["size"])):i.createCommentVNode("",!0)]),o.value&&!S.disabled&&a.value?(i.openBlock(),i.createBlock(i.unref(ac),{key:2,files:a.value,"default-slide":((P=a.value[0])==null?void 0:P.id)||"",onClose:E[2]||(E[2]=Y=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_131fu_1","!visible":"_!visible_131fu_1",visible:"_visible_131fu_1",collapse:"_collapse_131fu_1",static:"_static_131fu_1",absolute:"_absolute_131fu_1",relative:"_relative_131fu_1",sticky:"_sticky_131fu_1","left-0":"_left-0_131fu_1","right-0":"_right-0_131fu_1","right-1":"_right-1_131fu_1","top-0":"_top-0_131fu_1","top-1":"_top-1_131fu_1","z-10":"_z-10_131fu_1","m-2":"_m-2_131fu_1","m-4":"_m-4_131fu_1","m-auto":"_m-auto_131fu_1","mx-1":"_mx-1_131fu_1","mx-4":"_mx-4_131fu_1","mx-auto":"_mx-auto_131fu_1","my-2":"_my-2_131fu_1","!mr-1":"_!mr-1_131fu_1","mb-2":"_mb-2_131fu_1","mb-4":"_mb-4_131fu_1","ml-1":"_ml-1_131fu_1","ml-2":"_ml-2_131fu_1","ml-2.5":"_ml-2.5_131fu_1","ml-3":"_ml-3_131fu_1","ml-4":"_ml-4_131fu_1","ml-5":"_ml-5_131fu_1","ml-[-.2em]":"_ml-[-.2em]_131fu_1","mr-1":"_mr-1_131fu_1","mr-2":"_mr-2_131fu_1","mr-3":"_mr-3_131fu_1","mr-4":"_mr-4_131fu_1","mt-1":"_mt-1_131fu_1","mt-2":"_mt-2_131fu_1","mt-3":"_mt-3_131fu_1","mt-4":"_mt-4_131fu_1",block:"_block_131fu_1","inline-block":"_inline-block_131fu_1",inline:"_inline_131fu_1",flex:"_flex_131fu_1",table:"_table_131fu_1",hidden:"_hidden_131fu_1","h-10":"_h-10_131fu_1","h-12":"_h-12_131fu_1","h-16":"_h-16_131fu_1","h-4":"_h-4_131fu_1","h-5":"_h-5_131fu_1","h-6":"_h-6_131fu_1","h-8":"_h-8_131fu_1","h-96":"_h-96_131fu_1","h-[2.25rem]":"_h-[2.25rem]_131fu_1","h-full":"_h-full_131fu_1","max-h-full":"_max-h-full_131fu_1","min-h-10":"_min-h-10_131fu_1","w-10":"_w-10_131fu_1","w-16":"_w-16_131fu_1","w-2":"_w-2_131fu_1","w-2/5":"_w-2/5_131fu_1","w-24":"_w-24_131fu_1","w-3":"_w-3_131fu_1","w-3/4":"_w-3/4_131fu_1","w-3/5":"_w-3/5_131fu_1","w-32":"_w-32_131fu_1","w-4":"_w-4_131fu_1","w-48":"_w-48_131fu_1","w-5":"_w-5_131fu_1","w-6":"_w-6_131fu_1","w-7":"_w-7_131fu_1","w-72":"_w-72_131fu_1","w-8":"_w-8_131fu_1","w-96":"_w-96_131fu_1","w-[13.5rem]":"_w-[13.5rem]_131fu_1","w-[6.5rem]":"_w-[6.5rem]_131fu_1","w-full":"_w-full_131fu_1","!min-w-0":"_!min-w-0_131fu_1","min-w-10":"_min-w-10_131fu_1","max-w-full":"_max-w-full_131fu_1","flex-shrink":"_flex-shrink_131fu_1","flex-shrink-0":"_flex-shrink-0_131fu_1",shrink:"_shrink_131fu_1","flex-grow":"_flex-grow_131fu_1",grow:"_grow_131fu_1","rotate-180":"_rotate-180_131fu_1",transform:"_transform_131fu_1","cursor-ew-resize":"_cursor-ew-resize_131fu_1","cursor-move":"_cursor-move_131fu_1","cursor-not-allowed":"_cursor-not-allowed_131fu_1","cursor-ns-resize":"_cursor-ns-resize_131fu_1","cursor-pointer":"_cursor-pointer_131fu_1",resize:"_resize_131fu_1","flex-col":"_flex-col_131fu_1","flex-nowrap":"_flex-nowrap_131fu_1","items-center":"_items-center_131fu_1","items-stretch":"_items-stretch_131fu_1","justify-start":"_justify-start_131fu_1","justify-end":"_justify-end_131fu_1","justify-center":"_justify-center_131fu_1","justify-between":"_justify-between_131fu_1","gap-x-1":"_gap-x-1_131fu_1","gap-x-4":"_gap-x-4_131fu_1","gap-y-0":"_gap-y-0_131fu_1","gap-y-1":"_gap-y-1_131fu_1","space-x-1":"_space-x-1_131fu_1","space-x-2":"_space-x-2_131fu_1","self-center":"_self-center_131fu_1","overflow-auto":"_overflow-auto_131fu_1","overflow-hidden":"_overflow-hidden_131fu_1","overflow-y-auto":"_overflow-y-auto_131fu_73","overflow-x-hidden":"_overflow-x-hidden_131fu_1","scroll-smooth":"_scroll-smooth_131fu_1","overflow-ellipsis":"_overflow-ellipsis_131fu_1","whitespace-normal":"_whitespace-normal_131fu_1","whitespace-nowrap":"_whitespace-nowrap_131fu_1",rounded:"_rounded_131fu_1","rounded-2xl":"_rounded-2xl_131fu_1","rounded-full":"_rounded-full_131fu_1","rounded-lg":"_rounded-lg_131fu_1","rounded-md":"_rounded-md_131fu_1","rounded-sm":"_rounded-sm_131fu_1","!rounded-l-none":"_!rounded-l-none_131fu_1","!rounded-r-none":"_!rounded-r-none_131fu_1","rounded-b-lg":"_rounded-b-lg_131fu_1","rounded-l-lg":"_rounded-l-lg_131fu_1","rounded-r-lg":"_rounded-r-lg_131fu_1","rounded-t-lg":"_rounded-t-lg_131fu_1","rounded-t-md":"_rounded-t-md_131fu_1","!border-0":"_!border-0_131fu_1",border:"_border_131fu_1","border-b":"_border-b_131fu_1","border-l":"_border-l_131fu_1","border-l-0":"_border-l-0_131fu_1","border-r":"_border-r_131fu_1","border-solid":"_border-solid_131fu_1","border-dashed":"_border-dashed_131fu_1","border-none":"_border-none_131fu_1","border-blue-600":"_border-blue-600_131fu_1","border-blue-700":"_border-blue-700_131fu_1","border-gray-200":"_border-gray-200_131fu_1","border-gray-300":"_border-gray-300_131fu_1","border-slate-200":"_border-slate-200_131fu_1","bg-amber-950":"_bg-amber-950_131fu_1","bg-black":"_bg-black_131fu_1","bg-blue-200":"_bg-blue-200_131fu_1","bg-blue-300":"_bg-blue-300_131fu_1","bg-blue-600":"_bg-blue-600_131fu_1","bg-blue-950":"_bg-blue-950_131fu_1","bg-emerald-200":"_bg-emerald-200_131fu_1","bg-gray-100":"_bg-gray-100_131fu_1","bg-gray-200":"_bg-gray-200_131fu_1","bg-gray-400":"_bg-gray-400_131fu_1","bg-gray-500":"_bg-gray-500_131fu_1","bg-gray-800":"_bg-gray-800_131fu_1","bg-green-200":"_bg-green-200_131fu_1","bg-green-300":"_bg-green-300_131fu_1","bg-green-900":"_bg-green-900_131fu_1","bg-green-950":"_bg-green-950_131fu_1","bg-lime-300":"_bg-lime-300_131fu_1","bg-red-200":"_bg-red-200_131fu_1","bg-red-300":"_bg-red-300_131fu_1","bg-red-900":"_bg-red-900_131fu_1","bg-red-950":"_bg-red-950_131fu_1","bg-sky-300":"_bg-sky-300_131fu_1","bg-sky-800":"_bg-sky-800_131fu_1","bg-sky-900":"_bg-sky-900_131fu_1","bg-sky-950":"_bg-sky-950_131fu_1","bg-slate-100":"_bg-slate-100_131fu_1","bg-slate-400":"_bg-slate-400_131fu_1","bg-slate-500":"_bg-slate-500_131fu_1","bg-slate-600":"_bg-slate-600_131fu_1","bg-slate-700":"_bg-slate-700_131fu_1","bg-slate-800":"_bg-slate-800_131fu_1","bg-slate-900":"_bg-slate-900_131fu_1","bg-slate-950":"_bg-slate-950_131fu_1","bg-transparent":"_bg-transparent_131fu_1","bg-white":"_bg-white_131fu_1","bg-yellow-300":"_bg-yellow-300_131fu_1","bg-yellow-950":"_bg-yellow-950_131fu_1","!bg-none":"_!bg-none_131fu_1","!p-2":"_!p-2_131fu_1","p-0":"_p-0_131fu_1","p-1":"_p-1_131fu_1","p-2":"_p-2_131fu_1","p-3":"_p-3_131fu_1","p-4":"_p-4_131fu_1","p-8":"_p-8_131fu_1","!py-0":"_!py-0_131fu_1","px-1":"_px-1_131fu_1","px-1.5":"_px-1.5_131fu_1","px-12":"_px-12_131fu_1","px-2":"_px-2_131fu_1","px-2.5":"_px-2.5_131fu_1","px-3":"_px-3_131fu_1","px-4":"_px-4_131fu_1","px-6":"_px-6_131fu_1","px-8":"_px-8_131fu_1","py-0":"_py-0_131fu_1","py-1":"_py-1_131fu_1","py-1.5":"_py-1.5_131fu_1","py-14":"_py-14_131fu_1","py-2":"_py-2_131fu_1","py-3":"_py-3_131fu_1","py-4":"_py-4_131fu_1","py-5":"_py-5_131fu_1","py-8":"_py-8_131fu_1","pl-1":"_pl-1_131fu_1","pt-3":"_pt-3_131fu_1","text-left":"_text-left_131fu_1","text-center":"_text-center_131fu_1","text-[.7rem]":"_text-[.7rem]_131fu_1","text-[1rem]":"_text-[1rem]_131fu_1","text-base":"_text-base_131fu_1","text-lg":"_text-lg_131fu_1","text-sm":"_text-sm_131fu_1","text-xs":"_text-xs_131fu_1","font-bold":"_font-bold_131fu_1","font-medium":"_font-medium_131fu_1","font-semibold":"_font-semibold_131fu_1",uppercase:"_uppercase_131fu_1","leading-[1.2rem]":"_leading-[1.2rem]_131fu_1","!text-green-900":"_!text-green-900_131fu_1","!text-red-900":"_!text-red-900_131fu_1","!text-sky-900":"_!text-sky-900_131fu_1","!text-white":"_!text-white_131fu_1","!text-yellow-900":"_!text-yellow-900_131fu_1","text-amber-400":"_text-amber-400_131fu_1","text-blue-400":"_text-blue-400_131fu_1","text-blue-600":"_text-blue-600_131fu_1","text-blue-900":"_text-blue-900_131fu_1","text-gray-300":"_text-gray-300_131fu_1","text-gray-400":"_text-gray-400_131fu_1","text-gray-500":"_text-gray-500_131fu_1","text-gray-600":"_text-gray-600_131fu_1","text-gray-700":"_text-gray-700_131fu_1","text-green-300":"_text-green-300_131fu_1","text-green-400":"_text-green-400_131fu_1","text-green-700":"_text-green-700_131fu_1","text-green-900":"_text-green-900_131fu_1","text-lime-900":"_text-lime-900_131fu_1","text-red-400":"_text-red-400_131fu_1","text-red-500":"_text-red-500_131fu_1","text-red-800":"_text-red-800_131fu_1","text-red-900":"_text-red-900_131fu_1","text-sky-400":"_text-sky-400_131fu_1","text-sky-900":"_text-sky-900_131fu_1","text-slate-200":"_text-slate-200_131fu_1","text-slate-300":"_text-slate-300_131fu_1","text-slate-400":"_text-slate-400_131fu_1","text-slate-50":"_text-slate-50_131fu_1","text-slate-500":"_text-slate-500_131fu_1","text-slate-600":"_text-slate-600_131fu_1","text-slate-800":"_text-slate-800_131fu_1","text-slate-900":"_text-slate-900_131fu_1","text-white":"_text-white_131fu_1","text-yellow-400":"_text-yellow-400_131fu_1","text-yellow-600":"_text-yellow-600_131fu_1","text-zinc-500":"_text-zinc-500_131fu_1","text-zinc-800":"_text-zinc-800_131fu_1","line-through":"_line-through_131fu_1","opacity-0":"_opacity-0_131fu_1","opacity-20":"_opacity-20_131fu_1","opacity-50":"_opacity-50_131fu_1","opacity-70":"_opacity-70_131fu_1","opacity-80":"_opacity-80_131fu_1","shadow-none":"_shadow-none_131fu_1","outline-none":"_outline-none_131fu_1",outline:"_outline_131fu_1","outline-offset-0":"_outline-offset-0_131fu_1",filter:"_filter_131fu_1",transition:"_transition_131fu_1","transition-all":"_transition-all_131fu_1","duration-300":"_duration-300_131fu_1","danx-app":"_danx-app_131fu_4","q-tab":"_q-tab_131fu_4","q-table__card":"_q-table__card_131fu_7","q-checkbox__inner":"_q-checkbox__inner_131fu_11","q-toolbar":"_q-toolbar_131fu_14","q-notification__actions":"_q-notification__actions_131fu_19","q-date":"_q-date_131fu_22","q-date__view":"_q-date__view_131fu_25","q-field":"_q-field_131fu_28","q-field--auto-height":"_q-field--auto-height_131fu_28","q-field__control":"_q-field__control_131fu_28","q-field__native":"_q-field__native_131fu_31","q-field--labeled":"_q-field--labeled_131fu_35","q-field__control-container":"_q-field__control-container_131fu_35","q-textarea":"_q-textarea_131fu_38","q-field__marginal":"_q-field__marginal_131fu_41","q-field__input":"_q-field__input_131fu_41","q-field__label":"_q-field__label_131fu_41","q-btn":"_q-btn_131fu_48","q-item":"_q-item_131fu_56","q-tab-panels":"_q-tab-panels_131fu_60","q-panel":"_q-panel_131fu_64",scroll:"_scroll_131fu_67","q-tab-panel":"_q-tab-panel_131fu_60","dx-dialog":"_dx-dialog_131fu_77","q-card__section--vert":"_q-card__section--vert_131fu_77","q-banner":"_q-banner_131fu_81",app:"_app_131fu_1","main-layout":"_main-layout_131fu_1","is-disabled":"_is-disabled_131fu_98","disable-all-transitions":"_disable-all-transitions_131fu_103","v-enter-active":"_v-enter-active_131fu_107","v-leave-active":"_v-leave-active_131fu_108","v-enter-from":"_v-enter-from_131fu_112","v-leave-to":"_v-leave-to_131fu_113","dx-action-table":"_dx-action-table_131fu_117","dx-column-shrink":"_dx-column-shrink_131fu_117","action-button":"_action-button_131fu_121","play-button":"_play-button_131fu_128","hover:bg-blue-200":"_hover:bg-blue-200_131fu_1","hover:bg-blue-400":"_hover:bg-blue-400_131fu_1","hover:bg-gray-200":"_hover:bg-gray-200_131fu_1","hover:bg-green-100":"_hover:bg-green-100_131fu_1","hover:bg-green-400":"_hover:bg-green-400_131fu_1","hover:bg-green-800":"_hover:bg-green-800_131fu_1","hover:bg-lime-400":"_hover:bg-lime-400_131fu_1","hover:bg-red-100":"_hover:bg-red-100_131fu_1","hover:bg-red-200":"_hover:bg-red-200_131fu_1","hover:bg-red-400":"_hover:bg-red-400_131fu_1","hover:bg-sky-400":"_hover:bg-sky-400_131fu_1","hover:bg-sky-800":"_hover:bg-sky-800_131fu_1","hover:bg-slate-200":"_hover:bg-slate-200_131fu_1","hover:bg-slate-300":"_hover:bg-slate-300_131fu_1","hover:bg-slate-600":"_hover:bg-slate-600_131fu_1","hover:bg-slate-900":"_hover:bg-slate-900_131fu_1","hover:text-blue-500":"_hover:text-blue-500_131fu_1","hover:text-blue-600":"_hover:text-blue-600_131fu_1","hover:opacity-100":"_hover:opacity-100_131fu_1","hover:opacity-20":"_hover:opacity-20_131fu_1","hover:opacity-70":"_hover:opacity-70_131fu_1","hover:outline-4":"_hover:outline-4_131fu_1","focus:bg-blue-200":"_focus:bg-blue-200_131fu_1","focus:outline-4":"_focus:outline-4_131fu_1","focus:outline-blue-200":"_focus:outline-blue-200_131fu_1",group:"_group_131fu_1","group-hover:opacity-100":"_group-hover:opacity-100_131fu_1"}}]]),Ug=["src","alt"],Cc={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.svg.default?e.svg.default:e.svg),r=i.computed(()=>typeof n.value=="string");return(o,s)=>r.value?(i.openBlock(),i.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,Ug)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},jg={class:"address-format"},zg={key:0,class:"address-attn"},Hg={key:1,class:"address-name"},Gg={class:"address-line-1"},Zg={key:0,class:"address-line-2"},Wg={key:1,class:"address-line-3"},Yg={class:"address-city-state-zip"},Kg={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",jg,[t.address.attn?(i.openBlock(),i.createElementBlock("div",zg,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",Hg,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",Gg,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",Zg,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",Wg,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Yg,[t.address.city?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.address.city)+",",1)],64)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(t.address.state)+" "+i.toDisplayString(t.address.zip_code),1)])],64)):i.createCommentVNode("",!0)]))}},Qg={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,r=>(i.openBlock(),i.createElementBlock("li",{key:r[t.column]},i.toDisplayString(r[t.column]),1))),128))]))}},Xg={class:"flex flex-nowrap items-center"},Jg={key:0,class:"whitespace-nowrap"},ey={__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 i.openBlock(),i.createElementBlock("div",Xg,[i.createVNode(i.unref(e0),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",Jg,i.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+i.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Unknown ")],64))])}}},ty={class:"flex items-center flex-nowrap"},ny={__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)=>(i.openBlock(),i.createElementBlock("div",ty,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon),{class:i.normalizeClass(t.iconClass)},null,8,["class"])),i.createElementVNode("div",{class:i.normalizeClass(t.textClass)},[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])],2)]))}},ry={class:"text-xs font-bold"},oy={__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=i.resolveComponent("QSpinnerTail");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",ry,i.toDisplayString(t.label),1),i.createElementVNode("div",{class:i.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(i.openBlock(),i.createBlock(r,{key:0})):i.renderSlot(e.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.value||"-"),1)])],2)])}}},iy={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Ec=i.defineComponent({__name:"CollapsableSidebar",props:{displayClass:{default:"flex flex-col"},toggleClass:{default:""},toggleIconClass:{default:"w-5 transition-all"},rightSide:{type:Boolean},maxWidth:{default:"13.5rem"},minWidth:{default:"5.5rem"},disabled:{type:Boolean},collapse:{type:Boolean},name:{default:"sidebar"},toggleAtTop:{type:Boolean},hideToggleOnCollapse:{type:Boolean}},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(Ct(r.name+"-is-collapsed",r.collapse));function s(d){o.value=d,vt(r.name+"-is-collapsed",!!o.value)}function l(){s(!o.value),n("collapse",o.value),n("update:collapse",o.value)}i.onMounted(()=>{n("collapse",o.value),n("update:collapse",o.value)});const a=i.computed(()=>({width:o.value?r.minWidth:r.maxWidth})),c=i.computed(()=>typeof r.toggleClass=="string"?{[r.toggleClass]:!0}:r.toggleClass),u=i.computed(()=>typeof r.toggleIconClass=="string"?{[r.toggleIconClass]:!0}:r.toggleIconClass);return i.watch(()=>r.collapse,()=>{s(r.collapse)}),(d,f)=>{const _=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-collapsable-sidebar overflow-hidden scroll-smooth flex-shrink-0 flex-nowrap transition-all relative",{"is-collapsed":o.value,"is-right-side":d.rightSide,[d.displayClass]:!0}]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",iy,[i.renderSlot(d.$slots,"default",{isCollapsed:o.value})]),!d.disabled&&(!d.hideToggleOnCollapse||!o.value)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[d.toggleAtTop?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",c.value]),onClick:l},[i.createVNode(i.unref(ic),{class:i.normalizeClass({"rotate-180":d.rightSide?!o.value:o.value,...u.value})},null,8,["class"])],2)):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex w-full p-4 flex-shrink-0",{"justify-start":d.rightSide,"justify-end":!d.rightSide,...c.value}])},[i.renderSlot(d.$slots,"toggle",{},()=>[i.createVNode(_,{class:"btn-secondary",onClick:l},{default:i.withCtx(()=>[i.createVNode(i.unref(ic),{class:i.normalizeClass({"rotate-180":d.rightSide?!o.value:o.value,...u.value})},null,8,["class"])]),_:1})])],2))],64)):i.createCommentVNode("",!0)],6)}}}),us=ft(i.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=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:i.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=o=>e.$emit("update:show",!1))},{default:i.withCtx(()=>[i.createElementVNode("div",null,[e.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["stop","prevent"]))},i.toDisplayString(e.title),3)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[i.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1816t_1","!visible":"_!visible_1816t_1",visible:"_visible_1816t_1",collapse:"_collapse_1816t_1",static:"_static_1816t_1",absolute:"_absolute_1816t_1",relative:"_relative_1816t_1",sticky:"_sticky_1816t_1","left-0":"_left-0_1816t_1","right-0":"_right-0_1816t_1","right-1":"_right-1_1816t_1","top-0":"_top-0_1816t_1","top-1":"_top-1_1816t_1","z-10":"_z-10_1816t_1","m-2":"_m-2_1816t_1","m-4":"_m-4_1816t_1","m-auto":"_m-auto_1816t_1","mx-1":"_mx-1_1816t_1","mx-4":"_mx-4_1816t_1","mx-auto":"_mx-auto_1816t_1","my-2":"_my-2_1816t_1","!mr-1":"_!mr-1_1816t_1","mb-2":"_mb-2_1816t_1","mb-4":"_mb-4_1816t_1","ml-1":"_ml-1_1816t_1","ml-2":"_ml-2_1816t_1","ml-2.5":"_ml-2.5_1816t_1","ml-3":"_ml-3_1816t_1","ml-4":"_ml-4_1816t_1","ml-5":"_ml-5_1816t_1","ml-[-.2em]":"_ml-[-.2em]_1816t_1","mr-1":"_mr-1_1816t_1","mr-2":"_mr-2_1816t_1","mr-3":"_mr-3_1816t_1","mr-4":"_mr-4_1816t_1","mt-1":"_mt-1_1816t_1","mt-2":"_mt-2_1816t_1","mt-3":"_mt-3_1816t_1","mt-4":"_mt-4_1816t_1",block:"_block_1816t_1","inline-block":"_inline-block_1816t_1",inline:"_inline_1816t_1",flex:"_flex_1816t_1",table:"_table_1816t_1",hidden:"_hidden_1816t_1","h-10":"_h-10_1816t_1","h-12":"_h-12_1816t_1","h-16":"_h-16_1816t_1","h-4":"_h-4_1816t_1","h-5":"_h-5_1816t_1","h-6":"_h-6_1816t_1","h-8":"_h-8_1816t_1","h-96":"_h-96_1816t_1","h-[2.25rem]":"_h-[2.25rem]_1816t_1","h-full":"_h-full_1816t_1","max-h-full":"_max-h-full_1816t_1","min-h-10":"_min-h-10_1816t_1","w-10":"_w-10_1816t_1","w-16":"_w-16_1816t_1","w-2":"_w-2_1816t_1","w-2/5":"_w-2/5_1816t_1","w-24":"_w-24_1816t_1","w-3":"_w-3_1816t_1","w-3/4":"_w-3/4_1816t_1","w-3/5":"_w-3/5_1816t_1","w-32":"_w-32_1816t_1","w-4":"_w-4_1816t_1","w-48":"_w-48_1816t_1","w-5":"_w-5_1816t_1","w-6":"_w-6_1816t_1","w-7":"_w-7_1816t_1","w-72":"_w-72_1816t_1","w-8":"_w-8_1816t_1","w-96":"_w-96_1816t_1","w-[13.5rem]":"_w-[13.5rem]_1816t_1","w-[6.5rem]":"_w-[6.5rem]_1816t_1","w-full":"_w-full_1816t_1","!min-w-0":"_!min-w-0_1816t_1","min-w-10":"_min-w-10_1816t_1","max-w-full":"_max-w-full_1816t_1","flex-shrink":"_flex-shrink_1816t_1","flex-shrink-0":"_flex-shrink-0_1816t_1",shrink:"_shrink_1816t_1","flex-grow":"_flex-grow_1816t_1",grow:"_grow_1816t_1","rotate-180":"_rotate-180_1816t_1",transform:"_transform_1816t_1","cursor-ew-resize":"_cursor-ew-resize_1816t_1","cursor-move":"_cursor-move_1816t_1","cursor-not-allowed":"_cursor-not-allowed_1816t_1","cursor-ns-resize":"_cursor-ns-resize_1816t_1","cursor-pointer":"_cursor-pointer_1816t_1",resize:"_resize_1816t_1","flex-col":"_flex-col_1816t_1","flex-nowrap":"_flex-nowrap_1816t_1","items-center":"_items-center_1816t_1","items-stretch":"_items-stretch_1816t_1","justify-start":"_justify-start_1816t_1","justify-end":"_justify-end_1816t_1","justify-center":"_justify-center_1816t_1","justify-between":"_justify-between_1816t_1","gap-x-1":"_gap-x-1_1816t_1","gap-x-4":"_gap-x-4_1816t_1","gap-y-0":"_gap-y-0_1816t_1","gap-y-1":"_gap-y-1_1816t_1","space-x-1":"_space-x-1_1816t_1","space-x-2":"_space-x-2_1816t_1","self-center":"_self-center_1816t_1","overflow-auto":"_overflow-auto_1816t_1","overflow-hidden":"_overflow-hidden_1816t_1","overflow-y-auto":"_overflow-y-auto_1816t_73","overflow-x-hidden":"_overflow-x-hidden_1816t_1","scroll-smooth":"_scroll-smooth_1816t_1","overflow-ellipsis":"_overflow-ellipsis_1816t_1","whitespace-normal":"_whitespace-normal_1816t_1","whitespace-nowrap":"_whitespace-nowrap_1816t_1",rounded:"_rounded_1816t_1","rounded-2xl":"_rounded-2xl_1816t_1","rounded-full":"_rounded-full_1816t_1","rounded-lg":"_rounded-lg_1816t_1","rounded-md":"_rounded-md_1816t_1","rounded-sm":"_rounded-sm_1816t_1","!rounded-l-none":"_!rounded-l-none_1816t_1","!rounded-r-none":"_!rounded-r-none_1816t_1","rounded-b-lg":"_rounded-b-lg_1816t_1","rounded-l-lg":"_rounded-l-lg_1816t_1","rounded-r-lg":"_rounded-r-lg_1816t_1","rounded-t-lg":"_rounded-t-lg_1816t_1","rounded-t-md":"_rounded-t-md_1816t_1","!border-0":"_!border-0_1816t_1",border:"_border_1816t_1","border-b":"_border-b_1816t_1","border-l":"_border-l_1816t_1","border-l-0":"_border-l-0_1816t_1","border-r":"_border-r_1816t_1","border-solid":"_border-solid_1816t_1","border-dashed":"_border-dashed_1816t_1","border-none":"_border-none_1816t_1","border-blue-600":"_border-blue-600_1816t_1","border-blue-700":"_border-blue-700_1816t_1","border-gray-200":"_border-gray-200_1816t_1","border-gray-300":"_border-gray-300_1816t_1","border-slate-200":"_border-slate-200_1816t_1","bg-amber-950":"_bg-amber-950_1816t_1","bg-black":"_bg-black_1816t_1","bg-blue-200":"_bg-blue-200_1816t_1","bg-blue-300":"_bg-blue-300_1816t_1","bg-blue-600":"_bg-blue-600_1816t_1","bg-blue-950":"_bg-blue-950_1816t_1","bg-emerald-200":"_bg-emerald-200_1816t_1","bg-gray-100":"_bg-gray-100_1816t_1","bg-gray-200":"_bg-gray-200_1816t_1","bg-gray-400":"_bg-gray-400_1816t_1","bg-gray-500":"_bg-gray-500_1816t_1","bg-gray-800":"_bg-gray-800_1816t_1","bg-green-200":"_bg-green-200_1816t_1","bg-green-300":"_bg-green-300_1816t_1","bg-green-900":"_bg-green-900_1816t_1","bg-green-950":"_bg-green-950_1816t_1","bg-lime-300":"_bg-lime-300_1816t_1","bg-red-200":"_bg-red-200_1816t_1","bg-red-300":"_bg-red-300_1816t_1","bg-red-900":"_bg-red-900_1816t_1","bg-red-950":"_bg-red-950_1816t_1","bg-sky-300":"_bg-sky-300_1816t_1","bg-sky-800":"_bg-sky-800_1816t_1","bg-sky-900":"_bg-sky-900_1816t_1","bg-sky-950":"_bg-sky-950_1816t_1","bg-slate-100":"_bg-slate-100_1816t_1","bg-slate-400":"_bg-slate-400_1816t_1","bg-slate-500":"_bg-slate-500_1816t_1","bg-slate-600":"_bg-slate-600_1816t_1","bg-slate-700":"_bg-slate-700_1816t_1","bg-slate-800":"_bg-slate-800_1816t_1","bg-slate-900":"_bg-slate-900_1816t_1","bg-slate-950":"_bg-slate-950_1816t_1","bg-transparent":"_bg-transparent_1816t_1","bg-white":"_bg-white_1816t_1","bg-yellow-300":"_bg-yellow-300_1816t_1","bg-yellow-950":"_bg-yellow-950_1816t_1","!bg-none":"_!bg-none_1816t_1","!p-2":"_!p-2_1816t_1","p-0":"_p-0_1816t_1","p-1":"_p-1_1816t_1","p-2":"_p-2_1816t_1","p-3":"_p-3_1816t_1","p-4":"_p-4_1816t_1","p-8":"_p-8_1816t_1","!py-0":"_!py-0_1816t_1","px-1":"_px-1_1816t_1","px-1.5":"_px-1.5_1816t_1","px-12":"_px-12_1816t_1","px-2":"_px-2_1816t_1","px-2.5":"_px-2.5_1816t_1","px-3":"_px-3_1816t_1","px-4":"_px-4_1816t_1","px-6":"_px-6_1816t_1","px-8":"_px-8_1816t_1","py-0":"_py-0_1816t_1","py-1":"_py-1_1816t_1","py-1.5":"_py-1.5_1816t_1","py-14":"_py-14_1816t_1","py-2":"_py-2_1816t_1","py-3":"_py-3_1816t_1","py-4":"_py-4_1816t_1","py-5":"_py-5_1816t_1","py-8":"_py-8_1816t_1","pl-1":"_pl-1_1816t_1","pt-3":"_pt-3_1816t_1","text-left":"_text-left_1816t_1","text-center":"_text-center_1816t_1","text-[.7rem]":"_text-[.7rem]_1816t_1","text-[1rem]":"_text-[1rem]_1816t_1","text-base":"_text-base_1816t_1","text-lg":"_text-lg_1816t_1","text-sm":"_text-sm_1816t_1","text-xs":"_text-xs_1816t_1","font-bold":"_font-bold_1816t_1","font-medium":"_font-medium_1816t_1","font-semibold":"_font-semibold_1816t_1",uppercase:"_uppercase_1816t_1","leading-[1.2rem]":"_leading-[1.2rem]_1816t_1","!text-green-900":"_!text-green-900_1816t_1","!text-red-900":"_!text-red-900_1816t_1","!text-sky-900":"_!text-sky-900_1816t_1","!text-white":"_!text-white_1816t_1","!text-yellow-900":"_!text-yellow-900_1816t_1","text-amber-400":"_text-amber-400_1816t_1","text-blue-400":"_text-blue-400_1816t_1","text-blue-600":"_text-blue-600_1816t_1","text-blue-900":"_text-blue-900_1816t_1","text-gray-300":"_text-gray-300_1816t_1","text-gray-400":"_text-gray-400_1816t_1","text-gray-500":"_text-gray-500_1816t_1","text-gray-600":"_text-gray-600_1816t_1","text-gray-700":"_text-gray-700_1816t_1","text-green-300":"_text-green-300_1816t_1","text-green-400":"_text-green-400_1816t_1","text-green-700":"_text-green-700_1816t_1","text-green-900":"_text-green-900_1816t_1","text-lime-900":"_text-lime-900_1816t_1","text-red-400":"_text-red-400_1816t_1","text-red-500":"_text-red-500_1816t_1","text-red-800":"_text-red-800_1816t_1","text-red-900":"_text-red-900_1816t_1","text-sky-400":"_text-sky-400_1816t_1","text-sky-900":"_text-sky-900_1816t_1","text-slate-200":"_text-slate-200_1816t_1","text-slate-300":"_text-slate-300_1816t_1","text-slate-400":"_text-slate-400_1816t_1","text-slate-50":"_text-slate-50_1816t_1","text-slate-500":"_text-slate-500_1816t_1","text-slate-600":"_text-slate-600_1816t_1","text-slate-800":"_text-slate-800_1816t_1","text-slate-900":"_text-slate-900_1816t_1","text-white":"_text-white_1816t_1","text-yellow-400":"_text-yellow-400_1816t_1","text-yellow-600":"_text-yellow-600_1816t_1","text-zinc-500":"_text-zinc-500_1816t_1","text-zinc-800":"_text-zinc-800_1816t_1","line-through":"_line-through_1816t_1","opacity-0":"_opacity-0_1816t_1","opacity-20":"_opacity-20_1816t_1","opacity-50":"_opacity-50_1816t_1","opacity-70":"_opacity-70_1816t_1","opacity-80":"_opacity-80_1816t_1","shadow-none":"_shadow-none_1816t_1","outline-none":"_outline-none_1816t_1",outline:"_outline_1816t_1","outline-offset-0":"_outline-offset-0_1816t_1",filter:"_filter_1816t_1",transition:"_transition_1816t_1","transition-all":"_transition-all_1816t_1","duration-300":"_duration-300_1816t_1","danx-app":"_danx-app_1816t_4","q-tab":"_q-tab_1816t_4","q-table__card":"_q-table__card_1816t_7","q-checkbox__inner":"_q-checkbox__inner_1816t_11","q-toolbar":"_q-toolbar_1816t_14","q-notification__actions":"_q-notification__actions_1816t_19","q-date":"_q-date_1816t_22","q-date__view":"_q-date__view_1816t_25","q-field":"_q-field_1816t_28","q-field--auto-height":"_q-field--auto-height_1816t_28","q-field__control":"_q-field__control_1816t_28","q-field__native":"_q-field__native_1816t_31","q-field--labeled":"_q-field--labeled_1816t_35","q-field__control-container":"_q-field__control-container_1816t_35","q-textarea":"_q-textarea_1816t_38","q-field__marginal":"_q-field__marginal_1816t_41","q-field__input":"_q-field__input_1816t_41","q-field__label":"_q-field__label_1816t_41","q-btn":"_q-btn_1816t_48","q-item":"_q-item_1816t_56","q-tab-panels":"_q-tab-panels_1816t_60","q-panel":"_q-panel_1816t_64",scroll:"_scroll_1816t_67","q-tab-panel":"_q-tab-panel_1816t_60","dx-dialog":"_dx-dialog_1816t_77","q-card__section--vert":"_q-card__section--vert_1816t_77","q-banner":"_q-banner_1816t_81",app:"_app_1816t_1","main-layout":"_main-layout_1816t_1","is-disabled":"_is-disabled_1816t_98","disable-all-transitions":"_disable-all-transitions_1816t_103","v-enter-active":"_v-enter-active_1816t_107","v-leave-active":"_v-leave-active_1816t_108","v-enter-from":"_v-enter-from_1816t_112","v-leave-to":"_v-leave-to_1816t_113","dx-action-table":"_dx-action-table_1816t_117","dx-column-shrink":"_dx-column-shrink_1816t_117","dialog-title":"_dialog-title_1816t_121","dialog-content":"_dialog-content_1816t_128","hover:bg-blue-200":"_hover:bg-blue-200_1816t_1","hover:bg-blue-400":"_hover:bg-blue-400_1816t_1","hover:bg-gray-200":"_hover:bg-gray-200_1816t_1","hover:bg-green-100":"_hover:bg-green-100_1816t_1","hover:bg-green-400":"_hover:bg-green-400_1816t_1","hover:bg-green-800":"_hover:bg-green-800_1816t_1","hover:bg-lime-400":"_hover:bg-lime-400_1816t_1","hover:bg-red-100":"_hover:bg-red-100_1816t_1","hover:bg-red-200":"_hover:bg-red-200_1816t_1","hover:bg-red-400":"_hover:bg-red-400_1816t_1","hover:bg-sky-400":"_hover:bg-sky-400_1816t_1","hover:bg-sky-800":"_hover:bg-sky-800_1816t_1","hover:bg-slate-200":"_hover:bg-slate-200_1816t_1","hover:bg-slate-300":"_hover:bg-slate-300_1816t_1","hover:bg-slate-600":"_hover:bg-slate-600_1816t_1","hover:bg-slate-900":"_hover:bg-slate-900_1816t_1","hover:text-blue-500":"_hover:text-blue-500_1816t_1","hover:text-blue-600":"_hover:text-blue-600_1816t_1","hover:opacity-100":"_hover:opacity-100_1816t_1","hover:opacity-20":"_hover:opacity-20_1816t_1","hover:opacity-70":"_hover:opacity-70_1816t_1","hover:outline-4":"_hover:outline-4_1816t_1","focus:bg-blue-200":"_focus:bg-blue-200_1816t_1","focus:outline-4":"_focus:outline-4_1816t_1","focus:outline-blue-200":"_focus:outline-blue-200_1816t_1",group:"_group_1816t_1","group-hover:opacity-100":"_group-hover:opacity-100_1816t_1"}}]]),Tc=t=>i.isVNode(t.vnode)?t.vnode:i.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;Tc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const un=Tc,sy={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await kn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(kn)?(i.openBlock(),i.createBlock(i.unref(un),{key:0,vnode:i.unref(kn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(kn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},Bc={__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=i.computed(()=>{var o,s,l;return((o=r.value)==null?void 0:o.value)||((l=(s=r.value)==null?void 0:s.props)==null?void 0:l.text)}),r=i.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(o,s)=>n.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:s[0]||(s[0]=l=>o.$emit("action",l))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.value),1)]),_:1},16)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:s[1]||(s[1]=l=>o.$emit("action",l))}),null,16))}},ly=["href"],Nc=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:ee.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(o){n("action",o.name||o.action),n("action-item",o)}return(o,s)=>{const l=i.resolveComponent("QTooltip"),a=i.resolveComponent("QItem"),c=i.resolveComponent("QList"),u=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("a",{class:i.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":o.disabled}])},[o.$slots.tooltip||o.tooltip?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(o.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),i.createVNode(i.Transition,{mode:"out-in",duration:150},{default:i.withCtx(()=>[o.loading?(i.openBlock(),i.createBlock(i.unref(Bc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(A0),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),o.disabled?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"auto-close":""},{default:i.withCtx(()=>[i.createVNode(c,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.items,d=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.name},[d.url?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)],10,ly)):(i.openBlock(),i.createBlock(a,{key:1,clickable:"",class:i.normalizeClass(d.class),onClick:f=>r(d)},{default:i.withCtx(()=>[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),ay={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=i.ref(!1),n=i.ref(null),r=i.ref(!1),o=i.ref(!1);let s=null;i.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,o.value=!0,s&&clearTimeout(s)}function a(){o.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,s&&clearTimeout(s)}function u(){r.value=!1,e.value&&d()}function d(){s&&clearTimeout(s),s=setTimeout(()=>{r.value||o.value?d():e.value=!1},200)}return(f,_)=>{const h=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(h,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":_[0]||(_[0]=p=>e.value=p),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},cy={class:"flex items-center w-full"},uy={class:"flex-grow text-sm"},dy={__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=i.resolveComponent("QBadge"),o=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(o,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",cy,[i.createElementVNode("div",uy,i.toDisplayString(t.label),1),i.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},fy={class:"flex items-center w-full"},_y={class:"flex-grow text-sm"},hy={__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=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",fy,[i.createElementVNode("div",_y,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(za),{key:0,class:i.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(i.openBlock(),i.createBlock(i.unref(nc),{key:1,class:"text-yellow-600 w-5"})):i.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},my={};function py(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const gy=ft(my,[["render",py]]),Ic={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},yy=i.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return i.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:"maxHeight"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3}))}}),by={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:t.name},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Bt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
2
2
  * GSAP 3.12.7
3
3
  * https://gsap.com
4
4
  *
@@ -150,5 +150,5 @@ ${e}
150
150
 
151
151
  Use Save As... to download, then click back to return to this page.`)&&(location.href=w),!0;var C=document.createElement("iframe");document.body.appendChild(C),x||(w="data:"+w.replace(/^data:([\w/\-+]+)/,o)),C.src=w,setTimeout(function(){document.body.removeChild(C)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(_,f);if(r.URL)g(r.URL.createObjectURL(_),!0);else{if(typeof _=="string"||_.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(_))}catch{return g("data:"+s+","+encodeURIComponent(_))}h=new FileReader,h.onload=function(w){g(this.result)},h.readAsDataURL(_)}return!0}async function r_(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=re.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const o=await fetch(t,r);if(!o.ok)throw Error("File download failed: invalid response from server");let s;try{const a=JSON.parse(new TextDecoder().decode(o.data));console.error("Error downloading file:",a),s=a.message,a.errors&&(s=a.errors[0].message)}catch{}if(s)throw new Error("Failed to download file: "+s);await o_(o,e)}async function o_(t,e=""){const n=la(t,"content-disposition",""),r=la(t,"content-type",""),o=n.match(/filename="([^"]+)"/);e=e||o&&o[1]||"download.pdf";let s=t.data;s||(s=await t.blob()),Ai(s,e,r)}function la(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let i_=class{constructor(e){if(BS(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 BS(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 s_(t,e,n){try{return new DataView(t,e,n)}catch{return new i_(t,e,n)}}function q(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o++)r.push(t.getUint8(e+o));return Sr(r)}function xr(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const o=t.getUint8(e+r);if(o===0)break;n.push(o),r++}return Sr(n)}function NS(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o+=2)r.push(t.getUint16(e+o));return r[r.length-1]===0&&r.pop(),Sr(r)}function l_(t,e){const n=t.getUint8(e),r=q(t,e+1,n);return[n,r]}function Sr(t){return t.map(e=>String.fromCharCode(e)).join("")}function U(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function a_(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 c_(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 IS(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 FS(t,e,n){return u_(n,e-t.length)+t}function $S(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function u_(t,e){return new Array(e+1).join(t)}const Oi=void 0,d_=0;function f_(t,e,n,r="string"){if(e===d_&&typeof DecompressionStream=="function"){const o=new DecompressionStream("deflate"),s=new Blob([t]).stream().pipeThrough(o);return r==="dataview"?new Response(s).arrayBuffer().then(l=>new DataView(l)):new Response(s).arrayBuffer().then(l=>new TextDecoder(n).decode(l))}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const __={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,USE_MAKER_NOTES:!0};function pe(t){return t.map(e=>String.fromCharCode(e)).join("")}function aa(t){if(t.length>=8){const e=pe(t.slice(0,8));if(e==="ASCII\0\0\0")return pe(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 Di(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const ca=18761,ua=19789,An={BIG_ENDIAN:ua,LITTLE_ENDIAN:ca,getByteOrder:AS};function AS(t,e){if(t.getUint16(e)===ca)return ca;if(t.getUint16(e)===ua)return ua;throw new Error("Illegal byte order value. Faulty image.")}const h_={isTiffFile:OS,findTiffOffsets:MS};function OS(t){return!!t&&t.byteLength>=4&&DS(t)}function DS(t){const r=t.getUint16(0)===An.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function MS(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const m_={isJpegFile:QS,findJpegOffsets:XS},PS=2,vS=65496,p_=2,rt=4,Ne=2,LS=2,VS=10,qS=18,g_=33,y_=79,b_=18,RS=8,da="ICC_PROFILE\0",w_=rt+da.length,US=w_+1,k_="MPF\0",x_=65472,S_=65474,jS=65476,zS=65499,HS=65501,GS=65498,C_=65504,fa=65505,E_=65506,ZS=65517,WS=65519,YS=65534,KS=65535,T_="JFIF",B_="Exif",N_="http://ns.adobe.com/xap/1.0/\0",I_="http://ns.adobe.com/xmp/extension/\0",F_="Photoshop 3.0";function QS(t){return!!t&&t.byteLength>=PS&&t.getUint16(0)===vS}function XS(t){let e=p_,n,r,o,s,l,a,c,u,d;for(;e+rt+5<=t.byteLength;){if(JS(t,e))n=t.getUint16(e+Ne),r=e+Ne;else if(e3(t,e))n=t.getUint16(e+Ne),o=e+Ne;else if(r3(t,e))n=t.getUint16(e+Ne),s=e+LS;else if(o3(t,e))n=t.getUint16(e+Ne),l=e+VS;else if(i3(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(c3(e,n));else if(l3(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(u3(e,n));else if(d3(t,e))n=t.getUint16(e+Ne),a=e+qS;else if(t3(t,e)){n=t.getUint16(e+Ne);const f=e+b_,_=n-(b_-Ne),h=t.getUint8(e+w_),p=t.getUint8(e+US);u||(u=[]),u.push({offset:f,length:_,chunkNumber:h,chunksTotal:p})}else if(n3(t,e))n=t.getUint16(e+Ne),d=e+RS;else if(f3(t,e))n=t.getUint16(e+Ne);else if(_3(t,e)){e++;continue}else break;e+=Ne+n}return{hasAppMarkers:e>p_,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function JS(t,e){return t.getUint16(e)===x_}function e3(t,e){return t.getUint16(e)===S_}function t3(t,e){const n=da.length;return t.getUint16(e)===E_&&q(t,e+rt,n)===da}function n3(t,e){const n=k_.length;return t.getUint16(e)===E_&&q(t,e+rt,n)===k_}function r3(t,e){const n=T_.length;return t.getUint16(e)===C_&&q(t,e+rt,n)===T_&&t.getUint8(e+rt+n)===0}function o3(t,e){const n=B_.length;return t.getUint16(e)===fa&&q(t,e+rt,n)===B_&&t.getUint8(e+rt+n)===0}function i3(t,e){return t.getUint16(e)===fa&&s3(t,e)}function s3(t,e){const n=N_.length;return q(t,e+rt,n)===N_}function l3(t,e){return t.getUint16(e)===fa&&a3(t,e)}function a3(t,e){const n=I_.length;return q(t,e+rt,n)===I_}function c3(t,e){return{dataOffset:t+g_,length:e-(g_-Ne)}}function u3(t,e){return{dataOffset:t+y_,length:e-(y_-Ne)}}function d3(t,e){const n=F_.length;return t.getUint16(e)===ZS&&q(t,e+rt,n)===F_&&t.getUint8(e+rt+n)===0}function f3(t,e){const n=t.getUint16(e);return n>=C_&&n<=WS||n===YS||n===x_||n===S_||n===jS||n===zS||n===HS||n===GS}function _3(t,e){return t.getUint16(e)===KS}const $_={isPngFile:p3,findPngOffsets:g3},_a=`‰PNG\r
152
152
  
153
- `,Mi=4,ut=4,Cr=0,tn=Mi,ke=Mi+ut,ha="XML:com.adobe.xmp\0",ma="tEXt",On="iTXt",Pi="zTXt",A_="pHYs",O_="tIME",h3="eXIf",m3="iCCP";function p3(t){return!!t&&q(t,0,_a.length)===_a}function g3(t,e){const r={hasAppMarkers:!1};let o=_a.length;for(;o+Mi+ut<=t.byteLength;){if(y3(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(b3(t,o)){const s=C3(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Cr)-(s-(o+ke))}])}else if(w3(t,o,e)){r.hasAppMarkers=!0;const s=q(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Cr),type:s,offset:o+ke})}else if(k3(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&x3(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Cr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=E3(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else S3(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Cr));o+=t.getUint32(o+Cr)+Mi+ut+4}return r}function y3(t,e){return q(t,e+tn,ut)==="IHDR"}function b3(t,e){return q(t,e+tn,ut)===On&&q(t,e+ke,ha.length)===ha}function w3(t,e,n){const r=q(t,e+tn,ut);return r===ma||r===On||r===Pi&&n}function k3(t,e){return q(t,e+tn,ut)===h3}function x3(t,e){return q(t,e+tn,ut)===m3}function S3(t,e){const n=[A_,O_],r=q(t,e+tn,ut);return n.includes(r)}function C3(t,e){e+=ke+ha.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function E3(t,e){const o=xr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function T3(t,e){return t.getUint32(e+4)}function B3(t,e,n,r){const{offsets:s,sizes:l}=N3(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=I3(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=F3(t,s.itemCount,e);return{type:"iloc",items:$3(t,e,s,l,a,c,d,f),length:r}}function N3(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 I3(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function F3(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function $3(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=A3(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=vi(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let _=0;_<f.extentCount;_++){const h={};h.extentIndex=O3(t,e,u,l),u+=r.item.extent.extentIndex,h.extentOffset=vi(t,u,o),u+=r.item.extent.extentOffset,h.extentLength=vi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(h)}c.push(f)}return c}function A3(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function O3(t,e,n,r){if((e===1||e===2)&&r>0)return vi(t,n,r)}function vi(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."),T3(t,e)):0}const D3=1718909296,M3=1768977008,P3=1835365473,v3=1768714083,L3=1768517222,V3=1768842853,q3=1768973167,R3=1668246642,D_=1165519206,pa=1835625829,U3=1970432288;function Li(t,e){const{length:s,contentOffset:l}=j3(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===D3)return eC(t,l,s);if(a===M3)return tC(t,e,l,s);if(a===q3)return nC(t,e,l,s);if(a===R3)return rC(t,l,s);const c=t.getUint8(l);return a===P3?iC(t,e,l+1,s):a===v3?B3(t,c,l+1,s):a===L3?sC(t,e,c,l+1,s):a===V3?aC(t,e,c,l+1,s):{type:void 0,length:s}}function j3(t,e){const l=t.getUint32(e);return z3(l)?{length:t.byteLength-e,contentOffset:e+4+4}:H3(l)&&G3(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function z3(t){return t===0}function H3(t){return t===1}function G3(t,e){return t.getUint32(e+8)===0}function M_(t){{const e={},n=Z3(t);return n?(e.tiffHeaderOffset=W3(t,n),e.xmpChunks=Q3(n),e.iccChunks=J3(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function Z3(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Li(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function W3(t,e){try{const n=Y3(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return K3(t,o)}catch{return}}function Y3(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===D_)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function K3(t,e){return e+4+t.getUint32(e)}function Q3(t){try{const e=X3(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function X3(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function J3(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 eC(t,e,n){return{type:"ftyp",majorBrand:q(t,e,4),length:n}}function tC(t,e,n,r){return{type:"iprp",subBoxes:Vi(t,n,r-(n-e)),length:r}}function nC(t,e,n,r){return{type:"ipco",properties:Vi(t,n,r-(n-e)),length:r}}function rC(t,e,n){return{type:"colr",icc:oC(t,e),length:n}}function oC(t,e){const r=q(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function iC(t,e,n,r){return{type:"meta",subBoxes:Vi(t,n+3,r-(n+3-e)),length:r}}function Vi(t,e,n){const r=[D_,pa],o=[];let s=e;for(;s<e+n;){const l=Li(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function sC(t,e,n,r,o){const{offsets:s}=lC(n,r);return{type:"iinf",itemInfos:Vi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function lC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function aC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=xr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=xr(t,r),r+=l.itemName.length+1,l.itemType===pa?(l.contentType=xr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=xr(t,r),r+=l.contentEncoding.length+1)):l.itemType===U3&&(l.itemUri=xr(t,r),r+=l.itemUri.length+1)),l}const P_={isHeicFile:cC,findHeicOffsets:uC};function cC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Li(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function uC(t){return M_(t)}const v_={isAvifFile:dC,findAvifOffsets:fC};function dC(t){if(!t)return!1;try{const e=Li(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function fC(t){return M_(t)}const L_={isWebpFile:_C,findOffsets:hC};function _C(t){const n="RIFF",o="WEBP";return!!t&&q(t,0,n.length)===n&&q(t,8,o.length)===o}function hC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=q(t,s,4),_=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,q(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:_}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:_,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(_%2===0?_:_+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const V_={isGifFile:gC,findOffsets:yC},mC=6,pC=["GIF87a","GIF89a"];function gC(t){return!!t&&pC.includes(q(t,0,mC))}function yC(){return{gifHeaderOffset:0}}const q_={isXMLFile:bC,findOffsets:wC},R_=0,U_="<?xpacket begin";function bC(t){return!!t&&q(t,R_,U_.length)===U_}function wC(t){const e=[];return e.push({dataOffset:R_,length:t.byteLength}),{xmpChunks:e}}const kC={parseAppMarkers:xC};function xC(t,e){if(h_.isTiffFile(t))return nn(h_.findTiffOffsets(),"tiff","TIFF");if(m_.isJpegFile(t))return nn(m_.findJpegOffsets(t),"jpeg","JPEG");if($_.isPngFile(t))return nn($_.findPngOffsets(t,e),"png","PNG");if(P_.isHeicFile(t))return nn(P_.findHeicOffsets(t),"heic","HEIC");if(v_.isAvifFile(t))return nn(v_.findAvifOffsets(t),"avif","AVIF");if(L_.isWebpFile(t))return nn(L_.findOffsets(t),"webp","WebP");if(V_.isGifFile(t))return nn(V_.findOffsets(t),"gif","GIF");if(q_.isXMLFile(t))return nn(q_.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return U({},t,{fileType:{value:e,description:n}})}const R={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])},j_={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:R.XResolution},283:{name:"YResolution",description:R.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:R.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:{name:"XPTitle",description:go},40092:{name:"XPComment",description:go},40093:{name:"XPAuthor",description:go},40094:{name:"XPKeywords",description:go},40095:{name:"XPSubject",description:go},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:R.LightSource},50779:{name:"CalibrationIlluminant2",description:R.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"};function go(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const SC={33434:{name:"ExposureTime",description:R.ExposureTime},33437:{name:"FNumber",description:R.FNumber},34850:{name:"ExposureProgram",description:R.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=>pe(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:R.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:R.ShutterSpeedValue},37378:{name:"ApertureValue",description:R.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:R.MeteringMode},37384:{name:"LightSource",description:R.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:R.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:aa},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:R.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:R.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:R.CustomRendered},41986:{name:"ExposureMode",description:R.ExposureMode},41987:{name:"WhiteBalance",description:R.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:R.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:R.Contrast},41993:{name:"Saturation",description:R.Saturation},41994:{name:"Sharpness",description:R.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=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const o=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(o.toFixed(5))}`}},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"},CC={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:Di},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Di},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:aa},28:{name:"GPSAreaInformation",description:aa},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},EC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>pe(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},TC={45056:{name:"MPFVersion",description:t=>pe(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},BC={4:{name:"ShotInfo",description:t=>t}},z_=U({},j_,SC),ya="0th",H_="1st",G_="exif",Z_="gps",W_="interoperability",Y_="mpf",K_="canon",rn={[ya]:z_,[H_]:j_,[G_]:z_,[Z_]:CC,[W_]:EC,[Y_]:TC,[K_]:BC},Q_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ba={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},$={getAsciiValue:NC,getByteAt:X_,getAsciiAt:IC,getShortAt:FC,getLongAt:qi,getRationalAt:$C,getUndefinedAt:AC,getSlongAt:wa,getSrationalAt:OC,getIfdPointerAt:DC,typeSizes:Q_,tagTypes:ba,getTypeSize:MC};function NC(t){return t.map(e=>String.fromCharCode(e))}function X_(t,e){return t.getUint8(e)}function IC(t,e){return t.getUint8(e)}function FC(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function qi(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function $C(t,e,n){return[qi(t,e,n),qi(t,e+4,n)]}function AC(t,e){return X_(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function OC(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function DC(t,e,n){return qi(t,e,n)}function MC(t){if(ba[t]===void 0)throw new Error("No such type found.");return Q_[ba[t]]}const PC={1:$.getByteAt,2:$.getAsciiAt,3:$.getShortAt,4:$.getLongAt,5:$.getRationalAt,7:$.getUndefinedAt,9:$.getSlongAt,10:$.getSrationalAt,13:$.getIfdPointerAt};function J_(t,e,n){return e+$.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=$.getTypeSize("SHORT"),a=12,c={},u=vC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=LC(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-$.getTypeSize("LONG")){const d=$.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,H_,n,n+d,o,s))}return c}function vC(t,e,n){return e+$.getTypeSize("SHORT")<=t.byteLength?$.getShortAt(t,e,n):0}function LC(t,e,n,r,o,s){const a=$.getTypeSize("SHORT"),c=a+$.getTypeSize("SHORT"),u=c+$.getTypeSize("LONG"),d=$.getShortAt(t,r,o),f=$.getShortAt(t,r+a,o),_=$.getLongAt(t,r+c,o);let h,p;if($.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if(VC(f,_))p=r+u,h=eh(t,p,f,_,o);else if(p=$.getLongAt(t,r+u,o),qC(t,n,p,f,_)){const w=d===33723;h=eh(t,n+p,f,_,o,w)}else h="<faulty value>";f===$.tagTypes.ASCII&&(h=RC(h),h=UC(h));let m=`undefined-${d}`,g=h;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){m=rn[e][d].name;try{g=rn[e][d].description(h)}catch{g=th(h)}}else f===$.tagTypes.RATIONAL||f===$.tagTypes.SRATIONAL?(m=rn[e][d],g=""+h[0]/h[1]):(m=rn[e][d],g=th(h));return{id:d,name:m,value:h,description:g,__offset:p}}function VC(t,e){return $.typeSizes[t]*e<=$.getTypeSize("LONG")}function eh(t,e,n,r,o,s=!1){let l=[];s&&(r=r*$.typeSizes[n],n=$.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(PC[n](t,e,o)),e+=$.typeSizes[n];return n===$.tagTypes.ASCII?l=$.getAsciiValue(l):l.length===1&&(l=l[0]),l}function qC(t,e,n,r,o){return e+n+$.typeSizes[r]*o<=t.byteLength}function RC(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 UC(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function th(t){return t instanceof Array?t.join(", "):t}const nh="Exif IFD Pointer",rh="GPS Info IFD Pointer",oh="Interoperability IFD Pointer",ih={read:jC};function jC(t,e,n){const r=An.getByteOrder(t,e);let o=zC(t,e,r,n);return o=HC(o,t,e,r,n),o=GC(o,t,e,r,n),o=ZC(o,t,e,r,n),{tags:o,byteOrder:r}}function zC(t,e,n,r){return Dn(t,ya,e,J_(t,e,n),n,r)}function HC(t,e,n,r,o){return t[nh]!==void 0?U(t,Dn(e,G_,n,n+t[nh].value,r,o)):t}function GC(t,e,n,r,o){return t[rh]!==void 0?U(t,Dn(e,Z_,n,n+t[rh].value,r,o)):t}function ZC(t,e,n,r,o){return t[oh]!==void 0?U(t,Dn(e,W_,n,n+t[oh].value,r,o)):t}const WC={read:YC},Er=16;function YC(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,Y_,e,J_(t,e,r),r,n);return KC(t,e,o,r)}function KC(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/Er);s++){o[s]={};const l=yo(n.MPEntry.value,s*Er,$.getTypeSize("LONG"),r);o[s].ImageFlags=QC(l),o[s].ImageFormat=XC(l),o[s].ImageType=JC(l);const a=yo(n.MPEntry.value,s*Er+4,$.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=e4(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=yo(n.MPEntry.value,s*Er+12,$.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=yo(n.MPEntry.value,s*Er+14,$.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),a_(o[s],"base64",function(){return c_(this.image)})}return n.Images=o,n}function yo(t,e,n,r){if(r===An.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function QC(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 XC(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function JC(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 e4(t,e,n,r){return t4(t)?0:yo(e.value,t*Er+8,$.getTypeSize("LONG"),n)+r}function t4(t){return t===0}const n4={read:r4};function r4(t,e){const n=o4(t,e),r=a4(t,e,n);return{"Bits Per Sample":i4(t,e,n),"Image Height":s4(t,e,n),"Image Width":l4(t,e,n),"Color Components":r,Subsampling:r&&c4(t,e,r.value,n)}}function o4(t,e){return $.getShortAt(t,e)}function i4(t,e,n){if(3>n)return;const s=$.getByteAt(t,e+2);return{value:s,description:""+s}}function s4(t,e,n){if(5>n)return;const s=$.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function l4(t,e,n){if(7>n)return;const s=$.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function a4(t,e,n){if(8>n)return;const s=$.getByteAt(t,e+7);return{value:s,description:""+s}}function c4(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([$.getByteAt(t,c),$.getByteAt(t,c+1),$.getByteAt(t,c+2)])}return{value:l,description:l.length>1?u4(l)+d4(l):""}}function u4(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function d4(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 f4={read:_4};function _4(t,e){const n=h4(t,e),r=w4(t,e,n),o=k4(t,e,n),s={"JFIF Version":m4(t,e,n),"Resolution Unit":p4(t,e,n),XResolution:y4(t,e,n),YResolution:b4(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=x4(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function h4(t,e){return $.getShortAt(t,e)}function m4(t,e,n){if(9>n)return;const s=$.getByteAt(t,e+7),l=$.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function p4(t,e,n){if(10>n)return;const s=$.getByteAt(t,e+9);return{value:s,description:g4(s)}}function g4(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function y4(t,e,n){if(12>n)return;const s=$.getShortAt(t,e+10);return{value:s,description:""+s}}function b4(t,e,n){if(14>n)return;const s=$.getShortAt(t,e+12);return{value:s,description:""+s}}function w4(t,e,n){if(15>n)return;const s=$.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function k4(t,e,n){if(16>n)return;const s=$.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function x4(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 on={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:ka},336:{name:"Time Sent",description:xa},346:{name:"Coded Character Set",description:sh,encoding_name:sh},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=>pe(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=pe(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=pe(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:ka},572:{name:"Time Created",description:xa},574:{name:"Digital Creation Date",description:ka},575:{name:"Digital Creation Time",description:xa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=pe(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=pe(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=pe(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(pe(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(pe(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=pe(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 pe(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=pe(t);if(e["ObjectData Preview File Format"]){const o=pe(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][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 ka(t){const e=pe(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=pe(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 sh(t){const e=pe(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 S4={get:C4};function C4(){if(typeof TextDecoder<"u")return TextDecoder}const lh={decode:E4,TAG_HEADER_SIZE:5};function E4(t,e){const n=S4.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(o=>String.fromCharCode(o)).join("");return T4(r)}function T4(t){try{return decodeURIComponent(escape(t))}catch{return t}}const B4=943868237,bo=4,Ri=2,N4=1,I4=2,ah=4,F4=bo+Ri+I4+ah,$4=1028,ch=5,Sa={read:A4};function A4(t,e,n){try{if(Array.isArray(t))return uh(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=O4(t,e);return uh(t,r,o,n)}catch{return{}}}function O4(t,e){for(;e+F4<=t.byteLength;){const n=D4(t,e);if(M4(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+P4(n)}throw new Error("No IPTC NAA resource block.")}function D4(t,e){if(t.getUint32(e,!1)!==B4)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bo+Ri),r=(n%2===0?n+1:n)+N4;return{headerSize:bo+Ri+r+ah,type:t.getUint16(e+bo),size:t.getUint32(e+bo+Ri+r)}}function M4(t){return t.type===$4}function P4(t){return t.size%2!==0?1:0}function uh(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=v4(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=ch+c}return o}function v4(t,e,n,r,o){if(L4(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!on.iptc[a])return{tag:void 0,tagSize:c};const u=V4(t,e+ch,c),d={id:a,name:q4(on.iptc[a],a,u),value:u,description:j4(on.iptc[a],u,n,r)};return G4(a)&&(d.repeatable=!0),Z4(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function L4(t,e){return t.getUint8(e)!==28}function V4(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function q4(t,e,n){return t?R4(t)?t:U4(t)?t.name(n):t.name:`undefined-${e}`}function R4(t){return typeof t=="string"}function U4(t){return typeof t.name=="function"}function j4(t,e,n,r){if(H4(t))try{return t.description(e,n)}catch{}return z4(t,e)?lh.decode(r,e):e}function z4(t,e){return t&&e instanceof Array}function H4(t){return t&&t.description!==void 0}function G4(t){return on.iptc[t]&&on.iptc[t].repeatable}function Z4(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const Ui={"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=>R.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Tr(R.XResolution,t),"tiff:YResolution":t=>Tr(R.YResolution,t),"exif:ApertureValue":t=>Tr(R.ApertureValue,t),"exif:GPSLatitude":fh,"exif:GPSLongitude":fh,"exif:FNumber":t=>Tr(R.FNumber,t),"exif:FocalLength":t=>Tr(R.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>R.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>R.ColorSpace(W4(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return R.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>R.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>R.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>R.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>R.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return dh(t)?R.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>R.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>R.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>R.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>R.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Tr(R.ShutterSpeedValue,t),"exif:WhiteBalance":t=>R.WhiteBalance(parseInt(t,10))};function Tr(t,e){return dh(e)?t(e.split("/")):e}function W4(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function dh(t){return/^-?\d+\/-?\d+$/.test(t)}function fh(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const Y4={get:K4};function K4(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const _h={read:Q4};function Q4(t,e){const n={};if(typeof t=="string")return ji(n,t),n;const[r,o]=X4(t,e),s=ji(n,r);if(o){const l=ji(n,o);!s&&!l&&(delete n._raw,ji(n,Ca(t,e)))}return n}function X4(t,e){if(e.length===0)return[];const n=[Ca(t,e.slice(0,1))];return e.length>1&&n.push(Ca(t,e.slice(1))),n}function Ca(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function ji(t,e){try{const{doc:n,raw:r}=J4(e);t._raw=(t._raw||"")+r;const o=hh(n);return U(t,ph(mh(o,!0))),!0}catch{return!1}}function J4(t){const e=Y4.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:q(t,0,t.byteLength),r=e.parseFromString(eE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function eE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function hh(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return hh(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function mh(t,e=!1){const n=tE(t);return nE(n)?e?{}:rE(n[0]):oE(n)}function tE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function nE(t){return t.length===1&&t[0].nodeName==="#text"}function rE(t){return t.nodeValue}function oE(t){const e={};return t.forEach(n=>{if(iE(n)){const r=sE(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 iE(t){return t.nodeName&&t.nodeName!=="#text"}function sE(t){return{attributes:lE(t),value:mh(t)}}function lE(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 ph(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(o=>{U(e,Ea(o.attributes)),typeof o.value=="object"&&U(e,gh(o.value))})}return e}function Ea(t){const e={};for(const n in t)try{aE(n)&&(e[Hi(n)]={value:t[n],attributes:{},description:Mt(t[n],n)})}catch{}return e}function aE(t){return t!=="rdf:parseType"&&!zi(t)}function zi(t){return t.split(":")[0]==="xmlns"}function Hi(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Mt(t,e=void 0){if(Array.isArray(t)){const n=cE(t);return e&&typeof Ui[e]=="function"?Ui[e](t,n):n}if(typeof t=="object")return uE(t);try{return e&&typeof Ui[e]=="function"?Ui[e](t):decodeURIComponent(escape(t))}catch{return t}}function cE(t){return t.map(e=>e.value!==void 0?Mt(e.value):Mt(e)).join(", ")}function uE(t){const e=[];for(const n in t)e.push(`${dE(n)}: ${Mt(t[n].value)}`);return e.join("; ")}function dE(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 gh(t){const e={};for(const n in t)try{zi(n)||(e[Hi(n)]=fE(t[n],n))}catch{}return e}function fE(t,e){return hE(t)?mE(t,e):_E(t)?{value:"",attributes:{},description:""}:yh(t)?bh(t,e):wh(t)?kh(t,e):xh(t)?Sh(t,e):yE(t)?bE(t,e):Ta(t,e)}function _E(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function hE(t){return Array.isArray(t)}function mE(t,e){return Ta(t[t.length-1],e)}function yh(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 bh(t,e){const n=wo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),U(n,wo(t),pE(t));const r=gE(t);return{value:r,attributes:n,description:Mt(r,e)}}function wo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!zi(n)&&(e[Hi(n)]=t.attributes[n]);return e}function pE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!zi(n)&&(e[Hi(n)]=t.value[n].value);return e}function gE(t){return Eh(t.value["rdf:value"])||t.value["rdf:value"].value}function wh(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function kh(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(U(n.value,Ea(t.value["rdf:Description"].attributes)),U(n.attributes,wo(t)),t=t.value["rdf:Description"]),U(n.value,gh(t.value)),n.description=Mt(n.value,e),n}function xh(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function Sh(t,e){const n=Ea(t.attributes);return{value:n,attributes:{},description:Mt(n,e)}}function yE(t){return Ch(t.value)!==void 0}function Ch(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function bE(t,e){let n=Ch(t.value).value["rdf:li"];const r=wo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(wE(s))}),{value:o,attributes:r,description:Mt(o,e)}}function wE(t){return yh(t)?bh(t):wh(t)?kh(t).value:xh(t)?Sh(t).value:Ta(t)}function Ta(t,e){const n=Eh(t)||ph(t.value);return{value:n,attributes:wo(t),description:Mt(n,e)}}function Eh(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={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},Th=24,Ba={2e3:{name:"PathInformation",description:kE},2999:{name:"ClippingPathName",description(t){const[,e]=l_(t,0);return e}}};function kE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+Th){const s=$.getShortAt(t,o);Na[s]&&(n[s]||(n[s]=Na[s].description),r.push({type:s,path:Na[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const Na={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Gi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Gi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Gi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Gi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:SE}};function Gi(t,e){const r=[];for(let o=0;o<Th;o+=8)r.push(xE(t,e+o));return r}function xE(t,e){const n=Mn(t,e,8);return[Mn(t,e+4,8),n]}function SE(t,e){return[[Mn(t,e,8),Mn(t,e+4,8),Mn(t,e+8,8),Mn(t,e+12,8)],Mn(t,e+16,8)]}function Mn(t,e,n){const r=$.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(u_("1",32-n),2);return o*$S(s.toString(2)+"."+FS(l.toString(2),32-n,"0"),2)}const CE={read:BE},Bh="8BIM",EE=2,TE=4,Nh=Bh.length;function BE(t,e){const n=s_(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=q(n,o,Nh);o+=Nh;const l=$.getShortAt(n,o);o+=EE;const{tagName:a,tagNameSize:c}=NE(n,o);o+=c;const u=$.getLongAt(n,o);if(o+=TE,s===Bh){const d=s_(n.buffer,o,u),f={id:l,value:q(d,0,u)};if(Ba[l]){try{f.description=Ba[l].description(d)}catch{f.description="<no description formatter>"}r[a||Ba[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function NE(t,e){const[n,r]=l_(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const Ih={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"}},Fh={4:{name:"Preferred CMM type",value:(t,e)=>q(t,e,4),description:t=>t!==null?Ia(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)=>q(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)=>q(t,e,4)},20:{name:"Connection Space",value:(t,e)=>q(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>IE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>FE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>q(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)=>q(t,e,4)}};function IE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function FE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ia(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 $h={read:VE},$E=84,AE=128,OE="acsp",DE="desc",ME="mluc",PE="text",vE="sig ",LE=12;function VE(t,e,n){return n&&e[0].compressionMethod!==Oi?qE(t,e):UE(t,e)}function qE(t,e){if(!RE(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return f_(n,e[0].compressionMethod,"utf-8","dataview").then(Ah).catch(()=>({}))}function RE(t){return t===d_}function UE(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=jE(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return Ah(new DataView(r.buffer))}catch{return{}}}function jE(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function zE(t){return t.length<AE+4}function HE(t,e){return t.length<e+LE}function Ah(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<$E)throw new Error("ICC profile too short");const r={},o=Object.keys(Fh);for(let c=0;c<o.length;c++){const u=o[c],d=Fh[u],f=d.value(t,parseInt(u,10));let _=f;d.description&&(_=d.description(f)),r[d.name]={value:f,description:_}}if(Zi(e.slice(36,40))!==OE)throw new Error("ICC profile: missing signature");if(zE(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(HE(e,a))return r;const u=q(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const _=q(t,d,4);if(_===DE){const h=t.getUint32(d+8);if(h>f)return r;const p=Zi(e.slice(d+12,d+h+11));ko(r,u,p)}else if(_===ME){const h=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let w=0;w<h;w++){const x=q(t,m+0,2),C=q(t,m+2,2),S=t.getUint32(m+4),E=t.getUint32(m+8),y=NS(t,d+E,S);g.push({languageCode:x,countryCode:C,text:y}),m+=p}if(h===1)ko(r,u,g[0].text);else{const w={};for(let x=0;x<g.length;x++)w[`${g[x].languageCode}-${g[x].countryCode}`]=g[x].text;ko(r,u,w)}}else if(_===PE){const h=Zi(e.slice(d+8,d+f-7));ko(r,u,h)}else if(_===vE){const h=Zi(e.slice(d+8,d+12));ko(r,u,h)}a=a+12}return r}function Zi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ko(t,e,n){Ih[e]?t[Ih[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Wi=27,GE={read:ZE,SHOT_INFO_AUTO_ROTATE:Wi};function ZE(t,e,n,r,o){let s=Dn(t,K_,e,e+n,r,o);return s.ShotInfo&&(s=U({},s,WE(s.ShotInfo.value)),delete s.ShotInfo),s}function WE(t){const e={};return t[Wi]!==void 0&&(e.AutoRotate={value:t[Wi],description:YE(t[Wi])}),e}function YE(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const KE={read:QE};function QE(t,e){return{"Image Width":XE(t,e),"Image Height":JE(t,e),"Bit Depth":eT(t,e),"Color Type":tT(t,e),Compression:nT(t,e),Filter:rT(t,e),Interlace:oT(t,e)}}function XE(t,e){if(e+0+4>t.byteLength)return;const o=$.getLongAt(t,e);return{value:o,description:`${o}px`}}function JE(t,e){if(e+4+4>t.byteLength)return;const o=$.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function eT(t,e){if(e+8+1>t.byteLength)return;const o=$.getByteAt(t,e+8);return{value:o,description:`${o}`}}function tT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=$.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function nT(t,e){if(e+10+1>t.byteLength)return;const o=$.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function rT(t,e){if(e+11+1>t.byteLength)return;const o=$.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function oT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=$.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const iT={read:uT},Fa="STATE_KEYWORD",$a="STATE_COMPRESSION",Aa="STATE_LANG",sT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",lT=1,aT=1,cT=6;function uT(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=dT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:_,description:h})=>{try{if(__.USE_EXIF&&Dh(f,_))return{__exif:ih.read(Ph(_),cT,r).tags};if(__.USE_IPTC&&Mh(f,_))return{__iptc:Sa.read(Ph(_),0,r)};if(f&&!Dh(f,_)&&!Mh(f,_))return{[f]:{value:_,description:h}}}catch{}return{}}));else{const{name:f,value:_,description:h}=d;f&&(o[f]={value:_,description:h})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function dT(t,e,n,r,o){const s=[],l=[];let a,c=Fa,u=Oi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===$a){u=fT({type:r,dataView:t,offset:e+f}),r===On&&(f+=lT),c=Oh(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const _=t.getUint8(e+f);_===0?c=Oh(r,c):c===Fa?s.push(_):c===Aa&&l.push(_)}if(u!==Oi&&!o)return{};const d=f_(a,u,_T(r));return d instanceof Promise?d.then(f=>Da(f,r,l,s)).catch(()=>Da("<text using unknown compression>".split(""),r,l,s)):Da(d,r,l,s)}function fT({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===aT)return e.getUint8(n+1)}else if(t===Pi)return e.getUint8(n);return Oi}function Oh(t,e){return e===Fa&&[On,Pi].includes(t)?$a:e===$a?t===On?Aa:Oa:e===Aa?sT:Oa}function _T(t){return t===ma||t===Pi?"latin1":"utf-8"}function Da(t,e,n,r){const o=mT(t);return{name:hT(e,n,r),value:o,description:e===On?pT(t):o}}function hT(t,e,n){const r=Sr(n);if(t===ma||e.length===0)return r;const o=Sr(e);return`${r} (${o})`}function mT(t){return t instanceof DataView?q(t,0,t.byteLength):t}function pT(t){return lh.decode("UTF-8",t)}function Dh(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function Mh(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function Ph(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return gT(e[2].replace(/\n/g,""))}function gT(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 yT={read:bT};function bT(t,e){const n={};for(let r=0;r<e.length;r++){const o=$.getLongAt(t,e[r]+Cr),s=q(t,e[r]+tn,ut);s===A_?(n["Pixels Per Unit X"]=wT(t,e[r],o),n["Pixels Per Unit Y"]=kT(t,e[r],o),n["Pixel Units"]=xT(t,e[r],o)):s===O_&&(n["Modify Date"]=ST(t,e[r],o))}return n}function wT(t,e,n){if(!Yi(t,e,n,0,4))return;const s=$.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function kT(t,e,n){if(!Yi(t,e,n,4,4))return;const s=$.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function xT(t,e,n){if(!Yi(t,e,n,8,1))return;const s=$.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function ST(t,e,n){if(!Yi(t,e,n,0,7))return;const o=$.getShortAt(t,e+ke),s=$.getByteAt(t,e+ke+2),l=$.getByteAt(t,e+ke+3),a=$.getByteAt(t,e+ke+4),c=$.getByteAt(t,e+ke+5),u=$.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Br(o,4)}-${Br(s,2)}-${Br(l,2)} ${Br(a,2)}:${Br(c,2)}:${Br(u,2)}`}}function Yi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Br(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const CT={read:BT},ET=4,TT=7;function BT(t,e){const n={},r=$.getByteAt(t,e);return n.Alpha=NT(r),n.Animation=IT(r),n.ImageWidth=vh(t,e+ET),n.ImageHeight=vh(t,e+TT),n}function NT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function IT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function vh(t,e){const n=$.getByteAt(t,e)+256*$.getByteAt(t,e+1)+65536*$.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const FT={read:$T};function $T(t){return{"GIF Version":AT(t),"Image Width":OT(t),"Image Height":DT(t),"Global Color Map":MT(t),"Bits Per Pixel":vT(t),"Color Resolution Depth":PT(t)}}function AT(t){if(6>t.byteLength)return;const r=q(t,3,3);return{value:r,description:r}}function OT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function DT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function MT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function PT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function vT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const LT=[6,7,99],VT={get:qT};function qT(t,e,n){if(RT(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),a_(e,"base64",function(){return c_(this.image)})}return e}function RT(t){return t&&(t.Compression===void 0||LT.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function Lh(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}Lh.prototype=new Error;const Vh={MetadataMissingError:Lh},UT={load:jT,loadView:qh,errors:Vh};function jT(t,e={}){return zT(t)?(e.async=!0,HT(t,e).then(n=>Ma(n,e))):XT(t)?(e.async=!0,JT(t).then(n=>Ma(n,e))):Ma(t,e)}function zT(t){return typeof t=="string"}function HT(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?GT(t,e):ZT(t,e):YT(t)?Promise.resolve(IS(t)):KT(t,e)}function GT(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 ZT(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),WT(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function WT(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function YT(t){return/^data:[^;,]*(;base64)?,/.test(t)}function KT(t,{length:e}={}){return new Promise((n,r)=>{const o=QT();o.open(t,(s,l)=>{s?r(s):o.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};o.read(l,f,_=>{_?r(_):o.close(l,h=>{h&&console.warn(`Could not close file ${t}:`,h),n(d)})})}})})})}function QT(){try{return __non_webpack_require__("fs")}catch{return}}function XT(t){return typeof File<"u"&&t instanceof File}function JT(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ma(t,e){return e8(t)&&(t=new Uint8Array(t).buffer),qh(t8(t),e)}function e8(t){try{return Buffer.isBuffer(t)}catch{return!1}}function t8(t){try{return new DataView(t)}catch{return new i_(t)}}function qh(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:_,iccChunks:h,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:w,vp8xChunkOffset:x,gifHeaderOffset:C}=kC.parseAppMarkers(t,n);if(n8(c)){o=!0;const b=n4.read(t,c);e?s.file=b:s=U({},s,b)}if(r8(u)){o=!0;const b=f4.read(t,u);e?s.jfif=b:s=U({},s,b)}if(o8(d)){o=!0;const{tags:b,byteOrder:T}=ih.read(t,d,r);if(b.Thumbnail&&(s.Thumbnail=b.Thumbnail,delete b.Thumbnail),e?(s.exif=b,i8(s)):s=U({},s,b),b["IPTC-NAA"]&&!Rh(f)){const B=Sa.read(b["IPTC-NAA"].value,0,r);e?s.iptc=B:s=U({},s,B)}if(b.ApplicationNotes&&!Uh(_)){const B=_h.read(Sr(b.ApplicationNotes.value));e?s.xmp=B:(delete B._raw,s=U({},s,B))}if(b.ImageSourceData){const B=CE.read(b.PhotoshopSettings.value,r);e?s.photoshop=B:s=U({},s,B)}if(b.ICC_Profile&&!jh(h)){const B=$h.read(b.ICC_Profile.value,[{offset:0,length:b.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=B:s=U({},s,B)}if(s8(b)){const B=GE.read(t,d,b.MakerNote.__offset,T,r);e?s.makerNotes=B:s=U({},s,B)}b.MakerNote&&delete b.MakerNote.__offset}if(Rh(f)){o=!0;const b=Sa.read(t,f,r);e?s.iptc=b:s=U({},s,b)}if(Uh(_)){o=!0;const b=_h.read(t,_);e?s.xmp=b:(delete b._raw,s=U({},s,b))}if(jh(h)){o=!0;const b=$h.read(t,h,n);b instanceof Promise?l.push(b.then(E)):E(b)}if(l8(p)){o=!0;const b=WC.read(t,p,r);e?s.mpf=b:s=U({},s,b)}if(a8(m)){o=!0;const b=KE.read(t,m);e?(s.png=s.png?U({},s.png,b):b,s.pngFile=b):s=U({},s,b)}if(c8(g)){o=!0;const{readTags:b,readTagsPromise:T}=iT.read(t,g,n,r);y(b),T&&l.push(T.then(B=>B.forEach(y)))}if(u8(w)){o=!0;const b=yT.read(t,w);e?s.png=s.png?U({},s.png,b):b:s=U({},s,b)}if(d8(x)){o=!0;const b=CT.read(t,x);e?s.riff=s.riff?U({},s.riff,b):b:s=U({},s,b)}if(f8(C)){o=!0;const b=FT.read(t,C);e?s.gif=s.gif?U({},s.gif,b):b:s=U({},s,b)}const S=VT.get(t,s.Thumbnail,d);if(S?(o=!0,s.Thumbnail=S):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new Vh.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function E(b){e?s.icc=b:s=U({},s,b)}function y(b){if(e){for(const T of["exif","iptc"]){const B=`__${T}`;b[B]&&(s[T]=s[T]?U({},s.exif,b[B]):b[B],delete b[B])}s.png=s.png?U({},s.png,b):b,s.pngText=s.pngText?U({},s.png,b):b}else s=U({},s,b.__exif?b.__exif:{},b.__iptc?b.__iptc:{},b),delete s.__exif,delete s.__iptc}}function n8(t){return t!==void 0}function r8(t){return t!==void 0}function o8(t){return t!==void 0}function i8(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Di(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=Di(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 Rh(t){return t!==void 0}function Uh(t){return Array.isArray(t)&&t.length>0}function jh(t){return Array.isArray(t)&&t.length>0}function s8(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function l8(t){return t!==void 0}function a8(t){return t!==void 0}function c8(t){return t!==void 0}function u8(t){return t!==void 0}function d8(t){return t!==void 0}function f8(t){return t!==void 0}async function zh(t,e=null){if(t.location)return t.location;try{const n=await UT.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=Ed();if(e&&setTimeout(()=>{!r.value&&e&&qe.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class xo{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,refreshFile:null,...re.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}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=ee.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})}return this}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 zh(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:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ie(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!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,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ie(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Gr(1e3),n=await this.refreshFile(n)}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 o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){qe.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Ki=i.ref([]),Qi=i.ref([]);function _8(t){Ki.value=[...Ki.value,t]}function h8(t,e,n){Qi.value.push({id:n,name:t,callback:e})}function m8(t){Qi.value=Qi.value.filter(e=>e.id!==t)}function Hh(t,e,n){for(let r of Ki.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Qi.value)o.name===r.name&&o.callback(n)}function Gh(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function p8(t){Ki.value=t,window.addEventListener("keydown",e=>{Hh("keydown",Gh(e),e)}),window.addEventListener("keyup",e=>{Hh("keyup",Gh(e),e)})}function Zh(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new xo(f.target.files,t).prepare().onProgress(({file:_})=>{_&&s(_)}).onComplete(({file:_,uploadedFile:h})=>{_&&s(_,h)}).onError(({file:_,error:h})=>{console.error("Failed to upload",_,h),qe.error(`Failed to upload ${_.name}: ${h}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,_=null){const h=e.value.findIndex(p=>p.id===f.id);h!==-1&&e.value.splice(h,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(h=>h.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 _;o({target:{files:(_=f.dataTransfer)==null?void 0:_.files}})},onFilesSelected:o,uploadedFiles:e}}const Oe={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=re.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t+JSON.stringify(e.params||""),r=Date.now();if(n){const a=new AbortController,c=Oe.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Oe.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let o=null;try{o=await fetch(Oe.url(t),e)}catch(a){if(e.ignoreAbort&&(a+"").match(/Request was aborted/))return{abort:!0};throw a}if(g8(o),n){if(r<Oe.abortControllers[n].timestamp)return{abort:!0};delete Oe.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=re.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Oe.call(t,e),await Gr(n);while(!r(o));return o},async get(t,e){var n;return await Oe.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=re.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var r;return await Oe.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(r=re.value.request)==null?void 0:r.headers,...n==null?void 0:n.headers}})}};function g8(t){const e=re.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 y8(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function Wh(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function b8(t,e){return{async list(n,r){r={...r,ignoreAbort:!0};const o=await Oe.post(`${t}/list`,n,r);return o.data&&(o.data=fd(o.data)),o},summary(n,r){return r={...r,ignoreAbort:!0},Oe.post(`${t}/summary`,{filter:n},r)},async details(n,r,o){o={...o,ignoreAbort:!0},r&&(o.params={fields:r});const s=await Oe.get(`${t}/${n.id}/details`,o);return ie(s)},fieldOptions(n){return Oe.get(`${t}/field-options`,n)},async applyAction(n,r,o,s){var a,c;s={...s,ignoreAbort:!0,headers:{...s==null?void 0:s.headers,"X-Timestamp":Date.now()}},o=o||{};const l=await Oe.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o},s);return l.item&&(l.item=ie(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=ie(l.result)),l},batchAction(n,r,o,s){return s={...s,ignoreAbort:!0},Oe.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return r_(`${t}/export`,r||"export.csv",{filter:n})},...e}}function Yh(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new xo((f=d.target)==null?void 0:f.files[0],t).prepare().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))}).onError(({file:_,error:h})=>{console.error("Failed to upload",_,h),qe.error(`Failed to upload ${_.name}: ${h}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.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:s,onFileSelected:o,uploadedFile:e}}function vt(t,e){localStorage.setItem(t,JSON.stringify(e))}function Ct(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function w8(t,e=""){const n=Pa(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Pa(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Pa(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const k8={version:"0.4.49"},{version:Kh}=k8;function x8(){console.log(`Installing Danx UI ${Kh}... Nothing to do really.`)}k.ActionButton=Eo,k.ActionForm=Sc,k.ActionFormDialog=G0,k.ActionMenu=Xs,k.ActionTable=ud,k.ActionTableColumn=Gu,k.ActionTableHeaderColumn=Ku,k.ActionTableLayout=Iw,k.ActionToolbar=dd,k.ActionVnode=sy,k.AddressFormat=Kg,k.AuditHistoryItem=qw,k.AuditHistoryItemValue=nl,k.AutoHeightTransition=gy,k.BadgeTab=dy,k.BooleanField=rs,k.CaretDownIcon=Wa,k.CollapsableFiltersSidebar=rd,k.CollapsableSidebar=Ec,k.ColumnListItem=el,k.ColumnSettingsDialog=Hb,k.ConfirmActionDialog=sc,k.ConfirmDialog=Tt,k.ConfirmPasswordField=fp,k.ContentDrawer=us,k.CreateNewWithNameDialog=lc,k.DateField=is,k.DateRangeField=ss,k.DateTime=D,k.DateTimeField=Sp,k.DateTimePicker=ls,k.DragAndDrop=Js,k.DragHandleDotsIcon=Ya,k.DragHandleIcon=Ka,k.EditOnClickTextField=Np,k.EditableDiv=uc,k.EmptyTableState=ad,k.ExportButton=Ga,k.FieldLabel=_t,k.FilePreview=Fr,k.FileUpload=xo,k.FileUploadButton=Fp,k.FilterIcon=Qa,k.FilterItem=td,k.FilterList=nd,k.FilterListToggle=od,k.FilterToolbarLayout=lw,k.FilterableField=tl,k.FlashMessages=qe,k.FlatListFormat=Qg,k.FullScreenCarouselDialog=ac,k.FullScreenDialog=np,k.GpsCoordinatesFormat=ey,k.HandleDraggable=Zu,k.IconWithTextFormat=ny,k.ImageIcon=ts,k.IndicatorTab=hy,k.InfoDialog=cc,k.InlineDateTimeField=Op,k.InputDialog=op,k.IntegerField=fc,k.InteractiveTooltip=ay,k.LabelPillWidget=Mb,k.LabelValueBlock=Vp,k.LabelValueFormat=oy,k.LabelValuePillWidget=Lb,k.LabeledInput=os,k.ListDragAndDrop=Wu,k.ListItemDraggable=Yu,k.ListTransition=Ic,k.MaxHeightTransition=yy,k.MaxLengthCounter=dc,k.MultiFileField=_c,k.MultiKeywordField=hc,k.NavigationMenu=jw,k.NewPasswordField=Up,k.NumberField=Ir,k.NumberRangeField=Io,k.PanelsDrawer=ld,k.PanelsDrawerPanels=id,k.PanelsDrawerTabs=sd,k.PdfIcon=Xa,k.PercentIcon=Ja,k.PopoverMenu=Nc,k.PreviousNextControls=rc,k.RefreshButton=Za,k.RenderComponent=Bc,k.RenderVnode=un,k.RenderedForm=cs,k.RenderedFormDialog=Ag,k.SERVER_TZ=na,k.SaveStateIndicator=xc,k.SelectDrawer=Zp,k.SelectField=vn,k.SelectOrCreateField=eg,k.SelectWithChildrenField=mc,k.SelectionMenuField=Xp,k.ShowHideButton=To,k.SingleFileField=pc,k.SkipNextIcon=ec,k.SkipPreviousIcon=tc,k.SlideTransition=by,k.SliderNumberField=lg,k.StaggeredListTransition=Db,k.SvgImg=Cc,k.TableSummaryRow=cd,k.TextField=an,k.TitleColumnFormat=Qu,k.TrashIcon=Bo,k.VisibleColumnsToggleButtons=Kb,k.WarningIcon=nc,k.WysiwygField=kc,k.XIcon=No,k.activeActionVnode=kn,k.addHotkey=_8,k.applyCssVars=w8,k.autoRefreshObject=md,k.buildCssVars=Pa,k.centerTruncate=kS,k.cloneDeep=Yw,k.configure=tm,k.danxOptions=re,k.dbDateTime=oa,k.diffInDays=TS,k.download=Ai,k.downloadFile=r_,k.downloadFileResponse=o_,k.fBoolean=J1,k.fCurrency=Fi,k.fCurrencyNoCents=yS,k.fDate=St,k.fDateTime=Ii,k.fDuration=gS,k.fJSON=n_,k.fLocalizedDateTime=kr,k.fMarkdownCode=ES,k.fNameOrCount=t_,k.fNumber=Dt,k.fPercent=e_,k.fPhone=xS,k.fQDate=hS,k.fSecondsToDuration=Q1,k.fSecondsToTime=pS,k.fShortCurrency=bS,k.fShortNumber=X1,k.fShortSize=wS,k.fetchResourceListWithSelected=y8,k.getFilterFromUrl=ed,k.getItem=Ct,k.getResponseHeader=la,k.getUrlParam=Wh,k.incrementName=kd,k.install=x8,k.isJSON=xd,k.latestCallOnly=sl,k.listen=h8,k.localizedDateTime=ra,k.mapSortBy=Ju,k.metersToMiles=Xw,k.milesToMeters=Jw,k.minmax=Qw,k.notify=zw,k.parseCoords=e2,k.parseDateTime=Ot,k.parseGenericDateTime=K1,k.parseMarkdownCode=$i,k.parseMarkdownJSON=SS,k.parseMarkdownYAML=CS,k.parseQDate=ia,k.parseQDateTime=sa,k.parseSqlDateTime=mS,k.pollUntil=Kw,k.refreshApplication=Ww,k.registerHotkeys=p8,k.registerStickyScrolling=Xu,k.remoteDateTime=Y1,k.remove=Hr,k.replace=ol,k.request=Oe,k.resolveFileLocation=zh,k.setItem=vt,k.sleep=Gr,k.stopAutoRefreshObject=pd,k.storeObject=ie,k.storeObjects=fd,k.uniqueBy=wd,k.unlisten=m8,k.useActionRoutes=b8,k.useActions=Gw,k.useCompatibility=Ed,k.useControls=Qb,k.useDebounceFn=ln,k.useMultiFileUpload=Zh,k.useSingleFileUpload=Yh,k.useTableColumns=Fw,k.version=Kh,k.waitForRef=il,k.withDefaultActions=Zw,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
153
+ `,Mi=4,ut=4,Cr=0,tn=Mi,ke=Mi+ut,ha="XML:com.adobe.xmp\0",ma="tEXt",On="iTXt",Pi="zTXt",A_="pHYs",O_="tIME",h3="eXIf",m3="iCCP";function p3(t){return!!t&&q(t,0,_a.length)===_a}function g3(t,e){const r={hasAppMarkers:!1};let o=_a.length;for(;o+Mi+ut<=t.byteLength;){if(y3(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(b3(t,o)){const s=C3(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Cr)-(s-(o+ke))}])}else if(w3(t,o,e)){r.hasAppMarkers=!0;const s=q(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Cr),type:s,offset:o+ke})}else if(k3(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&x3(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Cr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=E3(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else S3(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Cr));o+=t.getUint32(o+Cr)+Mi+ut+4}return r}function y3(t,e){return q(t,e+tn,ut)==="IHDR"}function b3(t,e){return q(t,e+tn,ut)===On&&q(t,e+ke,ha.length)===ha}function w3(t,e,n){const r=q(t,e+tn,ut);return r===ma||r===On||r===Pi&&n}function k3(t,e){return q(t,e+tn,ut)===h3}function x3(t,e){return q(t,e+tn,ut)===m3}function S3(t,e){const n=[A_,O_],r=q(t,e+tn,ut);return n.includes(r)}function C3(t,e){e+=ke+ha.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function E3(t,e){const o=xr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function T3(t,e){return t.getUint32(e+4)}function B3(t,e,n,r){const{offsets:s,sizes:l}=N3(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=I3(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=F3(t,s.itemCount,e);return{type:"iloc",items:$3(t,e,s,l,a,c,d,f),length:r}}function N3(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 I3(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function F3(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function $3(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=A3(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=vi(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let _=0;_<f.extentCount;_++){const h={};h.extentIndex=O3(t,e,u,l),u+=r.item.extent.extentIndex,h.extentOffset=vi(t,u,o),u+=r.item.extent.extentOffset,h.extentLength=vi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(h)}c.push(f)}return c}function A3(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function O3(t,e,n,r){if((e===1||e===2)&&r>0)return vi(t,n,r)}function vi(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."),T3(t,e)):0}const D3=1718909296,M3=1768977008,P3=1835365473,v3=1768714083,L3=1768517222,V3=1768842853,q3=1768973167,R3=1668246642,D_=1165519206,pa=1835625829,U3=1970432288;function Li(t,e){const{length:s,contentOffset:l}=j3(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===D3)return eC(t,l,s);if(a===M3)return tC(t,e,l,s);if(a===q3)return nC(t,e,l,s);if(a===R3)return rC(t,l,s);const c=t.getUint8(l);return a===P3?iC(t,e,l+1,s):a===v3?B3(t,c,l+1,s):a===L3?sC(t,e,c,l+1,s):a===V3?aC(t,e,c,l+1,s):{type:void 0,length:s}}function j3(t,e){const l=t.getUint32(e);return z3(l)?{length:t.byteLength-e,contentOffset:e+4+4}:H3(l)&&G3(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function z3(t){return t===0}function H3(t){return t===1}function G3(t,e){return t.getUint32(e+8)===0}function M_(t){{const e={},n=Z3(t);return n?(e.tiffHeaderOffset=W3(t,n),e.xmpChunks=Q3(n),e.iccChunks=J3(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function Z3(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Li(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function W3(t,e){try{const n=Y3(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return K3(t,o)}catch{return}}function Y3(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===D_)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function K3(t,e){return e+4+t.getUint32(e)}function Q3(t){try{const e=X3(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function X3(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function J3(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 eC(t,e,n){return{type:"ftyp",majorBrand:q(t,e,4),length:n}}function tC(t,e,n,r){return{type:"iprp",subBoxes:Vi(t,n,r-(n-e)),length:r}}function nC(t,e,n,r){return{type:"ipco",properties:Vi(t,n,r-(n-e)),length:r}}function rC(t,e,n){return{type:"colr",icc:oC(t,e),length:n}}function oC(t,e){const r=q(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function iC(t,e,n,r){return{type:"meta",subBoxes:Vi(t,n+3,r-(n+3-e)),length:r}}function Vi(t,e,n){const r=[D_,pa],o=[];let s=e;for(;s<e+n;){const l=Li(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function sC(t,e,n,r,o){const{offsets:s}=lC(n,r);return{type:"iinf",itemInfos:Vi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function lC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function aC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=xr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=xr(t,r),r+=l.itemName.length+1,l.itemType===pa?(l.contentType=xr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=xr(t,r),r+=l.contentEncoding.length+1)):l.itemType===U3&&(l.itemUri=xr(t,r),r+=l.itemUri.length+1)),l}const P_={isHeicFile:cC,findHeicOffsets:uC};function cC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Li(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function uC(t){return M_(t)}const v_={isAvifFile:dC,findAvifOffsets:fC};function dC(t){if(!t)return!1;try{const e=Li(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function fC(t){return M_(t)}const L_={isWebpFile:_C,findOffsets:hC};function _C(t){const n="RIFF",o="WEBP";return!!t&&q(t,0,n.length)===n&&q(t,8,o.length)===o}function hC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=q(t,s,4),_=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,q(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:_}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:_,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(_%2===0?_:_+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const V_={isGifFile:gC,findOffsets:yC},mC=6,pC=["GIF87a","GIF89a"];function gC(t){return!!t&&pC.includes(q(t,0,mC))}function yC(){return{gifHeaderOffset:0}}const q_={isXMLFile:bC,findOffsets:wC},R_=0,U_="<?xpacket begin";function bC(t){return!!t&&q(t,R_,U_.length)===U_}function wC(t){const e=[];return e.push({dataOffset:R_,length:t.byteLength}),{xmpChunks:e}}const kC={parseAppMarkers:xC};function xC(t,e){if(h_.isTiffFile(t))return nn(h_.findTiffOffsets(),"tiff","TIFF");if(m_.isJpegFile(t))return nn(m_.findJpegOffsets(t),"jpeg","JPEG");if($_.isPngFile(t))return nn($_.findPngOffsets(t,e),"png","PNG");if(P_.isHeicFile(t))return nn(P_.findHeicOffsets(t),"heic","HEIC");if(v_.isAvifFile(t))return nn(v_.findAvifOffsets(t),"avif","AVIF");if(L_.isWebpFile(t))return nn(L_.findOffsets(t),"webp","WebP");if(V_.isGifFile(t))return nn(V_.findOffsets(t),"gif","GIF");if(q_.isXMLFile(t))return nn(q_.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return U({},t,{fileType:{value:e,description:n}})}const R={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])},j_={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:R.XResolution},283:{name:"YResolution",description:R.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:R.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:{name:"XPTitle",description:go},40092:{name:"XPComment",description:go},40093:{name:"XPAuthor",description:go},40094:{name:"XPKeywords",description:go},40095:{name:"XPSubject",description:go},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:R.LightSource},50779:{name:"CalibrationIlluminant2",description:R.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"};function go(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const SC={33434:{name:"ExposureTime",description:R.ExposureTime},33437:{name:"FNumber",description:R.FNumber},34850:{name:"ExposureProgram",description:R.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=>pe(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:R.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:R.ShutterSpeedValue},37378:{name:"ApertureValue",description:R.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:R.MeteringMode},37384:{name:"LightSource",description:R.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:R.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:aa},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:R.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:R.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:R.CustomRendered},41986:{name:"ExposureMode",description:R.ExposureMode},41987:{name:"WhiteBalance",description:R.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:R.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:R.Contrast},41993:{name:"Saturation",description:R.Saturation},41994:{name:"Sharpness",description:R.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=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const o=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(o.toFixed(5))}`}},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"},CC={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:Di},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Di},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:aa},28:{name:"GPSAreaInformation",description:aa},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},EC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>pe(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},TC={45056:{name:"MPFVersion",description:t=>pe(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},BC={4:{name:"ShotInfo",description:t=>t}},z_=U({},j_,SC),ya="0th",H_="1st",G_="exif",Z_="gps",W_="interoperability",Y_="mpf",K_="canon",rn={[ya]:z_,[H_]:j_,[G_]:z_,[Z_]:CC,[W_]:EC,[Y_]:TC,[K_]:BC},Q_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ba={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},$={getAsciiValue:NC,getByteAt:X_,getAsciiAt:IC,getShortAt:FC,getLongAt:qi,getRationalAt:$C,getUndefinedAt:AC,getSlongAt:wa,getSrationalAt:OC,getIfdPointerAt:DC,typeSizes:Q_,tagTypes:ba,getTypeSize:MC};function NC(t){return t.map(e=>String.fromCharCode(e))}function X_(t,e){return t.getUint8(e)}function IC(t,e){return t.getUint8(e)}function FC(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function qi(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function $C(t,e,n){return[qi(t,e,n),qi(t,e+4,n)]}function AC(t,e){return X_(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function OC(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function DC(t,e,n){return qi(t,e,n)}function MC(t){if(ba[t]===void 0)throw new Error("No such type found.");return Q_[ba[t]]}const PC={1:$.getByteAt,2:$.getAsciiAt,3:$.getShortAt,4:$.getLongAt,5:$.getRationalAt,7:$.getUndefinedAt,9:$.getSlongAt,10:$.getSrationalAt,13:$.getIfdPointerAt};function J_(t,e,n){return e+$.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=$.getTypeSize("SHORT"),a=12,c={},u=vC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=LC(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-$.getTypeSize("LONG")){const d=$.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,H_,n,n+d,o,s))}return c}function vC(t,e,n){return e+$.getTypeSize("SHORT")<=t.byteLength?$.getShortAt(t,e,n):0}function LC(t,e,n,r,o,s){const a=$.getTypeSize("SHORT"),c=a+$.getTypeSize("SHORT"),u=c+$.getTypeSize("LONG"),d=$.getShortAt(t,r,o),f=$.getShortAt(t,r+a,o),_=$.getLongAt(t,r+c,o);let h,p;if($.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if(VC(f,_))p=r+u,h=eh(t,p,f,_,o);else if(p=$.getLongAt(t,r+u,o),qC(t,n,p,f,_)){const w=d===33723;h=eh(t,n+p,f,_,o,w)}else h="<faulty value>";f===$.tagTypes.ASCII&&(h=RC(h),h=UC(h));let m=`undefined-${d}`,g=h;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){m=rn[e][d].name;try{g=rn[e][d].description(h)}catch{g=th(h)}}else f===$.tagTypes.RATIONAL||f===$.tagTypes.SRATIONAL?(m=rn[e][d],g=""+h[0]/h[1]):(m=rn[e][d],g=th(h));return{id:d,name:m,value:h,description:g,__offset:p}}function VC(t,e){return $.typeSizes[t]*e<=$.getTypeSize("LONG")}function eh(t,e,n,r,o,s=!1){let l=[];s&&(r=r*$.typeSizes[n],n=$.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(PC[n](t,e,o)),e+=$.typeSizes[n];return n===$.tagTypes.ASCII?l=$.getAsciiValue(l):l.length===1&&(l=l[0]),l}function qC(t,e,n,r,o){return e+n+$.typeSizes[r]*o<=t.byteLength}function RC(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 UC(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function th(t){return t instanceof Array?t.join(", "):t}const nh="Exif IFD Pointer",rh="GPS Info IFD Pointer",oh="Interoperability IFD Pointer",ih={read:jC};function jC(t,e,n){const r=An.getByteOrder(t,e);let o=zC(t,e,r,n);return o=HC(o,t,e,r,n),o=GC(o,t,e,r,n),o=ZC(o,t,e,r,n),{tags:o,byteOrder:r}}function zC(t,e,n,r){return Dn(t,ya,e,J_(t,e,n),n,r)}function HC(t,e,n,r,o){return t[nh]!==void 0?U(t,Dn(e,G_,n,n+t[nh].value,r,o)):t}function GC(t,e,n,r,o){return t[rh]!==void 0?U(t,Dn(e,Z_,n,n+t[rh].value,r,o)):t}function ZC(t,e,n,r,o){return t[oh]!==void 0?U(t,Dn(e,W_,n,n+t[oh].value,r,o)):t}const WC={read:YC},Er=16;function YC(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,Y_,e,J_(t,e,r),r,n);return KC(t,e,o,r)}function KC(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/Er);s++){o[s]={};const l=yo(n.MPEntry.value,s*Er,$.getTypeSize("LONG"),r);o[s].ImageFlags=QC(l),o[s].ImageFormat=XC(l),o[s].ImageType=JC(l);const a=yo(n.MPEntry.value,s*Er+4,$.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=e4(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=yo(n.MPEntry.value,s*Er+12,$.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=yo(n.MPEntry.value,s*Er+14,$.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),a_(o[s],"base64",function(){return c_(this.image)})}return n.Images=o,n}function yo(t,e,n,r){if(r===An.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function QC(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 XC(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function JC(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 e4(t,e,n,r){return t4(t)?0:yo(e.value,t*Er+8,$.getTypeSize("LONG"),n)+r}function t4(t){return t===0}const n4={read:r4};function r4(t,e){const n=o4(t,e),r=a4(t,e,n);return{"Bits Per Sample":i4(t,e,n),"Image Height":s4(t,e,n),"Image Width":l4(t,e,n),"Color Components":r,Subsampling:r&&c4(t,e,r.value,n)}}function o4(t,e){return $.getShortAt(t,e)}function i4(t,e,n){if(3>n)return;const s=$.getByteAt(t,e+2);return{value:s,description:""+s}}function s4(t,e,n){if(5>n)return;const s=$.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function l4(t,e,n){if(7>n)return;const s=$.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function a4(t,e,n){if(8>n)return;const s=$.getByteAt(t,e+7);return{value:s,description:""+s}}function c4(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([$.getByteAt(t,c),$.getByteAt(t,c+1),$.getByteAt(t,c+2)])}return{value:l,description:l.length>1?u4(l)+d4(l):""}}function u4(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function d4(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 f4={read:_4};function _4(t,e){const n=h4(t,e),r=w4(t,e,n),o=k4(t,e,n),s={"JFIF Version":m4(t,e,n),"Resolution Unit":p4(t,e,n),XResolution:y4(t,e,n),YResolution:b4(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=x4(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function h4(t,e){return $.getShortAt(t,e)}function m4(t,e,n){if(9>n)return;const s=$.getByteAt(t,e+7),l=$.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function p4(t,e,n){if(10>n)return;const s=$.getByteAt(t,e+9);return{value:s,description:g4(s)}}function g4(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function y4(t,e,n){if(12>n)return;const s=$.getShortAt(t,e+10);return{value:s,description:""+s}}function b4(t,e,n){if(14>n)return;const s=$.getShortAt(t,e+12);return{value:s,description:""+s}}function w4(t,e,n){if(15>n)return;const s=$.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function k4(t,e,n){if(16>n)return;const s=$.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function x4(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 on={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:ka},336:{name:"Time Sent",description:xa},346:{name:"Coded Character Set",description:sh,encoding_name:sh},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=>pe(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=pe(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=pe(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:ka},572:{name:"Time Created",description:xa},574:{name:"Digital Creation Date",description:ka},575:{name:"Digital Creation Time",description:xa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=pe(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=pe(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=pe(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(pe(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(pe(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=pe(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 pe(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=pe(t);if(e["ObjectData Preview File Format"]){const o=pe(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][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 ka(t){const e=pe(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=pe(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 sh(t){const e=pe(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 S4={get:C4};function C4(){if(typeof TextDecoder<"u")return TextDecoder}const lh={decode:E4,TAG_HEADER_SIZE:5};function E4(t,e){const n=S4.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(o=>String.fromCharCode(o)).join("");return T4(r)}function T4(t){try{return decodeURIComponent(escape(t))}catch{return t}}const B4=943868237,bo=4,Ri=2,N4=1,I4=2,ah=4,F4=bo+Ri+I4+ah,$4=1028,ch=5,Sa={read:A4};function A4(t,e,n){try{if(Array.isArray(t))return uh(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=O4(t,e);return uh(t,r,o,n)}catch{return{}}}function O4(t,e){for(;e+F4<=t.byteLength;){const n=D4(t,e);if(M4(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+P4(n)}throw new Error("No IPTC NAA resource block.")}function D4(t,e){if(t.getUint32(e,!1)!==B4)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bo+Ri),r=(n%2===0?n+1:n)+N4;return{headerSize:bo+Ri+r+ah,type:t.getUint16(e+bo),size:t.getUint32(e+bo+Ri+r)}}function M4(t){return t.type===$4}function P4(t){return t.size%2!==0?1:0}function uh(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=v4(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=ch+c}return o}function v4(t,e,n,r,o){if(L4(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!on.iptc[a])return{tag:void 0,tagSize:c};const u=V4(t,e+ch,c),d={id:a,name:q4(on.iptc[a],a,u),value:u,description:j4(on.iptc[a],u,n,r)};return G4(a)&&(d.repeatable=!0),Z4(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function L4(t,e){return t.getUint8(e)!==28}function V4(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function q4(t,e,n){return t?R4(t)?t:U4(t)?t.name(n):t.name:`undefined-${e}`}function R4(t){return typeof t=="string"}function U4(t){return typeof t.name=="function"}function j4(t,e,n,r){if(H4(t))try{return t.description(e,n)}catch{}return z4(t,e)?lh.decode(r,e):e}function z4(t,e){return t&&e instanceof Array}function H4(t){return t&&t.description!==void 0}function G4(t){return on.iptc[t]&&on.iptc[t].repeatable}function Z4(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const Ui={"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=>R.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Tr(R.XResolution,t),"tiff:YResolution":t=>Tr(R.YResolution,t),"exif:ApertureValue":t=>Tr(R.ApertureValue,t),"exif:GPSLatitude":fh,"exif:GPSLongitude":fh,"exif:FNumber":t=>Tr(R.FNumber,t),"exif:FocalLength":t=>Tr(R.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>R.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>R.ColorSpace(W4(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return R.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>R.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>R.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>R.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>R.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return dh(t)?R.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>R.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>R.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>R.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>R.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Tr(R.ShutterSpeedValue,t),"exif:WhiteBalance":t=>R.WhiteBalance(parseInt(t,10))};function Tr(t,e){return dh(e)?t(e.split("/")):e}function W4(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function dh(t){return/^-?\d+\/-?\d+$/.test(t)}function fh(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const Y4={get:K4};function K4(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const _h={read:Q4};function Q4(t,e){const n={};if(typeof t=="string")return ji(n,t),n;const[r,o]=X4(t,e),s=ji(n,r);if(o){const l=ji(n,o);!s&&!l&&(delete n._raw,ji(n,Ca(t,e)))}return n}function X4(t,e){if(e.length===0)return[];const n=[Ca(t,e.slice(0,1))];return e.length>1&&n.push(Ca(t,e.slice(1))),n}function Ca(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function ji(t,e){try{const{doc:n,raw:r}=J4(e);t._raw=(t._raw||"")+r;const o=hh(n);return U(t,ph(mh(o,!0))),!0}catch{return!1}}function J4(t){const e=Y4.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:q(t,0,t.byteLength),r=e.parseFromString(eE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function eE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function hh(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return hh(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function mh(t,e=!1){const n=tE(t);return nE(n)?e?{}:rE(n[0]):oE(n)}function tE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function nE(t){return t.length===1&&t[0].nodeName==="#text"}function rE(t){return t.nodeValue}function oE(t){const e={};return t.forEach(n=>{if(iE(n)){const r=sE(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 iE(t){return t.nodeName&&t.nodeName!=="#text"}function sE(t){return{attributes:lE(t),value:mh(t)}}function lE(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 ph(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(o=>{U(e,Ea(o.attributes)),typeof o.value=="object"&&U(e,gh(o.value))})}return e}function Ea(t){const e={};for(const n in t)try{aE(n)&&(e[Hi(n)]={value:t[n],attributes:{},description:Mt(t[n],n)})}catch{}return e}function aE(t){return t!=="rdf:parseType"&&!zi(t)}function zi(t){return t.split(":")[0]==="xmlns"}function Hi(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Mt(t,e=void 0){if(Array.isArray(t)){const n=cE(t);return e&&typeof Ui[e]=="function"?Ui[e](t,n):n}if(typeof t=="object")return uE(t);try{return e&&typeof Ui[e]=="function"?Ui[e](t):decodeURIComponent(escape(t))}catch{return t}}function cE(t){return t.map(e=>e.value!==void 0?Mt(e.value):Mt(e)).join(", ")}function uE(t){const e=[];for(const n in t)e.push(`${dE(n)}: ${Mt(t[n].value)}`);return e.join("; ")}function dE(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 gh(t){const e={};for(const n in t)try{zi(n)||(e[Hi(n)]=fE(t[n],n))}catch{}return e}function fE(t,e){return hE(t)?mE(t,e):_E(t)?{value:"",attributes:{},description:""}:yh(t)?bh(t,e):wh(t)?kh(t,e):xh(t)?Sh(t,e):yE(t)?bE(t,e):Ta(t,e)}function _E(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function hE(t){return Array.isArray(t)}function mE(t,e){return Ta(t[t.length-1],e)}function yh(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 bh(t,e){const n=wo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),U(n,wo(t),pE(t));const r=gE(t);return{value:r,attributes:n,description:Mt(r,e)}}function wo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!zi(n)&&(e[Hi(n)]=t.attributes[n]);return e}function pE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!zi(n)&&(e[Hi(n)]=t.value[n].value);return e}function gE(t){return Eh(t.value["rdf:value"])||t.value["rdf:value"].value}function wh(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function kh(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(U(n.value,Ea(t.value["rdf:Description"].attributes)),U(n.attributes,wo(t)),t=t.value["rdf:Description"]),U(n.value,gh(t.value)),n.description=Mt(n.value,e),n}function xh(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function Sh(t,e){const n=Ea(t.attributes);return{value:n,attributes:{},description:Mt(n,e)}}function yE(t){return Ch(t.value)!==void 0}function Ch(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function bE(t,e){let n=Ch(t.value).value["rdf:li"];const r=wo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(wE(s))}),{value:o,attributes:r,description:Mt(o,e)}}function wE(t){return yh(t)?bh(t):wh(t)?kh(t).value:xh(t)?Sh(t).value:Ta(t)}function Ta(t,e){const n=Eh(t)||ph(t.value);return{value:n,attributes:wo(t),description:Mt(n,e)}}function Eh(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={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},Th=24,Ba={2e3:{name:"PathInformation",description:kE},2999:{name:"ClippingPathName",description(t){const[,e]=l_(t,0);return e}}};function kE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+Th){const s=$.getShortAt(t,o);Na[s]&&(n[s]||(n[s]=Na[s].description),r.push({type:s,path:Na[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const Na={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Gi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Gi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Gi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Gi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[$.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:SE}};function Gi(t,e){const r=[];for(let o=0;o<Th;o+=8)r.push(xE(t,e+o));return r}function xE(t,e){const n=Mn(t,e,8);return[Mn(t,e+4,8),n]}function SE(t,e){return[[Mn(t,e,8),Mn(t,e+4,8),Mn(t,e+8,8),Mn(t,e+12,8)],Mn(t,e+16,8)]}function Mn(t,e,n){const r=$.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(u_("1",32-n),2);return o*$S(s.toString(2)+"."+FS(l.toString(2),32-n,"0"),2)}const CE={read:BE},Bh="8BIM",EE=2,TE=4,Nh=Bh.length;function BE(t,e){const n=s_(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=q(n,o,Nh);o+=Nh;const l=$.getShortAt(n,o);o+=EE;const{tagName:a,tagNameSize:c}=NE(n,o);o+=c;const u=$.getLongAt(n,o);if(o+=TE,s===Bh){const d=s_(n.buffer,o,u),f={id:l,value:q(d,0,u)};if(Ba[l]){try{f.description=Ba[l].description(d)}catch{f.description="<no description formatter>"}r[a||Ba[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function NE(t,e){const[n,r]=l_(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const Ih={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"}},Fh={4:{name:"Preferred CMM type",value:(t,e)=>q(t,e,4),description:t=>t!==null?Ia(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)=>q(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)=>q(t,e,4)},20:{name:"Connection Space",value:(t,e)=>q(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>IE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>FE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>q(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)=>q(t,e,4)}};function IE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function FE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ia(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 $h={read:VE},$E=84,AE=128,OE="acsp",DE="desc",ME="mluc",PE="text",vE="sig ",LE=12;function VE(t,e,n){return n&&e[0].compressionMethod!==Oi?qE(t,e):UE(t,e)}function qE(t,e){if(!RE(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return f_(n,e[0].compressionMethod,"utf-8","dataview").then(Ah).catch(()=>({}))}function RE(t){return t===d_}function UE(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=jE(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return Ah(new DataView(r.buffer))}catch{return{}}}function jE(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function zE(t){return t.length<AE+4}function HE(t,e){return t.length<e+LE}function Ah(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<$E)throw new Error("ICC profile too short");const r={},o=Object.keys(Fh);for(let c=0;c<o.length;c++){const u=o[c],d=Fh[u],f=d.value(t,parseInt(u,10));let _=f;d.description&&(_=d.description(f)),r[d.name]={value:f,description:_}}if(Zi(e.slice(36,40))!==OE)throw new Error("ICC profile: missing signature");if(zE(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(HE(e,a))return r;const u=q(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const _=q(t,d,4);if(_===DE){const h=t.getUint32(d+8);if(h>f)return r;const p=Zi(e.slice(d+12,d+h+11));ko(r,u,p)}else if(_===ME){const h=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let w=0;w<h;w++){const x=q(t,m+0,2),C=q(t,m+2,2),S=t.getUint32(m+4),E=t.getUint32(m+8),y=NS(t,d+E,S);g.push({languageCode:x,countryCode:C,text:y}),m+=p}if(h===1)ko(r,u,g[0].text);else{const w={};for(let x=0;x<g.length;x++)w[`${g[x].languageCode}-${g[x].countryCode}`]=g[x].text;ko(r,u,w)}}else if(_===PE){const h=Zi(e.slice(d+8,d+f-7));ko(r,u,h)}else if(_===vE){const h=Zi(e.slice(d+8,d+12));ko(r,u,h)}a=a+12}return r}function Zi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ko(t,e,n){Ih[e]?t[Ih[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Wi=27,GE={read:ZE,SHOT_INFO_AUTO_ROTATE:Wi};function ZE(t,e,n,r,o){let s=Dn(t,K_,e,e+n,r,o);return s.ShotInfo&&(s=U({},s,WE(s.ShotInfo.value)),delete s.ShotInfo),s}function WE(t){const e={};return t[Wi]!==void 0&&(e.AutoRotate={value:t[Wi],description:YE(t[Wi])}),e}function YE(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const KE={read:QE};function QE(t,e){return{"Image Width":XE(t,e),"Image Height":JE(t,e),"Bit Depth":eT(t,e),"Color Type":tT(t,e),Compression:nT(t,e),Filter:rT(t,e),Interlace:oT(t,e)}}function XE(t,e){if(e+0+4>t.byteLength)return;const o=$.getLongAt(t,e);return{value:o,description:`${o}px`}}function JE(t,e){if(e+4+4>t.byteLength)return;const o=$.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function eT(t,e){if(e+8+1>t.byteLength)return;const o=$.getByteAt(t,e+8);return{value:o,description:`${o}`}}function tT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=$.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function nT(t,e){if(e+10+1>t.byteLength)return;const o=$.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function rT(t,e){if(e+11+1>t.byteLength)return;const o=$.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function oT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=$.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const iT={read:uT},Fa="STATE_KEYWORD",$a="STATE_COMPRESSION",Aa="STATE_LANG",sT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",lT=1,aT=1,cT=6;function uT(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=dT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:_,description:h})=>{try{if(__.USE_EXIF&&Dh(f,_))return{__exif:ih.read(Ph(_),cT,r).tags};if(__.USE_IPTC&&Mh(f,_))return{__iptc:Sa.read(Ph(_),0,r)};if(f&&!Dh(f,_)&&!Mh(f,_))return{[f]:{value:_,description:h}}}catch{}return{}}));else{const{name:f,value:_,description:h}=d;f&&(o[f]={value:_,description:h})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function dT(t,e,n,r,o){const s=[],l=[];let a,c=Fa,u=Oi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===$a){u=fT({type:r,dataView:t,offset:e+f}),r===On&&(f+=lT),c=Oh(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const _=t.getUint8(e+f);_===0?c=Oh(r,c):c===Fa?s.push(_):c===Aa&&l.push(_)}if(u!==Oi&&!o)return{};const d=f_(a,u,_T(r));return d instanceof Promise?d.then(f=>Da(f,r,l,s)).catch(()=>Da("<text using unknown compression>".split(""),r,l,s)):Da(d,r,l,s)}function fT({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===aT)return e.getUint8(n+1)}else if(t===Pi)return e.getUint8(n);return Oi}function Oh(t,e){return e===Fa&&[On,Pi].includes(t)?$a:e===$a?t===On?Aa:Oa:e===Aa?sT:Oa}function _T(t){return t===ma||t===Pi?"latin1":"utf-8"}function Da(t,e,n,r){const o=mT(t);return{name:hT(e,n,r),value:o,description:e===On?pT(t):o}}function hT(t,e,n){const r=Sr(n);if(t===ma||e.length===0)return r;const o=Sr(e);return`${r} (${o})`}function mT(t){return t instanceof DataView?q(t,0,t.byteLength):t}function pT(t){return lh.decode("UTF-8",t)}function Dh(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function Mh(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function Ph(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return gT(e[2].replace(/\n/g,""))}function gT(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 yT={read:bT};function bT(t,e){const n={};for(let r=0;r<e.length;r++){const o=$.getLongAt(t,e[r]+Cr),s=q(t,e[r]+tn,ut);s===A_?(n["Pixels Per Unit X"]=wT(t,e[r],o),n["Pixels Per Unit Y"]=kT(t,e[r],o),n["Pixel Units"]=xT(t,e[r],o)):s===O_&&(n["Modify Date"]=ST(t,e[r],o))}return n}function wT(t,e,n){if(!Yi(t,e,n,0,4))return;const s=$.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function kT(t,e,n){if(!Yi(t,e,n,4,4))return;const s=$.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function xT(t,e,n){if(!Yi(t,e,n,8,1))return;const s=$.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function ST(t,e,n){if(!Yi(t,e,n,0,7))return;const o=$.getShortAt(t,e+ke),s=$.getByteAt(t,e+ke+2),l=$.getByteAt(t,e+ke+3),a=$.getByteAt(t,e+ke+4),c=$.getByteAt(t,e+ke+5),u=$.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Br(o,4)}-${Br(s,2)}-${Br(l,2)} ${Br(a,2)}:${Br(c,2)}:${Br(u,2)}`}}function Yi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Br(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const CT={read:BT},ET=4,TT=7;function BT(t,e){const n={},r=$.getByteAt(t,e);return n.Alpha=NT(r),n.Animation=IT(r),n.ImageWidth=vh(t,e+ET),n.ImageHeight=vh(t,e+TT),n}function NT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function IT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function vh(t,e){const n=$.getByteAt(t,e)+256*$.getByteAt(t,e+1)+65536*$.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const FT={read:$T};function $T(t){return{"GIF Version":AT(t),"Image Width":OT(t),"Image Height":DT(t),"Global Color Map":MT(t),"Bits Per Pixel":vT(t),"Color Resolution Depth":PT(t)}}function AT(t){if(6>t.byteLength)return;const r=q(t,3,3);return{value:r,description:r}}function OT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function DT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function MT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function PT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function vT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const LT=[6,7,99],VT={get:qT};function qT(t,e,n){if(RT(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),a_(e,"base64",function(){return c_(this.image)})}return e}function RT(t){return t&&(t.Compression===void 0||LT.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function Lh(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}Lh.prototype=new Error;const Vh={MetadataMissingError:Lh},UT={load:jT,loadView:qh,errors:Vh};function jT(t,e={}){return zT(t)?(e.async=!0,HT(t,e).then(n=>Ma(n,e))):XT(t)?(e.async=!0,JT(t).then(n=>Ma(n,e))):Ma(t,e)}function zT(t){return typeof t=="string"}function HT(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?GT(t,e):ZT(t,e):YT(t)?Promise.resolve(IS(t)):KT(t,e)}function GT(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 ZT(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),WT(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function WT(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function YT(t){return/^data:[^;,]*(;base64)?,/.test(t)}function KT(t,{length:e}={}){return new Promise((n,r)=>{const o=QT();o.open(t,(s,l)=>{s?r(s):o.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};o.read(l,f,_=>{_?r(_):o.close(l,h=>{h&&console.warn(`Could not close file ${t}:`,h),n(d)})})}})})})}function QT(){try{return __non_webpack_require__("fs")}catch{return}}function XT(t){return typeof File<"u"&&t instanceof File}function JT(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ma(t,e){return e8(t)&&(t=new Uint8Array(t).buffer),qh(t8(t),e)}function e8(t){try{return Buffer.isBuffer(t)}catch{return!1}}function t8(t){try{return new DataView(t)}catch{return new i_(t)}}function qh(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:_,iccChunks:h,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:w,vp8xChunkOffset:x,gifHeaderOffset:C}=kC.parseAppMarkers(t,n);if(n8(c)){o=!0;const b=n4.read(t,c);e?s.file=b:s=U({},s,b)}if(r8(u)){o=!0;const b=f4.read(t,u);e?s.jfif=b:s=U({},s,b)}if(o8(d)){o=!0;const{tags:b,byteOrder:T}=ih.read(t,d,r);if(b.Thumbnail&&(s.Thumbnail=b.Thumbnail,delete b.Thumbnail),e?(s.exif=b,i8(s)):s=U({},s,b),b["IPTC-NAA"]&&!Rh(f)){const B=Sa.read(b["IPTC-NAA"].value,0,r);e?s.iptc=B:s=U({},s,B)}if(b.ApplicationNotes&&!Uh(_)){const B=_h.read(Sr(b.ApplicationNotes.value));e?s.xmp=B:(delete B._raw,s=U({},s,B))}if(b.ImageSourceData){const B=CE.read(b.PhotoshopSettings.value,r);e?s.photoshop=B:s=U({},s,B)}if(b.ICC_Profile&&!jh(h)){const B=$h.read(b.ICC_Profile.value,[{offset:0,length:b.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=B:s=U({},s,B)}if(s8(b)){const B=GE.read(t,d,b.MakerNote.__offset,T,r);e?s.makerNotes=B:s=U({},s,B)}b.MakerNote&&delete b.MakerNote.__offset}if(Rh(f)){o=!0;const b=Sa.read(t,f,r);e?s.iptc=b:s=U({},s,b)}if(Uh(_)){o=!0;const b=_h.read(t,_);e?s.xmp=b:(delete b._raw,s=U({},s,b))}if(jh(h)){o=!0;const b=$h.read(t,h,n);b instanceof Promise?l.push(b.then(E)):E(b)}if(l8(p)){o=!0;const b=WC.read(t,p,r);e?s.mpf=b:s=U({},s,b)}if(a8(m)){o=!0;const b=KE.read(t,m);e?(s.png=s.png?U({},s.png,b):b,s.pngFile=b):s=U({},s,b)}if(c8(g)){o=!0;const{readTags:b,readTagsPromise:T}=iT.read(t,g,n,r);y(b),T&&l.push(T.then(B=>B.forEach(y)))}if(u8(w)){o=!0;const b=yT.read(t,w);e?s.png=s.png?U({},s.png,b):b:s=U({},s,b)}if(d8(x)){o=!0;const b=CT.read(t,x);e?s.riff=s.riff?U({},s.riff,b):b:s=U({},s,b)}if(f8(C)){o=!0;const b=FT.read(t,C);e?s.gif=s.gif?U({},s.gif,b):b:s=U({},s,b)}const S=VT.get(t,s.Thumbnail,d);if(S?(o=!0,s.Thumbnail=S):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new Vh.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function E(b){e?s.icc=b:s=U({},s,b)}function y(b){if(e){for(const T of["exif","iptc"]){const B=`__${T}`;b[B]&&(s[T]=s[T]?U({},s.exif,b[B]):b[B],delete b[B])}s.png=s.png?U({},s.png,b):b,s.pngText=s.pngText?U({},s.png,b):b}else s=U({},s,b.__exif?b.__exif:{},b.__iptc?b.__iptc:{},b),delete s.__exif,delete s.__iptc}}function n8(t){return t!==void 0}function r8(t){return t!==void 0}function o8(t){return t!==void 0}function i8(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Di(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=Di(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 Rh(t){return t!==void 0}function Uh(t){return Array.isArray(t)&&t.length>0}function jh(t){return Array.isArray(t)&&t.length>0}function s8(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function l8(t){return t!==void 0}function a8(t){return t!==void 0}function c8(t){return t!==void 0}function u8(t){return t!==void 0}function d8(t){return t!==void 0}function f8(t){return t!==void 0}async function zh(t,e=null){if(t.location)return t.location;try{const n=await UT.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=Ed();if(e&&setTimeout(()=>{!r.value&&e&&qe.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class xo{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,refreshFile:null,...re.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}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=ee.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})}return this}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 zh(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:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ie(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!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,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ie(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Gr(1e3),n=await this.refreshFile(n)}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 o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){qe.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Ki=i.ref([]),Qi=i.ref([]);function _8(t){Ki.value=[...Ki.value,t]}function h8(t,e,n){Qi.value.push({id:n,name:t,callback:e})}function m8(t){Qi.value=Qi.value.filter(e=>e.id!==t)}function Hh(t,e,n){for(let r of Ki.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Qi.value)o.name===r.name&&o.callback(n)}function Gh(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function p8(t){Ki.value=t,window.addEventListener("keydown",e=>{Hh("keydown",Gh(e),e)}),window.addEventListener("keyup",e=>{Hh("keyup",Gh(e),e)})}function Zh(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new xo(f.target.files,t).prepare().onProgress(({file:_})=>{_&&s(_)}).onComplete(({file:_,uploadedFile:h})=>{_&&s(_,h)}).onError(({file:_,error:h})=>{console.error("Failed to upload",_,h),qe.error(`Failed to upload ${_.name}: ${h}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,_=null){const h=e.value.findIndex(p=>p.id===f.id);h!==-1&&e.value.splice(h,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(h=>h.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 _;o({target:{files:(_=f.dataTransfer)==null?void 0:_.files}})},onFilesSelected:o,uploadedFiles:e}}const Oe={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=re.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t+JSON.stringify(e.params||""),r=Date.now();if(n){const a=new AbortController,c=Oe.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Oe.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let o=null;try{o=await fetch(Oe.url(t),e)}catch(a){if(e.ignoreAbort&&(a+"").match(/Request was aborted/))return{abort:!0};throw a}if(g8(o),n){if(r<Oe.abortControllers[n].timestamp)return{abort:!0};delete Oe.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=re.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Oe.call(t,e),await Gr(n);while(!r(o));return o},async get(t,e){var n;return await Oe.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=re.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var r;return await Oe.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(r=re.value.request)==null?void 0:r.headers,...n==null?void 0:n.headers}})}};function g8(t){const e=re.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 y8(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function Wh(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function b8(t,e){return{async list(n,r){r={...r,ignoreAbort:!0};const o=await Oe.post(`${t}/list`,n,r);return o.data&&(o.data=fd(o.data)),o},summary(n,r){return r={...r,ignoreAbort:!0},Oe.post(`${t}/summary`,{filter:n},r)},async details(n,r,o){o={...o,ignoreAbort:!0},r&&(o.params={fields:r});const s=await Oe.get(`${t}/${n.id}/details`,o);return ie(s)},fieldOptions(n){return Oe.get(`${t}/field-options`,n)},async applyAction(n,r,o,s){var a,c;s={...s,ignoreAbort:!0,headers:{...s==null?void 0:s.headers,"X-Timestamp":Date.now()}},o=o||{};const l=await Oe.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o},s);return l.item&&(l.item=ie(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=ie(l.result)),l},batchAction(n,r,o,s){return s={...s,ignoreAbort:!0},Oe.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return r_(`${t}/export`,r||"export.csv",{filter:n})},...e}}function Yh(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new xo((f=d.target)==null?void 0:f.files[0],t).prepare().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))}).onError(({file:_,error:h})=>{console.error("Failed to upload",_,h),qe.error(`Failed to upload ${_.name}: ${h}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.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:s,onFileSelected:o,uploadedFile:e}}function vt(t,e){localStorage.setItem(t,JSON.stringify(e))}function Ct(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function w8(t,e=""){const n=Pa(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Pa(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Pa(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const k8={version:"0.4.50"},{version:Kh}=k8;function x8(){console.log(`Installing Danx UI ${Kh}... Nothing to do really.`)}k.ActionButton=Eo,k.ActionForm=Sc,k.ActionFormDialog=G0,k.ActionMenu=Xs,k.ActionTable=ud,k.ActionTableColumn=Gu,k.ActionTableHeaderColumn=Ku,k.ActionTableLayout=Iw,k.ActionToolbar=dd,k.ActionVnode=sy,k.AddressFormat=Kg,k.AuditHistoryItem=qw,k.AuditHistoryItemValue=nl,k.AutoHeightTransition=gy,k.BadgeTab=dy,k.BooleanField=rs,k.CaretDownIcon=Wa,k.CollapsableFiltersSidebar=rd,k.CollapsableSidebar=Ec,k.ColumnListItem=el,k.ColumnSettingsDialog=Hb,k.ConfirmActionDialog=sc,k.ConfirmDialog=Tt,k.ConfirmPasswordField=fp,k.ContentDrawer=us,k.CreateNewWithNameDialog=lc,k.DateField=is,k.DateRangeField=ss,k.DateTime=D,k.DateTimeField=Sp,k.DateTimePicker=ls,k.DragAndDrop=Js,k.DragHandleDotsIcon=Ya,k.DragHandleIcon=Ka,k.EditOnClickTextField=Np,k.EditableDiv=uc,k.EmptyTableState=ad,k.ExportButton=Ga,k.FieldLabel=_t,k.FilePreview=Fr,k.FileUpload=xo,k.FileUploadButton=Fp,k.FilterIcon=Qa,k.FilterItem=td,k.FilterList=nd,k.FilterListToggle=od,k.FilterToolbarLayout=lw,k.FilterableField=tl,k.FlashMessages=qe,k.FlatListFormat=Qg,k.FullScreenCarouselDialog=ac,k.FullScreenDialog=np,k.GpsCoordinatesFormat=ey,k.HandleDraggable=Zu,k.IconWithTextFormat=ny,k.ImageIcon=ts,k.IndicatorTab=hy,k.InfoDialog=cc,k.InlineDateTimeField=Op,k.InputDialog=op,k.IntegerField=fc,k.InteractiveTooltip=ay,k.LabelPillWidget=Mb,k.LabelValueBlock=Vp,k.LabelValueFormat=oy,k.LabelValuePillWidget=Lb,k.LabeledInput=os,k.ListDragAndDrop=Wu,k.ListItemDraggable=Yu,k.ListTransition=Ic,k.MaxHeightTransition=yy,k.MaxLengthCounter=dc,k.MultiFileField=_c,k.MultiKeywordField=hc,k.NavigationMenu=jw,k.NewPasswordField=Up,k.NumberField=Ir,k.NumberRangeField=Io,k.PanelsDrawer=ld,k.PanelsDrawerPanels=id,k.PanelsDrawerTabs=sd,k.PdfIcon=Xa,k.PercentIcon=Ja,k.PopoverMenu=Nc,k.PreviousNextControls=rc,k.RefreshButton=Za,k.RenderComponent=Bc,k.RenderVnode=un,k.RenderedForm=cs,k.RenderedFormDialog=Ag,k.SERVER_TZ=na,k.SaveStateIndicator=xc,k.SelectDrawer=Zp,k.SelectField=vn,k.SelectOrCreateField=eg,k.SelectWithChildrenField=mc,k.SelectionMenuField=Xp,k.ShowHideButton=To,k.SingleFileField=pc,k.SkipNextIcon=ec,k.SkipPreviousIcon=tc,k.SlideTransition=by,k.SliderNumberField=lg,k.StaggeredListTransition=Db,k.SvgImg=Cc,k.TableSummaryRow=cd,k.TextField=an,k.TitleColumnFormat=Qu,k.TrashIcon=Bo,k.VisibleColumnsToggleButtons=Kb,k.WarningIcon=nc,k.WysiwygField=kc,k.XIcon=No,k.activeActionVnode=kn,k.addHotkey=_8,k.applyCssVars=w8,k.autoRefreshObject=md,k.buildCssVars=Pa,k.centerTruncate=kS,k.cloneDeep=Yw,k.configure=tm,k.danxOptions=re,k.dbDateTime=oa,k.diffInDays=TS,k.download=Ai,k.downloadFile=r_,k.downloadFileResponse=o_,k.fBoolean=J1,k.fCurrency=Fi,k.fCurrencyNoCents=yS,k.fDate=St,k.fDateTime=Ii,k.fDuration=gS,k.fJSON=n_,k.fLocalizedDateTime=kr,k.fMarkdownCode=ES,k.fNameOrCount=t_,k.fNumber=Dt,k.fPercent=e_,k.fPhone=xS,k.fQDate=hS,k.fSecondsToDuration=Q1,k.fSecondsToTime=pS,k.fShortCurrency=bS,k.fShortNumber=X1,k.fShortSize=wS,k.fetchResourceListWithSelected=y8,k.getFilterFromUrl=ed,k.getItem=Ct,k.getResponseHeader=la,k.getUrlParam=Wh,k.incrementName=kd,k.install=x8,k.isJSON=xd,k.latestCallOnly=sl,k.listen=h8,k.localizedDateTime=ra,k.mapSortBy=Ju,k.metersToMiles=Xw,k.milesToMeters=Jw,k.minmax=Qw,k.notify=zw,k.parseCoords=e2,k.parseDateTime=Ot,k.parseGenericDateTime=K1,k.parseMarkdownCode=$i,k.parseMarkdownJSON=SS,k.parseMarkdownYAML=CS,k.parseQDate=ia,k.parseQDateTime=sa,k.parseSqlDateTime=mS,k.pollUntil=Kw,k.refreshApplication=Ww,k.registerHotkeys=p8,k.registerStickyScrolling=Xu,k.remoteDateTime=Y1,k.remove=Hr,k.replace=ol,k.request=Oe,k.resolveFileLocation=zh,k.setItem=vt,k.sleep=Gr,k.stopAutoRefreshObject=pd,k.storeObject=ie,k.storeObjects=fd,k.uniqueBy=wd,k.unlisten=m8,k.useActionRoutes=b8,k.useActions=Gw,k.useCompatibility=Ed,k.useControls=Qb,k.useDebounceFn=ln,k.useMultiFileUpload=Zh,k.useSingleFileUpload=Yh,k.useTableColumns=Fw,k.version=Kh,k.waitForRef=il,k.withDefaultActions=Zw,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
154
154
  //# sourceMappingURL=danx.umd.js.map