import{$ as e,E as t,G as n,L as r,N as i,Nt as a,O as o,Q as s,R as c,Rt as l,S as u,T as d,W as ee,X as f,Y as p,Z as m,_t as h,b as g,dt as _,ft as v,gt as te,ht as y,kt as b,mt as x,n as ne,ot as S,p as C,q as w,u as T,v as re,x as E,y as D}from"./vue-i18n-Bp4YYb-2.js";import{B as O,Br as ie,Bt as ae,C as k,D as oe,E as se,F as A,Gr as ce,I as j,It as M,Ji as le,L as ue,Lt as de,M as N,Ni as fe,V as P,Vt as pe,Wi as me,Yi as he,Yr as ge,_ as _e,_a as ve,bt as F,cr as ye,da as be,fa as I,ga as xe,ir as Se,mt as L,oi as Ce,sr as we,v as Te,w as Ee,x as De,y as Oe,z as R,zt as ke}from"./index-BOiiIZox.js";import{t as z}from"./plus-DphuRX_n.js";import{t as B}from"./message-CUQ8u6ht.js";import{t as Ae}from"./slider-ePRoz6pz.js";import{t as je}from"./listbox-W3kkJiOM.js";import{t as Me}from"./EntityTitleRename-Bzt7LwIE.js";var V={name:`UploadIcon`,extends:R};function Ne(e){return U(e)||H(e)||Fe(e)||Pe()}function Pe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e,t){if(e){if(typeof e==`string`)return W(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function H(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function U(e){if(Array.isArray(e))return W(e)}function W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t,n,i,a,o){return w(),u(`svg`,r({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Ne(t[0]||(t[0]=[D(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z`,fill:`currentColor`},null,-1)])),16)}V.render=G;var K=P.extend({name:`progressbar`,style:`
    .p-progressbar {
        display: block;
        position: relative;
        overflow: hidden;
        height: dt('progressbar.height');
        background: dt('progressbar.background');
        border-radius: dt('progressbar.border.radius');
    }

    .p-progressbar-value {
        margin: 0;
        background: dt('progressbar.value.background');
    }

    .p-progressbar-label {
        color: dt('progressbar.label.color');
        font-size: dt('progressbar.label.font.size');
        font-weight: dt('progressbar.label.font.weight');
    }

    .p-progressbar-determinate .p-progressbar-value {
        height: 100%;
        width: 0%;
        position: absolute;
        display: none;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: width 1s ease-in-out;
    }

    .p-progressbar-determinate .p-progressbar-label {
        display: inline-flex;
    }

    .p-progressbar-indeterminate .p-progressbar-value::before {
        content: '';
        position: absolute;
        background: inherit;
        inset-block-start: 0;
        inset-inline-start: 0;
        inset-block-end: 0;
        will-change: inset-inline-start, inset-inline-end;
        animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    }

    .p-progressbar-indeterminate .p-progressbar-value::after {
        content: '';
        position: absolute;
        background: inherit;
        inset-block-start: 0;
        inset-inline-start: 0;
        inset-block-end: 0;
        will-change: inset-inline-start, inset-inline-end;
        animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
        animation-delay: 1.15s;
    }

    @keyframes p-progressbar-indeterminate-anim {
        0% {
            inset-inline-start: -35%;
            inset-inline-end: 100%;
        }
        60% {
            inset-inline-start: 100%;
            inset-inline-end: -90%;
        }
        100% {
            inset-inline-start: 100%;
            inset-inline-end: -90%;
        }
    }
    @-webkit-keyframes p-progressbar-indeterminate-anim {
        0% {
            inset-inline-start: -35%;
            inset-inline-end: 100%;
        }
        60% {
            inset-inline-start: 100%;
            inset-inline-end: -90%;
        }
        100% {
            inset-inline-start: 100%;
            inset-inline-end: -90%;
        }
    }

    @keyframes p-progressbar-indeterminate-anim-short {
        0% {
            inset-inline-start: -200%;
            inset-inline-end: 100%;
        }
        60% {
            inset-inline-start: 107%;
            inset-inline-end: -8%;
        }
        100% {
            inset-inline-start: 107%;
            inset-inline-end: -8%;
        }
    }
    @-webkit-keyframes p-progressbar-indeterminate-anim-short {
        0% {
            inset-inline-start: -200%;
            inset-inline-end: 100%;
        }
        60% {
            inset-inline-start: 107%;
            inset-inline-end: -8%;
        }
        100% {
            inset-inline-start: 107%;
            inset-inline-end: -8%;
        }
    }
`,classes:{root:function(e){var t=e.instance;return[`p-progressbar p-component`,{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}]},value:`p-progressbar-value`,label:`p-progressbar-label`}}),q={name:`ProgressBar`,extends:{name:`BaseProgressBar`,extends:O,props:{value:{type:Number,default:null},mode:{type:String,default:`determinate`},showValue:{type:Boolean,default:!0}},style:K,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+`%`,display:`flex`}},indeterminate:function(){return this.mode===`indeterminate`},determinate:function(){return this.mode===`determinate`},dataP:function(){return M({determinate:this.determinate,indeterminate:this.indeterminate})}}},J=[`aria-valuenow`,`data-p`],Y=[`data-p`],X=[`data-p`],Ie=[`data-p`];function Le(e,t,n,i,a,o){return w(),u(`div`,r({role:`progressbar`,class:e.cx(`root`),"aria-valuemin":`0`,"aria-valuenow":e.value,"aria-valuemax":`100`,"data-p":o.dataP},e.ptmi(`root`)),[o.determinate?(w(),u(`div`,r({key:0,class:e.cx(`value`),style:o.progressStyle,"data-p":o.dataP},e.ptm(`value`)),[e.value!=null&&e.value!==0&&e.showValue?(w(),u(`div`,r({key:0,class:e.cx(`label`),"data-p":o.dataP},e.ptm(`label`)),[f(e.$slots,`default`,{},function(){return[d(h(e.value+`%`),1)]})],16,X)):E(``,!0)],16,Y)):o.indeterminate?(w(),u(`div`,r({key:1,class:e.cx(`value`),"data-p":o.dataP},e.ptm(`value`)),null,16,Ie)):E(``,!0)],16,J)}q.render=Le;var Re=P.extend({name:`fileupload`,style:`
    .p-fileupload input[type='file'] {
        display: none;
    }

    .p-fileupload-advanced {
        border: 1px solid dt('fileupload.border.color');
        border-radius: dt('fileupload.border.radius');
        background: dt('fileupload.background');
        color: dt('fileupload.color');
    }

    .p-fileupload-header {
        display: flex;
        align-items: center;
        padding: dt('fileupload.header.padding');
        background: dt('fileupload.header.background');
        color: dt('fileupload.header.color');
        border-style: solid;
        border-width: dt('fileupload.header.border.width');
        border-color: dt('fileupload.header.border.color');
        border-radius: dt('fileupload.header.border.radius');
        gap: dt('fileupload.header.gap');
    }

    .p-fileupload-content {
        border: 1px solid transparent;
        display: flex;
        flex-direction: column;
        gap: dt('fileupload.content.gap');
        transition: border-color dt('fileupload.transition.duration');
        padding: dt('fileupload.content.padding');
    }

    .p-fileupload-content .p-progressbar {
        width: 100%;
        height: dt('fileupload.progressbar.height');
    }

    .p-fileupload-file-list {
        display: flex;
        flex-direction: column;
        gap: dt('fileupload.filelist.gap');
    }

    .p-fileupload-file {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: dt('fileupload.file.padding');
        border-block-end: 1px solid dt('fileupload.file.border.color');
        gap: dt('fileupload.file.gap');
    }

    .p-fileupload-file:last-child {
        border-block-end: 0;
    }

    .p-fileupload-file-info {
        display: flex;
        flex-direction: column;
        gap: dt('fileupload.file.info.gap');
    }

    .p-fileupload-file-thumbnail {
        flex-shrink: 0;
    }

    .p-fileupload-file-actions {
        margin-inline-start: auto;
    }

    .p-fileupload-highlight {
        border: 1px dashed dt('fileupload.content.highlight.border.color');
    }

    .p-fileupload-basic .p-message {
        margin-block-end: dt('fileupload.basic.gap');
    }

    .p-fileupload-basic-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: dt('fileupload.basic.gap');
    }
`,classes:{root:function(e){return[`p-fileupload p-fileupload-${e.props.mode} p-component`]},header:`p-fileupload-header`,pcChooseButton:`p-fileupload-choose-button`,pcUploadButton:`p-fileupload-upload-button`,pcCancelButton:`p-fileupload-cancel-button`,content:`p-fileupload-content`,fileList:`p-fileupload-file-list`,file:`p-fileupload-file`,fileThumbnail:`p-fileupload-file-thumbnail`,fileInfo:`p-fileupload-file-info`,fileName:`p-fileupload-file-name`,fileSize:`p-fileupload-file-size`,pcFileBadge:`p-fileupload-file-badge`,fileActions:`p-fileupload-file-actions`,pcFileRemoveButton:`p-fileupload-file-remove-button`,basicContent:`p-fileupload-basic-content`}}),ze={name:`BaseFileUpload`,extends:O,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:`advanced`},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:`{0}: Invalid file size, file size should be smaller than {1}.`},invalidFileTypeMessage:{type:String,default:`{0}: Invalid file type, allowed file types: {1}.`},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:`Maximum number of files exceeded, limit is {0} at most.`},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null,chooseButtonProps:{type:null,default:null},uploadButtonProps:{type:Object,default:function(){return{severity:`secondary`}}},cancelButtonProps:{type:Object,default:function(){return{severity:`secondary`}}}},style:Re,provide:function(){return{$pcFileUpload:this,$parentInstance:this}}},Be={name:`FileContent`,hostName:`FileUpload`,extends:O,emits:[`remove`],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:`warn`},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`}},components:{Button:A,Badge:ue,TimesIcon:N}},Ve=[`alt`,`src`,`width`];function He(n,i,a,o,s,c){var l=m(`Badge`),d=m(`TimesIcon`),ee=m(`Button`);return w(!0),u(C,null,p(a.files,function(i,o){return w(),u(`div`,r({key:i.name+i.type+i.size,class:n.cx(`file`)},{ref_for:!0},n.ptm(`file`)),[D(`img`,r({role:`presentation`,class:n.cx(`fileThumbnail`),alt:i.name,src:i.objectURL,width:a.previewWidth},{ref_for:!0},n.ptm(`fileThumbnail`)),null,16,Ve),D(`div`,r({class:n.cx(`fileInfo`)},{ref_for:!0},n.ptm(`fileInfo`)),[D(`div`,r({class:n.cx(`fileName`)},{ref_for:!0},n.ptm(`fileName`)),h(i.name),17),D(`span`,r({class:n.cx(`fileSize`)},{ref_for:!0},n.ptm(`fileSize`)),h(c.formatSize(i.size)),17)],16),t(l,{value:a.badgeValue,class:x(n.cx(`pcFileBadge`)),severity:a.badgeSeverity,unstyled:n.unstyled,pt:n.ptm(`pcFileBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`]),D(`div`,r({class:n.cx(`fileActions`)},{ref_for:!0},n.ptm(`fileActions`)),[t(ee,{onClick:function(e){return n.$emit(`remove`,o)},text:``,rounded:``,severity:`danger`,class:x(n.cx(`pcFileRemoveButton`)),unstyled:n.unstyled,pt:n.ptm(`pcFileRemoveButton`)},{icon:_(function(t){return[a.templates.fileremoveicon?(w(),g(e(a.templates.fileremoveicon),{key:0,class:x(t.class),file:i,index:o},null,8,[`class`,`file`,`index`])):(w(),g(d,r({key:1,class:t.class,"aria-hidden":`true`},{ref_for:!0},n.ptm(`pcFileRemoveButton`).icon),null,16,[`class`]))]}),_:2},1032,[`onClick`,`class`,`unstyled`,`pt`])],16)],16)}),128)}Be.render=He;function Z(e){return Ge(e)||We(e)||Ke(e)||Ue()}function Ue(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ge(e){if(Array.isArray(e))return $(e)}function Q(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ke(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Ke(e,t){if(e){if(typeof e==`string`)return $(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var qe={name:`FileUpload`,extends:ze,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=Q(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=Q(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,Z(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=Q(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=Q(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&F(this.$refs.content,`p-fileupload-highlight`),this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&L(this.$refs.content,`p-fileupload-highlight`),this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&L(this.$refs.content,`p-fileupload-highlight`),this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=Z(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=Z(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:A,ProgressBar:q,Message:B,FileContent:Be,PlusIcon:z,UploadIcon:V,TimesIcon:N},directives:{ripple:j}},Je=[`multiple`,`accept`,`disabled`],Ye=[`accept`,`disabled`,`multiple`];function Xe(n,i,a,o,s,c){var l=m(`Button`),ee=m(`ProgressBar`),v=m(`Message`),te=m(`FileContent`);return c.isAdvanced?(w(),u(`div`,r({key:0,class:n.cx(`root`)},n.ptmi(`root`)),[D(`input`,r({ref:`fileInput`,type:`file`,onChange:i[0]||(i[0]=function(){return c.onFileSelect&&c.onFileSelect.apply(c,arguments)}),multiple:n.multiple,accept:n.accept,disabled:c.chooseDisabled},n.ptm(`input`)),null,16,Je),D(`div`,r({class:n.cx(`header`)},n.ptm(`header`)),[f(n.$slots,`header`,{files:s.files,uploadedFiles:s.uploadedFiles,chooseCallback:c.choose,uploadCallback:c.uploader,clearCallback:c.clear},function(){return[t(l,r({label:c.chooseButtonLabel,class:c.chooseButtonClass,style:n.style,disabled:n.disabled,unstyled:n.unstyled,onClick:c.choose,onKeydown:T(c.choose,[`enter`]),onFocus:c.onFocus,onBlur:c.onBlur},n.chooseButtonProps,{pt:n.ptm(`pcChooseButton`)}),{icon:_(function(t){return[f(n.$slots,`chooseicon`,{},function(){return[(w(),g(e(n.chooseIcon?`span`:`PlusIcon`),r({class:[t.class,n.chooseIcon],"aria-hidden":`true`},n.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),n.showUploadButton?(w(),g(l,r({key:0,class:n.cx(`pcUploadButton`),label:c.uploadButtonLabel,onClick:c.uploader,disabled:c.uploadDisabled,unstyled:n.unstyled},n.uploadButtonProps,{pt:n.ptm(`pcUploadButton`)}),{icon:_(function(t){return[f(n.$slots,`uploadicon`,{},function(){return[(w(),g(e(n.uploadIcon?`span`:`UploadIcon`),r({class:[t.class,n.uploadIcon],"aria-hidden":`true`},n.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):E(``,!0),n.showCancelButton?(w(),g(l,r({key:1,class:n.cx(`pcCancelButton`),label:c.cancelButtonLabel,onClick:c.clear,disabled:c.cancelDisabled,unstyled:n.unstyled},n.cancelButtonProps,{pt:n.ptm(`pcCancelButton`)}),{icon:_(function(t){return[f(n.$slots,`cancelicon`,{},function(){return[(w(),g(e(n.cancelIcon?`span`:`TimesIcon`),r({class:[t.class,n.cancelIcon],"aria-hidden":`true`},n.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):E(``,!0)]})],16),D(`div`,r({ref:`content`,class:n.cx(`content`),onDragenter:i[1]||(i[1]=function(){return c.onDragEnter&&c.onDragEnter.apply(c,arguments)}),onDragover:i[2]||(i[2]=function(){return c.onDragOver&&c.onDragOver.apply(c,arguments)}),onDragleave:i[3]||(i[3]=function(){return c.onDragLeave&&c.onDragLeave.apply(c,arguments)}),onDrop:i[4]||(i[4]=function(){return c.onDrop&&c.onDrop.apply(c,arguments)})},n.ptm(`content`),{"data-p-highlight":!1}),[f(n.$slots,`content`,{files:s.files,uploadedFiles:s.uploadedFiles,removeUploadedFileCallback:c.removeUploadedFile,removeFileCallback:c.remove,progress:s.progress,messages:s.messages},function(){return[c.hasFiles?(w(),g(ee,{key:0,value:s.progress,showValue:!1,unstyled:n.unstyled,pt:n.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):E(``,!0),(w(!0),u(C,null,p(s.messages,function(e){return w(),g(v,{key:e,severity:`error`,onClose:c.onMessageClose,unstyled:n.unstyled,pt:n.ptm(`pcMessage`)},{default:_(function(){return[d(h(e),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),c.hasFiles?(w(),u(`div`,{key:1,class:x(n.cx(`fileList`))},[t(te,{files:s.files,onRemove:c.remove,badgeValue:c.pendingLabel,previewWidth:n.previewWidth,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):E(``,!0),c.hasUploadedFiles?(w(),u(`div`,{key:2,class:x(n.cx(`fileList`))},[t(te,{files:s.uploadedFiles,onRemove:c.removeUploadedFile,badgeValue:c.completedLabel,badgeSeverity:`success`,previewWidth:n.previewWidth,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):E(``,!0)]}),n.$slots.empty&&!c.hasFiles&&!c.hasUploadedFiles?(w(),u(`div`,y(r({key:0},n.ptm(`empty`))),[f(n.$slots,`empty`)],16)):E(``,!0)],16)],16)):c.isBasic?(w(),u(`div`,r({key:1,class:n.cx(`root`)},n.ptmi(`root`)),[(w(!0),u(C,null,p(s.messages,function(e){return w(),g(v,{key:e,severity:`error`,onClose:c.onMessageClose,unstyled:n.unstyled,pt:n.ptm(`pcMessage`)},{default:_(function(){return[d(h(e),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),D(`div`,r({class:n.cx(`basicContent`)},n.ptm(`basicContent`)),[t(l,r({label:c.chooseButtonLabel,class:c.chooseButtonClass,style:n.style,disabled:n.disabled,unstyled:n.unstyled,onMouseup:c.onBasicUploaderClick,onKeydown:T(c.choose,[`enter`]),onFocus:c.onFocus,onBlur:c.onBlur},n.chooseButtonProps,{pt:n.ptm(`pcChooseButton`)}),{icon:_(function(t){return[f(n.$slots,`chooseicon`,{},function(){return[(w(),g(e(n.chooseIcon?`span`:`PlusIcon`),r({class:[t.class,n.chooseIcon],"aria-hidden":`true`},n.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),n.auto?E(``,!0):f(n.$slots,`filelabel`,{key:0,class:x(n.cx(`filelabel`)),files:s.files},function(){return[D(`span`,{class:x(n.cx(`filelabel`))},h(c.basicFileChosenLabel),3)]}),D(`input`,r({ref:`fileInput`,type:`file`,accept:n.accept,disabled:n.disabled,multiple:n.multiple,onChange:i[5]||(i[5]=function(){return c.onFileSelect&&c.onFileSelect.apply(c,arguments)}),onFocus:i[6]||(i[6]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:i[7]||(i[7]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},n.ptm(`input`)),null,16,Ye)],16)],16)):E(``,!0)}qe.render=Xe;var Ze={class:`flex border-b-4 border-border-one items-center justify-between`},Qe={class:`flex flex-wrap gap-x-1 justify-end`},$e={class:`p-2 flex flex-row`},et={class:`w-full flex flex-col lg:flex-row`},tt={id:`left-side`},nt={class:`mt-0 mr-4 w-96`},rt={class:`ml-3 font-light text-sm text-text-color-secondary`},it={key:0,class:`mt-4 mr-4 w-96 border-border-one`},at={class:`ml-3 font-light text-sm text-text-color-secondary`},ot={key:1,class:`mt-4 mr-4 w-96 border-border-one`},st={class:`ml-3 font-light text-sm text-text-color-secondary`},ct={key:2,class:`mt-8 mr-4 w-96 border-border-one`},lt={key:0,id:`right-side`,class:`flex flex-col lg:flex-row mt-4 ml-1 w-96 h-96 min-w-96 min-h-96`},ut={class:`flex w-full mr-0`},dt=[`src`],ft={key:1,class:`mt-0 mr-4 w-96`},pt={class:`ml-3 font-light text-sm text-text-color-secondary`},mt={class:`flex items-center`},ht={class:`flex items-center w-full justify-between`},gt={key:2,class:`mt-0 mr-4 w-96`},_t={class:`flex flex-col`},vt={class:`ml-3 mb-1 font-light text-sm text-text-color-secondary`},yt={key:0},bt={class:`mt-4`},xt={class:`ml-3 font-light text-sm text-text-color-secondary`},St={class:`font-extrabold`},Ct=Ee(o({__name:`LcdView`,props:{deviceId:{},channelName:{}},setup(e){let r=e,{t:o}=ne(),f=i(`emitter`),p=de(),m=a(p.$state),y=Se(),T=we(),O=ye(),j=b(y.allUIDeviceSettings.get(r.deviceId)?.sensorsAndChannels.get(r.channelName)?.name??r.channelName),M=b(!1),ue=320,N=1e7;for(let e of p.allDevices())if(e.uid===r.deviceId&&e.info!=null){let t=e.info.channels.get(r.channelName);t!=null&&t.lcd_info!=null&&(ue=t.lcd_info.screen_width,N=t.lcd_info.max_image_size_bytes*2)}let P=[],F=new be(`none`,`None`,!1,!1,!1,0,0,I.NONE);P.push(F);for(let e of p.allDevices())if(e.uid==r.deviceId)for(let t of e.info?.channels.get(r.channelName)?.lcd_modes??[])P.push(t);let L=b([]),Ee=()=>{L.value.length=0;for(let e of p.allDevices()){if(e.status.temps.length===0||e.info==null)continue;let t=y.allUIDeviceSettings.get(e.uid),n={deviceUID:e.uid,deviceName:t.name,temps:[]};for(let r of e.status.temps)n.temps.push({deviceUID:e.uid,tempName:r.name,tempFrontendName:t.sensorsAndChannels.get(r.name).name,lineColor:t.sensorsAndChannels.get(r.name).color,temp:r.temp.toFixed(1)});n.temps.length!==0&&L.value.push(n)}};Ee();let R=F,z=50,B=0,V,Ne,Pe=``,Fe=10,H=y.allDaemonDeviceSettings.get(r.deviceId)?.settings.get(r.channelName);if(H?.lcd!=null){R=P.find(e=>e.name===H.lcd?.mode)??F,z=H.lcd.brightness??z,B=H.lcd.orientation??B,Ne=H.lcd.image_file_processed,Pe=H.lcd.carousel?.images_path??``,Fe=H.lcd.carousel?.interval??10;let e=H.lcd.temp_source;if(e!=null){outer:for(let t of L.value)for(let n of t.temps)if(n.deviceUID===e.device_uid&&n.tempName===e.temp_name){V=n;break outer}}}let U=b(R),W=b(z),G=b(B),K=b(V),q=[],J=b([]),Y=b(Pe),X=b(Fe),Ie=async e=>{if(!Array.isArray(e.files)||e.files.length===0){console.error(`No File attached to the uploader`);return}q.length=0,J.value.length=0;for(let t of e.files)Le(t),Re(t);let t=pe.service({target:`#lcd-control-pane`,lock:!0,fullscreen:!1,text:o(`views.lcd.processing`),background:`rgba(var(--colors-bg-one) / 0.8)`,svgViewBox:ae,svg:ke}),n=await p.daemonClient.processLcdImageFiles(r.deviceId,r.channelName,e.files);if(t.close(),n instanceof fe){console.error(n.error),T.add({severity:`error`,summary:o(`common.error`),detail:n.error,life:1e4});return}J.value.push(URL.createObjectURL(n)),q.push(n)},Le=e=>{e.size<=N||(console.error(`Image is too large for the LCD Screen memory`),T.add({severity:`error`,summary:o(`common.error`),detail:o(`views.lcd.imageTooLarge`),life:4e3}))},Re=e=>{e.type.startsWith(`image/`)||(console.error(`File is not an image`),T.add({severity:`error`,summary:o(`common.error`),detail:o(`views.lcd.notImageType`),life:4e3}))},ze=async()=>{if(U.value.type===I.NONE){await y.saveDaemonDeviceSettingReset(r.deviceId,r.channelName),M.value=!1;return}let e=new me(U.value.name);U.value.brightness&&(e.brightness=W.value),U.value.orientation&&(e.orientation=G.value),e.mode===`temp`&&K.value!=null&&(e.temp_source=new he(K.value.deviceUID,K.value.tempName)),e.mode===`carousel`&&Y.value.length>0&&(e.carousel=new le(X.value,Y.value));let t=pe.service({target:`#lcd-control-pane`,lock:!0,fullscreen:!1,text:o(`views.lcd.applying`),background:`rgba(var(--colors-bg-one) / 0.8)`,svgViewBox:ae,svg:ke});e.mode===`image`&&q.length>0?await y.saveDaemonDeviceSettingLcdImages(r.deviceId,r.channelName,e,q):await y.saveDaemonDeviceSettingLcd(r.deviceId,r.channelName,e),t.close(),M.value=!1},Be=async e=>(e.length>0?(y.allUIDeviceSettings.get(r.deviceId).sensorsAndChannels.get(r.channelName).userName=e,j.value=e,f.emit(`device-sensor-name-update`,{deviceUID:r.deviceId,sensorId:r.channelName,name:e})):(y.allUIDeviceSettings.get(r.deviceId).sensorsAndChannels.get(r.channelName).userName=void 0,j.value=y.allUIDeviceSettings.get(r.deviceId)?.sensorsAndChannels.get(r.channelName)?.name??r.channelName,f.emit(`device-sensor-name-update`,{deviceUID:r.deviceId,sensorId:r.channelName,name:j.value})),!0),Ve=()=>{for(let e of L.value)for(let t of e.temps)t.temp=p.currentDeviceStatus.get(t.deviceUID).get(t.tempName).temp||`0.0`},He=e=>{e.value!==null&&(U.value=e.value)},Z=e=>{e.value!==null&&(K.value=e.value)},Ue=re(()=>{let e=Math.floor(X.value/60),t=X.value%60;return`${e.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}`}),We=async()=>{Y.value=await window.ipc.directoryPathDialog(`Select Images Directory`)},Ge=e=>{e.deltaY<0?W.value<100&&(W.value+=1):W.value>0&&--W.value},Q=e=>{e.deltaY<0?G.value<270&&(G.value+=90):G.value>0&&(G.value-=90)},Ke=()=>{document.querySelector(`.brightness-input`)?.addEventListener(`wheel`,Ge),document.querySelector(`.orientation-input`)?.addEventListener(`wheel`,Q)};S(J.value,()=>{if(J.value.length===0||J.value.length>1)return;let e=document.getElementById(`lcd-image`)??new HTMLImageElement;e.src=J.value[0]});let $=(e,t,n)=>{if(!M.value){n();return}O.require({message:o(`views.lcd.unsavedChanges`),header:o(`views.lcd.unsavedChangesHeader`),icon:`pi pi-exclamation-triangle`,defaultFocus:`accept`,rejectLabel:o(`common.stay`),acceptLabel:o(`common.discard`),accept:()=>{n(),M.value=!1},reject:()=>n(!1)})};return ee(async()=>{if(ve($),xe($),R.name===`image`&&Ne!=null){let e=await p.daemonClient.getDeviceSettingLcdImage(r.deviceId,r.channelName);e instanceof fe?console.error(e.error):(J.value.push(URL.createObjectURL(e)),q.push(e))}S(m.currentDeviceStatus,()=>{Ve()}),S(y.allUIDeviceSettings,()=>{Ee()}),S([J.value,U,W,G,K,Y,X],()=>{M.value=!0}),Ke(),S(U,()=>{c(Ke)})}),n(()=>{for(let e of J.value)URL.revokeObjectURL(e)}),(e,n)=>{let r=s(`tooltip`);return w(),u(C,null,[D(`div`,Ze,[t(Me,{"current-name":j.value,"save-name-function":Be},null,8,[`current-name`]),D(`div`,Qe,[D(`div`,$e,[v((w(),g(l(A),{class:x([`bg-accent/80 hover:!bg-accent w-32 h-[2.375rem]`,{"animate-pulse-fast":M.value}]),label:`Save`,onClick:ze},{default:_(()=>[t(l(k),{class:`outline-0`,type:`mdi`,path:l(ie),size:l(p).getREMSize(1.5)},null,8,[`path`,`size`])]),_:1},8,[`class`])),[[r,l(o)(`views.lcd.saveLcdSettings`),void 0,{top:!0}]])])])]),t(l(De),{id:`lcd-control-pane`,style:{"--scrollbar-size":`10px`}},{default:_(()=>[t(l(_e),{class:`p-4 pb-16 h-screen w-full`},{default:_(()=>[D(`div`,et,[D(`div`,tt,[D(`div`,nt,[D(`small`,rt,h(l(o)(`views.lcd.lcdMode`)),1),v(t(l(je),{"model-value":U.value,options:P,"option-label":`frontend_name`,class:`w-full`,checkmark:``,placeholder:`Type`,"list-style":`max-height: 100%`,onChange:He},null,8,[`model-value`]),[[r,l(o)(`views.lcd.lcdMode`),void 0,{top:!0}]])]),U.value.brightness?(w(),u(`div`,it,[D(`small`,at,[d(h(l(o)(`views.lcd.brightness`)),1),n[8]||(n[8]=D(`br`,null,null,-1))]),v((w(),g(l(se),{placeholder:`Brightness`,modelValue:W.value,"onUpdate:modelValue":n[0]||(n[0]=e=>W.value=e),mode:`decimal`,class:`mt-0.5 w-full`,suffix:` ${l(o)(`common.percentUnit`)}`,showButtons:``,min:0,max:100,"use-grouping":!1,step:1,"button-layout":`horizontal`,"input-style":{width:`8rem`}},{incrementicon:_(()=>[...n[9]||(n[9]=[D(`span`,{class:`pi pi-plus`},null,-1)])]),decrementicon:_(()=>[...n[10]||(n[10]=[D(`span`,{class:`pi pi-minus`},null,-1)])]),_:1},8,[`modelValue`,`suffix`])),[[r,l(o)(`views.lcd.brightnessPercent`),void 0,{top:!0}]]),t(l(Ae),{modelValue:W.value,"onUpdate:modelValue":n[1]||(n[1]=e=>W.value=e),class:`!w-[23.25rem] ml-1.5`,step:1,min:0,max:100},null,8,[`modelValue`])])):E(``,!0),U.value.orientation?(w(),u(`div`,ot,[D(`small`,st,[d(h(l(o)(`views.lcd.orientation`)),1),n[11]||(n[11]=D(`br`,null,null,-1))]),v((w(),g(l(se),{placeholder:`Orientation`,modelValue:G.value,"onUpdate:modelValue":n[2]||(n[2]=e=>G.value=e),mode:`decimal`,class:`mt-0.5 w-full`,suffix:` °`,showButtons:``,min:0,max:270,"use-grouping":!1,step:90,"button-layout":`horizontal`,"input-style":{width:`8rem`}},{incrementicon:_(()=>[...n[12]||(n[12]=[D(`span`,{class:`pi pi-plus`},null,-1)])]),decrementicon:_(()=>[...n[13]||(n[13]=[D(`span`,{class:`pi pi-minus`},null,-1)])]),_:1},8,[`modelValue`])),[[r,l(o)(`views.lcd.orientationDegrees`),void 0,{top:!0}]]),t(l(Ae),{modelValue:G.value,"onUpdate:modelValue":n[3]||(n[3]=e=>G.value=e),class:`!w-[23.25rem] ml-1.5`,step:90,min:0,max:270},null,8,[`modelValue`])])):E(``,!0),U.value.image?(w(),u(`div`,ct,[t(l(qe),{mode:`basic`,accept:`image/jpeg,image/png,image/gif,image/tiff,image/bmp`,maxFileSize:l(N),chooseLabel:`Choose Image\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0`,"choose-icon":`pi pi-images`,"show-cancel-button":!1,"upload-label":`Process`,multiple:!1,auto:``,class:`w-full h-16`,customUpload:``,onUploader:Ie},{empty:_(()=>[D(`p`,null,h(l(o)(`views.lcd.dragAndDrop`)),1)]),_:1},8,[`maxFileSize`])])):E(``,!0)]),U.value.image?(w(),u(`div`,lt,[D(`div`,ut,[J.value.length>0?(w(),u(`img`,{key:0,src:J.value[0],id:`lcd-image`,alt:`LCD Image`},null,8,dt)):(w(),g(l(k),{key:1,id:`lcd-image`,class:`text-text-color-secondary h-96`,style:{padding:`40px`},type:`mdi`,path:l(ce),size:l(ue)+60},null,8,[`path`,`size`]))])])):E(``,!0),U.value.type===l(I).CUSTOM&&U.value.name===`temp`?(w(),u(`div`,ft,[D(`small`,pt,h(l(o)(`views.lcd.tempSource`)),1),v((w(),g(l(je),{modelValue:K.value,"onUpdate:modelValue":n[4]||(n[4]=e=>K.value=e),class:`w-full mt-0`,options:L.value,filter:``,checkmark:``,"option-label":`tempFrontendName`,"option-group-label":`deviceName`,"option-group-children":`temps`,"filter-placeholder":`Search`,"list-style":`max-height: 100%`,invalid:K.value==null,onChange:Z},{optiongroup:_(e=>[D(`div`,mt,[t(l(k),{type:`mdi`,path:l(Ce),size:l(p).getREMSize(1.3),class:`mr-2`},null,8,[`path`,`size`]),D(`div`,null,h(e.option.deviceName),1)])]),option:_(e=>[D(`div`,ht,[D(`div`,null,[D(`span`,{class:`pi pi-minus mr-2 ml-1`,style:te({color:e.option.lineColor})},null,4),d(h(e.option.tempFrontendName),1)]),D(`div`,null,h(e.option.temp)+` `+h(l(o)(`common.tempUnit`)),1)])]),_:1},8,[`modelValue`,`options`,`invalid`])),[[r,l(o)(`views.lcd.tempSourceTooltip`),void 0,{top:!0}]])])):E(``,!0),U.value.type===l(I).CUSTOM&&U.value.name===`carousel`?(w(),u(`div`,gt,[D(`div`,_t,[D(`small`,vt,h(l(o)(`views.lcd.imagesPath`)),1),v(t(l(oe),{modelValue:Y.value,"onUpdate:modelValue":n[5]||(n[5]=e=>Y.value=e),class:`w-full mt-0 h-12`,placeholder:`/tmp/your_images_path`,invalid:!Y.value},null,8,[`modelValue`,`invalid`]),[[r,l(o)(`views.lcd.imagesPathTooltip`),void 0,{top:!0}]]),l(p).isQtApp()?(w(),u(`div`,yt,[v((w(),g(l(A),{class:`mt-2 w-full h-12`,label:`Browse`,onClick:We},{default:_(()=>[t(l(k),{class:`outline-0 mt-[-0.25rem]`,type:`mdi`,path:l(ge),size:l(p).getREMSize(1.5)},null,8,[`path`,`size`]),d(` `+h(l(o)(`views.lcd.browse`)),1)]),_:1})),[[r,l(o)(`views.lcd.browseTooltip`),void 0,{top:!0}]])])):E(``,!0)]),D(`div`,bt,[D(`small`,xt,[d(h(l(o)(`views.lcd.delayInterval`))+`: `,1),D(`span`,St,h(Ue.value),1),n[14]||(n[14]=D(`br`,null,null,-1))]),v((w(),g(l(se),{placeholder:`Delay Interval`,modelValue:X.value,"onUpdate:modelValue":n[6]||(n[6]=e=>X.value=e),mode:`decimal`,class:`mt-0.5 w-full`,showButtons:``,min:5,max:900,"use-grouping":!1,step:1,suffix:` ${l(o)(`common.secondAbbr`)}`,"button-layout":`horizontal`,"input-style":{width:`8rem`}},{incrementicon:_(()=>[...n[15]||(n[15]=[D(`span`,{class:`pi pi-plus`},null,-1)])]),decrementicon:_(()=>[...n[16]||(n[16]=[D(`span`,{class:`pi pi-minus`},null,-1)])]),_:1},8,[`modelValue`,`suffix`])),[[r,l(o)(`views.lcd.delayIntervalTooltip`),void 0,{top:!0}]]),t(l(Ae),{modelValue:X.value,"onUpdate:modelValue":n[7]||(n[7]=e=>X.value=e),class:`!w-[23.25rem] ml-1.5`,step:1,min:2,max:900},null,8,[`modelValue`])])])):E(``,!0)])]),_:1}),t(l(Oe),{class:`flex select-none touch-none p-0.5 bg-transparent transition-colors duration-[120ms] ease-out data-[orientation=vertical]:w-2.5`,orientation:`vertical`},{default:_(()=>[t(l(Te),{class:`flex-1 bg-border-one opacity-80 rounded-lg relative before:content-[''] before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-[44px] before:min-h-[44px]`})]),_:1})]),_:1})],64)}}}),[[`__scopeId`,`data-v-df56fcf7`]]);export{Ct as default};