quasar-ui-danx 0.4.86 → 0.4.87

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(S,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(S=typeof globalThis<"u"?globalThis:S||self,i(S.Danx={},S.Vue,S.Quasar))})(this,function(S,i,pe){"use strict";const ee=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 n0(t){ee.value={...ee.value,...t,fileUpload:{...ee.value.fileUpload,...t.fileUpload},flashMessages:{...ee.value.flashMessages,...t.flashMessages},request:{...ee.value.request,...t.request}}}function r0(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Pa(t){return typeof t=="function"?t():i.unref(t)}const o0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const La=()=>{};function i0(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 s0(t,e={}){let n,r,o=La;const s=a=>{clearTimeout(a),o(),o=La};return a=>{const c=Pa(t),u=Pa(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 an(t,e=200,n={}){return i0(s0(e,n),t)}const l0=o0?window.navigator:void 0;function a0(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function c0(t){const e=a0();return i.computed(()=>(e.value,!!t()))}function u0(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=l0,immediate:s=!0}=t,l=c0(()=>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 m(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&m();function _(){f&&o&&o.geolocation.clearWatch(f)}return r0(()=>{_()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:m,pause:_}}const d0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function f0(t,e){return i.openBlock(),i.createElementBlock("svg",d0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32h128c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2l-17.6-17.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8 229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3 163.8-62.5 226.3 0z"},null,-1)]))}const m0={render:f0},_0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function h0(t,e){return i.openBlock(),i.createElementBlock("svg",_0,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 p0={render:h0},g0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function y0(t,e){return i.openBlock(),i.createElementBlock("svg",g0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29z"},null,-1)]))}const b0={render:y0},w0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,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 Ji={render:k0},x0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,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 C0={render:S0},E0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",E0,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 Va={render:T0},B0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function N0(t,e){return i.openBlock(),i.createElementBlock("svg",B0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512m-24 120v136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24"},null,-1)]))}const I0={render:N0},$0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function F0(t,e){return i.openBlock(),i.createElementBlock("svg",$0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48m32.4 97.2c28-12.4 47.6-40.5 47.6-73.2 0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3v205.4C19.7 371 0 399.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V272c26.7 20.1 60 32 96 32h86.7c12.3 28.3 40.5 48 73.3 48 44.2 0 80-35.8 80-80s-35.8-80-80-80c-32.8 0-61 19.7-73.3 48H208c-49.9 0-91-38.1-95.6-86.8M80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48m264-136a24 24 0 1 1 48 0 24 24 0 1 1-48 0"},null,-1)]))}const A0={render:F0},O0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function D0(t,e){return i.openBlock(),i.createElementBlock("svg",O0,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:D0},v0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",v0,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 P0={render:M0},L0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function V0(t,e){return i.openBlock(),i.createElementBlock("svg",L0,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 Ua={render:V0},R0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function U0(t,e){return i.openBlock(),i.createElementBlock("svg",R0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v128H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h168v112c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 272v-48h110.1l-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39H384zm0-208H256V0z"},null,-1)]))}const z0={render:U0},q0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function H0(t,e){return i.openBlock(),i.createElementBlock("svg",q0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M128 64c0-35.3 28.7-64 64-64h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336h174.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm384-160H384V0z"},null,-1)]))}const G0={render:H0},Z0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function W0(t,e){return i.openBlock(),i.createElementBlock("svg",Z0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7c-12-12-28.3-18.7-45.3-18.7zm0 96c0-17.7 14.3-32 32-32h192c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 160a64 64 0 1 1 0 128 64 64 0 1 1 0-128"},null,-1)]))}const j0={render:W0},Y0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function K0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M64 480h384c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8l-19.2-25.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64"},null,-1)]))}const Q0={render:K0},X0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",X0,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 eh={render:J0},th={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function nh(t,e){return i.openBlock(),i.createElementBlock("svg",th,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 rh={render:nh},oh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ih(t,e){return i.openBlock(),i.createElementBlock("svg",oh,e[0]||(e[0]=[i.createElementVNode("path",{d:"M432 256c0 17.7-14.3 32-32 32H48c-17.7 0-32-14.3-32-32s14.3-32 32-32h352c17.7 0 32 14.3 32 32"},null,-1)]))}const sh={render:ih},lh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function ah(t,e){return i.openBlock(),i.createElementBlock("svg",lh,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 ch={render:ah},uh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function dh(t,e){return i.openBlock(),i.createElementBlock("svg",uh,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 Mn={render:dh},fh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function mh(t,e){return i.openBlock(),i.createElementBlock("svg",fh,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 _h={render:mh},hh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ph(t,e){return i.openBlock(),i.createElementBlock("svg",hh,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 za={render:ph},gh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function yh(t,e){return i.openBlock(),i.createElementBlock("svg",gh,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 bh={render:yh},wh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function kh(t,e){return i.openBlock(),i.createElementBlock("svg",wh,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 qa={render:kh},xh={class:"flex items-center flex-nowrap"},Sh={class:"p-4 bg-slate-600"},Ch={class:"flex items-center flex-nowrap mt-2"},Eh={class:"flex-grow"},xo=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?"},tooltipClass:{default:""}},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"blue-invert":return"text-blue-300 bg-blue-900 hover:bg-blue-800";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"sky-invert":return"text-sky-400 bg-sky-800 hover:bg-sky-900";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"yellow":return"text-yellow-300 bg-yellow-800 hover:bg-yellow-700";case"orange":return"text-orange-400 bg-orange-900 hover:bg-orange-800";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";case"slate":return"text-slate-900 bg-slate-300 hover:bg-slate-400";case"slate-invert":return"text-slate-300 bg-slate-900 hover:bg-slate-800";default:return""}}),a=i.computed(()=>r.iconClass+" "+o[r.size].icon),c=i.computed(()=>{switch(r.type){case"save":return{icon:j0};case"trash":return{icon:qa};case"export":return{icon:z0};case"import":return{icon:G0};case"back":return{icon:b0};case"create":return{icon:za};case"confirm":return{icon:C0};case"cancel":return{icon:Va};case"edit":return{icon:Mn};case"copy":return{icon:Ra};case"folder":return{icon:Q0};case"clock":return{icon:I0};case"play":return{icon:_h};case"stop":return{icon:bh};case"pause":return{icon:ch};case"restart":return{icon:m0};case"refresh":return{icon:p0};case"minus":return{icon:sh};case"merge":return{icon:A0};case"check":return{icon:Ji};case"view":return{icon:Ua};default:return{icon:Mn}}}),u=i.computed(()=>r.saving?!0:r.action?r.action.isApplying:r.target?Array.isArray(r.target)?r.target.some(m=>m.isSaving):r.target.isSaving:!1),d=i.ref(!1);function f(m=!1){if(!r.disabled){if(r.confirm&&!m)return d.value=!0,!1;d.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(m,_)=>{const p=i.resolveComponent("QTooltip"),h=i.resolveComponent("ActionButton",!0),g=i.resolveComponent("QMenu"),y=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(y,{loading:u.value,class:i.normalizeClass(["shadow-none py-0",s.value]),disable:m.disabled,onClick:_[2]||(_[2]=()=>f())},{default:i.withCtx(()=>[i.createElementVNode("div",xh,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m.icon||c.value.icon),{class:i.normalizeClass(["transition-all",a.value])},null,8,["class"])),m.label||m.label===0?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ml-2",m.labelClass])},i.toDisplayString(m.label),3)):i.createCommentVNode("",!0),i.renderSlot(m.$slots,"default")]),m.tooltip?(i.openBlock(),i.createBlock(p,{key:0,class:i.normalizeClass(["whitespace-nowrap",m.tooltipClass])},{default:i.withCtx(()=>[i.renderSlot(m.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(m.tooltip),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(g,{key:1,"model-value":!0},{default:i.withCtx(()=>[i.createElementVNode("div",Sh,[i.createElementVNode("div",null,i.toDisplayString(m.confirmText),1),i.createElementVNode("div",Ch,[i.createElementVNode("div",Eh,[i.createVNode(h,{type:"cancel",color:"gray",onClick:_[0]||(_[0]=x=>d.value=!1)})]),i.createVNode(h,{type:"confirm",color:"green",onClick:_[1]||(_[1]=()=>f(!0))})])])]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function Th(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 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",{"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 Bh(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 Ga(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 Nh(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 Ih(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 $h(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 Za={__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),Ve.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(Th),{class:"w-5"})]),_:1},8,["loading"])}}},Wa=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(Nh),{class:"w-5"})]),_:1},8,["loading"])}}}),es="show-hide-button",So=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,Mt(es,{...Ct(es,{}),[o.name]:r.value}))})}return(a,c)=>(i.openBlock(),i.createBlock(i.unref(xo),{icon:r.value?a.hideIcon||i.unref(P0):a.showIcon||i.unref(Ua),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"]))}}),Fh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function Ah(t,e){return i.openBlock(),i.createElementBlock("svg",Fh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const ja={render:Ah},Oh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Dh(t,e){return i.openBlock(),i.createElementBlock("svg",Oh,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:Dh},vh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function Mh(t,e){return i.openBlock(),i.createElementBlock("svg",vh,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:Mh},Ph={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Lh(t,e){return i.openBlock(),i.createElementBlock("svg",Ph,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:Lh},Vh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Rh(t,e){return i.openBlock(),i.createElementBlock("svg",Vh,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:Rh},Uh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function zh(t,e){return i.openBlock(),i.createElementBlock("svg",Uh,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:zh},qh={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function Hh(t,e){return i.openBlock(),i.createElementBlock("svg",qh,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:Hh},Gh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Zh(t,e){return i.openBlock(),i.createElementBlock("svg",Gh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const ec={render:Zh},Wh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function jh(t,e){return i.openBlock(),i.createElementBlock("svg",Wh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const tc={render:jh},Yh={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function Kh(t,e){return i.openBlock(),i.createElementBlock("svg",Yh,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 Co={render:Kh},Qh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Xh(t,e){return i.openBlock(),i.createElementBlock("svg",Qh,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:Xh},Jh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function ep(t,e){return i.openBlock(),i.createElementBlock("svg",Jh,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 Eo={render:ep},tp={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",tp,[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 np(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 rp(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 op(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 ip(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 sp(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 lp(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 ap(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 cp(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 up(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 dp(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 fp(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 mp(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 _p={class:"flex-grow"},hp={key:1,class:"dx-dialog-subtitle"},pp={class:"flex dx-dialog-actions"},sc=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",_p,[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",hp,[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(mp),{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",pp,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),gp={class:"dx-dialog-button-cancel"},yp={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(sc),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a,onKeyup:i.withKeys(l,["enter"])}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",gp,[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",yp,[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)}}}),bp=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(Cc),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),lc=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(()=>n_(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"]))}}),ac=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(cn),{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"]))}}),wp={class:"absolute top-0 left-0 w-full h-full"},kp={key:0,class:"max-h-full w-full",controls:""},xp=["src","type"],Sp=["alt","src"],Cp={key:2,class:"w-[60vw] min-w-96 bg-slate-800 rounded-lg"},Ep={class:"whitespace-pre-wrap p-4"},Tp={key:3},Bp=["href"],Np={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},Ip=i.defineComponent({__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(f){var m;return(m=f.mime)==null?void 0:m.startsWith("video")}function s(f){var m;return(m=f.mime)==null?void 0:m.startsWith("image")}function l(f){var m;return(m=f.mime)==null?void 0:m.startsWith("text")}function a(f){var m,_;return((m=f.optimized)==null?void 0:m.url)||(s(f)?f.blobUrl||f.url:(_=f.thumb)==null?void 0:_.url)}function c(f){return f.thumb?f.thumb.url:o(f)?`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>')}`:a(f)||"https://placehold.co/40x50?text=T"}i.onMounted(()=>{for(let f of e.files)l(f)&&d(f)});const u=i.shallowRef({});async function d(f){if(u.value[f.id])return u.value[f.id];u.value[f.id]=await fetch(f.url).then(m=>m.text())}return(f,m)=>{const _=i.resolveComponent("QCarouselSlide"),p=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(p,{"model-value":!0,maximized:"","onUpdate:modelValue":m[2]||(m[2]=h=>f.$emit("close")),onKeyup:[m[3]||(m[3]=i.withKeys(h=>n.value.previous(),["left"])),m[4]||(m[4]=i.withKeys(h=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",wp,[i.createVNode(i.unref(pe.QCarousel),{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=h=>r.value=h),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(f.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,h=>(i.openBlock(),i.createBlock(_,{key:"file-"+h.id,name:h.id,"img-src":c(h),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(f.cls["slide-image"])},[o(h)?(i.openBlock(),i.createElementBlock("video",kp,[i.createElementVNode("source",{src:a(h)+"#t=0.1",type:h.mime},null,8,xp)])):a(h)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:h.filename,src:a(h)},null,8,Sp)):l(h)?(i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",Ep,i.toDisplayString(u.value[h.id]),1)])):(i.openBlock(),i.createElementBlock("div",Tp,[m[5]||(m[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,Bp)]))],2),i.createElementVNode("div",Np,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:m[1]||(m[1]=h=>f.$emit("close"))},[i.createVNode(i.unref(Eo),{class:"w-8 h-8"})])])]),_:1})}}}),$p={"pointer-events-none":"_pointer-events-none_13nf9_1","!visible":"_!visible_13nf9_1",visible:"_visible_13nf9_1",collapse:"_collapse_13nf9_1",static:"_static_13nf9_1",absolute:"_absolute_13nf9_1",relative:"_relative_13nf9_1",sticky:"_sticky_13nf9_1","left-0":"_left-0_13nf9_1","right-0":"_right-0_13nf9_1","right-1":"_right-1_13nf9_1","top-0":"_top-0_13nf9_1","top-1":"_top-1_13nf9_1","z-10":"_z-10_13nf9_1","m-2":"_m-2_13nf9_1","m-4":"_m-4_13nf9_1","m-auto":"_m-auto_13nf9_1","mx-1":"_mx-1_13nf9_1","mx-4":"_mx-4_13nf9_1","mx-auto":"_mx-auto_13nf9_1","my-2":"_my-2_13nf9_1","!mr-1":"_!mr-1_13nf9_1","mb-2":"_mb-2_13nf9_1","mb-4":"_mb-4_13nf9_1","ml-1":"_ml-1_13nf9_1","ml-2":"_ml-2_13nf9_1","ml-2.5":"_ml-2.5_13nf9_1","ml-3":"_ml-3_13nf9_1","ml-4":"_ml-4_13nf9_1","ml-5":"_ml-5_13nf9_1","ml-[-.2em]":"_ml-[-.2em]_13nf9_1","mr-1":"_mr-1_13nf9_1","mr-2":"_mr-2_13nf9_1","mr-3":"_mr-3_13nf9_1","mr-4":"_mr-4_13nf9_1","mt-1":"_mt-1_13nf9_1","mt-2":"_mt-2_13nf9_1","mt-3":"_mt-3_13nf9_1","mt-4":"_mt-4_13nf9_1",block:"_block_13nf9_1","inline-block":"_inline-block_13nf9_1",inline:"_inline_13nf9_1",flex:"_flex_13nf9_1",table:"_table_13nf9_1",hidden:"_hidden_13nf9_1","h-10":"_h-10_13nf9_1","h-12":"_h-12_13nf9_1","h-16":"_h-16_13nf9_1","h-4":"_h-4_13nf9_1","h-5":"_h-5_13nf9_1","h-6":"_h-6_13nf9_1","h-8":"_h-8_13nf9_1","h-96":"_h-96_13nf9_1","h-[2.25rem]":"_h-[2.25rem]_13nf9_1","h-full":"_h-full_13nf9_1","max-h-full":"_max-h-full_13nf9_1","min-h-10":"_min-h-10_13nf9_1","w-10":"_w-10_13nf9_1","w-16":"_w-16_13nf9_1","w-2":"_w-2_13nf9_1","w-2/5":"_w-2/5_13nf9_1","w-24":"_w-24_13nf9_1","w-3":"_w-3_13nf9_1","w-3/4":"_w-3/4_13nf9_1","w-3/5":"_w-3/5_13nf9_1","w-32":"_w-32_13nf9_1","w-4":"_w-4_13nf9_1","w-48":"_w-48_13nf9_1","w-5":"_w-5_13nf9_1","w-6":"_w-6_13nf9_1","w-7":"_w-7_13nf9_1","w-72":"_w-72_13nf9_1","w-8":"_w-8_13nf9_1","w-96":"_w-96_13nf9_1","w-[13.5rem]":"_w-[13.5rem]_13nf9_1","w-[6.5rem]":"_w-[6.5rem]_13nf9_1","w-[60vw]":"_w-[60vw]_13nf9_1","w-full":"_w-full_13nf9_1","!min-w-0":"_!min-w-0_13nf9_1","min-w-10":"_min-w-10_13nf9_1","min-w-96":"_min-w-96_13nf9_1","max-w-full":"_max-w-full_13nf9_1","flex-shrink":"_flex-shrink_13nf9_1","flex-shrink-0":"_flex-shrink-0_13nf9_1",shrink:"_shrink_13nf9_1","flex-grow":"_flex-grow_13nf9_1",grow:"_grow_13nf9_1","rotate-180":"_rotate-180_13nf9_1",transform:"_transform_13nf9_1","cursor-ew-resize":"_cursor-ew-resize_13nf9_1","cursor-move":"_cursor-move_13nf9_1","cursor-not-allowed":"_cursor-not-allowed_13nf9_1","cursor-ns-resize":"_cursor-ns-resize_13nf9_1","cursor-pointer":"_cursor-pointer_13nf9_1",resize:"_resize_13nf9_1","flex-col":"_flex-col_13nf9_1","flex-nowrap":"_flex-nowrap_13nf9_1","items-center":"_items-center_13nf9_1","items-stretch":"_items-stretch_13nf9_1","justify-start":"_justify-start_13nf9_1","justify-end":"_justify-end_13nf9_1","justify-center":"_justify-center_13nf9_1","justify-between":"_justify-between_13nf9_1","gap-x-2":"_gap-x-2_13nf9_1","gap-x-4":"_gap-x-4_13nf9_1","gap-y-0":"_gap-y-0_13nf9_1","gap-y-1":"_gap-y-1_13nf9_1","space-x-1":"_space-x-1_13nf9_1","space-x-2":"_space-x-2_13nf9_1","self-center":"_self-center_13nf9_1","overflow-auto":"_overflow-auto_13nf9_1","overflow-hidden":"_overflow-hidden_13nf9_1","overflow-y-auto":"_overflow-y-auto_13nf9_70","overflow-x-hidden":"_overflow-x-hidden_13nf9_1","scroll-smooth":"_scroll-smooth_13nf9_1","overflow-ellipsis":"_overflow-ellipsis_13nf9_1","whitespace-normal":"_whitespace-normal_13nf9_1","whitespace-nowrap":"_whitespace-nowrap_13nf9_1","whitespace-pre-wrap":"_whitespace-pre-wrap_13nf9_1",rounded:"_rounded_13nf9_1","rounded-2xl":"_rounded-2xl_13nf9_1","rounded-full":"_rounded-full_13nf9_1","rounded-lg":"_rounded-lg_13nf9_1","rounded-md":"_rounded-md_13nf9_1","rounded-sm":"_rounded-sm_13nf9_1","!rounded-l-none":"_!rounded-l-none_13nf9_1","!rounded-r-none":"_!rounded-r-none_13nf9_1","rounded-b-lg":"_rounded-b-lg_13nf9_1","rounded-l-lg":"_rounded-l-lg_13nf9_1","rounded-r-lg":"_rounded-r-lg_13nf9_1","rounded-t-lg":"_rounded-t-lg_13nf9_1","rounded-t-md":"_rounded-t-md_13nf9_1","!border-0":"_!border-0_13nf9_1",border:"_border_13nf9_1","border-b":"_border-b_13nf9_1","border-l":"_border-l_13nf9_1","border-l-0":"_border-l-0_13nf9_1","border-r":"_border-r_13nf9_1","border-solid":"_border-solid_13nf9_1","border-dashed":"_border-dashed_13nf9_1","border-none":"_border-none_13nf9_1","border-blue-600":"_border-blue-600_13nf9_1","border-blue-700":"_border-blue-700_13nf9_1","border-gray-200":"_border-gray-200_13nf9_1","border-gray-300":"_border-gray-300_13nf9_1","border-slate-200":"_border-slate-200_13nf9_1","bg-amber-950":"_bg-amber-950_13nf9_1","bg-black":"_bg-black_13nf9_1","bg-blue-200":"_bg-blue-200_13nf9_1","bg-blue-300":"_bg-blue-300_13nf9_1","bg-blue-600":"_bg-blue-600_13nf9_1","bg-blue-900":"_bg-blue-900_13nf9_1","bg-blue-950":"_bg-blue-950_13nf9_1","bg-emerald-200":"_bg-emerald-200_13nf9_1","bg-gray-100":"_bg-gray-100_13nf9_1","bg-gray-200":"_bg-gray-200_13nf9_1","bg-gray-400":"_bg-gray-400_13nf9_1","bg-gray-500":"_bg-gray-500_13nf9_1","bg-gray-800":"_bg-gray-800_13nf9_1","bg-green-200":"_bg-green-200_13nf9_1","bg-green-300":"_bg-green-300_13nf9_1","bg-green-900":"_bg-green-900_13nf9_1","bg-green-950":"_bg-green-950_13nf9_1","bg-lime-300":"_bg-lime-300_13nf9_1","bg-orange-900":"_bg-orange-900_13nf9_1","bg-red-200":"_bg-red-200_13nf9_1","bg-red-300":"_bg-red-300_13nf9_1","bg-red-900":"_bg-red-900_13nf9_1","bg-red-950":"_bg-red-950_13nf9_1","bg-sky-300":"_bg-sky-300_13nf9_1","bg-sky-800":"_bg-sky-800_13nf9_1","bg-sky-900":"_bg-sky-900_13nf9_1","bg-sky-950":"_bg-sky-950_13nf9_1","bg-slate-100":"_bg-slate-100_13nf9_1","bg-slate-300":"_bg-slate-300_13nf9_1","bg-slate-400":"_bg-slate-400_13nf9_1","bg-slate-500":"_bg-slate-500_13nf9_1","bg-slate-600":"_bg-slate-600_13nf9_1","bg-slate-700":"_bg-slate-700_13nf9_1","bg-slate-800":"_bg-slate-800_13nf9_1","bg-slate-900":"_bg-slate-900_13nf9_1","bg-slate-950":"_bg-slate-950_13nf9_1","bg-transparent":"_bg-transparent_13nf9_1","bg-white":"_bg-white_13nf9_1","bg-yellow-300":"_bg-yellow-300_13nf9_1","bg-yellow-800":"_bg-yellow-800_13nf9_1","bg-yellow-950":"_bg-yellow-950_13nf9_1","!bg-none":"_!bg-none_13nf9_1","!p-2":"_!p-2_13nf9_1","p-0":"_p-0_13nf9_1","p-1":"_p-1_13nf9_1","p-2":"_p-2_13nf9_1","p-3":"_p-3_13nf9_1","p-4":"_p-4_13nf9_1","p-8":"_p-8_13nf9_1","!py-0":"_!py-0_13nf9_1","px-1":"_px-1_13nf9_1","px-1.5":"_px-1.5_13nf9_1","px-12":"_px-12_13nf9_1","px-2":"_px-2_13nf9_1","px-2.5":"_px-2.5_13nf9_1","px-3":"_px-3_13nf9_1","px-4":"_px-4_13nf9_1","px-6":"_px-6_13nf9_1","px-8":"_px-8_13nf9_1","py-0":"_py-0_13nf9_1","py-1":"_py-1_13nf9_1","py-1.5":"_py-1.5_13nf9_1","py-14":"_py-14_13nf9_1","py-2":"_py-2_13nf9_1","py-3":"_py-3_13nf9_1","py-4":"_py-4_13nf9_1","py-5":"_py-5_13nf9_1","py-8":"_py-8_13nf9_1","pl-1":"_pl-1_13nf9_1","pt-3":"_pt-3_13nf9_1","text-left":"_text-left_13nf9_1","text-center":"_text-center_13nf9_1","text-[.7rem]":"_text-[.7rem]_13nf9_1","text-[1rem]":"_text-[1rem]_13nf9_1","text-base":"_text-base_13nf9_1","text-lg":"_text-lg_13nf9_1","text-sm":"_text-sm_13nf9_1","text-xs":"_text-xs_13nf9_1","font-bold":"_font-bold_13nf9_1","font-medium":"_font-medium_13nf9_1","font-semibold":"_font-semibold_13nf9_1",uppercase:"_uppercase_13nf9_1","leading-[1.2rem]":"_leading-[1.2rem]_13nf9_1","!text-green-900":"_!text-green-900_13nf9_1","!text-red-900":"_!text-red-900_13nf9_1","!text-sky-900":"_!text-sky-900_13nf9_1","!text-white":"_!text-white_13nf9_1","!text-yellow-900":"_!text-yellow-900_13nf9_1","text-amber-400":"_text-amber-400_13nf9_1","text-blue-300":"_text-blue-300_13nf9_1","text-blue-400":"_text-blue-400_13nf9_1","text-blue-600":"_text-blue-600_13nf9_1","text-blue-900":"_text-blue-900_13nf9_1","text-gray-300":"_text-gray-300_13nf9_1","text-gray-400":"_text-gray-400_13nf9_1","text-gray-500":"_text-gray-500_13nf9_1","text-gray-600":"_text-gray-600_13nf9_1","text-gray-700":"_text-gray-700_13nf9_1","text-green-300":"_text-green-300_13nf9_1","text-green-400":"_text-green-400_13nf9_1","text-green-700":"_text-green-700_13nf9_1","text-green-900":"_text-green-900_13nf9_1","text-lime-900":"_text-lime-900_13nf9_1","text-orange-400":"_text-orange-400_13nf9_1","text-red-400":"_text-red-400_13nf9_1","text-red-500":"_text-red-500_13nf9_1","text-red-800":"_text-red-800_13nf9_1","text-red-900":"_text-red-900_13nf9_1","text-sky-400":"_text-sky-400_13nf9_1","text-sky-900":"_text-sky-900_13nf9_1","text-slate-200":"_text-slate-200_13nf9_1","text-slate-300":"_text-slate-300_13nf9_1","text-slate-400":"_text-slate-400_13nf9_1","text-slate-50":"_text-slate-50_13nf9_1","text-slate-500":"_text-slate-500_13nf9_1","text-slate-600":"_text-slate-600_13nf9_1","text-slate-800":"_text-slate-800_13nf9_1","text-slate-900":"_text-slate-900_13nf9_1","text-white":"_text-white_13nf9_1","text-yellow-300":"_text-yellow-300_13nf9_1","text-yellow-400":"_text-yellow-400_13nf9_1","text-yellow-600":"_text-yellow-600_13nf9_1","text-zinc-500":"_text-zinc-500_13nf9_1","text-zinc-800":"_text-zinc-800_13nf9_1","line-through":"_line-through_13nf9_1","opacity-0":"_opacity-0_13nf9_1","opacity-20":"_opacity-20_13nf9_1","opacity-50":"_opacity-50_13nf9_1","opacity-70":"_opacity-70_13nf9_1","opacity-80":"_opacity-80_13nf9_1","shadow-none":"_shadow-none_13nf9_1","outline-none":"_outline-none_13nf9_1",outline:"_outline_13nf9_1","outline-offset-0":"_outline-offset-0_13nf9_1",filter:"_filter_13nf9_1",transition:"_transition_13nf9_1","transition-all":"_transition-all_13nf9_1","duration-300":"_duration-300_13nf9_1","danx-app":"_danx-app_13nf9_4","q-tab":"_q-tab_13nf9_4","q-table__card":"_q-table__card_13nf9_7","q-checkbox__inner":"_q-checkbox__inner_13nf9_11","q-toolbar":"_q-toolbar_13nf9_14","q-notification__actions":"_q-notification__actions_13nf9_19","q-date":"_q-date_13nf9_22","q-date__view":"_q-date__view_13nf9_25","q-field":"_q-field_13nf9_28","q-field--auto-height":"_q-field--auto-height_13nf9_28","q-field__control":"_q-field__control_13nf9_28","q-field__native":"_q-field__native_13nf9_31","q-field--labeled":"_q-field--labeled_13nf9_35","q-field__control-container":"_q-field__control-container_13nf9_35","q-textarea":"_q-textarea_13nf9_38","q-field__marginal":"_q-field__marginal_13nf9_41","q-field__input":"_q-field__input_13nf9_41","q-field__label":"_q-field__label_13nf9_41","q-btn":"_q-btn_13nf9_48","q-item":"_q-item_13nf9_56","q-tab-panels":"_q-tab-panels_13nf9_60","q-panel":"_q-panel_13nf9_64",scroll:"_scroll_13nf9_67","dx-dialog":"_dx-dialog_13nf9_74","q-card__section--vert":"_q-card__section--vert_13nf9_74","q-banner":"_q-banner_13nf9_78",app:"_app_13nf9_1","main-layout":"_main-layout_13nf9_1","is-disabled":"_is-disabled_13nf9_95","disable-all-transitions":"_disable-all-transitions_13nf9_100","v-enter-active":"_v-enter-active_13nf9_104","v-leave-active":"_v-leave-active_13nf9_105","v-enter-from":"_v-enter-from_13nf9_109","v-leave-to":"_v-leave-to_13nf9_110","dx-action-table":"_dx-action-table_13nf9_114","dx-column-shrink":"_dx-column-shrink_13nf9_114","slide-image":"_slide-image_13nf9_118",carousel:"_carousel_13nf9_132","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_13nf9_132","hover:bg-blue-200":"_hover:bg-blue-200_13nf9_1","hover:bg-blue-400":"_hover:bg-blue-400_13nf9_1","hover:bg-blue-800":"_hover:bg-blue-800_13nf9_1","hover:bg-gray-200":"_hover:bg-gray-200_13nf9_1","hover:bg-green-100":"_hover:bg-green-100_13nf9_1","hover:bg-green-400":"_hover:bg-green-400_13nf9_1","hover:bg-green-800":"_hover:bg-green-800_13nf9_1","hover:bg-lime-400":"_hover:bg-lime-400_13nf9_1","hover:bg-orange-800":"_hover:bg-orange-800_13nf9_1","hover:bg-red-100":"_hover:bg-red-100_13nf9_1","hover:bg-red-200":"_hover:bg-red-200_13nf9_1","hover:bg-red-400":"_hover:bg-red-400_13nf9_1","hover:bg-sky-400":"_hover:bg-sky-400_13nf9_1","hover:bg-sky-800":"_hover:bg-sky-800_13nf9_1","hover:bg-sky-900":"_hover:bg-sky-900_13nf9_1","hover:bg-slate-200":"_hover:bg-slate-200_13nf9_1","hover:bg-slate-300":"_hover:bg-slate-300_13nf9_1","hover:bg-slate-400":"_hover:bg-slate-400_13nf9_1","hover:bg-slate-600":"_hover:bg-slate-600_13nf9_1","hover:bg-slate-800":"_hover:bg-slate-800_13nf9_1","hover:bg-slate-900":"_hover:bg-slate-900_13nf9_1","hover:bg-yellow-700":"_hover:bg-yellow-700_13nf9_1","hover:text-blue-500":"_hover:text-blue-500_13nf9_1","hover:text-blue-600":"_hover:text-blue-600_13nf9_1","hover:opacity-100":"_hover:opacity-100_13nf9_1","hover:opacity-20":"_hover:opacity-20_13nf9_1","hover:opacity-70":"_hover:opacity-70_13nf9_1","hover:outline-4":"_hover:outline-4_13nf9_1","focus:bg-blue-200":"_focus:bg-blue-200_13nf9_1","focus:outline-4":"_focus:outline-4_13nf9_1","focus:outline-blue-200":"_focus:outline-blue-200_13nf9_1",group:"_group_13nf9_1","group-hover:opacity-100":"_group-hover:opacity-100_13nf9_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},cc=ft(Ip,[["__cssModules",{cls:$p}]]),Fp={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},Ap=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",Fp,[i.createVNode(i.unref(Eo),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}}),Op={key:0,class:"flex-grow"},uc=i.defineComponent({__name:"InfoDialog",props:{disabled:{type:Boolean},hideDone:{type:Boolean},doneClass:{default:""},doneText:{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(sc),{class:"dx-info-dialog",onClose:r},i.createSlots({actions:i.withCtx(()=>[o.hideDone?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Op,[i.createVNode(l,{label:o.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",o.doneClass]),disable:o.disabled,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]),1024)}}}),Dp={__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)}}},vp={class:"dx-field-label"},Mp={class:"dx-field-label-text"},Pp={class:"dx-field-label-label"},Lp={key:0,class:"dx-field-label-name"},Vp={key:0,class:"dx-field-required"},mt=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",vp,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",Mp,[i.createElementVNode("div",Pp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",Lp," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",Vp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),ns=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,disabled: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.disabled||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(mt),{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"])}}}),Rp={for:"first_name",class:"form-label"},Up={class:"mt-1"},rs={__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",Rp,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",Up,[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"])])])}}},zp={__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(rs),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"]))}},qp={key:0,class:"font-bold text-xs mb-2"},Hp={class:"flex items-center cursor-pointer"},Gp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Zp={key:0},os=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(ct(r.modelValue||"0000-00-00")):"- -"),s=i.ref(ct(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",qp,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Hp,[i.createVNode(i.unref(oc),{class:"w-5"}),i.createElementVNode("div",Gp,[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",Zp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(m=>(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]=m=>s.value=m),l]},null,8,["modelValue"])]),_:1})])}}}),Wp={class:"mb-2"},jp={class:"flex items-center cursor-pointer"},Yp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Kp={key:0},is=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"),m=i.resolveComponent("QBtn"),_=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Wp,[i.createVNode(i.unref(mt),{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",jp,[i.createVNode(i.unref(oc),{class:"w-5 py-2"}),i.createElementVNode("div",Yp,[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",Kp,[i.createVNode(m,{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(_,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))])}}}),Qp={class:"flex items-center justify-center"},Xp={key:0,class:"flex-grow"},ss={__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(Km(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",Qp,[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})}}},Jp={__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]=m=>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]=m=>o.value=m)},{default:i.withCtx(()=>[i.createVNode(i.unref(ss),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=m=>s.value=m),onCancel:c[1]||(c[1]=m=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},eg={class:"inline-block relative"},tg=["contenteditable"],dc=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..."},contentClass:{default:""}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(),l=i.ref(null),a=i.ref("0"),c=i.ref("0"),u=i.ref(!1);i.onMounted(()=>{var _,p;l.value&&(a.value=((_=l.value)==null?void 0:_.offsetWidth)+"px",c.value=((p=l.value)==null?void 0:p.offsetHeight)+"px")}),i.watch(()=>r.modelValue,_=>{!u.value&&s.value&&(s.value.innerText=_,o.value=_)}),i.onMounted(()=>{s.value.innerText=o.value});const d=an(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function f(_){o.value=_.target.innerText,d()}const m=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",r.contentClass||""],o.value?"":"!bg-none"]);return(_,p)=>(i.openBlock(),i.createElementBlock("div",eg,[i.createElementVNode("div",{ref_key:"textDiv",ref:s,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",m.value]),style:i.normalizeStyle({minWidth:a.value,minHeight:c.value}),onInput:f,onFocusin:p[0]||(p[0]=h=>u.value=!0),onFocusout:p[1]||(p[1]=h=>u.value=!1)},null,46,tg),!o.value&&_.placeholder&&!u.value&&!_.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:l,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},i.toDisplayString(_.placeholder),513)):i.createCommentVNode("",!0)]))}}),ng=["contenteditable"],rg={key:0},og=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,ng),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",rg,[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(Ji),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Mn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),ig=["accept","capture"],sg={__name:"FileUploadButton",props:{...pe.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 ji(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(pe.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(fp),{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,ig)]),_:3},16))}},lg={class:"inline-block"},ag={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},cg={__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",lg,[i.createElementVNode("div",ag,[i.createTextVNode(i.toDisplayString(i.unref(kr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref(Ga),{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(ss),{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"])])])}}},fc=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(Ot)(e.length))+" / "+i.toDisplayString(i.unref(Ot)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),ug={class:"dx-text-field"},dg={key:1,class:"dx-text-field-readonly-value"},cn=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",ug,[!e.prependLabel&&e.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])):i.createCommentVNode("",!0),e.readonly?(i.openBlock(),i.createElementBlock("div",dg,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:"",name:"",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(mt),{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(fc),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Nr=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}),Ot(c,d)}const l=an(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(cn),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),mc=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(Nr),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"]))}}),fg={class:"text-xs font-bold"},mg=["href"],_g=["href"],hg=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 e_(e.value);case"number":return Ot(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",fg,[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(eh),{class:"w-4"})],8,_g)],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,mg))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),pg={class:"flex items-stretch justify-start"},gg={key:1,class:"p-1"},_c=i.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"},showTranscodes:{type:Boolean}},emits:["update:model-value","uploading","complete"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesChange:l,onFilesSelected:a,uploadedFiles:c,clearUploadedFiles:u,onRemove:d}=j1();i.onMounted(()=>{r.modelValue&&(c.value=r.modelValue)}),l(()=>{c.value.some(m=>m.progress<1)&&n("uploading")}),o(()=>{n("update:model-value",c.value),n("complete")});const f=i.computed(()=>({width:typeof r.width=="number"?`${r.width}px`:r.width,height:typeof r.height=="number"?`${r.height}px`:r.height}));return(m,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!m.readonly}]),onDragover:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onDrop:_[4]||(_[4]=i.withModifiers((...p)=>i.unref(s)&&i.unref(s)(...p),["prevent"]))},[m.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:m.label},null,8,["label"])):i.createCommentVNode("",!0),!m.disabled&&!m.readonly?(i.openBlock(),i.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:_[0]||(_[0]=(...p)=>i.unref(a)&&i.unref(a)(...p))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",pg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(c),p=>(i.openBlock(),i.createBlock(i.unref(Ir),{key:"file-upload-"+p.id,class:i.normalizeClass(["m-2 cursor-pointer bg-gray-200",m.filePreviewClass]),style:i.normalizeStyle(f.value),file:p,"show-transcodes":m.showTranscodes,"related-files":i.unref(c),downloadable:"",removable:!m.readonly&&!m.disabled,onRemove:h=>i.unref(d)(p)},null,8,["class","style","file","show-transcodes","related-files","removable","onRemove"]))),128)),!m.disabled&&!m.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",m.filePreviewClass]),style:i.normalizeStyle(f.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]=p=>m.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(ts),{class:i.normalizeClass(["m-auto",m.addIconClass])},null,8,["class"]),_[5]||(_[5]=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),i.unref(c).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]=(...p)=>i.unref(u)&&i.unref(u)(...p))},[i.createVNode(i.unref(Co),{class:"mr-2 w-3"}),_[6]||(_[6]=i.createTextVNode(" Remove All "))])):i.createCommentVNode("",!0)],6)):i.createCommentVNode("",!0),m.readonly&&i.unref(c).length===0?(i.openBlock(),i.createElementBlock("div",gg," -- ")):i.createCommentVNode("",!0)])],34))}}),Pn=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 b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(w=>{let k=i.isRef(w)?w.value:w;return{label:_(k),value:h(k),selectionLabel:p(k)}}),b}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>{var w;return b.label.toLocaleLowerCase().indexOf((w=s.value)==null?void 0:w.toLowerCase())>-1}):a.value),u=i.computed(()=>{var b,w;return r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(E=>E===null?"__null__":E)||[]:r.modelValue===null?"__null__":r.selectByObject?((b=r.modelValue)==null?void 0:b.value)||((w=r.modelValue)==null?void 0:w.id):r.modelValue}),d=i.computed(()=>{let b=u.value;r.multiple||(b=b||b===0?[b]:[]);const w=b.map(k=>k==="__null__"?null:typeof k=="object"?k.value||k.id:k);return a.value.filter(k=>w.includes(k.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),m=i.computed(()=>d.value.slice(0,r.chipLimit));function _(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)||b&&b[r.optionLabel]}function h(b){if(!b||typeof b=="string")return b;let w=b.value!==void 0?b.value:b.id;return typeof r.optionValue=="string"?w=b[r.optionValue]:typeof r.optionValue=="function"&&(w=r.optionValue(b)),w===null?"__null__":w}function g(b){Array.isArray(b)&&(b=b.map(w=>w==="__null__"?null:w)),b=b==="__null__"?null:b,r.selectByObject&&b!==null&&b!==void 0&&typeof b!="object"&&(r.multiple?b=r.options.filter(w=>b.includes(h(w))):b=r.options.find(w=>h(w)===b)),n("update:model-value",b),n("update",b)}const y=i.ref(!1);async function x(b,w){if(!r.filterFn)s.value=b,await i.nextTick(w);else{if(w(),!y.value)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function B(){l.value=!0,y.value=!1,i.nextTick(()=>{y.value=!0,o.value.focus()})}function T(){l.value=!1,y.value=!1}return(b,w)=>{const k=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[b.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:b.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(pe.QSelect),i.mergeProps({ref_key:"selectField",ref:o},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":b.filterable,"hide-selected":b.filterable&&l.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[b.inputClass]:!0},class:["max-w-full dx-select-field",b.selectClass],onFilter:x,onClear:C,onPopupShow:B,onPopupHide:T,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(np),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[b.$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":b.chipLimit===1,"dx-selected-chips":m.value.length>0,[b.selectionClass]:!0}])},[m.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,E=>(i.openBlock(),i.createBlock(k,{key:"selected-"+E.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>m.value.length?(i.openBlock(),i.createBlock(k,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-m.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(b.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([b.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(Pn),{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(cn),{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"])]))}},yg={__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(rs),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},bg={key:0,class:"font-bold text-xs mb-2"},wg={class:"flex items-center flex-nowrap cursor-pointer"},kg={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},To={__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?rp:r.percent?Ja:cp)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(m){const _=r.percent?100:1;c.value={from:m!=null&&m.from?m.from*_:void 0,to:m!=null&&m.to?m.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(m){return m===void 0?"No Limit":r.currency?Ni(m):r.percent?t_(m,{multiplier:1,maximumFractionDigits:2}):Ot(m)}const f=an(()=>{if(c.value&&(c.value.from||c.value.to)){const m=r.percent?.01:1;let _={from:c.value.from?c.value.from*m:void 0,to:c.value.to?c.value.to*m:void 0};n("update:model-value",_)}},r.debounce);return(m,_)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",bg,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",wg,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",kg,[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(Nr),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=h=>c.value.from=h),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Nr),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=h=>c.value.to=h),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},xg=["data-dusk","onClick"],Sg={__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),m=f;r.multiple?(m=[...r.modelValue],c(f)?m=m.filter(_=>_!==f):m.push(f)):m===r.modelValue&&(m=null),n("update:modelValue",m)}return(d,f)=>{const m=i.resolveComponent("QCheckbox"),_=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(cs),{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:h=>u(p)},[i.createVNode(m,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(h=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,xg))),128))]),_:3},8,["show","title"]),i.createVNode(_,{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)])}}},Cg={class:"group flex items-center flex-nowrap gap-x-2 relative"},Eg=["onClick"],Tg={class:"flex-grow px-4 py-2"},Bg={class:"px-4 mb-2"},Ng=i.defineComponent({__name:"SelectionMenuField",props:i.mergeModels({options:{},selectionType:{default:"object"},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},disabled:{type:Boolean},editDisabled:{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=t,o=i.ref(!1),s=i.computed(()=>!e.value||r.options.find(u=>a(u)===a(e.value))?r.options:[e.value,...r.options]);function l(u){return typeof u=="object"?u:r.options.find(d=>typeof d=="object"?a(d)===u:d===u)}function a(u){return u=l(u),(u==null?void 0:u.id)||(u==null?void 0:u.value)||(u==null?void 0:u.name)||u}function c(u){return u=l(u),(u==null?void 0:u.name)||(u==null?void 0:u.label)||(u==null?void 0:u.value)||u}return(u,d)=>{const f=i.resolveComponent("QSeparator"),m=i.resolveComponent("QMenu"),_=i.resolveComponent("QBtn"),p=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("div",Cg,[u.selectable?(i.openBlock(),i.createBlock(i.unref(So),{key:0,modelValue:o.value,"onUpdate:modelValue":d[3]||(d[3]=h=>o.value=h),disabled:u.disabled,label:u.selectText,saving:u.loading,class:i.normalizeClass(u.selectClass),"show-icon":u.selectIcon||i.unref(rh),size:u.size},{default:i.withCtx(()=>[i.createVNode(m,{"model-value":o.value,onBeforeHide:d[1]||(d[1]=h=>o.value=!1),onHide:d[2]||(d[2]=h=>o.value=!1)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:a(h),class:i.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":a(e.value)===a(h),"hover:bg-slate-600":a(e.value)!==a(h)}]),onClick:g=>e.value=u.selectionType==="object"?h:a(h)},[i.createElementVNode("div",Tg,i.toDisplayString(c(h)),1),u.deletable?(i.openBlock(),i.createBlock(i.unref(xo),{key:0,type:"trash",class:"ml-4 mr-2",size:u.size,onClick:i.withModifiers(g=>u.$emit("delete",h),["stop","prevent"])},null,8,["size","onClick"])):i.createCommentVNode("",!0)],10,Eg)),[[p]])),128)),u.creatable?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(f,{class:"bg-slate-400 my-2"}),i.createElementVNode("div",Bg,[i.createVNode(i.unref(xo),{type:"create",color:"green",class:i.normalizeClass(u.createClass),label:u.createText,saving:u.loading,size:u.size,onClick:d[0]||(d[0]=h=>u.$emit("create"))},null,8,["class","label","saving","size"])])],64)):i.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disabled","label","saving","class","show-icon","size"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(u.labelClass)},[e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[u.nameEditable?(i.openBlock(),i.createBlock(i.unref(dc),{key:0,"model-value":c(e.value),color:"slate-600","onUpdate:modelValue":d[4]||(d[4]=h=>u.$emit("update",{name:h}))},null,8,["model-value"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(c(e.value)),1)],64))],64)):i.renderSlot(u.$slots,"no-selection",{key:1},()=>[i.createTextVNode(i.toDisplayString(u.placeholder),1)])],2),u.editable&&e.value?(i.openBlock(),i.createBlock(i.unref(So),{key:1,modelValue:n.value,"onUpdate:modelValue":d[5]||(d[5]=h=>n.value=h),label:u.editText,class:i.normalizeClass(u.editClass),size:u.size,disabled:u.editDisabled,"show-icon":i.unref(Mn),"hide-icon":i.unref(Ji),tooltip:u.editDisabled?"You are not allowed to edit":""},null,8,["modelValue","label","class","size","disabled","show-icon","hide-icon","tooltip"])):i.createCommentVNode("",!0),u.clearable&&e.value?(i.openBlock(),i.createBlock(_,{key:2,label:u.clearText,class:i.normalizeClass([u.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:d[6]||(d[6]=h=>e.value=null)},{default:i.withCtx(()=>[i.createVNode(i.unref(Va),{class:"w-4"})]),_:1},8,["label","class"])):i.createCommentVNode("",!0)])}}}),Ig={class:"flex items-stretch flex-nowrap gap-x-4"},$g=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",Ig,[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(za),{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(So),{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=l=>n.value=l),disabled:!r.canEdit,label:r.editText,class:i.normalizeClass(r.editClass),"show-icon":i.unref(Mn)},null,8,["modelValue","disabled","label","class","show-icon"])):i.createCommentVNode("",!0),i.createVNode(i.unref(Pn),{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"])])}}}),Fg={key:0,class:"text-zinc-500"},Ag={key:1},Og={class:"text-xs text-zinc-500"},pc=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",Fg," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(Pn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":m=>m,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(i.openBlock(),i.createElementBlock("div",Ag,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,m=>(i.openBlock(),i.createBlock(f,{key:m.id,"model-value":l.value.includes(m.id),field:m,class:"mt-3","onUpdate:modelValue":_=>a(m)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(m.label),1),i.createElementVNode("div",Og,i.toDisplayString(m.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),Dg={key:1,class:"text-sm mt-2"},vg={key:3,class:"py-1"},gc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disabled:{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}=K1();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(mt),{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.disabled&&!u.readonly?(i.openBlock(),i.createElementBlock("div",Dg,[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(Ir),{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.disabled&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",vg," -- ")):i.createCommentVNode("",!0)],34))}}),Mg={class:"dx-slider-number-field"},Pg=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",Mg,[i.createVNode(i.unref(mt),{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 Lg=["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"],Vg=function(t){return Lg.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Rg=function(t,e,n){Object.keys(e).filter(Vg).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)}))})},Ug=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}))})},zg=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&Ug(e,n,r,o),Rg(t,n.attrs,r)},yc=0,bc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return yc++,t+"_"+n+yc+String(e)},qg=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},wc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Hg=function(t,e){return wc(t).concat(wc(e))},Gg=function(t){return t==null},kc=function(){return{listeners:[],scriptId:bc("tiny-script"),scriptLoaded:!1}},Zg=function(){var t=kc(),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=kc()};return{load:n,reinitialize:r}},Wg=Zg(),jg=function(){return typeof window<"u"?window:global},un=function(){var t=jg();return t&&t.tinymce?t.tinymce:null},Yg={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"}}},_t=function(){return _t=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},_t.apply(this,arguments)},Kg=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},Qg=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ls={selector:void 0,target:void 0},Xg=i.defineComponent({props:Yg,setup:function(t,e){var n=t.init?_t(_t({},t.init),ls):_t({},ls),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||bc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],m=!0,_=t.initialValue?t.initialValue:"",p="",h=function(x){return f?function(){return s!=null&&s.value?s.value:""}:function(){return x?_:p}},g=function(){var x=h(m),C=_t(_t({},n),{readonly:t.disabled,target:a.value,plugins:Hg(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(B){c=B,B.on("init",function(T){return zg(T,t,e,B,s,x)}),typeof n.setup=="function"&&n.setup(B)}});qg(a.value)&&(a.value.style.visibility=""),un().init(C),m=!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=un())===null||C===void 0||C.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(un()!==null)g();else if(a.value&&a.value.ownerDocument){var x=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",B=Gg(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(x,"/tinymce.min.js"):t.tinymceScriptSrc;Wg.load(a.value.ownerDocument,B,g)}}),i.onBeforeUnmount(function(){un()!==null&&un().remove(c)}),d||(i.onActivated(function(){m||g()}),i.onDeactivated(function(){var x;f||(p=c.getContent()),(x=un())===null||x===void 0||x.remove(c)}));var y=function(x){var C;p=c.getContent(),(C=un())===null||C===void 0||C.remove(c),n=_t(_t(_t({},n),x),ls),i.nextTick(function(){return g()})};return e.expose({rerender:y,getEditor:function(){return c}}),function(){return d?Kg(i.h,u,a,t.tagName):Qg(i.h,u,a)}}});const Jg=["innerHTML"],xc={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disabled: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(mt),{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,Jg)):(i.openBlock(),i.createBlock(i.unref(Xg),{key:2,class:"mt-2","api-key":i.unref(ee).tinyMceApiKey,disabled:t.disabled,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},Sc=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(Bi)(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)}}}),ey={class:"dx-rendered-form"},ty={key:0,class:"mb-4"},ny={class:"flex flex-nowrap items-center text-sm w-full"},ry={key:0,class:"variation-missing-icon pl-1"},oy={class:"flex-grow"},iy={key:1,class:"flex flex-nowrap items-center mr-2"},sy=["onClick"],ly=["onClick"],as=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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:ns,DATE:os,DATE_RANGE:is,INTEGER:mc,NUMBER:Nr,TEXT:cn,SINGLE_FILE:gc,MULTI_FILE:_c,WYSIWYG:xc},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]=y(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:y(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disabled:n.disabled,disable:n.disabled,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]||""),m=i.ref(""),_=i.ref(!1),p=i.ref(""),h=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disabled&&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 y(N){var I;return(I=g(N))==null?void 0:I.value}function x(N,I){const A=g(N),v={name:N,variation:f.value||"",value:I===void 0?n.emptyValue:I},j=ol(l.value,A,v,!0);C(j)}function C(N){let I=N;Array.isArray(n.values)||(I=N.reduce((A,v)=>(A[v.name]=v.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",B)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",B)});function B(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(N){return n.form.fields.map(I=>({variation:N,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function b(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=T(""));const I=d.value[d.value.length-1],A=kd(I||"1"),v=T(A);C([...N,...v]),f.value=A}function w(){if(!m.value)return;if(d.value.includes(m.value)){Ve.error("Variation name already exists");return}const N=l.value.map(I=>I.variation===_.value?{...I,variation:m.value}:I);C(N),f.value=m.value,_.value=!1,m.value=""}function k(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 E(N){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const v=g(A.name,N),j=!!v&&v.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=j:j})}return(N,I)=>{const A=i.resolveComponent("QTooltip"),v=i.resolveComponent("QTab"),j=i.resolveComponent("QSpinnerBall"),X=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",ey,[N.form.variations>1?(i.openBlock(),i.createElementBlock("div",ty,[i.createVNode(X,{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,K)=>(i.openBlock(),i.createBlock(v,{key:M,name:M,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",ny,[E(M)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",ry,[i.createVNode(i.unref(Ha),{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",oy,i.toDisplayString(M||"1"),1),!N.disabled&&!N.readonly&&N.canModifyVariations?(i.openBlock(),i.createElementBlock("div",iy,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=M)&&(m.value=M)},[i.createVNode(i.unref(Ga),{class:"w-3 text-blue-900"})],8,sy),K>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:de=>p.value=M},[i.createVNode(i.unref(Co),{class:"w-3 text-red-900"})],8,ly)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),h.value?(i.openBlock(),i.createBlock(v,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:b},{default:i.withCtx(()=>[N.saving?(i.openBlock(),i.createBlock(j,{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,K)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:M.id,class:i.normalizeClass({"mt-4":K>0,[N.fieldClass]:!0})},[M.vnode?(i.openBlock(),i.createBlock(i.unref(dn),{key:0,vnode:M.vnode,props:u(M),params:a.value,"onUpdate:modelValue":de=>x(M.name,de)},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":y(M.name),field:M,label:M.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:M.clearable||N.clearable,disabled:N.disabled,disable:N.disabled,readonly:N.readonly,"onUpdate:modelValue":de=>x(M.name,de)},null,8,["model-value","field","label","no-label","show-name","clearable","disabled","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(M)]])),128)),i.renderSlot(N.$slots,"default"),i.createVNode(i.unref(Sc),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),_.value!==!1?(i.openBlock(),i.createBlock(i.unref(Tt),{key:1,title:"Change variation name",onConfirm:w,onClose:I[2]||(I[2]=M=>_.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(cn),{modelValue:m.value,"onUpdate:modelValue":I[1]||(I[1]=M=>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=>k(p.value)),onClose:I[4]||(I[4]=M=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),Cc=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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,disabled:r.disabled,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,u=>{var d;if(u)for(let f of r.form.fields)(d=l[f.name])!=null&&d.isSaving||(s.value[f.name]=u[f.name])});const a=i.computed(()=>{for(let u of r.form.fields){const d=s.value[u.name];if(u.required&&!d&&d!==!1&&d!==0)return!1}return!0});async function c(){a.value&&(await r.action.trigger(r.target,s.value),n("saved"))}return(u,d)=>(i.openBlock(),i.createBlock(as,i.mergeProps(o,{values:s.value,"onUpdate:values":[d[0]||(d[0]=f=>s.value=f),c],"empty-value":"","saved-at":u.hideSavedAt?void 0:u.target.updated_at,saving:u.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),ay=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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,disabled:e.disabled,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(as),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"]))}}),cy={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},uy={class:"max-h-full",preload:"auto"},dy=["src","type"],fy={key:2,class:"flex items-center justify-center h-full"},my={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},_y={key:1,class:"absolute-bottom w-full bg-slate-800"},hy={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},py={class:"whitespace-nowrap overflow-hidden ellipsis"},gy={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},yy={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Ir=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"},showTranscodes:{type:Boolean}},emits:["remove"],setup(t,{emit:e}){var w;const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var k;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((k=r.src.split(".").pop())==null?void 0:k.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.shallowRef(((w=r.file)==null?void 0:w.transcodes)||null),a=i.computed(()=>{var k;return!r.file||((k=r.file)==null?void 0:k.progress)!==void 0}),c=i.computed(()=>{var k;return a.value?"Uploading...":(k=C.value)==null?void 0:k.message}),u=i.computed(()=>{var k;return((k=r.relatedFiles)==null?void 0:k.length)>0?wd([s.value,...r.showTranscodes?l.value||[]:r.relatedFiles],d):[s.value]});function d(k,E){var N,I,A,v;return k.id===E.id||[E.url,(N=E.optimized)==null?void 0:N.url,(I=E.thumb)==null?void 0:I.url].includes(k.url)||[k.url,(A=k.optimized)==null?void 0:A.url,(v=k.thumb)==null?void 0:v.url].includes(E.url)}const f=i.computed(()=>{var k,E;return((k=s.value)==null?void 0:k.name)||((E=s.value)==null?void 0:E.filename)||""}),m=i.computed(()=>{var k,E;return((k=s.value)==null?void 0:k.type)||((E=s.value)==null?void 0:E.mime)||""}),_=i.computed(()=>!!m.value.match(/^image\//)),p=i.computed(()=>!!m.value.match(/^video\//)),h=i.computed(()=>!!m.value.match(/^application\/pdf/)),g=i.computed(()=>{var k,E,N,I;return((E=(k=s.value)==null?void 0:k.optimized)==null?void 0:E.url)||((N=s.value)==null?void 0:N.blobUrl)||((I=s.value)==null?void 0:I.url)}),y=i.computed(()=>{var k,E;return(E=(k=s.value)==null?void 0:k.thumb)==null?void 0:E.url}),x=i.computed(()=>!!y.value||p.value||_.value),C=i.computed(()=>{var N,I;let k=null;const E=((I=(N=r.file)==null?void 0:N.meta)==null?void 0:I.transcodes)||[];for(let A of Object.keys(E)){const v=E[A];if(!["Complete","Timeout"].includes(v==null?void 0:v.status))return{...v,message:`${A} ${v.status}`}}return k}),B=i.ref(!1);function T(){B.value?n("remove"):(B.value=!0,setTimeout(()=>{B.value=!1},2e3))}async function b(){if(o.value=!0,r.showTranscodes&&r.file&&!l.value){const k=await ee.value.fileUpload.refreshFile(r.file.id);l.value=k.transcodes||[]}}return(k,E)=>{var X,M,K,de;const N=i.resolveComponent("QImg"),I=i.resolveComponent("QTooltip"),A=i.resolveComponent("QSpinnerPie"),v=i.resolveComponent("QLinearProgress"),j=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!k.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:b},[p.value?(i.openBlock(),i.createElementBlock("div",cy,[i.createElementVNode("video",uy,[i.createElementVNode("source",{src:g.value+"#t=0.1",type:m.value},null,8,dy)]),i.createElementVNode("button",{class:i.normalizeClass(k.cls["play-button"])},[i.createVNode(i.unref(dp),{class:"w-16"})],2)])):i.createCommentVNode("",!0),y.value||x.value?(i.openBlock(),i.createBlock(N,{key:1,fit:k.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(y.value||g.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",fy,[h.value?(i.openBlock(),i.createBlock(i.unref(Xa),{key:0,class:"w-3/4"})):(i.openBlock(),i.createBlock(i.unref(op),{key:1,class:"w-3/4"})),f.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[k.showFilename?(i.openBlock(),i.createElementBlock("div",my,i.toDisplayString(f.value),1)):(i.openBlock(),i.createBlock(I,{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.value),1)]),_:1}))],64)):i.createCommentVNode("",!0)]))]),k.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(k.cls["action-button"])},[i.renderSlot(k.$slots,"action-button")],2)):i.createCommentVNode("",!0),a.value||C.value?(i.openBlock(),i.createElementBlock("div",_y,[(i.openBlock(),i.createBlock(v,{key:"progress-"+a.value?"uploading":"transcoding",value:a.value?k.file.progress:(((X=C.value)==null?void 0:X.progress)||0)/100,size:"36px",color:a.value?"green-800":"blue-800","animation-speed":((M=C.value)==null?void 0:M.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",hy,[i.createVNode(A,{class:"mr-2 text-slate-50 ml-1 flex-shrink-0",size:k.btnSize==="xs"?10:20},null,8,["size"]),c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",py,i.toDisplayString(c.value),1),i.createVNode(I,{class:"text-sm"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),_:1})],64)):i.createCommentVNode("",!0)])]),_:1},8,["value","color","animation-speed"]))])):i.createCommentVNode("",!0)],64)):i.renderSlot(k.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(k.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",gy,[k.downloadable&&((K=s.value)!=null&&K.url)?(i.openBlock(),i.createBlock(j,{key:0,size:k.btnSize,class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",k.downloadButtonClass]),onClick:E[0]||(E[0]=i.withModifiers(sn=>i.unref($i)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(sp),{class:"w-4 h-5"})]),_:1},8,["size","class"])):i.createCommentVNode("",!0),k.removable?(i.openBlock(),i.createBlock(j,{key:1,size:k.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(T,["stop"])},{default:i.withCtx(()=>[B.value?(i.openBlock(),i.createElementBlock("div",yy," ? ")):(i.openBlock(),i.createBlock(i.unref(Co),{key:1,class:"w-3"}))]),_:1},8,["size"])):i.createCommentVNode("",!0)]),o.value&&!k.disabled&&u.value?(i.openBlock(),i.createBlock(i.unref(cc),{key:2,files:u.value,"default-slide":((de=u.value[0])==null?void 0:de.id)||"",onClose:E[1]||(E[1]=sn=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1st2u_1","!visible":"_!visible_1st2u_1",visible:"_visible_1st2u_1",collapse:"_collapse_1st2u_1",static:"_static_1st2u_1",absolute:"_absolute_1st2u_1",relative:"_relative_1st2u_1",sticky:"_sticky_1st2u_1","left-0":"_left-0_1st2u_1","right-0":"_right-0_1st2u_1","right-1":"_right-1_1st2u_1","top-0":"_top-0_1st2u_1","top-1":"_top-1_1st2u_1","z-10":"_z-10_1st2u_1","m-2":"_m-2_1st2u_1","m-4":"_m-4_1st2u_1","m-auto":"_m-auto_1st2u_1","mx-1":"_mx-1_1st2u_1","mx-4":"_mx-4_1st2u_1","mx-auto":"_mx-auto_1st2u_1","my-2":"_my-2_1st2u_1","!mr-1":"_!mr-1_1st2u_1","mb-2":"_mb-2_1st2u_1","mb-4":"_mb-4_1st2u_1","ml-1":"_ml-1_1st2u_1","ml-2":"_ml-2_1st2u_1","ml-2.5":"_ml-2.5_1st2u_1","ml-3":"_ml-3_1st2u_1","ml-4":"_ml-4_1st2u_1","ml-5":"_ml-5_1st2u_1","ml-[-.2em]":"_ml-[-.2em]_1st2u_1","mr-1":"_mr-1_1st2u_1","mr-2":"_mr-2_1st2u_1","mr-3":"_mr-3_1st2u_1","mr-4":"_mr-4_1st2u_1","mt-1":"_mt-1_1st2u_1","mt-2":"_mt-2_1st2u_1","mt-3":"_mt-3_1st2u_1","mt-4":"_mt-4_1st2u_1",block:"_block_1st2u_1","inline-block":"_inline-block_1st2u_1",inline:"_inline_1st2u_1",flex:"_flex_1st2u_1",table:"_table_1st2u_1",hidden:"_hidden_1st2u_1","h-10":"_h-10_1st2u_1","h-12":"_h-12_1st2u_1","h-16":"_h-16_1st2u_1","h-4":"_h-4_1st2u_1","h-5":"_h-5_1st2u_1","h-6":"_h-6_1st2u_1","h-8":"_h-8_1st2u_1","h-96":"_h-96_1st2u_1","h-[2.25rem]":"_h-[2.25rem]_1st2u_1","h-full":"_h-full_1st2u_1","max-h-full":"_max-h-full_1st2u_1","min-h-10":"_min-h-10_1st2u_1","w-10":"_w-10_1st2u_1","w-16":"_w-16_1st2u_1","w-2":"_w-2_1st2u_1","w-2/5":"_w-2/5_1st2u_1","w-24":"_w-24_1st2u_1","w-3":"_w-3_1st2u_1","w-3/4":"_w-3/4_1st2u_1","w-3/5":"_w-3/5_1st2u_1","w-32":"_w-32_1st2u_1","w-4":"_w-4_1st2u_1","w-48":"_w-48_1st2u_1","w-5":"_w-5_1st2u_1","w-6":"_w-6_1st2u_1","w-7":"_w-7_1st2u_1","w-72":"_w-72_1st2u_1","w-8":"_w-8_1st2u_1","w-96":"_w-96_1st2u_1","w-[13.5rem]":"_w-[13.5rem]_1st2u_1","w-[6.5rem]":"_w-[6.5rem]_1st2u_1","w-[60vw]":"_w-[60vw]_1st2u_1","w-full":"_w-full_1st2u_1","!min-w-0":"_!min-w-0_1st2u_1","min-w-10":"_min-w-10_1st2u_1","min-w-96":"_min-w-96_1st2u_1","max-w-full":"_max-w-full_1st2u_1","flex-shrink":"_flex-shrink_1st2u_1","flex-shrink-0":"_flex-shrink-0_1st2u_1",shrink:"_shrink_1st2u_1","flex-grow":"_flex-grow_1st2u_1",grow:"_grow_1st2u_1","rotate-180":"_rotate-180_1st2u_1",transform:"_transform_1st2u_1","cursor-ew-resize":"_cursor-ew-resize_1st2u_1","cursor-move":"_cursor-move_1st2u_1","cursor-not-allowed":"_cursor-not-allowed_1st2u_1","cursor-ns-resize":"_cursor-ns-resize_1st2u_1","cursor-pointer":"_cursor-pointer_1st2u_1",resize:"_resize_1st2u_1","flex-col":"_flex-col_1st2u_1","flex-nowrap":"_flex-nowrap_1st2u_1","items-center":"_items-center_1st2u_1","items-stretch":"_items-stretch_1st2u_1","justify-start":"_justify-start_1st2u_1","justify-end":"_justify-end_1st2u_1","justify-center":"_justify-center_1st2u_1","justify-between":"_justify-between_1st2u_1","gap-x-2":"_gap-x-2_1st2u_1","gap-x-4":"_gap-x-4_1st2u_1","gap-y-0":"_gap-y-0_1st2u_1","gap-y-1":"_gap-y-1_1st2u_1","space-x-1":"_space-x-1_1st2u_1","space-x-2":"_space-x-2_1st2u_1","self-center":"_self-center_1st2u_1","overflow-auto":"_overflow-auto_1st2u_1","overflow-hidden":"_overflow-hidden_1st2u_1","overflow-y-auto":"_overflow-y-auto_1st2u_70","overflow-x-hidden":"_overflow-x-hidden_1st2u_1","scroll-smooth":"_scroll-smooth_1st2u_1","overflow-ellipsis":"_overflow-ellipsis_1st2u_1","whitespace-normal":"_whitespace-normal_1st2u_1","whitespace-nowrap":"_whitespace-nowrap_1st2u_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1st2u_1",rounded:"_rounded_1st2u_1","rounded-2xl":"_rounded-2xl_1st2u_1","rounded-full":"_rounded-full_1st2u_1","rounded-lg":"_rounded-lg_1st2u_1","rounded-md":"_rounded-md_1st2u_1","rounded-sm":"_rounded-sm_1st2u_1","!rounded-l-none":"_!rounded-l-none_1st2u_1","!rounded-r-none":"_!rounded-r-none_1st2u_1","rounded-b-lg":"_rounded-b-lg_1st2u_1","rounded-l-lg":"_rounded-l-lg_1st2u_1","rounded-r-lg":"_rounded-r-lg_1st2u_1","rounded-t-lg":"_rounded-t-lg_1st2u_1","rounded-t-md":"_rounded-t-md_1st2u_1","!border-0":"_!border-0_1st2u_1",border:"_border_1st2u_1","border-b":"_border-b_1st2u_1","border-l":"_border-l_1st2u_1","border-l-0":"_border-l-0_1st2u_1","border-r":"_border-r_1st2u_1","border-solid":"_border-solid_1st2u_1","border-dashed":"_border-dashed_1st2u_1","border-none":"_border-none_1st2u_1","border-blue-600":"_border-blue-600_1st2u_1","border-blue-700":"_border-blue-700_1st2u_1","border-gray-200":"_border-gray-200_1st2u_1","border-gray-300":"_border-gray-300_1st2u_1","border-slate-200":"_border-slate-200_1st2u_1","bg-amber-950":"_bg-amber-950_1st2u_1","bg-black":"_bg-black_1st2u_1","bg-blue-200":"_bg-blue-200_1st2u_1","bg-blue-300":"_bg-blue-300_1st2u_1","bg-blue-600":"_bg-blue-600_1st2u_1","bg-blue-900":"_bg-blue-900_1st2u_1","bg-blue-950":"_bg-blue-950_1st2u_1","bg-emerald-200":"_bg-emerald-200_1st2u_1","bg-gray-100":"_bg-gray-100_1st2u_1","bg-gray-200":"_bg-gray-200_1st2u_1","bg-gray-400":"_bg-gray-400_1st2u_1","bg-gray-500":"_bg-gray-500_1st2u_1","bg-gray-800":"_bg-gray-800_1st2u_1","bg-green-200":"_bg-green-200_1st2u_1","bg-green-300":"_bg-green-300_1st2u_1","bg-green-900":"_bg-green-900_1st2u_1","bg-green-950":"_bg-green-950_1st2u_1","bg-lime-300":"_bg-lime-300_1st2u_1","bg-orange-900":"_bg-orange-900_1st2u_1","bg-red-200":"_bg-red-200_1st2u_1","bg-red-300":"_bg-red-300_1st2u_1","bg-red-900":"_bg-red-900_1st2u_1","bg-red-950":"_bg-red-950_1st2u_1","bg-sky-300":"_bg-sky-300_1st2u_1","bg-sky-800":"_bg-sky-800_1st2u_1","bg-sky-900":"_bg-sky-900_1st2u_1","bg-sky-950":"_bg-sky-950_1st2u_1","bg-slate-100":"_bg-slate-100_1st2u_1","bg-slate-300":"_bg-slate-300_1st2u_1","bg-slate-400":"_bg-slate-400_1st2u_1","bg-slate-500":"_bg-slate-500_1st2u_1","bg-slate-600":"_bg-slate-600_1st2u_1","bg-slate-700":"_bg-slate-700_1st2u_1","bg-slate-800":"_bg-slate-800_1st2u_1","bg-slate-900":"_bg-slate-900_1st2u_1","bg-slate-950":"_bg-slate-950_1st2u_1","bg-transparent":"_bg-transparent_1st2u_1","bg-white":"_bg-white_1st2u_1","bg-yellow-300":"_bg-yellow-300_1st2u_1","bg-yellow-800":"_bg-yellow-800_1st2u_1","bg-yellow-950":"_bg-yellow-950_1st2u_1","!bg-none":"_!bg-none_1st2u_1","!p-2":"_!p-2_1st2u_1","p-0":"_p-0_1st2u_1","p-1":"_p-1_1st2u_1","p-2":"_p-2_1st2u_1","p-3":"_p-3_1st2u_1","p-4":"_p-4_1st2u_1","p-8":"_p-8_1st2u_1","!py-0":"_!py-0_1st2u_1","px-1":"_px-1_1st2u_1","px-1.5":"_px-1.5_1st2u_1","px-12":"_px-12_1st2u_1","px-2":"_px-2_1st2u_1","px-2.5":"_px-2.5_1st2u_1","px-3":"_px-3_1st2u_1","px-4":"_px-4_1st2u_1","px-6":"_px-6_1st2u_1","px-8":"_px-8_1st2u_1","py-0":"_py-0_1st2u_1","py-1":"_py-1_1st2u_1","py-1.5":"_py-1.5_1st2u_1","py-14":"_py-14_1st2u_1","py-2":"_py-2_1st2u_1","py-3":"_py-3_1st2u_1","py-4":"_py-4_1st2u_1","py-5":"_py-5_1st2u_1","py-8":"_py-8_1st2u_1","pl-1":"_pl-1_1st2u_1","pt-3":"_pt-3_1st2u_1","text-left":"_text-left_1st2u_1","text-center":"_text-center_1st2u_1","text-[.7rem]":"_text-[.7rem]_1st2u_1","text-[1rem]":"_text-[1rem]_1st2u_1","text-base":"_text-base_1st2u_1","text-lg":"_text-lg_1st2u_1","text-sm":"_text-sm_1st2u_1","text-xs":"_text-xs_1st2u_1","font-bold":"_font-bold_1st2u_1","font-medium":"_font-medium_1st2u_1","font-semibold":"_font-semibold_1st2u_1",uppercase:"_uppercase_1st2u_1","leading-[1.2rem]":"_leading-[1.2rem]_1st2u_1","!text-green-900":"_!text-green-900_1st2u_1","!text-red-900":"_!text-red-900_1st2u_1","!text-sky-900":"_!text-sky-900_1st2u_1","!text-white":"_!text-white_1st2u_1","!text-yellow-900":"_!text-yellow-900_1st2u_1","text-amber-400":"_text-amber-400_1st2u_1","text-blue-300":"_text-blue-300_1st2u_1","text-blue-400":"_text-blue-400_1st2u_1","text-blue-600":"_text-blue-600_1st2u_1","text-blue-900":"_text-blue-900_1st2u_1","text-gray-300":"_text-gray-300_1st2u_1","text-gray-400":"_text-gray-400_1st2u_1","text-gray-500":"_text-gray-500_1st2u_1","text-gray-600":"_text-gray-600_1st2u_1","text-gray-700":"_text-gray-700_1st2u_1","text-green-300":"_text-green-300_1st2u_1","text-green-400":"_text-green-400_1st2u_1","text-green-700":"_text-green-700_1st2u_1","text-green-900":"_text-green-900_1st2u_1","text-lime-900":"_text-lime-900_1st2u_1","text-orange-400":"_text-orange-400_1st2u_1","text-red-400":"_text-red-400_1st2u_1","text-red-500":"_text-red-500_1st2u_1","text-red-800":"_text-red-800_1st2u_1","text-red-900":"_text-red-900_1st2u_1","text-sky-400":"_text-sky-400_1st2u_1","text-sky-900":"_text-sky-900_1st2u_1","text-slate-200":"_text-slate-200_1st2u_1","text-slate-300":"_text-slate-300_1st2u_1","text-slate-400":"_text-slate-400_1st2u_1","text-slate-50":"_text-slate-50_1st2u_1","text-slate-500":"_text-slate-500_1st2u_1","text-slate-600":"_text-slate-600_1st2u_1","text-slate-800":"_text-slate-800_1st2u_1","text-slate-900":"_text-slate-900_1st2u_1","text-white":"_text-white_1st2u_1","text-yellow-300":"_text-yellow-300_1st2u_1","text-yellow-400":"_text-yellow-400_1st2u_1","text-yellow-600":"_text-yellow-600_1st2u_1","text-zinc-500":"_text-zinc-500_1st2u_1","text-zinc-800":"_text-zinc-800_1st2u_1","line-through":"_line-through_1st2u_1","opacity-0":"_opacity-0_1st2u_1","opacity-20":"_opacity-20_1st2u_1","opacity-50":"_opacity-50_1st2u_1","opacity-70":"_opacity-70_1st2u_1","opacity-80":"_opacity-80_1st2u_1","shadow-none":"_shadow-none_1st2u_1","outline-none":"_outline-none_1st2u_1",outline:"_outline_1st2u_1","outline-offset-0":"_outline-offset-0_1st2u_1",filter:"_filter_1st2u_1",transition:"_transition_1st2u_1","transition-all":"_transition-all_1st2u_1","duration-300":"_duration-300_1st2u_1","danx-app":"_danx-app_1st2u_4","q-tab":"_q-tab_1st2u_4","q-table__card":"_q-table__card_1st2u_7","q-checkbox__inner":"_q-checkbox__inner_1st2u_11","q-toolbar":"_q-toolbar_1st2u_14","q-notification__actions":"_q-notification__actions_1st2u_19","q-date":"_q-date_1st2u_22","q-date__view":"_q-date__view_1st2u_25","q-field":"_q-field_1st2u_28","q-field--auto-height":"_q-field--auto-height_1st2u_28","q-field__control":"_q-field__control_1st2u_28","q-field__native":"_q-field__native_1st2u_31","q-field--labeled":"_q-field--labeled_1st2u_35","q-field__control-container":"_q-field__control-container_1st2u_35","q-textarea":"_q-textarea_1st2u_38","q-field__marginal":"_q-field__marginal_1st2u_41","q-field__input":"_q-field__input_1st2u_41","q-field__label":"_q-field__label_1st2u_41","q-btn":"_q-btn_1st2u_48","q-item":"_q-item_1st2u_56","q-tab-panels":"_q-tab-panels_1st2u_60","q-panel":"_q-panel_1st2u_64",scroll:"_scroll_1st2u_67","dx-dialog":"_dx-dialog_1st2u_74","q-card__section--vert":"_q-card__section--vert_1st2u_74","q-banner":"_q-banner_1st2u_78",app:"_app_1st2u_1","main-layout":"_main-layout_1st2u_1","is-disabled":"_is-disabled_1st2u_95","disable-all-transitions":"_disable-all-transitions_1st2u_100","v-enter-active":"_v-enter-active_1st2u_104","v-leave-active":"_v-leave-active_1st2u_105","v-enter-from":"_v-enter-from_1st2u_109","v-leave-to":"_v-leave-to_1st2u_110","dx-action-table":"_dx-action-table_1st2u_114","dx-column-shrink":"_dx-column-shrink_1st2u_114","action-button":"_action-button_1st2u_118","play-button":"_play-button_1st2u_125","hover:bg-blue-200":"_hover:bg-blue-200_1st2u_1","hover:bg-blue-400":"_hover:bg-blue-400_1st2u_1","hover:bg-blue-800":"_hover:bg-blue-800_1st2u_1","hover:bg-gray-200":"_hover:bg-gray-200_1st2u_1","hover:bg-green-100":"_hover:bg-green-100_1st2u_1","hover:bg-green-400":"_hover:bg-green-400_1st2u_1","hover:bg-green-800":"_hover:bg-green-800_1st2u_1","hover:bg-lime-400":"_hover:bg-lime-400_1st2u_1","hover:bg-orange-800":"_hover:bg-orange-800_1st2u_1","hover:bg-red-100":"_hover:bg-red-100_1st2u_1","hover:bg-red-200":"_hover:bg-red-200_1st2u_1","hover:bg-red-400":"_hover:bg-red-400_1st2u_1","hover:bg-sky-400":"_hover:bg-sky-400_1st2u_1","hover:bg-sky-800":"_hover:bg-sky-800_1st2u_1","hover:bg-sky-900":"_hover:bg-sky-900_1st2u_1","hover:bg-slate-200":"_hover:bg-slate-200_1st2u_1","hover:bg-slate-300":"_hover:bg-slate-300_1st2u_1","hover:bg-slate-400":"_hover:bg-slate-400_1st2u_1","hover:bg-slate-600":"_hover:bg-slate-600_1st2u_1","hover:bg-slate-800":"_hover:bg-slate-800_1st2u_1","hover:bg-slate-900":"_hover:bg-slate-900_1st2u_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1st2u_1","hover:text-blue-500":"_hover:text-blue-500_1st2u_1","hover:text-blue-600":"_hover:text-blue-600_1st2u_1","hover:opacity-100":"_hover:opacity-100_1st2u_1","hover:opacity-20":"_hover:opacity-20_1st2u_1","hover:opacity-70":"_hover:opacity-70_1st2u_1","hover:outline-4":"_hover:outline-4_1st2u_1","focus:bg-blue-200":"_focus:bg-blue-200_1st2u_1","focus:outline-4":"_focus:outline-4_1st2u_1","focus:outline-blue-200":"_focus:outline-blue-200_1st2u_1",group:"_group_1st2u_1","group-hover:opacity-100":"_group-hover:opacity-100_1st2u_1"}}]]),by=["src","alt"],Ec={__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,by)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},wy={class:"address-format"},ky={key:0,class:"address-attn"},xy={key:1,class:"address-name"},Sy={class:"address-line-1"},Cy={key:0,class:"address-line-2"},Ey={key:1,class:"address-line-3"},Ty={class:"address-city-state-zip"},By={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",wy,[t.address.attn?(i.openBlock(),i.createElementBlock("div",ky,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",xy,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",Sy,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",Cy,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",Ey,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Ty,[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)]))}},Ny={__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))]))}},Iy={class:"flex flex-nowrap items-center"},$y={key:0,class:"whitespace-nowrap"},Fy={__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",Iy,[i.createVNode(i.unref(Bh),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",$y,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))])}}},Ay={class:"flex items-center flex-nowrap"},Oy={__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",Ay,[(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)]))}},Dy={class:"text-xs font-bold"},vy={__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",Dy,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)])}}},My={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Tc=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,Mt(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 m=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",My,[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(m,{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)}}}),cs=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_15cm2_1","!visible":"_!visible_15cm2_1",visible:"_visible_15cm2_1",collapse:"_collapse_15cm2_1",static:"_static_15cm2_1",absolute:"_absolute_15cm2_1",relative:"_relative_15cm2_1",sticky:"_sticky_15cm2_1","left-0":"_left-0_15cm2_1","right-0":"_right-0_15cm2_1","right-1":"_right-1_15cm2_1","top-0":"_top-0_15cm2_1","top-1":"_top-1_15cm2_1","z-10":"_z-10_15cm2_1","m-2":"_m-2_15cm2_1","m-4":"_m-4_15cm2_1","m-auto":"_m-auto_15cm2_1","mx-1":"_mx-1_15cm2_1","mx-4":"_mx-4_15cm2_1","mx-auto":"_mx-auto_15cm2_1","my-2":"_my-2_15cm2_1","!mr-1":"_!mr-1_15cm2_1","mb-2":"_mb-2_15cm2_1","mb-4":"_mb-4_15cm2_1","ml-1":"_ml-1_15cm2_1","ml-2":"_ml-2_15cm2_1","ml-2.5":"_ml-2.5_15cm2_1","ml-3":"_ml-3_15cm2_1","ml-4":"_ml-4_15cm2_1","ml-5":"_ml-5_15cm2_1","ml-[-.2em]":"_ml-[-.2em]_15cm2_1","mr-1":"_mr-1_15cm2_1","mr-2":"_mr-2_15cm2_1","mr-3":"_mr-3_15cm2_1","mr-4":"_mr-4_15cm2_1","mt-1":"_mt-1_15cm2_1","mt-2":"_mt-2_15cm2_1","mt-3":"_mt-3_15cm2_1","mt-4":"_mt-4_15cm2_1",block:"_block_15cm2_1","inline-block":"_inline-block_15cm2_1",inline:"_inline_15cm2_1",flex:"_flex_15cm2_1",table:"_table_15cm2_1",hidden:"_hidden_15cm2_1","h-10":"_h-10_15cm2_1","h-12":"_h-12_15cm2_1","h-16":"_h-16_15cm2_1","h-4":"_h-4_15cm2_1","h-5":"_h-5_15cm2_1","h-6":"_h-6_15cm2_1","h-8":"_h-8_15cm2_1","h-96":"_h-96_15cm2_1","h-[2.25rem]":"_h-[2.25rem]_15cm2_1","h-full":"_h-full_15cm2_1","max-h-full":"_max-h-full_15cm2_1","min-h-10":"_min-h-10_15cm2_1","w-10":"_w-10_15cm2_1","w-16":"_w-16_15cm2_1","w-2":"_w-2_15cm2_1","w-2/5":"_w-2/5_15cm2_1","w-24":"_w-24_15cm2_1","w-3":"_w-3_15cm2_1","w-3/4":"_w-3/4_15cm2_1","w-3/5":"_w-3/5_15cm2_1","w-32":"_w-32_15cm2_1","w-4":"_w-4_15cm2_1","w-48":"_w-48_15cm2_1","w-5":"_w-5_15cm2_1","w-6":"_w-6_15cm2_1","w-7":"_w-7_15cm2_1","w-72":"_w-72_15cm2_1","w-8":"_w-8_15cm2_1","w-96":"_w-96_15cm2_1","w-[13.5rem]":"_w-[13.5rem]_15cm2_1","w-[6.5rem]":"_w-[6.5rem]_15cm2_1","w-[60vw]":"_w-[60vw]_15cm2_1","w-full":"_w-full_15cm2_1","!min-w-0":"_!min-w-0_15cm2_1","min-w-10":"_min-w-10_15cm2_1","min-w-96":"_min-w-96_15cm2_1","max-w-full":"_max-w-full_15cm2_1","flex-shrink":"_flex-shrink_15cm2_1","flex-shrink-0":"_flex-shrink-0_15cm2_1",shrink:"_shrink_15cm2_1","flex-grow":"_flex-grow_15cm2_1",grow:"_grow_15cm2_1","rotate-180":"_rotate-180_15cm2_1",transform:"_transform_15cm2_1","cursor-ew-resize":"_cursor-ew-resize_15cm2_1","cursor-move":"_cursor-move_15cm2_1","cursor-not-allowed":"_cursor-not-allowed_15cm2_1","cursor-ns-resize":"_cursor-ns-resize_15cm2_1","cursor-pointer":"_cursor-pointer_15cm2_1",resize:"_resize_15cm2_1","flex-col":"_flex-col_15cm2_1","flex-nowrap":"_flex-nowrap_15cm2_1","items-center":"_items-center_15cm2_1","items-stretch":"_items-stretch_15cm2_1","justify-start":"_justify-start_15cm2_1","justify-end":"_justify-end_15cm2_1","justify-center":"_justify-center_15cm2_1","justify-between":"_justify-between_15cm2_1","gap-x-2":"_gap-x-2_15cm2_1","gap-x-4":"_gap-x-4_15cm2_1","gap-y-0":"_gap-y-0_15cm2_1","gap-y-1":"_gap-y-1_15cm2_1","space-x-1":"_space-x-1_15cm2_1","space-x-2":"_space-x-2_15cm2_1","self-center":"_self-center_15cm2_1","overflow-auto":"_overflow-auto_15cm2_1","overflow-hidden":"_overflow-hidden_15cm2_1","overflow-y-auto":"_overflow-y-auto_15cm2_70","overflow-x-hidden":"_overflow-x-hidden_15cm2_1","scroll-smooth":"_scroll-smooth_15cm2_1","overflow-ellipsis":"_overflow-ellipsis_15cm2_1","whitespace-normal":"_whitespace-normal_15cm2_1","whitespace-nowrap":"_whitespace-nowrap_15cm2_1","whitespace-pre-wrap":"_whitespace-pre-wrap_15cm2_1",rounded:"_rounded_15cm2_1","rounded-2xl":"_rounded-2xl_15cm2_1","rounded-full":"_rounded-full_15cm2_1","rounded-lg":"_rounded-lg_15cm2_1","rounded-md":"_rounded-md_15cm2_1","rounded-sm":"_rounded-sm_15cm2_1","!rounded-l-none":"_!rounded-l-none_15cm2_1","!rounded-r-none":"_!rounded-r-none_15cm2_1","rounded-b-lg":"_rounded-b-lg_15cm2_1","rounded-l-lg":"_rounded-l-lg_15cm2_1","rounded-r-lg":"_rounded-r-lg_15cm2_1","rounded-t-lg":"_rounded-t-lg_15cm2_1","rounded-t-md":"_rounded-t-md_15cm2_1","!border-0":"_!border-0_15cm2_1",border:"_border_15cm2_1","border-b":"_border-b_15cm2_1","border-l":"_border-l_15cm2_1","border-l-0":"_border-l-0_15cm2_1","border-r":"_border-r_15cm2_1","border-solid":"_border-solid_15cm2_1","border-dashed":"_border-dashed_15cm2_1","border-none":"_border-none_15cm2_1","border-blue-600":"_border-blue-600_15cm2_1","border-blue-700":"_border-blue-700_15cm2_1","border-gray-200":"_border-gray-200_15cm2_1","border-gray-300":"_border-gray-300_15cm2_1","border-slate-200":"_border-slate-200_15cm2_1","bg-amber-950":"_bg-amber-950_15cm2_1","bg-black":"_bg-black_15cm2_1","bg-blue-200":"_bg-blue-200_15cm2_1","bg-blue-300":"_bg-blue-300_15cm2_1","bg-blue-600":"_bg-blue-600_15cm2_1","bg-blue-900":"_bg-blue-900_15cm2_1","bg-blue-950":"_bg-blue-950_15cm2_1","bg-emerald-200":"_bg-emerald-200_15cm2_1","bg-gray-100":"_bg-gray-100_15cm2_1","bg-gray-200":"_bg-gray-200_15cm2_1","bg-gray-400":"_bg-gray-400_15cm2_1","bg-gray-500":"_bg-gray-500_15cm2_1","bg-gray-800":"_bg-gray-800_15cm2_1","bg-green-200":"_bg-green-200_15cm2_1","bg-green-300":"_bg-green-300_15cm2_1","bg-green-900":"_bg-green-900_15cm2_1","bg-green-950":"_bg-green-950_15cm2_1","bg-lime-300":"_bg-lime-300_15cm2_1","bg-orange-900":"_bg-orange-900_15cm2_1","bg-red-200":"_bg-red-200_15cm2_1","bg-red-300":"_bg-red-300_15cm2_1","bg-red-900":"_bg-red-900_15cm2_1","bg-red-950":"_bg-red-950_15cm2_1","bg-sky-300":"_bg-sky-300_15cm2_1","bg-sky-800":"_bg-sky-800_15cm2_1","bg-sky-900":"_bg-sky-900_15cm2_1","bg-sky-950":"_bg-sky-950_15cm2_1","bg-slate-100":"_bg-slate-100_15cm2_1","bg-slate-300":"_bg-slate-300_15cm2_1","bg-slate-400":"_bg-slate-400_15cm2_1","bg-slate-500":"_bg-slate-500_15cm2_1","bg-slate-600":"_bg-slate-600_15cm2_1","bg-slate-700":"_bg-slate-700_15cm2_1","bg-slate-800":"_bg-slate-800_15cm2_1","bg-slate-900":"_bg-slate-900_15cm2_1","bg-slate-950":"_bg-slate-950_15cm2_1","bg-transparent":"_bg-transparent_15cm2_1","bg-white":"_bg-white_15cm2_1","bg-yellow-300":"_bg-yellow-300_15cm2_1","bg-yellow-800":"_bg-yellow-800_15cm2_1","bg-yellow-950":"_bg-yellow-950_15cm2_1","!bg-none":"_!bg-none_15cm2_1","!p-2":"_!p-2_15cm2_1","p-0":"_p-0_15cm2_1","p-1":"_p-1_15cm2_1","p-2":"_p-2_15cm2_1","p-3":"_p-3_15cm2_1","p-4":"_p-4_15cm2_1","p-8":"_p-8_15cm2_1","!py-0":"_!py-0_15cm2_1","px-1":"_px-1_15cm2_1","px-1.5":"_px-1.5_15cm2_1","px-12":"_px-12_15cm2_1","px-2":"_px-2_15cm2_1","px-2.5":"_px-2.5_15cm2_1","px-3":"_px-3_15cm2_1","px-4":"_px-4_15cm2_1","px-6":"_px-6_15cm2_1","px-8":"_px-8_15cm2_1","py-0":"_py-0_15cm2_1","py-1":"_py-1_15cm2_1","py-1.5":"_py-1.5_15cm2_1","py-14":"_py-14_15cm2_1","py-2":"_py-2_15cm2_1","py-3":"_py-3_15cm2_1","py-4":"_py-4_15cm2_1","py-5":"_py-5_15cm2_1","py-8":"_py-8_15cm2_1","pl-1":"_pl-1_15cm2_1","pt-3":"_pt-3_15cm2_1","text-left":"_text-left_15cm2_1","text-center":"_text-center_15cm2_1","text-[.7rem]":"_text-[.7rem]_15cm2_1","text-[1rem]":"_text-[1rem]_15cm2_1","text-base":"_text-base_15cm2_1","text-lg":"_text-lg_15cm2_1","text-sm":"_text-sm_15cm2_1","text-xs":"_text-xs_15cm2_1","font-bold":"_font-bold_15cm2_1","font-medium":"_font-medium_15cm2_1","font-semibold":"_font-semibold_15cm2_1",uppercase:"_uppercase_15cm2_1","leading-[1.2rem]":"_leading-[1.2rem]_15cm2_1","!text-green-900":"_!text-green-900_15cm2_1","!text-red-900":"_!text-red-900_15cm2_1","!text-sky-900":"_!text-sky-900_15cm2_1","!text-white":"_!text-white_15cm2_1","!text-yellow-900":"_!text-yellow-900_15cm2_1","text-amber-400":"_text-amber-400_15cm2_1","text-blue-300":"_text-blue-300_15cm2_1","text-blue-400":"_text-blue-400_15cm2_1","text-blue-600":"_text-blue-600_15cm2_1","text-blue-900":"_text-blue-900_15cm2_1","text-gray-300":"_text-gray-300_15cm2_1","text-gray-400":"_text-gray-400_15cm2_1","text-gray-500":"_text-gray-500_15cm2_1","text-gray-600":"_text-gray-600_15cm2_1","text-gray-700":"_text-gray-700_15cm2_1","text-green-300":"_text-green-300_15cm2_1","text-green-400":"_text-green-400_15cm2_1","text-green-700":"_text-green-700_15cm2_1","text-green-900":"_text-green-900_15cm2_1","text-lime-900":"_text-lime-900_15cm2_1","text-orange-400":"_text-orange-400_15cm2_1","text-red-400":"_text-red-400_15cm2_1","text-red-500":"_text-red-500_15cm2_1","text-red-800":"_text-red-800_15cm2_1","text-red-900":"_text-red-900_15cm2_1","text-sky-400":"_text-sky-400_15cm2_1","text-sky-900":"_text-sky-900_15cm2_1","text-slate-200":"_text-slate-200_15cm2_1","text-slate-300":"_text-slate-300_15cm2_1","text-slate-400":"_text-slate-400_15cm2_1","text-slate-50":"_text-slate-50_15cm2_1","text-slate-500":"_text-slate-500_15cm2_1","text-slate-600":"_text-slate-600_15cm2_1","text-slate-800":"_text-slate-800_15cm2_1","text-slate-900":"_text-slate-900_15cm2_1","text-white":"_text-white_15cm2_1","text-yellow-300":"_text-yellow-300_15cm2_1","text-yellow-400":"_text-yellow-400_15cm2_1","text-yellow-600":"_text-yellow-600_15cm2_1","text-zinc-500":"_text-zinc-500_15cm2_1","text-zinc-800":"_text-zinc-800_15cm2_1","line-through":"_line-through_15cm2_1","opacity-0":"_opacity-0_15cm2_1","opacity-20":"_opacity-20_15cm2_1","opacity-50":"_opacity-50_15cm2_1","opacity-70":"_opacity-70_15cm2_1","opacity-80":"_opacity-80_15cm2_1","shadow-none":"_shadow-none_15cm2_1","outline-none":"_outline-none_15cm2_1",outline:"_outline_15cm2_1","outline-offset-0":"_outline-offset-0_15cm2_1",filter:"_filter_15cm2_1",transition:"_transition_15cm2_1","transition-all":"_transition-all_15cm2_1","duration-300":"_duration-300_15cm2_1","danx-app":"_danx-app_15cm2_4","q-tab":"_q-tab_15cm2_4","q-table__card":"_q-table__card_15cm2_7","q-checkbox__inner":"_q-checkbox__inner_15cm2_11","q-toolbar":"_q-toolbar_15cm2_14","q-notification__actions":"_q-notification__actions_15cm2_19","q-date":"_q-date_15cm2_22","q-date__view":"_q-date__view_15cm2_25","q-field":"_q-field_15cm2_28","q-field--auto-height":"_q-field--auto-height_15cm2_28","q-field__control":"_q-field__control_15cm2_28","q-field__native":"_q-field__native_15cm2_31","q-field--labeled":"_q-field--labeled_15cm2_35","q-field__control-container":"_q-field__control-container_15cm2_35","q-textarea":"_q-textarea_15cm2_38","q-field__marginal":"_q-field__marginal_15cm2_41","q-field__input":"_q-field__input_15cm2_41","q-field__label":"_q-field__label_15cm2_41","q-btn":"_q-btn_15cm2_48","q-item":"_q-item_15cm2_56","q-tab-panels":"_q-tab-panels_15cm2_60","q-panel":"_q-panel_15cm2_64",scroll:"_scroll_15cm2_67","dx-dialog":"_dx-dialog_15cm2_74","q-card__section--vert":"_q-card__section--vert_15cm2_74","q-banner":"_q-banner_15cm2_78",app:"_app_15cm2_1","main-layout":"_main-layout_15cm2_1","is-disabled":"_is-disabled_15cm2_95","disable-all-transitions":"_disable-all-transitions_15cm2_100","v-enter-active":"_v-enter-active_15cm2_104","v-leave-active":"_v-leave-active_15cm2_105","v-enter-from":"_v-enter-from_15cm2_109","v-leave-to":"_v-leave-to_15cm2_110","dx-action-table":"_dx-action-table_15cm2_114","dx-column-shrink":"_dx-column-shrink_15cm2_114","dialog-title":"_dialog-title_15cm2_118","dialog-content":"_dialog-content_15cm2_125","hover:bg-blue-200":"_hover:bg-blue-200_15cm2_1","hover:bg-blue-400":"_hover:bg-blue-400_15cm2_1","hover:bg-blue-800":"_hover:bg-blue-800_15cm2_1","hover:bg-gray-200":"_hover:bg-gray-200_15cm2_1","hover:bg-green-100":"_hover:bg-green-100_15cm2_1","hover:bg-green-400":"_hover:bg-green-400_15cm2_1","hover:bg-green-800":"_hover:bg-green-800_15cm2_1","hover:bg-lime-400":"_hover:bg-lime-400_15cm2_1","hover:bg-orange-800":"_hover:bg-orange-800_15cm2_1","hover:bg-red-100":"_hover:bg-red-100_15cm2_1","hover:bg-red-200":"_hover:bg-red-200_15cm2_1","hover:bg-red-400":"_hover:bg-red-400_15cm2_1","hover:bg-sky-400":"_hover:bg-sky-400_15cm2_1","hover:bg-sky-800":"_hover:bg-sky-800_15cm2_1","hover:bg-sky-900":"_hover:bg-sky-900_15cm2_1","hover:bg-slate-200":"_hover:bg-slate-200_15cm2_1","hover:bg-slate-300":"_hover:bg-slate-300_15cm2_1","hover:bg-slate-400":"_hover:bg-slate-400_15cm2_1","hover:bg-slate-600":"_hover:bg-slate-600_15cm2_1","hover:bg-slate-800":"_hover:bg-slate-800_15cm2_1","hover:bg-slate-900":"_hover:bg-slate-900_15cm2_1","hover:bg-yellow-700":"_hover:bg-yellow-700_15cm2_1","hover:text-blue-500":"_hover:text-blue-500_15cm2_1","hover:text-blue-600":"_hover:text-blue-600_15cm2_1","hover:opacity-100":"_hover:opacity-100_15cm2_1","hover:opacity-20":"_hover:opacity-20_15cm2_1","hover:opacity-70":"_hover:opacity-70_15cm2_1","hover:outline-4":"_hover:outline-4_15cm2_1","focus:bg-blue-200":"_focus:bg-blue-200_15cm2_1","focus:outline-4":"_focus:outline-4_15cm2_1","focus:outline-blue-200":"_focus:outline-blue-200_15cm2_1",group:"_group_15cm2_1","group-hover:opacity-100":"_group-hover:opacity-100_15cm2_1"}}]]),Bc=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;Bc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const dn=Bc,Py={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await xn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(xn)?(i.openBlock(),i.createBlock(i.unref(dn),{key:0,vnode:i.unref(xn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(xn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},Nc={__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"],Ic=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:pe.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(Nc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(ip),{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)}}}),Vy={__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,m)=>{const _=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(_,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":m[0]||(m[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"])}}},Ry={class:"flex items-center w-full"},Uy={class:"flex-grow text-sm"},zy={__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",Ry,[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"])}}},qy={class:"flex items-center w-full"},Hy={class:"flex-grow text-sm"},Gy={__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",qy,[i.createElementVNode("div",Hy,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(Ha),{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"])}}},Zy={};function Wy(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const jy=ft(Zy,[["render",Wy]]),$c={__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}))}}),Ky={__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(S,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(S=typeof globalThis<"u"?globalThis:S||self,i(S.Danx={},S.Vue,S.Quasar))})(this,function(S,i,pe){"use strict";const ee=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 n0(t){ee.value={...ee.value,...t,fileUpload:{...ee.value.fileUpload,...t.fileUpload},flashMessages:{...ee.value.flashMessages,...t.flashMessages},request:{...ee.value.request,...t.request}}}function r0(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Pa(t){return typeof t=="function"?t():i.unref(t)}const o0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const La=()=>{};function i0(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 s0(t,e={}){let n,r,o=La;const s=a=>{clearTimeout(a),o(),o=La};return a=>{const c=Pa(t),u=Pa(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 an(t,e=200,n={}){return i0(s0(e,n),t)}const l0=o0?window.navigator:void 0;function a0(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function c0(t){const e=a0();return i.computed(()=>(e.value,!!t()))}function u0(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=l0,immediate:s=!0}=t,l=c0(()=>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 m(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&m();function _(){f&&o&&o.geolocation.clearWatch(f)}return r0(()=>{_()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:m,pause:_}}const d0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function f0(t,e){return i.openBlock(),i.createElementBlock("svg",d0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32h128c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2l-17.6-17.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8 229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3 163.8-62.5 226.3 0z"},null,-1)]))}const m0={render:f0},_0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function h0(t,e){return i.openBlock(),i.createElementBlock("svg",_0,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 p0={render:h0},g0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function y0(t,e){return i.openBlock(),i.createElementBlock("svg",g0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29z"},null,-1)]))}const b0={render:y0},w0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,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 Ji={render:k0},x0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,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 C0={render:S0},E0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",E0,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 Va={render:T0},B0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function N0(t,e){return i.openBlock(),i.createElementBlock("svg",B0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512m-24 120v136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24"},null,-1)]))}const I0={render:N0},$0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function F0(t,e){return i.openBlock(),i.createElementBlock("svg",$0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48m32.4 97.2c28-12.4 47.6-40.5 47.6-73.2 0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3v205.4C19.7 371 0 399.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V272c26.7 20.1 60 32 96 32h86.7c12.3 28.3 40.5 48 73.3 48 44.2 0 80-35.8 80-80s-35.8-80-80-80c-32.8 0-61 19.7-73.3 48H208c-49.9 0-91-38.1-95.6-86.8M80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48m264-136a24 24 0 1 1 48 0 24 24 0 1 1-48 0"},null,-1)]))}const A0={render:F0},O0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function D0(t,e){return i.openBlock(),i.createElementBlock("svg",O0,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:D0},v0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",v0,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 P0={render:M0},L0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function V0(t,e){return i.openBlock(),i.createElementBlock("svg",L0,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 Ua={render:V0},R0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function U0(t,e){return i.openBlock(),i.createElementBlock("svg",R0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v128H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h168v112c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 272v-48h110.1l-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39H384zm0-208H256V0z"},null,-1)]))}const z0={render:U0},q0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function H0(t,e){return i.openBlock(),i.createElementBlock("svg",q0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M128 64c0-35.3 28.7-64 64-64h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336h174.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm384-160H384V0z"},null,-1)]))}const G0={render:H0},Z0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function W0(t,e){return i.openBlock(),i.createElementBlock("svg",Z0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7c-12-12-28.3-18.7-45.3-18.7zm0 96c0-17.7 14.3-32 32-32h192c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 160a64 64 0 1 1 0 128 64 64 0 1 1 0-128"},null,-1)]))}const j0={render:W0},Y0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function K0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,e[0]||(e[0]=[i.createElementVNode("path",{d:"M64 480h384c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8l-19.2-25.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64"},null,-1)]))}const Q0={render:K0},X0={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",X0,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 eh={render:J0},th={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function nh(t,e){return i.openBlock(),i.createElementBlock("svg",th,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 rh={render:nh},oh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ih(t,e){return i.openBlock(),i.createElementBlock("svg",oh,e[0]||(e[0]=[i.createElementVNode("path",{d:"M432 256c0 17.7-14.3 32-32 32H48c-17.7 0-32-14.3-32-32s14.3-32 32-32h352c17.7 0 32 14.3 32 32"},null,-1)]))}const sh={render:ih},lh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function ah(t,e){return i.openBlock(),i.createElementBlock("svg",lh,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 ch={render:ah},uh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function dh(t,e){return i.openBlock(),i.createElementBlock("svg",uh,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 Mn={render:dh},fh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function mh(t,e){return i.openBlock(),i.createElementBlock("svg",fh,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 _h={render:mh},hh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ph(t,e){return i.openBlock(),i.createElementBlock("svg",hh,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 za={render:ph},gh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function yh(t,e){return i.openBlock(),i.createElementBlock("svg",gh,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 bh={render:yh},wh={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function kh(t,e){return i.openBlock(),i.createElementBlock("svg",wh,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 qa={render:kh},xh={class:"flex items-center flex-nowrap"},Sh={class:"p-4 bg-slate-600"},Ch={class:"flex items-center flex-nowrap mt-2"},Eh={class:"flex-grow"},xo=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?"},tooltipClass:{default:""}},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"blue-invert":return"text-blue-300 bg-blue-900 hover:bg-blue-800";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"sky-invert":return"text-sky-400 bg-sky-800 hover:bg-sky-900";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"yellow":return"text-yellow-300 bg-yellow-800 hover:bg-yellow-700";case"orange":return"text-orange-400 bg-orange-900 hover:bg-orange-800";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";case"slate":return"text-slate-900 bg-slate-300 hover:bg-slate-400";case"slate-invert":return"text-slate-300 bg-slate-900 hover:bg-slate-800";default:return""}}),a=i.computed(()=>r.iconClass+" "+o[r.size].icon),c=i.computed(()=>{switch(r.type){case"save":return{icon:j0};case"trash":return{icon:qa};case"export":return{icon:z0};case"import":return{icon:G0};case"back":return{icon:b0};case"create":return{icon:za};case"confirm":return{icon:C0};case"cancel":return{icon:Va};case"edit":return{icon:Mn};case"copy":return{icon:Ra};case"folder":return{icon:Q0};case"clock":return{icon:I0};case"play":return{icon:_h};case"stop":return{icon:bh};case"pause":return{icon:ch};case"restart":return{icon:m0};case"refresh":return{icon:p0};case"minus":return{icon:sh};case"merge":return{icon:A0};case"check":return{icon:Ji};case"view":return{icon:Ua};default:return{icon:Mn}}}),u=i.computed(()=>r.saving?!0:r.action?r.action.isApplying:r.target?Array.isArray(r.target)?r.target.some(m=>m.isSaving):r.target.isSaving:!1),d=i.ref(!1);function f(m=!1){if(!r.disabled){if(r.confirm&&!m)return d.value=!0,!1;d.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(m,_)=>{const p=i.resolveComponent("QTooltip"),h=i.resolveComponent("ActionButton",!0),g=i.resolveComponent("QMenu"),y=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(y,{loading:u.value,class:i.normalizeClass(["shadow-none py-0",s.value]),disable:m.disabled,onClick:_[2]||(_[2]=()=>f())},{default:i.withCtx(()=>[i.createElementVNode("div",xh,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m.icon||c.value.icon),{class:i.normalizeClass(["transition-all",a.value])},null,8,["class"])),m.label||m.label===0?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ml-2",m.labelClass])},i.toDisplayString(m.label),3)):i.createCommentVNode("",!0),i.renderSlot(m.$slots,"default")]),m.tooltip?(i.openBlock(),i.createBlock(p,{key:0,class:i.normalizeClass(["whitespace-nowrap",m.tooltipClass])},{default:i.withCtx(()=>[i.renderSlot(m.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(m.tooltip),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(g,{key:1,"model-value":!0},{default:i.withCtx(()=>[i.createElementVNode("div",Sh,[i.createElementVNode("div",null,i.toDisplayString(m.confirmText),1),i.createElementVNode("div",Ch,[i.createElementVNode("div",Eh,[i.createVNode(h,{type:"cancel",color:"gray",onClick:_[0]||(_[0]=x=>d.value=!1)})]),i.createVNode(h,{type:"confirm",color:"green",onClick:_[1]||(_[1]=()=>f(!0))})])])]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function Th(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 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",{"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 Bh(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 Ga(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 Nh(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 Ih(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 $h(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 Za={__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),Ve.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(Th),{class:"w-5"})]),_:1},8,["loading"])}}},Wa=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(Nh),{class:"w-5"})]),_:1},8,["loading"])}}}),es="show-hide-button",So=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,Mt(es,{...Ct(es,{}),[o.name]:r.value}))})}return(a,c)=>(i.openBlock(),i.createBlock(i.unref(xo),{icon:r.value?a.hideIcon||i.unref(P0):a.showIcon||i.unref(Ua),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"]))}}),Fh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function Ah(t,e){return i.openBlock(),i.createElementBlock("svg",Fh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const ja={render:Ah},Oh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Dh(t,e){return i.openBlock(),i.createElementBlock("svg",Oh,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:Dh},vh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function Mh(t,e){return i.openBlock(),i.createElementBlock("svg",vh,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:Mh},Ph={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Lh(t,e){return i.openBlock(),i.createElementBlock("svg",Ph,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:Lh},Vh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Rh(t,e){return i.openBlock(),i.createElementBlock("svg",Vh,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:Rh},Uh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function zh(t,e){return i.openBlock(),i.createElementBlock("svg",Uh,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:zh},qh={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function Hh(t,e){return i.openBlock(),i.createElementBlock("svg",qh,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:Hh},Gh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Zh(t,e){return i.openBlock(),i.createElementBlock("svg",Gh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const ec={render:Zh},Wh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function jh(t,e){return i.openBlock(),i.createElementBlock("svg",Wh,e[0]||(e[0]=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const tc={render:jh},Yh={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function Kh(t,e){return i.openBlock(),i.createElementBlock("svg",Yh,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 Co={render:Kh},Qh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Xh(t,e){return i.openBlock(),i.createElementBlock("svg",Qh,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:Xh},Jh={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function ep(t,e){return i.openBlock(),i.createElementBlock("svg",Jh,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 Eo={render:ep},tp={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",tp,[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 np(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 rp(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 op(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 ip(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 sp(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 lp(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 ap(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 cp(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 up(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 dp(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 fp(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 mp(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 _p={class:"flex-grow"},hp={key:1,class:"dx-dialog-subtitle"},pp={class:"flex dx-dialog-actions"},sc=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",_p,[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",hp,[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(mp),{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",pp,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),gp={class:"dx-dialog-button-cancel"},yp={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(sc),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a,onKeyup:i.withKeys(l,["enter"])}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",gp,[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",yp,[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)}}}),bp=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(Cc),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),lc=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(()=>n_(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"]))}}),ac=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(cn),{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"]))}}),wp={class:"absolute top-0 left-0 w-full h-full"},kp={key:0,class:"max-h-full w-full",controls:""},xp=["src","type"],Sp=["alt","src"],Cp={key:2,class:"w-[60vw] min-w-96 bg-slate-800 rounded-lg"},Ep={class:"whitespace-pre-wrap p-4"},Tp={key:3},Bp=["href"],Np={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},Ip=i.defineComponent({__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(f){var m;return(m=f.mime)==null?void 0:m.startsWith("video")}function s(f){var m;return(m=f.mime)==null?void 0:m.startsWith("image")}function l(f){var m;return(m=f.mime)==null?void 0:m.startsWith("text")}function a(f){var m,_;return((m=f.optimized)==null?void 0:m.url)||(s(f)?f.blobUrl||f.url:(_=f.thumb)==null?void 0:_.url)}function c(f){return f.thumb?f.thumb.url:o(f)?`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>')}`:a(f)||"https://placehold.co/40x50?text=T"}i.onMounted(()=>{for(let f of e.files)l(f)&&d(f)});const u=i.shallowRef({});async function d(f){if(u.value[f.id])return u.value[f.id];u.value[f.id]=await fetch(f.url).then(m=>m.text())}return(f,m)=>{const _=i.resolveComponent("QCarouselSlide"),p=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(p,{"model-value":!0,maximized:"","onUpdate:modelValue":m[2]||(m[2]=h=>f.$emit("close")),onKeyup:[m[3]||(m[3]=i.withKeys(h=>n.value.previous(),["left"])),m[4]||(m[4]=i.withKeys(h=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",wp,[i.createVNode(i.unref(pe.QCarousel),{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=h=>r.value=h),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(f.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,h=>(i.openBlock(),i.createBlock(_,{key:"file-"+h.id,name:h.id,"img-src":c(h),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(f.cls["slide-image"])},[o(h)?(i.openBlock(),i.createElementBlock("video",kp,[i.createElementVNode("source",{src:a(h)+"#t=0.1",type:h.mime},null,8,xp)])):a(h)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:h.filename,src:a(h)},null,8,Sp)):l(h)?(i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",Ep,i.toDisplayString(u.value[h.id]),1)])):(i.openBlock(),i.createElementBlock("div",Tp,[m[5]||(m[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,Bp)]))],2),i.createElementVNode("div",Np,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:m[1]||(m[1]=h=>f.$emit("close"))},[i.createVNode(i.unref(Eo),{class:"w-8 h-8"})])])]),_:1})}}}),$p={"pointer-events-none":"_pointer-events-none_13nf9_1","!visible":"_!visible_13nf9_1",visible:"_visible_13nf9_1",collapse:"_collapse_13nf9_1",static:"_static_13nf9_1",absolute:"_absolute_13nf9_1",relative:"_relative_13nf9_1",sticky:"_sticky_13nf9_1","left-0":"_left-0_13nf9_1","right-0":"_right-0_13nf9_1","right-1":"_right-1_13nf9_1","top-0":"_top-0_13nf9_1","top-1":"_top-1_13nf9_1","z-10":"_z-10_13nf9_1","m-2":"_m-2_13nf9_1","m-4":"_m-4_13nf9_1","m-auto":"_m-auto_13nf9_1","mx-1":"_mx-1_13nf9_1","mx-4":"_mx-4_13nf9_1","mx-auto":"_mx-auto_13nf9_1","my-2":"_my-2_13nf9_1","!mr-1":"_!mr-1_13nf9_1","mb-2":"_mb-2_13nf9_1","mb-4":"_mb-4_13nf9_1","ml-1":"_ml-1_13nf9_1","ml-2":"_ml-2_13nf9_1","ml-2.5":"_ml-2.5_13nf9_1","ml-3":"_ml-3_13nf9_1","ml-4":"_ml-4_13nf9_1","ml-5":"_ml-5_13nf9_1","ml-[-.2em]":"_ml-[-.2em]_13nf9_1","mr-1":"_mr-1_13nf9_1","mr-2":"_mr-2_13nf9_1","mr-3":"_mr-3_13nf9_1","mr-4":"_mr-4_13nf9_1","mt-1":"_mt-1_13nf9_1","mt-2":"_mt-2_13nf9_1","mt-3":"_mt-3_13nf9_1","mt-4":"_mt-4_13nf9_1",block:"_block_13nf9_1","inline-block":"_inline-block_13nf9_1",inline:"_inline_13nf9_1",flex:"_flex_13nf9_1",table:"_table_13nf9_1",hidden:"_hidden_13nf9_1","h-10":"_h-10_13nf9_1","h-12":"_h-12_13nf9_1","h-16":"_h-16_13nf9_1","h-4":"_h-4_13nf9_1","h-5":"_h-5_13nf9_1","h-6":"_h-6_13nf9_1","h-8":"_h-8_13nf9_1","h-96":"_h-96_13nf9_1","h-[2.25rem]":"_h-[2.25rem]_13nf9_1","h-full":"_h-full_13nf9_1","max-h-full":"_max-h-full_13nf9_1","min-h-10":"_min-h-10_13nf9_1","w-10":"_w-10_13nf9_1","w-16":"_w-16_13nf9_1","w-2":"_w-2_13nf9_1","w-2/5":"_w-2/5_13nf9_1","w-24":"_w-24_13nf9_1","w-3":"_w-3_13nf9_1","w-3/4":"_w-3/4_13nf9_1","w-3/5":"_w-3/5_13nf9_1","w-32":"_w-32_13nf9_1","w-4":"_w-4_13nf9_1","w-48":"_w-48_13nf9_1","w-5":"_w-5_13nf9_1","w-6":"_w-6_13nf9_1","w-7":"_w-7_13nf9_1","w-72":"_w-72_13nf9_1","w-8":"_w-8_13nf9_1","w-96":"_w-96_13nf9_1","w-[13.5rem]":"_w-[13.5rem]_13nf9_1","w-[6.5rem]":"_w-[6.5rem]_13nf9_1","w-[60vw]":"_w-[60vw]_13nf9_1","w-full":"_w-full_13nf9_1","!min-w-0":"_!min-w-0_13nf9_1","min-w-10":"_min-w-10_13nf9_1","min-w-96":"_min-w-96_13nf9_1","max-w-full":"_max-w-full_13nf9_1","flex-shrink":"_flex-shrink_13nf9_1","flex-shrink-0":"_flex-shrink-0_13nf9_1",shrink:"_shrink_13nf9_1","flex-grow":"_flex-grow_13nf9_1",grow:"_grow_13nf9_1","rotate-180":"_rotate-180_13nf9_1",transform:"_transform_13nf9_1","cursor-ew-resize":"_cursor-ew-resize_13nf9_1","cursor-move":"_cursor-move_13nf9_1","cursor-not-allowed":"_cursor-not-allowed_13nf9_1","cursor-ns-resize":"_cursor-ns-resize_13nf9_1","cursor-pointer":"_cursor-pointer_13nf9_1",resize:"_resize_13nf9_1","flex-col":"_flex-col_13nf9_1","flex-nowrap":"_flex-nowrap_13nf9_1","items-center":"_items-center_13nf9_1","items-stretch":"_items-stretch_13nf9_1","justify-start":"_justify-start_13nf9_1","justify-end":"_justify-end_13nf9_1","justify-center":"_justify-center_13nf9_1","justify-between":"_justify-between_13nf9_1","gap-x-2":"_gap-x-2_13nf9_1","gap-x-4":"_gap-x-4_13nf9_1","gap-y-0":"_gap-y-0_13nf9_1","gap-y-1":"_gap-y-1_13nf9_1","space-x-1":"_space-x-1_13nf9_1","space-x-2":"_space-x-2_13nf9_1","self-center":"_self-center_13nf9_1","overflow-auto":"_overflow-auto_13nf9_1","overflow-hidden":"_overflow-hidden_13nf9_1","overflow-y-auto":"_overflow-y-auto_13nf9_70","overflow-x-hidden":"_overflow-x-hidden_13nf9_1","scroll-smooth":"_scroll-smooth_13nf9_1","overflow-ellipsis":"_overflow-ellipsis_13nf9_1","whitespace-normal":"_whitespace-normal_13nf9_1","whitespace-nowrap":"_whitespace-nowrap_13nf9_1","whitespace-pre-wrap":"_whitespace-pre-wrap_13nf9_1",rounded:"_rounded_13nf9_1","rounded-2xl":"_rounded-2xl_13nf9_1","rounded-full":"_rounded-full_13nf9_1","rounded-lg":"_rounded-lg_13nf9_1","rounded-md":"_rounded-md_13nf9_1","rounded-sm":"_rounded-sm_13nf9_1","!rounded-l-none":"_!rounded-l-none_13nf9_1","!rounded-r-none":"_!rounded-r-none_13nf9_1","rounded-b-lg":"_rounded-b-lg_13nf9_1","rounded-l-lg":"_rounded-l-lg_13nf9_1","rounded-r-lg":"_rounded-r-lg_13nf9_1","rounded-t-lg":"_rounded-t-lg_13nf9_1","rounded-t-md":"_rounded-t-md_13nf9_1","!border-0":"_!border-0_13nf9_1",border:"_border_13nf9_1","border-b":"_border-b_13nf9_1","border-l":"_border-l_13nf9_1","border-l-0":"_border-l-0_13nf9_1","border-r":"_border-r_13nf9_1","border-solid":"_border-solid_13nf9_1","border-dashed":"_border-dashed_13nf9_1","border-none":"_border-none_13nf9_1","border-blue-600":"_border-blue-600_13nf9_1","border-blue-700":"_border-blue-700_13nf9_1","border-gray-200":"_border-gray-200_13nf9_1","border-gray-300":"_border-gray-300_13nf9_1","border-slate-200":"_border-slate-200_13nf9_1","bg-amber-950":"_bg-amber-950_13nf9_1","bg-black":"_bg-black_13nf9_1","bg-blue-200":"_bg-blue-200_13nf9_1","bg-blue-300":"_bg-blue-300_13nf9_1","bg-blue-600":"_bg-blue-600_13nf9_1","bg-blue-900":"_bg-blue-900_13nf9_1","bg-blue-950":"_bg-blue-950_13nf9_1","bg-emerald-200":"_bg-emerald-200_13nf9_1","bg-gray-100":"_bg-gray-100_13nf9_1","bg-gray-200":"_bg-gray-200_13nf9_1","bg-gray-400":"_bg-gray-400_13nf9_1","bg-gray-500":"_bg-gray-500_13nf9_1","bg-gray-800":"_bg-gray-800_13nf9_1","bg-green-200":"_bg-green-200_13nf9_1","bg-green-300":"_bg-green-300_13nf9_1","bg-green-900":"_bg-green-900_13nf9_1","bg-green-950":"_bg-green-950_13nf9_1","bg-lime-300":"_bg-lime-300_13nf9_1","bg-orange-900":"_bg-orange-900_13nf9_1","bg-red-200":"_bg-red-200_13nf9_1","bg-red-300":"_bg-red-300_13nf9_1","bg-red-900":"_bg-red-900_13nf9_1","bg-red-950":"_bg-red-950_13nf9_1","bg-sky-300":"_bg-sky-300_13nf9_1","bg-sky-800":"_bg-sky-800_13nf9_1","bg-sky-900":"_bg-sky-900_13nf9_1","bg-sky-950":"_bg-sky-950_13nf9_1","bg-slate-100":"_bg-slate-100_13nf9_1","bg-slate-300":"_bg-slate-300_13nf9_1","bg-slate-400":"_bg-slate-400_13nf9_1","bg-slate-500":"_bg-slate-500_13nf9_1","bg-slate-600":"_bg-slate-600_13nf9_1","bg-slate-700":"_bg-slate-700_13nf9_1","bg-slate-800":"_bg-slate-800_13nf9_1","bg-slate-900":"_bg-slate-900_13nf9_1","bg-slate-950":"_bg-slate-950_13nf9_1","bg-transparent":"_bg-transparent_13nf9_1","bg-white":"_bg-white_13nf9_1","bg-yellow-300":"_bg-yellow-300_13nf9_1","bg-yellow-800":"_bg-yellow-800_13nf9_1","bg-yellow-950":"_bg-yellow-950_13nf9_1","!bg-none":"_!bg-none_13nf9_1","!p-2":"_!p-2_13nf9_1","p-0":"_p-0_13nf9_1","p-1":"_p-1_13nf9_1","p-2":"_p-2_13nf9_1","p-3":"_p-3_13nf9_1","p-4":"_p-4_13nf9_1","p-8":"_p-8_13nf9_1","!py-0":"_!py-0_13nf9_1","px-1":"_px-1_13nf9_1","px-1.5":"_px-1.5_13nf9_1","px-12":"_px-12_13nf9_1","px-2":"_px-2_13nf9_1","px-2.5":"_px-2.5_13nf9_1","px-3":"_px-3_13nf9_1","px-4":"_px-4_13nf9_1","px-6":"_px-6_13nf9_1","px-8":"_px-8_13nf9_1","py-0":"_py-0_13nf9_1","py-1":"_py-1_13nf9_1","py-1.5":"_py-1.5_13nf9_1","py-14":"_py-14_13nf9_1","py-2":"_py-2_13nf9_1","py-3":"_py-3_13nf9_1","py-4":"_py-4_13nf9_1","py-5":"_py-5_13nf9_1","py-8":"_py-8_13nf9_1","pl-1":"_pl-1_13nf9_1","pt-3":"_pt-3_13nf9_1","text-left":"_text-left_13nf9_1","text-center":"_text-center_13nf9_1","text-[.7rem]":"_text-[.7rem]_13nf9_1","text-[1rem]":"_text-[1rem]_13nf9_1","text-base":"_text-base_13nf9_1","text-lg":"_text-lg_13nf9_1","text-sm":"_text-sm_13nf9_1","text-xs":"_text-xs_13nf9_1","font-bold":"_font-bold_13nf9_1","font-medium":"_font-medium_13nf9_1","font-semibold":"_font-semibold_13nf9_1",uppercase:"_uppercase_13nf9_1","leading-[1.2rem]":"_leading-[1.2rem]_13nf9_1","!text-green-900":"_!text-green-900_13nf9_1","!text-red-900":"_!text-red-900_13nf9_1","!text-sky-900":"_!text-sky-900_13nf9_1","!text-white":"_!text-white_13nf9_1","!text-yellow-900":"_!text-yellow-900_13nf9_1","text-amber-400":"_text-amber-400_13nf9_1","text-blue-300":"_text-blue-300_13nf9_1","text-blue-400":"_text-blue-400_13nf9_1","text-blue-600":"_text-blue-600_13nf9_1","text-blue-900":"_text-blue-900_13nf9_1","text-gray-300":"_text-gray-300_13nf9_1","text-gray-400":"_text-gray-400_13nf9_1","text-gray-500":"_text-gray-500_13nf9_1","text-gray-600":"_text-gray-600_13nf9_1","text-gray-700":"_text-gray-700_13nf9_1","text-green-300":"_text-green-300_13nf9_1","text-green-400":"_text-green-400_13nf9_1","text-green-700":"_text-green-700_13nf9_1","text-green-900":"_text-green-900_13nf9_1","text-lime-900":"_text-lime-900_13nf9_1","text-orange-400":"_text-orange-400_13nf9_1","text-red-400":"_text-red-400_13nf9_1","text-red-500":"_text-red-500_13nf9_1","text-red-800":"_text-red-800_13nf9_1","text-red-900":"_text-red-900_13nf9_1","text-sky-400":"_text-sky-400_13nf9_1","text-sky-900":"_text-sky-900_13nf9_1","text-slate-200":"_text-slate-200_13nf9_1","text-slate-300":"_text-slate-300_13nf9_1","text-slate-400":"_text-slate-400_13nf9_1","text-slate-50":"_text-slate-50_13nf9_1","text-slate-500":"_text-slate-500_13nf9_1","text-slate-600":"_text-slate-600_13nf9_1","text-slate-800":"_text-slate-800_13nf9_1","text-slate-900":"_text-slate-900_13nf9_1","text-white":"_text-white_13nf9_1","text-yellow-300":"_text-yellow-300_13nf9_1","text-yellow-400":"_text-yellow-400_13nf9_1","text-yellow-600":"_text-yellow-600_13nf9_1","text-zinc-500":"_text-zinc-500_13nf9_1","text-zinc-800":"_text-zinc-800_13nf9_1","line-through":"_line-through_13nf9_1","opacity-0":"_opacity-0_13nf9_1","opacity-20":"_opacity-20_13nf9_1","opacity-50":"_opacity-50_13nf9_1","opacity-70":"_opacity-70_13nf9_1","opacity-80":"_opacity-80_13nf9_1","shadow-none":"_shadow-none_13nf9_1","outline-none":"_outline-none_13nf9_1",outline:"_outline_13nf9_1","outline-offset-0":"_outline-offset-0_13nf9_1",filter:"_filter_13nf9_1",transition:"_transition_13nf9_1","transition-all":"_transition-all_13nf9_1","duration-300":"_duration-300_13nf9_1","danx-app":"_danx-app_13nf9_4","q-tab":"_q-tab_13nf9_4","q-table__card":"_q-table__card_13nf9_7","q-checkbox__inner":"_q-checkbox__inner_13nf9_11","q-toolbar":"_q-toolbar_13nf9_14","q-notification__actions":"_q-notification__actions_13nf9_19","q-date":"_q-date_13nf9_22","q-date__view":"_q-date__view_13nf9_25","q-field":"_q-field_13nf9_28","q-field--auto-height":"_q-field--auto-height_13nf9_28","q-field__control":"_q-field__control_13nf9_28","q-field__native":"_q-field__native_13nf9_31","q-field--labeled":"_q-field--labeled_13nf9_35","q-field__control-container":"_q-field__control-container_13nf9_35","q-textarea":"_q-textarea_13nf9_38","q-field__marginal":"_q-field__marginal_13nf9_41","q-field__input":"_q-field__input_13nf9_41","q-field__label":"_q-field__label_13nf9_41","q-btn":"_q-btn_13nf9_48","q-item":"_q-item_13nf9_56","q-tab-panels":"_q-tab-panels_13nf9_60","q-panel":"_q-panel_13nf9_64",scroll:"_scroll_13nf9_67","dx-dialog":"_dx-dialog_13nf9_74","q-card__section--vert":"_q-card__section--vert_13nf9_74","q-banner":"_q-banner_13nf9_78",app:"_app_13nf9_1","main-layout":"_main-layout_13nf9_1","is-disabled":"_is-disabled_13nf9_95","disable-all-transitions":"_disable-all-transitions_13nf9_100","v-enter-active":"_v-enter-active_13nf9_104","v-leave-active":"_v-leave-active_13nf9_105","v-enter-from":"_v-enter-from_13nf9_109","v-leave-to":"_v-leave-to_13nf9_110","dx-action-table":"_dx-action-table_13nf9_114","dx-column-shrink":"_dx-column-shrink_13nf9_114","slide-image":"_slide-image_13nf9_118",carousel:"_carousel_13nf9_132","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_13nf9_132","hover:bg-blue-200":"_hover:bg-blue-200_13nf9_1","hover:bg-blue-400":"_hover:bg-blue-400_13nf9_1","hover:bg-blue-800":"_hover:bg-blue-800_13nf9_1","hover:bg-gray-200":"_hover:bg-gray-200_13nf9_1","hover:bg-green-100":"_hover:bg-green-100_13nf9_1","hover:bg-green-400":"_hover:bg-green-400_13nf9_1","hover:bg-green-800":"_hover:bg-green-800_13nf9_1","hover:bg-lime-400":"_hover:bg-lime-400_13nf9_1","hover:bg-orange-800":"_hover:bg-orange-800_13nf9_1","hover:bg-red-100":"_hover:bg-red-100_13nf9_1","hover:bg-red-200":"_hover:bg-red-200_13nf9_1","hover:bg-red-400":"_hover:bg-red-400_13nf9_1","hover:bg-sky-400":"_hover:bg-sky-400_13nf9_1","hover:bg-sky-800":"_hover:bg-sky-800_13nf9_1","hover:bg-sky-900":"_hover:bg-sky-900_13nf9_1","hover:bg-slate-200":"_hover:bg-slate-200_13nf9_1","hover:bg-slate-300":"_hover:bg-slate-300_13nf9_1","hover:bg-slate-400":"_hover:bg-slate-400_13nf9_1","hover:bg-slate-600":"_hover:bg-slate-600_13nf9_1","hover:bg-slate-800":"_hover:bg-slate-800_13nf9_1","hover:bg-slate-900":"_hover:bg-slate-900_13nf9_1","hover:bg-yellow-700":"_hover:bg-yellow-700_13nf9_1","hover:text-blue-500":"_hover:text-blue-500_13nf9_1","hover:text-blue-600":"_hover:text-blue-600_13nf9_1","hover:opacity-100":"_hover:opacity-100_13nf9_1","hover:opacity-20":"_hover:opacity-20_13nf9_1","hover:opacity-70":"_hover:opacity-70_13nf9_1","hover:outline-4":"_hover:outline-4_13nf9_1","focus:bg-blue-200":"_focus:bg-blue-200_13nf9_1","focus:outline-4":"_focus:outline-4_13nf9_1","focus:outline-blue-200":"_focus:outline-blue-200_13nf9_1",group:"_group_13nf9_1","group-hover:opacity-100":"_group-hover:opacity-100_13nf9_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},cc=ft(Ip,[["__cssModules",{cls:$p}]]),Fp={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},Ap=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",Fp,[i.createVNode(i.unref(Eo),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}}),Op={key:0,class:"flex-grow"},uc=i.defineComponent({__name:"InfoDialog",props:{disabled:{type:Boolean},hideDone:{type:Boolean},doneClass:{default:""},doneText:{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(sc),{class:"dx-info-dialog",onClose:r},i.createSlots({actions:i.withCtx(()=>[o.hideDone?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Op,[i.createVNode(l,{label:o.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",o.doneClass]),disable:o.disabled,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]),1024)}}}),Dp={__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)}}},vp={class:"dx-field-label"},Mp={class:"dx-field-label-text"},Pp={class:"dx-field-label-label"},Lp={key:0,class:"dx-field-label-name"},Vp={key:0,class:"dx-field-required"},mt=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",vp,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",Mp,[i.createElementVNode("div",Pp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",Lp," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",Vp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),ns=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,disabled: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.disabled||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(mt),{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"])}}}),Rp={for:"first_name",class:"form-label"},Up={class:"mt-1"},rs={__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",Rp,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",Up,[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"])])])}}},zp={__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(rs),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"]))}},qp={key:0,class:"font-bold text-xs mb-2"},Hp={class:"flex items-center cursor-pointer"},Gp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Zp={key:0},os=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(ct(r.modelValue||"0000-00-00")):"- -"),s=i.ref(ct(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",qp,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Hp,[i.createVNode(i.unref(oc),{class:"w-5"}),i.createElementVNode("div",Gp,[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",Zp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(m=>(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]=m=>s.value=m),l]},null,8,["modelValue"])]),_:1})])}}}),Wp={class:"mb-2"},jp={class:"flex items-center cursor-pointer"},Yp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Kp={key:0},is=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"),m=i.resolveComponent("QBtn"),_=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Wp,[i.createVNode(i.unref(mt),{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",jp,[i.createVNode(i.unref(oc),{class:"w-5 py-2"}),i.createElementVNode("div",Yp,[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",Kp,[i.createVNode(m,{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(_,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))])}}}),Qp={class:"flex items-center justify-center"},Xp={key:0,class:"flex-grow"},ss={__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(Km(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",Qp,[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})}}},Jp={__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]=m=>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]=m=>o.value=m)},{default:i.withCtx(()=>[i.createVNode(i.unref(ss),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=m=>s.value=m),onCancel:c[1]||(c[1]=m=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},eg={class:"inline-block relative"},tg=["contenteditable"],dc=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..."},contentClass:{default:""}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(),l=i.ref(null),a=i.ref("0"),c=i.ref("0"),u=i.ref(!1);i.onMounted(()=>{var _,p;l.value&&(a.value=((_=l.value)==null?void 0:_.offsetWidth)+"px",c.value=((p=l.value)==null?void 0:p.offsetHeight)+"px")}),i.watch(()=>r.modelValue,_=>{!u.value&&s.value&&(s.value.innerText=_,o.value=_)}),i.onMounted(()=>{s.value.innerText=o.value});const d=an(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function f(_){o.value=_.target.innerText,d()}const m=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",r.contentClass||""],o.value?"":"!bg-none"]);return(_,p)=>(i.openBlock(),i.createElementBlock("div",eg,[i.createElementVNode("div",{ref_key:"textDiv",ref:s,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",m.value]),style:i.normalizeStyle({minWidth:a.value,minHeight:c.value}),onInput:f,onFocusin:p[0]||(p[0]=h=>u.value=!0),onFocusout:p[1]||(p[1]=h=>u.value=!1)},null,46,tg),!o.value&&_.placeholder&&!u.value&&!_.readonly?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:l,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},i.toDisplayString(_.placeholder),513)):i.createCommentVNode("",!0)]))}}),ng=["contenteditable"],rg={key:0},og=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,ng),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",rg,[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(Ji),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Mn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),ig=["accept","capture"],sg={__name:"FileUploadButton",props:{...pe.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 ji(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(pe.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(fp),{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,ig)]),_:3},16))}},lg={class:"inline-block"},ag={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},cg={__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",lg,[i.createElementVNode("div",ag,[i.createTextVNode(i.toDisplayString(i.unref(kr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref(Ga),{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(ss),{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"])])])}}},fc=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(Ot)(e.length))+" / "+i.toDisplayString(i.unref(Ot)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),ug={class:"dx-text-field"},dg={key:1,class:"dx-text-field-readonly-value"},cn=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",ug,[!e.prependLabel&&e.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])):i.createCommentVNode("",!0),e.readonly?(i.openBlock(),i.createElementBlock("div",dg,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:"",name:"",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(mt),{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(fc),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Nr=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}),Ot(c,d)}const l=an(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(cn),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),mc=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(Nr),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"]))}}),fg={class:"text-xs font-bold"},mg=["href"],_g=["href"],hg=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 e_(e.value);case"number":return Ot(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",fg,[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(eh),{class:"w-4"})],8,_g)],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,mg))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),pg={class:"flex items-stretch justify-start"},gg={key:1,class:"p-1"},_c=i.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"},showTranscodes:{type:Boolean}},emits:["update:model-value","uploading","complete"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesChange:l,onFilesSelected:a,uploadedFiles:c,clearUploadedFiles:u,onRemove:d}=j1();i.onMounted(()=>{r.modelValue&&(c.value=r.modelValue)}),l(()=>{c.value.some(m=>m.progress<1)&&n("uploading"),n("update:model-value",c.value)}),o(()=>{n("update:model-value",c.value),n("complete")});const f=i.computed(()=>({width:typeof r.width=="number"?`${r.width}px`:r.width,height:typeof r.height=="number"?`${r.height}px`:r.height}));return(m,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!m.readonly}]),onDragover:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onDrop:_[4]||(_[4]=i.withModifiers((...p)=>i.unref(s)&&i.unref(s)(...p),["prevent"]))},[m.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:m.label},null,8,["label"])):i.createCommentVNode("",!0),!m.disabled&&!m.readonly?(i.openBlock(),i.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:_[0]||(_[0]=(...p)=>i.unref(a)&&i.unref(a)(...p))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",pg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(c),p=>(i.openBlock(),i.createBlock(i.unref(Ir),{key:"file-upload-"+p.id,class:i.normalizeClass(["m-2 cursor-pointer bg-gray-200",m.filePreviewClass]),style:i.normalizeStyle(f.value),file:p,"show-transcodes":m.showTranscodes,"related-files":i.unref(c),downloadable:"",removable:!m.readonly&&!m.disabled,onRemove:h=>i.unref(d)(p)},null,8,["class","style","file","show-transcodes","related-files","removable","onRemove"]))),128)),!m.disabled&&!m.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",m.filePreviewClass]),style:i.normalizeStyle(f.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]=p=>m.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(ts),{class:i.normalizeClass(["m-auto",m.addIconClass])},null,8,["class"]),_[5]||(_[5]=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),i.unref(c).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]=(...p)=>i.unref(u)&&i.unref(u)(...p))},[i.createVNode(i.unref(Co),{class:"mr-2 w-3"}),_[6]||(_[6]=i.createTextVNode(" Remove All "))])):i.createCommentVNode("",!0)],6)):i.createCommentVNode("",!0),m.readonly&&i.unref(c).length===0?(i.openBlock(),i.createElementBlock("div",gg," -- ")):i.createCommentVNode("",!0)])],34))}}),Pn=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 b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(w=>{let k=i.isRef(w)?w.value:w;return{label:_(k),value:h(k),selectionLabel:p(k)}}),b}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>{var w;return b.label.toLocaleLowerCase().indexOf((w=s.value)==null?void 0:w.toLowerCase())>-1}):a.value),u=i.computed(()=>{var b,w;return r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(E=>E===null?"__null__":E)||[]:r.modelValue===null?"__null__":r.selectByObject?((b=r.modelValue)==null?void 0:b.value)||((w=r.modelValue)==null?void 0:w.id):r.modelValue}),d=i.computed(()=>{let b=u.value;r.multiple||(b=b||b===0?[b]:[]);const w=b.map(k=>k==="__null__"?null:typeof k=="object"?k.value||k.id:k);return a.value.filter(k=>w.includes(k.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),m=i.computed(()=>d.value.slice(0,r.chipLimit));function _(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)||b&&b[r.optionLabel]}function h(b){if(!b||typeof b=="string")return b;let w=b.value!==void 0?b.value:b.id;return typeof r.optionValue=="string"?w=b[r.optionValue]:typeof r.optionValue=="function"&&(w=r.optionValue(b)),w===null?"__null__":w}function g(b){Array.isArray(b)&&(b=b.map(w=>w==="__null__"?null:w)),b=b==="__null__"?null:b,r.selectByObject&&b!==null&&b!==void 0&&typeof b!="object"&&(r.multiple?b=r.options.filter(w=>b.includes(h(w))):b=r.options.find(w=>h(w)===b)),n("update:model-value",b),n("update",b)}const y=i.ref(!1);async function x(b,w){if(!r.filterFn)s.value=b,await i.nextTick(w);else{if(w(),!y.value)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function C(){n("update:model-value",void 0),n("update",void 0)}function B(){l.value=!0,y.value=!1,i.nextTick(()=>{y.value=!0,o.value.focus()})}function T(){l.value=!1,y.value=!1}return(b,w)=>{const k=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[b.label?(i.openBlock(),i.createBlock(i.unref(mt),{key:0,label:b.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(pe.QSelect),i.mergeProps({ref_key:"selectField",ref:o},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":b.filterable,"hide-selected":b.filterable&&l.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[b.inputClass]:!0},class:["max-w-full dx-select-field",b.selectClass],onFilter:x,onClear:C,onPopupShow:B,onPopupHide:T,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(np),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[b.$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":b.chipLimit===1,"dx-selected-chips":m.value.length>0,[b.selectionClass]:!0}])},[m.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,E=>(i.openBlock(),i.createBlock(k,{key:"selected-"+E.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.label),1)]),_:2},1024))),128)),d.value.length>m.value.length?(i.openBlock(),i.createBlock(k,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-m.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(b.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([b.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(Pn),{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(cn),{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"])]))}},yg={__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(rs),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},bg={key:0,class:"font-bold text-xs mb-2"},wg={class:"flex items-center flex-nowrap cursor-pointer"},kg={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},To={__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?rp:r.percent?Ja:cp)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(m){const _=r.percent?100:1;c.value={from:m!=null&&m.from?m.from*_:void 0,to:m!=null&&m.to?m.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(m){return m===void 0?"No Limit":r.currency?Ni(m):r.percent?t_(m,{multiplier:1,maximumFractionDigits:2}):Ot(m)}const f=an(()=>{if(c.value&&(c.value.from||c.value.to)){const m=r.percent?.01:1;let _={from:c.value.from?c.value.from*m:void 0,to:c.value.to?c.value.to*m:void 0};n("update:model-value",_)}},r.debounce);return(m,_)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",bg,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",wg,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",kg,[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(Nr),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=h=>c.value.from=h),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Nr),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=h=>c.value.to=h),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},xg=["data-dusk","onClick"],Sg={__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),m=f;r.multiple?(m=[...r.modelValue],c(f)?m=m.filter(_=>_!==f):m.push(f)):m===r.modelValue&&(m=null),n("update:modelValue",m)}return(d,f)=>{const m=i.resolveComponent("QCheckbox"),_=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(cs),{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:h=>u(p)},[i.createVNode(m,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(h=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,xg))),128))]),_:3},8,["show","title"]),i.createVNode(_,{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)])}}},Cg={class:"group flex items-center flex-nowrap gap-x-2 relative"},Eg=["onClick"],Tg={class:"flex-grow px-4 py-2"},Bg={class:"px-4 mb-2"},Ng=i.defineComponent({__name:"SelectionMenuField",props:i.mergeModels({options:{},selectionType:{default:"object"},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},disabled:{type:Boolean},editDisabled:{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=t,o=i.ref(!1),s=i.computed(()=>!e.value||r.options.find(u=>a(u)===a(e.value))?r.options:[e.value,...r.options]);function l(u){return typeof u=="object"?u:r.options.find(d=>typeof d=="object"?a(d)===u:d===u)}function a(u){return u=l(u),(u==null?void 0:u.id)||(u==null?void 0:u.value)||(u==null?void 0:u.name)||u}function c(u){return u=l(u),(u==null?void 0:u.name)||(u==null?void 0:u.label)||(u==null?void 0:u.value)||u}return(u,d)=>{const f=i.resolveComponent("QSeparator"),m=i.resolveComponent("QMenu"),_=i.resolveComponent("QBtn"),p=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("div",Cg,[u.selectable?(i.openBlock(),i.createBlock(i.unref(So),{key:0,modelValue:o.value,"onUpdate:modelValue":d[3]||(d[3]=h=>o.value=h),disabled:u.disabled,label:u.selectText,saving:u.loading,class:i.normalizeClass(u.selectClass),"show-icon":u.selectIcon||i.unref(rh),size:u.size},{default:i.withCtx(()=>[i.createVNode(m,{"model-value":o.value,onBeforeHide:d[1]||(d[1]=h=>o.value=!1),onHide:d[2]||(d[2]=h=>o.value=!1)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:a(h),class:i.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":a(e.value)===a(h),"hover:bg-slate-600":a(e.value)!==a(h)}]),onClick:g=>e.value=u.selectionType==="object"?h:a(h)},[i.createElementVNode("div",Tg,i.toDisplayString(c(h)),1),u.deletable?(i.openBlock(),i.createBlock(i.unref(xo),{key:0,type:"trash",class:"ml-4 mr-2",size:u.size,onClick:i.withModifiers(g=>u.$emit("delete",h),["stop","prevent"])},null,8,["size","onClick"])):i.createCommentVNode("",!0)],10,Eg)),[[p]])),128)),u.creatable?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(f,{class:"bg-slate-400 my-2"}),i.createElementVNode("div",Bg,[i.createVNode(i.unref(xo),{type:"create",color:"green",class:i.normalizeClass(u.createClass),label:u.createText,saving:u.loading,size:u.size,onClick:d[0]||(d[0]=h=>u.$emit("create"))},null,8,["class","label","saving","size"])])],64)):i.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disabled","label","saving","class","show-icon","size"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(u.labelClass)},[e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[u.nameEditable?(i.openBlock(),i.createBlock(i.unref(dc),{key:0,"model-value":c(e.value),color:"slate-600","onUpdate:modelValue":d[4]||(d[4]=h=>u.$emit("update",{name:h}))},null,8,["model-value"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(c(e.value)),1)],64))],64)):i.renderSlot(u.$slots,"no-selection",{key:1},()=>[i.createTextVNode(i.toDisplayString(u.placeholder),1)])],2),u.editable&&e.value?(i.openBlock(),i.createBlock(i.unref(So),{key:1,modelValue:n.value,"onUpdate:modelValue":d[5]||(d[5]=h=>n.value=h),label:u.editText,class:i.normalizeClass(u.editClass),size:u.size,disabled:u.editDisabled,"show-icon":i.unref(Mn),"hide-icon":i.unref(Ji),tooltip:u.editDisabled?"You are not allowed to edit":""},null,8,["modelValue","label","class","size","disabled","show-icon","hide-icon","tooltip"])):i.createCommentVNode("",!0),u.clearable&&e.value?(i.openBlock(),i.createBlock(_,{key:2,label:u.clearText,class:i.normalizeClass([u.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:d[6]||(d[6]=h=>e.value=null)},{default:i.withCtx(()=>[i.createVNode(i.unref(Va),{class:"w-4"})]),_:1},8,["label","class"])):i.createCommentVNode("",!0)])}}}),Ig={class:"flex items-stretch flex-nowrap gap-x-4"},$g=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",Ig,[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(za),{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(So),{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=l=>n.value=l),disabled:!r.canEdit,label:r.editText,class:i.normalizeClass(r.editClass),"show-icon":i.unref(Mn)},null,8,["modelValue","disabled","label","class","show-icon"])):i.createCommentVNode("",!0),i.createVNode(i.unref(Pn),{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"])])}}}),Fg={key:0,class:"text-zinc-500"},Ag={key:1},Og={class:"text-xs text-zinc-500"},pc=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",Fg," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(Pn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>s.value=m),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":m=>m,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(i.openBlock(),i.createElementBlock("div",Ag,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,m=>(i.openBlock(),i.createBlock(f,{key:m.id,"model-value":l.value.includes(m.id),field:m,class:"mt-3","onUpdate:modelValue":_=>a(m)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(m.label),1),i.createElementVNode("div",Og,i.toDisplayString(m.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),Dg={key:1,class:"text-sm mt-2"},vg={key:3,class:"py-1"},gc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disabled:{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}=K1();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(mt),{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.disabled&&!u.readonly?(i.openBlock(),i.createElementBlock("div",Dg,[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(Ir),{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.disabled&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",vg," -- ")):i.createCommentVNode("",!0)],34))}}),Mg={class:"dx-slider-number-field"},Pg=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",Mg,[i.createVNode(i.unref(mt),{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 Lg=["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"],Vg=function(t){return Lg.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Rg=function(t,e,n){Object.keys(e).filter(Vg).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)}))})},Ug=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}))})},zg=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&Ug(e,n,r,o),Rg(t,n.attrs,r)},yc=0,bc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return yc++,t+"_"+n+yc+String(e)},qg=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},wc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},Hg=function(t,e){return wc(t).concat(wc(e))},Gg=function(t){return t==null},kc=function(){return{listeners:[],scriptId:bc("tiny-script"),scriptLoaded:!1}},Zg=function(){var t=kc(),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=kc()};return{load:n,reinitialize:r}},Wg=Zg(),jg=function(){return typeof window<"u"?window:global},un=function(){var t=jg();return t&&t.tinymce?t.tinymce:null},Yg={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"}}},_t=function(){return _t=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},_t.apply(this,arguments)},Kg=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},Qg=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},ls={selector:void 0,target:void 0},Xg=i.defineComponent({props:Yg,setup:function(t,e){var n=t.init?_t(_t({},t.init),ls):_t({},ls),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||bc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],m=!0,_=t.initialValue?t.initialValue:"",p="",h=function(x){return f?function(){return s!=null&&s.value?s.value:""}:function(){return x?_:p}},g=function(){var x=h(m),C=_t(_t({},n),{readonly:t.disabled,target:a.value,plugins:Hg(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(B){c=B,B.on("init",function(T){return zg(T,t,e,B,s,x)}),typeof n.setup=="function"&&n.setup(B)}});qg(a.value)&&(a.value.style.visibility=""),un().init(C),m=!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=un())===null||C===void 0||C.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(un()!==null)g();else if(a.value&&a.value.ownerDocument){var x=t.cloudChannel?t.cloudChannel:"6",C=t.apiKey?t.apiKey:"no-api-key",B=Gg(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(C,"/tinymce/").concat(x,"/tinymce.min.js"):t.tinymceScriptSrc;Wg.load(a.value.ownerDocument,B,g)}}),i.onBeforeUnmount(function(){un()!==null&&un().remove(c)}),d||(i.onActivated(function(){m||g()}),i.onDeactivated(function(){var x;f||(p=c.getContent()),(x=un())===null||x===void 0||x.remove(c)}));var y=function(x){var C;p=c.getContent(),(C=un())===null||C===void 0||C.remove(c),n=_t(_t(_t({},n),x),ls),i.nextTick(function(){return g()})};return e.expose({rerender:y,getEditor:function(){return c}}),function(){return d?Kg(i.h,u,a,t.tagName):Qg(i.h,u,a)}}});const Jg=["innerHTML"],xc={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disabled: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(mt),{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,Jg)):(i.openBlock(),i.createBlock(i.unref(Xg),{key:2,class:"mt-2","api-key":i.unref(ee).tinyMceApiKey,disabled:t.disabled,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},Sc=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(Bi)(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)}}}),ey={class:"dx-rendered-form"},ty={key:0,class:"mb-4"},ny={class:"flex flex-nowrap items-center text-sm w-full"},ry={key:0,class:"variation-missing-icon pl-1"},oy={class:"flex-grow"},iy={key:1,class:"flex flex-nowrap items-center mr-2"},sy=["onClick"],ly=["onClick"],as=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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:ns,DATE:os,DATE_RANGE:is,INTEGER:mc,NUMBER:Nr,TEXT:cn,SINGLE_FILE:gc,MULTI_FILE:_c,WYSIWYG:xc},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]=y(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:y(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disabled:n.disabled,disable:n.disabled,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]||""),m=i.ref(""),_=i.ref(!1),p=i.ref(""),h=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disabled&&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 y(N){var I;return(I=g(N))==null?void 0:I.value}function x(N,I){const A=g(N),v={name:N,variation:f.value||"",value:I===void 0?n.emptyValue:I},j=ol(l.value,A,v,!0);C(j)}function C(N){let I=N;Array.isArray(n.values)||(I=N.reduce((A,v)=>(A[v.name]=v.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",B)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",B)});function B(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(N){return n.form.fields.map(I=>({variation:N,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function b(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=T(""));const I=d.value[d.value.length-1],A=kd(I||"1"),v=T(A);C([...N,...v]),f.value=A}function w(){if(!m.value)return;if(d.value.includes(m.value)){Ve.error("Variation name already exists");return}const N=l.value.map(I=>I.variation===_.value?{...I,variation:m.value}:I);C(N),f.value=m.value,_.value=!1,m.value=""}function k(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 E(N){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const v=g(A.name,N),j=!!v&&v.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=j:j})}return(N,I)=>{const A=i.resolveComponent("QTooltip"),v=i.resolveComponent("QTab"),j=i.resolveComponent("QSpinnerBall"),X=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",ey,[N.form.variations>1?(i.openBlock(),i.createElementBlock("div",ty,[i.createVNode(X,{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,K)=>(i.openBlock(),i.createBlock(v,{key:M,name:M,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",ny,[E(M)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",ry,[i.createVNode(i.unref(Ha),{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",oy,i.toDisplayString(M||"1"),1),!N.disabled&&!N.readonly&&N.canModifyVariations?(i.openBlock(),i.createElementBlock("div",iy,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=M)&&(m.value=M)},[i.createVNode(i.unref(Ga),{class:"w-3 text-blue-900"})],8,sy),K>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:de=>p.value=M},[i.createVNode(i.unref(Co),{class:"w-3 text-red-900"})],8,ly)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),h.value?(i.openBlock(),i.createBlock(v,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:b},{default:i.withCtx(()=>[N.saving?(i.openBlock(),i.createBlock(j,{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,K)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:M.id,class:i.normalizeClass({"mt-4":K>0,[N.fieldClass]:!0})},[M.vnode?(i.openBlock(),i.createBlock(i.unref(dn),{key:0,vnode:M.vnode,props:u(M),params:a.value,"onUpdate:modelValue":de=>x(M.name,de)},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":y(M.name),field:M,label:M.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:M.clearable||N.clearable,disabled:N.disabled,disable:N.disabled,readonly:N.readonly,"onUpdate:modelValue":de=>x(M.name,de)},null,8,["model-value","field","label","no-label","show-name","clearable","disabled","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(M)]])),128)),i.renderSlot(N.$slots,"default"),i.createVNode(i.unref(Sc),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),_.value!==!1?(i.openBlock(),i.createBlock(i.unref(Tt),{key:1,title:"Change variation name",onConfirm:w,onClose:I[2]||(I[2]=M=>_.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(cn),{modelValue:m.value,"onUpdate:modelValue":I[1]||(I[1]=M=>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=>k(p.value)),onClose:I[4]||(I[4]=M=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),Cc=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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,disabled:r.disabled,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,u=>{var d;if(u)for(let f of r.form.fields)(d=l[f.name])!=null&&d.isSaving||(s.value[f.name]=u[f.name])});const a=i.computed(()=>{for(let u of r.form.fields){const d=s.value[u.name];if(u.required&&!d&&d!==!1&&d!==0)return!1}return!0});async function c(){a.value&&(await r.action.trigger(r.target,s.value),n("saved"))}return(u,d)=>(i.openBlock(),i.createBlock(as,i.mergeProps(o,{values:s.value,"onUpdate:values":[d[0]||(d[0]=f=>s.value=f),c],"empty-value":"","saved-at":u.hideSavedAt?void 0:u.target.updated_at,saving:u.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),ay=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{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,disabled:e.disabled,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(as),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"]))}}),cy={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},uy={class:"max-h-full",preload:"auto"},dy=["src","type"],fy={key:2,class:"flex items-center justify-center h-full"},my={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},_y={key:1,class:"absolute-bottom w-full bg-slate-800"},hy={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},py={class:"whitespace-nowrap overflow-hidden ellipsis"},gy={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},yy={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Ir=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"},showTranscodes:{type:Boolean}},emits:["remove"],setup(t,{emit:e}){var w;const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var k;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((k=r.src.split(".").pop())==null?void 0:k.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.shallowRef(((w=r.file)==null?void 0:w.transcodes)||null),a=i.computed(()=>{var k;return!r.file||((k=r.file)==null?void 0:k.progress)!==void 0}),c=i.computed(()=>{var k;return a.value?"Uploading...":(k=C.value)==null?void 0:k.message}),u=i.computed(()=>{var k;return((k=r.relatedFiles)==null?void 0:k.length)>0?wd([s.value,...r.showTranscodes?l.value||[]:r.relatedFiles],d):[s.value]});function d(k,E){var N,I,A,v;return k.id===E.id||[E.url,(N=E.optimized)==null?void 0:N.url,(I=E.thumb)==null?void 0:I.url].includes(k.url)||[k.url,(A=k.optimized)==null?void 0:A.url,(v=k.thumb)==null?void 0:v.url].includes(E.url)}const f=i.computed(()=>{var k,E;return((k=s.value)==null?void 0:k.name)||((E=s.value)==null?void 0:E.filename)||""}),m=i.computed(()=>{var k,E;return((k=s.value)==null?void 0:k.type)||((E=s.value)==null?void 0:E.mime)||""}),_=i.computed(()=>!!m.value.match(/^image\//)),p=i.computed(()=>!!m.value.match(/^video\//)),h=i.computed(()=>!!m.value.match(/^application\/pdf/)),g=i.computed(()=>{var k,E,N,I;return((E=(k=s.value)==null?void 0:k.optimized)==null?void 0:E.url)||((N=s.value)==null?void 0:N.blobUrl)||((I=s.value)==null?void 0:I.url)}),y=i.computed(()=>{var k,E;return(E=(k=s.value)==null?void 0:k.thumb)==null?void 0:E.url}),x=i.computed(()=>!!y.value||p.value||_.value),C=i.computed(()=>{var N,I;let k=null;const E=((I=(N=r.file)==null?void 0:N.meta)==null?void 0:I.transcodes)||[];for(let A of Object.keys(E)){const v=E[A];if(!["Complete","Timeout"].includes(v==null?void 0:v.status))return{...v,message:`${A} ${v.status}`}}return k}),B=i.ref(!1);function T(){B.value?n("remove"):(B.value=!0,setTimeout(()=>{B.value=!1},2e3))}async function b(){if(o.value=!0,r.showTranscodes&&r.file&&!l.value){const k=await ee.value.fileUpload.refreshFile(r.file.id);l.value=k.transcodes||[]}}return(k,E)=>{var X,M,K,de;const N=i.resolveComponent("QImg"),I=i.resolveComponent("QTooltip"),A=i.resolveComponent("QSpinnerPie"),v=i.resolveComponent("QLinearProgress"),j=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!k.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:b},[p.value?(i.openBlock(),i.createElementBlock("div",cy,[i.createElementVNode("video",uy,[i.createElementVNode("source",{src:g.value+"#t=0.1",type:m.value},null,8,dy)]),i.createElementVNode("button",{class:i.normalizeClass(k.cls["play-button"])},[i.createVNode(i.unref(dp),{class:"w-16"})],2)])):i.createCommentVNode("",!0),y.value||x.value?(i.openBlock(),i.createBlock(N,{key:1,fit:k.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(y.value||g.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",fy,[h.value?(i.openBlock(),i.createBlock(i.unref(Xa),{key:0,class:"w-3/4"})):(i.openBlock(),i.createBlock(i.unref(op),{key:1,class:"w-3/4"})),f.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[k.showFilename?(i.openBlock(),i.createElementBlock("div",my,i.toDisplayString(f.value),1)):(i.openBlock(),i.createBlock(I,{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.value),1)]),_:1}))],64)):i.createCommentVNode("",!0)]))]),k.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(k.cls["action-button"])},[i.renderSlot(k.$slots,"action-button")],2)):i.createCommentVNode("",!0),a.value||C.value?(i.openBlock(),i.createElementBlock("div",_y,[(i.openBlock(),i.createBlock(v,{key:"progress-"+a.value?"uploading":"transcoding",value:a.value?k.file.progress:(((X=C.value)==null?void 0:X.progress)||0)/100,size:"36px",color:a.value?"green-800":"blue-800","animation-speed":((M=C.value)==null?void 0:M.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",hy,[i.createVNode(A,{class:"mr-2 text-slate-50 ml-1 flex-shrink-0",size:k.btnSize==="xs"?10:20},null,8,["size"]),c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",py,i.toDisplayString(c.value),1),i.createVNode(I,{class:"text-sm"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),_:1})],64)):i.createCommentVNode("",!0)])]),_:1},8,["value","color","animation-speed"]))])):i.createCommentVNode("",!0)],64)):i.renderSlot(k.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(k.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",gy,[k.downloadable&&((K=s.value)!=null&&K.url)?(i.openBlock(),i.createBlock(j,{key:0,size:k.btnSize,class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",k.downloadButtonClass]),onClick:E[0]||(E[0]=i.withModifiers(sn=>i.unref($i)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(sp),{class:"w-4 h-5"})]),_:1},8,["size","class"])):i.createCommentVNode("",!0),k.removable?(i.openBlock(),i.createBlock(j,{key:1,size:k.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(T,["stop"])},{default:i.withCtx(()=>[B.value?(i.openBlock(),i.createElementBlock("div",yy," ? ")):(i.openBlock(),i.createBlock(i.unref(Co),{key:1,class:"w-3"}))]),_:1},8,["size"])):i.createCommentVNode("",!0)]),o.value&&!k.disabled&&u.value?(i.openBlock(),i.createBlock(i.unref(cc),{key:2,files:u.value,"default-slide":((de=u.value[0])==null?void 0:de.id)||"",onClose:E[1]||(E[1]=sn=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1st2u_1","!visible":"_!visible_1st2u_1",visible:"_visible_1st2u_1",collapse:"_collapse_1st2u_1",static:"_static_1st2u_1",absolute:"_absolute_1st2u_1",relative:"_relative_1st2u_1",sticky:"_sticky_1st2u_1","left-0":"_left-0_1st2u_1","right-0":"_right-0_1st2u_1","right-1":"_right-1_1st2u_1","top-0":"_top-0_1st2u_1","top-1":"_top-1_1st2u_1","z-10":"_z-10_1st2u_1","m-2":"_m-2_1st2u_1","m-4":"_m-4_1st2u_1","m-auto":"_m-auto_1st2u_1","mx-1":"_mx-1_1st2u_1","mx-4":"_mx-4_1st2u_1","mx-auto":"_mx-auto_1st2u_1","my-2":"_my-2_1st2u_1","!mr-1":"_!mr-1_1st2u_1","mb-2":"_mb-2_1st2u_1","mb-4":"_mb-4_1st2u_1","ml-1":"_ml-1_1st2u_1","ml-2":"_ml-2_1st2u_1","ml-2.5":"_ml-2.5_1st2u_1","ml-3":"_ml-3_1st2u_1","ml-4":"_ml-4_1st2u_1","ml-5":"_ml-5_1st2u_1","ml-[-.2em]":"_ml-[-.2em]_1st2u_1","mr-1":"_mr-1_1st2u_1","mr-2":"_mr-2_1st2u_1","mr-3":"_mr-3_1st2u_1","mr-4":"_mr-4_1st2u_1","mt-1":"_mt-1_1st2u_1","mt-2":"_mt-2_1st2u_1","mt-3":"_mt-3_1st2u_1","mt-4":"_mt-4_1st2u_1",block:"_block_1st2u_1","inline-block":"_inline-block_1st2u_1",inline:"_inline_1st2u_1",flex:"_flex_1st2u_1",table:"_table_1st2u_1",hidden:"_hidden_1st2u_1","h-10":"_h-10_1st2u_1","h-12":"_h-12_1st2u_1","h-16":"_h-16_1st2u_1","h-4":"_h-4_1st2u_1","h-5":"_h-5_1st2u_1","h-6":"_h-6_1st2u_1","h-8":"_h-8_1st2u_1","h-96":"_h-96_1st2u_1","h-[2.25rem]":"_h-[2.25rem]_1st2u_1","h-full":"_h-full_1st2u_1","max-h-full":"_max-h-full_1st2u_1","min-h-10":"_min-h-10_1st2u_1","w-10":"_w-10_1st2u_1","w-16":"_w-16_1st2u_1","w-2":"_w-2_1st2u_1","w-2/5":"_w-2/5_1st2u_1","w-24":"_w-24_1st2u_1","w-3":"_w-3_1st2u_1","w-3/4":"_w-3/4_1st2u_1","w-3/5":"_w-3/5_1st2u_1","w-32":"_w-32_1st2u_1","w-4":"_w-4_1st2u_1","w-48":"_w-48_1st2u_1","w-5":"_w-5_1st2u_1","w-6":"_w-6_1st2u_1","w-7":"_w-7_1st2u_1","w-72":"_w-72_1st2u_1","w-8":"_w-8_1st2u_1","w-96":"_w-96_1st2u_1","w-[13.5rem]":"_w-[13.5rem]_1st2u_1","w-[6.5rem]":"_w-[6.5rem]_1st2u_1","w-[60vw]":"_w-[60vw]_1st2u_1","w-full":"_w-full_1st2u_1","!min-w-0":"_!min-w-0_1st2u_1","min-w-10":"_min-w-10_1st2u_1","min-w-96":"_min-w-96_1st2u_1","max-w-full":"_max-w-full_1st2u_1","flex-shrink":"_flex-shrink_1st2u_1","flex-shrink-0":"_flex-shrink-0_1st2u_1",shrink:"_shrink_1st2u_1","flex-grow":"_flex-grow_1st2u_1",grow:"_grow_1st2u_1","rotate-180":"_rotate-180_1st2u_1",transform:"_transform_1st2u_1","cursor-ew-resize":"_cursor-ew-resize_1st2u_1","cursor-move":"_cursor-move_1st2u_1","cursor-not-allowed":"_cursor-not-allowed_1st2u_1","cursor-ns-resize":"_cursor-ns-resize_1st2u_1","cursor-pointer":"_cursor-pointer_1st2u_1",resize:"_resize_1st2u_1","flex-col":"_flex-col_1st2u_1","flex-nowrap":"_flex-nowrap_1st2u_1","items-center":"_items-center_1st2u_1","items-stretch":"_items-stretch_1st2u_1","justify-start":"_justify-start_1st2u_1","justify-end":"_justify-end_1st2u_1","justify-center":"_justify-center_1st2u_1","justify-between":"_justify-between_1st2u_1","gap-x-2":"_gap-x-2_1st2u_1","gap-x-4":"_gap-x-4_1st2u_1","gap-y-0":"_gap-y-0_1st2u_1","gap-y-1":"_gap-y-1_1st2u_1","space-x-1":"_space-x-1_1st2u_1","space-x-2":"_space-x-2_1st2u_1","self-center":"_self-center_1st2u_1","overflow-auto":"_overflow-auto_1st2u_1","overflow-hidden":"_overflow-hidden_1st2u_1","overflow-y-auto":"_overflow-y-auto_1st2u_70","overflow-x-hidden":"_overflow-x-hidden_1st2u_1","scroll-smooth":"_scroll-smooth_1st2u_1","overflow-ellipsis":"_overflow-ellipsis_1st2u_1","whitespace-normal":"_whitespace-normal_1st2u_1","whitespace-nowrap":"_whitespace-nowrap_1st2u_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1st2u_1",rounded:"_rounded_1st2u_1","rounded-2xl":"_rounded-2xl_1st2u_1","rounded-full":"_rounded-full_1st2u_1","rounded-lg":"_rounded-lg_1st2u_1","rounded-md":"_rounded-md_1st2u_1","rounded-sm":"_rounded-sm_1st2u_1","!rounded-l-none":"_!rounded-l-none_1st2u_1","!rounded-r-none":"_!rounded-r-none_1st2u_1","rounded-b-lg":"_rounded-b-lg_1st2u_1","rounded-l-lg":"_rounded-l-lg_1st2u_1","rounded-r-lg":"_rounded-r-lg_1st2u_1","rounded-t-lg":"_rounded-t-lg_1st2u_1","rounded-t-md":"_rounded-t-md_1st2u_1","!border-0":"_!border-0_1st2u_1",border:"_border_1st2u_1","border-b":"_border-b_1st2u_1","border-l":"_border-l_1st2u_1","border-l-0":"_border-l-0_1st2u_1","border-r":"_border-r_1st2u_1","border-solid":"_border-solid_1st2u_1","border-dashed":"_border-dashed_1st2u_1","border-none":"_border-none_1st2u_1","border-blue-600":"_border-blue-600_1st2u_1","border-blue-700":"_border-blue-700_1st2u_1","border-gray-200":"_border-gray-200_1st2u_1","border-gray-300":"_border-gray-300_1st2u_1","border-slate-200":"_border-slate-200_1st2u_1","bg-amber-950":"_bg-amber-950_1st2u_1","bg-black":"_bg-black_1st2u_1","bg-blue-200":"_bg-blue-200_1st2u_1","bg-blue-300":"_bg-blue-300_1st2u_1","bg-blue-600":"_bg-blue-600_1st2u_1","bg-blue-900":"_bg-blue-900_1st2u_1","bg-blue-950":"_bg-blue-950_1st2u_1","bg-emerald-200":"_bg-emerald-200_1st2u_1","bg-gray-100":"_bg-gray-100_1st2u_1","bg-gray-200":"_bg-gray-200_1st2u_1","bg-gray-400":"_bg-gray-400_1st2u_1","bg-gray-500":"_bg-gray-500_1st2u_1","bg-gray-800":"_bg-gray-800_1st2u_1","bg-green-200":"_bg-green-200_1st2u_1","bg-green-300":"_bg-green-300_1st2u_1","bg-green-900":"_bg-green-900_1st2u_1","bg-green-950":"_bg-green-950_1st2u_1","bg-lime-300":"_bg-lime-300_1st2u_1","bg-orange-900":"_bg-orange-900_1st2u_1","bg-red-200":"_bg-red-200_1st2u_1","bg-red-300":"_bg-red-300_1st2u_1","bg-red-900":"_bg-red-900_1st2u_1","bg-red-950":"_bg-red-950_1st2u_1","bg-sky-300":"_bg-sky-300_1st2u_1","bg-sky-800":"_bg-sky-800_1st2u_1","bg-sky-900":"_bg-sky-900_1st2u_1","bg-sky-950":"_bg-sky-950_1st2u_1","bg-slate-100":"_bg-slate-100_1st2u_1","bg-slate-300":"_bg-slate-300_1st2u_1","bg-slate-400":"_bg-slate-400_1st2u_1","bg-slate-500":"_bg-slate-500_1st2u_1","bg-slate-600":"_bg-slate-600_1st2u_1","bg-slate-700":"_bg-slate-700_1st2u_1","bg-slate-800":"_bg-slate-800_1st2u_1","bg-slate-900":"_bg-slate-900_1st2u_1","bg-slate-950":"_bg-slate-950_1st2u_1","bg-transparent":"_bg-transparent_1st2u_1","bg-white":"_bg-white_1st2u_1","bg-yellow-300":"_bg-yellow-300_1st2u_1","bg-yellow-800":"_bg-yellow-800_1st2u_1","bg-yellow-950":"_bg-yellow-950_1st2u_1","!bg-none":"_!bg-none_1st2u_1","!p-2":"_!p-2_1st2u_1","p-0":"_p-0_1st2u_1","p-1":"_p-1_1st2u_1","p-2":"_p-2_1st2u_1","p-3":"_p-3_1st2u_1","p-4":"_p-4_1st2u_1","p-8":"_p-8_1st2u_1","!py-0":"_!py-0_1st2u_1","px-1":"_px-1_1st2u_1","px-1.5":"_px-1.5_1st2u_1","px-12":"_px-12_1st2u_1","px-2":"_px-2_1st2u_1","px-2.5":"_px-2.5_1st2u_1","px-3":"_px-3_1st2u_1","px-4":"_px-4_1st2u_1","px-6":"_px-6_1st2u_1","px-8":"_px-8_1st2u_1","py-0":"_py-0_1st2u_1","py-1":"_py-1_1st2u_1","py-1.5":"_py-1.5_1st2u_1","py-14":"_py-14_1st2u_1","py-2":"_py-2_1st2u_1","py-3":"_py-3_1st2u_1","py-4":"_py-4_1st2u_1","py-5":"_py-5_1st2u_1","py-8":"_py-8_1st2u_1","pl-1":"_pl-1_1st2u_1","pt-3":"_pt-3_1st2u_1","text-left":"_text-left_1st2u_1","text-center":"_text-center_1st2u_1","text-[.7rem]":"_text-[.7rem]_1st2u_1","text-[1rem]":"_text-[1rem]_1st2u_1","text-base":"_text-base_1st2u_1","text-lg":"_text-lg_1st2u_1","text-sm":"_text-sm_1st2u_1","text-xs":"_text-xs_1st2u_1","font-bold":"_font-bold_1st2u_1","font-medium":"_font-medium_1st2u_1","font-semibold":"_font-semibold_1st2u_1",uppercase:"_uppercase_1st2u_1","leading-[1.2rem]":"_leading-[1.2rem]_1st2u_1","!text-green-900":"_!text-green-900_1st2u_1","!text-red-900":"_!text-red-900_1st2u_1","!text-sky-900":"_!text-sky-900_1st2u_1","!text-white":"_!text-white_1st2u_1","!text-yellow-900":"_!text-yellow-900_1st2u_1","text-amber-400":"_text-amber-400_1st2u_1","text-blue-300":"_text-blue-300_1st2u_1","text-blue-400":"_text-blue-400_1st2u_1","text-blue-600":"_text-blue-600_1st2u_1","text-blue-900":"_text-blue-900_1st2u_1","text-gray-300":"_text-gray-300_1st2u_1","text-gray-400":"_text-gray-400_1st2u_1","text-gray-500":"_text-gray-500_1st2u_1","text-gray-600":"_text-gray-600_1st2u_1","text-gray-700":"_text-gray-700_1st2u_1","text-green-300":"_text-green-300_1st2u_1","text-green-400":"_text-green-400_1st2u_1","text-green-700":"_text-green-700_1st2u_1","text-green-900":"_text-green-900_1st2u_1","text-lime-900":"_text-lime-900_1st2u_1","text-orange-400":"_text-orange-400_1st2u_1","text-red-400":"_text-red-400_1st2u_1","text-red-500":"_text-red-500_1st2u_1","text-red-800":"_text-red-800_1st2u_1","text-red-900":"_text-red-900_1st2u_1","text-sky-400":"_text-sky-400_1st2u_1","text-sky-900":"_text-sky-900_1st2u_1","text-slate-200":"_text-slate-200_1st2u_1","text-slate-300":"_text-slate-300_1st2u_1","text-slate-400":"_text-slate-400_1st2u_1","text-slate-50":"_text-slate-50_1st2u_1","text-slate-500":"_text-slate-500_1st2u_1","text-slate-600":"_text-slate-600_1st2u_1","text-slate-800":"_text-slate-800_1st2u_1","text-slate-900":"_text-slate-900_1st2u_1","text-white":"_text-white_1st2u_1","text-yellow-300":"_text-yellow-300_1st2u_1","text-yellow-400":"_text-yellow-400_1st2u_1","text-yellow-600":"_text-yellow-600_1st2u_1","text-zinc-500":"_text-zinc-500_1st2u_1","text-zinc-800":"_text-zinc-800_1st2u_1","line-through":"_line-through_1st2u_1","opacity-0":"_opacity-0_1st2u_1","opacity-20":"_opacity-20_1st2u_1","opacity-50":"_opacity-50_1st2u_1","opacity-70":"_opacity-70_1st2u_1","opacity-80":"_opacity-80_1st2u_1","shadow-none":"_shadow-none_1st2u_1","outline-none":"_outline-none_1st2u_1",outline:"_outline_1st2u_1","outline-offset-0":"_outline-offset-0_1st2u_1",filter:"_filter_1st2u_1",transition:"_transition_1st2u_1","transition-all":"_transition-all_1st2u_1","duration-300":"_duration-300_1st2u_1","danx-app":"_danx-app_1st2u_4","q-tab":"_q-tab_1st2u_4","q-table__card":"_q-table__card_1st2u_7","q-checkbox__inner":"_q-checkbox__inner_1st2u_11","q-toolbar":"_q-toolbar_1st2u_14","q-notification__actions":"_q-notification__actions_1st2u_19","q-date":"_q-date_1st2u_22","q-date__view":"_q-date__view_1st2u_25","q-field":"_q-field_1st2u_28","q-field--auto-height":"_q-field--auto-height_1st2u_28","q-field__control":"_q-field__control_1st2u_28","q-field__native":"_q-field__native_1st2u_31","q-field--labeled":"_q-field--labeled_1st2u_35","q-field__control-container":"_q-field__control-container_1st2u_35","q-textarea":"_q-textarea_1st2u_38","q-field__marginal":"_q-field__marginal_1st2u_41","q-field__input":"_q-field__input_1st2u_41","q-field__label":"_q-field__label_1st2u_41","q-btn":"_q-btn_1st2u_48","q-item":"_q-item_1st2u_56","q-tab-panels":"_q-tab-panels_1st2u_60","q-panel":"_q-panel_1st2u_64",scroll:"_scroll_1st2u_67","dx-dialog":"_dx-dialog_1st2u_74","q-card__section--vert":"_q-card__section--vert_1st2u_74","q-banner":"_q-banner_1st2u_78",app:"_app_1st2u_1","main-layout":"_main-layout_1st2u_1","is-disabled":"_is-disabled_1st2u_95","disable-all-transitions":"_disable-all-transitions_1st2u_100","v-enter-active":"_v-enter-active_1st2u_104","v-leave-active":"_v-leave-active_1st2u_105","v-enter-from":"_v-enter-from_1st2u_109","v-leave-to":"_v-leave-to_1st2u_110","dx-action-table":"_dx-action-table_1st2u_114","dx-column-shrink":"_dx-column-shrink_1st2u_114","action-button":"_action-button_1st2u_118","play-button":"_play-button_1st2u_125","hover:bg-blue-200":"_hover:bg-blue-200_1st2u_1","hover:bg-blue-400":"_hover:bg-blue-400_1st2u_1","hover:bg-blue-800":"_hover:bg-blue-800_1st2u_1","hover:bg-gray-200":"_hover:bg-gray-200_1st2u_1","hover:bg-green-100":"_hover:bg-green-100_1st2u_1","hover:bg-green-400":"_hover:bg-green-400_1st2u_1","hover:bg-green-800":"_hover:bg-green-800_1st2u_1","hover:bg-lime-400":"_hover:bg-lime-400_1st2u_1","hover:bg-orange-800":"_hover:bg-orange-800_1st2u_1","hover:bg-red-100":"_hover:bg-red-100_1st2u_1","hover:bg-red-200":"_hover:bg-red-200_1st2u_1","hover:bg-red-400":"_hover:bg-red-400_1st2u_1","hover:bg-sky-400":"_hover:bg-sky-400_1st2u_1","hover:bg-sky-800":"_hover:bg-sky-800_1st2u_1","hover:bg-sky-900":"_hover:bg-sky-900_1st2u_1","hover:bg-slate-200":"_hover:bg-slate-200_1st2u_1","hover:bg-slate-300":"_hover:bg-slate-300_1st2u_1","hover:bg-slate-400":"_hover:bg-slate-400_1st2u_1","hover:bg-slate-600":"_hover:bg-slate-600_1st2u_1","hover:bg-slate-800":"_hover:bg-slate-800_1st2u_1","hover:bg-slate-900":"_hover:bg-slate-900_1st2u_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1st2u_1","hover:text-blue-500":"_hover:text-blue-500_1st2u_1","hover:text-blue-600":"_hover:text-blue-600_1st2u_1","hover:opacity-100":"_hover:opacity-100_1st2u_1","hover:opacity-20":"_hover:opacity-20_1st2u_1","hover:opacity-70":"_hover:opacity-70_1st2u_1","hover:outline-4":"_hover:outline-4_1st2u_1","focus:bg-blue-200":"_focus:bg-blue-200_1st2u_1","focus:outline-4":"_focus:outline-4_1st2u_1","focus:outline-blue-200":"_focus:outline-blue-200_1st2u_1",group:"_group_1st2u_1","group-hover:opacity-100":"_group-hover:opacity-100_1st2u_1"}}]]),by=["src","alt"],Ec={__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,by)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},wy={class:"address-format"},ky={key:0,class:"address-attn"},xy={key:1,class:"address-name"},Sy={class:"address-line-1"},Cy={key:0,class:"address-line-2"},Ey={key:1,class:"address-line-3"},Ty={class:"address-city-state-zip"},By={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",wy,[t.address.attn?(i.openBlock(),i.createElementBlock("div",ky,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",xy,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",Sy,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",Cy,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",Ey,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Ty,[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)]))}},Ny={__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))]))}},Iy={class:"flex flex-nowrap items-center"},$y={key:0,class:"whitespace-nowrap"},Fy={__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",Iy,[i.createVNode(i.unref(Bh),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",$y,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))])}}},Ay={class:"flex items-center flex-nowrap"},Oy={__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",Ay,[(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)]))}},Dy={class:"text-xs font-bold"},vy={__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",Dy,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)])}}},My={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Tc=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,Mt(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 m=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",My,[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(m,{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)}}}),cs=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_15cm2_1","!visible":"_!visible_15cm2_1",visible:"_visible_15cm2_1",collapse:"_collapse_15cm2_1",static:"_static_15cm2_1",absolute:"_absolute_15cm2_1",relative:"_relative_15cm2_1",sticky:"_sticky_15cm2_1","left-0":"_left-0_15cm2_1","right-0":"_right-0_15cm2_1","right-1":"_right-1_15cm2_1","top-0":"_top-0_15cm2_1","top-1":"_top-1_15cm2_1","z-10":"_z-10_15cm2_1","m-2":"_m-2_15cm2_1","m-4":"_m-4_15cm2_1","m-auto":"_m-auto_15cm2_1","mx-1":"_mx-1_15cm2_1","mx-4":"_mx-4_15cm2_1","mx-auto":"_mx-auto_15cm2_1","my-2":"_my-2_15cm2_1","!mr-1":"_!mr-1_15cm2_1","mb-2":"_mb-2_15cm2_1","mb-4":"_mb-4_15cm2_1","ml-1":"_ml-1_15cm2_1","ml-2":"_ml-2_15cm2_1","ml-2.5":"_ml-2.5_15cm2_1","ml-3":"_ml-3_15cm2_1","ml-4":"_ml-4_15cm2_1","ml-5":"_ml-5_15cm2_1","ml-[-.2em]":"_ml-[-.2em]_15cm2_1","mr-1":"_mr-1_15cm2_1","mr-2":"_mr-2_15cm2_1","mr-3":"_mr-3_15cm2_1","mr-4":"_mr-4_15cm2_1","mt-1":"_mt-1_15cm2_1","mt-2":"_mt-2_15cm2_1","mt-3":"_mt-3_15cm2_1","mt-4":"_mt-4_15cm2_1",block:"_block_15cm2_1","inline-block":"_inline-block_15cm2_1",inline:"_inline_15cm2_1",flex:"_flex_15cm2_1",table:"_table_15cm2_1",hidden:"_hidden_15cm2_1","h-10":"_h-10_15cm2_1","h-12":"_h-12_15cm2_1","h-16":"_h-16_15cm2_1","h-4":"_h-4_15cm2_1","h-5":"_h-5_15cm2_1","h-6":"_h-6_15cm2_1","h-8":"_h-8_15cm2_1","h-96":"_h-96_15cm2_1","h-[2.25rem]":"_h-[2.25rem]_15cm2_1","h-full":"_h-full_15cm2_1","max-h-full":"_max-h-full_15cm2_1","min-h-10":"_min-h-10_15cm2_1","w-10":"_w-10_15cm2_1","w-16":"_w-16_15cm2_1","w-2":"_w-2_15cm2_1","w-2/5":"_w-2/5_15cm2_1","w-24":"_w-24_15cm2_1","w-3":"_w-3_15cm2_1","w-3/4":"_w-3/4_15cm2_1","w-3/5":"_w-3/5_15cm2_1","w-32":"_w-32_15cm2_1","w-4":"_w-4_15cm2_1","w-48":"_w-48_15cm2_1","w-5":"_w-5_15cm2_1","w-6":"_w-6_15cm2_1","w-7":"_w-7_15cm2_1","w-72":"_w-72_15cm2_1","w-8":"_w-8_15cm2_1","w-96":"_w-96_15cm2_1","w-[13.5rem]":"_w-[13.5rem]_15cm2_1","w-[6.5rem]":"_w-[6.5rem]_15cm2_1","w-[60vw]":"_w-[60vw]_15cm2_1","w-full":"_w-full_15cm2_1","!min-w-0":"_!min-w-0_15cm2_1","min-w-10":"_min-w-10_15cm2_1","min-w-96":"_min-w-96_15cm2_1","max-w-full":"_max-w-full_15cm2_1","flex-shrink":"_flex-shrink_15cm2_1","flex-shrink-0":"_flex-shrink-0_15cm2_1",shrink:"_shrink_15cm2_1","flex-grow":"_flex-grow_15cm2_1",grow:"_grow_15cm2_1","rotate-180":"_rotate-180_15cm2_1",transform:"_transform_15cm2_1","cursor-ew-resize":"_cursor-ew-resize_15cm2_1","cursor-move":"_cursor-move_15cm2_1","cursor-not-allowed":"_cursor-not-allowed_15cm2_1","cursor-ns-resize":"_cursor-ns-resize_15cm2_1","cursor-pointer":"_cursor-pointer_15cm2_1",resize:"_resize_15cm2_1","flex-col":"_flex-col_15cm2_1","flex-nowrap":"_flex-nowrap_15cm2_1","items-center":"_items-center_15cm2_1","items-stretch":"_items-stretch_15cm2_1","justify-start":"_justify-start_15cm2_1","justify-end":"_justify-end_15cm2_1","justify-center":"_justify-center_15cm2_1","justify-between":"_justify-between_15cm2_1","gap-x-2":"_gap-x-2_15cm2_1","gap-x-4":"_gap-x-4_15cm2_1","gap-y-0":"_gap-y-0_15cm2_1","gap-y-1":"_gap-y-1_15cm2_1","space-x-1":"_space-x-1_15cm2_1","space-x-2":"_space-x-2_15cm2_1","self-center":"_self-center_15cm2_1","overflow-auto":"_overflow-auto_15cm2_1","overflow-hidden":"_overflow-hidden_15cm2_1","overflow-y-auto":"_overflow-y-auto_15cm2_70","overflow-x-hidden":"_overflow-x-hidden_15cm2_1","scroll-smooth":"_scroll-smooth_15cm2_1","overflow-ellipsis":"_overflow-ellipsis_15cm2_1","whitespace-normal":"_whitespace-normal_15cm2_1","whitespace-nowrap":"_whitespace-nowrap_15cm2_1","whitespace-pre-wrap":"_whitespace-pre-wrap_15cm2_1",rounded:"_rounded_15cm2_1","rounded-2xl":"_rounded-2xl_15cm2_1","rounded-full":"_rounded-full_15cm2_1","rounded-lg":"_rounded-lg_15cm2_1","rounded-md":"_rounded-md_15cm2_1","rounded-sm":"_rounded-sm_15cm2_1","!rounded-l-none":"_!rounded-l-none_15cm2_1","!rounded-r-none":"_!rounded-r-none_15cm2_1","rounded-b-lg":"_rounded-b-lg_15cm2_1","rounded-l-lg":"_rounded-l-lg_15cm2_1","rounded-r-lg":"_rounded-r-lg_15cm2_1","rounded-t-lg":"_rounded-t-lg_15cm2_1","rounded-t-md":"_rounded-t-md_15cm2_1","!border-0":"_!border-0_15cm2_1",border:"_border_15cm2_1","border-b":"_border-b_15cm2_1","border-l":"_border-l_15cm2_1","border-l-0":"_border-l-0_15cm2_1","border-r":"_border-r_15cm2_1","border-solid":"_border-solid_15cm2_1","border-dashed":"_border-dashed_15cm2_1","border-none":"_border-none_15cm2_1","border-blue-600":"_border-blue-600_15cm2_1","border-blue-700":"_border-blue-700_15cm2_1","border-gray-200":"_border-gray-200_15cm2_1","border-gray-300":"_border-gray-300_15cm2_1","border-slate-200":"_border-slate-200_15cm2_1","bg-amber-950":"_bg-amber-950_15cm2_1","bg-black":"_bg-black_15cm2_1","bg-blue-200":"_bg-blue-200_15cm2_1","bg-blue-300":"_bg-blue-300_15cm2_1","bg-blue-600":"_bg-blue-600_15cm2_1","bg-blue-900":"_bg-blue-900_15cm2_1","bg-blue-950":"_bg-blue-950_15cm2_1","bg-emerald-200":"_bg-emerald-200_15cm2_1","bg-gray-100":"_bg-gray-100_15cm2_1","bg-gray-200":"_bg-gray-200_15cm2_1","bg-gray-400":"_bg-gray-400_15cm2_1","bg-gray-500":"_bg-gray-500_15cm2_1","bg-gray-800":"_bg-gray-800_15cm2_1","bg-green-200":"_bg-green-200_15cm2_1","bg-green-300":"_bg-green-300_15cm2_1","bg-green-900":"_bg-green-900_15cm2_1","bg-green-950":"_bg-green-950_15cm2_1","bg-lime-300":"_bg-lime-300_15cm2_1","bg-orange-900":"_bg-orange-900_15cm2_1","bg-red-200":"_bg-red-200_15cm2_1","bg-red-300":"_bg-red-300_15cm2_1","bg-red-900":"_bg-red-900_15cm2_1","bg-red-950":"_bg-red-950_15cm2_1","bg-sky-300":"_bg-sky-300_15cm2_1","bg-sky-800":"_bg-sky-800_15cm2_1","bg-sky-900":"_bg-sky-900_15cm2_1","bg-sky-950":"_bg-sky-950_15cm2_1","bg-slate-100":"_bg-slate-100_15cm2_1","bg-slate-300":"_bg-slate-300_15cm2_1","bg-slate-400":"_bg-slate-400_15cm2_1","bg-slate-500":"_bg-slate-500_15cm2_1","bg-slate-600":"_bg-slate-600_15cm2_1","bg-slate-700":"_bg-slate-700_15cm2_1","bg-slate-800":"_bg-slate-800_15cm2_1","bg-slate-900":"_bg-slate-900_15cm2_1","bg-slate-950":"_bg-slate-950_15cm2_1","bg-transparent":"_bg-transparent_15cm2_1","bg-white":"_bg-white_15cm2_1","bg-yellow-300":"_bg-yellow-300_15cm2_1","bg-yellow-800":"_bg-yellow-800_15cm2_1","bg-yellow-950":"_bg-yellow-950_15cm2_1","!bg-none":"_!bg-none_15cm2_1","!p-2":"_!p-2_15cm2_1","p-0":"_p-0_15cm2_1","p-1":"_p-1_15cm2_1","p-2":"_p-2_15cm2_1","p-3":"_p-3_15cm2_1","p-4":"_p-4_15cm2_1","p-8":"_p-8_15cm2_1","!py-0":"_!py-0_15cm2_1","px-1":"_px-1_15cm2_1","px-1.5":"_px-1.5_15cm2_1","px-12":"_px-12_15cm2_1","px-2":"_px-2_15cm2_1","px-2.5":"_px-2.5_15cm2_1","px-3":"_px-3_15cm2_1","px-4":"_px-4_15cm2_1","px-6":"_px-6_15cm2_1","px-8":"_px-8_15cm2_1","py-0":"_py-0_15cm2_1","py-1":"_py-1_15cm2_1","py-1.5":"_py-1.5_15cm2_1","py-14":"_py-14_15cm2_1","py-2":"_py-2_15cm2_1","py-3":"_py-3_15cm2_1","py-4":"_py-4_15cm2_1","py-5":"_py-5_15cm2_1","py-8":"_py-8_15cm2_1","pl-1":"_pl-1_15cm2_1","pt-3":"_pt-3_15cm2_1","text-left":"_text-left_15cm2_1","text-center":"_text-center_15cm2_1","text-[.7rem]":"_text-[.7rem]_15cm2_1","text-[1rem]":"_text-[1rem]_15cm2_1","text-base":"_text-base_15cm2_1","text-lg":"_text-lg_15cm2_1","text-sm":"_text-sm_15cm2_1","text-xs":"_text-xs_15cm2_1","font-bold":"_font-bold_15cm2_1","font-medium":"_font-medium_15cm2_1","font-semibold":"_font-semibold_15cm2_1",uppercase:"_uppercase_15cm2_1","leading-[1.2rem]":"_leading-[1.2rem]_15cm2_1","!text-green-900":"_!text-green-900_15cm2_1","!text-red-900":"_!text-red-900_15cm2_1","!text-sky-900":"_!text-sky-900_15cm2_1","!text-white":"_!text-white_15cm2_1","!text-yellow-900":"_!text-yellow-900_15cm2_1","text-amber-400":"_text-amber-400_15cm2_1","text-blue-300":"_text-blue-300_15cm2_1","text-blue-400":"_text-blue-400_15cm2_1","text-blue-600":"_text-blue-600_15cm2_1","text-blue-900":"_text-blue-900_15cm2_1","text-gray-300":"_text-gray-300_15cm2_1","text-gray-400":"_text-gray-400_15cm2_1","text-gray-500":"_text-gray-500_15cm2_1","text-gray-600":"_text-gray-600_15cm2_1","text-gray-700":"_text-gray-700_15cm2_1","text-green-300":"_text-green-300_15cm2_1","text-green-400":"_text-green-400_15cm2_1","text-green-700":"_text-green-700_15cm2_1","text-green-900":"_text-green-900_15cm2_1","text-lime-900":"_text-lime-900_15cm2_1","text-orange-400":"_text-orange-400_15cm2_1","text-red-400":"_text-red-400_15cm2_1","text-red-500":"_text-red-500_15cm2_1","text-red-800":"_text-red-800_15cm2_1","text-red-900":"_text-red-900_15cm2_1","text-sky-400":"_text-sky-400_15cm2_1","text-sky-900":"_text-sky-900_15cm2_1","text-slate-200":"_text-slate-200_15cm2_1","text-slate-300":"_text-slate-300_15cm2_1","text-slate-400":"_text-slate-400_15cm2_1","text-slate-50":"_text-slate-50_15cm2_1","text-slate-500":"_text-slate-500_15cm2_1","text-slate-600":"_text-slate-600_15cm2_1","text-slate-800":"_text-slate-800_15cm2_1","text-slate-900":"_text-slate-900_15cm2_1","text-white":"_text-white_15cm2_1","text-yellow-300":"_text-yellow-300_15cm2_1","text-yellow-400":"_text-yellow-400_15cm2_1","text-yellow-600":"_text-yellow-600_15cm2_1","text-zinc-500":"_text-zinc-500_15cm2_1","text-zinc-800":"_text-zinc-800_15cm2_1","line-through":"_line-through_15cm2_1","opacity-0":"_opacity-0_15cm2_1","opacity-20":"_opacity-20_15cm2_1","opacity-50":"_opacity-50_15cm2_1","opacity-70":"_opacity-70_15cm2_1","opacity-80":"_opacity-80_15cm2_1","shadow-none":"_shadow-none_15cm2_1","outline-none":"_outline-none_15cm2_1",outline:"_outline_15cm2_1","outline-offset-0":"_outline-offset-0_15cm2_1",filter:"_filter_15cm2_1",transition:"_transition_15cm2_1","transition-all":"_transition-all_15cm2_1","duration-300":"_duration-300_15cm2_1","danx-app":"_danx-app_15cm2_4","q-tab":"_q-tab_15cm2_4","q-table__card":"_q-table__card_15cm2_7","q-checkbox__inner":"_q-checkbox__inner_15cm2_11","q-toolbar":"_q-toolbar_15cm2_14","q-notification__actions":"_q-notification__actions_15cm2_19","q-date":"_q-date_15cm2_22","q-date__view":"_q-date__view_15cm2_25","q-field":"_q-field_15cm2_28","q-field--auto-height":"_q-field--auto-height_15cm2_28","q-field__control":"_q-field__control_15cm2_28","q-field__native":"_q-field__native_15cm2_31","q-field--labeled":"_q-field--labeled_15cm2_35","q-field__control-container":"_q-field__control-container_15cm2_35","q-textarea":"_q-textarea_15cm2_38","q-field__marginal":"_q-field__marginal_15cm2_41","q-field__input":"_q-field__input_15cm2_41","q-field__label":"_q-field__label_15cm2_41","q-btn":"_q-btn_15cm2_48","q-item":"_q-item_15cm2_56","q-tab-panels":"_q-tab-panels_15cm2_60","q-panel":"_q-panel_15cm2_64",scroll:"_scroll_15cm2_67","dx-dialog":"_dx-dialog_15cm2_74","q-card__section--vert":"_q-card__section--vert_15cm2_74","q-banner":"_q-banner_15cm2_78",app:"_app_15cm2_1","main-layout":"_main-layout_15cm2_1","is-disabled":"_is-disabled_15cm2_95","disable-all-transitions":"_disable-all-transitions_15cm2_100","v-enter-active":"_v-enter-active_15cm2_104","v-leave-active":"_v-leave-active_15cm2_105","v-enter-from":"_v-enter-from_15cm2_109","v-leave-to":"_v-leave-to_15cm2_110","dx-action-table":"_dx-action-table_15cm2_114","dx-column-shrink":"_dx-column-shrink_15cm2_114","dialog-title":"_dialog-title_15cm2_118","dialog-content":"_dialog-content_15cm2_125","hover:bg-blue-200":"_hover:bg-blue-200_15cm2_1","hover:bg-blue-400":"_hover:bg-blue-400_15cm2_1","hover:bg-blue-800":"_hover:bg-blue-800_15cm2_1","hover:bg-gray-200":"_hover:bg-gray-200_15cm2_1","hover:bg-green-100":"_hover:bg-green-100_15cm2_1","hover:bg-green-400":"_hover:bg-green-400_15cm2_1","hover:bg-green-800":"_hover:bg-green-800_15cm2_1","hover:bg-lime-400":"_hover:bg-lime-400_15cm2_1","hover:bg-orange-800":"_hover:bg-orange-800_15cm2_1","hover:bg-red-100":"_hover:bg-red-100_15cm2_1","hover:bg-red-200":"_hover:bg-red-200_15cm2_1","hover:bg-red-400":"_hover:bg-red-400_15cm2_1","hover:bg-sky-400":"_hover:bg-sky-400_15cm2_1","hover:bg-sky-800":"_hover:bg-sky-800_15cm2_1","hover:bg-sky-900":"_hover:bg-sky-900_15cm2_1","hover:bg-slate-200":"_hover:bg-slate-200_15cm2_1","hover:bg-slate-300":"_hover:bg-slate-300_15cm2_1","hover:bg-slate-400":"_hover:bg-slate-400_15cm2_1","hover:bg-slate-600":"_hover:bg-slate-600_15cm2_1","hover:bg-slate-800":"_hover:bg-slate-800_15cm2_1","hover:bg-slate-900":"_hover:bg-slate-900_15cm2_1","hover:bg-yellow-700":"_hover:bg-yellow-700_15cm2_1","hover:text-blue-500":"_hover:text-blue-500_15cm2_1","hover:text-blue-600":"_hover:text-blue-600_15cm2_1","hover:opacity-100":"_hover:opacity-100_15cm2_1","hover:opacity-20":"_hover:opacity-20_15cm2_1","hover:opacity-70":"_hover:opacity-70_15cm2_1","hover:outline-4":"_hover:outline-4_15cm2_1","focus:bg-blue-200":"_focus:bg-blue-200_15cm2_1","focus:outline-4":"_focus:outline-4_15cm2_1","focus:outline-blue-200":"_focus:outline-blue-200_15cm2_1",group:"_group_15cm2_1","group-hover:opacity-100":"_group-hover:opacity-100_15cm2_1"}}]]),Bc=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;Bc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const dn=Bc,Py={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await xn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(xn)?(i.openBlock(),i.createBlock(i.unref(dn),{key:0,vnode:i.unref(xn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(xn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},Nc={__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"],Ic=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:pe.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(Nc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(ip),{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)}}}),Vy={__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,m)=>{const _=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(_,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":m[0]||(m[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"])}}},Ry={class:"flex items-center w-full"},Uy={class:"flex-grow text-sm"},zy={__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",Ry,[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"])}}},qy={class:"flex items-center w-full"},Hy={class:"flex-grow text-sm"},Gy={__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",qy,[i.createElementVNode("div",Hy,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(Ha),{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"])}}},Zy={};function Wy(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const jy=ft(Zy,[["render",Wy]]),$c={__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}))}}),Ky={__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=y),!0;var C=document.createElement("iframe");document.body.appendChild(C),x||(y="data:"+y.replace(/^data:([\w/\-+]+)/,o)),C.src=y,setTimeout(function(){document.body.removeChild(C)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(m,f);if(r.URL)g(r.URL.createObjectURL(m),!0);else{if(typeof m=="string"||m.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(m))}catch{return g("data:"+s+","+encodeURIComponent(m))}_=new FileReader,_.onload=function(y){g(this.result)},_.readAsDataURL(m)}return!0}async function o_(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=ee.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 i_(o,e)}async function i_(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()),$i(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 s_=class{constructor(e){if(i4(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 i4(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 l_(t,e,n){try{return new DataView(t,e,n)}catch{return new s_(t,e,n)}}function R(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 s4(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 a_(t,e){const n=t.getUint8(e),r=R(t,e+1,n);return[n,r]}function Sr(t){return t.map(e=>String.fromCharCode(e)).join("")}function z(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function c_(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 u_(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 l4(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 a4(t,e,n){return d_(n,e-t.length)+t}function c4(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function d_(t,e){return new Array(e+1).join(t)}const Fi=void 0,f_=0;function m_(t,e,n,r="string"){if(e===f_&&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 he(t){return t.map(e=>String.fromCharCode(e)).join("")}function aa(t){if(t.length>=8){const e=he(t.slice(0,8));if(e==="ASCII\0\0\0")return he(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 Ai(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:u4};function u4(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:d4,findTiffOffsets:m4};function d4(t){return!!t&&t.byteLength>=4&&f4(t)}function f4(t){const r=t.getUint16(0)===An.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function m4(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const p_={isJpegFile:I4,findJpegOffsets:$4},_4=2,h4=65496,g_=2,nt=4,Ne=2,p4=2,g4=10,y4=18,y_=33,b_=79,w_=18,b4=8,da="ICC_PROFILE\0",k_=nt+da.length,w4=k_+1,x_="MPF\0",S_=65472,C_=65474,k4=65476,x4=65499,S4=65501,C4=65498,E_=65504,fa=65505,T_=65506,E4=65517,T4=65519,B4=65534,N4=65535,B_="JFIF",N_="Exif",I_="http://ns.adobe.com/xap/1.0/\0",$_="http://ns.adobe.com/xmp/extension/\0",F_="Photoshop 3.0";function I4(t){return!!t&&t.byteLength>=_4&&t.getUint16(0)===h4}function $4(t){let e=g_,n,r,o,s,l,a,c,u,d;for(;e+nt+5<=t.byteLength;){if(F4(t,e))n=t.getUint16(e+Ne),r=e+Ne;else if(A4(t,e))n=t.getUint16(e+Ne),o=e+Ne;else if(v4(t,e))n=t.getUint16(e+Ne),s=e+p4;else if(M4(t,e))n=t.getUint16(e+Ne),l=e+g4;else if(P4(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(U4(e,n));else if(V4(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(z4(e,n));else if(q4(t,e))n=t.getUint16(e+Ne),a=e+y4;else if(O4(t,e)){n=t.getUint16(e+Ne);const f=e+w_,m=n-(w_-Ne),_=t.getUint8(e+k_),p=t.getUint8(e+w4);u||(u=[]),u.push({offset:f,length:m,chunkNumber:_,chunksTotal:p})}else if(D4(t,e))n=t.getUint16(e+Ne),d=e+b4;else if(H4(t,e))n=t.getUint16(e+Ne);else if(G4(t,e)){e++;continue}else break;e+=Ne+n}return{hasAppMarkers:e>g_,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function F4(t,e){return t.getUint16(e)===S_}function A4(t,e){return t.getUint16(e)===C_}function O4(t,e){const n=da.length;return t.getUint16(e)===T_&&R(t,e+nt,n)===da}function D4(t,e){const n=x_.length;return t.getUint16(e)===T_&&R(t,e+nt,n)===x_}function v4(t,e){const n=B_.length;return t.getUint16(e)===E_&&R(t,e+nt,n)===B_&&t.getUint8(e+nt+n)===0}function M4(t,e){const n=N_.length;return t.getUint16(e)===fa&&R(t,e+nt,n)===N_&&t.getUint8(e+nt+n)===0}function P4(t,e){return t.getUint16(e)===fa&&L4(t,e)}function L4(t,e){const n=I_.length;return R(t,e+nt,n)===I_}function V4(t,e){return t.getUint16(e)===fa&&R4(t,e)}function R4(t,e){const n=$_.length;return R(t,e+nt,n)===$_}function U4(t,e){return{dataOffset:t+y_,length:e-(y_-Ne)}}function z4(t,e){return{dataOffset:t+b_,length:e-(b_-Ne)}}function q4(t,e){const n=F_.length;return t.getUint16(e)===E4&&R(t,e+nt,n)===F_&&t.getUint8(e+nt+n)===0}function H4(t,e){const n=t.getUint16(e);return n>=E_&&n<=T4||n===B4||n===S_||n===C_||n===k4||n===x4||n===S4||n===C4}function G4(t,e){return t.getUint16(e)===N4}const A_={isPngFile:j4,findPngOffsets:Y4},ma=`‰PNG\r
152
152
  
153
- `,Oi=4,ut=4,Cr=0,tn=Oi,be=Oi+ut,_a="XML:com.adobe.xmp\0",ha="tEXt",On="iTXt",Di="zTXt",O_="pHYs",D_="tIME",Z4="eXIf",W4="iCCP";function j4(t){return!!t&&R(t,0,ma.length)===ma}function Y4(t,e){const r={hasAppMarkers:!1};let o=ma.length;for(;o+Oi+ut<=t.byteLength;){if(K4(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+be;else if(Q4(t,o)){const s=nS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Cr)-(s-(o+be))}])}else if(X4(t,o,e)){r.hasAppMarkers=!0;const s=R(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Cr),type:s,offset:o+be})}else if(J4(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+be;else if(e&&eS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Cr),l=o+be,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=rS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else tS(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Cr));o+=t.getUint32(o+Cr)+Oi+ut+4}return r}function K4(t,e){return R(t,e+tn,ut)==="IHDR"}function Q4(t,e){return R(t,e+tn,ut)===On&&R(t,e+be,_a.length)===_a}function X4(t,e,n){const r=R(t,e+tn,ut);return r===ha||r===On||r===Di&&n}function J4(t,e){return R(t,e+tn,ut)===Z4}function eS(t,e){return R(t,e+tn,ut)===W4}function tS(t,e){const n=[O_,D_],r=R(t,e+tn,ut);return n.includes(r)}function nS(t,e){e+=be+_a.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function rS(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 oS(t,e){return t.getUint32(e+4)}function iS(t,e,n,r){const{offsets:s,sizes:l}=sS(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=lS(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=aS(t,s.itemCount,e);return{type:"iloc",items:cS(t,e,s,l,a,c,d,f),length:r}}function sS(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 lS(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function aS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function cS(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=uS(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 m=0;m<f.extentCount;m++){const _={};_.extentIndex=dS(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=vi(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=vi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function uS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function dS(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."),oS(t,e)):0}const fS=1718909296,mS=1768977008,_S=1835365473,hS=1768714083,pS=1768517222,gS=1768842853,yS=1768973167,bS=1668246642,v_=1165519206,pa=1835625829,wS=1970432288;function Mi(t,e){const{length:s,contentOffset:l}=kS(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===fS)return AS(t,l,s);if(a===mS)return OS(t,e,l,s);if(a===yS)return DS(t,e,l,s);if(a===bS)return vS(t,l,s);const c=t.getUint8(l);return a===_S?PS(t,e,l+1,s):a===hS?iS(t,c,l+1,s):a===pS?LS(t,e,c,l+1,s):a===gS?RS(t,e,c,l+1,s):{type:void 0,length:s}}function kS(t,e){const l=t.getUint32(e);return xS(l)?{length:t.byteLength-e,contentOffset:e+4+4}:SS(l)&&CS(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function xS(t){return t===0}function SS(t){return t===1}function CS(t,e){return t.getUint32(e+8)===0}function M_(t){{const e={},n=ES(t);return n?(e.tiffHeaderOffset=TS(t,n),e.xmpChunks=IS(n),e.iccChunks=FS(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function ES(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Mi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function TS(t,e){try{const n=BS(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return NS(t,o)}catch{return}}function BS(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===v_)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function NS(t,e){return e+4+t.getUint32(e)}function IS(t){try{const e=$S(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function $S(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function FS(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 AS(t,e,n){return{type:"ftyp",majorBrand:R(t,e,4),length:n}}function OS(t,e,n,r){return{type:"iprp",subBoxes:Pi(t,n,r-(n-e)),length:r}}function DS(t,e,n,r){return{type:"ipco",properties:Pi(t,n,r-(n-e)),length:r}}function vS(t,e,n){return{type:"colr",icc:MS(t,e),length:n}}function MS(t,e){const r=R(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function PS(t,e,n,r){return{type:"meta",subBoxes:Pi(t,n+3,r-(n+3-e)),length:r}}function Pi(t,e,n){const r=[v_,pa],o=[];let s=e;for(;s<e+n;){const l=Mi(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 LS(t,e,n,r,o){const{offsets:s}=VS(n,r);return{type:"iinf",itemInfos:Pi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function VS(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 RS(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===wS&&(l.itemUri=xr(t,r),r+=l.itemUri.length+1)),l}const P_={isHeicFile:US,findHeicOffsets:zS};function US(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Mi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function zS(t){return M_(t)}const L_={isAvifFile:qS,findAvifOffsets:HS};function qS(t){if(!t)return!1;try{const e=Mi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function HS(t){return M_(t)}const V_={isWebpFile:GS,findOffsets:ZS};function GS(t){const n="RIFF",o="WEBP";return!!t&&R(t,0,n.length)===n&&R(t,8,o.length)===o}function ZS(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=R(t,s,4),m=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,R(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:m}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:m,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(m%2===0?m:m+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const R_={isGifFile:YS,findOffsets:KS},WS=6,jS=["GIF87a","GIF89a"];function YS(t){return!!t&&jS.includes(R(t,0,WS))}function KS(){return{gifHeaderOffset:0}}const U_={isXMLFile:QS,findOffsets:XS},z_=0,q_="<?xpacket begin";function QS(t){return!!t&&R(t,z_,q_.length)===q_}function XS(t){const e=[];return e.push({dataOffset:z_,length:t.byteLength}),{xmpChunks:e}}const JS={parseAppMarkers:eC};function eC(t,e){if(h_.isTiffFile(t))return nn(h_.findTiffOffsets(),"tiff","TIFF");if(p_.isJpegFile(t))return nn(p_.findJpegOffsets(t),"jpeg","JPEG");if(A_.isPngFile(t))return nn(A_.findPngOffsets(t,e),"png","PNG");if(P_.isHeicFile(t))return nn(P_.findHeicOffsets(t),"heic","HEIC");if(L_.isAvifFile(t))return nn(L_.findAvifOffsets(t),"avif","AVIF");if(V_.isWebpFile(t))return nn(V_.findOffsets(t),"webp","WebP");if(R_.isGifFile(t))return nn(R_.findOffsets(t),"gif","GIF");if(U_.isXMLFile(t))return nn(U_.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return z({},t,{fileType:{value:e,description:n}})}const U={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])},H_={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:U.XResolution},283:{name:"YResolution",description:U.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:U.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:ho},40092:{name:"XPComment",description:ho},40093:{name:"XPAuthor",description:ho},40094:{name:"XPKeywords",description:ho},40095:{name:"XPSubject",description:ho},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:U.LightSource},50779:{name:"CalibrationIlluminant2",description:U.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 ho(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const tC={33434:{name:"ExposureTime",description:U.ExposureTime},33437:{name:"FNumber",description:U.FNumber},34850:{name:"ExposureProgram",description:U.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=>he(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:U.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:U.ShutterSpeedValue},37378:{name:"ApertureValue",description:U.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:U.MeteringMode},37384:{name:"LightSource",description:U.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:U.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:U.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:U.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:U.CustomRendered},41986:{name:"ExposureMode",description:U.ExposureMode},41987:{name:"WhiteBalance",description:U.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:U.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:U.Contrast},41993:{name:"Saturation",description:U.Saturation},41994:{name:"Sharpness",description:U.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"},nC={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:Ai},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ai},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"},rC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>he(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},oC={45056:{name:"MPFVersion",description:t=>he(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},iC={4:{name:"ShotInfo",description:t=>t}},G_=z({},H_,tC),ya="0th",Z_="1st",W_="exif",j_="gps",Y_="interoperability",K_="mpf",Q_="canon",rn={[ya]:G_,[Z_]:H_,[W_]:G_,[j_]:nC,[Y_]:rC,[K_]:oC,[Q_]:iC},X_={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},F={getAsciiValue:sC,getByteAt:J_,getAsciiAt:lC,getShortAt:aC,getLongAt:Li,getRationalAt:cC,getUndefinedAt:uC,getSlongAt:wa,getSrationalAt:dC,getIfdPointerAt:fC,typeSizes:X_,tagTypes:ba,getTypeSize:mC};function sC(t){return t.map(e=>String.fromCharCode(e))}function J_(t,e){return t.getUint8(e)}function lC(t,e){return t.getUint8(e)}function aC(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function Li(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function cC(t,e,n){return[Li(t,e,n),Li(t,e+4,n)]}function uC(t,e){return J_(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function dC(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function fC(t,e,n){return Li(t,e,n)}function mC(t){if(ba[t]===void 0)throw new Error("No such type found.");return X_[ba[t]]}const _C={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function e1(t,e,n){return e+F.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=hC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=pC(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-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,Z_,n,n+d,o,s))}return c}function hC(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function pC(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),m=F.getLongAt(t,r+c,o);let _,p;if(F.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if(gC(f,m))p=r+u,_=t1(t,p,f,m,o);else if(p=F.getLongAt(t,r+u,o),yC(t,n,p,f,m)){const y=d===33723;_=t1(t,n+p,f,m,o,y)}else _="<faulty value>";f===F.tagTypes.ASCII&&(_=bC(_),_=wC(_));let h=`undefined-${d}`,g=_;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){h=rn[e][d].name;try{g=rn[e][d].description(_)}catch{g=n1(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(h=rn[e][d],g=""+_[0]/_[1]):(h=rn[e][d],g=n1(_));return{id:d,name:h,value:_,description:g,__offset:p}}function gC(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function t1(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(_C[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function yC(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function bC(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 wC(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function n1(t){return t instanceof Array?t.join(", "):t}const r1="Exif IFD Pointer",o1="GPS Info IFD Pointer",i1="Interoperability IFD Pointer",s1={read:kC};function kC(t,e,n){const r=An.getByteOrder(t,e);let o=xC(t,e,r,n);return o=SC(o,t,e,r,n),o=CC(o,t,e,r,n),o=EC(o,t,e,r,n),{tags:o,byteOrder:r}}function xC(t,e,n,r){return Dn(t,ya,e,e1(t,e,n),n,r)}function SC(t,e,n,r,o){return t[r1]!==void 0?z(t,Dn(e,W_,n,n+t[r1].value,r,o)):t}function CC(t,e,n,r,o){return t[o1]!==void 0?z(t,Dn(e,j_,n,n+t[o1].value,r,o)):t}function EC(t,e,n,r,o){return t[i1]!==void 0?z(t,Dn(e,Y_,n,n+t[i1].value,r,o)):t}const TC={read:BC},Er=16;function BC(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,K_,e,e1(t,e,r),r,n);return NC(t,e,o,r)}function NC(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=po(n.MPEntry.value,s*Er,F.getTypeSize("LONG"),r);o[s].ImageFlags=IC(l),o[s].ImageFormat=$C(l),o[s].ImageType=FC(l);const a=po(n.MPEntry.value,s*Er+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=AC(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=po(n.MPEntry.value,s*Er+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=po(n.MPEntry.value,s*Er+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),c_(o[s],"base64",function(){return u_(this.image)})}return n.Images=o,n}function po(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 IC(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 $C(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function FC(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 AC(t,e,n,r){return OC(t)?0:po(e.value,t*Er+8,F.getTypeSize("LONG"),n)+r}function OC(t){return t===0}const DC={read:vC};function vC(t,e){const n=MC(t,e),r=RC(t,e,n);return{"Bits Per Sample":PC(t,e,n),"Image Height":LC(t,e,n),"Image Width":VC(t,e,n),"Color Components":r,Subsampling:r&&UC(t,e,r.value,n)}}function MC(t,e){return F.getShortAt(t,e)}function PC(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function LC(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function VC(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function RC(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function UC(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([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?zC(l)+qC(l):""}}function zC(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function qC(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 HC={read:GC};function GC(t,e){const n=ZC(t,e),r=XC(t,e,n),o=JC(t,e,n),s={"JFIF Version":WC(t,e,n),"Resolution Unit":jC(t,e,n),XResolution:KC(t,e,n),YResolution:QC(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=eE(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 ZC(t,e){return F.getShortAt(t,e)}function WC(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function jC(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:YC(s)}}function YC(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function KC(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function QC(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function XC(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function JC(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function eE(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:l1,encoding_name:l1},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=>he(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=he(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=he(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=he(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=he(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=he(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(he(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(he(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=he(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 he(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=he(t);if(e["ObjectData Preview File Format"]){const o=he(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=he(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=he(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 l1(t){const e=he(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 tE={get:nE};function nE(){if(typeof TextDecoder<"u")return TextDecoder}const a1={decode:rE,TAG_HEADER_SIZE:5};function rE(t,e){const n=tE.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 oE(r)}function oE(t){try{return decodeURIComponent(escape(t))}catch{return t}}const iE=943868237,go=4,Vi=2,sE=1,lE=2,c1=4,aE=go+Vi+lE+c1,cE=1028,u1=5,Sa={read:uE};function uE(t,e,n){try{if(Array.isArray(t))return d1(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=dE(t,e);return d1(t,r,o,n)}catch{return{}}}function dE(t,e){for(;e+aE<=t.byteLength;){const n=fE(t,e);if(mE(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+_E(n)}throw new Error("No IPTC NAA resource block.")}function fE(t,e){if(t.getUint32(e,!1)!==iE)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+go+Vi),r=(n%2===0?n+1:n)+sE;return{headerSize:go+Vi+r+c1,type:t.getUint16(e+go),size:t.getUint32(e+go+Vi+r)}}function mE(t){return t.type===cE}function _E(t){return t.size%2!==0?1:0}function d1(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=hE(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+=u1+c}return o}function hE(t,e,n,r,o){if(pE(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=gE(t,e+u1,c),d={id:a,name:yE(on.iptc[a],a,u),value:u,description:kE(on.iptc[a],u,n,r)};return CE(a)&&(d.repeatable=!0),EE(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function pE(t,e){return t.getUint8(e)!==28}function gE(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function yE(t,e,n){return t?bE(t)?t:wE(t)?t.name(n):t.name:`undefined-${e}`}function bE(t){return typeof t=="string"}function wE(t){return typeof t.name=="function"}function kE(t,e,n,r){if(SE(t))try{return t.description(e,n)}catch{}return xE(t,e)?a1.decode(r,e):e}function xE(t,e){return t&&e instanceof Array}function SE(t){return t&&t.description!==void 0}function CE(t){return on.iptc[t]&&on.iptc[t].repeatable}function EE(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const Ri={"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=>U.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Tr(U.XResolution,t),"tiff:YResolution":t=>Tr(U.YResolution,t),"exif:ApertureValue":t=>Tr(U.ApertureValue,t),"exif:GPSLatitude":m1,"exif:GPSLongitude":m1,"exif:FNumber":t=>Tr(U.FNumber,t),"exif:FocalLength":t=>Tr(U.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>U.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>U.ColorSpace(TE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return U.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>U.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>U.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>U.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>U.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return f1(t)?U.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>U.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>U.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>U.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>U.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Tr(U.ShutterSpeedValue,t),"exif:WhiteBalance":t=>U.WhiteBalance(parseInt(t,10))};function Tr(t,e){return f1(e)?t(e.split("/")):e}function TE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function f1(t){return/^-?\d+\/-?\d+$/.test(t)}function m1(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 BE={get:NE};function NE(){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 _1={read:IE};function IE(t,e){const n={};if(typeof t=="string")return Ui(n,t),n;const[r,o]=$E(t,e),s=Ui(n,r);if(o){const l=Ui(n,o);!s&&!l&&(delete n._raw,Ui(n,Ca(t,e)))}return n}function $E(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 Ui(t,e){try{const{doc:n,raw:r}=FE(e);t._raw=(t._raw||"")+r;const o=h1(n);return z(t,g1(p1(o,!0))),!0}catch{return!1}}function FE(t){const e=BE.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:R(t,0,t.byteLength),r=e.parseFromString(AE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function AE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function h1(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return h1(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function p1(t,e=!1){const n=OE(t);return DE(n)?e?{}:vE(n[0]):ME(n)}function OE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function DE(t){return t.length===1&&t[0].nodeName==="#text"}function vE(t){return t.nodeValue}function ME(t){const e={};return t.forEach(n=>{if(PE(n)){const r=LE(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 PE(t){return t.nodeName&&t.nodeName!=="#text"}function LE(t){return{attributes:VE(t),value:p1(t)}}function VE(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 g1(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=>{z(e,Ea(o.attributes)),typeof o.value=="object"&&z(e,y1(o.value))})}return e}function Ea(t){const e={};for(const n in t)try{RE(n)&&(e[qi(n)]={value:t[n],attributes:{},description:Dt(t[n],n)})}catch{}return e}function RE(t){return t!=="rdf:parseType"&&!zi(t)}function zi(t){return t.split(":")[0]==="xmlns"}function qi(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Dt(t,e=void 0){if(Array.isArray(t)){const n=UE(t);return e&&typeof Ri[e]=="function"?Ri[e](t,n):n}if(typeof t=="object")return zE(t);try{return e&&typeof Ri[e]=="function"?Ri[e](t):decodeURIComponent(escape(t))}catch{return t}}function UE(t){return t.map(e=>e.value!==void 0?Dt(e.value):Dt(e)).join(", ")}function zE(t){const e=[];for(const n in t)e.push(`${qE(n)}: ${Dt(t[n].value)}`);return e.join("; ")}function qE(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 y1(t){const e={};for(const n in t)try{zi(n)||(e[qi(n)]=HE(t[n],n))}catch{}return e}function HE(t,e){return ZE(t)?WE(t,e):GE(t)?{value:"",attributes:{},description:""}:b1(t)?w1(t,e):k1(t)?x1(t,e):S1(t)?C1(t,e):KE(t)?QE(t,e):Ta(t,e)}function GE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function ZE(t){return Array.isArray(t)}function WE(t,e){return Ta(t[t.length-1],e)}function b1(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 w1(t,e){const n=yo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),z(n,yo(t),jE(t));const r=YE(t);return{value:r,attributes:n,description:Dt(r,e)}}function yo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!zi(n)&&(e[qi(n)]=t.attributes[n]);return e}function jE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!zi(n)&&(e[qi(n)]=t.value[n].value);return e}function YE(t){return T1(t.value["rdf:value"])||t.value["rdf:value"].value}function k1(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function x1(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(z(n.value,Ea(t.value["rdf:Description"].attributes)),z(n.attributes,yo(t)),t=t.value["rdf:Description"]),z(n.value,y1(t.value)),n.description=Dt(n.value,e),n}function S1(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function C1(t,e){const n=Ea(t.attributes);return{value:n,attributes:{},description:Dt(n,e)}}function KE(t){return E1(t.value)!==void 0}function E1(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function QE(t,e){let n=E1(t.value).value["rdf:li"];const r=yo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(XE(s))}),{value:o,attributes:r,description:Dt(o,e)}}function XE(t){return b1(t)?w1(t):k1(t)?x1(t).value:S1(t)?C1(t).value:Ta(t)}function Ta(t,e){const n=T1(t)||g1(t.value);return{value:n,attributes:yo(t),description:Dt(n,e)}}function T1(t){return t.attributes&&t.attributes["rdf:resource"]}const vt={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},B1=24,Ba={2e3:{name:"PathInformation",description:JE},2999:{name:"ClippingPathName",description(t){const[,e]=a_(t,0);return e}}};function JE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+B1){const s=F.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={[vt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[vt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Hi},[vt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Hi},[vt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[vt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Hi},[vt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Hi},[vt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[vt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[vt.CLIPBOARD]:{description:"Clipboard",path:tT}};function Hi(t,e){const r=[];for(let o=0;o<B1;o+=8)r.push(eT(t,e+o));return r}function eT(t,e){const n=vn(t,e,8);return[vn(t,e+4,8),n]}function tT(t,e){return[[vn(t,e,8),vn(t,e+4,8),vn(t,e+8,8),vn(t,e+12,8)],vn(t,e+16,8)]}function vn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(d_("1",32-n),2);return o*c4(s.toString(2)+"."+a4(l.toString(2),32-n,"0"),2)}const nT={read:iT},N1="8BIM",rT=2,oT=4,I1=N1.length;function iT(t,e){const n=l_(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=R(n,o,I1);o+=I1;const l=F.getShortAt(n,o);o+=rT;const{tagName:a,tagNameSize:c}=sT(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=oT,s===N1){const d=l_(n.buffer,o,u),f={id:l,value:R(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 sT(t,e){const[n,r]=a_(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const $1={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"}},F1={4:{name:"Preferred CMM type",value:(t,e)=>R(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)=>R(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)=>R(t,e,4)},20:{name:"Connection Space",value:(t,e)=>R(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>lT(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>aT(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>R(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>R(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>R(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)=>R(t,e,4)}};function lT(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 aT(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 A1={read:gT},cT=84,uT=128,dT="acsp",fT="desc",mT="mluc",_T="text",hT="sig ",pT=12;function gT(t,e,n){return n&&e[0].compressionMethod!==Fi?yT(t,e):wT(t,e)}function yT(t,e){if(!bT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return m_(n,e[0].compressionMethod,"utf-8","dataview").then(O1).catch(()=>({}))}function bT(t){return t===f_}function wT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=kT(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 O1(new DataView(r.buffer))}catch{return{}}}function kT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function xT(t){return t.length<uT+4}function ST(t,e){return t.length<e+pT}function O1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<cT)throw new Error("ICC profile too short");const r={},o=Object.keys(F1);for(let c=0;c<o.length;c++){const u=o[c],d=F1[u],f=d.value(t,parseInt(u,10));let m=f;d.description&&(m=d.description(f)),r[d.name]={value:f,description:m}}if(Gi(e.slice(36,40))!==dT)throw new Error("ICC profile: missing signature");if(xT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(ST(e,a))return r;const u=R(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const m=R(t,d,4);if(m===fT){const _=t.getUint32(d+8);if(_>f)return r;const p=Gi(e.slice(d+12,d+_+11));bo(r,u,p)}else if(m===mT){const _=t.getUint32(d+8),p=t.getUint32(d+12);let h=d+16;const g=[];for(let y=0;y<_;y++){const x=R(t,h+0,2),C=R(t,h+2,2),B=t.getUint32(h+4),T=t.getUint32(h+8),b=s4(t,d+T,B);g.push({languageCode:x,countryCode:C,text:b}),h+=p}if(_===1)bo(r,u,g[0].text);else{const y={};for(let x=0;x<g.length;x++)y[`${g[x].languageCode}-${g[x].countryCode}`]=g[x].text;bo(r,u,y)}}else if(m===_T){const _=Gi(e.slice(d+8,d+f-7));bo(r,u,_)}else if(m===hT){const _=Gi(e.slice(d+8,d+12));bo(r,u,_)}a=a+12}return r}function Gi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function bo(t,e,n){$1[e]?t[$1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Zi=27,CT={read:ET,SHOT_INFO_AUTO_ROTATE:Zi};function ET(t,e,n,r,o){let s=Dn(t,Q_,e,e+n,r,o);return s.ShotInfo&&(s=z({},s,TT(s.ShotInfo.value)),delete s.ShotInfo),s}function TT(t){const e={};return t[Zi]!==void 0&&(e.AutoRotate={value:t[Zi],description:BT(t[Zi])}),e}function BT(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const NT={read:IT};function IT(t,e){return{"Image Width":$T(t,e),"Image Height":FT(t,e),"Bit Depth":AT(t,e),"Color Type":OT(t,e),Compression:DT(t,e),Filter:vT(t,e),Interlace:MT(t,e)}}function $T(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function FT(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function AT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function OT(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=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function DT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function vT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function MT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const PT={read:zT},$a="STATE_KEYWORD",Fa="STATE_COMPRESSION",Aa="STATE_LANG",LT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",VT=1,RT=1,UT=6;function zT(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=qT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:m,description:_})=>{try{if(__.USE_EXIF&&v1(f,m))return{__exif:s1.read(P1(m),UT,r).tags};if(__.USE_IPTC&&M1(f,m))return{__iptc:Sa.read(P1(m),0,r)};if(f&&!v1(f,m)&&!M1(f,m))return{[f]:{value:m,description:_}}}catch{}return{}}));else{const{name:f,value:m,description:_}=d;f&&(o[f]={value:m,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function qT(t,e,n,r,o){const s=[],l=[];let a,c=$a,u=Fi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Fa){u=HT({type:r,dataView:t,offset:e+f}),r===On&&(f+=VT),c=D1(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const m=t.getUint8(e+f);m===0?c=D1(r,c):c===$a?s.push(m):c===Aa&&l.push(m)}if(u!==Fi&&!o)return{};const d=m_(a,u,GT(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 HT({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===RT)return e.getUint8(n+1)}else if(t===Di)return e.getUint8(n);return Fi}function D1(t,e){return e===$a&&[On,Di].includes(t)?Fa:e===Fa?t===On?Aa:Oa:e===Aa?LT:Oa}function GT(t){return t===ha||t===Di?"latin1":"utf-8"}function Da(t,e,n,r){const o=WT(t);return{name:ZT(e,n,r),value:o,description:e===On?jT(t):o}}function ZT(t,e,n){const r=Sr(n);if(t===ha||e.length===0)return r;const o=Sr(e);return`${r} (${o})`}function WT(t){return t instanceof DataView?R(t,0,t.byteLength):t}function jT(t){return a1.decode("UTF-8",t)}function v1(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function M1(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function P1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return YT(e[2].replace(/\n/g,""))}function YT(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 KT={read:QT};function QT(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+Cr),s=R(t,e[r]+tn,ut);s===O_?(n["Pixels Per Unit X"]=XT(t,e[r],o),n["Pixels Per Unit Y"]=JT(t,e[r],o),n["Pixel Units"]=e8(t,e[r],o)):s===D_&&(n["Modify Date"]=t8(t,e[r],o))}return n}function XT(t,e,n){if(!Wi(t,e,n,0,4))return;const s=F.getLongAt(t,e+be+0);return{value:s,description:""+s}}function JT(t,e,n){if(!Wi(t,e,n,4,4))return;const s=F.getLongAt(t,e+be+4);return{value:s,description:""+s}}function e8(t,e,n){if(!Wi(t,e,n,8,1))return;const s=F.getByteAt(t,e+be+8);return{value:s,description:s===1?"meters":"Unknown"}}function t8(t,e,n){if(!Wi(t,e,n,0,7))return;const o=F.getShortAt(t,e+be),s=F.getByteAt(t,e+be+2),l=F.getByteAt(t,e+be+3),a=F.getByteAt(t,e+be+4),c=F.getByteAt(t,e+be+5),u=F.getByteAt(t,e+be+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 Wi(t,e,n,r,o){return r+o<=n&&e+be+r+o<=t.byteLength}function Br(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const n8={read:i8},r8=4,o8=7;function i8(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=s8(r),n.Animation=l8(r),n.ImageWidth=L1(t,e+r8),n.ImageHeight=L1(t,e+o8),n}function s8(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function l8(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function L1(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const a8={read:c8};function c8(t){return{"GIF Version":u8(t),"Image Width":d8(t),"Image Height":f8(t),"Global Color Map":m8(t),"Bits Per Pixel":h8(t),"Color Resolution Depth":_8(t)}}function u8(t){if(6>t.byteLength)return;const r=R(t,3,3);return{value:r,description:r}}function d8(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function f8(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function m8(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function _8(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function h8(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const p8=[6,7,99],g8={get:y8};function y8(t,e,n){if(b8(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),c_(e,"base64",function(){return u_(this.image)})}return e}function b8(t){return t&&(t.Compression===void 0||p8.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function V1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}V1.prototype=new Error;const R1={MetadataMissingError:V1},w8={load:k8,loadView:U1,errors:R1};function k8(t,e={}){return x8(t)?(e.async=!0,S8(t,e).then(n=>va(n,e))):$8(t)?(e.async=!0,F8(t).then(n=>va(n,e))):va(t,e)}function x8(t){return typeof t=="string"}function S8(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?C8(t,e):E8(t,e):B8(t)?Promise.resolve(l4(t)):N8(t,e)}function C8(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 E8(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),T8(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 T8(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function B8(t){return/^data:[^;,]*(;base64)?,/.test(t)}function N8(t,{length:e}={}){return new Promise((n,r)=>{const o=I8();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,m=>{m?r(m):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function I8(){try{return __non_webpack_require__("fs")}catch{return}}function $8(t){return typeof File<"u"&&t instanceof File}function F8(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 va(t,e){return A8(t)&&(t=new Uint8Array(t).buffer),U1(O8(t),e)}function A8(t){try{return Buffer.isBuffer(t)}catch{return!1}}function O8(t){try{return new DataView(t)}catch{return new s_(t)}}function U1(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:m,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:h,pngTextChunks:g,pngChunkOffsets:y,vp8xChunkOffset:x,gifHeaderOffset:C}=JS.parseAppMarkers(t,n);if(D8(c)){o=!0;const w=DC.read(t,c);e?s.file=w:s=z({},s,w)}if(v8(u)){o=!0;const w=HC.read(t,u);e?s.jfif=w:s=z({},s,w)}if(M8(d)){o=!0;const{tags:w,byteOrder:k}=s1.read(t,d,r);if(w.Thumbnail&&(s.Thumbnail=w.Thumbnail,delete w.Thumbnail),e?(s.exif=w,P8(s)):s=z({},s,w),w["IPTC-NAA"]&&!z1(f)){const E=Sa.read(w["IPTC-NAA"].value,0,r);e?s.iptc=E:s=z({},s,E)}if(w.ApplicationNotes&&!q1(m)){const E=_1.read(Sr(w.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=z({},s,E))}if(w.ImageSourceData){const E=nT.read(w.PhotoshopSettings.value,r);e?s.photoshop=E:s=z({},s,E)}if(w.ICC_Profile&&!H1(_)){const E=A1.read(w.ICC_Profile.value,[{offset:0,length:w.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=z({},s,E)}if(L8(w)){const E=CT.read(t,d,w.MakerNote.__offset,k,r);e?s.makerNotes=E:s=z({},s,E)}w.MakerNote&&delete w.MakerNote.__offset}if(z1(f)){o=!0;const w=Sa.read(t,f,r);e?s.iptc=w:s=z({},s,w)}if(q1(m)){o=!0;const w=_1.read(t,m);e?s.xmp=w:(delete w._raw,s=z({},s,w))}if(H1(_)){o=!0;const w=A1.read(t,_,n);w instanceof Promise?l.push(w.then(T)):T(w)}if(V8(p)){o=!0;const w=TC.read(t,p,r);e?s.mpf=w:s=z({},s,w)}if(R8(h)){o=!0;const w=NT.read(t,h);e?(s.png=s.png?z({},s.png,w):w,s.pngFile=w):s=z({},s,w)}if(U8(g)){o=!0;const{readTags:w,readTagsPromise:k}=PT.read(t,g,n,r);b(w),k&&l.push(k.then(E=>E.forEach(b)))}if(z8(y)){o=!0;const w=KT.read(t,y);e?s.png=s.png?z({},s.png,w):w:s=z({},s,w)}if(q8(x)){o=!0;const w=n8.read(t,x);e?s.riff=s.riff?z({},s.riff,w):w:s=z({},s,w)}if(H8(C)){o=!0;const w=a8.read(t,C);e?s.gif=s.gif?z({},s.gif,w):w:s=z({},s,w)}const B=g8.get(t,s.Thumbnail,d);if(B?(o=!0,s.Thumbnail=B):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new R1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(w){e?s.icc=w:s=z({},s,w)}function b(w){if(e){for(const k of["exif","iptc"]){const E=`__${k}`;w[E]&&(s[k]=s[k]?z({},s.exif,w[E]):w[E],delete w[E])}s.png=s.png?z({},s.png,w):w,s.pngText=s.pngText?z({},s.png,w):w}else s=z({},s,w.__exif?w.__exif:{},w.__iptc?w.__iptc:{},w),delete s.__exif,delete s.__iptc}}function D8(t){return t!==void 0}function v8(t){return t!==void 0}function M8(t){return t!==void 0}function P8(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ai(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=Ai(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 z1(t){return t!==void 0}function q1(t){return Array.isArray(t)&&t.length>0}function H1(t){return Array.isArray(t)&&t.length>0}function L8(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function V8(t){return t!==void 0}function R8(t){return t!==void 0}function U8(t){return t!==void 0}function z8(t){return t!==void 0}function q8(t){return t!==void 0}function H8(t){return t!==void 0}async function G1(t,e=null){if(t.location)return t.location;try{const n=await w8.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&&Ve.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 ji{constructor(e,n){if(this.files=[],this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,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,...ee.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=pe.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 G1(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=oe(l),this.fireCompleteCallback(o,l),this.checkAllComplete()}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&&oe(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"){const l=ct(s.started_at),a=l&&D.now().diff(l,"minutes");if(!(a!=null&&a.minutes)||a.minutes<30)return!0}}return!1}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){Ve.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 Yi=i.ref([]),Ki=i.ref([]);function G8(t){Yi.value=[...Yi.value,t]}function Z8(t,e,n){Ki.value.push({id:n,name:t,callback:e})}function W8(t){Ki.value=Ki.value.filter(e=>e.id!==t)}function Z1(t,e,n){for(let r of Yi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Ki.value)o.name===r.name&&o.callback(n)}function W1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function j8(t){Yi.value=t,window.addEventListener("keydown",e=>{Z1("keydown",W1(e),e)}),window.addEventListener("keyup",e=>{Z1("keyup",W1(e),e)})}function Y8(t){return new Promise((e,n)=>{const r=new FileReader;let o=null;r.onload=async s=>{var l;try{o=JSON.parse((l=s.target)==null?void 0:l.result),e(o)}catch(a){console.error("Invalid JSON file:",a),n(a)}},r.readAsText(t)})}function j1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new ji(f.target.files,t).prepare().onProgress(({file:m})=>{m&&s(m)}).onComplete(({file:m,uploadedFile:_})=>{m&&s(m,_)}).onError(({file:m,error:_})=>{console.error("Failed to upload",m,_),Ve.error(`Failed to upload ${m.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,m=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,m||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 m=e.value.findIndex(_=>_.id===f.id);m!==-1&&e.value.splice(m,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 m;o({target:{files:(m=f.dataTransfer)==null?void 0:m.files}})},onFilesSelected:o,uploadedFiles:e}}const we={activeRequests:{},url(t){var e;return t.startsWith("http")?t:(((e=ee.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var p,h;e=e||{};const n=(e==null?void 0:e.requestKey)||t+JSON.stringify(e.params||""),r=!!(e!=null&&e.waitOnPrevious),o=!!(e!=null&&e.useMostRecentResponse),s=!r,l=Date.now(),a=we.activeRequests[n],c={timestamp:l};if(we.activeRequests[n]=c,s){a&&((p=a.abortController)==null||p.abort("Request was aborted due to a newer request being made"));const g=new AbortController;c.abortController=g,e.signal=g.signal}if(e.params){for(const[g,y]of Object.entries(e.params))typeof y=="object"&&y!==null&&(e.params[g]=JSON.stringify(y));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let u,d;if(c.requestPromise=new Promise((g,y)=>{u=g,d=y}),r&&(a!=null&&a.requestPromise))try{await a.requestPromise}catch{}let f;try{f=await fetch(we.url(t),e)}catch(g){if(e.ignoreAbort&&(g+"").match(/Request was aborted/)){const y={abort:!0};return u(y),y}throw d(g),g}K8(f);let m=we.activeRequests[n],_=await f.json();if(u(_),m.timestamp!==l){if(s)_={abort:!0};else if(o)do if(m=we.activeRequests[n],_=await m.requestPromise,we.activeRequests[n].timestamp===m.timestamp)break;while(m.timestamp!==we.activeRequests[n].timestamp)}if(f.status===401){const g=(h=ee.value.request)==null?void 0:h.onUnauthorized;return g?g(_,f):{error:!0,message:"Unauthorized",..._}}return f.status>400&&_.exception&&!_.error&&(_.error=!0),_},async poll(t,e,n,r){let o;r||(r=s=>!!s);do o=await we.call(t,e),await Uo(n||1e3);while(!r(o));return o},async get(t,e){var n;return await we.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=ee.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var r;return await we.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(r=ee.value.request)==null?void 0:r.headers,...n==null?void 0:n.headers}})}};function K8(t){const e=ee.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 Q8(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 Y1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function X8(t,e){return{async list(n,r){r={...r,ignoreAbort:!0};const o=await we.post(`${t}/list`,n,r);return o.data&&(o.data=fd(o.data)),o},summary(n,r){return r={...r,ignoreAbort:!0},we.post(`${t}/summary`,{filter:n},r)},async details(n,r,o){o={...o,ignoreAbort:!0},r&&(o.params={fields:r});const s=await we.get(`${t}/${n.id}/details`,o);return oe(s)},fieldOptions(n){return we.get(`${t}/field-options`,n)},async applyAction(n,r,o,s){var a,c;s={...s,waitOnPrevious:!0,useMostRecentResponse:!0,headers:{...s==null?void 0:s.headers,"X-Timestamp":Date.now().toString()}},o=o||{};const l=await we.post(`${t}/${r?r.id+"/":""}apply-action`,{action:n,data:o},s);return l.item&&(l.item=oe(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=oe(l.result)),l},batchAction(n,r,o,s){return s={...s,waitOnPrevious:!0},we.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return o_(`${t}/export`,r||"export.csv",{filter:n})},...e}}function K1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new ji((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:m})=>{m&&(e.value=m,r.value&&r.value(e.value))}).onComplete(({uploadedFile:m})=>{m&&(e.value=m,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:m,error:_})=>{console.error("Failed to upload",m,_),Ve.error(`Failed to upload ${m.name}: ${_}`)}).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 Mt(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 J8(t,e=""){const n=Ma(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ma(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ma(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const e6={version:"0.4.86"},{version:Q1}=e6;function t6(){console.log(`Installing Danx UI ${Q1}... Nothing to do really.`)}S.ActionButton=xo,S.ActionForm=Cc,S.ActionFormDialog=bp,S.ActionMenu=Qs,S.ActionTable=ud,S.ActionTableColumn=Wu,S.ActionTableHeaderColumn=Qu,S.ActionTableLayout=sw,S.ActionToolbar=dd,S.ActionVnode=Py,S.AddressFormat=By,S.AuditHistoryItem=gw,S.AuditHistoryItemValue=tl,S.AutoHeightTransition=jy,S.BadgeTab=zy,S.BooleanField=ns,S.CaretDownIcon=ja,S.CollapsableFiltersSidebar=od,S.CollapsableSidebar=Tc,S.ColumnListItem=Js,S.ColumnSettingsDialog=x2,S.ConfirmActionDialog=lc,S.ConfirmDialog=Tt,S.ConfirmPasswordField=zp,S.ContentDrawer=cs,S.CreateNewWithNameDialog=ac,S.DateField=os,S.DateRangeField=is,S.DateTime=D,S.DateTimeField=Jp,S.DateTimePicker=ss,S.DragAndDrop=Xs,S.DragHandleDotsIcon=Ya,S.DragHandleIcon=Ka,S.EditOnClickTextField=og,S.EditableDiv=dc,S.EmptyTableState=ad,S.ExportButton=Za,S.FieldLabel=mt,S.FilePreview=Ir,S.FileUpload=ji,S.FileUploadButton=sg,S.FilterIcon=Qa,S.FilterItem=nd,S.FilterList=rd,S.FilterListToggle=id,S.FilterToolbarLayout=L2,S.FilterableField=el,S.FlashMessages=Ve,S.FlatListFormat=Ny,S.FullScreenCarouselDialog=cc,S.FullScreenDialog=Ap,S.GpsCoordinatesFormat=Fy,S.HandleDraggable=ju,S.IconWithTextFormat=Oy,S.ImageIcon=ts,S.IndicatorTab=Gy,S.InfoDialog=uc,S.InlineDateTimeField=cg,S.InputDialog=Dp,S.IntegerField=mc,S.InteractiveTooltip=Vy,S.LabelPillWidget=f2,S.LabelValueBlock=hg,S.LabelValueFormat=vy,S.LabelValuePillWidget=h2,S.LabeledInput=rs,S.ListDragAndDrop=Yu,S.ListItemDraggable=Ku,S.ListTransition=$c,S.MaxHeightTransition=Yy,S.MaxLengthCounter=fc,S.MultiFileField=_c,S.MultiKeywordField=hc,S.NavigationMenu=ww,S.NewPasswordField=yg,S.NumberField=Nr,S.NumberRangeField=To,S.PanelsDrawer=ld,S.PanelsDrawerTabs=sd,S.PdfIcon=Xa,S.PercentIcon=Ja,S.PopoverMenu=Ic,S.PreviousNextControls=rc,S.RefreshButton=Wa,S.RenderComponent=Nc,S.RenderVnode=dn,S.RenderedForm=as,S.RenderedFormDialog=ay,S.SERVER_TZ=na,S.SaveStateIndicator=Sc,S.SelectDrawer=Sg,S.SelectField=Pn,S.SelectOrCreateField=$g,S.SelectWithChildrenField=pc,S.SelectionMenuField=Ng,S.ShowHideButton=So,S.SingleFileField=gc,S.SkipNextIcon=ec,S.SkipPreviousIcon=tc,S.SlideTransition=Ky,S.SliderNumberField=Pg,S.StaggeredListTransition=d2,S.SvgImg=Ec,S.TableSummaryRow=cd,S.TextField=cn,S.TitleColumnFormat=Xu,S.TrashIcon=Co,S.VisibleColumnsToggleButtons=B2,S.WarningIcon=nc,S.WysiwygField=xc,S.XIcon=Eo,S.activeActionVnode=xn,S.addHotkey=G8,S.applyCssVars=J8,S.autoRefreshObject=hd,S.buildCssVars=Ma,S.centerTruncate=J3,S.cloneDeep=Bw,S.configure=n0,S.danxOptions=ee,S.dbDateTime=oa,S.diffInDays=o4,S.download=$i,S.downloadFile=o_,S.downloadFileResponse=i_,S.fBoolean=e_,S.fCurrency=Ni,S.fCurrencyNoCents=K3,S.fDate=St,S.fDateTime=Bi,S.fDateTimeMs=Z3,S.fDuration=Y3,S.fJSON=r_,S.fLocalizedDateTime=kr,S.fMarkdownCode=r4,S.fNameOrCount=n_,S.fNumber=Ot,S.fPercent=t_,S.fPhone=e4,S.fQDate=G3,S.fSecondsToDuration=Xm,S.fSecondsToTime=j3,S.fShortCurrency=Q3,S.fShortNumber=Jm,S.fShortSize=X3,S.fetchResourceListWithSelected=Q8,S.getFilterFromUrl=td,S.getItem=Ct,S.getResponseHeader=la,S.getUrlParam=Y1,S.importJson=Y8,S.incrementName=kd,S.install=t6,S.isJSON=xd,S.latestCallOnly=sl,S.listen=Z8,S.localizedDateTime=ra,S.mapSortBy=ed,S.metersToMiles=$w,S.milesToMeters=Fw,S.minmax=Iw,S.notify=kw,S.parseCoords=Aw,S.parseDateTime=ct,S.parseGenericDateTime=Qm,S.parseMarkdownCode=Ii,S.parseMarkdownJSON=t4,S.parseMarkdownYAML=n4,S.parseQDate=ia,S.parseQDateTime=sa,S.parseSqlDateTime=W3,S.pollUntil=Nw,S.refreshApplication=Tw,S.registerHotkeys=j8,S.registerStickyScrolling=Ju,S.remoteDateTime=Km,S.remove=Hr,S.replace=ol,S.request=we,S.resolveFileLocation=G1,S.setItem=Mt,S.sleep=Uo,S.stopAutoRefreshObject=pd,S.storeObject=oe,S.storeObjects=fd,S.uniqueBy=wd,S.unlisten=W8,S.useActionRoutes=X8,S.useActionStore=Ew,S.useActions=Sw,S.useCompatibility=Ed,S.useControls=N2,S.useDebounceFn=an,S.useMultiFileUpload=j1,S.useSingleFileUpload=K1,S.useTableColumns=lw,S.version=Q1,S.waitForRef=il,S.withDefaultActions=Cw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
153
+ `,Oi=4,ut=4,Cr=0,tn=Oi,be=Oi+ut,_a="XML:com.adobe.xmp\0",ha="tEXt",On="iTXt",Di="zTXt",O_="pHYs",D_="tIME",Z4="eXIf",W4="iCCP";function j4(t){return!!t&&R(t,0,ma.length)===ma}function Y4(t,e){const r={hasAppMarkers:!1};let o=ma.length;for(;o+Oi+ut<=t.byteLength;){if(K4(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+be;else if(Q4(t,o)){const s=nS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Cr)-(s-(o+be))}])}else if(X4(t,o,e)){r.hasAppMarkers=!0;const s=R(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Cr),type:s,offset:o+be})}else if(J4(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+be;else if(e&&eS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Cr),l=o+be,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=rS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else tS(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Cr));o+=t.getUint32(o+Cr)+Oi+ut+4}return r}function K4(t,e){return R(t,e+tn,ut)==="IHDR"}function Q4(t,e){return R(t,e+tn,ut)===On&&R(t,e+be,_a.length)===_a}function X4(t,e,n){const r=R(t,e+tn,ut);return r===ha||r===On||r===Di&&n}function J4(t,e){return R(t,e+tn,ut)===Z4}function eS(t,e){return R(t,e+tn,ut)===W4}function tS(t,e){const n=[O_,D_],r=R(t,e+tn,ut);return n.includes(r)}function nS(t,e){e+=be+_a.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function rS(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 oS(t,e){return t.getUint32(e+4)}function iS(t,e,n,r){const{offsets:s,sizes:l}=sS(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=lS(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=aS(t,s.itemCount,e);return{type:"iloc",items:cS(t,e,s,l,a,c,d,f),length:r}}function sS(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 lS(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function aS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function cS(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=uS(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 m=0;m<f.extentCount;m++){const _={};_.extentIndex=dS(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=vi(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=vi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function uS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function dS(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."),oS(t,e)):0}const fS=1718909296,mS=1768977008,_S=1835365473,hS=1768714083,pS=1768517222,gS=1768842853,yS=1768973167,bS=1668246642,v_=1165519206,pa=1835625829,wS=1970432288;function Mi(t,e){const{length:s,contentOffset:l}=kS(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===fS)return AS(t,l,s);if(a===mS)return OS(t,e,l,s);if(a===yS)return DS(t,e,l,s);if(a===bS)return vS(t,l,s);const c=t.getUint8(l);return a===_S?PS(t,e,l+1,s):a===hS?iS(t,c,l+1,s):a===pS?LS(t,e,c,l+1,s):a===gS?RS(t,e,c,l+1,s):{type:void 0,length:s}}function kS(t,e){const l=t.getUint32(e);return xS(l)?{length:t.byteLength-e,contentOffset:e+4+4}:SS(l)&&CS(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function xS(t){return t===0}function SS(t){return t===1}function CS(t,e){return t.getUint32(e+8)===0}function M_(t){{const e={},n=ES(t);return n?(e.tiffHeaderOffset=TS(t,n),e.xmpChunks=IS(n),e.iccChunks=FS(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function ES(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Mi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function TS(t,e){try{const n=BS(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return NS(t,o)}catch{return}}function BS(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===v_)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function NS(t,e){return e+4+t.getUint32(e)}function IS(t){try{const e=$S(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function $S(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function FS(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 AS(t,e,n){return{type:"ftyp",majorBrand:R(t,e,4),length:n}}function OS(t,e,n,r){return{type:"iprp",subBoxes:Pi(t,n,r-(n-e)),length:r}}function DS(t,e,n,r){return{type:"ipco",properties:Pi(t,n,r-(n-e)),length:r}}function vS(t,e,n){return{type:"colr",icc:MS(t,e),length:n}}function MS(t,e){const r=R(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function PS(t,e,n,r){return{type:"meta",subBoxes:Pi(t,n+3,r-(n+3-e)),length:r}}function Pi(t,e,n){const r=[v_,pa],o=[];let s=e;for(;s<e+n;){const l=Mi(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 LS(t,e,n,r,o){const{offsets:s}=VS(n,r);return{type:"iinf",itemInfos:Pi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function VS(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 RS(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===wS&&(l.itemUri=xr(t,r),r+=l.itemUri.length+1)),l}const P_={isHeicFile:US,findHeicOffsets:zS};function US(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Mi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function zS(t){return M_(t)}const L_={isAvifFile:qS,findAvifOffsets:HS};function qS(t){if(!t)return!1;try{const e=Mi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function HS(t){return M_(t)}const V_={isWebpFile:GS,findOffsets:ZS};function GS(t){const n="RIFF",o="WEBP";return!!t&&R(t,0,n.length)===n&&R(t,8,o.length)===o}function ZS(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=R(t,s,4),m=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,R(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:m}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:m,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(m%2===0?m:m+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const R_={isGifFile:YS,findOffsets:KS},WS=6,jS=["GIF87a","GIF89a"];function YS(t){return!!t&&jS.includes(R(t,0,WS))}function KS(){return{gifHeaderOffset:0}}const U_={isXMLFile:QS,findOffsets:XS},z_=0,q_="<?xpacket begin";function QS(t){return!!t&&R(t,z_,q_.length)===q_}function XS(t){const e=[];return e.push({dataOffset:z_,length:t.byteLength}),{xmpChunks:e}}const JS={parseAppMarkers:eC};function eC(t,e){if(h_.isTiffFile(t))return nn(h_.findTiffOffsets(),"tiff","TIFF");if(p_.isJpegFile(t))return nn(p_.findJpegOffsets(t),"jpeg","JPEG");if(A_.isPngFile(t))return nn(A_.findPngOffsets(t,e),"png","PNG");if(P_.isHeicFile(t))return nn(P_.findHeicOffsets(t),"heic","HEIC");if(L_.isAvifFile(t))return nn(L_.findAvifOffsets(t),"avif","AVIF");if(V_.isWebpFile(t))return nn(V_.findOffsets(t),"webp","WebP");if(R_.isGifFile(t))return nn(R_.findOffsets(t),"gif","GIF");if(U_.isXMLFile(t))return nn(U_.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return z({},t,{fileType:{value:e,description:n}})}const U={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])},H_={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:U.XResolution},283:{name:"YResolution",description:U.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:U.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:ho},40092:{name:"XPComment",description:ho},40093:{name:"XPAuthor",description:ho},40094:{name:"XPKeywords",description:ho},40095:{name:"XPSubject",description:ho},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:U.LightSource},50779:{name:"CalibrationIlluminant2",description:U.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 ho(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const tC={33434:{name:"ExposureTime",description:U.ExposureTime},33437:{name:"FNumber",description:U.FNumber},34850:{name:"ExposureProgram",description:U.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=>he(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:U.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:U.ShutterSpeedValue},37378:{name:"ApertureValue",description:U.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:U.MeteringMode},37384:{name:"LightSource",description:U.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:U.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:U.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:U.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:U.CustomRendered},41986:{name:"ExposureMode",description:U.ExposureMode},41987:{name:"WhiteBalance",description:U.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:U.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:U.Contrast},41993:{name:"Saturation",description:U.Saturation},41994:{name:"Sharpness",description:U.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"},nC={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:Ai},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ai},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"},rC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>he(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},oC={45056:{name:"MPFVersion",description:t=>he(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},iC={4:{name:"ShotInfo",description:t=>t}},G_=z({},H_,tC),ya="0th",Z_="1st",W_="exif",j_="gps",Y_="interoperability",K_="mpf",Q_="canon",rn={[ya]:G_,[Z_]:H_,[W_]:G_,[j_]:nC,[Y_]:rC,[K_]:oC,[Q_]:iC},X_={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},F={getAsciiValue:sC,getByteAt:J_,getAsciiAt:lC,getShortAt:aC,getLongAt:Li,getRationalAt:cC,getUndefinedAt:uC,getSlongAt:wa,getSrationalAt:dC,getIfdPointerAt:fC,typeSizes:X_,tagTypes:ba,getTypeSize:mC};function sC(t){return t.map(e=>String.fromCharCode(e))}function J_(t,e){return t.getUint8(e)}function lC(t,e){return t.getUint8(e)}function aC(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function Li(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function cC(t,e,n){return[Li(t,e,n),Li(t,e+4,n)]}function uC(t,e){return J_(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function dC(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function fC(t,e,n){return Li(t,e,n)}function mC(t){if(ba[t]===void 0)throw new Error("No such type found.");return X_[ba[t]]}const _C={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function e1(t,e,n){return e+F.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=hC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=pC(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-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,Z_,n,n+d,o,s))}return c}function hC(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function pC(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),m=F.getLongAt(t,r+c,o);let _,p;if(F.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if(gC(f,m))p=r+u,_=t1(t,p,f,m,o);else if(p=F.getLongAt(t,r+u,o),yC(t,n,p,f,m)){const y=d===33723;_=t1(t,n+p,f,m,o,y)}else _="<faulty value>";f===F.tagTypes.ASCII&&(_=bC(_),_=wC(_));let h=`undefined-${d}`,g=_;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){h=rn[e][d].name;try{g=rn[e][d].description(_)}catch{g=n1(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(h=rn[e][d],g=""+_[0]/_[1]):(h=rn[e][d],g=n1(_));return{id:d,name:h,value:_,description:g,__offset:p}}function gC(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function t1(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(_C[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function yC(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function bC(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 wC(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function n1(t){return t instanceof Array?t.join(", "):t}const r1="Exif IFD Pointer",o1="GPS Info IFD Pointer",i1="Interoperability IFD Pointer",s1={read:kC};function kC(t,e,n){const r=An.getByteOrder(t,e);let o=xC(t,e,r,n);return o=SC(o,t,e,r,n),o=CC(o,t,e,r,n),o=EC(o,t,e,r,n),{tags:o,byteOrder:r}}function xC(t,e,n,r){return Dn(t,ya,e,e1(t,e,n),n,r)}function SC(t,e,n,r,o){return t[r1]!==void 0?z(t,Dn(e,W_,n,n+t[r1].value,r,o)):t}function CC(t,e,n,r,o){return t[o1]!==void 0?z(t,Dn(e,j_,n,n+t[o1].value,r,o)):t}function EC(t,e,n,r,o){return t[i1]!==void 0?z(t,Dn(e,Y_,n,n+t[i1].value,r,o)):t}const TC={read:BC},Er=16;function BC(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,K_,e,e1(t,e,r),r,n);return NC(t,e,o,r)}function NC(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=po(n.MPEntry.value,s*Er,F.getTypeSize("LONG"),r);o[s].ImageFlags=IC(l),o[s].ImageFormat=$C(l),o[s].ImageType=FC(l);const a=po(n.MPEntry.value,s*Er+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=AC(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=po(n.MPEntry.value,s*Er+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=po(n.MPEntry.value,s*Er+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),c_(o[s],"base64",function(){return u_(this.image)})}return n.Images=o,n}function po(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 IC(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 $C(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function FC(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 AC(t,e,n,r){return OC(t)?0:po(e.value,t*Er+8,F.getTypeSize("LONG"),n)+r}function OC(t){return t===0}const DC={read:vC};function vC(t,e){const n=MC(t,e),r=RC(t,e,n);return{"Bits Per Sample":PC(t,e,n),"Image Height":LC(t,e,n),"Image Width":VC(t,e,n),"Color Components":r,Subsampling:r&&UC(t,e,r.value,n)}}function MC(t,e){return F.getShortAt(t,e)}function PC(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function LC(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function VC(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function RC(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function UC(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([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?zC(l)+qC(l):""}}function zC(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function qC(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 HC={read:GC};function GC(t,e){const n=ZC(t,e),r=XC(t,e,n),o=JC(t,e,n),s={"JFIF Version":WC(t,e,n),"Resolution Unit":jC(t,e,n),XResolution:KC(t,e,n),YResolution:QC(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=eE(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 ZC(t,e){return F.getShortAt(t,e)}function WC(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function jC(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:YC(s)}}function YC(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function KC(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function QC(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function XC(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function JC(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function eE(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:l1,encoding_name:l1},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=>he(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=he(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=he(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=he(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=he(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=he(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(he(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(he(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=he(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 he(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=he(t);if(e["ObjectData Preview File Format"]){const o=he(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=he(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=he(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 l1(t){const e=he(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 tE={get:nE};function nE(){if(typeof TextDecoder<"u")return TextDecoder}const a1={decode:rE,TAG_HEADER_SIZE:5};function rE(t,e){const n=tE.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 oE(r)}function oE(t){try{return decodeURIComponent(escape(t))}catch{return t}}const iE=943868237,go=4,Vi=2,sE=1,lE=2,c1=4,aE=go+Vi+lE+c1,cE=1028,u1=5,Sa={read:uE};function uE(t,e,n){try{if(Array.isArray(t))return d1(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=dE(t,e);return d1(t,r,o,n)}catch{return{}}}function dE(t,e){for(;e+aE<=t.byteLength;){const n=fE(t,e);if(mE(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+_E(n)}throw new Error("No IPTC NAA resource block.")}function fE(t,e){if(t.getUint32(e,!1)!==iE)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+go+Vi),r=(n%2===0?n+1:n)+sE;return{headerSize:go+Vi+r+c1,type:t.getUint16(e+go),size:t.getUint32(e+go+Vi+r)}}function mE(t){return t.type===cE}function _E(t){return t.size%2!==0?1:0}function d1(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=hE(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+=u1+c}return o}function hE(t,e,n,r,o){if(pE(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=gE(t,e+u1,c),d={id:a,name:yE(on.iptc[a],a,u),value:u,description:kE(on.iptc[a],u,n,r)};return CE(a)&&(d.repeatable=!0),EE(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function pE(t,e){return t.getUint8(e)!==28}function gE(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function yE(t,e,n){return t?bE(t)?t:wE(t)?t.name(n):t.name:`undefined-${e}`}function bE(t){return typeof t=="string"}function wE(t){return typeof t.name=="function"}function kE(t,e,n,r){if(SE(t))try{return t.description(e,n)}catch{}return xE(t,e)?a1.decode(r,e):e}function xE(t,e){return t&&e instanceof Array}function SE(t){return t&&t.description!==void 0}function CE(t){return on.iptc[t]&&on.iptc[t].repeatable}function EE(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const Ri={"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=>U.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Tr(U.XResolution,t),"tiff:YResolution":t=>Tr(U.YResolution,t),"exif:ApertureValue":t=>Tr(U.ApertureValue,t),"exif:GPSLatitude":m1,"exif:GPSLongitude":m1,"exif:FNumber":t=>Tr(U.FNumber,t),"exif:FocalLength":t=>Tr(U.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>U.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>U.ColorSpace(TE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return U.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>U.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>U.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>U.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>U.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return f1(t)?U.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>U.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>U.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>U.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>U.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Tr(U.ShutterSpeedValue,t),"exif:WhiteBalance":t=>U.WhiteBalance(parseInt(t,10))};function Tr(t,e){return f1(e)?t(e.split("/")):e}function TE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function f1(t){return/^-?\d+\/-?\d+$/.test(t)}function m1(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 BE={get:NE};function NE(){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 _1={read:IE};function IE(t,e){const n={};if(typeof t=="string")return Ui(n,t),n;const[r,o]=$E(t,e),s=Ui(n,r);if(o){const l=Ui(n,o);!s&&!l&&(delete n._raw,Ui(n,Ca(t,e)))}return n}function $E(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 Ui(t,e){try{const{doc:n,raw:r}=FE(e);t._raw=(t._raw||"")+r;const o=h1(n);return z(t,g1(p1(o,!0))),!0}catch{return!1}}function FE(t){const e=BE.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:R(t,0,t.byteLength),r=e.parseFromString(AE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function AE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function h1(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return h1(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function p1(t,e=!1){const n=OE(t);return DE(n)?e?{}:vE(n[0]):ME(n)}function OE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function DE(t){return t.length===1&&t[0].nodeName==="#text"}function vE(t){return t.nodeValue}function ME(t){const e={};return t.forEach(n=>{if(PE(n)){const r=LE(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 PE(t){return t.nodeName&&t.nodeName!=="#text"}function LE(t){return{attributes:VE(t),value:p1(t)}}function VE(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 g1(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=>{z(e,Ea(o.attributes)),typeof o.value=="object"&&z(e,y1(o.value))})}return e}function Ea(t){const e={};for(const n in t)try{RE(n)&&(e[qi(n)]={value:t[n],attributes:{},description:Dt(t[n],n)})}catch{}return e}function RE(t){return t!=="rdf:parseType"&&!zi(t)}function zi(t){return t.split(":")[0]==="xmlns"}function qi(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Dt(t,e=void 0){if(Array.isArray(t)){const n=UE(t);return e&&typeof Ri[e]=="function"?Ri[e](t,n):n}if(typeof t=="object")return zE(t);try{return e&&typeof Ri[e]=="function"?Ri[e](t):decodeURIComponent(escape(t))}catch{return t}}function UE(t){return t.map(e=>e.value!==void 0?Dt(e.value):Dt(e)).join(", ")}function zE(t){const e=[];for(const n in t)e.push(`${qE(n)}: ${Dt(t[n].value)}`);return e.join("; ")}function qE(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 y1(t){const e={};for(const n in t)try{zi(n)||(e[qi(n)]=HE(t[n],n))}catch{}return e}function HE(t,e){return ZE(t)?WE(t,e):GE(t)?{value:"",attributes:{},description:""}:b1(t)?w1(t,e):k1(t)?x1(t,e):S1(t)?C1(t,e):KE(t)?QE(t,e):Ta(t,e)}function GE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function ZE(t){return Array.isArray(t)}function WE(t,e){return Ta(t[t.length-1],e)}function b1(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 w1(t,e){const n=yo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),z(n,yo(t),jE(t));const r=YE(t);return{value:r,attributes:n,description:Dt(r,e)}}function yo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!zi(n)&&(e[qi(n)]=t.attributes[n]);return e}function jE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!zi(n)&&(e[qi(n)]=t.value[n].value);return e}function YE(t){return T1(t.value["rdf:value"])||t.value["rdf:value"].value}function k1(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function x1(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(z(n.value,Ea(t.value["rdf:Description"].attributes)),z(n.attributes,yo(t)),t=t.value["rdf:Description"]),z(n.value,y1(t.value)),n.description=Dt(n.value,e),n}function S1(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function C1(t,e){const n=Ea(t.attributes);return{value:n,attributes:{},description:Dt(n,e)}}function KE(t){return E1(t.value)!==void 0}function E1(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function QE(t,e){let n=E1(t.value).value["rdf:li"];const r=yo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(XE(s))}),{value:o,attributes:r,description:Dt(o,e)}}function XE(t){return b1(t)?w1(t):k1(t)?x1(t).value:S1(t)?C1(t).value:Ta(t)}function Ta(t,e){const n=T1(t)||g1(t.value);return{value:n,attributes:yo(t),description:Dt(n,e)}}function T1(t){return t.attributes&&t.attributes["rdf:resource"]}const vt={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},B1=24,Ba={2e3:{name:"PathInformation",description:JE},2999:{name:"ClippingPathName",description(t){const[,e]=a_(t,0);return e}}};function JE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+B1){const s=F.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={[vt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[vt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Hi},[vt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Hi},[vt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[vt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Hi},[vt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Hi},[vt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[vt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[vt.CLIPBOARD]:{description:"Clipboard",path:tT}};function Hi(t,e){const r=[];for(let o=0;o<B1;o+=8)r.push(eT(t,e+o));return r}function eT(t,e){const n=vn(t,e,8);return[vn(t,e+4,8),n]}function tT(t,e){return[[vn(t,e,8),vn(t,e+4,8),vn(t,e+8,8),vn(t,e+12,8)],vn(t,e+16,8)]}function vn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(d_("1",32-n),2);return o*c4(s.toString(2)+"."+a4(l.toString(2),32-n,"0"),2)}const nT={read:iT},N1="8BIM",rT=2,oT=4,I1=N1.length;function iT(t,e){const n=l_(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=R(n,o,I1);o+=I1;const l=F.getShortAt(n,o);o+=rT;const{tagName:a,tagNameSize:c}=sT(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=oT,s===N1){const d=l_(n.buffer,o,u),f={id:l,value:R(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 sT(t,e){const[n,r]=a_(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const $1={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"}},F1={4:{name:"Preferred CMM type",value:(t,e)=>R(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)=>R(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)=>R(t,e,4)},20:{name:"Connection Space",value:(t,e)=>R(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>lT(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>aT(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>R(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>R(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>R(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)=>R(t,e,4)}};function lT(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 aT(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 A1={read:gT},cT=84,uT=128,dT="acsp",fT="desc",mT="mluc",_T="text",hT="sig ",pT=12;function gT(t,e,n){return n&&e[0].compressionMethod!==Fi?yT(t,e):wT(t,e)}function yT(t,e){if(!bT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return m_(n,e[0].compressionMethod,"utf-8","dataview").then(O1).catch(()=>({}))}function bT(t){return t===f_}function wT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=kT(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 O1(new DataView(r.buffer))}catch{return{}}}function kT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function xT(t){return t.length<uT+4}function ST(t,e){return t.length<e+pT}function O1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<cT)throw new Error("ICC profile too short");const r={},o=Object.keys(F1);for(let c=0;c<o.length;c++){const u=o[c],d=F1[u],f=d.value(t,parseInt(u,10));let m=f;d.description&&(m=d.description(f)),r[d.name]={value:f,description:m}}if(Gi(e.slice(36,40))!==dT)throw new Error("ICC profile: missing signature");if(xT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(ST(e,a))return r;const u=R(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const m=R(t,d,4);if(m===fT){const _=t.getUint32(d+8);if(_>f)return r;const p=Gi(e.slice(d+12,d+_+11));bo(r,u,p)}else if(m===mT){const _=t.getUint32(d+8),p=t.getUint32(d+12);let h=d+16;const g=[];for(let y=0;y<_;y++){const x=R(t,h+0,2),C=R(t,h+2,2),B=t.getUint32(h+4),T=t.getUint32(h+8),b=s4(t,d+T,B);g.push({languageCode:x,countryCode:C,text:b}),h+=p}if(_===1)bo(r,u,g[0].text);else{const y={};for(let x=0;x<g.length;x++)y[`${g[x].languageCode}-${g[x].countryCode}`]=g[x].text;bo(r,u,y)}}else if(m===_T){const _=Gi(e.slice(d+8,d+f-7));bo(r,u,_)}else if(m===hT){const _=Gi(e.slice(d+8,d+12));bo(r,u,_)}a=a+12}return r}function Gi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function bo(t,e,n){$1[e]?t[$1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Zi=27,CT={read:ET,SHOT_INFO_AUTO_ROTATE:Zi};function ET(t,e,n,r,o){let s=Dn(t,Q_,e,e+n,r,o);return s.ShotInfo&&(s=z({},s,TT(s.ShotInfo.value)),delete s.ShotInfo),s}function TT(t){const e={};return t[Zi]!==void 0&&(e.AutoRotate={value:t[Zi],description:BT(t[Zi])}),e}function BT(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const NT={read:IT};function IT(t,e){return{"Image Width":$T(t,e),"Image Height":FT(t,e),"Bit Depth":AT(t,e),"Color Type":OT(t,e),Compression:DT(t,e),Filter:vT(t,e),Interlace:MT(t,e)}}function $T(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function FT(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function AT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function OT(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=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function DT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function vT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function MT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const PT={read:zT},$a="STATE_KEYWORD",Fa="STATE_COMPRESSION",Aa="STATE_LANG",LT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",VT=1,RT=1,UT=6;function zT(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=qT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:m,description:_})=>{try{if(__.USE_EXIF&&v1(f,m))return{__exif:s1.read(P1(m),UT,r).tags};if(__.USE_IPTC&&M1(f,m))return{__iptc:Sa.read(P1(m),0,r)};if(f&&!v1(f,m)&&!M1(f,m))return{[f]:{value:m,description:_}}}catch{}return{}}));else{const{name:f,value:m,description:_}=d;f&&(o[f]={value:m,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function qT(t,e,n,r,o){const s=[],l=[];let a,c=$a,u=Fi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Fa){u=HT({type:r,dataView:t,offset:e+f}),r===On&&(f+=VT),c=D1(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const m=t.getUint8(e+f);m===0?c=D1(r,c):c===$a?s.push(m):c===Aa&&l.push(m)}if(u!==Fi&&!o)return{};const d=m_(a,u,GT(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 HT({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===RT)return e.getUint8(n+1)}else if(t===Di)return e.getUint8(n);return Fi}function D1(t,e){return e===$a&&[On,Di].includes(t)?Fa:e===Fa?t===On?Aa:Oa:e===Aa?LT:Oa}function GT(t){return t===ha||t===Di?"latin1":"utf-8"}function Da(t,e,n,r){const o=WT(t);return{name:ZT(e,n,r),value:o,description:e===On?jT(t):o}}function ZT(t,e,n){const r=Sr(n);if(t===ha||e.length===0)return r;const o=Sr(e);return`${r} (${o})`}function WT(t){return t instanceof DataView?R(t,0,t.byteLength):t}function jT(t){return a1.decode("UTF-8",t)}function v1(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function M1(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function P1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return YT(e[2].replace(/\n/g,""))}function YT(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 KT={read:QT};function QT(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+Cr),s=R(t,e[r]+tn,ut);s===O_?(n["Pixels Per Unit X"]=XT(t,e[r],o),n["Pixels Per Unit Y"]=JT(t,e[r],o),n["Pixel Units"]=e8(t,e[r],o)):s===D_&&(n["Modify Date"]=t8(t,e[r],o))}return n}function XT(t,e,n){if(!Wi(t,e,n,0,4))return;const s=F.getLongAt(t,e+be+0);return{value:s,description:""+s}}function JT(t,e,n){if(!Wi(t,e,n,4,4))return;const s=F.getLongAt(t,e+be+4);return{value:s,description:""+s}}function e8(t,e,n){if(!Wi(t,e,n,8,1))return;const s=F.getByteAt(t,e+be+8);return{value:s,description:s===1?"meters":"Unknown"}}function t8(t,e,n){if(!Wi(t,e,n,0,7))return;const o=F.getShortAt(t,e+be),s=F.getByteAt(t,e+be+2),l=F.getByteAt(t,e+be+3),a=F.getByteAt(t,e+be+4),c=F.getByteAt(t,e+be+5),u=F.getByteAt(t,e+be+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 Wi(t,e,n,r,o){return r+o<=n&&e+be+r+o<=t.byteLength}function Br(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const n8={read:i8},r8=4,o8=7;function i8(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=s8(r),n.Animation=l8(r),n.ImageWidth=L1(t,e+r8),n.ImageHeight=L1(t,e+o8),n}function s8(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function l8(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function L1(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const a8={read:c8};function c8(t){return{"GIF Version":u8(t),"Image Width":d8(t),"Image Height":f8(t),"Global Color Map":m8(t),"Bits Per Pixel":h8(t),"Color Resolution Depth":_8(t)}}function u8(t){if(6>t.byteLength)return;const r=R(t,3,3);return{value:r,description:r}}function d8(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function f8(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function m8(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function _8(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function h8(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const p8=[6,7,99],g8={get:y8};function y8(t,e,n){if(b8(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),c_(e,"base64",function(){return u_(this.image)})}return e}function b8(t){return t&&(t.Compression===void 0||p8.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function V1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}V1.prototype=new Error;const R1={MetadataMissingError:V1},w8={load:k8,loadView:U1,errors:R1};function k8(t,e={}){return x8(t)?(e.async=!0,S8(t,e).then(n=>va(n,e))):$8(t)?(e.async=!0,F8(t).then(n=>va(n,e))):va(t,e)}function x8(t){return typeof t=="string"}function S8(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?C8(t,e):E8(t,e):B8(t)?Promise.resolve(l4(t)):N8(t,e)}function C8(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 E8(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),T8(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 T8(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function B8(t){return/^data:[^;,]*(;base64)?,/.test(t)}function N8(t,{length:e}={}){return new Promise((n,r)=>{const o=I8();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,m=>{m?r(m):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function I8(){try{return __non_webpack_require__("fs")}catch{return}}function $8(t){return typeof File<"u"&&t instanceof File}function F8(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 va(t,e){return A8(t)&&(t=new Uint8Array(t).buffer),U1(O8(t),e)}function A8(t){try{return Buffer.isBuffer(t)}catch{return!1}}function O8(t){try{return new DataView(t)}catch{return new s_(t)}}function U1(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:m,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:h,pngTextChunks:g,pngChunkOffsets:y,vp8xChunkOffset:x,gifHeaderOffset:C}=JS.parseAppMarkers(t,n);if(D8(c)){o=!0;const w=DC.read(t,c);e?s.file=w:s=z({},s,w)}if(v8(u)){o=!0;const w=HC.read(t,u);e?s.jfif=w:s=z({},s,w)}if(M8(d)){o=!0;const{tags:w,byteOrder:k}=s1.read(t,d,r);if(w.Thumbnail&&(s.Thumbnail=w.Thumbnail,delete w.Thumbnail),e?(s.exif=w,P8(s)):s=z({},s,w),w["IPTC-NAA"]&&!z1(f)){const E=Sa.read(w["IPTC-NAA"].value,0,r);e?s.iptc=E:s=z({},s,E)}if(w.ApplicationNotes&&!q1(m)){const E=_1.read(Sr(w.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=z({},s,E))}if(w.ImageSourceData){const E=nT.read(w.PhotoshopSettings.value,r);e?s.photoshop=E:s=z({},s,E)}if(w.ICC_Profile&&!H1(_)){const E=A1.read(w.ICC_Profile.value,[{offset:0,length:w.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=z({},s,E)}if(L8(w)){const E=CT.read(t,d,w.MakerNote.__offset,k,r);e?s.makerNotes=E:s=z({},s,E)}w.MakerNote&&delete w.MakerNote.__offset}if(z1(f)){o=!0;const w=Sa.read(t,f,r);e?s.iptc=w:s=z({},s,w)}if(q1(m)){o=!0;const w=_1.read(t,m);e?s.xmp=w:(delete w._raw,s=z({},s,w))}if(H1(_)){o=!0;const w=A1.read(t,_,n);w instanceof Promise?l.push(w.then(T)):T(w)}if(V8(p)){o=!0;const w=TC.read(t,p,r);e?s.mpf=w:s=z({},s,w)}if(R8(h)){o=!0;const w=NT.read(t,h);e?(s.png=s.png?z({},s.png,w):w,s.pngFile=w):s=z({},s,w)}if(U8(g)){o=!0;const{readTags:w,readTagsPromise:k}=PT.read(t,g,n,r);b(w),k&&l.push(k.then(E=>E.forEach(b)))}if(z8(y)){o=!0;const w=KT.read(t,y);e?s.png=s.png?z({},s.png,w):w:s=z({},s,w)}if(q8(x)){o=!0;const w=n8.read(t,x);e?s.riff=s.riff?z({},s.riff,w):w:s=z({},s,w)}if(H8(C)){o=!0;const w=a8.read(t,C);e?s.gif=s.gif?z({},s.gif,w):w:s=z({},s,w)}const B=g8.get(t,s.Thumbnail,d);if(B?(o=!0,s.Thumbnail=B):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new R1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(w){e?s.icc=w:s=z({},s,w)}function b(w){if(e){for(const k of["exif","iptc"]){const E=`__${k}`;w[E]&&(s[k]=s[k]?z({},s.exif,w[E]):w[E],delete w[E])}s.png=s.png?z({},s.png,w):w,s.pngText=s.pngText?z({},s.png,w):w}else s=z({},s,w.__exif?w.__exif:{},w.__iptc?w.__iptc:{},w),delete s.__exif,delete s.__iptc}}function D8(t){return t!==void 0}function v8(t){return t!==void 0}function M8(t){return t!==void 0}function P8(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ai(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=Ai(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 z1(t){return t!==void 0}function q1(t){return Array.isArray(t)&&t.length>0}function H1(t){return Array.isArray(t)&&t.length>0}function L8(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function V8(t){return t!==void 0}function R8(t){return t!==void 0}function U8(t){return t!==void 0}function z8(t){return t!==void 0}function q8(t){return t!==void 0}function H8(t){return t!==void 0}async function G1(t,e=null){if(t.location)return t.location;try{const n=await w8.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&&Ve.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 ji{constructor(e,n){if(this.files=[],this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,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,...ee.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=pe.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 G1(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=oe(l),this.fireCompleteCallback(o,l),this.checkAllComplete()}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&&oe(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"){const l=ct(s.started_at),a=l&&D.now().diff(l,"minutes");if(!(a!=null&&a.minutes)||a.minutes<30)return!0}}return!1}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){Ve.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 Yi=i.ref([]),Ki=i.ref([]);function G8(t){Yi.value=[...Yi.value,t]}function Z8(t,e,n){Ki.value.push({id:n,name:t,callback:e})}function W8(t){Ki.value=Ki.value.filter(e=>e.id!==t)}function Z1(t,e,n){for(let r of Yi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Ki.value)o.name===r.name&&o.callback(n)}function W1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function j8(t){Yi.value=t,window.addEventListener("keydown",e=>{Z1("keydown",W1(e),e)}),window.addEventListener("keyup",e=>{Z1("keyup",W1(e),e)})}function Y8(t){return new Promise((e,n)=>{const r=new FileReader;let o=null;r.onload=async s=>{var l;try{o=JSON.parse((l=s.target)==null?void 0:l.result),e(o)}catch(a){console.error("Invalid JSON file:",a),n(a)}},r.readAsText(t)})}function j1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=m=>{e.value=[...e.value,...m.target.files],s(),new ji(m.target.files,t).prepare().onProgress(({file:_})=>{_&&l(_)}).onComplete(({file:_,uploadedFile:p})=>{_&&l(_,p)}).onError(({file:_,error:p})=>{console.error("Failed to upload",_,p),Ve.error(`Failed to upload ${_.name}: ${p}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),s()}).upload()};function s(){r.value&&r.value(e.value)}function l(m,_=null){const p=e.value.findIndex(h=>h.id===m.id);p!==-1&&e.value.splice(p,1,_||m),s()}return{clearUploadedFiles:()=>{e.value=[],s(),n.value&&n.value({file:null,uploadedFile:null})},onRemove:m=>{const _=e.value.findIndex(p=>p.id===m.id);_!==-1&&e.value.splice(_,1),s(),n.value&&n.value({file:m,uploadedFile:m})},onComplete:m=>{n.value=m},onFilesChange:m=>{r.value=m},onDrop:m=>{var _;o({target:{files:(_=m.dataTransfer)==null?void 0:_.files}})},onFilesSelected:o,uploadedFiles:e}}const we={activeRequests:{},url(t){var e;return t.startsWith("http")?t:(((e=ee.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var p,h;e=e||{};const n=(e==null?void 0:e.requestKey)||t+JSON.stringify(e.params||""),r=!!(e!=null&&e.waitOnPrevious),o=!!(e!=null&&e.useMostRecentResponse),s=!r,l=Date.now(),a=we.activeRequests[n],c={timestamp:l};if(we.activeRequests[n]=c,s){a&&((p=a.abortController)==null||p.abort("Request was aborted due to a newer request being made"));const g=new AbortController;c.abortController=g,e.signal=g.signal}if(e.params){for(const[g,y]of Object.entries(e.params))typeof y=="object"&&y!==null&&(e.params[g]=JSON.stringify(y));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let u,d;if(c.requestPromise=new Promise((g,y)=>{u=g,d=y}),r&&(a!=null&&a.requestPromise))try{await a.requestPromise}catch{}let f;try{f=await fetch(we.url(t),e)}catch(g){if(e.ignoreAbort&&(g+"").match(/Request was aborted/)){const y={abort:!0};return u(y),y}throw d(g),g}K8(f);let m=we.activeRequests[n],_=await f.json();if(u(_),m.timestamp!==l){if(s)_={abort:!0};else if(o)do if(m=we.activeRequests[n],_=await m.requestPromise,we.activeRequests[n].timestamp===m.timestamp)break;while(m.timestamp!==we.activeRequests[n].timestamp)}if(f.status===401){const g=(h=ee.value.request)==null?void 0:h.onUnauthorized;return g?g(_,f):{error:!0,message:"Unauthorized",..._}}return f.status>400&&_.exception&&!_.error&&(_.error=!0),_},async poll(t,e,n,r){let o;r||(r=s=>!!s);do o=await we.call(t,e),await Uo(n||1e3);while(!r(o));return o},async get(t,e){var n;return await we.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=ee.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var r;return await we.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(r=ee.value.request)==null?void 0:r.headers,...n==null?void 0:n.headers}})}};function K8(t){const e=ee.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 Q8(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 Y1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function X8(t,e){return{async list(n,r){r={...r,ignoreAbort:!0};const o=await we.post(`${t}/list`,n,r);return o.data&&(o.data=fd(o.data)),o},summary(n,r){return r={...r,ignoreAbort:!0},we.post(`${t}/summary`,{filter:n},r)},async details(n,r,o){o={...o,ignoreAbort:!0},r&&(o.params={fields:r});const s=await we.get(`${t}/${n.id}/details`,o);return oe(s)},fieldOptions(n){return we.get(`${t}/field-options`,n)},async applyAction(n,r,o,s){var a,c;s={...s,waitOnPrevious:!0,useMostRecentResponse:!0,headers:{...s==null?void 0:s.headers,"X-Timestamp":Date.now().toString()}},o=o||{};const l=await we.post(`${t}/${r?r.id+"/":""}apply-action`,{action:n,data:o},s);return l.item&&(l.item=oe(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=oe(l.result)),l},batchAction(n,r,o,s){return s={...s,waitOnPrevious:!0},we.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return o_(`${t}/export`,r||"export.csv",{filter:n})},...e}}function K1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new ji((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:m})=>{m&&(e.value=m,r.value&&r.value(e.value))}).onComplete(({uploadedFile:m})=>{m&&(e.value=m,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:m,error:_})=>{console.error("Failed to upload",m,_),Ve.error(`Failed to upload ${m.name}: ${_}`)}).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 Mt(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 J8(t,e=""){const n=Ma(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ma(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ma(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const e6={version:"0.4.87"},{version:Q1}=e6;function t6(){console.log(`Installing Danx UI ${Q1}... Nothing to do really.`)}S.ActionButton=xo,S.ActionForm=Cc,S.ActionFormDialog=bp,S.ActionMenu=Qs,S.ActionTable=ud,S.ActionTableColumn=Wu,S.ActionTableHeaderColumn=Qu,S.ActionTableLayout=sw,S.ActionToolbar=dd,S.ActionVnode=Py,S.AddressFormat=By,S.AuditHistoryItem=gw,S.AuditHistoryItemValue=tl,S.AutoHeightTransition=jy,S.BadgeTab=zy,S.BooleanField=ns,S.CaretDownIcon=ja,S.CollapsableFiltersSidebar=od,S.CollapsableSidebar=Tc,S.ColumnListItem=Js,S.ColumnSettingsDialog=x2,S.ConfirmActionDialog=lc,S.ConfirmDialog=Tt,S.ConfirmPasswordField=zp,S.ContentDrawer=cs,S.CreateNewWithNameDialog=ac,S.DateField=os,S.DateRangeField=is,S.DateTime=D,S.DateTimeField=Jp,S.DateTimePicker=ss,S.DragAndDrop=Xs,S.DragHandleDotsIcon=Ya,S.DragHandleIcon=Ka,S.EditOnClickTextField=og,S.EditableDiv=dc,S.EmptyTableState=ad,S.ExportButton=Za,S.FieldLabel=mt,S.FilePreview=Ir,S.FileUpload=ji,S.FileUploadButton=sg,S.FilterIcon=Qa,S.FilterItem=nd,S.FilterList=rd,S.FilterListToggle=id,S.FilterToolbarLayout=L2,S.FilterableField=el,S.FlashMessages=Ve,S.FlatListFormat=Ny,S.FullScreenCarouselDialog=cc,S.FullScreenDialog=Ap,S.GpsCoordinatesFormat=Fy,S.HandleDraggable=ju,S.IconWithTextFormat=Oy,S.ImageIcon=ts,S.IndicatorTab=Gy,S.InfoDialog=uc,S.InlineDateTimeField=cg,S.InputDialog=Dp,S.IntegerField=mc,S.InteractiveTooltip=Vy,S.LabelPillWidget=f2,S.LabelValueBlock=hg,S.LabelValueFormat=vy,S.LabelValuePillWidget=h2,S.LabeledInput=rs,S.ListDragAndDrop=Yu,S.ListItemDraggable=Ku,S.ListTransition=$c,S.MaxHeightTransition=Yy,S.MaxLengthCounter=fc,S.MultiFileField=_c,S.MultiKeywordField=hc,S.NavigationMenu=ww,S.NewPasswordField=yg,S.NumberField=Nr,S.NumberRangeField=To,S.PanelsDrawer=ld,S.PanelsDrawerTabs=sd,S.PdfIcon=Xa,S.PercentIcon=Ja,S.PopoverMenu=Ic,S.PreviousNextControls=rc,S.RefreshButton=Wa,S.RenderComponent=Nc,S.RenderVnode=dn,S.RenderedForm=as,S.RenderedFormDialog=ay,S.SERVER_TZ=na,S.SaveStateIndicator=Sc,S.SelectDrawer=Sg,S.SelectField=Pn,S.SelectOrCreateField=$g,S.SelectWithChildrenField=pc,S.SelectionMenuField=Ng,S.ShowHideButton=So,S.SingleFileField=gc,S.SkipNextIcon=ec,S.SkipPreviousIcon=tc,S.SlideTransition=Ky,S.SliderNumberField=Pg,S.StaggeredListTransition=d2,S.SvgImg=Ec,S.TableSummaryRow=cd,S.TextField=cn,S.TitleColumnFormat=Xu,S.TrashIcon=Co,S.VisibleColumnsToggleButtons=B2,S.WarningIcon=nc,S.WysiwygField=xc,S.XIcon=Eo,S.activeActionVnode=xn,S.addHotkey=G8,S.applyCssVars=J8,S.autoRefreshObject=hd,S.buildCssVars=Ma,S.centerTruncate=J3,S.cloneDeep=Bw,S.configure=n0,S.danxOptions=ee,S.dbDateTime=oa,S.diffInDays=o4,S.download=$i,S.downloadFile=o_,S.downloadFileResponse=i_,S.fBoolean=e_,S.fCurrency=Ni,S.fCurrencyNoCents=K3,S.fDate=St,S.fDateTime=Bi,S.fDateTimeMs=Z3,S.fDuration=Y3,S.fJSON=r_,S.fLocalizedDateTime=kr,S.fMarkdownCode=r4,S.fNameOrCount=n_,S.fNumber=Ot,S.fPercent=t_,S.fPhone=e4,S.fQDate=G3,S.fSecondsToDuration=Xm,S.fSecondsToTime=j3,S.fShortCurrency=Q3,S.fShortNumber=Jm,S.fShortSize=X3,S.fetchResourceListWithSelected=Q8,S.getFilterFromUrl=td,S.getItem=Ct,S.getResponseHeader=la,S.getUrlParam=Y1,S.importJson=Y8,S.incrementName=kd,S.install=t6,S.isJSON=xd,S.latestCallOnly=sl,S.listen=Z8,S.localizedDateTime=ra,S.mapSortBy=ed,S.metersToMiles=$w,S.milesToMeters=Fw,S.minmax=Iw,S.notify=kw,S.parseCoords=Aw,S.parseDateTime=ct,S.parseGenericDateTime=Qm,S.parseMarkdownCode=Ii,S.parseMarkdownJSON=t4,S.parseMarkdownYAML=n4,S.parseQDate=ia,S.parseQDateTime=sa,S.parseSqlDateTime=W3,S.pollUntil=Nw,S.refreshApplication=Tw,S.registerHotkeys=j8,S.registerStickyScrolling=Ju,S.remoteDateTime=Km,S.remove=Hr,S.replace=ol,S.request=we,S.resolveFileLocation=G1,S.setItem=Mt,S.sleep=Uo,S.stopAutoRefreshObject=pd,S.storeObject=oe,S.storeObjects=fd,S.uniqueBy=wd,S.unlisten=W8,S.useActionRoutes=X8,S.useActionStore=Ew,S.useActions=Sw,S.useCompatibility=Ed,S.useControls=N2,S.useDebounceFn=an,S.useMultiFileUpload=j1,S.useSingleFileUpload=K1,S.useTableColumns=lw,S.version=Q1,S.waitForRef=il,S.withDefaultActions=Cw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
154
154
  //# sourceMappingURL=danx.umd.js.map