From 2f4a2fd5b096c760144f45523f2c43dcda819bbe Mon Sep 17 00:00:00 2001 From: ntorga Date: Sat, 25 May 2024 11:11:12 -0300 Subject: [PATCH] chore: update front --- src/presentation/ui/dist/index.html | 2 +- src/presentation/ui/dist/js/664.53dda770.js | 1 + src/presentation/ui/dist/js/664.c2c9a509.js | 1 - .../ui/dist/js/{693.69543928.js => 693.95a04be3.js} | 2 +- src/presentation/ui/dist/js/870.0630ca03.js | 1 + src/presentation/ui/dist/js/870.d1e53a36.js | 1 - .../ui/dist/js/{app.92ab606c.js => app.1bc11324.js} | 2 +- src/presentation/ui/dist/js/chunk-common.478f3322.js | 1 + src/presentation/ui/dist/js/chunk-common.9772496c.js | 1 - 9 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/presentation/ui/dist/js/664.53dda770.js delete mode 100644 src/presentation/ui/dist/js/664.c2c9a509.js rename src/presentation/ui/dist/js/{693.69543928.js => 693.95a04be3.js} (95%) create mode 100644 src/presentation/ui/dist/js/870.0630ca03.js delete mode 100644 src/presentation/ui/dist/js/870.d1e53a36.js rename src/presentation/ui/dist/js/{app.92ab606c.js => app.1bc11324.js} (99%) create mode 100644 src/presentation/ui/dist/js/chunk-common.478f3322.js delete mode 100644 src/presentation/ui/dist/js/chunk-common.9772496c.js diff --git a/src/presentation/ui/dist/index.html b/src/presentation/ui/dist/index.html index 603126860..9917a98a2 100644 --- a/src/presentation/ui/dist/index.html +++ b/src/presentation/ui/dist/index.html @@ -1 +1 @@ -Speedia OS
\ No newline at end of file +Speedia OS
\ No newline at end of file diff --git a/src/presentation/ui/dist/js/664.53dda770.js b/src/presentation/ui/dist/js/664.53dda770.js new file mode 100644 index 000000000..04169ac21 --- /dev/null +++ b/src/presentation/ui/dist/js/664.53dda770.js @@ -0,0 +1 @@ +(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[664],{59590:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>ho});var t=a(59835),o=a(61957),i={class:"row"},n={class:"row"},s={class:"col-2"},r={class:"col"},u={class:"text-center",width:"25px"},c={class:"text-center",width:"25px"},d={class:"text-left",width:"100px"},m={class:"text-left",width:"100px"},p={class:"text-left",width:"100px"},g={class:"text-left",width:"100px"},v={class:"text-left"},f={class:"text-left"},w={class:"text-left"},b={class:"text-left"},h={class:"text-left"},y={class:"text-left"};function _(e,l){var a=(0,t.up)("q-skeleton"),o=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t._)("div",i,[(0,t.Wm)(a,{type:"QInput",width:"100vw",height:"75px",class:"q-my-sm"})]),(0,t._)("div",n,[(0,t._)("div",s,[(0,t.Wm)(a,{type:"QInput",width:"100wh",height:"55vh",class:"q-mr-xs"})]),(0,t._)("div",r,[(0,t.Wm)(o,{flat:""},{default:(0,t.w5)((function(){return[(0,t._)("thead",null,[(0,t._)("tr",null,[(0,t._)("th",u,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",c,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",d,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",m,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",p,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",g,[(0,t.Wm)(a,{animation:"blink",type:"text"})])])]),(0,t._)("tbody",null,[((0,t.wg)(),(0,t.iD)(t.HY,null,(0,t.Ko)(10,(function(e){return(0,t._)("tr",{key:e},[(0,t._)("td",v,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"25px"})]),(0,t._)("td",f,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"25px"})]),(0,t._)("td",w,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",b,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",h,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",y,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})])])})),64))])]})),_:1})])])])}var F=a(11639),D=a(57133),T=a(66933),C=a(69984),x=a.n(C);const M={},Z=(0,F.Z)(M,[["render",_]]),W=Z;x()(M,"components",{QSkeleton:D.ZP,QMarkupTable:T.Z});var q=a(86970),P=a(3746);const k=(0,P.Q_)("fileManager",{state:()=>({filesCurrentPath:[],isSelectedAllPaths:!1,listSelectedPaths:[],currentAbsolutePath:"/",activeRowTable:{},selectedPathOrActiveRow:{},selectedPath:{},pathsTreeView:[],keyTreeView:0,isLoadingHomeDir:!1}),getters:{getFilesCurrentPath(e){return e.filesCurrentPath},getIsSelectedAllPaths(e){return e.isSelectedAllPaths},getListSelectedPaths(e){return e.listSelectedPaths},getCurrentAbsolutePath(e){return e.currentAbsolutePath},getActiveRowTable(e){return e.activeRowTable},getSelectedPathOrActiveRow(e){return e.selectedPathOrActiveRow},getSelectedPath(e){return e.selectedPath},getPathsTreeView(e){return e.pathsTreeView},getKeyTreeView(e){return e.keyTreeView},getIsLoadingHomeDir(e){return e.isLoadingHomeDir}},actions:{setFilesCurrentPath(e){this.filesCurrentPath=e},setIsSelectedAllPaths(e){this.isSelectedAllPaths=e},setListSelectedPaths(e){this.listSelectedPaths=e},setCurrentAbsolutePath(e){this.currentAbsolutePath=e},setActiveRowTable(e){this.activeRowTable=e},setSelectedPathOrActiveRow(e){this.selectedPathOrActiveRow=e},setSelectedPath(e){this.selectedPath=e},setPathsTreeView(e){this.pathsTreeView=e},setKeyTreeView(e){this.keyTreeView=e},setIsLoadingHomeDir(e){this.isLoadingHomeDir=e}}}),Q=(0,t.aZ)({__name:"FileManagerToolbarBtnHome",setup(e){const l=k();function a(){l.setCurrentAbsolutePath("/")}return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"sym_s_home",color:"primary",round:"",onClick:l[0]||(l[0]=e=>a())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnHome.btnGoToHome")),1)])),_:1})])),_:1})}}});var $=a(68879),R=a(46858);const z=Q,B=z;x()(Q,"components",{QBtn:$.Z,QTooltip:R.Z});const E=(0,t.aZ)({__name:"FileManagerToolbarBtnGoBackUp",props:{isDisabled:{type:Boolean}},setup(e){const l=k();function a(){let e=l.getCurrentAbsolutePath.split("/");e.pop();let a=e.join("/");""===a&&(a="/"),l.setCurrentAbsolutePath(a)}return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"fas fa-arrow-turn-up",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>a())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnGoBackUp.btnGoBackUp")),1)])),_:1})])),_:1},8,["disable"])}}}),S=E,U=S;x()(E,"components",{QBtn:$.Z,QTooltip:R.Z});const H=(0,t.aZ)({__name:"FileManagerToolbarBtnPageReload",setup(e){const l=k(),a=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"fas fa-rotate",color:"primary",round:"",onClick:l[0]||(l[0]=e=>a.value++)},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnPageReload.btnPageReload")),1)])),_:1})])),_:1})}}}),V=H,j=V;x()(H,"components",{QBtn:$.Z,QTooltip:R.Z});var A=a(18892),N=a(84278),I=a(15521),L=a(60499);const Y={class:"row no-wrap items-center q-pa-sm"},K={class:"col"},O={class:"q-uploader__title"},X={class:"q-uploader__subtitle"},G={class:"q-pr-md"},J={class:"q-pr-sm"},ee=(0,t.aZ)({__name:"FileManagerInputUploaderFile",emits:["update:fileBlob"],setup(e,{emit:l}){const a=(0,L.iH)([]);function o(e){a.value.push(e[0]),l("update:fileBlob",a.value)}function i(e){a.value.splice(e,1),l("update:fileBlob",a.value)}return(e,l)=>{const a=(0,t.up)("q-spinner"),n=(0,t.up)("q-uploader-add-trigger"),s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn"),u=(0,t.up)("q-chip"),c=(0,t.up)("q-uploader");return(0,t.wg)(),(0,t.j4)(c,{flat:"",color:"grey-7",multiple:!0,"auto-upload":"",factory:o},{header:(0,t.w5)((l=>[(0,t._)("div",Y,[l.isUploading?((0,t.wg)(),(0,t.j4)(a,{key:0,class:"q-uploader__spinner"})):(0,t.kq)("",!0),(0,t._)("div",K,[(0,t._)("div",O,(0,q.zw)(e.$t("fileManagerInputUploaderFile.title")),1),(0,t._)("div",X,(0,q.zw)(l.uploadSizeLabel),1)]),l.canAddFiles?((0,t.wg)(),(0,t.j4)(r,{key:1,icon:"fas fa-paperclip",onClick:l.pickFiles,round:"",size:"12px",color:"primary","text-color":"white"},{default:(0,t.w5)((()=>[(0,t.Wm)(n),(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerInputUploaderFile.addFile")),1)])),_:1})])),_:2},1032,["onClick"])):(0,t.kq)("",!0)])])),list:(0,t.w5)((e=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.files,((l,a)=>((0,t.wg)(),(0,t.iD)("span",{key:l.__key},[(0,t.Wm)(u,{removable:"",onRemove:t=>(i(a),e.removeFile(l)),color:"grey-7","text-color":"white",icon:"fas fa-paperclip",class:"q-mt-xs q-pa-md"},{default:(0,t.w5)((()=>[(0,t._)("span",G,(0,q.zw)(l.name),1),(0,t._)("span",J,(0,q.zw)(l.__sizeLabel),1)])),_:2},1032,["onRemove"])])))),128))])),_:1})}}});var le=a(88855),ae=a(13902),te=a(46246),oe=a(57691);const ie=ee,ne=ie;x()(ee,"components",{QUploader:le.Z,QSpinner:ae.Z,QBtn:$.Z,QUploaderAddTrigger:te.Z,QTooltip:R.Z,QChip:oe.Z});var se=a(88900),re=a(45273),ue=a(25121);const ce={class:"flex justify-between items-center"},de={class:"title-dialog"},me=(0,t.aZ)({__name:"FileManagerToolbarDialogUploaderFile",props:{showDialogUploaderFile:{type:Boolean}},emits:["update:showDialogUploaderFile"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogUploaderFile),s=(0,L.iH)([]),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;let l=new FormData;s.value.forEach((e=>{l.append(e.name,e)})),l.append("destinationPath",r.value),e.uploadFile(l).then((e=>{e.data.body.fileNamesSuccessfullyUploaded.length>0&&e.data.body.fileNamesSuccessfullyUploaded.forEach((e=>{(0,se.LX)(`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileSuccess",{fileName:e})}`)})),e.data.body.failedNamesWithReason.length>0&&e.data.body.failedNamesWithReason.forEach((e=>{(0,se.c0)({msg:`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileError",{fileName:e.fileName,reason:e.reason})}`,position:"bottom",type:"negative"})})),setTimeout((()=>{u.value++,n.value=!1}),1e3)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileError")}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogUploaderFile),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogUploaderFile",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ce,[(0,t._)("div",de,(0,q.zw)(e.$t("fileManagerToolbarDialogUploaderFile.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[r.value?((0,t.wg)(),(0,t.j4)(I.Z,{key:0,class:"q-my-sm",label:e.$t("fileManagerToolbarDialogUploaderFile.inputSendTo"),icon:"sym_s_folder_open",value:r.value,readonly:!0,disable:!0},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(ne,{fileBlob:s.value,"onUpdate:fileBlob":l[1]||(l[1]=e=>s.value=e),class:"full-width q-pa-sm"},null,8,["fileBlob"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",onClick:l[2]||(l[2]=e=>n.value=!1),label:e.$t("fileManagerToolbarDialogUploaderFile.btnCancel")},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-upload",label:e.$t("fileManagerToolbarDialogUploaderFile.btnUploaderFile"),disable:!r.value||0===s.value.length,onClick:l[3]||(l[3]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var pe=a(32074),ge=a(44458),ve=a(50926),fe=a(63190),we=a(11821);const be=me,he=be;x()(me,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const ye=(0,t.aZ)({__name:"FileManagerToolbarBtnUploaderFile",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);return(e,o)=>{const i=(0,t.up)("q-tooltip"),n=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(he,{showDialogUploaderFile:l.value,"onUpdate:showDialogUploaderFile":o[0]||(o[0]=e=>l.value=e),key:a.value},null,8,["showDialogUploaderFile"])),(0,t.Wm)(n,{icon:"fas fa-upload",color:"primary",round:"",onClick:o[1]||(o[1]=e=>(l.value=!0,a.value++))},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnUploaderFile.btnUploaderFile")),1)])),_:1})])),_:1})])}}}),_e=ye,Fe=_e;x()(ye,"components",{QBtn:$.Z,QTooltip:R.Z});const De={class:"flex justify-between items-center"},Te={class:"title-dialog"},Ce=(0,t.aZ)({__name:"FileManagerToolbarDialogNewFolder",props:{showDialogNewFolder:{type:Boolean}},emits:["update:showDialogNewFolder"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogNewFolder),s=(0,L.iH)(""),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)}),c=(0,t.Fl)((()=>{const e=new RegExp(/^\w{1,256}$/);return e.test(s.value)}));function d(){(0,re.Q)();const e=new A.Z;e.createFile({filePath:`${r.value}/${s.value}`,mimeType:"directory",permissions:"0755"}).then((()=>{(0,se.LX)(`${i("fileManagerToolbarDialogNewFolder.msgCreateFolderSuccess",{dirName:s.value})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogNewFolder.msgCreateFolderError",{dirName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogNewFolder),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogNewFolder",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),m=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",De,[(0,t._)("div",Te,(0,q.zw)(e.$t("fileManagerToolbarDialogNewFolder.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerToolbarDialogNewFolder.labelInputNameFolder"),icon:"sym_s_folder",prefix:"/"!==r.value?`${r.value}/`:r.value,value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l&&null!==l||e.$t("fileManagerToolbarDialogNewFolder.fieldRequired"),()=>c.value||e.$t("fileManagerToolbarDialogNewFolder.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerToolbarDialogNewFolder.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_create_new_folder",label:e.$t("fileManagerToolbarDialogNewFolder.btnCreateFolder"),disable:!r.value||!c.value,onClick:l[3]||(l[3]=e=>d())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),xe=Ce,Me=xe;x()(Ce,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ze=(0,t.aZ)({__name:"FileManagerToolbarBtnNewFolder",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);function o(){l.value=!0,a.value++}return(e,i)=>{const n=(0,t.up)("q-tooltip"),s=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Me,{showDialogNewFolder:l.value,"onUpdate:showDialogNewFolder":i[0]||(i[0]=e=>l.value=e),key:a.value},null,8,["showDialogNewFolder"])),(0,t.Wm)(s,{icon:"sym_s_create_new_folder",color:"primary",round:"",onClick:i[1]||(i[1]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnNewFolder.btnNewFolder")),1)])),_:1})])),_:1})])}}}),We=Ze,qe=We;x()(Ze,"components",{QBtn:$.Z,QTooltip:R.Z});var Pe=a(89906),ke=a(19302);const Qe=(0,t.aZ)({__name:"FileManagerToolbarBtnCleanTrash",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)((()=>{const e=(0,ke.Z)(),l=e.dark.isActive;return l?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"})),i=(0,L.iH)(!1),n=(0,L.iH)(`${a("fileManagerToolbarBtnClearTrash.titleDialogClearTrash")}`),s=(0,L.iH)(`${a("fileManagerToolbarBtnClearTrash.bodyDialogClearTrash")}`),r=(0,L.iH)(!1),u=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)}),c=(0,t.Fl)((()=>0===l.getFilesCurrentPath.length));function d(){i.value=!0}function m(){i.value=!1}function p(){(0,re.Q)();const e=new A.Z;e.removeFile({sourcePaths:["/app/.trash"]}).then((()=>{setTimeout((()=>{u.value++,m()}),500),(0,se.LX)(`${a("fileManagerToolbarBtnClearTrash.msgRemoveSuccess")}`)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnClearTrash.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)(r,(e=>{!1!==e&&p()})),(e,l)=>{const a=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:i.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>i.value=e),titleDialog:n.value,messageToDelete:s.value,imagePath:o.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnClearTrash.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnClearTrash.btnConfirm"),color:"negative",onClick:l[1]||(l[1]=e=>p())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","imagePath"]),(0,t.Wm)(r,{disable:c.value,icon:"fas fa-broom",color:"primary",round:"",onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnClearTrash.btnClearTrash")),1)])),_:1})])),_:1},8,["disable"])],64)}}}),$e=Qe,Re=$e;x()(Qe,"components",{QBtn:$.Z,QTooltip:R.Z});const ze=(0,t.aZ)({__name:"FileManagerToolbarBtnShowTrash",setup(e){const l=k(),a=(0,t.Fl)({get:()=>l.getCurrentAbsolutePath,set:e=>l.setCurrentAbsolutePath(e)});function o(){a.value="/app/.trash"}return(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"sym_s_restore_from_trash",color:"primary",round:"",onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnShowTrash.btnShowTrash")),1)])),_:1})])),_:1})}}}),Be=ze,Ee=Be;x()(ze,"components",{QBtn:$.Z,QTooltip:R.Z});const Se=(0,t.aZ)({__name:"FileManagerToolbarBtnDownload",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function o(){if(void 0===a.value.path)return;(0,re.Q)();const e=new A.Z;e.getFileDownloadBlob(a.value).then((e=>{let l=document.createElement("a");document.body.appendChild(l),l.style="display: none";const t=window.URL.createObjectURL(e);l.href=t,l.download=a.value.name,l.click(),window.URL.revokeObjectURL(t)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,e.msg)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(i,{icon:"fas fa-file-download",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDownload.btnDownload")),1)])),_:1})])),_:1},8,["disable"])])}}}),Ue=Se,He=Ue;x()(Se,"components",{QBtn:$.Z,QTooltip:R.Z});var Ve=a(40425),je=a.n(Ve),Ae=a(25562);const Ne={class:"full-width full-height"},Ie={class:"flex justify-between items-center file-manager-editor-toolbar q-pa-none"},Le={class:"flex justify-start items-center"},Ye={class:"flex justify-start items-center q-my-sm"},Ke=(0,t.aZ)({__name:"FileManagerCodeEditor",props:{originalFileContent:{},extension:{},currentFileContent:{}},emits:["update:saveContent","update:currentFileContent"],setup(e,{emit:l}){const a=e;let o=null;const i=(0,L.iH)(13),n=(0,L.iH)(null),s=(0,L.iH)(""),r=(0,t.Fl)((()=>{const e=je().MD5(a.originalFileContent).toString(),l=je().MD5(s.value).toString();return e!==l})),u=(0,t.Fl)((()=>{let e=a.extension.toLowerCase();switch(a.extension){case"js":e="javascript";break;case"ts":e="typescript";break;case"md":e="markdown";break}return e}));function c(){o=Ae.j6.create(n.value,{value:s.value,language:u.value,theme:"vs-dark"}),o.onDidChangeModelContent((()=>{var e;s.value=null!==(e=null===o||void 0===o?void 0:o.getValue())&&void 0!==e?e:"",l("update:currentFileContent",null===o||void 0===o?void 0:o.getValue())}))}function d(){o&&o.trigger("source","undo",null)}function m(){o&&o.trigger("source","redo",null)}function p(){o&&o.setValue(a.originalFileContent)}function g(){l("update:currentFileContent",null===o||void 0===o?void 0:o.getValue()),l("update:saveContent",!0)}return(0,t.bv)((()=>{setTimeout((()=>{s.value=a.originalFileContent,c()}),100)})),(0,t.YP)(i,(e=>{o&&o.updateOptions({fontSize:e})})),(e,l)=>{const a=(0,t.up)("q-tooltip"),o=(0,t.up)("q-btn"),s=(0,t.up)("q-input");return(0,t.wg)(),(0,t.iD)("div",Ne,[(0,t._)("div",Ie,[(0,t._)("div",Le,[(0,t.Wm)(o,{icon:"fas fa-rotate-left",round:"",color:"primary",class:"q-mx-sm",onClick:l[0]||(l[0]=e=>d()),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnUndo")),1)])),_:1})])),_:1}),(0,t.Wm)(o,{icon:"fas fa-rotate-right",round:"",color:"primary",class:"q-mx-sm",onClick:l[1]||(l[1]=e=>m()),size:"12px",style:{"margin-right":"75px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnRedo")),1)])),_:1})])),_:1}),(0,t.Wm)(o,{icon:"fas fa-minus",color:"primary",class:"q-mx-sm",round:"",disable:i.value<=10,onClick:l[2]||(l[2]=e=>i.value-=1),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnDecreaseFont")),1)])),_:1})])),_:1},8,["disable"]),(0,t.Wm)(s,{modelValue:i.value,"onUpdate:modelValue":l[3]||(l[3]=e=>i.value=e),debounce:"100",readonly:"",borderless:"",class:"rounded-borders q-px-md",style:{width:"48px"}},null,8,["modelValue"]),(0,t.Wm)(o,{icon:"fas fa-plus",color:"primary",class:"q-mx-sm",round:"",disable:i.value>=26,onClick:l[4]||(l[4]=e=>i.value+=1),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnIncreaseFont")),1)])),_:1})])),_:1},8,["disable"])]),(0,t._)("div",Ye,[(0,t.Wm)(o,{icon:"fas fa-clock-rotate-left",round:"",color:"primary",class:"q-mx-sm",disable:!r.value,onClick:l[5]||(l[5]=e=>p()),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnRedoAll")),1)])),_:1})])),_:1},8,["disable"]),(0,t.Wm)(o,{icon:"fas fa-save",label:e.$t("fileManagerCodeEditor.btnSave"),color:"green-7",class:"q-mx-sm",size:"md","no-caps":"",onClick:l[6]||(l[6]=e=>g()),disable:!r.value},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-green-7",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnSaveFile")),1)])),_:1})])),_:1},8,["label","disable"])])]),(0,t._)("div",{ref_key:"editorRef",ref:n,style:{width:"100%",height:"75vh","padding-top":"1px"}},null,512)])}}});var Oe=a(13119);const Xe=Ke,Ge=Xe;x()(Ke,"components",{QBtn:$.Z,QTooltip:R.Z,QInput:Oe.Z});const Je={class:"text-h6 text-bold text-secondary"},el=["innerHTML"],ll=(0,t.aZ)({__name:"DialogWarning",props:{showDialogWarning:{type:Boolean,default:!1},titleDialogWarning:{default:""},bodyDialogWarning:{default:""},btnCancelLabel:{default:"Cancelar"},btnConfirmLabel:{default:""}},emits:["update:showDialogWarning","update:isToProceed"],setup(e,{emit:l}){const a=e,o=(0,L.iH)(a.showDialogWarning);function i(){l("update:isToProceed",!1),o.value=!1}function n(){l("update:isToProceed",!0),o.value=!1}return(0,t.YP)((()=>a.showDialogWarning),(e=>{o.value=e})),(0,t.YP)(o,(e=>{l("update:showDialogWarning",e)})),(e,l)=>{const a=(0,t.up)("q-card-section"),s=(0,t.up)("q-icon"),r=(0,t.up)("q-banner"),u=(0,t.up)("q-card-actions"),c=(0,t.up)("q-card"),d=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(d,{modelValue:o.value,"onUpdate:modelValue":l[2]||(l[2]=e=>o.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{class:"bg-yellow-2 q-pa-md",style:{width:"750px","max-width":"70vw"}},{default:(0,t.w5)((()=>[(0,t.Wm)(a,null,{default:(0,t.w5)((()=>[(0,t._)("div",Je,(0,q.zw)(e.titleDialogWarning),1)])),_:1}),(0,t.Wm)(a,{class:"q-pa-xs q-my-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{class:"bg-yellow-2 text-secondary"},{avatar:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-exclamation-triangle",color:"yellow-8",size:"lg"})])),default:(0,t.w5)((()=>[(0,t._)("div",{innerHTML:e.bodyDialogWarning,class:"text-secondary q-mb-md"},null,8,el)])),_:1})])),_:1}),(0,t.Wm)(u,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.btnCancelLabel,color:"grey-8",onClick:l[0]||(l[0]=e=>i())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-exclamation-triangle",label:e.btnConfirmLabel,color:"primary",onClick:l[1]||(l[1]=e=>n())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var al=a(47128),tl=a(22857);const ol=ll,il=ol;x()(ll,"components",{QDialog:pe.Z,QCard:ge.Z,QCardSection:fe.Z,QBanner:al.Z,QIcon:tl.Z,QCardActions:we.Z});const nl={class:"flex justify-between items-center"},sl={class:"title-dialog"},rl={class:"text-subtitle2"},ul=(0,t.aZ)({__name:"FileManagerDialogEditCode",props:{selectedFile:{},showDialogEditCode:{type:Boolean}},emits:["update:showDialogEditCode"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogEditCode),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,L.iH)(!1),c=(0,L.iH)(!1),d=(0,L.iH)(!1),m=(0,L.iH)(0),p=(0,L.iH)(!1),g=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function v(){if(void 0===a.selectedFile.path)return;(0,re.Q)(),p.value=!0;const e=new A.Z;e.getCurrentPath(a.selectedFile.path).then((e=>{0===e.data.body.length&&(0,se.c0)({msg:`${i("fileManagerDialogEditCode.msgGetContentError",{fileName:a.selectedFile.name})}`,type:"negative",position:"bottom"});const l=new Blob([`${e.data.body[0].content}`],{type:a.selectedFile.extension});l.text().then((e=>{s.value=e,r.value=e}))})).catch((e=>{console.error(e),(0,se.s9)(e.response.data?e.response.data:e,`${i("fileManagerDialogEditCode.msgGetContentError",{fileName:a.selectedFile.name})}`),n.value=!1})).finally((()=>{(0,re.Z)(),p.value=!1}))}function f(){(0,re.Q)();const e=new A.Z,l=btoa(unescape(encodeURIComponent(r.value)));e.updateFile({encodedContent:l,sourcePaths:[a.selectedFile.path]}).then((e=>{e.data.body.filePathsSuccessfullyUpdated.length>0&&(0,se.LX)(`${i("fileManagerDialogEditCode.msgSaveCodeSuccess",{fileName:a.selectedFile.name})}`),e.data.body.failedPathsWithReason.length>0&&(0,se.c0)({msg:`${i("fileManagerDialogEditCode.msgSaveCodeError",{fileName:a.selectedFile.name})}`,type:"negative",position:"bottom"}),n.value=!1,g.value++})).catch((e=>{(0,se.s9)(e.response.data,`${i("fileManagerDialogEditCode.msgSaveCodeError",{fileName:a.selectedFile.name})}`),console.error(e),u.value=!1})).finally((()=>{(0,re.Z)()}))}function w(){const e=je().MD5(s.value).toString(je().enc.Base64),l=je().MD5(r.value).toString(je().enc.Base64);e!==l?b():n.value=!1}function b(){m.value++,c.value=!0}return(0,t.YP)(u,(e=>{!1!==e&&f()})),(0,t.YP)(d,(e=>{!0===e&&(c.value=!1,setTimeout((()=>{n.value=!1}),500))})),(0,t.YP)((()=>a.showDialogEditCode),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogEditCode",e),!0===e&&v()}),{immediate:!0}),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-card-section"),i=(0,t.up)("q-separator"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(il,{showDialogWarning:c.value,"onUpdate:showDialogWarning":l[0]||(l[0]=e=>c.value=e),titleDialogWarning:e.$t("fileManagerDialogEditCode.titleDialogWarningSave"),bodyDialogWarning:e.$t("fileManagerDialogEditCode.bodyDialogWarningSave"),isToProceed:d.value,"onUpdate:isToProceed":l[1]||(l[1]=e=>d.value=e),btnConfirmLabel:e.$t("fileManagerDialogEditCode.btnDialogWarningSave"),key:m.value},null,8,["showDialogWarning","titleDialogWarning","bodyDialogWarning","isToProceed","btnConfirmLabel"])),(0,t.Wm)(v,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),position:"right",maximized:"","transition-show":"slide-left","transition-hide":"slide-right",persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",style:{"min-width":"85vw"}},{default:(0,t.w5)((()=>[(0,t.Wm)(o,null,{default:(0,t.w5)((()=>[(0,t._)("div",nl,[(0,t._)("div",null,[(0,t._)("div",sl,(0,q.zw)(e.$t("fileManagerDialogEditCode.titleEditCode")),1),(0,t._)("div",rl,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[2]||(l[2]=e=>w())})])])),_:1}),(0,t.Wm)(i),(0,t.Wm)(o,{class:"q-pa-sm"},{default:(0,t.w5)((()=>[p.value?(0,t.kq)("",!0):((0,t.wg)(),(0,t.j4)(Ge,{key:0,originalFileContent:s.value,extension:e.selectedFile.extension,currentFileContent:r.value,"onUpdate:currentFileContent":l[3]||(l[3]=e=>r.value=e),saveContent:u.value,"onUpdate:saveContent":l[4]||(l[4]=e=>u.value=e)},null,8,["originalFileContent","extension","currentFileContent","saveContent"]))])),_:1})])),_:1})])),_:1},8,["modelValue"])])}}}),cl=ul,dl=cl;x()(ul,"components",{QDialog:pe.Z,QCard:ge.Z,QCardSection:fe.Z,QBtn:$.Z,QSeparator:ve.Z});const ml=(0,t.aZ)({__name:"FileManagerToolbarBtnEditCode",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),o=(0,L.iH)(300),i=(0,L.iH)(!1);function n(){o.value++,i.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(dl,{showDialogEditCode:i.value,"onUpdate:showDialogEditCode":l[0]||(l[0]=e=>i.value=e),selectedFile:a.value,key:o.value},null,8,["showDialogEditCode","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-code",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditCode.btnEditCode")),1)])),_:1})])),_:1},8,["disable"])])}}}),pl=ml,gl=pl;x()(ml,"components",{QBtn:$.Z,QTooltip:R.Z});const vl=(0,t.aZ)({__name:"FileManagerSelectTreeView",emits:["update:selectedPath"],setup(e,{emit:l}){const a=k(),o=(0,L.iH)(0),i=(0,L.iH)([]),n=(0,L.iH)([]),s=(0,L.iH)("/");function r(e){if(void 0===e||null===e)return;const l=new A.Z;(0,re.Q)(),l.getCurrentPath(e).then((l=>{n.value=l.data.body,"/"===e?u(l.data.body):c(i.value,e,l.data.body),o.value++})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{(0,re.Z)()}),500)}))}function u(e){i.value=[],i.value.push({label:"/",path:"/",icon:"sym_s_home",iconColor:"grey-7",children:[]}),e.forEach((e=>{"directory"===e.mimeType&&i.value[0].children.push({label:e.name,path:e.path,icon:"sym_s_folder",iconColor:"yellow-9",children:[]})}))}function c(e,l,a){e.forEach((e=>{if(e.path===l)return e.icon="sym_s_folder_open",e.children=[],void a.forEach((l=>{"directory"===l.mimeType&&e.children.push({label:l.name,path:l.path,icon:".trash"===l.name?"sym_s_delete":"sym_s_folder",iconColor:".trash"===l.name?"grey-8":"yellow-9",children:[]})}));c(e.children,l,a)}))}return(0,t.wF)((()=>{i.value=a.getPathsTreeView,r(s.value)})),(0,t.YP)(s,(e=>{l("update:selectedPath",e),r(e)})),(e,l)=>{const a=(0,t.up)("q-tree");return(0,t.wg)(),(0,t.j4)(a,{key:o.value,nodes:i.value,selected:s.value,"onUpdate:selected":l[0]||(l[0]=e=>s.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"])}}});var fl=a(84749);const wl=vl,bl=wl;x()(vl,"components",{QTree:fl.Z});const hl={class:"flex justify-between items-center"},yl={key:0},_l={key:0,class:"title-dialog"},Fl={key:1,class:"title-dialog"},Dl={class:"flex text-subtitle"},Tl={key:1,class:"title-dialog"},Cl={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},xl=(0,t.aZ)({__name:"FileManagerDialogMove",props:{showDialogMove:{type:Boolean}},emits:["update:showDialogMove"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogMove),s=(0,L.iH)("/"),r=(0,L.iH)(0),u=(0,t.Fl)((()=>i.getSelectedPathOrActiveRow)),c=(0,t.Fl)((()=>i.getListSelectedPaths)),d=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function m(){(0,re.Q)();const e=new A.Z;let l=[];l.push(u.value.path),c.value.length>=1&&(l=[],c.value.forEach((e=>{l.push(e.path)}))),e.updateFile({sourcePaths:l,destinationPath:s.value}).then((e=>{if(e.data.body.filePathsSuccessfullyUpdated.length>0){const l=e.data.body.filePathsSuccessfullyUpdated;l.forEach((e=>{(0,se.LX)(`${o("fileManagerDialogMove.msgMoveOneFileSuccess",{fileName:e})}`)}))}if(e.data.body.failedPathsWithReason.length>0){const l=e.data.body.failedPathsWithReason;l.forEach((e=>{(0,se.c0)({msg:`${o("fileManagerDialogMove.msgMoveOneFileError",{fileName:e.filePath})}`,type:"negative",position:"bottom"})}))}n.value=!1,d.value++})).catch((e=>{console.error(e);const a=1===l.length?`${o("fileManagerDialogMove.msgMoveOneFileError",{fileName:u.value.name})}`:`${o("fileManagerDialogMove.msgMoveMultiFileModelsError",{count:l.length})}`;(0,se.s9)(e.response.data,a)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogMove),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogMove",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-card-actions"),p=(0,t.up)("q-card"),g=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(g,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",hl,[c.value.length<=1?((0,t.wg)(),(0,t.iD)("div",yl,["directory"===u.value.mimeType?((0,t.wg)(),(0,t.iD)("div",_l,(0,q.zw)(e.$t("fileManagerDialogMove.titleOneDir",{dirName:u.value.name})),1)):((0,t.wg)(),(0,t.iD)("div",Fl,(0,q.zw)(e.$t("fileManagerDialogMove.titleOneFile",{fileName:u.value.name})),1)),(0,t._)("div",Dl,(0,q.zw)(u.value.path),1)])):((0,t.wg)(),(0,t.iD)("div",Tl,(0,q.zw)(e.$t("fileManagerDialogMove.titleMultiFileModel",{count:c.value.length})),1)),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",Cl,(0,q.zw)(e.$t("fileManagerDialogMove.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogMove.inputMoveTo"),icon:"sym_s_folder_open",value:s.value,readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(d,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogMove.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-arrows-up-down-left-right",label:e.$t("fileManagerDialogMove.btnMoveFile"),disable:!s.value,onClick:l[3]||(l[3]=e=>m())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ml=xl,Zl=Ml;x()(xl,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Wl=(0,t.aZ)({__name:"FileManagerToolbarBtnMove",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),n=(0,t.Fl)((()=>l.getListSelectedPaths));function s(){a.value++,o.value=!0}return(e,l)=>{const r=(0,t.up)("q-tooltip"),u=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Zl,{showDialogMove:o.value,"onUpdate:showDialogMove":l[0]||(l[0]=e=>o.value=e),key:a.value},null,8,["showDialogMove"])),(0,t.Wm)(u,{icon:"fas fa-truck-arrow-right",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>s())},{default:(0,t.w5)((()=>[0===n.value.length?((0,t.wg)(),(0,t.j4)(r,{key:0,class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===i.value.mimeType?e.$t("fileManagerToolbarBtnMove.btnMoveDir"):e.$t("fileManagerToolbarBtnMove.btnMoveFile")),1)])),_:1})):((0,t.wg)(),(0,t.j4)(r,{key:1,class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnMove.btnMoveFiles")),1)])),_:1}))])),_:1},8,["disable"])])}}}),ql=Wl,Pl=ql;x()(Wl,"components",{QBtn:$.Z,QTooltip:R.Z});const kl=(0,t.aZ)({__name:"FileManagerToolbarBtnDuplicateFile",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)}),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){(0,re.Q)();const e=new A.Z;e.copyFile({sourcePath:i.value.path,destinationPath:i.value.path}).then((()=>{(0,se.LX)(`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileSuccess",{fileName:i.value.name})}`),o.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileError",{fileName:i.value.name})}`)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-tooltip"),o=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(o,{icon:"sym_s_copy_all",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDuplicateFile.btnDuplicateFile")),1)])),_:1})])),_:1},8,["disable"])])}}}),Ql=kl,$l=Ql;x()(kl,"components",{QBtn:$.Z,QTooltip:R.Z});const Rl={class:"flex justify-between items-center"},zl={class:"title-dialog"},Bl={class:"flex text-subtitle"},El={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},Sl=(0,t.aZ)({__name:"FileManagerDialogCopy",props:{selectedFile:{},showDialogCopy:{type:Boolean}},emits:["update:showDialogCopy"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogCopy),s=(0,L.iH)(""),r=(0,L.iH)(0),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;e.copyFile({sourcePath:a.selectedFile.path,destinationPath:s.value+"/"+a.selectedFile.name}).then((()=>{(0,se.LX)(`${i("fileManagerDialogCopy.msgCopiedFileSuccess",{fileName:a.selectedFile.name})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogCopy.msgCopiedFileError",{fileName:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogCopy),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogCopy",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Rl,[(0,t._)("div",null,[(0,t._)("div",zl,(0,q.zw)(e.$t("fileManagerDialogCopy.titleDialog")),1),(0,t._)("div",Bl,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",El,(0,q.zw)(e.$t("fileManagerDialogCopy.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogCopy.copyTo"),icon:"sym_s_folder_open",value:s.value,"onUpdate:value":l[2]||(l[2]=e=>s.value=e),readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogCopy.btnCancel"),onClick:l[3]||(l[3]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-copy",label:e.$t("fileManagerDialogCopy.btnCopyFile"),disable:!s.value,onClick:l[4]||(l[4]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ul=Sl,Hl=Ul;x()(Sl,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Vl=(0,t.aZ)({__name:"FileManagerToolbarBtnCopy",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Hl,{showDialogCopy:o.value,"onUpdate:showDialogCopy":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogCopy","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-copy",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCopy.btnCopy")),1)])),_:1})])),_:1},8,["disable"])])}}}),jl=Vl,Al=jl;x()(Vl,"components",{QBtn:$.Z,QTooltip:R.Z});const Nl={class:"flex justify-between items-center"},Il={class:"title-dialog"},Ll=(0,t.aZ)({__name:"FileManagerDialogRenameFile",props:{selectedFile:{},showDialogRename:{type:Boolean}},emits:["update:showDialogRename"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogRename),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,t.Fl)((()=>{const e=new RegExp(/^[\S ]{1,256}$/);return e.test(s.value)})),c=(0,t.Fl)((()=>"directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.fileName")}`:`${o("fileManagerDialogRenameFile.dirName")}`)),d=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function m(){n.value=!1}function p(){(0,re.Q)();const e=new A.Z;let l=r.value.split("/");l.pop(),e.updateFile({sourcePaths:[r.value],destinationPath:`${l.join("/")}/${s.value}`}).then((e=>{if(e.data.body.filePathsSuccessfullyUpdated.length>0){const e="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileSuccess",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirSuccess",{dirName:a.selectedFile.name})}`;(0,se.LX)(e)}if(e.data.body.failedPathsWithReason.length>0){const e="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileError",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirError",{dirName:a.selectedFile.name})}`;(0,se.c0)({msg:e,type:"negative",position:"bottom"})}d.value++,n.value=!1})).catch((e=>{console.error(e);const l="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileError",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirError",{dirName:a.selectedFile.name})}`;(0,se.s9)(e.response.data,l)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogRename),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogRename",e)})),(0,t.wF)((()=>{s.value=a.selectedFile.name,r.value=a.selectedFile.path})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-card-actions"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(v,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Nl,[(0,t._)("div",Il,(0,q.zw)("directory"!==e.selectedFile.mimeType?e.$t("fileManagerDialogRenameFile.titleRenameFile"):e.$t("fileManagerDialogRenameFile.titleRenameDir")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>m())})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerDialogRenameFile.absolutePath"),icon:"sym_s_account_tree",value:r.value,maxLength:"255",readonly:!0,disable:!0},null,8,["label","value"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:c.value,icon:"sym_s_description",value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"255",rules:[l=>""!==l&&null!==l||e.$t("fileManagerDialogRenameFile.fieldRequired"),()=>u.value||e.$t("fileManagerDialogRenameFile.onlyAlphaNumeric")]},null,8,["label","value","rules"])])),_:1}),(0,t.Wm)(d,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogRenameFile.btnCancel"),onClick:l[2]||(l[2]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_save",label:e.$t("fileManagerDialogRenameFile.btnSave"),disable:!u.value,onClick:l[3]||(l[3]=e=>p())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Yl=Ll,Kl=Yl;x()(Ll,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ol=(0,t.aZ)({__name:"FileManagerToolbarBtnRenameFile",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Kl,{showDialogRename:o.value,"onUpdate:showDialogRename":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogRename","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-edit",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===i.value.mimeType?e.$t("fileManagerToolbarBtnRenameFile.btnRenameDir"):e.$t("fileManagerToolbarBtnRenameFile.btnRenameFile")),1)])),_:1})])),_:1},8,["disable"])])}}}),Xl=Ol,Gl=Xl;x()(Ol,"components",{QBtn:$.Z,QTooltip:R.Z});const Jl={class:"text-subtitle text-bold",style:{"font-size":"16px"}},ea={class:"flex justify-between q-py-md"},la={class:"text-subtitle text-bold flex justify-center"},aa={class:"justify-center flex"},ta={class:"text-subtitle text-bold flex justify-center"},oa={class:"justify-center flex"},ia={class:"text-subtitle text-bold flex justify-center"},na={class:"justify-center flex"},sa=(0,t.aZ)({__name:"FileManagerEditPermission",props:{permissions:{}},emits:["update:updatePermissions"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=(0,L.iH)([{label:o("fileManagerEditPermission.read"),value:4},{label:o("fileManagerEditPermission.write"),value:2},{label:o("fileManagerEditPermission.execute"),value:1}]),n=(0,L.iH)([]),s=(0,L.iH)([]),r=(0,L.iH)([]),u=(0,t.Fl)((()=>`${m(n.value)}${m(s.value)}${m(r.value)}`)),c=(0,t.Fl)((()=>{const e=(0,ke.Z)();return e.dark.isActive?"bg-grey-8 flex justify-center items-center q-my-md":"bg-grey-4 flex justify-center items-center q-my-md"}));function d(e){let l=[];const a={0:[],1:[1],2:[2],3:[2,1],4:[4],5:[4,1],6:[4,2],7:[4,2,1]};for(let t in a)t===e.toString()&&(l=a[t]);return l}function m(e){let l=0;return 0===e.length||e.forEach((e=>{l+=e})),l}return(0,t.YP)(u,(e=>{l("update:updatePermissions",e)})),(0,t.wF)((()=>{n.value=d(parseInt(a.permissions.charAt(0))),s.value=d(parseInt(a.permissions.charAt(1))),r.value=d(parseInt(a.permissions.charAt(2)))})),(e,l)=>{const a=(0,t.up)("q-option-group");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t._)("div",Jl,(0,q.zw)(e.$t("fileManagerEditPermission.permissions")),1),(0,t._)("div",ea,[(0,t._)("div",null,[(0,t._)("label",la,(0,q.zw)(e.$t("fileManagerEditPermission.user")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e)},null,8,["options","modelValue"]),(0,t._)("div",aa,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(n.value)),3)])]),(0,t._)("div",null,[(0,t._)("label",ta,(0,q.zw)(e.$t("fileManagerEditPermission.group")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=e=>s.value=e)},null,8,["options","modelValue"]),(0,t._)("div",oa,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(s.value)),3)])]),(0,t._)("div",null,[(0,t._)("label",ia,(0,q.zw)(e.$t("fileManagerEditPermission.others")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=e=>r.value=e)},null,8,["options","modelValue"]),(0,t._)("div",na,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(r.value)),3)])])])])}}});var ra=a(2286);const ua=sa,ca=ua;x()(sa,"components",{QOptionGroup:ra.Z});const da={class:"flex justify-between items-center"},ma={class:"title-dialog"},pa={class:"text-subtitle"},ga=(0,t.aZ)({__name:"FileManagerDialogEditPermissions",props:{showDialogEditPermissions:{type:Boolean},selectedFile:{}},emits:["update:showDialogEditPermissions"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogEditPermissions),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,L.iH)(""),c=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function d(){n.value=!1}function m(){(0,re.Q)();const e=new A.Z;e.updateFile({sourcePaths:[u.value],permissions:r.value}).then((e=>{e.data.body.filePathsSuccessfullyUpdated.length>0&&(0,se.LX)(`${i("fileManagerDialogEditPermissions.msgEditPermissionsSuccess")}`),e.data.body.failedPathsWithReason.length>0&&(0,se.c0)({msg:`${i("fileManagerDialogEditPermissions.msgEditPermissionsError",{filename:a.selectedFile.name})}`,type:"negative",position:"bottom"}),c.value++,n.value=!1})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogEditPermissions.msgEditPermissionsError",{filename:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.wF)((()=>{s.value=a.selectedFile.name,r.value=a.selectedFile.permissions,u.value=a.selectedFile.path})),(0,t.YP)((()=>a.showDialogEditPermissions),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogEditPermissions",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),s=(0,t.up)("q-card-actions"),c=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",da,[(0,t._)("div",null,[(0,t._)("div",ma,(0,q.zw)(e.$t("fileManagerDialogEditPermissions.titleDialog")),1),(0,t._)("div",pa,(0,q.zw)(u.value),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>d())})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(ca,{permissions:r.value,updatePermissions:r.value,"onUpdate:updatePermissions":l[1]||(l[1]=e=>r.value=e)},null,8,["permissions","updatePermissions"])])),_:1}),(0,t.Wm)(s,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogEditPermissions.btnCancel"),onClick:l[2]||(l[2]=e=>d())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-save",label:e.$t("fileManagerDialogEditPermissions.btnSave"),onClick:l[3]||(l[3]=e=>m())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),va=ga,fa=va;x()(ga,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const wa=(0,t.aZ)({__name:"FileManagerToolbarBtnEditPermissions",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(fa,{showDialogEditPermissions:o.value,"onUpdate:showDialogEditPermissions":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditPermissions","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-person-military-pointing",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditPermissions.btnEditPermissions")),1)])),_:1})])),_:1},8,["disable"])])}}}),ba=wa,ha=ba;x()(wa,"components",{QBtn:$.Z,QTooltip:R.Z});const ya={class:"flex justify-between items-center"},_a={class:"title-dialog"},Fa={class:"flex text-subtitle"},Da={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},Ta=(0,t.aZ)({__name:"FileManagerDialogExtract",props:{selectedFile:{},showDialogExtract:{type:Boolean}},emits:["update:showDialogExtract"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogExtract),s=(0,L.iH)(""),r=(0,L.iH)(0),u=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;e.extractFile({sourcePath:a.selectedFile.path,destinationPath:s.value+"/"+a.selectedFile.name.replace("."+a.selectedFile.extension,"")}).then((()=>{(0,se.LX)(`${o("fileManagerDialogExtract.msgExtractFileSuccess",{filename:a.selectedFile.name})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${o("fileManagerDialogExtract.msgExtractFileError",{filename:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogExtract),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogExtract",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ya,[(0,t._)("div",null,[(0,t._)("div",_a,(0,q.zw)(e.$t("fileManagerDialogExtract.titleDialog")),1),(0,t._)("div",Fa,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",Da,(0,q.zw)(e.$t("fileManagerDialogExtract.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogExtract.inputExtractTo"),icon:"sym_s_folder_open",value:s.value,readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogExtract.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-file-zipper",label:e.$t("fileManagerDialogExtract.btnExtractFile"),disable:!s.value,onClick:l[3]||(l[3]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ca=Ta,xa=Ca;x()(Ta,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ma=(0,t.aZ)({__name:"FileManagerToolbarBtnExtract",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(xa,{showDialogExtract:o.value,"onUpdate:showDialogExtract":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogExtract","selectedFile"])),(0,t.Wm)(r,{disable:e.isDisabled,icon:"fas fa-file-zipper",color:"primary",round:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnExtract.btnExtract")),1)])),_:1})])),_:1},8,["disable"])])}}}),Za=Ma,Wa=Za;x()(Ma,"components",{QBtn:$.Z,QTooltip:R.Z});var qa=a(94629);const Pa={class:"flex justify-between items-center"},ka={key:0},Qa={class:"title-dialog"},$a={class:"flex text-subtitle"},Ra={key:1,class:"title-dialog"},za={class:"shadow-1 file-manager-box-selected-path disabled"},Ba={class:"flex justify-start items-center"},Ea={class:"q-pa-md text-grey-7",style:{"font-size":"12px"}},Sa={key:0,style:{"padding-left":"36px"}},Ua={key:1,style:{"padding-left":"36px"}},Ha=(0,t.aZ)({__name:"FileManagerDialogCompress",props:{selectedFile:{},listSelectedPaths:{},showDialogCompress:{type:Boolean}},emits:["update:showDialogCompress"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogCompress),s=(0,L.iH)(""),r=(0,L.iH)("zip"),u=(0,t.Fl)((()=>{const e=new RegExp(/^\w{1,256}$/);return e.test(s.value)})),c=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),d=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function m(){(0,re.Q)();const e=new A.Z;let l=[];l.push(a.selectedFile.path),a.listSelectedPaths.length>0&&(l=[],a.listSelectedPaths.forEach((e=>{l.push(e.path)}))),e.compressFile({sourcePaths:l,destinationPath:`${c.value}/${s.value}.${r.value}`,compressionType:r.value}).then((()=>{(0,se.LX)(`${i("fileManagerDialogCompress.msgCompressedFileSuccess",{compressedFileName:`${s.value}.${r.value}`})}`),n.value=!1,d.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogCompress.msgCompressedFileError",{compressedFileName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogCompress),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogCompress",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-icon"),p=(0,t.up)("q-card-actions"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(v,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",class:"dialog-card-bg",style:{width:"750px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Pa,[e.listSelectedPaths.length<=1?((0,t.wg)(),(0,t.iD)("div",ka,[(0,t._)("div",Qa,(0,q.zw)(e.$t("fileManagerDialogCompress.simpleTitleDialog")),1),(0,t._)("div",$a,(0,q.zw)(e.selectedFile.path),1)])):((0,t.wg)(),(0,t.iD)("div",Ra,(0,q.zw)(e.$t("fileManagerDialogCompress.countTitleDialog",{countSelectedPaths:e.listSelectedPaths.length})),1)),(0,t.Wm)(a,{class:"float-right",icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerDialogCompress.inputName"),icon:"fas fa-file-zipper",prefix:`${c.value}/`,value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l||e.$t("fileManagerDialogCompress.fieldRequired"),()=>u.value||e.$t("fileManagerDialogCompress.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(qa.Z,{icon:"fas fa-file",label:e.$t("fileManagerDialogCompress.extensionFile"),options:["zip","tgz"],selected:r.value,"onUpdate:selected":l[2]||(l[2]=e=>r.value=e)},null,8,["label","selected"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",za,[(0,t._)("div",Ba,[(0,t.Wm)(d,{name:"fas fa-clipboard-check",size:"24px",color:"grey-8"}),(0,t._)("div",Ea,(0,q.zw)(e.$t("fileManagerDialogCompress.selectedPaths")),1)]),e.listSelectedPaths.length>0?((0,t.wg)(),(0,t.iD)("div",Sa,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.listSelectedPaths,((e,l)=>((0,t.wg)(),(0,t.iD)("p",{key:l},(0,q.zw)(e.name),1)))),128))])):((0,t.wg)(),(0,t.iD)("div",Ua,[(0,t._)("p",null,(0,q.zw)(e.selectedFile.name),1)]))])])),_:1}),(0,t.Wm)(p,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogCompress.btnCancel"),onClick:l[3]||(l[3]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-file-zipper",label:e.$t("fileManagerDialogCompress.btnCompressFile"),disable:!c.value||!u.value,onClick:l[4]||(l[4]=e=>m())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Va=Ha,ja=Va;x()(Ha,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QIcon:tl.Z,QCardActions:we.Z});const Aa=(0,t.aZ)({__name:"FileManagerToolbarBtnCompress",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),n=(0,t.Fl)((()=>l.getListSelectedPaths));function s(){a.value++,o.value=!0}return(e,l)=>{const r=(0,t.up)("q-tooltip"),u=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ja,{showDialogCompress:o.value,"onUpdate:showDialogCompress":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,listSelectedPaths:n.value,key:a.value},null,8,["showDialogCompress","selectedFile","listSelectedPaths"])),(0,t.Wm)(u,{icon:"far fa-file-zipper",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>s())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCompress.btnCompress")),1)])),_:1})])),_:1},8,["disable"])])}}}),Na=Aa,Ia=Na;x()(Aa,"components",{QBtn:$.Z,QTooltip:R.Z});const La=(0,t.aZ)({__name:"FileManagerToolbarBtnRemove",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,L.iH)(!1),i=(0,L.iH)(400),n=(0,L.iH)(""),s=(0,L.iH)(""),r=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),u=(0,t.Fl)((()=>l.getListSelectedPaths)),c=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function d(){i.value++,s.value=g(),o.value=!0}function m(){o.value=!1}function p(){const e=u.value.length>0?u.value:[r.value];(0,re.Q)();const t=new A.Z;let n=[];e.forEach((e=>{n.push(e.path)})),t.removeFile({sourcePaths:n}).then((()=>{const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath),t=e?`${a("fileManagerToolbarBtnRemove.msgRemovePermanentSuccess")}`:`${a("fileManagerToolbarBtnRemove.msgRemoveSuccess")}`;(0,se.LX)(t),o.value=!1,i.value++,c.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnRemove.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}function g(){const e="/app/.trash"===l.getCurrentAbsolutePath;return e?u.value.length>1?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedMultiFileModelsTrash",{countFiles:u.value.length})}`:1===u.value.length?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedOneFileTrash")}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFileTrash",{fileName:r.value.name,mimeType:"directory"===r.value.mimeType?"directory":"file"})}`:u.value.length>1?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedMultiFileModels",{countFiles:u.value.length})}`:1===u.value.length?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedOneFile")}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFile",{fileName:r.value.name,mimeType:"directory"===r.value.mimeType?"directory":"file"})}`}return(0,t.YP)(o,(e=>{!1!==e&&(n.value="directory"===r.value.mimeType?`${a("fileManagerToolbarBtnRemove.titleDialogRemoveDir")}`:`${a("fileManagerToolbarBtnRemove.titleDialogRemoveFile")}`)})),(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:o.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>o.value=e),titleDialog:n.value,messageToDelete:s.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnConfirm"),color:"negative",onClick:l[1]||(l[1]=e=>p())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete"]),(0,t._)("div",null,[(0,t.Wm)(i,{icon:"sym_s_delete",color:"negative",round:"",disable:e.isDisabled,onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-negative",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnRemove.btnRemoveFile")),1)])),_:1})])),_:1},8,["disable"])])],64)}}}),Ya=La,Ka=Ya;x()(La,"components",{QBtn:$.Z,QTooltip:R.Z});const Oa={class:"flex justify-between items-center"},Xa={class:"title-dialog"},Ga=(0,t.aZ)({__name:"FileManagerToolbarDialogNewFile",props:{showDialogNewFile:{type:Boolean}},emits:["update:showDialogNewFile"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogNewFile),s=(0,L.iH)(""),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)}),c=(0,t.Fl)((()=>{const e=new RegExp(/^[\w\s-.]{1,255}$/);return e.test(s.value)}));function d(){(0,re.Q)();const e=new A.Z;e.createFile({filePath:`${r.value}/${s.value}`,mimeType:"file"}).then((()=>{(0,se.LX)(`${i("fileManagerToolbarDialogNewFile.msgCreateFileSuccess",{fileName:s.value})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogNewFile.msgCreateFileError",{fileName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogNewFile),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogNewFile",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),m=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{flat:"",class:"dialog-card-bg",style:{width:"600px","max-width":"70vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Oa,[(0,t._)("div",Xa,(0,q.zw)(e.$t("fileManagerToolbarDialogNewFile.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerToolbarDialogNewFile.labelInputNameFile"),prefix:`${r.value}/`,icon:"sym_s_description",value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l&&null!==l||e.$t("fileManagerToolbarDialogNewFile.fieldRequired"),()=>c.value||e.$t("fileManagerToolbarDialogNewFile.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerToolbarDialogNewFile.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_note_add",label:e.$t("fileManagerToolbarDialogNewFile.btnCreateFile"),disable:!r.value||!c.value,onClick:l[3]||(l[3]=e=>d())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ja=Ga,et=Ja;x()(Ga,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const lt=(0,t.aZ)({__name:"FileManagerToolbarBtnNewFile",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);function o(){l.value=!0,a.value++}return(e,i)=>{const n=(0,t.up)("q-tooltip"),s=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(et,{showDialogNewFile:l.value,"onUpdate:showDialogNewFile":i[0]||(i[0]=e=>l.value=e),key:a.value},null,8,["showDialogNewFile"])),(0,t.Wm)(s,{icon:"sym_s_note_add",color:"primary",round:"",onClick:i[1]||(i[1]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnNewFile.btnNewFile")),1)])),_:1})])),_:1})])}}}),at=lt,tt=at;x()(lt,"components",{QBtn:$.Z,QTooltip:R.Z});var ot=a(85027);const it=[null,"","php","html","css","shell","js","ts","xhtml","scss","sass","sh","txt","md","xml","go","log"],nt={class:"flex justify-start items-center"},st={class:"flex justify-end items-center"},rt=(0,t.aZ)({__name:"FileManagerToolbar",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getCurrentAbsolutePath)),o=(0,t.Fl)((()=>l.getActiveRowTable)),i=(0,t.Fl)((()=>l.getListSelectedPaths)),n=(0,t.Fl)({get:()=>l.getSelectedPathOrActiveRow,set:e=>{l.setSelectedPathOrActiveRow(e)}}),s=(0,t.Fl)((()=>1===i.value.length?(n.value=i.value[0],n.value):(n.value=o.value,n.value))),r=(0,t.Fl)((()=>"/"===a.value)),u=(0,t.Fl)((()=>"/app/.trash"===a.value)),c=(0,t.Fl)((()=>!(i.value.length<=1)||("directory"===s.value.mimeType||""===s.value.path))),d=(0,t.Fl)((()=>{const e=512e4;return i.value.length>1||"directory"===s.value.mimeType||s.value.size>e||""===s.value.path||!it.includes(s.value.extension)})),m=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length)),p=(0,t.Fl)((()=>""===s.value.path||"directory"===s.value.mimeType)),g=(0,t.Fl)((()=>""===s.value.path||"directory"===s.value.mimeType)),v=(0,t.Fl)((()=>""===s.value.path)),f=(0,t.Fl)((()=>""===s.value.path)),w=(0,t.Fl)((()=>""===s.value.path)),b=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length)),h=(0,t.Fl)((()=>ot.g.includes(s.value.extension))),y=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length));return(e,l)=>{const a=(0,t.up)("q-toolbar");return(0,t.wg)(),(0,t.j4)(a,{class:"flex justify-between file-manager-toolbar-bg"},{default:(0,t.w5)((()=>[(0,t._)("div",nt,[(0,t.Wm)(B,{class:"q-mr-sm"}),(0,t.Wm)(U,{isDisabled:r.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(j,{class:"q-ma-sm"}),(0,t.Wm)(Fe,{class:"q-ma-sm"}),(0,t.Wm)(qe,{class:"q-ma-sm"}),(0,t.Wm)(tt,{class:"q-ma-sm"}),u.value?((0,t.wg)(),(0,t.j4)(Re,{key:0,class:"q-ma-sm"})):((0,t.wg)(),(0,t.j4)(Ee,{key:1,class:"q-ma-sm"}))]),(0,t._)("div",st,[(0,t.Wm)(He,{isDisabled:c.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(gl,{isDisabled:d.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Pl,{isDisabled:m.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)($l,{isDisabled:p.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Al,{isDisabled:g.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Gl,{isDisabled:v.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(ha,{isDisabled:f.value,class:"q-ma-sm"},null,8,["isDisabled"]),h.value?((0,t.wg)(),(0,t.j4)(Wa,{key:0,isDisabled:w.value,class:"q-ma-sm"},null,8,["isDisabled"])):((0,t.wg)(),(0,t.j4)(Ia,{key:1,isDisabled:b.value,class:"q-ma-sm"},null,8,["isDisabled"])),(0,t.Wm)(Ka,{isDisabled:y.value,class:"q-ma-sm"},null,8,["isDisabled"])])])),_:1})}}});var ut=a(51663);const ct=rt,dt=ct;x()(rt,"components",{QToolbar:ut.Z});const mt=(0,t.aZ)({__name:"FileManagerSideBarTreeView",setup(e){const l=k(),a=(0,L.iH)(0),o=(0,t.Fl)({get:()=>l.getActiveRowTable,set:e=>{l.setActiveRowTable(e)}}),i=(0,t.Fl)({get:()=>l.getPathsTreeView,set:e=>{l.setPathsTreeView(e)}}),n=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>{l.setKeyTreeView(e)}}),s=(0,t.Fl)({get:()=>l.getCurrentAbsolutePath,set:e=>{l.setCurrentAbsolutePath(e)}}),r=(0,t.Fl)({get:()=>l.getSelectedPath,set:e=>{l.setSelectedPath(e)}}),u=(0,t.Fl)({get:()=>l.getFilesCurrentPath,set:e=>{l.setFilesCurrentPath(e)}});function c(e){if(void 0===e||null===e)return;const t=new A.Z;"/"===e?l.setIsLoadingHomeDir(!0):(0,re.Q)(),t.getCurrentPath(e).then((l=>{u.value=l.data.body,"/"===e?d(l.data.body):m(i.value,e,l.data.body),a.value++})).catch((e=>{console.error(e)})).finally((()=>{o.value={name:"",path:"",mimeType:"",extension:"",permissions:"",size:0,group:"",gid:0,owner:"",uid:0,updatedAt:0},setTimeout((()=>{l.setIsLoadingHomeDir(!1),(0,re.Z)()}),500)}))}function d(e){i.value=[],i.value.push({label:"/",path:"/",icon:"sym_s_home",iconColor:"grey-7",children:[]}),e.forEach((e=>{"directory"===e.mimeType&&i.value[0].children.push({label:e.name,path:e.path,icon:"sym_s_folder",iconColor:"yellow-9",children:[]})}))}function m(e,l,a){e.forEach((e=>{if(e.path===l)return e.icon="sym_s_folder_open",e.children=[],void a.forEach((l=>{"directory"===l.mimeType&&e.children.push({label:l.name,path:l.path,icon:".trash"===l.name?"sym_s_delete":"sym_s_folder",iconColor:".trash"===l.name?"grey-8":"yellow-9",children:[]})}));m(e.children,l,a)}))}return(0,t.YP)(s,(e=>{c(e)})),(0,t.YP)(r,(e=>{s.value=e.path})),(0,t.YP)(n,(()=>{setTimeout((()=>{c(s.value)}),200)})),(0,t.wF)((()=>{s.value="/",c(s.value)})),(e,l)=>{const o=(0,t.up)("q-tree");return(0,t.wg)(),(0,t.j4)(o,{key:a.value,nodes:i.value,selected:s.value,"onUpdate:selected":l[0]||(l[0]=e=>s.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"])}}}),pt=mt,gt=pt;x()(mt,"components",{QTree:fl.Z});const vt=(0,t.aZ)({__name:"FileManagerTableMenuRemove",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,L.iH)(!1),i=(0,L.iH)(400),n=(0,L.iH)(""),s=(0,L.iH)(""),r=(0,L.iH)(!1),u=(0,t.Fl)((()=>l.getActiveRowTable)),c=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function d(){i.value++,s.value=g(),o.value=!0}function m(){o.value=!1}function p(e){(0,re.Q)();const t=new A.Z;let n=[];e.forEach((e=>{n.push(e.path)})),t.removeFile({sourcePaths:n}).then((()=>{const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath),t=e?`${a("fileManagerToolbarBtnRemove.msgRemovePermanentSuccess")}`:`${a("fileManagerToolbarBtnRemove.msgRemoveSuccess")}`;(0,se.LX)(t),o.value=!1,i.value++,c.value++,o.value=!1,r.value=!1})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnRemove.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}function g(){const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath);return e?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFileTrash",{fileName:u.value.name,mimeType:"directory"===u.value.mimeType?"directory":"file"})}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFile",{fileName:u.value.name,mimeType:"directory"===u.value.mimeType?"directory":"file"})}`}return(0,t.YP)(r,(e=>{!0===e&&p([u.value])})),(0,t.YP)(o,(e=>{!1!==e&&(n.value="directory"===u.value.mimeType?`${a("fileManagerToolbarBtnRemove.btnRemoveDir")}`:`${a("fileManagerToolbarBtnRemove.btnRemoveFile")}`)})),(e,l)=>{const a=(0,t.up)("q-icon"),i=(0,t.up)("q-item-section"),r=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:o.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>o.value=e),titleDialog:n.value,messageToDelete:s.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:n.value,color:"negative",onClick:l[1]||(l[1]=e=>d())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete"]),(0,t._)("div",null,[(0,t.Wm)(r,{clickable:"",onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"sym_s_delete",size:"16px"})])),_:1}),(0,t.Wm)(i,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===u.value.mimeType?e.$t("fileManagerToolbarBtnRemove.btnRemoveDir"):e.$t("fileManagerToolbarBtnRemove.btnRemoveFile")),1)])),_:1})])),_:1})])],64)}}});var ft=a(490),wt=a(76749);const bt=vt,ht=bt;x()(vt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const yt=(0,t.aZ)({__name:"FileManagerTableMenuDownload",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getActiveRowTable));function o(){if(void 0===a.value.path)return;(0,re.Q)();const e=new A.Z;e.getFileDownloadBlob(a.value).then((e=>{let l=document.createElement("a");document.body.appendChild(l),l.style="display: none";const t=window.URL.createObjectURL(e);l.href=t,l.download=a.value.name,l.click(),window.URL.revokeObjectURL(t)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,e.msg)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-icon"),i=(0,t.up)("q-item-section"),n=(0,t.up)("q-item"),s=(0,t.Q2)("close-popup");return(0,t.wy)(((0,t.wg)(),(0,t.j4)(n,{clickable:"",onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"fas fa-file-download",size:"16px"})])),_:1}),(0,t.Wm)(i,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDownload.btnDownload")),1)])),_:1})])),_:1})),[[s]])}}});var _t=a(62146);const Ft=yt,Dt=Ft;x()(yt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z}),x()(yt,"directives",{ClosePopup:_t.Z});const Tt=(0,t.aZ)({__name:"FileManagerTableMenuRenameFile",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Kl,{showDialogRename:o.value,"onUpdate:showDialogRename":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogRename","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-edit",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"!==i.value.mimeType?e.$t("fileManagerToolbarBtnRenameFile.btnRenameFile"):e.$t("fileManagerToolbarBtnRenameFile.btnRenameDir")),1)])),_:1})])),_:1})])}}}),Ct=Tt,xt=Ct;x()(Tt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Mt=(0,t.aZ)({__name:"FileManagerTableMenuDuplicateFile",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)((()=>l.getActiveRowTable)),i=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function n(){(0,re.Q)();const e=new A.Z,l=o.value.path.replace("."+o.value.extension,""),t=l+Date.now()+"."+o.value.extension;e.copyFile({sourcePath:o.value.path,destinationPath:t}).then((()=>{(0,se.LX)(`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileSuccess",{fileName:o.value.name})}`),i.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileError",{fileName:o.value.name})}`)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-icon"),o=(0,t.up)("q-item-section"),i=(0,t.up)("q-item"),s=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.wy)(((0,t.wg)(),(0,t.j4)(i,{clickable:"",onClick:l[0]||(l[0]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"sym_s_copy_all",size:"16px"})])),_:1}),(0,t.Wm)(o,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDuplicateFile.btnDuplicateFile")),1)])),_:1})])),_:1})),[[s]])])}}}),Zt=Mt,Wt=Zt;x()(Mt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z}),x()(Mt,"directives",{ClosePopup:_t.Z});const qt=(0,t.aZ)({__name:"FileManagerTableMenuEditCode",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(dl,{showDialogEditCode:o.value,"onUpdate:showDialogEditCode":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditCode","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-code",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditCode.btnEditCode")),1)])),_:1})])),_:1})])}}}),Pt=qt,kt=Pt;x()(qt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Qt=(0,t.aZ)({__name:"FileManagerTableMenuCopy",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Hl,{showDialogCopy:o.value,"onUpdate:showDialogCopy":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogCopy","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-copy",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCopy.btnCopy")),1)])),_:1})])),_:1})])}}}),$t=Qt,Rt=$t;x()(Qt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const zt=(0,t.aZ)({__name:"FileManagerTableMenuMove",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Zl,{showDialogMove:o.value,"onUpdate:showDialogMove":l[0]||(l[0]=e=>o.value=e),key:a.value},null,8,["showDialogMove"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-truck-arrow-right",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"!==i.value.mimeType?e.$t("fileManagerToolbarBtnMove.btnMoveFile"):e.$t("fileManagerToolbarBtnMove.btnMoveDir")),1)])),_:1})])),_:1})])}}}),Bt=zt,Et=Bt;x()(zt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const St=(0,t.aZ)({__name:"FileManagerTableMenuExtract",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(xa,{showDialogExtract:o.value,"onUpdate:showDialogExtract":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogExtract","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-file-zipper",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnExtract.btnExtract")),1)])),_:1})])),_:1})])}}}),Ut=St,Ht=Ut;x()(St,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Vt=(0,t.aZ)({__name:"FileManagerTableMenuCompress",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ja,{showDialogCompress:o.value,"onUpdate:showDialogCompress":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,listSelectedPaths:[i.value],key:a.value},null,8,["showDialogCompress","selectedFile","listSelectedPaths"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"far fa-file-zipper",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCompress.btnCompress")),1)])),_:1})])),_:1})])}}}),jt=Vt,At=jt;x()(Vt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Nt=(0,t.aZ)({__name:"FileManagerTableMenuEditPermissions",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(fa,{showDialogEditPermissions:o.value,"onUpdate:showDialogEditPermissions":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditPermissions","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-person-military-pointing",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditPermissions.btnEditPermissions")),1)])),_:1})])),_:1})])}}}),It=Nt,Lt=It;x()(Nt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Yt=(0,t.aZ)({__name:"FileManagerTableMenu",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getActiveRowTable)),o=(0,t.Fl)((()=>""!==a.value.path&&"directory"!==a.value.mimeType));function i(){const e=5120;return ot.g.includes(a.value.extension)&&a.value.size<=e}function n(){const e=512e4;return it.includes(a.value.extension)&&a.value.size<=e&&"directory"!==a.value.mimeType}return(e,l)=>{const a=(0,t.up)("q-list"),s=(0,t.up)("q-menu");return(0,t.wg)(),(0,t.j4)(s,{"touch-position":"","context-menu":""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{dense:"",style:{"min-width":"80px"},class:"file-manager-menu"},{default:(0,t.w5)((()=>[o.value?((0,t.wg)(),(0,t.j4)(Dt,{key:0})):(0,t.kq)("",!0),n()?((0,t.wg)(),(0,t.j4)(kt,{key:1})):(0,t.kq)("",!0),(0,t.Wm)(Et),o.value?((0,t.wg)(),(0,t.j4)(Wt,{key:2})):(0,t.kq)("",!0),o.value?((0,t.wg)(),(0,t.j4)(Rt,{key:3})):(0,t.kq)("",!0),(0,t.Wm)(xt),(0,t.Wm)(Lt),i()?((0,t.wg)(),(0,t.j4)(Ht,{key:4})):((0,t.wg)(),(0,t.j4)(At,{key:5})),(0,t.Wm)(ht)])),_:1})])),_:1})}}});var Kt=a(56362),Ot=a(13246);const Xt=Yt,Gt=Xt;x()(Yt,"components",{QMenu:Kt.Z,QList:Ot.Z,QItem:ft.Z});var Jt=a(50168);function eo(e){const l=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=0;const t=e<0,o=Math.abs(e);let i=o;while(i>=1024&&ab(e.path),headerClasses:"bg-primary text-white",style:"width:50%",sortable:!0},{name:"size",label:a("fileManagerTable.colSize"),align:"center",field:"size",format:e=>eo(e),sortable:!0},{name:"mimeType",label:a("fileManagerTable.colType"),align:"center",field:"mimeType",classes:"hidden",headerClasses:"hidden",sortable:!0},{name:"updatedAt",label:a("fileManagerTable.colLastModifiedDate"),align:"center",field:"updatedAt",format:e=>(0,Jt.Z)({epoch:e,onlyDate:!1}),sortable:!0},{name:"permissions",label:a("fileManagerTable.colPermission"),align:"center",field:"permissions"}]),u=(0,t.Fl)({get:()=>l.getActiveRowTable,set:e=>{l.setActiveRowTable(e)}}),c=(0,t.Fl)((()=>l.getFilesCurrentPath)),d=(0,t.Fl)({get:()=>l.getListSelectedPaths,set:e=>{l.setListSelectedPaths(e)}}),m=(0,t.Fl)({get:()=>l.getSelectedPath,set:e=>{l.setSelectedPath(e)}}),p=(0,t.Fl)({get:()=>l.getIsSelectedAllPaths,set:e=>{l.setIsSelectedAllPaths(e)}}),g=(0,t.Fl)((()=>Math.ceil(c.value.length/s.value.rowsPerPage)));function v(e){let l="sym_s_description";const a={dir:"sym_s_folder",".trash":"sym_s_delete",html:"sym_s_html",php:"sym_s_php",js:"sym_s_javascript",css:"sym_s_css",png:"sym_s_image",jpg:"sym_s_image",zip:"sym_s_folder_zip",rar:"sym_s_folder_zip",gzip:"sym_s_folder_zip","tar.gz":"sym_s_folder_zip",tar:"sym_s_folder_zip"};for(let t in a)if(e.match(t)){l=a[t];break}return l}function f(e,l,a){u.value=e,n.value=a,d.value=[]}function w(e){return n.value===e?"bg-row-active":"bg-transparent"}function b(e){return n.value===e?"bg-transparent":"component-table-td-main"}function h(){return 0===d.value.length?"":1===d.value.length?a("fileManagerTable.oneFileSelected",{total:c.value.length}):a("fileManagerTable.multiFileModelsSelected",{quantity:d.value.length,total:c.value.length})}function y(e,l){"directory"===e&&(m.value=l)}return(0,t.YP)(p,(e=>{d.value=!0===e?c.value:[]})),(0,t.YP)(d,(e=>{e.length>0&&(n.value="",u.value={name:"",path:"",mimeType:"",extension:"",permissions:"",size:0,gid:0,group:"",uid:0,owner:"",updatedAt:0})})),(e,l)=>{const a=(0,t.up)("q-icon"),n=(0,t.up)("q-input"),u=(0,t.up)("q-space"),m=(0,t.up)("q-checkbox"),b=(0,t.up)("q-th"),_=(0,t.up)("q-tr"),F=(0,t.up)("q-td"),D=(0,t.up)("q-table"),T=(0,t.up)("q-pagination");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(D,{flat:"",bordered:"","hide-pagination":"","row-key":"path",selection:"multiple",color:"primary","no-data-label":e.$t("fileManagerTable.notFoundFiles"),"no-results-label":e.$t("fileManagerTable.notFoundFiles"),rows:c.value,columns:r.value,selected:d.value,"onUpdate:selected":l[4]||(l[4]=e=>d.value=e),"selected-rows-label":h,pagination:s.value,"onUpdate:pagination":l[5]||(l[5]=e=>s.value=e),filter:i.value},{top:(0,t.w5)((()=>[(0,t.Wm)(n,{rounded:"",outlined:"",debounce:"300",color:"primary",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=e=>i.value=e),"stack-label":"",label:e.$t("fileManagerTable.labelInputSearch"),placeholder:e.$t("fileManagerTable.placeholderInputSearch"),style:{width:"300px"},maxlength:"32"},{prepend:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"fas fa-search"})])),_:1},8,["modelValue","label","placeholder"]),(0,t.Wm)(u),(0,t.Wm)(qa.Z,{options:["10","25","50","100"],label:e.$t("fileManagerTable.labelSelectRowsViews"),style:{width:"250px"},selected:s.value.rowsPerPage,"onUpdate:selected":l[1]||(l[1]=e=>s.value.rowsPerPage=e)},null,8,["label","selected"])])),header:(0,t.w5)((a=>[(0,t.Wm)(_,{props:a,class:"file-manager-table-th-bg"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{style:{width:"25px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:p.value,"onUpdate:modelValue":l[2]||(l[2]=e=>p.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(b,{style:{width:"25px"}}),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(b,{key:e.name,props:a,style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.label),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(b,{style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerTable.colUserAndGroup")),1)])),_:1})])),_:2},1032,["props"])])),body:(0,t.w5)((e=>[(0,t.Wm)(_,{props:e,onDblclick:l=>y(e.row.mimeType,e.row),onClick:l=>f(e.row,e.row.extension,e.row.path),onContextmenu:(0,o.iM)((l=>f(e.row,e.row.extension,e.row.path)),["prevent"]),class:(0,q.C_)(w(e.row.path))},{default:(0,t.w5)((()=>[(0,t.Wm)(F,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:d.value,"onUpdate:modelValue":l[3]||(l[3]=e=>d.value=e),val:e.row},null,8,["modelValue","val"])])),_:2},1024),(0,t._)("td",null,[(0,t.Wm)(a,{size:"20px",name:v(".trash"===e.row.name?".trash":e.row.mimeType),color:".trash"!==e.row.name?"yellow-9":"grey-8"},null,8,["name","color"])]),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.cols,(l=>((0,t.wg)(),(0,t.j4)(F,{key:l.name,props:e},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(l.value),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(F,{class:"text-center file-manager-td-user"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(`${e.row.owner}:${e.row.group}`),1)])),_:2},1024),(0,t.Wm)(Gt)])),_:2},1032,["props","onDblclick","onClick","onContextmenu","class"])])),_:1},8,["no-data-label","no-results-label","rows","columns","selected","pagination","filter"]),(0,t._)("div",lo,[(0,t.Wm)(T,{modelValue:s.value.page,"onUpdate:modelValue":l[6]||(l[6]=e=>s.value.page=e),color:"primary",max:g.value,size:"md"},null,8,["modelValue","max"])])])}}});var to=a(84277),oo=a(90136),io=a(31233),no=a(21682),so=a(11221),ro=a(67220),uo=a(80996);const co=ao,mo=co;x()(ao,"components",{QTable:to.Z,QInput:Oe.Z,QIcon:tl.Z,QSpace:oo.Z,QTr:io.Z,QTh:no.Z,QCheckbox:so.Z,QTd:ro.Z,QPagination:uo.Z});const po={style:{overflow:"hidden"}},go=(0,t.aZ)({__name:"FileManagerIndex",setup(e){const l=(0,L.iH)(17),a=(0,L.iH)(0),i=k(),n=(0,t.Fl)((()=>i.getFilesCurrentPath)),s=(0,t.Fl)((()=>i.getIsLoadingHomeDir)),r=(0,t.Fl)({get:()=>i.getIsSelectedAllPaths,set:e=>{i.setIsSelectedAllPaths(e)}}),u=(0,t.Fl)({get:()=>i.getListSelectedPaths,set:e=>{i.setListSelectedPaths(e)}});return(0,t.YP)(n,(()=>{r.value=!1,u.value=[],a.value++})),(e,i)=>{const n=(0,t.up)("q-card-section"),r=(0,t.up)("q-card"),u=(0,t.up)("q-avatar"),c=(0,t.up)("q-splitter"),d=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(d,{class:"q-px-sm"},{default:(0,t.w5)((()=>[(0,t._)("div",po,[(0,t.wy)((0,t.Wm)(W,null,null,512),[[o.F8,!0===s.value]]),(0,t.wy)((0,t._)("div",null,[(0,t.Wm)(dt),(0,t.Wm)(c,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=e=>l.value=e),style:{"margin-top":"15px"}},{before:(0,t.w5)((()=>[(0,t.Wm)(r,{flat:"",class:"q-mr-sm scroll-bar",style:{"overflow-y":"auto","overflow-x":"hidden",height:"84vh"}},{default:(0,t.w5)((()=>[(0,t.Wm)(n,null,{default:(0,t.w5)((()=>[(0,t.Wm)(gt)])),_:1})])),_:1})])),separator:(0,t.w5)((()=>[(0,t.Wm)(u,{color:"primary","text-color":"white",size:"32px",icon:"fas fa-arrows-left-right"})])),after:(0,t.w5)((()=>[(0,t.Wm)(r,{flat:"",class:"scroll-bar",style:{"overflow-y":"auto","overflow-x":"hidden",height:"84vh"}},{default:(0,t.w5)((()=>[(0,t.Wm)(n,null,{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)(mo,{key:a.value}))])),_:1})])),_:1})])),_:1},8,["modelValue"])],512),[[o.F8,!1===s.value]])])])),_:1})}}});var vo=a(69885),fo=a(7498),wo=a(61357);const bo=go,ho=bo;x()(go,"components",{QPage:vo.Z,QSplitter:fo.Z,QCard:ge.Z,QCardSection:fe.Z,QAvatar:wo.Z})},42480:()=>{}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/664.c2c9a509.js b/src/presentation/ui/dist/js/664.c2c9a509.js deleted file mode 100644 index d1b25a050..000000000 --- a/src/presentation/ui/dist/js/664.c2c9a509.js +++ /dev/null @@ -1 +0,0 @@ -(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[664],{59590:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>ho});var t=a(59835),o=a(61957),i={class:"row"},n={class:"row"},s={class:"col-2"},r={class:"col"},u={class:"text-center",width:"25px"},c={class:"text-center",width:"25px"},d={class:"text-left",width:"100px"},m={class:"text-left",width:"100px"},p={class:"text-left",width:"100px"},g={class:"text-left",width:"100px"},v={class:"text-left"},f={class:"text-left"},w={class:"text-left"},b={class:"text-left"},h={class:"text-left"},y={class:"text-left"};function _(e,l){var a=(0,t.up)("q-skeleton"),o=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t._)("div",i,[(0,t.Wm)(a,{type:"QInput",width:"100vw",height:"75px",class:"q-my-sm"})]),(0,t._)("div",n,[(0,t._)("div",s,[(0,t.Wm)(a,{type:"QInput",width:"100wh",height:"55vh",class:"q-mr-xs"})]),(0,t._)("div",r,[(0,t.Wm)(o,{flat:""},{default:(0,t.w5)((function(){return[(0,t._)("thead",null,[(0,t._)("tr",null,[(0,t._)("th",u,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",c,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",d,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",m,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",p,[(0,t.Wm)(a,{animation:"blink",type:"text"})]),(0,t._)("th",g,[(0,t.Wm)(a,{animation:"blink",type:"text"})])])]),(0,t._)("tbody",null,[((0,t.wg)(),(0,t.iD)(t.HY,null,(0,t.Ko)(10,(function(e){return(0,t._)("tr",{key:e},[(0,t._)("td",v,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"25px"})]),(0,t._)("td",f,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"25px"})]),(0,t._)("td",w,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",b,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",h,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})]),(0,t._)("td",y,[(0,t.Wm)(a,{animation:"blink",type:"text",width:"100px"})])])})),64))])]})),_:1})])])])}var F=a(11639),D=a(57133),T=a(66933),C=a(69984),x=a.n(C);const M={},Z=(0,F.Z)(M,[["render",_]]),W=Z;x()(M,"components",{QSkeleton:D.ZP,QMarkupTable:T.Z});var q=a(86970),P=a(3746);const k=(0,P.Q_)("fileManager",{state:()=>({filesCurrentPath:[],isSelectedAllPaths:!1,listSelectedPaths:[],currentAbsolutePath:"/",activeRowTable:{},selectedPathOrActiveRow:{},selectedPath:{},pathsTreeView:[],keyTreeView:0,isLoadingHomeDir:!1}),getters:{getFilesCurrentPath(e){return e.filesCurrentPath},getIsSelectedAllPaths(e){return e.isSelectedAllPaths},getListSelectedPaths(e){return e.listSelectedPaths},getCurrentAbsolutePath(e){return e.currentAbsolutePath},getActiveRowTable(e){return e.activeRowTable},getSelectedPathOrActiveRow(e){return e.selectedPathOrActiveRow},getSelectedPath(e){return e.selectedPath},getPathsTreeView(e){return e.pathsTreeView},getKeyTreeView(e){return e.keyTreeView},getIsLoadingHomeDir(e){return e.isLoadingHomeDir}},actions:{setFilesCurrentPath(e){this.filesCurrentPath=e},setIsSelectedAllPaths(e){this.isSelectedAllPaths=e},setListSelectedPaths(e){this.listSelectedPaths=e},setCurrentAbsolutePath(e){this.currentAbsolutePath=e},setActiveRowTable(e){this.activeRowTable=e},setSelectedPathOrActiveRow(e){this.selectedPathOrActiveRow=e},setSelectedPath(e){this.selectedPath=e},setPathsTreeView(e){this.pathsTreeView=e},setKeyTreeView(e){this.keyTreeView=e},setIsLoadingHomeDir(e){this.isLoadingHomeDir=e}}}),Q=(0,t.aZ)({__name:"FileManagerToolbarBtnHome",setup(e){const l=k();function a(){l.setCurrentAbsolutePath("/")}return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"sym_s_home",color:"primary",round:"",onClick:l[0]||(l[0]=e=>a())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnHome.btnGoToHome")),1)])),_:1})])),_:1})}}});var $=a(68879),R=a(46858);const z=Q,B=z;x()(Q,"components",{QBtn:$.Z,QTooltip:R.Z});const E=(0,t.aZ)({__name:"FileManagerToolbarBtnGoBackUp",props:{isDisabled:{type:Boolean}},setup(e){const l=k();function a(){let e=l.getCurrentAbsolutePath.split("/");e.pop();let a=e.join("/");""===a&&(a="/"),l.setCurrentAbsolutePath(a)}return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"fas fa-arrow-turn-up",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>a())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnGoBackUp.btnGoBackUp")),1)])),_:1})])),_:1},8,["disable"])}}}),S=E,U=S;x()(E,"components",{QBtn:$.Z,QTooltip:R.Z});const H=(0,t.aZ)({__name:"FileManagerToolbarBtnPageReload",setup(e){const l=k(),a=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});return(e,l)=>{const o=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"fas fa-rotate",color:"primary",round:"",onClick:l[0]||(l[0]=e=>a.value++)},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnPageReload.btnPageReload")),1)])),_:1})])),_:1})}}}),V=H,j=V;x()(H,"components",{QBtn:$.Z,QTooltip:R.Z});var A=a(18892),N=a(84278),I=a(15521),L=a(60499);const Y={class:"row no-wrap items-center q-pa-sm"},K={class:"col"},O={class:"q-uploader__title"},X={class:"q-uploader__subtitle"},G={class:"q-pr-md"},J={class:"q-pr-sm"},ee=(0,t.aZ)({__name:"FileManagerInputUploaderFile",emits:["update:fileBlob"],setup(e,{emit:l}){const a=(0,L.iH)([]);function o(e){a.value.push(e[0]),l("update:fileBlob",a.value)}function i(e){a.value.splice(e,1),l("update:fileBlob",a.value)}return(e,l)=>{const a=(0,t.up)("q-spinner"),n=(0,t.up)("q-uploader-add-trigger"),s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn"),u=(0,t.up)("q-chip"),c=(0,t.up)("q-uploader");return(0,t.wg)(),(0,t.j4)(c,{flat:"",color:"grey-7",multiple:!0,"auto-upload":"",factory:o},{header:(0,t.w5)((l=>[(0,t._)("div",Y,[l.isUploading?((0,t.wg)(),(0,t.j4)(a,{key:0,class:"q-uploader__spinner"})):(0,t.kq)("",!0),(0,t._)("div",K,[(0,t._)("div",O,(0,q.zw)(e.$t("fileManagerInputUploaderFile.title")),1),(0,t._)("div",X,(0,q.zw)(l.uploadSizeLabel),1)]),l.canAddFiles?((0,t.wg)(),(0,t.j4)(r,{key:1,icon:"fas fa-paperclip",onClick:l.pickFiles,round:"",size:"12px",color:"primary","text-color":"white"},{default:(0,t.w5)((()=>[(0,t.Wm)(n),(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerInputUploaderFile.addFile")),1)])),_:1})])),_:2},1032,["onClick"])):(0,t.kq)("",!0)])])),list:(0,t.w5)((e=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.files,((l,a)=>((0,t.wg)(),(0,t.iD)("span",{key:l.__key},[(0,t.Wm)(u,{removable:"",onRemove:t=>(i(a),e.removeFile(l)),color:"grey-7","text-color":"white",icon:"fas fa-paperclip",class:"q-mt-xs q-pa-md"},{default:(0,t.w5)((()=>[(0,t._)("span",G,(0,q.zw)(l.name),1),(0,t._)("span",J,(0,q.zw)(l.__sizeLabel),1)])),_:2},1032,["onRemove"])])))),128))])),_:1})}}});var le=a(88855),ae=a(13902),te=a(46246),oe=a(57691);const ie=ee,ne=ie;x()(ee,"components",{QUploader:le.Z,QSpinner:ae.Z,QBtn:$.Z,QUploaderAddTrigger:te.Z,QTooltip:R.Z,QChip:oe.Z});var se=a(88900),re=a(45273),ue=a(25121);const ce={class:"flex justify-between items-center"},de={class:"title-dialog"},me=(0,t.aZ)({__name:"FileManagerToolbarDialogUploaderFile",props:{showDialogUploaderFile:{type:Boolean}},emits:["update:showDialogUploaderFile"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogUploaderFile),s=(0,L.iH)([]),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;let l=new FormData;s.value.forEach((e=>{l.append(e.name,e)})),l.append("destinationPath",r.value),e.uploadFile(l).then((e=>{e.data.body.fileNamesSuccessfullyUploaded.length>0&&e.data.body.fileNamesSuccessfullyUploaded.forEach((e=>{(0,se.LX)(`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileSuccess",{fileName:e})}`)})),e.data.body.failedNamesWithReason.length>0&&e.data.body.failedNamesWithReason.forEach((e=>{(0,se.c0)({msg:`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileError",{fileName:e.fileName,reason:e.reason})}`,position:"bottom",type:"negative"})})),setTimeout((()=>{u.value++,n.value=!1}),1e3)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogUploaderFile.msgUploaderFileError")}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogUploaderFile),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogUploaderFile",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ce,[(0,t._)("div",de,(0,q.zw)(e.$t("fileManagerToolbarDialogUploaderFile.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[r.value?((0,t.wg)(),(0,t.j4)(I.Z,{key:0,class:"q-my-sm",label:e.$t("fileManagerToolbarDialogUploaderFile.inputSendTo"),icon:"sym_s_folder_open",value:r.value,readonly:!0,disable:!0},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(ne,{fileBlob:s.value,"onUpdate:fileBlob":l[1]||(l[1]=e=>s.value=e),class:"full-width q-pa-sm"},null,8,["fileBlob"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",onClick:l[2]||(l[2]=e=>n.value=!1),label:e.$t("fileManagerToolbarDialogUploaderFile.btnCancel")},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-upload",label:e.$t("fileManagerToolbarDialogUploaderFile.btnUploaderFile"),disable:!r.value||0===s.value.length,onClick:l[3]||(l[3]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var pe=a(32074),ge=a(44458),ve=a(50926),fe=a(63190),we=a(11821);const be=me,he=be;x()(me,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const ye=(0,t.aZ)({__name:"FileManagerToolbarBtnUploaderFile",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);return(e,o)=>{const i=(0,t.up)("q-tooltip"),n=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(he,{showDialogUploaderFile:l.value,"onUpdate:showDialogUploaderFile":o[0]||(o[0]=e=>l.value=e),key:a.value},null,8,["showDialogUploaderFile"])),(0,t.Wm)(n,{icon:"fas fa-upload",color:"primary",round:"",onClick:o[1]||(o[1]=e=>(l.value=!0,a.value++))},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnUploaderFile.btnUploaderFile")),1)])),_:1})])),_:1})])}}}),_e=ye,Fe=_e;x()(ye,"components",{QBtn:$.Z,QTooltip:R.Z});const De={class:"flex justify-between items-center"},Te={class:"title-dialog"},Ce=(0,t.aZ)({__name:"FileManagerToolbarDialogNewFolder",props:{showDialogNewFolder:{type:Boolean}},emits:["update:showDialogNewFolder"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogNewFolder),s=(0,L.iH)(""),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)}),c=(0,t.Fl)((()=>{const e=new RegExp(/^\w{1,256}$/);return e.test(s.value)}));function d(){(0,re.Q)();const e=new A.Z;e.createFile({filePath:`${r.value}/${s.value}`,mimeType:"directory",permissions:"0755"}).then((()=>{(0,se.LX)(`${i("fileManagerToolbarDialogNewFolder.msgCreateFolderSuccess",{dirName:s.value})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogNewFolder.msgCreateFolderError",{dirName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogNewFolder),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogNewFolder",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),m=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",De,[(0,t._)("div",Te,(0,q.zw)(e.$t("fileManagerToolbarDialogNewFolder.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerToolbarDialogNewFolder.labelInputNameFolder"),icon:"sym_s_folder",prefix:"/"!==r.value?`${r.value}/`:r.value,value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l&&null!==l||e.$t("fileManagerToolbarDialogNewFolder.fieldRequired"),()=>c.value||e.$t("fileManagerToolbarDialogNewFolder.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerToolbarDialogNewFolder.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_create_new_folder",label:e.$t("fileManagerToolbarDialogNewFolder.btnCreateFolder"),disable:!r.value||!c.value,onClick:l[3]||(l[3]=e=>d())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),xe=Ce,Me=xe;x()(Ce,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ze=(0,t.aZ)({__name:"FileManagerToolbarBtnNewFolder",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);function o(){l.value=!0,a.value++}return(e,i)=>{const n=(0,t.up)("q-tooltip"),s=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Me,{showDialogNewFolder:l.value,"onUpdate:showDialogNewFolder":i[0]||(i[0]=e=>l.value=e),key:a.value},null,8,["showDialogNewFolder"])),(0,t.Wm)(s,{icon:"sym_s_create_new_folder",color:"primary",round:"",onClick:i[1]||(i[1]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnNewFolder.btnNewFolder")),1)])),_:1})])),_:1})])}}}),We=Ze,qe=We;x()(Ze,"components",{QBtn:$.Z,QTooltip:R.Z});var Pe=a(89906),ke=a(19302);const Qe=(0,t.aZ)({__name:"FileManagerToolbarBtnCleanTrash",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)((()=>{const e=(0,ke.Z)(),l=e.dark.isActive;return l?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"})),i=(0,L.iH)(!1),n=(0,L.iH)(`${a("fileManagerToolbarBtnClearTrash.titleDialogClearTrash")}`),s=(0,L.iH)(`${a("fileManagerToolbarBtnClearTrash.bodyDialogClearTrash")}`),r=(0,L.iH)(!1),u=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)}),c=(0,t.Fl)((()=>0===l.getFilesCurrentPath.length));function d(){i.value=!0}function m(){i.value=!1}function p(){(0,re.Q)();const e=new A.Z;e.removeFile({sourcePaths:["/app/.trash"]}).then((()=>{setTimeout((()=>{u.value++,m()}),500),(0,se.LX)(`${a("fileManagerToolbarBtnClearTrash.msgRemoveSuccess")}`)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnClearTrash.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)(r,(e=>{!1!==e&&p()})),(e,l)=>{const a=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:i.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>i.value=e),titleDialog:n.value,messageToDelete:s.value,imagePath:o.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnClearTrash.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnClearTrash.btnConfirm"),color:"negative",onClick:l[1]||(l[1]=e=>p())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","imagePath"]),(0,t.Wm)(r,{disable:c.value,icon:"fas fa-broom",color:"primary",round:"",onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnClearTrash.btnClearTrash")),1)])),_:1})])),_:1},8,["disable"])],64)}}}),$e=Qe,Re=$e;x()(Qe,"components",{QBtn:$.Z,QTooltip:R.Z});const ze=(0,t.aZ)({__name:"FileManagerToolbarBtnShowTrash",setup(e){const l=k(),a=(0,t.Fl)({get:()=>l.getCurrentAbsolutePath,set:e=>l.setCurrentAbsolutePath(e)});function o(){a.value="/app/.trash"}return(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.j4)(i,{icon:"sym_s_restore_from_trash",color:"primary",round:"",onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnShowTrash.btnShowTrash")),1)])),_:1})])),_:1})}}}),Be=ze,Ee=Be;x()(ze,"components",{QBtn:$.Z,QTooltip:R.Z});const Se=(0,t.aZ)({__name:"FileManagerToolbarBtnDownload",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function o(){if(void 0===a.value.path)return;(0,re.Q)();const e=new A.Z;e.getFileDownloadBlob(a.value).then((e=>{let l=document.createElement("a");document.body.appendChild(l),l.style="display: none";const t=window.URL.createObjectURL(e);l.href=t,l.download=a.value.name,l.click(),window.URL.revokeObjectURL(t)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,e.msg)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(i,{icon:"fas fa-file-download",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDownload.btnDownload")),1)])),_:1})])),_:1},8,["disable"])])}}}),Ue=Se,He=Ue;x()(Se,"components",{QBtn:$.Z,QTooltip:R.Z});var Ve=a(40425),je=a.n(Ve),Ae=a(25562);const Ne={class:"full-width full-height"},Ie={class:"flex justify-between items-center file-manager-editor-toolbar q-pa-none"},Le={class:"flex justify-start items-center"},Ye={class:"flex justify-start items-center q-my-sm"},Ke=(0,t.aZ)({__name:"FileManagerCodeEditor",props:{originalFileContent:{},extension:{},currentFileContent:{}},emits:["update:saveContent","update:currentFileContent"],setup(e,{emit:l}){const a=e;let o=null;const i=(0,L.iH)(13),n=(0,L.iH)(null),s=(0,L.iH)(""),r=(0,t.Fl)((()=>{const e=je().MD5(a.originalFileContent).toString(),l=je().MD5(s.value).toString();return e!==l})),u=(0,t.Fl)((()=>{let e=a.extension.toLowerCase();switch(a.extension){case"js":e="javascript";break;case"ts":e="typescript";break;case"md":e="markdown";break}return e}));function c(){o=Ae.j6.create(n.value,{value:s.value,language:u.value,theme:"vs-dark"}),o.onDidChangeModelContent((()=>{var e;s.value=null!==(e=null===o||void 0===o?void 0:o.getValue())&&void 0!==e?e:"",l("update:currentFileContent",null===o||void 0===o?void 0:o.getValue())}))}function d(){o&&o.trigger("source","undo",null)}function m(){o&&o.trigger("source","redo",null)}function p(){o&&o.setValue(a.originalFileContent)}function g(){l("update:currentFileContent",null===o||void 0===o?void 0:o.getValue()),l("update:saveContent",!0)}return(0,t.bv)((()=>{setTimeout((()=>{s.value=a.originalFileContent,c()}),100)})),(0,t.YP)(i,(e=>{o&&o.updateOptions({fontSize:e})})),(e,l)=>{const a=(0,t.up)("q-tooltip"),o=(0,t.up)("q-btn"),s=(0,t.up)("q-input");return(0,t.wg)(),(0,t.iD)("div",Ne,[(0,t._)("div",Ie,[(0,t._)("div",Le,[(0,t.Wm)(o,{icon:"fas fa-rotate-left",round:"",color:"primary",class:"q-mx-sm",onClick:l[0]||(l[0]=e=>d()),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnUndo")),1)])),_:1})])),_:1}),(0,t.Wm)(o,{icon:"fas fa-rotate-right",round:"",color:"primary",class:"q-mx-sm",onClick:l[1]||(l[1]=e=>m()),size:"12px",style:{"margin-right":"75px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnRedo")),1)])),_:1})])),_:1}),(0,t.Wm)(o,{icon:"fas fa-minus",color:"primary",class:"q-mx-sm",round:"",disable:i.value<=10,onClick:l[2]||(l[2]=e=>i.value-=1),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnDecreaseFont")),1)])),_:1})])),_:1},8,["disable"]),(0,t.Wm)(s,{modelValue:i.value,"onUpdate:modelValue":l[3]||(l[3]=e=>i.value=e),debounce:"100",readonly:"",borderless:"",class:"rounded-borders q-px-md",style:{width:"48px"}},null,8,["modelValue"]),(0,t.Wm)(o,{icon:"fas fa-plus",color:"primary",class:"q-mx-sm",round:"",disable:i.value>=26,onClick:l[4]||(l[4]=e=>i.value+=1),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnIncreaseFont")),1)])),_:1})])),_:1},8,["disable"])]),(0,t._)("div",Ye,[(0,t.Wm)(o,{icon:"fas fa-clock-rotate-left",round:"",color:"primary",class:"q-mx-sm",disable:!r.value,onClick:l[5]||(l[5]=e=>p()),size:"12px"},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnRedoAll")),1)])),_:1})])),_:1},8,["disable"]),(0,t.Wm)(o,{icon:"fas fa-save",label:e.$t("fileManagerCodeEditor.btnSave"),color:"green-7",class:"q-mx-sm",size:"md","no-caps":"",onClick:l[6]||(l[6]=e=>g()),disable:!r.value},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-green-7",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerCodeEditor.btnSaveFile")),1)])),_:1})])),_:1},8,["label","disable"])])]),(0,t._)("div",{ref_key:"editorRef",ref:n,style:{width:"100%",height:"75vh","padding-top":"1px"}},null,512)])}}});var Oe=a(13119);const Xe=Ke,Ge=Xe;x()(Ke,"components",{QBtn:$.Z,QTooltip:R.Z,QInput:Oe.Z});const Je={class:"text-h6 text-bold text-secondary"},el=["innerHTML"],ll=(0,t.aZ)({__name:"DialogWarning",props:{showDialogWarning:{type:Boolean,default:!1},titleDialogWarning:{default:""},bodyDialogWarning:{default:""},btnCancelLabel:{default:"Cancelar"},btnConfirmLabel:{default:""}},emits:["update:showDialogWarning","update:isToProceed"],setup(e,{emit:l}){const a=e,o=(0,L.iH)(a.showDialogWarning);function i(){l("update:isToProceed",!1),o.value=!1}function n(){l("update:isToProceed",!0),o.value=!1}return(0,t.YP)((()=>a.showDialogWarning),(e=>{o.value=e})),(0,t.YP)(o,(e=>{l("update:showDialogWarning",e)})),(e,l)=>{const a=(0,t.up)("q-card-section"),s=(0,t.up)("q-icon"),r=(0,t.up)("q-banner"),u=(0,t.up)("q-card-actions"),c=(0,t.up)("q-card"),d=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(d,{modelValue:o.value,"onUpdate:modelValue":l[2]||(l[2]=e=>o.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{class:"bg-yellow-2 q-pa-md",style:{width:"750px","max-width":"70vw"}},{default:(0,t.w5)((()=>[(0,t.Wm)(a,null,{default:(0,t.w5)((()=>[(0,t._)("div",Je,(0,q.zw)(e.titleDialogWarning),1)])),_:1}),(0,t.Wm)(a,{class:"q-pa-xs q-my-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{class:"bg-yellow-2 text-secondary"},{avatar:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-exclamation-triangle",color:"yellow-8",size:"lg"})])),default:(0,t.w5)((()=>[(0,t._)("div",{innerHTML:e.bodyDialogWarning,class:"text-secondary q-mb-md"},null,8,el)])),_:1})])),_:1}),(0,t.Wm)(u,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.btnCancelLabel,color:"grey-8",onClick:l[0]||(l[0]=e=>i())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-exclamation-triangle",label:e.btnConfirmLabel,color:"primary",onClick:l[1]||(l[1]=e=>n())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var al=a(47128),tl=a(22857);const ol=ll,il=ol;x()(ll,"components",{QDialog:pe.Z,QCard:ge.Z,QCardSection:fe.Z,QBanner:al.Z,QIcon:tl.Z,QCardActions:we.Z});const nl={class:"flex justify-between items-center"},sl={class:"title-dialog"},rl={class:"text-subtitle2"},ul=(0,t.aZ)({__name:"FileManagerDialogEditCode",props:{selectedFile:{},showDialogEditCode:{type:Boolean}},emits:["update:showDialogEditCode"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogEditCode),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,L.iH)(!1),c=(0,L.iH)(!1),d=(0,L.iH)(!1),m=(0,L.iH)(0),p=(0,L.iH)(!1),g=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function v(){if(void 0===a.selectedFile.path)return;(0,re.Q)(),p.value=!0;const e=new A.Z;e.getCurrentPath(a.selectedFile.path).then((e=>{0===e.data.body.length&&(0,se.c0)({msg:`${i("fileManagerDialogEditCode.msgGetContentError",{fileName:a.selectedFile.name})}`,type:"negative",position:"bottom"});const l=new Blob([`${e.data.body[0].content}`],{type:a.selectedFile.extension});l.text().then((e=>{s.value=e,r.value=e}))})).catch((e=>{console.error(e),(0,se.s9)(e.response.data?e.response.data:e,`${i("fileManagerDialogEditCode.msgGetContentError",{fileName:a.selectedFile.name})}`),n.value=!1})).finally((()=>{(0,re.Z)(),p.value=!1}))}function f(){(0,re.Q)();const e=new A.Z,l=btoa(unescape(encodeURIComponent(r.value)));e.updateFile({encodedContent:l,sourcePaths:[a.selectedFile.path]}).then((e=>{e.data.body.filePathsSuccessfullyUpdated.length>0&&(0,se.LX)(`${i("fileManagerDialogEditCode.msgSaveCodeSuccess",{fileName:a.selectedFile.name})}`),e.data.body.failedPathsWithReason.length>0&&(0,se.c0)({msg:`${i("fileManagerDialogEditCode.msgSaveCodeError",{fileName:a.selectedFile.name})}`,type:"negative",position:"bottom"}),n.value=!1,g.value++})).catch((e=>{(0,se.s9)(e.response.data,`${i("fileManagerDialogEditCode.msgSaveCodeError",{fileName:a.selectedFile.name})}`),console.error(e),u.value=!1})).finally((()=>{(0,re.Z)()}))}function w(){const e=je().MD5(s.value).toString(je().enc.Base64),l=je().MD5(r.value).toString(je().enc.Base64);e!==l?b():n.value=!1}function b(){m.value++,c.value=!0}return(0,t.YP)(u,(e=>{!1!==e&&f()})),(0,t.YP)(d,(e=>{!0===e&&(c.value=!1,setTimeout((()=>{n.value=!1}),500))})),(0,t.YP)((()=>a.showDialogEditCode),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogEditCode",e),!0===e&&v()}),{immediate:!0}),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-card-section"),i=(0,t.up)("q-separator"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(il,{showDialogWarning:c.value,"onUpdate:showDialogWarning":l[0]||(l[0]=e=>c.value=e),titleDialogWarning:e.$t("fileManagerDialogEditCode.titleDialogWarningSave"),bodyDialogWarning:e.$t("fileManagerDialogEditCode.bodyDialogWarningSave"),isToProceed:d.value,"onUpdate:isToProceed":l[1]||(l[1]=e=>d.value=e),btnConfirmLabel:e.$t("fileManagerDialogEditCode.btnDialogWarningSave"),key:m.value},null,8,["showDialogWarning","titleDialogWarning","bodyDialogWarning","isToProceed","btnConfirmLabel"])),(0,t.Wm)(v,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),position:"right",maximized:"","transition-show":"slide-left","transition-hide":"slide-right",persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",style:{"min-width":"85vw"}},{default:(0,t.w5)((()=>[(0,t.Wm)(o,null,{default:(0,t.w5)((()=>[(0,t._)("div",nl,[(0,t._)("div",null,[(0,t._)("div",sl,(0,q.zw)(e.$t("fileManagerDialogEditCode.titleEditCode")),1),(0,t._)("div",rl,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[2]||(l[2]=e=>w())})])])),_:1}),(0,t.Wm)(i),(0,t.Wm)(o,{class:"q-pa-sm"},{default:(0,t.w5)((()=>[p.value?(0,t.kq)("",!0):((0,t.wg)(),(0,t.j4)(Ge,{key:0,originalFileContent:s.value,extension:e.selectedFile.extension,currentFileContent:r.value,"onUpdate:currentFileContent":l[3]||(l[3]=e=>r.value=e),saveContent:u.value,"onUpdate:saveContent":l[4]||(l[4]=e=>u.value=e)},null,8,["originalFileContent","extension","currentFileContent","saveContent"]))])),_:1})])),_:1})])),_:1},8,["modelValue"])])}}}),cl=ul,dl=cl;x()(ul,"components",{QDialog:pe.Z,QCard:ge.Z,QCardSection:fe.Z,QBtn:$.Z,QSeparator:ve.Z});const ml=(0,t.aZ)({__name:"FileManagerToolbarBtnEditCode",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),o=(0,L.iH)(300),i=(0,L.iH)(!1);function n(){o.value++,i.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(dl,{showDialogEditCode:i.value,"onUpdate:showDialogEditCode":l[0]||(l[0]=e=>i.value=e),selectedFile:a.value,key:o.value},null,8,["showDialogEditCode","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-code",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditCode.btnEditCode")),1)])),_:1})])),_:1},8,["disable"])])}}}),pl=ml,gl=pl;x()(ml,"components",{QBtn:$.Z,QTooltip:R.Z});const vl=(0,t.aZ)({__name:"FileManagerSelectTreeView",emits:["update:selectedPath"],setup(e,{emit:l}){const a=k(),o=(0,L.iH)(0),i=(0,L.iH)([]),n=(0,L.iH)([]),s=(0,L.iH)("/");function r(e){if(void 0===e||null===e)return;const l=new A.Z;(0,re.Q)(),l.getCurrentPath(e).then((l=>{n.value=l.data.body,"/"===e?u(l.data.body):c(i.value,e,l.data.body),o.value++})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{(0,re.Z)()}),500)}))}function u(e){i.value=[],i.value.push({label:"/",path:"/",icon:"sym_s_home",iconColor:"grey-7",children:[]}),e.forEach((e=>{"directory"===e.mimeType&&i.value[0].children.push({label:e.name,path:e.path,icon:"sym_s_folder",iconColor:"yellow-9",children:[]})}))}function c(e,l,a){e.forEach((e=>{if(e.path===l)return e.icon="sym_s_folder_open",e.children=[],void a.forEach((l=>{"directory"===l.mimeType&&e.children.push({label:l.name,path:l.path,icon:".trash"===l.name?"sym_s_delete":"sym_s_folder",iconColor:".trash"===l.name?"grey-8":"yellow-9",children:[]})}));c(e.children,l,a)}))}return(0,t.wF)((()=>{i.value=a.getPathsTreeView,r(s.value)})),(0,t.YP)(s,(e=>{l("update:selectedPath",e),r(e)})),(e,l)=>{const a=(0,t.up)("q-tree");return(0,t.wg)(),(0,t.j4)(a,{key:o.value,nodes:i.value,selected:s.value,"onUpdate:selected":l[0]||(l[0]=e=>s.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"])}}});var fl=a(84749);const wl=vl,bl=wl;x()(vl,"components",{QTree:fl.Z});const hl={class:"flex justify-between items-center"},yl={key:0},_l={key:0,class:"title-dialog"},Fl={key:1,class:"title-dialog"},Dl={class:"flex text-subtitle"},Tl={key:1,class:"title-dialog"},Cl={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},xl=(0,t.aZ)({__name:"FileManagerDialogMove",props:{showDialogMove:{type:Boolean}},emits:["update:showDialogMove"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogMove),s=(0,L.iH)("/"),r=(0,L.iH)(0),u=(0,t.Fl)((()=>i.getSelectedPathOrActiveRow)),c=(0,t.Fl)((()=>i.getListSelectedPaths)),d=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function m(){(0,re.Q)();const e=new A.Z;let l=[];l.push(u.value.path),c.value.length>=1&&(l=[],c.value.forEach((e=>{l.push(e.path)}))),e.updateFile({sourcePaths:l,destinationPath:s.value}).then((e=>{if(e.data.body.filePathsSuccessfullyUpdated.length>0){const l=e.data.body.filePathsSuccessfullyUpdated;l.forEach((e=>{(0,se.LX)(`${o("fileManagerDialogMove.msgMoveOneFileSuccess",{fileName:e})}`)}))}if(e.data.body.failedPathsWithReason.length>0){const l=e.data.body.failedPathsWithReason;l.forEach((e=>{(0,se.c0)({msg:`${o("fileManagerDialogMove.msgMoveOneFileError",{fileName:e.filePath})}`,type:"negative",position:"bottom"})}))}n.value=!1,d.value++})).catch((e=>{console.error(e);const a=1===l.length?`${o("fileManagerDialogMove.msgMoveOneFileError",{fileName:u.value.name})}`:`${o("fileManagerDialogMove.msgMoveMultiFileModelsError",{count:l.length})}`;(0,se.s9)(e.response.data,a)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogMove),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogMove",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-card-actions"),p=(0,t.up)("q-card"),g=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(g,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",hl,[c.value.length<=1?((0,t.wg)(),(0,t.iD)("div",yl,["directory"===u.value.mimeType?((0,t.wg)(),(0,t.iD)("div",_l,(0,q.zw)(e.$t("fileManagerDialogMove.titleOneDir",{dirName:u.value.name})),1)):((0,t.wg)(),(0,t.iD)("div",Fl,(0,q.zw)(e.$t("fileManagerDialogMove.titleOneFile",{fileName:u.value.name})),1)),(0,t._)("div",Dl,(0,q.zw)(u.value.path),1)])):((0,t.wg)(),(0,t.iD)("div",Tl,(0,q.zw)(e.$t("fileManagerDialogMove.titleMultiFileModel",{count:c.value.length})),1)),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",Cl,(0,q.zw)(e.$t("fileManagerDialogMove.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogMove.inputMoveTo"),icon:"sym_s_folder_open",value:s.value,readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(d,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogMove.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-arrows-up-down-left-right",label:e.$t("fileManagerDialogMove.btnMoveFile"),disable:!s.value,onClick:l[3]||(l[3]=e=>m())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ml=xl,Zl=Ml;x()(xl,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Wl=(0,t.aZ)({__name:"FileManagerToolbarBtnMove",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),n=(0,t.Fl)((()=>l.getListSelectedPaths));function s(){a.value++,o.value=!0}return(e,l)=>{const r=(0,t.up)("q-tooltip"),u=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Zl,{showDialogMove:o.value,"onUpdate:showDialogMove":l[0]||(l[0]=e=>o.value=e),key:a.value},null,8,["showDialogMove"])),(0,t.Wm)(u,{icon:"fas fa-truck-arrow-right",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>s())},{default:(0,t.w5)((()=>[0===n.value.length?((0,t.wg)(),(0,t.j4)(r,{key:0,class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===i.value.mimeType?e.$t("fileManagerToolbarBtnMove.btnMoveDir"):e.$t("fileManagerToolbarBtnMove.btnMoveFile")),1)])),_:1})):((0,t.wg)(),(0,t.j4)(r,{key:1,class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnMove.btnMoveFiles")),1)])),_:1}))])),_:1},8,["disable"])])}}}),ql=Wl,Pl=ql;x()(Wl,"components",{QBtn:$.Z,QTooltip:R.Z});const kl=(0,t.aZ)({__name:"FileManagerToolbarBtnDuplicateFile",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)}),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){(0,re.Q)();const e=new A.Z;e.copyFile({sourcePath:i.value.path,destinationPath:i.value.path}).then((()=>{(0,se.LX)(`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileSuccess",{fileName:i.value.name})}`),o.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileError",{fileName:i.value.name})}`)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-tooltip"),o=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(o,{icon:"sym_s_copy_all",color:"primary",round:"",disable:e.isDisabled,onClick:l[0]||(l[0]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDuplicateFile.btnDuplicateFile")),1)])),_:1})])),_:1},8,["disable"])])}}}),Ql=kl,$l=Ql;x()(kl,"components",{QBtn:$.Z,QTooltip:R.Z});const Rl={class:"flex justify-between items-center"},zl={class:"title-dialog"},Bl={class:"flex text-subtitle"},El={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},Sl=(0,t.aZ)({__name:"FileManagerDialogCopy",props:{selectedFile:{},showDialogCopy:{type:Boolean}},emits:["update:showDialogCopy"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogCopy),s=(0,L.iH)(""),r=(0,L.iH)(0),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;e.copyFile({sourcePath:a.selectedFile.path,destinationPath:s.value+"/"+a.selectedFile.name}).then((()=>{(0,se.LX)(`${i("fileManagerDialogCopy.msgCopiedFileSuccess",{fileName:a.selectedFile.name})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogCopy.msgCopiedFileError",{fileName:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogCopy),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogCopy",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Rl,[(0,t._)("div",null,[(0,t._)("div",zl,(0,q.zw)(e.$t("fileManagerDialogCopy.titleDialog")),1),(0,t._)("div",Bl,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",El,(0,q.zw)(e.$t("fileManagerDialogCopy.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogCopy.copyTo"),icon:"sym_s_folder_open",value:s.value,"onUpdate:value":l[2]||(l[2]=e=>s.value=e),readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogCopy.btnCancel"),onClick:l[3]||(l[3]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-copy",label:e.$t("fileManagerDialogCopy.btnCopyFile"),disable:!s.value,onClick:l[4]||(l[4]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ul=Sl,Hl=Ul;x()(Sl,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Vl=(0,t.aZ)({__name:"FileManagerToolbarBtnCopy",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Hl,{showDialogCopy:o.value,"onUpdate:showDialogCopy":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogCopy","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-copy",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCopy.btnCopy")),1)])),_:1})])),_:1},8,["disable"])])}}}),jl=Vl,Al=jl;x()(Vl,"components",{QBtn:$.Z,QTooltip:R.Z});const Nl={class:"flex justify-between items-center"},Il={class:"title-dialog"},Ll=(0,t.aZ)({__name:"FileManagerDialogRenameFile",props:{selectedFile:{},showDialogRename:{type:Boolean}},emits:["update:showDialogRename"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogRename),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,t.Fl)((()=>{const e=new RegExp(/^\w{1,256}$/);return e.test(s.value)})),c=(0,t.Fl)((()=>"directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.fileName")}`:`${o("fileManagerDialogRenameFile.dirName")}`)),d=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function m(){n.value=!1}function p(){(0,re.Q)();const e=new A.Z;let l=r.value.split("/");l.pop(),e.updateFile({sourcePaths:[r.value],destinationPath:`${l.join("/")}/${s.value}`}).then((e=>{if(e.data.body.filePathsSuccessfullyUpdated.length>0){const e="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileSuccess",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirSuccess",{dirName:a.selectedFile.name})}`;(0,se.LX)(e)}if(e.data.body.failedPathsWithReason.length>0){const e="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileError",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirError",{dirName:a.selectedFile.name})}`;(0,se.c0)({msg:e,type:"negative",position:"bottom"})}d.value++,n.value=!1})).catch((e=>{console.error(e);const l="directory"!==a.selectedFile.mimeType?`${o("fileManagerDialogRenameFile.msgRenamedFileError",{fileName:a.selectedFile.name})}`:`${o("fileManagerDialogRenameFile.msgRenamedDirError",{dirName:a.selectedFile.name})}`;(0,se.s9)(e.response.data,l)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogRename),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogRename",e)})),(0,t.wF)((()=>{s.value=a.selectedFile.name,r.value=a.selectedFile.path})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-card-actions"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(v,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Nl,[(0,t._)("div",Il,(0,q.zw)("directory"!==e.selectedFile.mimeType?e.$t("fileManagerDialogRenameFile.titleRenameFile"):e.$t("fileManagerDialogRenameFile.titleRenameDir")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>m())})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerDialogRenameFile.absolutePath"),icon:"sym_s_account_tree",value:r.value,maxLength:"255",readonly:!0,disable:!0},null,8,["label","value"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:c.value,icon:"sym_s_description",value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"255",rules:[l=>""!==l&&null!==l||e.$t("fileManagerDialogRenameFile.fieldRequired"),()=>u.value||e.$t("fileManagerDialogRenameFile.onlyAlphaNumeric")]},null,8,["label","value","rules"])])),_:1}),(0,t.Wm)(d,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogRenameFile.btnCancel"),onClick:l[2]||(l[2]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_save",label:e.$t("fileManagerDialogRenameFile.btnSave"),disable:!u.value,onClick:l[3]||(l[3]=e=>p())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Yl=Ll,Kl=Yl;x()(Ll,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ol=(0,t.aZ)({__name:"FileManagerToolbarBtnRenameFile",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Kl,{showDialogRename:o.value,"onUpdate:showDialogRename":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogRename","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-edit",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===i.value.mimeType?e.$t("fileManagerToolbarBtnRenameFile.btnRenameDir"):e.$t("fileManagerToolbarBtnRenameFile.btnRenameFile")),1)])),_:1})])),_:1},8,["disable"])])}}}),Xl=Ol,Gl=Xl;x()(Ol,"components",{QBtn:$.Z,QTooltip:R.Z});const Jl={class:"text-subtitle text-bold",style:{"font-size":"16px"}},ea={class:"flex justify-between q-py-md"},la={class:"text-subtitle text-bold flex justify-center"},aa={class:"justify-center flex"},ta={class:"text-subtitle text-bold flex justify-center"},oa={class:"justify-center flex"},ia={class:"text-subtitle text-bold flex justify-center"},na={class:"justify-center flex"},sa=(0,t.aZ)({__name:"FileManagerEditPermission",props:{permissions:{}},emits:["update:updatePermissions"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=(0,L.iH)([{label:o("fileManagerEditPermission.read"),value:4},{label:o("fileManagerEditPermission.write"),value:2},{label:o("fileManagerEditPermission.execute"),value:1}]),n=(0,L.iH)([]),s=(0,L.iH)([]),r=(0,L.iH)([]),u=(0,t.Fl)((()=>`${m(n.value)}${m(s.value)}${m(r.value)}`)),c=(0,t.Fl)((()=>{const e=(0,ke.Z)();return e.dark.isActive?"bg-grey-8 flex justify-center items-center q-my-md":"bg-grey-4 flex justify-center items-center q-my-md"}));function d(e){let l=[];const a={0:[],1:[1],2:[2],3:[2,1],4:[4],5:[4,1],6:[4,2],7:[4,2,1]};for(let t in a)t===e.toString()&&(l=a[t]);return l}function m(e){let l=0;return 0===e.length||e.forEach((e=>{l+=e})),l}return(0,t.YP)(u,(e=>{l("update:updatePermissions",e)})),(0,t.wF)((()=>{n.value=d(parseInt(a.permissions.charAt(0))),s.value=d(parseInt(a.permissions.charAt(1))),r.value=d(parseInt(a.permissions.charAt(2)))})),(e,l)=>{const a=(0,t.up)("q-option-group");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t._)("div",Jl,(0,q.zw)(e.$t("fileManagerEditPermission.permissions")),1),(0,t._)("div",ea,[(0,t._)("div",null,[(0,t._)("label",la,(0,q.zw)(e.$t("fileManagerEditPermission.user")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e)},null,8,["options","modelValue"]),(0,t._)("div",aa,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(n.value)),3)])]),(0,t._)("div",null,[(0,t._)("label",ta,(0,q.zw)(e.$t("fileManagerEditPermission.group")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=e=>s.value=e)},null,8,["options","modelValue"]),(0,t._)("div",oa,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(s.value)),3)])]),(0,t._)("div",null,[(0,t._)("label",ia,(0,q.zw)(e.$t("fileManagerEditPermission.others")),1),(0,t.Wm)(a,{options:i.value,type:"checkbox",modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=e=>r.value=e)},null,8,["options","modelValue"]),(0,t._)("div",na,[(0,t._)("div",{class:(0,q.C_)(c.value),style:{height:"40px",width:"40px"}},(0,q.zw)(m(r.value)),3)])])])])}}});var ra=a(2286);const ua=sa,ca=ua;x()(sa,"components",{QOptionGroup:ra.Z});const da={class:"flex justify-between items-center"},ma={class:"title-dialog"},pa={class:"text-subtitle"},ga=(0,t.aZ)({__name:"FileManagerDialogEditPermissions",props:{showDialogEditPermissions:{type:Boolean},selectedFile:{}},emits:["update:showDialogEditPermissions"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogEditPermissions),s=(0,L.iH)(""),r=(0,L.iH)(""),u=(0,L.iH)(""),c=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function d(){n.value=!1}function m(){(0,re.Q)();const e=new A.Z;e.updateFile({sourcePaths:[u.value],permissions:r.value}).then((e=>{e.data.body.filePathsSuccessfullyUpdated.length>0&&(0,se.LX)(`${i("fileManagerDialogEditPermissions.msgEditPermissionsSuccess")}`),e.data.body.failedPathsWithReason.length>0&&(0,se.c0)({msg:`${i("fileManagerDialogEditPermissions.msgEditPermissionsError",{filename:a.selectedFile.name})}`,type:"negative",position:"bottom"}),c.value++,n.value=!1})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogEditPermissions.msgEditPermissionsError",{filename:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.wF)((()=>{s.value=a.selectedFile.name,r.value=a.selectedFile.permissions,u.value=a.selectedFile.path})),(0,t.YP)((()=>a.showDialogEditPermissions),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogEditPermissions",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),s=(0,t.up)("q-card-actions"),c=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{flat:"",class:"dialog-card-bg",style:{width:"700px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",da,[(0,t._)("div",null,[(0,t._)("div",ma,(0,q.zw)(e.$t("fileManagerDialogEditPermissions.titleDialog")),1),(0,t._)("div",pa,(0,q.zw)(u.value),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>d())})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(ca,{permissions:r.value,updatePermissions:r.value,"onUpdate:updatePermissions":l[1]||(l[1]=e=>r.value=e)},null,8,["permissions","updatePermissions"])])),_:1}),(0,t.Wm)(s,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogEditPermissions.btnCancel"),onClick:l[2]||(l[2]=e=>d())},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-save",label:e.$t("fileManagerDialogEditPermissions.btnSave"),onClick:l[3]||(l[3]=e=>m())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),va=ga,fa=va;x()(ga,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const wa=(0,t.aZ)({__name:"FileManagerToolbarBtnEditPermissions",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(fa,{showDialogEditPermissions:o.value,"onUpdate:showDialogEditPermissions":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditPermissions","selectedFile"])),(0,t.Wm)(r,{icon:"fas fa-person-military-pointing",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditPermissions.btnEditPermissions")),1)])),_:1})])),_:1},8,["disable"])])}}}),ba=wa,ha=ba;x()(wa,"components",{QBtn:$.Z,QTooltip:R.Z});const ya={class:"flex justify-between items-center"},_a={class:"title-dialog"},Fa={class:"flex text-subtitle"},Da={class:"text-subtitle text-bold q-pb-md",style:{"font-size":"16px"}},Ta=(0,t.aZ)({__name:"FileManagerDialogExtract",props:{selectedFile:{},showDialogExtract:{type:Boolean}},emits:["update:showDialogExtract"],setup(e,{emit:l}){const a=e,o=(0,ue.QT)().t,i=k(),n=(0,L.iH)(a.showDialogExtract),s=(0,L.iH)(""),r=(0,L.iH)(0),u=(0,t.Fl)({get:()=>i.getKeyTreeView,set:e=>i.setKeyTreeView(e)});function c(){(0,re.Q)();const e=new A.Z;e.extractFile({sourcePath:a.selectedFile.path,destinationPath:s.value+"/"+a.selectedFile.name.replace("."+a.selectedFile.extension,"")}).then((()=>{(0,se.LX)(`${o("fileManagerDialogExtract.msgExtractFileSuccess",{filename:a.selectedFile.name})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${o("fileManagerDialogExtract.msgExtractFileError",{filename:a.selectedFile.name})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogExtract),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogExtract",e)})),(0,t.YP)(s,(()=>{r.value++})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),m=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(m,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{flat:"",class:"dialog-card-bg",style:{width:"1000px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ya,[(0,t._)("div",null,[(0,t._)("div",_a,(0,q.zw)(e.$t("fileManagerDialogExtract.titleDialog")),1),(0,t._)("div",Fa,(0,q.zw)(e.selectedFile.path),1)]),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",Da,(0,q.zw)(e.$t("fileManagerDialogExtract.selectDir")),1),(0,t.Wm)(bl,{selectedPath:s.value,"onUpdate:selectedPath":l[1]||(l[1]=e=>s.value=e),style:{height:"250px","overflow-y":"auto"}},null,8,["selectedPath"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[s.value?((0,t.wg)(),(0,t.j4)(I.Z,{label:e.$t("fileManagerDialogExtract.inputExtractTo"),icon:"sym_s_folder_open",value:s.value,readonly:!0,disable:!0,key:r.value},null,8,["label","value"])):(0,t.kq)("",!0)])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogExtract.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-file-zipper",label:e.$t("fileManagerDialogExtract.btnExtractFile"),disable:!s.value,onClick:l[3]||(l[3]=e=>c())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ca=Ta,xa=Ca;x()(Ta,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const Ma=(0,t.aZ)({__name:"FileManagerToolbarBtnExtract",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-tooltip"),r=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(xa,{showDialogExtract:o.value,"onUpdate:showDialogExtract":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogExtract","selectedFile"])),(0,t.Wm)(r,{disable:e.isDisabled,icon:"fas fa-file-zipper",color:"primary",round:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnExtract.btnExtract")),1)])),_:1})])),_:1},8,["disable"])])}}}),Za=Ma,Wa=Za;x()(Ma,"components",{QBtn:$.Z,QTooltip:R.Z});var qa=a(94629);const Pa={class:"flex justify-between items-center"},ka={key:0},Qa={class:"title-dialog"},$a={class:"flex text-subtitle"},Ra={key:1,class:"title-dialog"},za={class:"shadow-1 file-manager-box-selected-path disabled"},Ba={class:"flex justify-start items-center"},Ea={class:"q-pa-md text-grey-7",style:{"font-size":"12px"}},Sa={key:0,style:{"padding-left":"36px"}},Ua={key:1,style:{"padding-left":"36px"}},Ha=(0,t.aZ)({__name:"FileManagerDialogCompress",props:{selectedFile:{},listSelectedPaths:{},showDialogCompress:{type:Boolean}},emits:["update:showDialogCompress"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogCompress),s=(0,L.iH)(""),r=(0,L.iH)("zip"),u=(0,t.Fl)((()=>{const e=new RegExp(/^\w{1,256}$/);return e.test(s.value)})),c=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),d=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)});function m(){(0,re.Q)();const e=new A.Z;let l=[];l.push(a.selectedFile.path),a.listSelectedPaths.length>0&&(l=[],a.listSelectedPaths.forEach((e=>{l.push(e.path)}))),e.compressFile({sourcePaths:l,destinationPath:`${c.value}/${s.value}.${r.value}`,compressionType:r.value}).then((()=>{(0,se.LX)(`${i("fileManagerDialogCompress.msgCompressedFileSuccess",{compressedFileName:`${s.value}.${r.value}`})}`),n.value=!1,d.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerDialogCompress.msgCompressedFileError",{compressedFileName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogCompress),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogCompress",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),d=(0,t.up)("q-icon"),p=(0,t.up)("q-card-actions"),g=(0,t.up)("q-card"),v=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(v,{modelValue:n.value,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{flat:"",class:"dialog-card-bg",style:{width:"750px","max-width":"90vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Pa,[e.listSelectedPaths.length<=1?((0,t.wg)(),(0,t.iD)("div",ka,[(0,t._)("div",Qa,(0,q.zw)(e.$t("fileManagerDialogCompress.simpleTitleDialog")),1),(0,t._)("div",$a,(0,q.zw)(e.selectedFile.path),1)])):((0,t.wg)(),(0,t.iD)("div",Ra,(0,q.zw)(e.$t("fileManagerDialogCompress.countTitleDialog",{countSelectedPaths:e.listSelectedPaths.length})),1)),(0,t.Wm)(a,{class:"float-right",icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-xs"}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerDialogCompress.inputName"),icon:"fas fa-file-zipper",prefix:`${c.value}/`,value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l||e.$t("fileManagerDialogCompress.fieldRequired"),()=>u.value||e.$t("fileManagerDialogCompress.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(qa.Z,{icon:"fas fa-file",label:e.$t("fileManagerDialogCompress.extensionFile"),options:["zip","tgz"],selected:r.value,"onUpdate:selected":l[2]||(l[2]=e=>r.value=e)},null,8,["label","selected"])])),_:1}),(0,t.Wm)(i,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",za,[(0,t._)("div",Ba,[(0,t.Wm)(d,{name:"fas fa-clipboard-check",size:"24px",color:"grey-8"}),(0,t._)("div",Ea,(0,q.zw)(e.$t("fileManagerDialogCompress.selectedPaths")),1)]),e.listSelectedPaths.length>0?((0,t.wg)(),(0,t.iD)("div",Sa,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.listSelectedPaths,((e,l)=>((0,t.wg)(),(0,t.iD)("p",{key:l},(0,q.zw)(e.name),1)))),128))])):((0,t.wg)(),(0,t.iD)("div",Ua,[(0,t._)("p",null,(0,q.zw)(e.selectedFile.name),1)]))])])),_:1}),(0,t.Wm)(p,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerDialogCompress.btnCancel"),onClick:l[3]||(l[3]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"fas fa-file-zipper",label:e.$t("fileManagerDialogCompress.btnCompressFile"),disable:!c.value||!u.value,onClick:l[4]||(l[4]=e=>m())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Va=Ha,ja=Va;x()(Ha,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QIcon:tl.Z,QCardActions:we.Z});const Aa=(0,t.aZ)({__name:"FileManagerToolbarBtnCompress",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),n=(0,t.Fl)((()=>l.getListSelectedPaths));function s(){a.value++,o.value=!0}return(e,l)=>{const r=(0,t.up)("q-tooltip"),u=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ja,{showDialogCompress:o.value,"onUpdate:showDialogCompress":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,listSelectedPaths:n.value,key:a.value},null,8,["showDialogCompress","selectedFile","listSelectedPaths"])),(0,t.Wm)(u,{icon:"far fa-file-zipper",color:"primary",round:"",disable:e.isDisabled,onClick:l[1]||(l[1]=e=>s())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCompress.btnCompress")),1)])),_:1})])),_:1},8,["disable"])])}}}),Na=Aa,Ia=Na;x()(Aa,"components",{QBtn:$.Z,QTooltip:R.Z});const La=(0,t.aZ)({__name:"FileManagerToolbarBtnRemove",props:{isDisabled:{type:Boolean}},setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,L.iH)(!1),i=(0,L.iH)(400),n=(0,L.iH)(""),s=(0,L.iH)(""),r=(0,t.Fl)((()=>l.getSelectedPathOrActiveRow)),u=(0,t.Fl)((()=>l.getListSelectedPaths)),c=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function d(){i.value++,s.value=g(),o.value=!0}function m(){o.value=!1}function p(){const e=u.value.length>0?u.value:[r.value];(0,re.Q)();const t=new A.Z;let n=[];e.forEach((e=>{n.push(e.path)})),t.removeFile({sourcePaths:n}).then((()=>{const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath),t=e?`${a("fileManagerToolbarBtnRemove.msgRemovePermanentSuccess")}`:`${a("fileManagerToolbarBtnRemove.msgRemoveSuccess")}`;(0,se.LX)(t),o.value=!1,i.value++,c.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnRemove.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}function g(){const e="/app/.trash"===l.getCurrentAbsolutePath;return e?u.value.length>1?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedMultiFileModelsTrash",{countFiles:u.value.length})}`:1===u.value.length?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedOneFileTrash")}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFileTrash",{fileName:r.value.name,mimeType:"directory"===r.value.mimeType?"directory":"file"})}`:u.value.length>1?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedMultiFileModels",{countFiles:u.value.length})}`:1===u.value.length?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveSelectedOneFile")}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFile",{fileName:r.value.name,mimeType:"directory"===r.value.mimeType?"directory":"file"})}`}return(0,t.YP)(o,(e=>{!1!==e&&(n.value="directory"===r.value.mimeType?`${a("fileManagerToolbarBtnRemove.titleDialogRemoveDir")}`:`${a("fileManagerToolbarBtnRemove.titleDialogRemoveFile")}`)})),(e,l)=>{const a=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:o.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>o.value=e),titleDialog:n.value,messageToDelete:s.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnConfirm"),color:"negative",onClick:l[1]||(l[1]=e=>p())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete"]),(0,t._)("div",null,[(0,t.Wm)(i,{icon:"sym_s_delete",color:"negative",round:"",disable:e.isDisabled,onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{class:"bg-negative",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnRemove.btnRemoveFile")),1)])),_:1})])),_:1},8,["disable"])])],64)}}}),Ya=La,Ka=Ya;x()(La,"components",{QBtn:$.Z,QTooltip:R.Z});const Oa={class:"flex justify-between items-center"},Xa={class:"title-dialog"},Ga=(0,t.aZ)({__name:"FileManagerToolbarDialogNewFile",props:{showDialogNewFile:{type:Boolean}},emits:["update:showDialogNewFile"],setup(e,{emit:l}){const a=e,o=k(),i=(0,ue.QT)().t,n=(0,L.iH)(a.showDialogNewFile),s=(0,L.iH)(""),r=(0,t.Fl)((()=>o.getCurrentAbsolutePath)),u=(0,t.Fl)({get:()=>o.getKeyTreeView,set:e=>o.setKeyTreeView(e)}),c=(0,t.Fl)((()=>{const e=new RegExp(/^[\w\s-.]{1,255}$/);return e.test(s.value)}));function d(){(0,re.Q)();const e=new A.Z;e.createFile({filePath:`${r.value}/${s.value}`,mimeType:"file"}).then((()=>{(0,se.LX)(`${i("fileManagerToolbarDialogNewFile.msgCreateFileSuccess",{fileName:s.value})}`),n.value=!1,u.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${i("fileManagerToolbarDialogNewFile.msgCreateFileError",{fileName:s.value})}`)})).finally((()=>{(0,re.Z)()}))}return(0,t.YP)((()=>a.showDialogNewFile),(e=>{n.value=e})),(0,t.YP)(n,(e=>{l("update:showDialogNewFile",e)})),(e,l)=>{const a=(0,t.up)("q-btn"),o=(0,t.up)("q-separator"),i=(0,t.up)("q-card-section"),u=(0,t.up)("q-card-actions"),m=(0,t.up)("q-card"),p=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(p,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{flat:"",class:"dialog-card-bg",style:{width:"600px","max-width":"70vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",Oa,[(0,t._)("div",Xa,(0,q.zw)(e.$t("fileManagerToolbarDialogNewFile.titleDialog")),1),(0,t.Wm)(a,{icon:"fas fa-times",flat:"",round:"",dense:"",onClick:l[0]||(l[0]=e=>n.value=!1)})]),(0,t.Wm)(o,{class:"q-mt-none"}),(0,t.Wm)(i,{class:"q-py-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(I.Z,{label:e.$t("fileManagerToolbarDialogNewFile.labelInputNameFile"),prefix:`${r.value}/`,icon:"sym_s_description",value:s.value,"onUpdate:value":l[1]||(l[1]=e=>s.value=e),maxLength:"256",rules:[l=>""!==l&&null!==l||e.$t("fileManagerToolbarDialogNewFile.fieldRequired"),()=>c.value||e.$t("fileManagerToolbarDialogNewFile.onlyAlphaNumeric")]},null,8,["label","prefix","value","rules"])])),_:1}),(0,t.Wm)(u,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(N.Z,{color:"grey-8",label:e.$t("fileManagerToolbarDialogNewFile.btnCancel"),onClick:l[2]||(l[2]=e=>n.value=!1)},null,8,["label"]),(0,t.Wm)(N.Z,{icon:"sym_s_note_add",label:e.$t("fileManagerToolbarDialogNewFile.btnCreateFile"),disable:!r.value||!c.value,onClick:l[3]||(l[3]=e=>d())},null,8,["label","disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ja=Ga,et=Ja;x()(Ga,"components",{QDialog:pe.Z,QCard:ge.Z,QBtn:$.Z,QSeparator:ve.Z,QCardSection:fe.Z,QCardActions:we.Z});const lt=(0,t.aZ)({__name:"FileManagerToolbarBtnNewFile",setup(e){const l=(0,L.iH)(!1),a=(0,L.iH)(0);function o(){l.value=!0,a.value++}return(e,i)=>{const n=(0,t.up)("q-tooltip"),s=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(et,{showDialogNewFile:l.value,"onUpdate:showDialogNewFile":i[0]||(i[0]=e=>l.value=e),key:a.value},null,8,["showDialogNewFile"])),(0,t.Wm)(s,{icon:"sym_s_note_add",color:"primary",round:"",onClick:i[1]||(i[1]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{class:"bg-primary",style:{"font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnNewFile.btnNewFile")),1)])),_:1})])),_:1})])}}}),at=lt,tt=at;x()(lt,"components",{QBtn:$.Z,QTooltip:R.Z});var ot=a(85027);const it=[null,"","php","html","css","shell","js","ts","xhtml","scss","sass","sh","txt","md","xml","go","log"],nt={class:"flex justify-start items-center"},st={class:"flex justify-end items-center"},rt=(0,t.aZ)({__name:"FileManagerToolbar",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getCurrentAbsolutePath)),o=(0,t.Fl)((()=>l.getActiveRowTable)),i=(0,t.Fl)((()=>l.getListSelectedPaths)),n=(0,t.Fl)({get:()=>l.getSelectedPathOrActiveRow,set:e=>{l.setSelectedPathOrActiveRow(e)}}),s=(0,t.Fl)((()=>1===i.value.length?(n.value=i.value[0],n.value):(n.value=o.value,n.value))),r=(0,t.Fl)((()=>"/"===a.value)),u=(0,t.Fl)((()=>"/app/.trash"===a.value)),c=(0,t.Fl)((()=>!(i.value.length<=1)||("directory"===s.value.mimeType||""===s.value.path))),d=(0,t.Fl)((()=>{const e=512e4;return i.value.length>1||"directory"===s.value.mimeType||s.value.size>e||""===s.value.path||!it.includes(s.value.extension)})),m=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length)),p=(0,t.Fl)((()=>""===s.value.path||"directory"===s.value.mimeType)),g=(0,t.Fl)((()=>""===s.value.path||"directory"===s.value.mimeType)),v=(0,t.Fl)((()=>""===s.value.path)),f=(0,t.Fl)((()=>""===s.value.path)),w=(0,t.Fl)((()=>""===s.value.path)),b=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length)),h=(0,t.Fl)((()=>ot.g.includes(s.value.extension))),y=(0,t.Fl)((()=>""===s.value.path&&0===i.value.length));return(e,l)=>{const a=(0,t.up)("q-toolbar");return(0,t.wg)(),(0,t.j4)(a,{class:"flex justify-between file-manager-toolbar-bg"},{default:(0,t.w5)((()=>[(0,t._)("div",nt,[(0,t.Wm)(B,{class:"q-mr-sm"}),(0,t.Wm)(U,{isDisabled:r.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(j,{class:"q-ma-sm"}),(0,t.Wm)(Fe,{class:"q-ma-sm"}),(0,t.Wm)(qe,{class:"q-ma-sm"}),(0,t.Wm)(tt,{class:"q-ma-sm"}),u.value?((0,t.wg)(),(0,t.j4)(Re,{key:0,class:"q-ma-sm"})):((0,t.wg)(),(0,t.j4)(Ee,{key:1,class:"q-ma-sm"}))]),(0,t._)("div",st,[(0,t.Wm)(He,{isDisabled:c.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(gl,{isDisabled:d.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Pl,{isDisabled:m.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)($l,{isDisabled:p.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Al,{isDisabled:g.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(Gl,{isDisabled:v.value,class:"q-ma-sm"},null,8,["isDisabled"]),(0,t.Wm)(ha,{isDisabled:f.value,class:"q-ma-sm"},null,8,["isDisabled"]),h.value?((0,t.wg)(),(0,t.j4)(Wa,{key:0,isDisabled:w.value,class:"q-ma-sm"},null,8,["isDisabled"])):((0,t.wg)(),(0,t.j4)(Ia,{key:1,isDisabled:b.value,class:"q-ma-sm"},null,8,["isDisabled"])),(0,t.Wm)(Ka,{isDisabled:y.value,class:"q-ma-sm"},null,8,["isDisabled"])])])),_:1})}}});var ut=a(51663);const ct=rt,dt=ct;x()(rt,"components",{QToolbar:ut.Z});const mt=(0,t.aZ)({__name:"FileManagerSideBarTreeView",setup(e){const l=k(),a=(0,L.iH)(0),o=(0,t.Fl)({get:()=>l.getActiveRowTable,set:e=>{l.setActiveRowTable(e)}}),i=(0,t.Fl)({get:()=>l.getPathsTreeView,set:e=>{l.setPathsTreeView(e)}}),n=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>{l.setKeyTreeView(e)}}),s=(0,t.Fl)({get:()=>l.getCurrentAbsolutePath,set:e=>{l.setCurrentAbsolutePath(e)}}),r=(0,t.Fl)({get:()=>l.getSelectedPath,set:e=>{l.setSelectedPath(e)}}),u=(0,t.Fl)({get:()=>l.getFilesCurrentPath,set:e=>{l.setFilesCurrentPath(e)}});function c(e){if(void 0===e||null===e)return;const t=new A.Z;"/"===e?l.setIsLoadingHomeDir(!0):(0,re.Q)(),t.getCurrentPath(e).then((l=>{u.value=l.data.body,"/"===e?d(l.data.body):m(i.value,e,l.data.body),a.value++})).catch((e=>{console.error(e)})).finally((()=>{o.value={name:"",path:"",mimeType:"",extension:"",permissions:"",size:0,group:"",gid:0,owner:"",uid:0,updatedAt:0},setTimeout((()=>{l.setIsLoadingHomeDir(!1),(0,re.Z)()}),500)}))}function d(e){i.value=[],i.value.push({label:"/",path:"/",icon:"sym_s_home",iconColor:"grey-7",children:[]}),e.forEach((e=>{"directory"===e.mimeType&&i.value[0].children.push({label:e.name,path:e.path,icon:"sym_s_folder",iconColor:"yellow-9",children:[]})}))}function m(e,l,a){e.forEach((e=>{if(e.path===l)return e.icon="sym_s_folder_open",e.children=[],void a.forEach((l=>{"directory"===l.mimeType&&e.children.push({label:l.name,path:l.path,icon:".trash"===l.name?"sym_s_delete":"sym_s_folder",iconColor:".trash"===l.name?"grey-8":"yellow-9",children:[]})}));m(e.children,l,a)}))}return(0,t.YP)(s,(e=>{c(e)})),(0,t.YP)(r,(e=>{s.value=e.path})),(0,t.YP)(n,(()=>{setTimeout((()=>{c(s.value)}),200)})),(0,t.wF)((()=>{s.value="/",c(s.value)})),(e,l)=>{const o=(0,t.up)("q-tree");return(0,t.wg)(),(0,t.j4)(o,{key:a.value,nodes:i.value,selected:s.value,"onUpdate:selected":l[0]||(l[0]=e=>s.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"])}}}),pt=mt,gt=pt;x()(mt,"components",{QTree:fl.Z});const vt=(0,t.aZ)({__name:"FileManagerTableMenuRemove",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,L.iH)(!1),i=(0,L.iH)(400),n=(0,L.iH)(""),s=(0,L.iH)(""),r=(0,L.iH)(!1),u=(0,t.Fl)((()=>l.getActiveRowTable)),c=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function d(){i.value++,s.value=g(),o.value=!0}function m(){o.value=!1}function p(e){(0,re.Q)();const t=new A.Z;let n=[];e.forEach((e=>{n.push(e.path)})),t.removeFile({sourcePaths:n}).then((()=>{const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath),t=e?`${a("fileManagerToolbarBtnRemove.msgRemovePermanentSuccess")}`:`${a("fileManagerToolbarBtnRemove.msgRemoveSuccess")}`;(0,se.LX)(t),o.value=!1,i.value++,c.value++,o.value=!1,r.value=!1})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnRemove.msgRemoveError")}`)})).finally((()=>{(0,re.Z)()}))}function g(){const e=RegExp(/.trash/).test(l.getCurrentAbsolutePath);return e?`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFileTrash",{fileName:u.value.name,mimeType:"directory"===u.value.mimeType?"directory":"file"})}`:`${a("fileManagerToolbarBtnRemove.msgConfirmRemoveOneFile",{fileName:u.value.name,mimeType:"directory"===u.value.mimeType?"directory":"file"})}`}return(0,t.YP)(r,(e=>{!0===e&&p([u.value])})),(0,t.YP)(o,(e=>{!1!==e&&(n.value="directory"===u.value.mimeType?`${a("fileManagerToolbarBtnRemove.btnRemoveDir")}`:`${a("fileManagerToolbarBtnRemove.btnRemoveFile")}`)})),(e,l)=>{const a=(0,t.up)("q-icon"),i=(0,t.up)("q-item-section"),r=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(Pe.Z,{showDeleteDialog:o.value,"onUpdate:showDeleteDialog":l[2]||(l[2]=e=>o.value=e),titleDialog:n.value,messageToDelete:s.value},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(N.Z,{label:e.$t("fileManagerToolbarBtnRemove.btnCancel"),color:"grey-8",onClick:l[0]||(l[0]=e=>m())},null,8,["label"]),(0,t.Wm)(N.Z,{label:n.value,color:"negative",onClick:l[1]||(l[1]=e=>d())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete"]),(0,t._)("div",null,[(0,t.Wm)(r,{clickable:"",onClick:l[3]||(l[3]=e=>d())},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"sym_s_delete",size:"16px"})])),_:1}),(0,t.Wm)(i,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"===u.value.mimeType?e.$t("fileManagerToolbarBtnRemove.btnRemoveDir"):e.$t("fileManagerToolbarBtnRemove.btnRemoveFile")),1)])),_:1})])),_:1})])],64)}}});var ft=a(490),wt=a(76749);const bt=vt,ht=bt;x()(vt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const yt=(0,t.aZ)({__name:"FileManagerTableMenuDownload",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getActiveRowTable));function o(){if(void 0===a.value.path)return;(0,re.Q)();const e=new A.Z;e.getFileDownloadBlob(a.value).then((e=>{let l=document.createElement("a");document.body.appendChild(l),l.style="display: none";const t=window.URL.createObjectURL(e);l.href=t,l.download=a.value.name,l.click(),window.URL.revokeObjectURL(t)})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,e.msg)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-icon"),i=(0,t.up)("q-item-section"),n=(0,t.up)("q-item"),s=(0,t.Q2)("close-popup");return(0,t.wy)(((0,t.wg)(),(0,t.j4)(n,{clickable:"",onClick:l[0]||(l[0]=e=>o())},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"fas fa-file-download",size:"16px"})])),_:1}),(0,t.Wm)(i,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDownload.btnDownload")),1)])),_:1})])),_:1})),[[s]])}}});var _t=a(62146);const Ft=yt,Dt=Ft;x()(yt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z}),x()(yt,"directives",{ClosePopup:_t.Z});const Tt=(0,t.aZ)({__name:"FileManagerTableMenuRenameFile",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Kl,{showDialogRename:o.value,"onUpdate:showDialogRename":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogRename","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-edit",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"!==i.value.mimeType?e.$t("fileManagerToolbarBtnRenameFile.btnRenameFile"):e.$t("fileManagerToolbarBtnRenameFile.btnRenameDir")),1)])),_:1})])),_:1})])}}}),Ct=Tt,xt=Ct;x()(Tt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Mt=(0,t.aZ)({__name:"FileManagerTableMenuDuplicateFile",setup(e){const l=k(),a=(0,ue.QT)().t,o=(0,t.Fl)((()=>l.getActiveRowTable)),i=(0,t.Fl)({get:()=>l.getKeyTreeView,set:e=>l.setKeyTreeView(e)});function n(){(0,re.Q)();const e=new A.Z,l=o.value.path.replace("."+o.value.extension,""),t=l+Date.now()+"."+o.value.extension;e.copyFile({sourcePath:o.value.path,destinationPath:t}).then((()=>{(0,se.LX)(`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileSuccess",{fileName:o.value.name})}`),i.value++})).catch((e=>{console.error(e),(0,se.s9)(e.response.data,`${a("fileManagerToolbarBtnDuplicateFile.msgDuplicateFileError",{fileName:o.value.name})}`)})).finally((()=>{(0,re.Z)()}))}return(e,l)=>{const a=(0,t.up)("q-icon"),o=(0,t.up)("q-item-section"),i=(0,t.up)("q-item"),s=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.wy)(((0,t.wg)(),(0,t.j4)(i,{clickable:"",onClick:l[0]||(l[0]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"sym_s_copy_all",size:"16px"})])),_:1}),(0,t.Wm)(o,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnDuplicateFile.btnDuplicateFile")),1)])),_:1})])),_:1})),[[s]])])}}}),Zt=Mt,Wt=Zt;x()(Mt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z}),x()(Mt,"directives",{ClosePopup:_t.Z});const qt=(0,t.aZ)({__name:"FileManagerTableMenuEditCode",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(dl,{showDialogEditCode:o.value,"onUpdate:showDialogEditCode":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditCode","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-code",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditCode.btnEditCode")),1)])),_:1})])),_:1})])}}}),Pt=qt,kt=Pt;x()(qt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Qt=(0,t.aZ)({__name:"FileManagerTableMenuCopy",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Hl,{showDialogCopy:o.value,"onUpdate:showDialogCopy":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogCopy","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-copy",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCopy.btnCopy")),1)])),_:1})])),_:1})])}}}),$t=Qt,Rt=$t;x()(Qt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const zt=(0,t.aZ)({__name:"FileManagerTableMenuMove",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(Zl,{showDialogMove:o.value,"onUpdate:showDialogMove":l[0]||(l[0]=e=>o.value=e),key:a.value},null,8,["showDialogMove"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-truck-arrow-right",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)("directory"!==i.value.mimeType?e.$t("fileManagerToolbarBtnMove.btnMoveFile"):e.$t("fileManagerToolbarBtnMove.btnMoveDir")),1)])),_:1})])),_:1})])}}}),Bt=zt,Et=Bt;x()(zt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const St=(0,t.aZ)({__name:"FileManagerTableMenuExtract",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(xa,{showDialogExtract:o.value,"onUpdate:showDialogExtract":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogExtract","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-file-zipper",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnExtract.btnExtract")),1)])),_:1})])),_:1})])}}}),Ut=St,Ht=Ut;x()(St,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Vt=(0,t.aZ)({__name:"FileManagerTableMenuCompress",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ja,{showDialogCompress:o.value,"onUpdate:showDialogCompress":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,listSelectedPaths:[i.value],key:a.value},null,8,["showDialogCompress","selectedFile","listSelectedPaths"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"far fa-file-zipper",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnCompress.btnCompress")),1)])),_:1})])),_:1})])}}}),jt=Vt,At=jt;x()(Vt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Nt=(0,t.aZ)({__name:"FileManagerTableMenuEditPermissions",setup(e){const l=k(),a=(0,L.iH)(300),o=(0,L.iH)(!1),i=(0,t.Fl)((()=>l.getActiveRowTable));function n(){a.value++,o.value=!0}return(e,l)=>{const s=(0,t.up)("q-icon"),r=(0,t.up)("q-item-section"),u=(0,t.up)("q-item");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(fa,{showDialogEditPermissions:o.value,"onUpdate:showDialogEditPermissions":l[0]||(l[0]=e=>o.value=e),selectedFile:i.value,key:a.value},null,8,["showDialogEditPermissions","selectedFile"])),(0,t.Wm)(u,{clickable:"",onClick:l[1]||(l[1]=e=>n())},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"fas fa-person-military-pointing",size:"16px"})])),_:1}),(0,t.Wm)(r,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerToolbarBtnEditPermissions.btnEditPermissions")),1)])),_:1})])),_:1})])}}}),It=Nt,Lt=It;x()(Nt,"components",{QItem:ft.Z,QItemSection:wt.Z,QIcon:tl.Z});const Yt=(0,t.aZ)({__name:"FileManagerTableMenu",setup(e){const l=k(),a=(0,t.Fl)((()=>l.getActiveRowTable)),o=(0,t.Fl)((()=>""!==a.value.path&&"directory"!==a.value.mimeType));function i(){const e=5120;return ot.g.includes(a.value.extension)&&a.value.size<=e}function n(){const e=512e4;return it.includes(a.value.extension)&&a.value.size<=e&&"directory"!==a.value.mimeType}return(e,l)=>{const a=(0,t.up)("q-list"),s=(0,t.up)("q-menu");return(0,t.wg)(),(0,t.j4)(s,{"touch-position":"","context-menu":""},{default:(0,t.w5)((()=>[(0,t.Wm)(a,{dense:"",style:{"min-width":"80px"},class:"file-manager-menu"},{default:(0,t.w5)((()=>[o.value?((0,t.wg)(),(0,t.j4)(Dt,{key:0})):(0,t.kq)("",!0),n()?((0,t.wg)(),(0,t.j4)(kt,{key:1})):(0,t.kq)("",!0),(0,t.Wm)(Et),o.value?((0,t.wg)(),(0,t.j4)(Wt,{key:2})):(0,t.kq)("",!0),o.value?((0,t.wg)(),(0,t.j4)(Rt,{key:3})):(0,t.kq)("",!0),(0,t.Wm)(xt),(0,t.Wm)(Lt),i()?((0,t.wg)(),(0,t.j4)(Ht,{key:4})):((0,t.wg)(),(0,t.j4)(At,{key:5})),(0,t.Wm)(ht)])),_:1})])),_:1})}}});var Kt=a(56362),Ot=a(13246);const Xt=Yt,Gt=Xt;x()(Yt,"components",{QMenu:Kt.Z,QList:Ot.Z,QItem:ft.Z});var Jt=a(50168);function eo(e){const l=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=0;const t=e<0,o=Math.abs(e);let i=o;while(i>=1024&&ab(e.path),headerClasses:"bg-primary text-white",style:"width:50%",sortable:!0},{name:"size",label:a("fileManagerTable.colSize"),align:"center",field:"size",format:e=>eo(e),sortable:!0},{name:"mimeType",label:a("fileManagerTable.colType"),align:"center",field:"mimeType",classes:"hidden",headerClasses:"hidden",sortable:!0},{name:"updatedAt",label:a("fileManagerTable.colLastModifiedDate"),align:"center",field:"updatedAt",format:e=>(0,Jt.Z)({epoch:e,onlyDate:!1}),sortable:!0},{name:"permissions",label:a("fileManagerTable.colPermission"),align:"center",field:"permissions"}]),u=(0,t.Fl)({get:()=>l.getActiveRowTable,set:e=>{l.setActiveRowTable(e)}}),c=(0,t.Fl)((()=>l.getFilesCurrentPath)),d=(0,t.Fl)({get:()=>l.getListSelectedPaths,set:e=>{l.setListSelectedPaths(e)}}),m=(0,t.Fl)({get:()=>l.getSelectedPath,set:e=>{l.setSelectedPath(e)}}),p=(0,t.Fl)({get:()=>l.getIsSelectedAllPaths,set:e=>{l.setIsSelectedAllPaths(e)}}),g=(0,t.Fl)((()=>Math.ceil(c.value.length/s.value.rowsPerPage)));function v(e){let l="sym_s_description";const a={dir:"sym_s_folder",".trash":"sym_s_delete",html:"sym_s_html",php:"sym_s_php",js:"sym_s_javascript",css:"sym_s_css",png:"sym_s_image",jpg:"sym_s_image",zip:"sym_s_folder_zip",rar:"sym_s_folder_zip",gzip:"sym_s_folder_zip","tar.gz":"sym_s_folder_zip",tar:"sym_s_folder_zip"};for(let t in a)if(e.match(t)){l=a[t];break}return l}function f(e,l,a){u.value=e,n.value=a,d.value=[]}function w(e){return n.value===e?"bg-row-active":"bg-transparent"}function b(e){return n.value===e?"bg-transparent":"component-table-td-main"}function h(){return 0===d.value.length?"":1===d.value.length?a("fileManagerTable.oneFileSelected",{total:c.value.length}):a("fileManagerTable.multiFileModelsSelected",{quantity:d.value.length,total:c.value.length})}function y(e,l){"directory"===e&&(m.value=l)}return(0,t.YP)(p,(e=>{d.value=!0===e?c.value:[]})),(0,t.YP)(d,(e=>{e.length>0&&(n.value="",u.value={name:"",path:"",mimeType:"",extension:"",permissions:"",size:0,gid:0,group:"",uid:0,owner:"",updatedAt:0})})),(e,l)=>{const a=(0,t.up)("q-icon"),n=(0,t.up)("q-input"),u=(0,t.up)("q-space"),m=(0,t.up)("q-checkbox"),b=(0,t.up)("q-th"),_=(0,t.up)("q-tr"),F=(0,t.up)("q-td"),D=(0,t.up)("q-table"),T=(0,t.up)("q-pagination");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(D,{flat:"",bordered:"","hide-pagination":"","row-key":"path",selection:"multiple",color:"primary","no-data-label":e.$t("fileManagerTable.notFoundFiles"),"no-results-label":e.$t("fileManagerTable.notFoundFiles"),rows:c.value,columns:r.value,selected:d.value,"onUpdate:selected":l[4]||(l[4]=e=>d.value=e),"selected-rows-label":h,pagination:s.value,"onUpdate:pagination":l[5]||(l[5]=e=>s.value=e),filter:i.value},{top:(0,t.w5)((()=>[(0,t.Wm)(n,{rounded:"",outlined:"",debounce:"300",color:"primary",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=e=>i.value=e),"stack-label":"",label:e.$t("fileManagerTable.labelInputSearch"),placeholder:e.$t("fileManagerTable.placeholderInputSearch"),style:{width:"300px"},maxlength:"32"},{prepend:(0,t.w5)((()=>[(0,t.Wm)(a,{name:"fas fa-search"})])),_:1},8,["modelValue","label","placeholder"]),(0,t.Wm)(u),(0,t.Wm)(qa.Z,{options:["10","25","50","100"],label:e.$t("fileManagerTable.labelSelectRowsViews"),style:{width:"250px"},selected:s.value.rowsPerPage,"onUpdate:selected":l[1]||(l[1]=e=>s.value.rowsPerPage=e)},null,8,["label","selected"])])),header:(0,t.w5)((a=>[(0,t.Wm)(_,{props:a,class:"file-manager-table-th-bg"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{style:{width:"25px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:p.value,"onUpdate:modelValue":l[2]||(l[2]=e=>p.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(b,{style:{width:"25px"}}),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(b,{key:e.name,props:a,style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.label),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(b,{style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(e.$t("fileManagerTable.colUserAndGroup")),1)])),_:1})])),_:2},1032,["props"])])),body:(0,t.w5)((e=>[(0,t.Wm)(_,{props:e,onDblclick:l=>y(e.row.mimeType,e.row),onClick:l=>f(e.row,e.row.extension,e.row.path),onContextmenu:(0,o.iM)((l=>f(e.row,e.row.extension,e.row.path)),["prevent"]),class:(0,q.C_)(w(e.row.path))},{default:(0,t.w5)((()=>[(0,t.Wm)(F,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:d.value,"onUpdate:modelValue":l[3]||(l[3]=e=>d.value=e),val:e.row},null,8,["modelValue","val"])])),_:2},1024),(0,t._)("td",null,[(0,t.Wm)(a,{size:"20px",name:v(".trash"===e.row.name?".trash":e.row.mimeType),color:".trash"!==e.row.name?"yellow-9":"grey-8"},null,8,["name","color"])]),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.cols,(l=>((0,t.wg)(),(0,t.j4)(F,{key:l.name,props:e},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(l.value),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(F,{class:"text-center file-manager-td-user"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,q.zw)(`${e.row.owner}:${e.row.group}`),1)])),_:2},1024),(0,t.Wm)(Gt)])),_:2},1032,["props","onDblclick","onClick","onContextmenu","class"])])),_:1},8,["no-data-label","no-results-label","rows","columns","selected","pagination","filter"]),(0,t._)("div",lo,[(0,t.Wm)(T,{modelValue:s.value.page,"onUpdate:modelValue":l[6]||(l[6]=e=>s.value.page=e),color:"primary",max:g.value,size:"md"},null,8,["modelValue","max"])])])}}});var to=a(84277),oo=a(90136),io=a(31233),no=a(21682),so=a(11221),ro=a(67220),uo=a(80996);const co=ao,mo=co;x()(ao,"components",{QTable:to.Z,QInput:Oe.Z,QIcon:tl.Z,QSpace:oo.Z,QTr:io.Z,QTh:no.Z,QCheckbox:so.Z,QTd:ro.Z,QPagination:uo.Z});const po={style:{overflow:"hidden"}},go=(0,t.aZ)({__name:"FileManagerIndex",setup(e){const l=(0,L.iH)(17),a=(0,L.iH)(0),i=k(),n=(0,t.Fl)((()=>i.getFilesCurrentPath)),s=(0,t.Fl)((()=>i.getIsLoadingHomeDir)),r=(0,t.Fl)({get:()=>i.getIsSelectedAllPaths,set:e=>{i.setIsSelectedAllPaths(e)}}),u=(0,t.Fl)({get:()=>i.getListSelectedPaths,set:e=>{i.setListSelectedPaths(e)}});return(0,t.YP)(n,(()=>{r.value=!1,u.value=[],a.value++})),(e,i)=>{const n=(0,t.up)("q-card-section"),r=(0,t.up)("q-card"),u=(0,t.up)("q-avatar"),c=(0,t.up)("q-splitter"),d=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(d,{class:"q-px-sm"},{default:(0,t.w5)((()=>[(0,t._)("div",po,[(0,t.wy)((0,t.Wm)(W,null,null,512),[[o.F8,!0===s.value]]),(0,t.wy)((0,t._)("div",null,[(0,t.Wm)(dt),(0,t.Wm)(c,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=e=>l.value=e),style:{"margin-top":"15px"}},{before:(0,t.w5)((()=>[(0,t.Wm)(r,{flat:"",class:"q-mr-sm scroll-bar",style:{"overflow-y":"auto","overflow-x":"hidden",height:"84vh"}},{default:(0,t.w5)((()=>[(0,t.Wm)(n,null,{default:(0,t.w5)((()=>[(0,t.Wm)(gt)])),_:1})])),_:1})])),separator:(0,t.w5)((()=>[(0,t.Wm)(u,{color:"primary","text-color":"white",size:"32px",icon:"fas fa-arrows-left-right"})])),after:(0,t.w5)((()=>[(0,t.Wm)(r,{flat:"",class:"scroll-bar",style:{"overflow-y":"auto","overflow-x":"hidden",height:"84vh"}},{default:(0,t.w5)((()=>[(0,t.Wm)(n,null,{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)(mo,{key:a.value}))])),_:1})])),_:1})])),_:1},8,["modelValue"])],512),[[o.F8,!1===s.value]])])])),_:1})}}});var vo=a(69885),fo=a(7498),wo=a(61357);const bo=go,ho=bo;x()(go,"components",{QPage:vo.Z,QSplitter:fo.Z,QCard:ge.Z,QCardSection:fe.Z,QAvatar:wo.Z})},42480:()=>{}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/693.69543928.js b/src/presentation/ui/dist/js/693.95a04be3.js similarity index 95% rename from src/presentation/ui/dist/js/693.69543928.js rename to src/presentation/ui/dist/js/693.95a04be3.js index 48e022ba7..6992e948a 100644 --- a/src/presentation/ui/dist/js/693.69543928.js +++ b/src/presentation/ui/dist/js/693.95a04be3.js @@ -1 +1 @@ -"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[693],{31555:(e,a,s)=>{s.r(a),s.d(a,{default:()=>da});var t=s(59835),l=s(60499),o=s(86970),r=s(25121),n=s(84278),d=s(89906),i=s(88900),u=s(69036),b=function(e,a,s,t){function l(e){return e instanceof s?e:new s((function(a){a(e)}))}return new(s||(s=Promise))((function(s,o){function r(e){try{d(t.next(e))}catch(a){o(a)}}function n(e){try{d(t["throw"](e))}catch(a){o(a)}}function d(e){e.done?s(e.value):l(e.value).then(r,n)}d((t=t.apply(e,a||[])).next())}))};class m extends u.Z{getDatabases(e){return b(this,void 0,void 0,(function*(){return this.request.get(`/v1/database/${e}/`)}))}createDatabase(e,a){return b(this,void 0,void 0,(function*(){return this.request.post(`/v1/database/${e}/`,a)}))}deleteDatabase(e,a){return b(this,void 0,void 0,(function*(){return this.request.delete(`/v1/database/${e}/${a}/`)}))}createDatabaseUser(e,a,s){return b(this,void 0,void 0,(function*(){return this.request.post(`/v1/database/${e}/${a}/user/`,s)}))}deleteDatabaseUser(e,a,s){return b(this,void 0,void 0,(function*(){return this.request.delete(`/v1/database/${e}/${a}/user/${s}/`)}))}}var c=s(3746);const g=(0,c.Q_)("databasesStatus",{state:()=>({selectedTab:"mysql",keyDatabasesMysqlTable:0,keyDatabasesPostgresTable:0}),getters:{getSelectedTab(e){return e.selectedTab},getKeyDatabasesMysqlTable(e){return e.keyDatabasesMysqlTable},getKeyDatabasesPostgresTable(e){return e.keyDatabasesPostgresTable}},actions:{setSelectedTab(e){this.selectedTab=e},setKeyDatabasesMysqlTable(e){this.keyDatabasesMysqlTable=e},setKeyDatabasesPostgresTable(e){this.keyDatabasesPostgresTable=e}}}),p=(0,t.aZ)({__name:"DatabasesDialogRemoveDatabase",props:{showDialogRemoveDatabase:{type:Boolean},databaseName:{},databaseType:{}},emits:["update:showDialogRemoveDatabase"],setup(e,{emit:a}){const s=e,o=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogRemoveDatabase),c=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),p=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function v(){const e=new m;e.deleteDatabase(s.databaseType.toLowerCase(),s.databaseName).then((()=>{(0,i.LX)(`${o("databasesDialogRemove.messageRemoveSuccess",{database:s.databaseName})}`),"mysql"===s.databaseType.toLowerCase()?c.value++:p.value++,b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${o("databasesDialogRemove.messageRemoveError",{database:s.databaseName})}`)}))}return(0,t.YP)((()=>s.showDialogRemoveDatabase),(e=>{b.value=e})),(0,t.YP)((()=>b.value),(e=>{a("update:showDialogRemoveDatabase",e)})),(e,a)=>((0,t.wg)(),(0,t.j4)(d.Z,{showDeleteDialog:b.value,"onUpdate:showDeleteDialog":a[2]||(a[2]=e=>b.value=e),titleDialog:e.$t("databasesDialogRemove.messageConfirmRemove"),messageToDelete:e.$t("databasesDialogRemove.messageConfirmRemove",{databaseName:e.databaseName}),warningToDelete:e.$t("databasesDialogRemove.warningRemoveDatabase"),customStyle:{"min-width":"775px"}},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogRemove.btnCancel"),color:"grey-7",onClick:a[0]||(a[0]=e=>b.value=!1)},null,8,["label"]),(0,t.Wm)(n.Z,{color:"negative",label:e.$t("databasesDialogRemove.btnRemove"),onClick:a[1]||(a[1]=e=>v())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),v=p,w=v;var y=s(19302);const D=(0,t.aZ)({__name:"DatabasesRemoveDatabase",props:{databaseName:{},databaseType:{}},setup(e){const a=(0,l.iH)(!1),s=(0,t.Fl)((()=>{const e=(0,y.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));return(e,l)=>((0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(w,{showDialogRemoveDatabase:a.value,"onUpdate:showDialogRemoveDatabase":l[0]||(l[0]=e=>a.value=e),databaseName:e.databaseName,databaseType:e.databaseType,imagePath:s.value},null,8,["showDialogRemoveDatabase","databaseName","databaseType","imagePath"]),(0,t.Wm)(n.Z,{icon:"sym_s_delete",class:"q-mr-md",color:"negative",colorTooltip:"bg-negative",textTooltip:e.$t("databasesRemoveDatabase.tooltipRemove"),onClick:l[1]||(l[1]=e=>a.value=!0),style:{"font-size":"12px"},label:""},null,8,["textTooltip"])]))}}),U=D,h=U;var _=s(15521);const T={class:"flex justify-between items-center"},f={class:"title-dialog"},q=(0,t.aZ)({__name:"DatabasesDialogCreateDatabase",props:{showDialogCreateDatabase:{type:Boolean},databaseType:{default:"MySQL"}},emits:["update:showDialogCreateDatabase"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogCreateDatabase),c=(0,l.iH)(""),p=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),v=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function w(){const e=new m;e.createDatabase(s.databaseType.toLowerCase(),{dbName:c.value}).then((()=>{(0,i.LX)(`${d("databasesDialogCreate.createDataBaseSuccess",{database:c.value})}`),"MySQL"===s.databaseType?p.value++:v.value++,c.value="",b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${d("databasesDialogCreate.createDataBaseError",{database:c.value})}`)}))}return(0,t.YP)(b,(e=>{a("update:showDialogCreateDatabase",e)})),(0,t.YP)((()=>s.showDialogCreateDatabase),(e=>{b.value=e})),(e,a)=>{const s=(0,t.up)("q-btn"),l=(0,t.up)("q-card-section"),r=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),i=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(i,{modelValue:b.value,"onUpdate:modelValue":a[4]||(a[4]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"dialog-card-bg",style:{width:"700px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",T,[(0,t._)("div",f,(0,o.zw)(e.$t("databasesDialogCreate.titleDialogCreate"))+" "+(0,o.zw)(e.databaseType),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>(b.value=!1,c.value=""))})]),(0,t.Wm)(l,{class:"q-mb-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_.Z,{label:e.$t("databasesDialogCreate.inputDataBaseName"),icon:"sym_s_database",value:c.value,"onUpdate:value":a[1]||(a[1]=e=>c.value=e),dataCy:"databases-dialog-create-input",maxLength:"32",minLength:"4",isError:/\W/i.test(c.value),msgError:e.$t("databasesDialogCreate.messageValidateError")},null,8,["label","value","isError","msgError"])])),_:1}),(0,t.Wm)(r,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogCreate.btnCancel"),color:"grey-7",onClick:a[2]||(a[2]=e=>(b.value=!1,c.value=""))},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_database",disable:c.value.length<4||/\W/i.test(c.value),label:e.$t("databasesDialogCreate.btnCreateDataBase"),color:"primary",onClick:a[3]||(a[3]=e=>w())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var C=s(32074),W=s(44458),P=s(68879),Z=s(63190),k=s(11821),x=s(69984),Q=s.n(x);const R=q,$=R;Q()(q,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QCardActions:k.Z});var E=s(61957),L=s(27974),S=s(26557),H=s(87713),N=s(63064);class M{constructor(){this.privilegesMySQL=["ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","INDEX","INSERT","LOCK TABLES","REFERENCES","SELECT","SHOW VIEW","TRIGGER","UPDATE"],this.privilegesPostgreSQL=["ALL PRIVILEGES"]}getPrivilegesMySQL(){return this.privilegesMySQL}getPrivilegesPostgreSQL(){return this.privilegesPostgreSQL}formatSelectedPrivileges(e){return e.map((e=>e.replace(/ /g,"-").toLowerCase()))}}var V=function(e,a,s,t){function l(e){return e instanceof s?e:new s((function(a){a(e)}))}return new(s||(s=Promise))((function(s,o){function r(e){try{d(t.next(e))}catch(a){o(a)}}function n(e){try{d(t["throw"](e))}catch(a){o(a)}}function d(e){e.done?s(e.value):l(e.value).then(r,n)}d((t=t.apply(e,a||[])).next())}))};const I={class:"flex justify-between items-center"},K={class:"title-dialog"},A={class:"row"},z=(0,t.aZ)({__name:"DatabasesDialogCreateUser",props:{showDialogCreateUser:{type:Boolean},databaseType:{},databasesList:{}},emits:["update:showDialogCreateUser"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogCreateUser),c=(0,l.iH)([]),p=(0,l.iH)([]),v=(0,l.iH)(""),w=(0,l.iH)(""),y=(0,l.iH)(!1),D=(0,l.iH)([]),U=(0,l.iH)(!1),h=(0,l.iH)([]),T=(0,t.Fl)((()=>y.value&&v.value.length>=4&&!/\W/i.test(v.value)&&p.value.length>=1)),f=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),q=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function C(){b.value=!1}function W(){return V(this,void 0,void 0,(function*(){let e=!1;for(let a of p.value)yield P(a).then((e=>{(0,i.LX)(e)})).catch((a=>{e=!0,console.error(a),(0,i.s9)(a.error,a.msgDefault)}));e||(setTimeout((()=>{C()}),1e3),"mysql"===s.databaseType?f.value++:q.value++)}))}function P(e){return new Promise(((a,t)=>{const l=new m;l.createDatabaseUser(s.databaseType,e,{password:w.value,username:v.value,dbName:e,privileges:!1===U.value?(new M).formatSelectedPrivileges(D.value):["all"]}).then((()=>{a(`${d("databasesDialogCreateUser.messageCreateUserSuccess",{user:v.value})}`)})).catch((e=>{console.error(e);const a={error:e.response.data,msgDefault:`${d("databasesDialogCreateUser.messageCreateUserError",{user:v.value})}`};t(a)}))}))}return(0,t.wF)((()=>{U.value=!0,h.value=(new M).getPrivilegesPostgreSQL(),"mysql"===s.databaseType&&(h.value=(new M).getPrivilegesMySQL())})),(0,t.YP)(U,(e=>{!1!==e&&(D.value=h.value)})),(0,t.YP)(D,(e=>{U.value=e.length===h.value.length})),(0,t.YP)(b,(e=>{a("update:showDialogCreateUser",e)})),(0,t.YP)((()=>s.showDialogCreateUser),(e=>{b.value=e})),(0,t.YP)((()=>s.databasesList),(e=>{c.value=[],e.forEach((e=>{c.value.push({value:e.name,label:e.name})}))}),{immediate:!0}),(e,a)=>{const s=(0,t.up)("q-btn"),l=(0,t.up)("q-card-section"),r=(0,t.up)("q-toggle"),d=(0,t.up)("q-card"),i=(0,t.up)("q-expansion-item"),u=(0,t.up)("AlertsWarning"),m=(0,t.up)("q-card-actions"),g=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(g,{modelValue:b.value,"onUpdate:modelValue":a[10]||(a[10]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"dialog-card-bg",style:{width:"750px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",I,[(0,t._)("div",K,(0,o.zw)(e.$t("databasesDialogCreateUser.titleDialogCreateUser")),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>C())})]),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(L.Z,{selected:p.value,"onUpdate:selected":a[1]||(a[1]=e=>p.value=e),label:e.$t("databasesDialogCreateUser.textSelectDatabases"),icon:"sym_s_database",options:c.value},null,8,["selected","label","options"])])),_:1}),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_.Z,{class:"q-mb-lg",label:e.$t("databasesDialogCreateUser.inputUsername"),icon:"sym_s_person",value:v.value,"onUpdate:value":a[2]||(a[2]=e=>v.value=e),dataCy:"databases-dialog-create-user-input",maxLength:"32",minLength:"4",isError:/\W/i.test(v.value),msgError:e.$t("databasesDialogCreateUser.messageInputError")},null,8,["label","value","isError","msgError"]),(0,t.Wm)(S.Z,{password:w.value,"onUpdate:password":a[3]||(a[3]=e=>w.value=e),minLength:16,dataCyInput:"databases-dialog-create-password-input"},null,8,["password"]),(0,t.Wm)(H.Z,{"onUpdate:password":a[4]||(a[4]=e=>w.value=e),class:"float-right",dataCy:"databases-dialog-create-generate-password"})])),_:1}),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.wy)((0,t.Wm)(N.Z,{password:w.value,isValidPassword:y.value,"onUpdate:isValidPassword":a[5]||(a[5]=e=>y.value=e)},null,8,["password","isValidPassword"]),[[E.F8,w.value]])])),_:1}),"mysql"===e.databaseType?((0,t.wg)(),(0,t.j4)(l,{key:0},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{label:e.$t("databasesDialogCreateUser.textPrivileges"),icon:"sym_s_person_add",class:"databases-label-expansion-item","expand-icon":"sym_s_expand_more","expanded-icon":"sym_s_expand_less"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"q-pa-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{color:"primary",class:"text-subtitle1 text-bold",label:e.$t("databasesDialogCreateUser.toggleSelectAll"),modelValue:U.value,"onUpdate:modelValue":a[6]||(a[6]=e=>U.value=e),"left-label":"","checked-icon":"sym_s_check","unchecked-icon":"sym_s_close"},null,8,["label","modelValue"]),(0,t._)("div",A,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(h.value,((e,s)=>((0,t.wg)(),(0,t.j4)(r,{key:s,color:"primary",class:"col-4",label:e,modelValue:D.value,"onUpdate:modelValue":a[7]||(a[7]=e=>D.value=e),val:e},null,8,["label","modelValue","val"])))),128))])])),_:1})])),_:1},8,["label"])])),_:1})):((0,t.wg)(),(0,t.j4)(l,{key:1},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textPostgresPrivileges"),class:"q-mt-md"},null,8,["message"])])),_:1})),(0,t.Wm)(m,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogCreateUser.btnCancel"),color:"grey-7",onClick:a[8]||(a[8]=e=>C())},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_person_add",disable:!T.value,label:e.$t("databasesDialogCreateUser.btnCreateUser"),color:"primary",onClick:a[9]||(a[9]=e=>W())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var j=s(50651),F=s(23175),Y=s(490);const B=z,O=B;Q()(z,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QExpansionItem:j.Z,QToggle:F.Z,QCardActions:k.Z,QItem:Y.Z});const X=(0,t.aZ)({__name:"DatabasesDialogRemoveUser",props:{showDialogRemoveUser:{type:Boolean},databaseUsername:{},databaseName:{},databaseType:{}},emits:["update:showDialogRemoveUser"],setup(e,{emit:a}){const s=e,o=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogRemoveUser),c=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),p=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function v(){const e=new m;e.deleteDatabaseUser(s.databaseType,s.databaseName,s.databaseUsername).then((()=>{(0,i.LX)(`${o("databasesDialogRemoveUser.messageRemoveUserSuccess",{user:s.databaseUsername})}`),"mysql"===s.databaseType?c.value++:p.value++,b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${o("databasesDialogRemoveUser.messageRemoveUserError",{user:s.databaseUsername})}`)}))}return(0,t.YP)((()=>s.showDialogRemoveUser),(e=>{b.value=e})),(0,t.YP)((()=>b.value),(e=>{a("update:showDialogRemoveUser",e)})),(e,a)=>((0,t.wg)(),(0,t.j4)(d.Z,{showDeleteDialog:b.value,"onUpdate:showDeleteDialog":a[2]||(a[2]=e=>b.value=e),titleDialog:e.$t("databasesDialogRemoveUser.titleDialogRemoveUser",{user:e.databaseUsername}),messageToDelete:e.$t("databasesDialogRemoveUser.messageConfirmRemove",{username:e.databaseUsername}),warningToDelete:e.$t("databasesDialogRemoveUser.warningRemoveUser"),customStyle:{"min-width":"650px"}},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogRemoveUser.btnCancel"),color:"grey-7",onClick:a[0]||(a[0]=e=>b.value=!1)},null,8,["label"]),(0,t.Wm)(n.Z,{color:"negative",label:e.$t("databasesDialogRemoveUser.btnRemove"),onClick:a[1]||(a[1]=e=>v())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),G=X,J=G,ee=["innerHTML"],ae=["innerHTML"],se=(0,t.aZ)({__name:"AlertsWarning",props:{showAlertsWarning:{type:Boolean,default:!1},message:{default:""},smallText:{default:""}},setup(e){return(e,a)=>{const s=(0,t.up)("q-icon"),l=(0,t.up)("q-banner");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(E.uT,{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"},{default:(0,t.w5)((()=>[e.showAlertsWarning?((0,t.wg)(),(0,t.j4)(l,{key:0,dense:"","inline-actions":"",class:"q-mb-lg text-black bg-warning"},{avatar:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"sym_s_warning",color:"black"})])),default:(0,t.w5)((()=>[(0,t._)("div",{class:"text-subtitle1",innerHTML:e.message},null,8,ee),(0,t._)("small",{innerHTML:e.smallText},null,8,ae)])),_:1})):(0,t.kq)("",!0)])),_:1})])}}});var te=s(47128),le=s(22857);const oe=se,re=oe;Q()(se,"components",{QBanner:te.Z,QIcon:le.Z});const ne={class:"flex justify-between items-center"},de={class:"title-dialog"},ie={class:"text-subtitle1"},ue={class:"text-bold"},be={class:"row"},me=(0,t.aZ)({__name:"DatabasesDialogUpdateUser",props:{showDialogUpdateUser:{type:Boolean},databaseType:{},databaseName:{},databaseUser:{}},emits:["update:showDialogUpdateUser"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogUpdateUser),c=(0,l.iH)([]),p=(0,l.iH)(""),v=(0,l.iH)(!1),w=(0,l.iH)([]),y=(0,l.iH)(!1),D=(0,t.Fl)((()=>v.value&&s.databaseUser.username.length>=4&&!/\W/i.test(s.databaseUser.username))),U=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),h=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function T(){p.value="",c.value=[],b.value=!1}function f(){switch(s.databaseType){case"mysql":w.value=(new M).getPrivilegesMySQL();break;case"postgresql":w.value=(new M).getPrivilegesPostgreSQL();break}}function q(){const e=new m;e.deleteDatabaseUser(s.databaseType,s.databaseName,s.databaseUser.username).then((()=>{e.createDatabaseUser(s.databaseType,s.databaseName,{password:p.value,dbName:s.databaseName,privileges:!1===y.value?(new M).formatSelectedPrivileges(c.value):["all"],username:s.databaseUser.username}).then((()=>{(0,i.LX)(d("databasesDialogUpdateUser.messageUpdateUserSuccess",{user:s.databaseUser.username})),T()}))})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,d("databasesDialogUpdateUser.messageUpdateUserError",{user:s.databaseUser.username}))})).finally((()=>{setTimeout((()=>{"mysql"===s.databaseType?U.value++:h.value++}),1e3)}))}return(0,t.YP)((()=>s.showDialogUpdateUser),(e=>{b.value=e})),(0,t.YP)(b,(e=>{a("update:showDialogUpdateUser",e)})),(0,t.YP)(y,(e=>{!1!==e&&(c.value=w.value)})),(0,t.YP)(c,(e=>{y.value=e.length===w.value.length})),(0,t.wF)((()=>{c.value=s.databaseUser.privileges.map((e=>e.replace(/-/g," ").toUpperCase())),f(),y.value=c.value.includes("ALL PRIVILEGES")})),(e,a)=>{const s=(0,t.up)("q-btn"),r=(0,t.up)("q-card-section"),i=(0,t.up)("q-toggle"),u=(0,t.up)("q-card"),m=(0,t.up)("q-expansion-item"),g=(0,t.up)("q-card-actions"),U=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(U,{modelValue:b.value,"onUpdate:modelValue":a[8]||(a[8]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{class:"dialog-card-bg",style:{width:"750px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ne,[(0,t._)("div",de,(0,o.zw)(e.$t("databasesDialogUpdateUser.titleDialogUpdateUser",{user:e.databaseUser.username})),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>T())})]),(0,t.Wm)(r,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",ie,[(0,t.Uk)((0,o.zw)(e.$t("databasesDialogUpdateUser.subtitleDialogUpdateUser",{type:e.databaseType}))+": ",1),(0,t._)("span",ue,(0,o.zw)(e.databaseName),1),(0,t.Wm)(re,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textAlertMessage"),class:"q-mt-md"},null,8,["message"])]),(0,t.Wm)(_.Z,{class:"q-mb-md",label:e.$t("databasesDialogUpdateUser.inputName"),icon:"sym_s_person",value:e.databaseUser.username,dataCy:"databases-dialog-update-user-input",disable:!0},null,8,["label","value"]),(0,t.Wm)(S.Z,{minLength:16,password:p.value,"onUpdate:password":a[1]||(a[1]=e=>p.value=e),dataCyInput:"databases-dialog-update-password-input"},null,8,["password"]),(0,t.Wm)(H.Z,{password:p.value,"onUpdate:password":a[2]||(a[2]=e=>p.value=e),class:"float-right",dataCy:"databases-dialog-update-generate-password"},null,8,["password"])])),_:1}),(0,t.Wm)(r,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.wy)((0,t.Wm)(N.Z,{password:p.value,"onUpdate:isValidPassword":a[3]||(a[3]=e=>v.value=e)},null,8,["password"]),[[E.F8,p.value]])])),_:1}),"mysql"===e.databaseType?((0,t.wg)(),(0,t.j4)(r,{key:0},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{label:e.$t("databasesDialogUpdateUser.textPrivileges"),icon:"sym_s_people",class:"databases-label-expansion-item"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{class:"q-pa-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{color:"primary",class:"text-subtitle1 text-bold",label:e.$t("databasesDialogUpdateUser.toggleSelectAll"),modelValue:y.value,"onUpdate:modelValue":a[4]||(a[4]=e=>y.value=e),"left-label":"","checked-icon":"sym_s_check","unchecked-icon":"sym_s_close"},null,8,["label","modelValue"]),(0,t._)("div",be,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(w.value,((e,s)=>((0,t.wg)(),(0,t.j4)(i,{key:s,color:"primary",class:"col-4",label:e,modelValue:c.value,"onUpdate:modelValue":a[5]||(a[5]=e=>c.value=e),val:e},null,8,["label","modelValue","val"])))),128))])])),_:1})])),_:1},8,["label"])])),_:1})):((0,t.wg)(),(0,t.j4)(r,{key:1},{default:(0,t.w5)((()=>[(0,t.Wm)(re,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textPostgresPrivileges"),class:"q-mt-md"},null,8,["message"])])),_:1})),(0,t.Wm)(g,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogUpdateUser.btnCancel"),color:"grey-7",onClick:a[6]||(a[6]=e=>T())},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_person",disable:!D.value,label:(0,l.SU)(d)("databasesDialogUpdateUser.btnUpdateUser"),color:"primary",onClick:a[7]||(a[7]=e=>q())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),ce=me,ge=ce;Q()(me,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QExpansionItem:j.Z,QToggle:F.Z,QCardActions:k.Z,QItem:Y.Z});const pe=(0,t.aZ)({__name:"DatabasesUsersActions",props:{databaseUser:{},databaseName:{}},setup(e){const a=(0,l.iH)(!1),s=(0,l.iH)(!1),r=(0,l.iH)(1e3),n=(0,t.Fl)((()=>{const e=(0,y.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));return(e,l)=>{const d=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ge,{showDialogUpdateUser:a.value,"onUpdate:showDialogUpdateUser":l[0]||(l[0]=e=>a.value=e),databaseName:e.databaseName,databaseType:e.databaseUser.dbType,databaseUser:e.databaseUser,key:r.value},null,8,["showDialogUpdateUser","databaseName","databaseType","databaseUser"])),(0,t.Wm)(J,{showDialogRemoveUser:s.value,"onUpdate:showDialogRemoveUser":l[1]||(l[1]=e=>s.value=e),databaseName:e.databaseName,databaseType:e.databaseUser.dbType,databaseUsername:e.databaseUser.username,imagePath:n.value},null,8,["showDialogRemoveUser","databaseName","databaseType","databaseUsername","imagePath"]),(0,t.Wm)(i,{round:"",color:"primary",outline:"",icon:"sym_s_edit",size:"sm",class:"q-mr-md",onClick:l[2]||(l[2]=e=>(r.value++,a.value=!0))},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesUsersActions.tooltipEditUser")),1)])),_:1})])),_:1}),(0,t.Wm)(i,{round:"",color:"negative",icon:"sym_s_delete",size:"sm",onClick:l[3]||(l[3]=e=>s.value=!0)},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"bg-negative",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesUsersActions.tooltipRemoveUser")),1)])),_:1})])),_:1})])}}});var ve=s(46858);const we=pe,ye=we;Q()(pe,"components",{QBtn:P.Z,QTooltip:ve.Z});const De={class:"text-left"},Ue={class:"text-right"},he=(0,t.aZ)({__name:"DatabasesUsers",props:{databaseUsers:{},databaseName:{},databaseType:{}},setup(e){return(e,a)=>{const s=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(s,{separator:"none",flat:"",bordered:""},{default:(0,t.w5)((()=>[(0,t._)("tbody",null,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.databaseUsers,((a,s)=>((0,t.wg)(),(0,t.iD)("tr",{key:s},[(0,t._)("td",De,(0,o.zw)(a.username),1),(0,t._)("td",Ue,[(0,t.Wm)(ye,{databaseUser:a,databaseName:e.databaseName},null,8,["databaseUser","databaseName"])])])))),128))])])),_:1})])}}});var _e=s(66933);const Te=he,fe=Te;Q()(he,"components",{QMarkupTable:_e.Z});const qe={class:"row justify-center q-mt-md"},Ce=(0,t.aZ)({__name:"DatabasesTable",props:{tableTitle:{},data:{}},setup(e){const a=e,s=(0,r.QT)().t,d=(0,l.iH)(!1),i=(0,l.iH)(0),u=(0,l.iH)(!1),b=(0,l.iH)(""),m=(0,l.iH)({sortBy:"desc",descending:!1,page:1,rowsPerPage:10}),c=[{name:"name",required:!0,label:s("databasesTable.databaseName"),align:"left",field:"name",classes:"component-table-td-main ellipsis",headerClasses:"bg-primary text-white",sortable:!0}],g=(0,t.Fl)((()=>Math.ceil(a.data.length/m.value.rowsPerPage)));return(e,a)=>{const s=(0,t.up)("q-icon"),l=(0,t.up)("q-input"),r=(0,t.up)("q-space"),p=(0,t.up)("q-th"),v=(0,t.up)("q-tr"),w=(0,t.up)("q-td"),y=(0,t.up)("q-table"),D=(0,t.up)("q-pagination");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(O,{showDialogCreateUser:d.value,"onUpdate:showDialogCreateUser":a[0]||(a[0]=e=>d.value=e),databasesList:e.data,databaseType:e.tableTitle.toLowerCase(),key:i.value},null,8,["showDialogCreateUser","databasesList","databaseType"])),(0,t.Wm)($,{showDialogCreateDatabase:u.value,"onUpdate:showDialogCreateDatabase":a[1]||(a[1]=e=>u.value=e),databaseType:e.tableTitle},null,8,["showDialogCreateDatabase","databaseType"]),(0,t.Wm)(y,{rows:e.data,columns:c,"row-key":"key",color:"primary",flat:"",bordered:"",pagination:m.value,"onUpdate:pagination":a[5]||(a[5]=e=>m.value=e),"no-data-label":e.$t("databasesTable.notFoundDatabases"),filter:b.value,"hide-pagination":""},{top:(0,t.w5)((()=>[(0,t.Wm)(l,{borderless:"",class:"bg-transparent",debounce:"300",color:"primary",modelValue:b.value,"onUpdate:modelValue":a[2]||(a[2]=e=>b.value=e),label:e.$t("databasesTable.search")},{prepend:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,t.Wm)(r),(0,t.Wm)(n.Z,{icon:"sym_s_person_add",label:e.$t("databasesTable.btnCreateUser"),onClick:a[3]||(a[3]=e=>d.value=!0),class:"q-mx-md"},null,8,["label"]),(0,t.Wm)(n.Z,{color:"primary",label:e.$t("databasesTable.btnCreateDatabase"),onClick:a[4]||(a[4]=e=>u.value=!0),icon:"sym_s_database"},null,8,["label"])])),header:(0,t.w5)((a=>[(0,t.Wm)(v,{props:a},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(p,{key:e.name,props:a,style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.label),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(p,{"data-cy":"database-users-th",style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesTable.databaseUsers")),1)])),_:1}),(0,t.Wm)(p,{"data-cy":"database-size-th",style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesTable.databaseSize")),1)])),_:1}),(0,t.Wm)(p,{"data-cy":"database-custom-th"})])),_:2},1032,["props"])])),body:(0,t.w5)((a=>[(0,t.Wm)(v,{props:a},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(w,{key:e.name,props:a},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.value),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(w,{class:"text-center"},{default:(0,t.w5)((()=>[(0,t.Wm)(fe,{databaseName:a.row.name,databaseUsers:a.row.users,databaseType:a.row.type},null,8,["databaseName","databaseUsers","databaseType"])])),_:2},1024),(0,t.Wm)(w,{class:"text-center",style:{width:"100px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)((a.row.size/1024).toFixed()),1)])),_:2},1024),(0,t.Wm)(w,{class:"text-right"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{databaseName:a.row.name,databaseType:e.tableTitle},null,8,["databaseName","databaseType"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","pagination","no-data-label","filter"]),(0,t._)("div",qe,[(0,t.Wm)(D,{modelValue:m.value.page,"onUpdate:modelValue":a[6]||(a[6]=e=>m.value.page=e),color:"primary",max:g.value,size:"md"},null,8,["modelValue","max"])])])}}});var We=s(84277),Pe=s(13119),Ze=s(90136),ke=s(31233),xe=s(21682),Qe=s(67220),Re=s(80996);const $e=Ce,Ee=$e;Q()(Ce,"components",{QTable:We.Z,QInput:Pe.Z,QIcon:le.Z,QSpace:Ze.Z,QTr:ke.Z,QTh:xe.Z,QTd:Qe.Z,QPagination:Re.Z});const Le={class:"databases-th-bg"},Se={colspan:"2",class:"databases-th-font"},He={class:"text-bold"},Ne={class:"text-bold"},Me=(0,t.aZ)({__name:"DatabasesConnectionInfo",setup(e){const a=(0,r.QT)().t,s=(0,l.iH)({ipAddress:`${a("databasesConnectionInfo.localhost")}`,port:"3306",title:`${a("databasesConnectionInfo.dataLocal")}`,connectionType:"local"});return(e,a)=>{const l=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.j4)(l,{dense:"",flat:"",bordered:"",separator:"cell",class:"databases-space-35 hidden"},{default:(0,t.w5)((()=>[(0,t._)("thead",Le,[(0,t._)("tr",null,[(0,t._)("th",Se,(0,o.zw)(s.value.title),1)])]),(0,t._)("tbody",null,[(0,t._)("tr",null,[(0,t._)("td",He,(0,o.zw)(e.$t("databasesConnectionInfo.tdIpAddress")),1),(0,t._)("td",null,(0,o.zw)(s.value.ipAddress),1)]),(0,t._)("tr",null,[(0,t._)("td",Ne,(0,o.zw)(e.$t("databasesConnectionInfo.tdPort")),1),(0,t._)("td",null,(0,o.zw)(s.value.port),1)])])])),_:1})}}}),Ve=Me,Ie=Ve;Q()(Me,"components",{QMarkupTable:_e.Z});var Ke=s(35274);const Ae={key:0},ze={key:1},je={class:"flex justify-end q-mt-md"},Fe={key:0},Ye={key:1},Be={class:"flex justify-end q-mt-md"},Oe=(0,t.aZ)({__name:"DatabasesTabs",props:{mysqlDatabases:{},postgresqlDatabases:{},hasInstalledMysqlDatabase:{type:Boolean},hasInstalledPostgresDatabase:{type:Boolean}},setup(e){const a=g(),s=(0,l.iH)(!1),o=(0,l.iH)(!1),r=(0,t.Fl)({get:()=>a.getSelectedTab,set:e=>{a.setSelectedTab(e)}}),n=(0,t.Fl)({get:()=>a.getKeyDatabasesMysqlTable,set:e=>{a.setKeyDatabasesMysqlTable(e)}}),d=(0,t.Fl)({get:()=>a.getKeyDatabasesPostgresTable,set:e=>{a.setKeyDatabasesPostgresTable(e)}});return(0,t.YP)(s,(e=>{!0===e&&setTimeout((()=>{d.value++}),1e3)})),(0,t.YP)(o,(e=>{!0===e&&setTimeout((()=>{n.value++}),5e3)})),(e,a)=>{const l=(0,t.up)("q-tab"),i=(0,t.up)("q-tabs"),u=(0,t.up)("q-separator"),b=(0,t.up)("q-tab-panel"),m=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(i,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),"active-color":"primary","indicator-color":"primary",align:"justify",class:"text-grey","no-caps":""},{default:(0,t.w5)((()=>[(0,t.Wm)(l,{name:"mysql",label:"MySQL/MariaDB/Percona",class:"databases-tabs",icon:"sym_s_database"}),(0,t.Wm)(l,{name:"postgres",label:"PostgreSQL",class:"databases-tabs",icon:"sym_s_database"})])),_:1},8,["modelValue"]),(0,t.Wm)(u),(0,t.Wm)(m,{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=e=>r.value=e),animated:"","keep-alive":""},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{name:"mysql"},{default:(0,t.w5)((()=>[!1===e.hasInstalledMysqlDatabase?((0,t.wg)(),(0,t.iD)("div",Ae,[(0,t.Wm)(Ke.Z,{serviceName:"MariaDB","onUpdate:isInstalledService":a[1]||(a[1]=e=>o.value=e)})])):((0,t.wg)(),(0,t.iD)("div",ze,[((0,t.wg)(),(0,t.j4)(Ee,{tableTitle:"MySQL",data:e.mysqlDatabases,key:n.value},null,8,["data"])),(0,t._)("div",je,[(0,t.Wm)(Ie,{style:{width:"25%"}})])]))])),_:1}),(0,t.Wm)(b,{name:"postgres"},{default:(0,t.w5)((()=>[!1===e.hasInstalledPostgresDatabase?((0,t.wg)(),(0,t.iD)("div",Fe,[(0,t.Wm)(Ke.Z,{serviceName:"Postgres","onUpdate:isInstalledService":a[2]||(a[2]=e=>s.value=e)})])):((0,t.wg)(),(0,t.iD)("div",Ye,[((0,t.wg)(),(0,t.j4)(Ee,{tableTitle:"PostgreSQL",data:e.postgresqlDatabases,key:d.value},null,8,["data"])),(0,t._)("div",Be,[(0,t.Wm)(Ie,{style:{width:"25%"}})])]))])),_:1})])),_:1},8,["modelValue"])],64)}}});var Xe=s(47817),Ge=s(70900),Je=s(50926),ea=s(89800),aa=s(84106);const sa=Oe,ta=sa;Q()(Oe,"components",{QTabs:Xe.Z,QTab:Ge.Z,QSeparator:Je.Z,QTabPanels:ea.Z,QTabPanel:aa.Z});const la=(0,t.aZ)({__name:"DatabasesIndex",setup(e){const a=(0,r.QT)().t,s=g(),o=new m,n=(0,l.iH)(!1),d=(0,l.iH)(!1),u=(0,l.iH)(!1),b=(0,l.iH)(!1),c=(0,l.iH)([]),p=(0,l.iH)([]),v=(0,t.Fl)((()=>n.value||d.value)),w=(0,t.Fl)({get:()=>s.getKeyDatabasesMysqlTable,set:e=>{s.setKeyDatabasesMysqlTable(e)}}),y=(0,t.Fl)({get:()=>s.getKeyDatabasesPostgresTable,set:e=>{s.setKeyDatabasesPostgresTable(e)}});function D(){h(),U()}function U(){d.value=!0,o.getDatabases("postgres").then((e=>{c.value=[],b.value=!0,null!==e.data.body&&(c.value=e.data.body)})).catch((e=>{console.error(e),b.value=!1,(0,i.s9)(e.response.data,a("databasesIndex.errorLoadingPostgresqlDatabases"))})).finally((()=>{d.value=!1}))}function h(){n.value=!0,o.getDatabases("mysql").then((e=>{p.value=[],u.value=!0,null!==e.data.body&&(p.value=e.data.body)})).catch((e=>{console.error(e),u.value=!1,(0,i.s9)(e.response.data,a("databasesIndex.errorLoadingMysqlDatabases"))})).finally((()=>{n.value=!1}))}return(0,t.wF)((()=>{D()})),(0,t.YP)(w,(()=>{h()})),(0,t.YP)(y,(()=>{U()})),(e,a)=>{const s=(0,t.up)("q-skeleton"),l=(0,t.up)("q-card-section"),o=(0,t.up)("q-card"),r=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(r,{padding:""},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{flat:""},{default:(0,t.w5)((()=>[(0,t.Wm)(l,null,{default:(0,t.w5)((()=>[!0===v.value?((0,t.wg)(),(0,t.j4)(s,{key:0,height:"100%"})):((0,t.wg)(),(0,t.j4)(ta,{key:1,hasInstalledMysqlDatabase:u.value,hasInstalledPostgresDatabase:b.value,mysqlDatabases:p.value,postgresqlDatabases:c.value},null,8,["hasInstalledMysqlDatabase","hasInstalledPostgresDatabase","mysqlDatabases","postgresqlDatabases"]))])),_:1})])),_:1})])),_:1})}}});var oa=s(69885),ra=s(57133);const na=la,da=na;Q()(la,"components",{QPage:oa.Z,QCard:W.Z,QCardSection:Z.Z,QSkeleton:ra.ZP})}}]); \ No newline at end of file +"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[693],{31555:(e,a,s)=>{s.r(a),s.d(a,{default:()=>da});var t=s(59835),l=s(60499),o=s(86970),r=s(25121),n=s(84278),d=s(89906),i=s(88900),u=s(69036),b=function(e,a,s,t){function l(e){return e instanceof s?e:new s((function(a){a(e)}))}return new(s||(s=Promise))((function(s,o){function r(e){try{d(t.next(e))}catch(a){o(a)}}function n(e){try{d(t["throw"](e))}catch(a){o(a)}}function d(e){e.done?s(e.value):l(e.value).then(r,n)}d((t=t.apply(e,a||[])).next())}))};class m extends u.Z{getDatabases(e){return b(this,void 0,void 0,(function*(){return this.request.get(`/v1/database/${e}/`)}))}createDatabase(e,a){return b(this,void 0,void 0,(function*(){return this.request.post(`/v1/database/${e}/`,a)}))}deleteDatabase(e,a){return b(this,void 0,void 0,(function*(){return this.request.delete(`/v1/database/${e}/${a}/`)}))}createDatabaseUser(e,a,s){return b(this,void 0,void 0,(function*(){return this.request.post(`/v1/database/${e}/${a}/user/`,s)}))}deleteDatabaseUser(e,a,s){return b(this,void 0,void 0,(function*(){return this.request.delete(`/v1/database/${e}/${a}/user/${s}/`)}))}}var c=s(3746);const g=(0,c.Q_)("databasesStatus",{state:()=>({selectedTab:"mysql",keyDatabasesMysqlTable:0,keyDatabasesPostgresTable:0}),getters:{getSelectedTab(e){return e.selectedTab},getKeyDatabasesMysqlTable(e){return e.keyDatabasesMysqlTable},getKeyDatabasesPostgresTable(e){return e.keyDatabasesPostgresTable}},actions:{setSelectedTab(e){this.selectedTab=e},setKeyDatabasesMysqlTable(e){this.keyDatabasesMysqlTable=e},setKeyDatabasesPostgresTable(e){this.keyDatabasesPostgresTable=e}}}),p=(0,t.aZ)({__name:"DatabasesDialogRemoveDatabase",props:{showDialogRemoveDatabase:{type:Boolean},databaseName:{},databaseType:{}},emits:["update:showDialogRemoveDatabase"],setup(e,{emit:a}){const s=e,o=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogRemoveDatabase),c=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),p=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function v(){const e=new m;e.deleteDatabase(s.databaseType.toLowerCase(),s.databaseName).then((()=>{(0,i.LX)(`${o("databasesDialogRemove.messageRemoveSuccess",{database:s.databaseName})}`),"mysql"===s.databaseType.toLowerCase()?c.value++:p.value++,b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${o("databasesDialogRemove.messageRemoveError",{database:s.databaseName})}`)}))}return(0,t.YP)((()=>s.showDialogRemoveDatabase),(e=>{b.value=e})),(0,t.YP)((()=>b.value),(e=>{a("update:showDialogRemoveDatabase",e)})),(e,a)=>((0,t.wg)(),(0,t.j4)(d.Z,{showDeleteDialog:b.value,"onUpdate:showDeleteDialog":a[2]||(a[2]=e=>b.value=e),titleDialog:e.$t("databasesDialogRemove.messageConfirmRemove"),messageToDelete:e.$t("databasesDialogRemove.messageConfirmRemove",{databaseName:e.databaseName}),warningToDelete:e.$t("databasesDialogRemove.warningRemoveDatabase"),customStyle:{"min-width":"775px"}},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogRemove.btnCancel"),color:"grey-7",onClick:a[0]||(a[0]=e=>b.value=!1)},null,8,["label"]),(0,t.Wm)(n.Z,{color:"negative",label:e.$t("databasesDialogRemove.btnRemove"),onClick:a[1]||(a[1]=e=>v())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),v=p,w=v;var y=s(19302);const D=(0,t.aZ)({__name:"DatabasesRemoveDatabase",props:{databaseName:{},databaseType:{}},setup(e){const a=(0,l.iH)(!1),s=(0,t.Fl)((()=>{const e=(0,y.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));return(e,l)=>((0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(w,{showDialogRemoveDatabase:a.value,"onUpdate:showDialogRemoveDatabase":l[0]||(l[0]=e=>a.value=e),databaseName:e.databaseName,databaseType:e.databaseType,imagePath:s.value},null,8,["showDialogRemoveDatabase","databaseName","databaseType","imagePath"]),(0,t.Wm)(n.Z,{icon:"sym_s_delete",class:"q-mr-md",color:"negative",colorTooltip:"bg-negative",textTooltip:e.$t("databasesRemoveDatabase.tooltipRemove"),onClick:l[1]||(l[1]=e=>a.value=!0),style:{"font-size":"12px"},label:""},null,8,["textTooltip"])]))}}),U=D,h=U;var _=s(15521);const T={class:"flex justify-between items-center"},f={class:"title-dialog"},q=(0,t.aZ)({__name:"DatabasesDialogCreateDatabase",props:{showDialogCreateDatabase:{type:Boolean},databaseType:{default:"MySQL"}},emits:["update:showDialogCreateDatabase"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogCreateDatabase),c=(0,l.iH)(""),p=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),v=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function w(){const e=new m;e.createDatabase(s.databaseType.toLowerCase(),{dbName:c.value}).then((()=>{(0,i.LX)(`${d("databasesDialogCreate.createDataBaseSuccess",{database:c.value})}`),"MySQL"===s.databaseType?p.value++:v.value++,c.value="",b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${d("databasesDialogCreate.createDataBaseError",{database:c.value})}`)}))}return(0,t.YP)(b,(e=>{a("update:showDialogCreateDatabase",e)})),(0,t.YP)((()=>s.showDialogCreateDatabase),(e=>{b.value=e})),(e,a)=>{const s=(0,t.up)("q-btn"),l=(0,t.up)("q-card-section"),r=(0,t.up)("q-card-actions"),d=(0,t.up)("q-card"),i=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(i,{modelValue:b.value,"onUpdate:modelValue":a[4]||(a[4]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"dialog-card-bg",style:{width:"700px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",T,[(0,t._)("div",f,(0,o.zw)(e.$t("databasesDialogCreate.titleDialogCreate"))+" "+(0,o.zw)(e.databaseType),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>(b.value=!1,c.value=""))})]),(0,t.Wm)(l,{class:"q-mb-md q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_.Z,{label:e.$t("databasesDialogCreate.inputDataBaseName"),icon:"sym_s_database",value:c.value,"onUpdate:value":a[1]||(a[1]=e=>c.value=e),dataCy:"databases-dialog-create-input",maxLength:"32",minLength:"4",isError:/\W/i.test(c.value),msgError:e.$t("databasesDialogCreate.messageValidateError")},null,8,["label","value","isError","msgError"])])),_:1}),(0,t.Wm)(r,{align:"between",class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogCreate.btnCancel"),color:"grey-7",onClick:a[2]||(a[2]=e=>(b.value=!1,c.value=""))},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_database",disable:c.value.length<4||/\W/i.test(c.value),label:e.$t("databasesDialogCreate.btnCreateDataBase"),color:"primary",onClick:a[3]||(a[3]=e=>w())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var C=s(32074),W=s(44458),P=s(68879),Z=s(63190),k=s(11821),x=s(69984),Q=s.n(x);const R=q,$=R;Q()(q,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QCardActions:k.Z});var E=s(61957),L=s(27974),S=s(26557),H=s(87713),N=s(63064);class M{constructor(){this.privilegesMySQL=["ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","INDEX","INSERT","LOCK TABLES","REFERENCES","SELECT","SHOW VIEW","TRIGGER","UPDATE"],this.privilegesPostgreSQL=["ALL PRIVILEGES"]}getPrivilegesMySQL(){return this.privilegesMySQL}getPrivilegesPostgreSQL(){return this.privilegesPostgreSQL}formatSelectedPrivileges(e){return e.map((e=>e.replace(/ /g,"-").toLowerCase()))}}var V=function(e,a,s,t){function l(e){return e instanceof s?e:new s((function(a){a(e)}))}return new(s||(s=Promise))((function(s,o){function r(e){try{d(t.next(e))}catch(a){o(a)}}function n(e){try{d(t["throw"](e))}catch(a){o(a)}}function d(e){e.done?s(e.value):l(e.value).then(r,n)}d((t=t.apply(e,a||[])).next())}))};const I={class:"flex justify-between items-center"},K={class:"title-dialog"},A={class:"row"},z=(0,t.aZ)({__name:"DatabasesDialogCreateUser",props:{showDialogCreateUser:{type:Boolean},databaseType:{},databasesList:{}},emits:["update:showDialogCreateUser"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogCreateUser),c=(0,l.iH)([]),p=(0,l.iH)([]),v=(0,l.iH)(""),w=(0,l.iH)(""),y=(0,l.iH)(!1),D=(0,l.iH)([]),U=(0,l.iH)(!1),h=(0,l.iH)([]),T=(0,t.Fl)((()=>y.value&&v.value.length>=4&&!/\W/i.test(v.value)&&p.value.length>=1)),f=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),q=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function C(){b.value=!1}function W(){return V(this,void 0,void 0,(function*(){let e=!1;for(let a of p.value)yield P(a).then((e=>{(0,i.LX)(e)})).catch((a=>{e=!0,console.error(a),(0,i.s9)(a.error,a.msgDefault)}));e||(setTimeout((()=>{C()}),1e3),"mysql"===s.databaseType?f.value++:q.value++)}))}function P(e){return new Promise(((a,t)=>{const l=new m;l.createDatabaseUser(s.databaseType,e,{password:w.value,username:v.value,dbName:e,privileges:!1===U.value?(new M).formatSelectedPrivileges(D.value):["all"]}).then((()=>{a(`${d("databasesDialogCreateUser.messageCreateUserSuccess",{user:v.value})}`)})).catch((e=>{console.error(e);const a={error:e.response.data,msgDefault:`${d("databasesDialogCreateUser.messageCreateUserError",{user:v.value})}`};t(a)}))}))}return(0,t.wF)((()=>{U.value=!0,h.value=(new M).getPrivilegesPostgreSQL(),"mysql"===s.databaseType&&(h.value=(new M).getPrivilegesMySQL())})),(0,t.YP)(U,(e=>{!1!==e&&(D.value=h.value)})),(0,t.YP)(D,(e=>{U.value=e.length===h.value.length})),(0,t.YP)(b,(e=>{a("update:showDialogCreateUser",e)})),(0,t.YP)((()=>s.showDialogCreateUser),(e=>{b.value=e})),(0,t.YP)((()=>s.databasesList),(e=>{c.value=[],e.forEach((e=>{c.value.push({value:e.name,label:e.name})}))}),{immediate:!0}),(e,a)=>{const s=(0,t.up)("q-btn"),l=(0,t.up)("q-card-section"),r=(0,t.up)("q-toggle"),d=(0,t.up)("q-card"),i=(0,t.up)("q-expansion-item"),u=(0,t.up)("AlertsWarning"),m=(0,t.up)("q-card-actions"),g=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(g,{modelValue:b.value,"onUpdate:modelValue":a[10]||(a[10]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"dialog-card-bg",style:{width:"750px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",I,[(0,t._)("div",K,(0,o.zw)(e.$t("databasesDialogCreateUser.titleDialogCreateUser")),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>C())})]),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(L.Z,{selected:p.value,"onUpdate:selected":a[1]||(a[1]=e=>p.value=e),label:e.$t("databasesDialogCreateUser.textSelectDatabases"),icon:"sym_s_database",options:c.value},null,8,["selected","label","options"])])),_:1}),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_.Z,{class:"q-mb-lg",label:e.$t("databasesDialogCreateUser.inputUsername"),icon:"sym_s_person",value:v.value,"onUpdate:value":a[2]||(a[2]=e=>v.value=e),dataCy:"databases-dialog-create-user-input",maxLength:"32",minLength:"4",isError:/\W/i.test(v.value),msgError:e.$t("databasesDialogCreateUser.messageInputError")},null,8,["label","value","isError","msgError"]),(0,t.Wm)(S.Z,{password:w.value,"onUpdate:password":a[3]||(a[3]=e=>w.value=e),minLength:16,dataCyInput:"databases-dialog-create-password-input"},null,8,["password"]),(0,t.Wm)(H.Z,{"onUpdate:password":a[4]||(a[4]=e=>w.value=e),class:"float-right",dataCy:"databases-dialog-create-generate-password"})])),_:1}),(0,t.Wm)(l,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.wy)((0,t.Wm)(N.Z,{password:w.value,isValidPassword:y.value,"onUpdate:isValidPassword":a[5]||(a[5]=e=>y.value=e)},null,8,["password","isValidPassword"]),[[E.F8,w.value]])])),_:1}),"mysql"===e.databaseType?((0,t.wg)(),(0,t.j4)(l,{key:0},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{label:e.$t("databasesDialogCreateUser.textPrivileges"),icon:"sym_s_person_add",class:"databases-label-expansion-item","expand-icon":"sym_s_expand_more","expanded-icon":"sym_s_expand_less"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"q-pa-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{color:"primary",class:"text-subtitle1 text-bold",label:e.$t("databasesDialogCreateUser.toggleSelectAll"),modelValue:U.value,"onUpdate:modelValue":a[6]||(a[6]=e=>U.value=e),"left-label":"","checked-icon":"sym_s_check","unchecked-icon":"sym_s_close"},null,8,["label","modelValue"]),(0,t._)("div",A,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(h.value,((e,s)=>((0,t.wg)(),(0,t.j4)(r,{key:s,color:"primary",class:"col-4",label:e,modelValue:D.value,"onUpdate:modelValue":a[7]||(a[7]=e=>D.value=e),val:e},null,8,["label","modelValue","val"])))),128))])])),_:1})])),_:1},8,["label"])])),_:1})):((0,t.wg)(),(0,t.j4)(l,{key:1},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textPostgresPrivileges"),class:"q-mt-md"},null,8,["message"])])),_:1})),(0,t.Wm)(m,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogCreateUser.btnCancel"),color:"grey-7",onClick:a[8]||(a[8]=e=>C())},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_person_add",disable:!T.value,label:e.$t("databasesDialogCreateUser.btnCreateUser"),color:"primary",onClick:a[9]||(a[9]=e=>W())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var j=s(50651),F=s(23175),Y=s(490);const B=z,O=B;Q()(z,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QExpansionItem:j.Z,QToggle:F.Z,QCardActions:k.Z,QItem:Y.Z});const X=(0,t.aZ)({__name:"DatabasesDialogRemoveUser",props:{showDialogRemoveUser:{type:Boolean},databaseUsername:{},databaseName:{},databaseType:{}},emits:["update:showDialogRemoveUser"],setup(e,{emit:a}){const s=e,o=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogRemoveUser),c=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),p=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function v(){const e=new m;e.deleteDatabaseUser(s.databaseType,s.databaseName,s.databaseUsername).then((()=>{(0,i.LX)(`${o("databasesDialogRemoveUser.messageRemoveUserSuccess",{user:s.databaseUsername})}`),"mysql"===s.databaseType?c.value++:p.value++,b.value=!1})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${o("databasesDialogRemoveUser.messageRemoveUserError",{user:s.databaseUsername})}`)}))}return(0,t.YP)((()=>s.showDialogRemoveUser),(e=>{b.value=e})),(0,t.YP)((()=>b.value),(e=>{a("update:showDialogRemoveUser",e)})),(e,a)=>((0,t.wg)(),(0,t.j4)(d.Z,{showDeleteDialog:b.value,"onUpdate:showDeleteDialog":a[2]||(a[2]=e=>b.value=e),titleDialog:e.$t("databasesDialogRemoveUser.titleDialogRemoveUser",{user:e.databaseUsername}),messageToDelete:e.$t("databasesDialogRemoveUser.messageConfirmRemove",{username:e.databaseUsername}),warningToDelete:e.$t("databasesDialogRemoveUser.warningRemoveUser"),customStyle:{"min-width":"650px"}},{"card-actions":(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogRemoveUser.btnCancel"),color:"grey-7",onClick:a[0]||(a[0]=e=>b.value=!1)},null,8,["label"]),(0,t.Wm)(n.Z,{color:"negative",label:e.$t("databasesDialogRemoveUser.btnRemove"),onClick:a[1]||(a[1]=e=>v())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),G=X,J=G,ee=["innerHTML"],ae=["innerHTML"],se=(0,t.aZ)({__name:"AlertsWarning",props:{showAlertsWarning:{type:Boolean,default:!1},message:{default:""},smallText:{default:""}},setup(e){return(e,a)=>{const s=(0,t.up)("q-icon"),l=(0,t.up)("q-banner");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(E.uT,{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"},{default:(0,t.w5)((()=>[e.showAlertsWarning?((0,t.wg)(),(0,t.j4)(l,{key:0,dense:"","inline-actions":"",class:"q-mb-lg text-black bg-warning"},{avatar:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"sym_s_warning",color:"black"})])),default:(0,t.w5)((()=>[(0,t._)("div",{class:"text-subtitle1",innerHTML:e.message},null,8,ee),(0,t._)("small",{innerHTML:e.smallText},null,8,ae)])),_:1})):(0,t.kq)("",!0)])),_:1})])}}});var te=s(47128),le=s(22857);const oe=se,re=oe;Q()(se,"components",{QBanner:te.Z,QIcon:le.Z});const ne={class:"flex justify-between items-center"},de={class:"title-dialog"},ie={class:"text-subtitle1"},ue={class:"text-bold"},be={class:"row"},me=(0,t.aZ)({__name:"DatabasesDialogUpdateUser",props:{showDialogUpdateUser:{type:Boolean},databaseType:{},databaseName:{},databaseUser:{}},emits:["update:showDialogUpdateUser"],setup(e,{emit:a}){const s=e,d=(0,r.QT)().t,u=g(),b=(0,l.iH)(s.showDialogUpdateUser),c=(0,l.iH)([]),p=(0,l.iH)(""),v=(0,l.iH)(!1),w=(0,l.iH)([]),y=(0,l.iH)(!1),D=(0,t.Fl)((()=>v.value&&s.databaseUser.username.length>=4&&!/\W/i.test(s.databaseUser.username))),U=(0,t.Fl)({get:()=>u.getKeyDatabasesMysqlTable,set:e=>{u.setKeyDatabasesMysqlTable(e)}}),h=(0,t.Fl)({get:()=>u.getKeyDatabasesPostgresTable,set:e=>{u.setKeyDatabasesPostgresTable(e)}});function T(){p.value="",c.value=[],b.value=!1}function f(){switch(s.databaseType){case"mysql":w.value=(new M).getPrivilegesMySQL();break;case"postgresql":w.value=(new M).getPrivilegesPostgreSQL();break}}function q(){const e=new m;e.deleteDatabaseUser(s.databaseType,s.databaseName,s.databaseUser.username).then((()=>{e.createDatabaseUser(s.databaseType,s.databaseName,{password:p.value,dbName:s.databaseName,privileges:!1===y.value?(new M).formatSelectedPrivileges(c.value):["all"],username:s.databaseUser.username}).then((()=>{(0,i.LX)(d("databasesDialogUpdateUser.messageUpdateUserSuccess",{user:s.databaseUser.username})),T()}))})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,d("databasesDialogUpdateUser.messageUpdateUserError",{user:s.databaseUser.username}))})).finally((()=>{setTimeout((()=>{"mysql"===s.databaseType?U.value++:h.value++}),1e3)}))}return(0,t.YP)((()=>s.showDialogUpdateUser),(e=>{b.value=e})),(0,t.YP)(b,(e=>{a("update:showDialogUpdateUser",e)})),(0,t.YP)(y,(e=>{!1!==e&&(c.value=w.value)})),(0,t.YP)(c,(e=>{y.value=e.length===w.value.length})),(0,t.wF)((()=>{c.value=s.databaseUser.privileges.map((e=>e.replace(/-/g," ").toUpperCase())),f(),y.value=c.value.includes("ALL PRIVILEGES")})),(e,a)=>{const s=(0,t.up)("q-btn"),r=(0,t.up)("q-card-section"),i=(0,t.up)("q-toggle"),u=(0,t.up)("q-card"),m=(0,t.up)("q-expansion-item"),g=(0,t.up)("q-card-actions"),U=(0,t.up)("q-dialog");return(0,t.wg)(),(0,t.j4)(U,{modelValue:b.value,"onUpdate:modelValue":a[8]||(a[8]=e=>b.value=e),persistent:""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{class:"dialog-card-bg",style:{width:"750px","max-width":"80vw"}},{default:(0,t.w5)((()=>[(0,t._)("div",ne,[(0,t._)("div",de,(0,o.zw)(e.$t("databasesDialogUpdateUser.titleDialogUpdateUser",{user:e.databaseUser.username})),1),(0,t.Wm)(s,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:a[0]||(a[0]=e=>T())})]),(0,t.Wm)(r,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t._)("div",ie,[(0,t.Uk)((0,o.zw)(e.$t("databasesDialogUpdateUser.subtitleDialogUpdateUser",{type:e.databaseType}))+": ",1),(0,t._)("span",ue,(0,o.zw)(e.databaseName),1),(0,t.Wm)(re,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textAlertMessage"),class:"q-mt-md"},null,8,["message"])]),(0,t.Wm)(_.Z,{class:"q-mb-md",label:e.$t("databasesDialogUpdateUser.inputName"),icon:"sym_s_person",value:e.databaseUser.username,dataCy:"databases-dialog-update-user-input",disable:!0},null,8,["label","value"]),(0,t.Wm)(S.Z,{minLength:16,password:p.value,"onUpdate:password":a[1]||(a[1]=e=>p.value=e),dataCyInput:"databases-dialog-update-password-input"},null,8,["password"]),(0,t.Wm)(H.Z,{password:p.value,"onUpdate:password":a[2]||(a[2]=e=>p.value=e),class:"float-right",dataCy:"databases-dialog-update-generate-password"},null,8,["password"])])),_:1}),(0,t.Wm)(r,{class:"q-px-none"},{default:(0,t.w5)((()=>[(0,t.wy)((0,t.Wm)(N.Z,{password:p.value,"onUpdate:isValidPassword":a[3]||(a[3]=e=>v.value=e)},null,8,["password"]),[[E.F8,p.value]])])),_:1}),"mysql"===e.databaseType?((0,t.wg)(),(0,t.j4)(r,{key:0},{default:(0,t.w5)((()=>[(0,t.Wm)(m,{label:e.$t("databasesDialogUpdateUser.textPrivileges"),icon:"sym_s_people",class:"databases-label-expansion-item"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{class:"q-pa-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(i,{color:"primary",class:"text-subtitle1 text-bold",label:e.$t("databasesDialogUpdateUser.toggleSelectAll"),modelValue:y.value,"onUpdate:modelValue":a[4]||(a[4]=e=>y.value=e),"left-label":"","checked-icon":"sym_s_check","unchecked-icon":"sym_s_close"},null,8,["label","modelValue"]),(0,t._)("div",be,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(w.value,((e,s)=>((0,t.wg)(),(0,t.j4)(i,{key:s,color:"primary",class:"col-4",label:e,modelValue:c.value,"onUpdate:modelValue":a[5]||(a[5]=e=>c.value=e),val:e},null,8,["label","modelValue","val"])))),128))])])),_:1})])),_:1},8,["label"])])),_:1})):((0,t.wg)(),(0,t.j4)(r,{key:1},{default:(0,t.w5)((()=>[(0,t.Wm)(re,{showAlertsWarning:!0,message:e.$t("databasesDialogUpdateUser.textPostgresPrivileges"),class:"q-mt-md"},null,8,["message"])])),_:1})),(0,t.Wm)(g,{align:"between"},{default:(0,t.w5)((()=>[(0,t.Wm)(n.Z,{label:e.$t("databasesDialogUpdateUser.btnCancel"),color:"grey-7",onClick:a[6]||(a[6]=e=>T())},null,8,["label"]),(0,t.Wm)(n.Z,{icon:"sym_s_person",disable:!D.value,label:(0,l.SU)(d)("databasesDialogUpdateUser.btnUpdateUser"),color:"primary",onClick:a[7]||(a[7]=e=>q())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),ce=me,ge=ce;Q()(me,"components",{QDialog:C.Z,QCard:W.Z,QBtn:P.Z,QCardSection:Z.Z,QExpansionItem:j.Z,QToggle:F.Z,QCardActions:k.Z,QItem:Y.Z});const pe=(0,t.aZ)({__name:"DatabasesUsersActions",props:{databaseUser:{},databaseName:{}},setup(e){const a=(0,l.iH)(!1),s=(0,l.iH)(!1),r=(0,l.iH)(1e3),n=(0,t.Fl)((()=>{const e=(0,y.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));return(e,l)=>{const d=(0,t.up)("q-tooltip"),i=(0,t.up)("q-btn");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(ge,{showDialogUpdateUser:a.value,"onUpdate:showDialogUpdateUser":l[0]||(l[0]=e=>a.value=e),databaseName:e.databaseName,databaseType:e.databaseUser.dbType,databaseUser:e.databaseUser,key:r.value},null,8,["showDialogUpdateUser","databaseName","databaseType","databaseUser"])),(0,t.Wm)(J,{showDialogRemoveUser:s.value,"onUpdate:showDialogRemoveUser":l[1]||(l[1]=e=>s.value=e),databaseName:e.databaseName,databaseType:e.databaseUser.dbType,databaseUsername:e.databaseUser.username,imagePath:n.value},null,8,["showDialogRemoveUser","databaseName","databaseType","databaseUsername","imagePath"]),(0,t.Wm)(i,{round:"",color:"primary",outline:"",icon:"sym_s_edit",size:"sm",class:"q-mr-md",onClick:l[2]||(l[2]=e=>(r.value++,a.value=!0))},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesUsersActions.tooltipEditUser")),1)])),_:1})])),_:1}),(0,t.Wm)(i,{round:"",color:"negative",icon:"sym_s_delete",size:"sm",onClick:l[3]||(l[3]=e=>s.value=!0)},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{class:"bg-negative",style:{"font-size":"14px"},offset:[10,10]},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesUsersActions.tooltipRemoveUser")),1)])),_:1})])),_:1})])}}});var ve=s(46858);const we=pe,ye=we;Q()(pe,"components",{QBtn:P.Z,QTooltip:ve.Z});const De={class:"text-left"},Ue={class:"text-right"},he=(0,t.aZ)({__name:"DatabasesUsers",props:{databaseUsers:{},databaseName:{},databaseType:{}},setup(e){return(e,a)=>{const s=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(s,{separator:"none",flat:"",bordered:""},{default:(0,t.w5)((()=>[(0,t._)("tbody",null,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.databaseUsers,((a,s)=>((0,t.wg)(),(0,t.iD)("tr",{key:s},[(0,t._)("td",De,(0,o.zw)(a.username),1),(0,t._)("td",Ue,[(0,t.Wm)(ye,{databaseUser:a,databaseName:e.databaseName},null,8,["databaseUser","databaseName"])])])))),128))])])),_:1})])}}});var _e=s(66933);const Te=he,fe=Te;Q()(he,"components",{QMarkupTable:_e.Z});const qe={class:"row justify-center q-mt-md"},Ce=(0,t.aZ)({__name:"DatabasesTable",props:{tableTitle:{},data:{}},setup(e){const a=e,s=(0,r.QT)().t,d=(0,l.iH)(!1),i=(0,l.iH)(0),u=(0,l.iH)(!1),b=(0,l.iH)(""),m=(0,l.iH)({sortBy:"desc",descending:!1,page:1,rowsPerPage:10}),c=[{name:"name",required:!0,label:s("databasesTable.databaseName"),align:"left",field:"name",classes:"component-table-td-main ellipsis",headerClasses:"bg-primary text-white",sortable:!0}],g=(0,t.Fl)((()=>Math.ceil(a.data.length/m.value.rowsPerPage)));return(e,a)=>{const s=(0,t.up)("q-icon"),l=(0,t.up)("q-input"),r=(0,t.up)("q-space"),p=(0,t.up)("q-th"),v=(0,t.up)("q-tr"),w=(0,t.up)("q-td"),y=(0,t.up)("q-table"),D=(0,t.up)("q-pagination");return(0,t.wg)(),(0,t.iD)("div",null,[((0,t.wg)(),(0,t.j4)(O,{showDialogCreateUser:d.value,"onUpdate:showDialogCreateUser":a[0]||(a[0]=e=>d.value=e),databasesList:e.data,databaseType:e.tableTitle.toLowerCase(),key:i.value},null,8,["showDialogCreateUser","databasesList","databaseType"])),(0,t.Wm)($,{showDialogCreateDatabase:u.value,"onUpdate:showDialogCreateDatabase":a[1]||(a[1]=e=>u.value=e),databaseType:e.tableTitle},null,8,["showDialogCreateDatabase","databaseType"]),(0,t.Wm)(y,{rows:e.data,columns:c,"row-key":"key",color:"primary",flat:"",bordered:"",pagination:m.value,"onUpdate:pagination":a[5]||(a[5]=e=>m.value=e),"no-data-label":e.$t("databasesTable.notFoundDatabases"),filter:b.value,"hide-pagination":""},{top:(0,t.w5)((()=>[(0,t.Wm)(l,{borderless:"",class:"bg-transparent",debounce:"300",color:"primary",modelValue:b.value,"onUpdate:modelValue":a[2]||(a[2]=e=>b.value=e),label:e.$t("databasesTable.search")},{prepend:(0,t.w5)((()=>[(0,t.Wm)(s,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,t.Wm)(r),(0,t.Wm)(n.Z,{icon:"sym_s_person_add",label:e.$t("databasesTable.btnCreateUser"),onClick:a[3]||(a[3]=e=>d.value=!0),class:"q-mx-md"},null,8,["label"]),(0,t.Wm)(n.Z,{color:"primary",label:e.$t("databasesTable.btnCreateDatabase"),onClick:a[4]||(a[4]=e=>u.value=!0),icon:"sym_s_database"},null,8,["label"])])),header:(0,t.w5)((a=>[(0,t.Wm)(v,{props:a},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(p,{key:e.name,props:a,style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.label),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(p,{"data-cy":"database-users-th",style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesTable.databaseUsers")),1)])),_:1}),(0,t.Wm)(p,{"data-cy":"database-size-th",style:{"font-weight":"bold","font-size":"14px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("databasesTable.databaseSize")),1)])),_:1}),(0,t.Wm)(p,{"data-cy":"database-custom-th"})])),_:2},1032,["props"])])),body:(0,t.w5)((a=>[(0,t.Wm)(v,{props:a},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.cols,(e=>((0,t.wg)(),(0,t.j4)(w,{key:e.name,props:a},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.value),1)])),_:2},1032,["props"])))),128)),(0,t.Wm)(w,{class:"text-center"},{default:(0,t.w5)((()=>[(0,t.Wm)(fe,{databaseName:a.row.name,databaseUsers:a.row.users,databaseType:a.row.type},null,8,["databaseName","databaseUsers","databaseType"])])),_:2},1024),(0,t.Wm)(w,{class:"text-center",style:{width:"100px"}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)((a.row.size/1024).toFixed()),1)])),_:2},1024),(0,t.Wm)(w,{class:"text-right"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{databaseName:a.row.name,databaseType:e.tableTitle},null,8,["databaseName","databaseType"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","pagination","no-data-label","filter"]),(0,t._)("div",qe,[(0,t.Wm)(D,{modelValue:m.value.page,"onUpdate:modelValue":a[6]||(a[6]=e=>m.value.page=e),color:"primary",max:g.value,size:"md"},null,8,["modelValue","max"])])])}}});var We=s(84277),Pe=s(13119),Ze=s(90136),ke=s(31233),xe=s(21682),Qe=s(67220),Re=s(80996);const $e=Ce,Ee=$e;Q()(Ce,"components",{QTable:We.Z,QInput:Pe.Z,QIcon:le.Z,QSpace:Ze.Z,QTr:ke.Z,QTh:xe.Z,QTd:Qe.Z,QPagination:Re.Z});const Le={class:"databases-th-bg"},Se={colspan:"2",class:"databases-th-font"},He={class:"text-bold"},Ne={class:"text-bold"},Me=(0,t.aZ)({__name:"DatabasesConnectionInfo",setup(e){const a=(0,r.QT)().t,s=(0,l.iH)({ipAddress:`${a("databasesConnectionInfo.localhost")}`,port:"3306",title:`${a("databasesConnectionInfo.dataLocal")}`,connectionType:"local"});return(e,a)=>{const l=(0,t.up)("q-markup-table");return(0,t.wg)(),(0,t.j4)(l,{dense:"",flat:"",bordered:"",separator:"cell",class:"databases-space-35 hidden"},{default:(0,t.w5)((()=>[(0,t._)("thead",Le,[(0,t._)("tr",null,[(0,t._)("th",Se,(0,o.zw)(s.value.title),1)])]),(0,t._)("tbody",null,[(0,t._)("tr",null,[(0,t._)("td",He,(0,o.zw)(e.$t("databasesConnectionInfo.tdIpAddress")),1),(0,t._)("td",null,(0,o.zw)(s.value.ipAddress),1)]),(0,t._)("tr",null,[(0,t._)("td",Ne,(0,o.zw)(e.$t("databasesConnectionInfo.tdPort")),1),(0,t._)("td",null,(0,o.zw)(s.value.port),1)])])])),_:1})}}}),Ve=Me,Ie=Ve;Q()(Me,"components",{QMarkupTable:_e.Z});var Ke=s(35274);const Ae={key:0},ze={key:1},je={class:"flex justify-end q-mt-md"},Fe={key:0},Ye={key:1},Be={class:"flex justify-end q-mt-md"},Oe=(0,t.aZ)({__name:"DatabasesTabs",props:{mysqlDatabases:{},postgresqlDatabases:{},hasInstalledMysqlDatabase:{type:Boolean},hasInstalledPostgresDatabase:{type:Boolean}},setup(e){const a=g(),s=(0,l.iH)(!1),o=(0,l.iH)(!1),r=(0,t.Fl)({get:()=>a.getSelectedTab,set:e=>{a.setSelectedTab(e)}}),n=(0,t.Fl)({get:()=>a.getKeyDatabasesMysqlTable,set:e=>{a.setKeyDatabasesMysqlTable(e)}}),d=(0,t.Fl)({get:()=>a.getKeyDatabasesPostgresTable,set:e=>{a.setKeyDatabasesPostgresTable(e)}});return(0,t.YP)(s,(e=>{!0===e&&setTimeout((()=>{d.value++}),1e3)})),(0,t.YP)(o,(e=>{!0===e&&setTimeout((()=>{n.value++}),5e3)})),(e,a)=>{const l=(0,t.up)("q-tab"),i=(0,t.up)("q-tabs"),u=(0,t.up)("q-separator"),b=(0,t.up)("q-tab-panel"),m=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(i,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),"active-color":"primary","indicator-color":"primary",align:"justify",class:"text-grey","no-caps":""},{default:(0,t.w5)((()=>[(0,t.Wm)(l,{name:"mysql",label:"MySQL/MariaDB/Percona",class:"databases-tabs",icon:"sym_s_database"}),(0,t.Wm)(l,{name:"postgres",label:"PostgreSQL",class:"databases-tabs",icon:"sym_s_database"})])),_:1},8,["modelValue"]),(0,t.Wm)(u),(0,t.Wm)(m,{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=e=>r.value=e),animated:"","keep-alive":""},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{name:"mysql"},{default:(0,t.w5)((()=>[!1===e.hasInstalledMysqlDatabase?((0,t.wg)(),(0,t.iD)("div",Ae,[(0,t.Wm)(Ke.Z,{serviceName:"MariaDB","onUpdate:isInstalledService":a[1]||(a[1]=e=>o.value=e)})])):((0,t.wg)(),(0,t.iD)("div",ze,[((0,t.wg)(),(0,t.j4)(Ee,{tableTitle:"MySQL",data:e.mysqlDatabases,key:n.value},null,8,["data"])),(0,t._)("div",je,[(0,t.Wm)(Ie,{style:{width:"25%"}})])]))])),_:1}),(0,t.Wm)(b,{name:"postgres"},{default:(0,t.w5)((()=>[!1===e.hasInstalledPostgresDatabase?((0,t.wg)(),(0,t.iD)("div",Fe,[(0,t.Wm)(Ke.Z,{serviceName:"Postgres","onUpdate:isInstalledService":a[2]||(a[2]=e=>s.value=e)})])):((0,t.wg)(),(0,t.iD)("div",Ye,[((0,t.wg)(),(0,t.j4)(Ee,{tableTitle:"PostgreSQL",data:e.postgresqlDatabases,key:d.value},null,8,["data"])),(0,t._)("div",Be,[(0,t.Wm)(Ie,{style:{width:"25%"}})])]))])),_:1})])),_:1},8,["modelValue"])],64)}}});var Xe=s(47817),Ge=s(70900),Je=s(50926),ea=s(89800),aa=s(84106);const sa=Oe,ta=sa;Q()(Oe,"components",{QTabs:Xe.Z,QTab:Ge.Z,QSeparator:Je.Z,QTabPanels:ea.Z,QTabPanel:aa.Z});const la=(0,t.aZ)({__name:"DatabasesIndex",setup(e){const a=(0,r.QT)().t,s=g(),o=new m,n=(0,l.iH)(!1),d=(0,l.iH)(!1),u=(0,l.iH)(!1),b=(0,l.iH)(!1),c=(0,l.iH)([]),p=(0,l.iH)([]),v=(0,t.Fl)((()=>n.value||d.value)),w=(0,t.Fl)({get:()=>s.getKeyDatabasesMysqlTable,set:e=>{s.setKeyDatabasesMysqlTable(e)}}),y=(0,t.Fl)({get:()=>s.getKeyDatabasesPostgresTable,set:e=>{s.setKeyDatabasesPostgresTable(e)}});function D(){h(),U()}function U(){d.value=!0,o.getDatabases("postgres").then((e=>{c.value=[],b.value=!0,null!==e.data.body&&(c.value=e.data.body)})).catch((e=>{e.response.data.body.startsWith("ServiceUnavailable")||(b.value=!1,(0,i.s9)(e.response.data,a("databasesIndex.errorLoadingPostgresqlDatabases")))})).finally((()=>{d.value=!1}))}function h(){n.value=!0,o.getDatabases("mysql").then((e=>{p.value=[],u.value=!0,null!==e.data.body&&(p.value=e.data.body)})).catch((e=>{e.response.data.body.startsWith("ServiceUnavailable")||(u.value=!1,(0,i.s9)(e.response.data,a("databasesIndex.errorLoadingMysqlDatabases")))})).finally((()=>{n.value=!1}))}return(0,t.wF)((()=>{D()})),(0,t.YP)(w,(()=>{h()})),(0,t.YP)(y,(()=>{U()})),(e,a)=>{const s=(0,t.up)("q-skeleton"),l=(0,t.up)("q-card-section"),o=(0,t.up)("q-card"),r=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(r,{padding:""},{default:(0,t.w5)((()=>[(0,t.Wm)(o,{flat:""},{default:(0,t.w5)((()=>[(0,t.Wm)(l,null,{default:(0,t.w5)((()=>[!0===v.value?((0,t.wg)(),(0,t.j4)(s,{key:0,height:"100%"})):((0,t.wg)(),(0,t.j4)(ta,{key:1,hasInstalledMysqlDatabase:u.value,hasInstalledPostgresDatabase:b.value,mysqlDatabases:p.value,postgresqlDatabases:c.value},null,8,["hasInstalledMysqlDatabase","hasInstalledPostgresDatabase","mysqlDatabases","postgresqlDatabases"]))])),_:1})])),_:1})])),_:1})}}});var oa=s(69885),ra=s(57133);const na=la,da=na;Q()(la,"components",{QPage:oa.Z,QCard:W.Z,QCardSection:Z.Z,QSkeleton:ra.ZP})}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/870.0630ca03.js b/src/presentation/ui/dist/js/870.0630ca03.js new file mode 100644 index 000000000..5c4c5215e --- /dev/null +++ b/src/presentation/ui/dist/js/870.0630ca03.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[870],{23346:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Zl});var l=a(59835),s=a(86970),i=a(60499),n=a(97510),o=a(84019),r=a(62601);const u={key:0,class:"flex justify-between items-center"},c={class:"flex justify-center items-center"},v=["onClick"],m=["src"],d={class:"text-capitalize",style:{"font-size":"1.2rem"}},p={key:1,class:"flex text-h6 justify-center items-center",style:{height:"115px"}},g=(0,l.aZ)({__name:"MarketplaceInstallAppSlide",props:{catalogList:{},marketplaceType:{}},emits:["update:selectedApp"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(0),o=(0,i.iH)(null),r=(0,i.iH)(null),g=(0,l.Fl)((()=>a.catalogList.filter((e=>e.type===a.marketplaceType)))),b=(0,l.Fl)((()=>{const e=Math.min(n.value,g.value.length-4);return g.value.slice(e,e+4)})),w=e=>{r.value=e,o.value=b.value[e]};return(0,l.YP)(g,(e=>{e.length>0||(o.value=null)})),(0,l.YP)(o,(()=>{t("update:selectedApp",o.value)})),(e,t)=>{const a=(0,l.up)("q-btn");return g.value.length>0?((0,l.wg)(),(0,l.iD)("div",u,[(0,l.Wm)(a,{style:(0,s.j5)(g.value.length>4&&n.value>0?"visibility: visible":"visibility: hidden"),round:"",flat:"",icon:"sym_s_chevron_left",color:"primary",size:"lg",onClick:t[0]||(t[0]=e=>n.value=Math.max(0,n.value-1))},null,8,["style"]),(0,l._)("div",c,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(b.value,((e,t)=>((0,l.wg)(),(0,l.iD)("div",{key:t,class:(0,s.C_)(["bg-app-slide",{active:r.value===t}]),style:{padding:"8px 4px"},onClick:e=>w(t)},[(0,l._)("img",{src:e.avatarUrl,style:{width:"64px",height:"64px"}},null,8,m),(0,l._)("div",d,(0,s.zw)(e.name),1)],10,v)))),128))]),(0,l.Wm)(a,{style:(0,s.j5)(g.value.length>4&&n.valuen.value=Math.min(g.value.length-1,n.value+1))},null,8,["style"])])):((0,l.wg)(),(0,l.iD)("div",p,(0,s.zw)(e.$t("marketplaceInstallAppSlide.notFoundApps",{type:e.marketplaceType})),1))}}});var b=a(68879),w=a(69984),y=a.n(w);const _=g,f=_;y()(g,"components",{QBtn:b.Z});var h=a(88850),S=a(21647),k=a(84278),x=a(9704),q=a(88900),U=a(25121),Z=a(45273);const T={class:"flex justify-start q-gutter-sm q-mb-md"},W={class:"q-my-md"},I={key:0,class:"marketplace-data-fields-box"},C={class:"flex justify-between items-center q-mb-md"},D={class:"title-h6"},F={class:"flex justify-between items-center q-mt-lg"},H=(0,l.aZ)({__name:"MarketplaceInstallAppForm",props:{catalogList:{}},setup(e){const t=(0,r.R)(),a=(0,U.QT)().t,n=(0,i.iH)(""),o=(0,i.iH)(""),u=(0,i.iH)(null),c=(0,i.iH)("app"),v=(0,i.iH)(0),m=(0,i.iH)(0),d=(0,i.iH)([]),p=(0,l.Fl)({get:()=>t.getShowInstallAppDialog,set:e=>t.setShowInstallAppDialog(e)}),g=(0,l.Fl)({get:()=>t.getKeyMarketplaceTable,set:e=>t.setKeyMarketplaceTable(e)});function b(){p.value=!1}function w(){if(!u.value)return;(0,Z.Q)();const e={id:u.value.id,hostname:o.value};n.value&&(e.installDirectory=n.value),d.value.length>0&&(e.dataFields=d.value);const t=new x.Z;t.installApp(e).then((()=>{var e,t;(0,q.LX)(a("marketplaceInstallAppForm.installAppSuccess",{type:null===(e=u.value)||void 0===e?void 0:e.type,appName:null===(t=u.value)||void 0===t?void 0:t.name})),setTimeout((()=>{b(),g.value++}),1e3)})).catch((e=>{var t,l;console.error(e),(0,q.s9)(e.response.data,a("marketplaceInstallAppForm.installAppWithError",{type:null===(t=u.value)||void 0===t?void 0:t.type,appName:null===(l=u.value)||void 0===l?void 0:l.name}))})).finally((()=>{(0,Z.Z)()}))}return(0,l.YP)(c,(()=>{m.value++})),(0,l.YP)(u,(()=>{d.value=[],v.value++})),(e,t)=>{const a=(0,l.up)("q-radio"),i=(0,l.up)("q-tooltip"),r=(0,l.up)("q-icon");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(S.Z,{class:"q-mb-md","onUpdate:selectedHostname":t[0]||(t[0]=e=>o.value=e),"onUpdate:installDirectory":t[1]||(t[1]=e=>n.value=e)}),(0,l._)("div",T,[(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=e=>c.value=e),val:"app",label:e.$t("marketplaceInstallAppForm.marketplaceType.apps")},null,8,["modelValue","label"]),(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[3]||(t[3]=e=>c.value=e),val:"framework",label:e.$t("marketplaceInstallAppForm.marketplaceType.frameworks")},null,8,["modelValue","label"]),(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[4]||(t[4]=e=>c.value=e),val:"stack",label:e.$t("marketplaceInstallAppForm.marketplaceType.stacks")},null,8,["modelValue","label"])]),(0,l._)("div",W,[((0,l.wg)(),(0,l.j4)(f,{catalogList:e.catalogList,marketplaceType:c.value,"onUpdate:selectedApp":t[5]||(t[5]=e=>u.value=e),key:m.value},null,8,["catalogList","marketplaceType"]))]),null!==u.value&&u.value.dataFields.length>0?((0,l.wg)(),(0,l.iD)("div",I,[(0,l._)("div",C,[(0,l._)("div",D,(0,s.zw)(e.$t("marketplaceInstallAppForm.installParams")),1),(0,l.Wm)(r,{name:"sym_s_help",class:"text-white",size:"sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{anchor:"bottom middle",class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.$t("marketplaceInstallAppForm.descriptionInstallParams")),1)])),_:1})])),_:1})]),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(u.value.dataFields,((e,t)=>((0,l.wg)(),(0,l.iD)("div",{class:"q-mb-md",key:t},[((0,l.wg)(),(0,l.j4)(h.Z,{style:{width:"100%"},isRequired:e.isRequired,defaultValue:e.defaultValue,label:e.label,options:e.options,type:e.type,name:e.name,key:v.value,"onUpdate:dataFields":e=>d.value[t]=e},null,8,["isRequired","defaultValue","label","options","type","name","onUpdate:dataFields"]))])))),128))])):(0,l.kq)("",!0),(0,l._)("div",F,[(0,l.Wm)(k.Z,{color:"grey-8",label:e.$t("marketplaceInstallAppForm.cancelBtn"),onClick:t[6]||(t[6]=e=>b())},null,8,["label"]),(0,l.Wm)(k.Z,{color:"primary",label:e.$t("marketplaceInstallAppForm.confirmBtn"),disable:null===u.value,onClick:t[7]||(t[7]=e=>w())},null,8,["label","disable"])])],64)}}});var Q=a(11480),$=a(22857),P=a(46858);const V=H,z=V;y()(H,"components",{QRadio:Q.Z,QIcon:$.Z,QTooltip:P.Z});const L={class:"flex justify-between items-center"},A={class:"title-dialog"},j=(0,l.aZ)({__name:"MarketplaceInstallAppDialog",setup(e){const t=(0,r.R)(),a=new x.Z,n=(0,U.QT)().t,o=(0,i.iH)(!1),u=(0,i.iH)([]);(0,l.bv)((()=>{m()}));const c=(0,l.Fl)({get:()=>t.getShowInstallAppDialog,set:e=>t.setShowInstallAppDialog(e)});function v(){c.value=!1}function m(){o.value=!0,a.getCatalog().then((e=>{u.value=e.data.body})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,n("marketplaceInstallAppDialog.getCatalogWithError"))})).finally((()=>{o.value=!1}))}return(e,t)=>{const a=(0,l.up)("q-skeleton"),i=(0,l.up)("q-card"),n=(0,l.up)("q-btn"),r=(0,l.up)("q-card-section"),m=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(m,{modelValue:c.value,"onUpdate:modelValue":t[1]||(t[1]=e=>c.value=e),persistent:""},{default:(0,l.w5)((()=>[!0===o.value?((0,l.wg)(),(0,l.j4)(i,{key:0,flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{height:"400px",width:"100%"})])),_:1})):((0,l.wg)(),(0,l.j4)(i,{key:1,flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",L,[(0,l._)("div",A,(0,s.zw)(e.$t("marketplaceInstallAppDialog.title")),1),(0,l.Wm)(n,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>v())})]),(0,l.Wm)(r,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(z,{catalogList:u.value},null,8,["catalogList"])])),_:1})])),_:1}))])),_:1},8,["modelValue"])}}});var B=a(32074),Y=a(44458),E=a(57133),N=a(63190);const R=j,M=R;y()(j,"components",{QDialog:B.Z,QCard:Y.Z,QSkeleton:E.ZP,QBtn:b.Z,QCardSection:N.Z});const K={class:"title-h4"},X=(0,l.aZ)({__name:"MarketplaceIndex",setup(e){const t=(0,U.QT)().t,a=new x.Z,u=(0,r.R)(),c=(0,i.iH)([]),v=(0,i.iH)(!1),m=(0,i.iH)(0),d=(0,l.Fl)((()=>u.getShowInstallAppDialog));function p(){v.value=!0,a.getInstalledApps().then((e=>{var t;c.value=null!==(t=e.data.body)&&void 0!==t?t:[]})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("marketplaceIndex.getInstalledAppsWithError"))})).finally((()=>{v.value=!1}))}return(0,l.bv)((()=>{p()})),(0,l.YP)(d,(e=>{!1!==e&&m.value++})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(o.Z),((0,l.wg)(),(0,l.j4)(M,{key:m.value})),(0,l._)("div",K,(0,s.zw)(e.$t("marketplaceIndex.title")),1),(0,l.Wm)(n.Z,{installedAppsList:c.value},null,8,["installedAppsList"])],64))}}),O=X,G=O,J={class:"text-left home-system-info-table-td"},ee={class:"text-right"},te={class:"hidden"},ae={class:"text-left home-system-info-table-td"},le={class:"text-right"},se={class:"text-left home-system-info-table-td"},ie={class:"text-right"},ne={class:"text-left home-system-info-table-td"},oe={class:"text-right home-system-info-table-td"},re={class:"system-info-text-chip"},ue={class:"text-italic q-ml-xs system-info-text-chip"},ce={class:"system-info-text-chip"},ve=(0,l._)("small",{class:"text-italic q-ml-xs system-info-text-chip"}," GB RAM",-1),me={class:"system-info-text-chip"},de=(0,l._)("small",{class:"text-italic q-ml-xs system-info-text-chip"}," GB Storage",-1),pe={class:"text-left home-system-info-table-td"},ge={class:"text-right"},be=(0,l.aZ)({__name:"SystemInfoTable",props:{overview:{}},setup(e){const t=e,a=(0,i.iH)({currentUsage:{cpuUsagePercent:0,memUsagePercent:0,storageUsage:0},hostname:"",publicIp:"",runtimeContext:"container",specs:{cpuCores:0,cpuFrequency:0,cpuModel:"",memoryTotal:0,storageTotal:0},uptimeSecs:0});function n(e){return(e/1024/1024/1024).toFixed(1)}function o(e){return(e/1e3).toFixed(1)}function r(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),l=e%60;return`${t}h ${a}m ${l}s`}return(0,l.bv)((()=>{a.value=t.overview})),(0,l.YP)((()=>t.overview),(e=>{a.value=e})),(e,t)=>{const i=(0,l.up)("q-avatar"),u=(0,l.up)("q-chip"),c=(0,l.up)("q-markup-table");return(0,l.wg)(),(0,l.j4)(c,{flat:"",bordered:"",style:{"min-height":"300px"}},{default:(0,l.w5)((()=>[(0,l._)("tbody",null,[(0,l._)("tr",null,[(0,l._)("td",J,(0,s.zw)(e.$t("systemInfoTable.colHostname")),1),(0,l._)("td",ee,(0,s.zw)(a.value.hostname),1)]),(0,l._)("tr",te,[(0,l._)("td",ae,(0,s.zw)(e.$t("systemInfoTable.colRuntimeContext")),1),(0,l._)("td",le,(0,s.zw)(a.value.runtimeContext),1)]),(0,l._)("tr",null,[(0,l._)("td",se,(0,s.zw)(e.$t("systemInfoTable.colUptime")),1),(0,l._)("td",ie,(0,s.zw)(r(a.value.uptimeSecs)),1)]),(0,l._)("tr",null,[(0,l._)("td",ne,(0,s.zw)(e.$t("systemInfoTable.colHardware")),1),(0,l._)("td",oe,[(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_memory",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",re,(0,s.zw)(a.value.specs.cpuCores),1),(0,l._)("small",ue,"CPU "+(0,s.zw)(o(a.value.specs.cpuFrequency))+" GHz",1)])),_:1})]),(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_memory_alt",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",ce,(0,s.zw)(n(a.value.specs.memoryTotal)),1),ve])),_:1})]),(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_sd_card",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",me,(0,s.zw)(n(a.value.specs.storageTotal)),1),de])),_:1})])])]),(0,l._)("tr",null,[(0,l._)("td",pe,(0,s.zw)(e.$t("systemInfoTable.colPublicIp")),1),(0,l._)("td",ge,(0,s.zw)(a.value.publicIp),1)])])])),_:1})}}});var we=a(66933),ye=a(57691),_e=a(61357);const fe=be,he=fe;y()(be,"components",{QMarkupTable:we.Z,QChip:ye.Z,QAvatar:_e.Z});var Se=a(19302),ke=a(27092),xe=a.n(ke);const qe=(0,l.aZ)({__name:"AreaChart",props:{series:{},height:{default:200}},setup(e){const t=(0,Se.Z)(),a=(0,i.iH)(0),s=(0,i.iH)({theme:{mode:"dark",palette:"palette6"},chart:{height:200,type:"area",background:"transparent",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"datetime",categories:[0,1,2,3,4,5,6,7,8,9]},yaxis:{tickAmount:4,min:0,max:100,labels:{formatter:e=>e+"%"}},tooltip:{x:{format:"dd/MM/yy HH:mm"}},legend:{position:"top",horizontalAlign:"left"}}),n=(0,l.Fl)((()=>t.dark.isActive));return(0,l.YP)(n,(()=>{s.value.theme.mode=n.value?"dark":"light",a.value++}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)((0,i.SU)(xe()),{type:"area",options:s.value,series:e.series,height:e.height,key:a.value},null,8,["options","series","height"]))}}),Ue=qe,Ze=Ue,Te={class:"text-center"},We={style:{"line-height":"1.2944rem"}},Ie=(0,l._)("br",null,null,-1),Ce=(0,l.aZ)({__name:"SystemInfoDiskUsage",props:{storageUsage:{},storageTotal:{}},setup(e){const t=e;function a(){return Math.trunc(t.storageUsage)}return(e,t)=>{const i=(0,l.up)("q-circular-progress");return(0,l.wg)(),(0,l.iD)("div",Te,[(0,l.Wm)(i,{"show-value":"","font-size":"16px",value:a(),size:"150px",thickness:.3,color:"primary","track-color":"grey-6",class:"q-my-md"},{default:(0,l.w5)((()=>[(0,l._)("div",We,[(0,l.Uk)((0,s.zw)(a())+"% ",1),Ie,(0,l.Uk)(" "+(0,s.zw)(e.$t("systemInfoDiskUsage.diskUsage")),1)])])),_:1},8,["value"])])}}});var De=a(83302);const Fe=Ce,He=Fe;y()(Ce,"components",{QCircularProgress:De.Z});const Qe={class:"title-h6 q-py-sm"},$e={class:"row"},Pe={class:"col-9"},Ve={class:"col"},ze=(0,l.aZ)({__name:"SystemInfoResourcesChart",props:{overview:{}},setup(e){const t=e,a=(0,U.QT)().t,n=(0,i.iH)([{name:a("systemInfoResourcesChart.cpu"),data:Array()},{name:a("systemInfoResourcesChart.ram"),data:Array()}]);return(0,l.wF)((()=>{n.value[0].data.push(Math.trunc(100*t.overview.currentUsage.cpuUsagePercent)),n.value[1].data.push(Math.trunc(100*t.overview.currentUsage.memUsagePercent))})),(0,l.YP)((()=>t.overview),(e=>{10===n.value[0].data.length&&(n.value[0].data.shift(),n.value[1].data.shift()),n.value[0].data.push(parseInt(e.currentUsage.cpuUsagePercent.toFixed(3))),n.value[1].data.push(parseInt(e.currentUsage.memUsagePercent.toFixed(3)))}),{deep:!0}),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",Qe,(0,s.zw)(e.$t("systemInfoResourcesChart.titleResourcesChart")),1),(0,l._)("div",$e,[(0,l._)("div",Pe,[(0,l.Wm)(Ze,{series:n.value,height:235},null,8,["series"])]),(0,l._)("div",Ve,[(0,l.Wm)(He,{storageTotal:e.overview.specs.storageTotal,storageUsage:e.overview.currentUsage.storageUsage},null,8,["storageTotal","storageUsage"])])])],64))}}),Le=ze,Ae=Le;var je=a(87178),Be=a(16397),Ye=a(85118);const Ee={class:"flex justify-between items-center q-mb-sm"},Ne={class:"title-h4"},Re={class:"flex justify-between"},Me={class:"overview-system-info-table"},Ke={class:"overview-resources-chart"},Xe=(0,l.aZ)({__name:"SystemInfoIndex",setup(e){const t=(0,Be.n)(),a=(0,Ye.V)(),n=new je.Z,o=(0,i.iH)(),r=(0,l.Fl)({get:()=>t.getSystemInfo,set:e=>t.setSystemInfo(e)}),u=(0,l.Fl)((()=>a.getSelectedRefreshRate));function c(){o.value&&clearInterval(o.value),o.value=setInterval((()=>{n.getSystemInfo().then((e=>{r.value=e.data.body})).catch((e=>{console.error(e)}))}),1e3*u.value)}return(0,l.bv)((()=>{n.getSystemInfo().then((e=>{r.value=e.data.body})).catch((e=>{console.error(e)})).finally((()=>{c()}))})),(0,l.Ah)((()=>{clearInterval(o.value)})),(0,l.YP)(u,(()=>{c()})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",Ee,[(0,l._)("div",Ne,(0,s.zw)(e.$t("systemInfoIndex.titleSystemInfo")),1)]),(0,l._)("div",Re,[(0,l._)("div",Me,[(0,l.Wm)(he,{overview:r.value},null,8,["overview"])]),(0,l._)("div",Ke,[(0,l.Wm)(Ae,{overview:r.value},null,8,["overview"])])])],64))}}),Oe=Xe,Ge=Oe;var Je=a(9281),et=a(3746);const tt=(0,et.Q_)("servicesStatus",{state:()=>({keyServicesStatusTable:0,isLoadingServicesStatus:!1,showDialogUninstallService:!1,showDialogInstallService:!1,showDialogUpdateService:!1,selectedService:{},servicesStatusList:[]}),getters:{getKeyServicesStatusTable(e){return e.keyServicesStatusTable},getIsLoadingServicesStatus(e){return e.isLoadingServicesStatus},getShowDialogUninstallService(e){return e.showDialogUninstallService},getShowDialogInstallService(e){return e.showDialogInstallService},getShowDialogUpdateService(e){return e.showDialogUpdateService},getSelectedService(e){return e.selectedService},getServicesStatusList(e){return e.servicesStatusList}},actions:{setKeyServicesStatusTable(e){this.keyServicesStatusTable=e},setIsLoadingServicesStatus(e){this.isLoadingServicesStatus=e},setShowDialogUninstallService(e){this.showDialogUninstallService=e},setShowDialogInstallService(e){this.showDialogInstallService=e},setShowDialogUpdateService(e){this.showDialogUpdateService=e},setSelectedService(e){this.selectedService=e},setServicesStatusList(e){this.servicesStatusList=e}}}),at={key:0,class:"flex justify-end items-center"},lt={class:"td-action-bg-15",style:{width:"57px"}},st={class:"td-action-bg-20"},it={class:"td-action-bg-25"},nt={key:1,class:"flex justify-end items-center"},ot={class:"td-action-bg-25",style:{width:"56px"}},rt=(0,l.aZ)({__name:"ServicesStatusTableActions",props:{service:{}},setup(e){const t=e,a=new Je.Z,n=(0,U.QT)().t,o=tt(),r=(0,i.iH)(t.service.status),u=(0,i.iH)(!1),c=(0,i.iH)(!1),v=(0,l.Fl)({get:()=>o.getKeyServicesStatusTable,set:e=>{o.keyServicesStatusTable=e}}),m=(0,l.Fl)({get:()=>o.getIsLoadingServicesStatus,set:e=>{o.setIsLoadingServicesStatus(e)}});function d(e){"installed"!==e&&"uninstalled"!==e&&(m.value=!0,(0,Z.Q)(n("running"!==e?"servicesStatusTableActions.stopLoading":"servicesStatusTableActions.startLoading")),a.updateServiceStatus({name:t.service.name,status:e}).then((()=>{"running"!==e?(0,q.LX)(n("servicesStatusTableActions.stopSuccess")):(0,q.LX)(n("servicesStatusTableActions.startSuccess"))})).catch((t=>{if(console.error(t),"running"===e)return r.value="stopped",void(0,q.s9)(t.response.data,n("servicesStatusTableActions.startError"));r.value="running",(0,q.s9)(t.response.data,n("servicesStatusTableActions.stopError"))})).finally((()=>{m.value=!1,setTimeout((()=>{v.value++,(0,Z.Z)()}),1e3)})))}function p(e){"installed"!==e&&"uninstalled"!==e&&(m.value=!0,c.value=!0,(0,Z.Q)(n("servicesStatusTableActions.restartLoading")),a.updateServiceStatus({name:t.service.name,status:"running"===e?"stopped":"running"}).then((()=>{const t=n("running"===e?"servicesStatusTableActions.stopSuccess":"servicesStatusTableActions.startSuccess");(0,q.LX)(t),"stopped"!==e&&setTimeout((()=>{p("stopped")}),1e3)})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,n("servicesStatusTableActions.restartError"))})).finally((()=>{m.value=!1,c.value=!1,(0,Z.Z)()})))}function g(){o.setSelectedService(t.service),o.setShowDialogUpdateService(!0)}function b(){o.setSelectedService(t.service),o.setShowDialogUninstallService(!0)}return(0,l.YP)(r,(e=>{"installed"!==e&&"uninstalled"!==e&&d(e)})),(e,t)=>{const a=(0,l.up)("q-toggle"),o=(0,l.up)("q-tooltip"),v=(0,l.up)("q-btn"),m=(0,l.up)("q-icon");return"system"!==e.service.type?((0,l.wg)(),(0,l.iD)("div",at,[(0,l._)("div",lt,[(0,l.Wm)(a,{disable:"running"!==r.value&&"stopped"!==r.value,modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),"true-value":"running","false-value":"stopped",size:"36px"},null,8,["disable","modelValue"])]),(0,l._)("div",st,[(0,l.Wm)(v,{disable:"running"!==r.value,onClick:t[1]||(t[1]=e=>p(r.value)),loading:c.value,size:"md",flat:"",icon:"sym_s_refresh"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.restartBtn")),1)])),_:1})])),_:1},8,["disable","loading"])]),(0,l._)("div",it,[(0,l.Wm)(v,{disable:"solo"===e.service.nature,onClick:t[2]||(t[2]=e=>g()),size:"md",flat:"",icon:"sym_s_settings"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.updateBtn")),1)])),_:1})])),_:1},8,["disable"])]),(0,l._)("div",null,[(0,l.Wm)(v,{disable:"uninstalled"===r.value,onClick:t[3]||(t[3]=e=>b()),loading:u.value,color:"negative",size:"md",icon:"sym_s_delete_forever"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-negative text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.uninstallBtn")),1)])),_:1})])),_:1},8,["disable","loading"])])])):((0,l.wg)(),(0,l.iD)("div",nt,[(0,l._)("div",ot,[(0,l.Wm)(v,{disable:"running"!==r.value,onClick:t[4]||(t[4]=e=>p(r.value)),loading:c.value,size:"md",flat:"",icon:"sym_s_refresh"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.restartBtn")),1)])),_:1})])),_:1},8,["disable","loading"])]),(0,l.Wm)(m,{name:"sym_s_info",size:"16px",class:"text-primary q-ml-sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.systemServiceWarning")),1)])),_:1})])),_:1})]))}}});var ut=a(23175);const ct=rt,vt=ct;y()(rt,"components",{QToggle:ut.Z,QBtn:b.Z,QTooltip:P.Z,QIcon:$.Z});var mt=a(73451);const dt={class:"flex justify-start items-center"},pt=(0,l._)("span",{style:{"padding-bottom":"3px"}},"v",-1),gt={class:"services-status-text-chip"},bt={class:"services-status-text-chip"},wt=(0,l.aZ)({__name:"ServicesStatusTableTdMain",props:{serviceName:{},version:{},startupFile:{}},setup(e){return(e,t)=>{const a=(0,l.up)("q-avatar"),n=(0,l.up)("q-chip");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",null,(0,s.zw)((0,i.SU)(mt.R)(e.serviceName)),1),(0,l._)("div",dt,[e.version?((0,l.wg)(),(0,l.j4)(n,{key:0,square:"",outline:"",color:"primary",class:"q-ml-none q-mr-xs"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{color:"primary","text-color":"white","font-size":"1.1326rem"},{default:(0,l.w5)((()=>[pt])),_:1}),(0,l._)("span",gt,(0,s.zw)(e.version),1)])),_:1})):(0,l.kq)("",!0),e.startupFile?((0,l.wg)(),(0,l.j4)(n,{key:1,square:"",class:"text-primary q-ml-none",outline:""},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{icon:"sym_s_description",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("span",bt,(0,s.zw)(e.startupFile),1)])),_:1})):(0,l.kq)("",!0)])],64)}}}),yt=wt,_t=yt;y()(wt,"components",{QChip:ye.Z,QAvatar:_e.Z});const ft=(0,l.aZ)({__name:"ServicesStatusTable",props:{servicesStatusList:{}},setup(e){const t=e,a=(0,U.QT)().t,n=tt(),o=(0,i.iH)(""),r=(0,i.iH)([]),u=(0,i.iH)([{name:"uptimeSecs",label:a("servicesStatusTable.colUptime"),align:"center",format:e=>p(e.uptimeSecs),field:"metrics"},{name:"cpuUsagePercent",label:a("servicesStatusTable.colCpuUsage"),align:"center",format:e=>g(e.cpuUsagePercent),field:"metrics"},{name:"memUsagePercent",label:a("servicesStatusTable.colRamUsage"),align:"center",format:e=>g(e.memUsagePercent),field:"metrics"}]),c=(0,i.iH)({sortBy:"serviceName",isDescending:!1}),v=(0,i.iH)({rowsPerPage:1e4}),m=(0,l.Fl)({get:()=>n.getShowDialogInstallService,set:e=>n.setShowDialogInstallService(e)});function d(e,a=!1){let l=t.servicesStatusList;"serviceName"===e&&l.sort(((e,t)=>e.namet.name?1:0)),"uptimeSecs"===e&&l.sort(((e,t)=>e.metrics.uptimeSecst.metrics.uptimeSecs?1:0)),"cpuUsagePercent"===e&&l.sort(((e,t)=>e.metrics.cpuUsagePercentt.metrics.cpuUsagePercent?1:0)),"memUsagePercent"===e&&l.sort(((e,t)=>e.metrics.memUsagePercentt.metrics.memUsagePercent?1:0)),!0===c.value.isDescending&&l.reverse(),!1===a&&c.value.sortBy===e&&(c.value.isDescending=!c.value.isDescending),r.value=l,c.value.sortBy=e}function p(e){if(!e)return"";const t=Math.floor(e/3600),a=Math.floor(e%3600/60),l=e%60;return`${t}h ${a}m ${l.toFixed(0)}s`}function g(e){return e?`${e.toFixed(2)}%`:"0%"}function b(){m.value=!0}return(0,l.YP)((()=>t.servicesStatusList),(()=>{d(c.value.sortBy,!0)})),(e,t)=>{const a=(0,l.up)("q-icon"),i=(0,l.up)("q-input"),n=(0,l.up)("q-space"),m=(0,l.up)("q-th"),p=(0,l.up)("q-tr"),g=(0,l.up)("q-td"),w=(0,l.up)("q-table");return(0,l.wg)(),(0,l.j4)(w,{rows:r.value,columns:u.value,filter:o.value,pagination:v.value,"onUpdate:pagination":t[3]||(t[3]=e=>v.value=e),"visible-columns":["uptimeSecs","cpuUsagePercent","memUsagePercent"],"no-data-label":e.$t("servicesStatusTable.notFound"),"row-key":"key",color:"primary",flat:"",bordered:"","virtual-scroll":"","rows-per-page-options":[0],"hide-pagination":"",style:{height:"auto","max-height":"800px"}},{top:(0,l.w5)((()=>[(0,l.Wm)(i,{borderless:"",debounce:"300",color:"primary",modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),label:e.$t("servicesStatusTable.inputSearch")},{prepend:(0,l.w5)((()=>[(0,l.Wm)(a,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,l.Wm)(n),(0,l.Wm)(k.Z,{label:e.$t("servicesStatusTable.createServiceBtn"),icon:"sym_s_install_desktop",onClick:t[1]||(t[1]=e=>b())},null,8,["label"])])),header:(0,l.w5)((i=>[(0,l.Wm)(p,{props:i},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{class:"bg-primary text-white services-table-th",style:{"text-align":"left !important"},onClick:t[2]||(t[2]=e=>d("serviceName"))},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.$t("servicesStatusTable.colServiceName"))+" ",1),(0,l.Wm)(a,{name:"serviceName"===c.value.sortBy?c.value.isDescending?"sym_s_arrow_downward":"sym_s_arrow_upward":""},null,8,["name"])])),_:1}),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.cols,(e=>((0,l.wg)(),(0,l.j4)(m,{key:e.name,props:i,class:"services-table-th",onClick:t=>d(e.name)},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.label)+" ",1),(0,l.Wm)(a,{name:c.value.sortBy===e.name?c.value.isDescending?"sym_s_arrow_downward":"sym_s_arrow_upward":""},null,8,["name"])])),_:2},1032,["props","onClick"])))),128)),(0,l.Wm)(m)])),_:2},1032,["props"])])),body:(0,l.w5)((e=>[(0,l.Wm)(p,{props:e},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{class:"td-main-table"},{default:(0,l.w5)((()=>[(0,l.Wm)(_t,{serviceName:e.row.name,version:e.row.version,startupFile:e.row.startupFile},null,8,["serviceName","version","startupFile"])])),_:2},1024),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.cols,(t=>((0,l.wg)(),(0,l.j4)(g,{key:t.name,props:e},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(t.value),1)])),_:2},1032,["props"])))),128)),(0,l.Wm)(g,{class:"text-right"},{default:(0,l.w5)((()=>[(0,l.Wm)(vt,{service:e.row},null,8,["service"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","columns","filter","pagination","no-data-label"])}}});var ht=a(84277),St=a(13119),kt=a(90136),xt=a(31233),qt=a(21682),Ut=a(67220);const Zt=ft,Tt=Zt;y()(ft,"components",{QTable:ht.Z,QInput:St.Z,QIcon:$.Z,QSpace:kt.Z,QTr:xt.Z,QTh:qt.Z,QTd:Ut.Z});var Wt=a(15521);const It=(0,l.aZ)({__name:"ServicesNameInput",props:{serviceName:{}},emits:["update:serviceName","update:isValidServiceName"],setup(e,{emit:t}){const a=e,s=/^[a-zA-Z0-9-_]{1,255}$/,n=(0,i.iH)(a.serviceName),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceName",e),t("update:isValidServiceName",o.value)}),{immediate:!0}),(0,l.YP)((()=>a.serviceName),(e=>{n.value=e}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),label:e.$t("servicesNameInput.serviceNameLabel"),icon:"sym_s_app_registration","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesNameInput.requiredError"),()=>n.value.length<=255||e.$t("servicesNameInput.maxLengthError"),()=>/^[a-zA-Z0-9-_]+$/.test(n.value)||e.$t("servicesNameInput.nameRegexError")]},null,8,["value","label","rules"]))}}),Ct=It,Dt=Ct,Ft=(0,l.aZ)({__name:"ServicesVersionInput",props:{serviceVersion:{}},emits:["update:serviceVersion","update:isValidServiceVersion"],setup(e,{emit:t}){const a=e,s=/^[\w\-\.]{1,255}$/,n=(0,i.iH)(a.serviceVersion),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceVersion",e),t("update:isValidServiceVersion",o.value)}),{immediate:!0}),(0,l.YP)((()=>a.serviceVersion),(e=>{n.value=e}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),label:e.$t("servicesVersionInput.versionLabel"),icon:"sym_s_code","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesVersionInput.requiredError"),()=>n.value.length<=255||e.$t("servicesVersionInput.maxLengthError"),()=>/^[\w\-\.]+$/.test(n.value)||e.$t("servicesVersionInput.versionRegexError")]},null,8,["value","label","rules"]))}}),Ht=Ft,Qt=Ht;var $t=a(94629);const Pt={class:"port-bindings-bg q-pa-sm"},Vt={class:"title-h6 q-mb-sm"},zt={class:"flex justify-between items-center q-mb-md"},Lt={class:"col q-pr-sm"},At={class:"col q-px-sm"},jt={class:"flex justify-between items-center"},Bt={class:"col q-pr-sm"},Yt={class:"col q-px-sm"},Et=(0,l.aZ)({__name:"ServicesPortBindings",props:{portBindings:{}},emits:["update:portBindings"],setup(e,{emit:t}){const a=e,n=/^(\d{1,5})$/,o=(0,i.iH)(a.portBindings),r=["http","https","ws","wss","grpc","grpcs","tcp","udp"],u=(0,i.iH)(0),c=(0,i.iH)({port:"",protocol:""}),v=(0,l.Fl)((()=>!(parseInt(c.value.port)>65535)&&(n.test(c.value.port)&&c.value.protocol.length>0)));function m(){o.value.push({port:parseInt(c.value.port),protocol:c.value.protocol}),u.value++,c.value={port:"",protocol:""}}function d(e){o.value.splice(e,1)}return(0,l.YP)(o,(e=>{t("update:portBindings",e)})),(0,l.YP)((()=>a.portBindings),(e=>{o.value=e})),(e,t)=>{const a=(0,l.up)("q-btn");return(0,l.wg)(),(0,l.iD)("div",Pt,[(0,l._)("div",Vt,(0,s.zw)(e.$t("servicesPortBindings.titlePortBindings")),1),(0,l._)("div",zt,[(0,l._)("div",Lt,[((0,l.wg)(),(0,l.j4)(Wt.Z,{value:c.value.port,"onUpdate:value":t[0]||(t[0]=e=>c.value.port=e),label:e.$t("servicesPortBindings.hostPortInputLabel"),maxLength:"5",rules:[()=>n.test(c.value.port.toString())||e.$t("servicesPortBindings.portError"),()=>parseInt(c.value.port)<=65535||e.$t("servicesPortBindings.portError")],key:u.value},null,8,["value","label","rules"]))]),(0,l._)("div",At,[(0,l.Wm)($t.Z,{selected:c.value.protocol,"onUpdate:selected":t[1]||(t[1]=e=>c.value.protocol=e),options:r,dense:!1,label:e.$t("servicesPortBindings.protocolInputLabel")},null,8,["selected","label"])]),(0,l.Wm)(a,{onClick:t[2]||(t[2]=e=>m()),color:"primary",size:"md",dense:"",icon:"sym_s_add",disable:!1===v.value},null,8,["disable"])]),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.value,((t,s)=>((0,l.wg)(),(0,l.iD)("div",{key:s},[(0,l._)("div",jt,[(0,l._)("div",Bt,[(0,l.Wm)(Wt.Z,{value:t.port,"onUpdate:value":e=>t.port=e,label:e.$t("servicesPortBindings.hostPortInputLabel"),disable:""},null,8,["value","onUpdate:value","label"])]),(0,l._)("div",Yt,[(0,l.Wm)($t.Z,{selected:t.protocol,"onUpdate:selected":e=>t.protocol=e,options:r,dense:!1,label:e.$t("servicesPortBindings.protocolInputLabel"),disable:""},null,8,["selected","onUpdate:selected","label"])]),(0,l.Wm)(a,{onClick:e=>d(s),color:"negative",size:"md",dense:"",icon:"sym_s_delete"},null,8,["onClick"])])])))),128))])}}}),Nt=Et,Rt=Nt;y()(Et,"components",{QBtn:b.Z});const Mt={class:"flex justify-between items-center"},Kt=["innerHTML"],Xt=(0,l.aZ)({__name:"ServicesCommandInput",props:{serviceCommand:{}},emits:["update:serviceCommand","update:isValidServiceCommand"],setup(e,{emit:t}){const a=e,s=/^[\w\s-.\/\\]{1,255}$/,n=(0,i.iH)(a.serviceCommand),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceCommand",e)}),{immediate:!0}),(0,l.YP)(o,(e=>{t("update:isValidServiceCommand",e)})),(0,l.YP)((()=>a.serviceCommand),(e=>{n.value=e}),{immediate:!0}),(e,t)=>{const a=(0,l.up)("q-tooltip"),s=(0,l.up)("q-icon");return(0,l.wg)(),(0,l.iD)("div",Mt,[(0,l.Wm)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),placeholder:e.$t("servicesCommandInput.serviceCommandPlaceholder"),icon:"sym_s_terminal","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesCommandInput.requiredError"),()=>n.value.length<=255||e.$t("servicesCommandInput.maxLengthError"),()=>/^[\w\s-.\/\\]+$/.test(n.value)||e.$t("servicesCommandInput.commandRegexError")],style:{width:"97%"}},null,8,["value","placeholder","rules"]),(0,l.Wm)(s,{name:"sym_s_help",size:"20px",class:"cursor-pointer",style:{position:"absolute",right:"30px",top:"100px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{anchor:"top middle",self:"bottom middle",class:"bg-primary"},{default:(0,l.w5)((()=>[(0,l._)("span",{innerHTML:e.$t("servicesCommandInput.helpCommand")},null,8,Kt)])),_:1})])),_:1})])}}}),Ot=Xt,Gt=Ot;y()(Xt,"components",{QIcon:$.Z,QTooltip:P.Z});var Jt=function(e,t,a,l){function s(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function n(e){try{r(l.next(e))}catch(t){i(t)}}function o(e){try{r(l["throw"](e))}catch(t){i(t)}}function r(e){e.done?a(e.value):s(e.value).then(n,o)}r((l=l.apply(e,t||[])).next())}))};const ea={class:"flex justify-between items-center"},ta={class:"col q-mr-sm"},aa={class:"col q-ml-sm"},la=["textContent"],sa={class:"service-tab-custom-box"},ia={class:"row justify-between items-center"},na={class:"col-2"},oa={class:"col"},ra={class:"row justify-between items-center"},ua={class:"col-2"},ca={class:"col"},va=(0,l.aZ)({__name:"ServicesTabCustom",setup(e){const t=(0,U.QT)().t,a=tt(),n=(0,i.iH)([]),o=(0,i.iH)(null),r=(0,i.iH)(0),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)(""),m=(0,i.iH)("other"),d=(0,i.iH)(!1),p=(0,i.iH)(!1),g=(0,i.iH)(!1),b=(0,i.iH)("command"),w=(0,i.iH)([{label:t("servicesTabCustom.application"),value:"application"},{label:t("servicesTabCustom.runtime"),value:"runtime"},{label:t("servicesTabCustom.database"),value:"database"},{label:t("servicesTabCustom.webserver"),value:"webserver"},{label:t("servicesTabCustom.mom"),value:"mom"},{label:t("servicesTabCustom.monitoring"),value:"monitoring"},{label:t("servicesTabCustom.logging"),value:"logging"},{label:t("servicesTabCustom.security"),value:"security"},{label:t("servicesTabCustom.backup"),value:"backup"},{label:t("servicesTabCustom.system"),value:"system"},{label:t("servicesTabCustom.other"),value:"other"}]);(0,l.YP)(b,(()=>{r.value++,o.value=null,u.value=""}));const y=(0,l.Fl)((()=>"command"===b.value?"display: block;":"visibility:hidden;")),_=(0,l.Fl)((()=>"file_uploader"===b.value?"display: block;":"visibility:hidden;")),f=(0,l.Fl)((()=>d.value&&p.value&&(g.value||null!==o.value))),h=(0,l.Fl)({get:()=>a.getShowDialogInstallService,set:e=>a.setShowDialogInstallService(e)}),S=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function x(){h.value=!1}function T(){return Jt(this,void 0,void 0,(function*(){return(0,Z.Q)(),new Promise(((e,a)=>{const l=new Je.Z,s=new FormData;s.append("files",o.value),s.append("destinationPath","/app/"),l.uploadFile(s).then((()=>{(0,Z.Z)(),e()})).catch((e=>{(0,q.s9)(e.message,t("servicesTabCustom.uploadError")),console.error(e),(0,Z.Z)(),a(e)}))}))}))}function W(){var e;return Jt(this,void 0,void 0,(function*(){if("file_uploader"===b.value)try{yield T()}catch(s){throw(0,q.c0)({msg:t("servicesTabCustom.uploadError"),type:"negative",position:"bottom"}),console.error(s),s}let a=u.value;!1===g.value&&(a=`/app/${null===(e=o.value)||void 0===e?void 0:e.name}`);const l=new Je.Z;(0,Z.Q)(),l.installCustomService({name:v.value,version:c.value,command:a,portBindings:n.value,type:m.value}).then((()=>{(0,q.LX)(t("servicesTabCustom.installSuccess")),S.value++,x()})).catch((e=>{(0,q.s9)(e.response.data,t("servicesTabCustom.installError")),console.error(e)})).finally((()=>{(0,Z.Z)()}))}))}return(e,t)=>{const a=(0,l.up)("q-card-section"),i=(0,l.up)("q-radio"),h=(0,l.up)("q-icon"),S=(0,l.up)("q-file"),q=(0,l.up)("q-card"),U=(0,l.up)("q-expansion-item"),Z=(0,l.up)("q-list"),T=(0,l.up)("q-card-actions");return(0,l.wg)(),(0,l.j4)(q,null,{default:(0,l.w5)((()=>[(0,l.Wm)(a,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",ea,[(0,l._)("div",ta,[(0,l.Wm)(Dt,{serviceName:v.value,"onUpdate:serviceName":t[0]||(t[0]=e=>v.value=e),"onUpdate:isValidServiceName":t[1]||(t[1]=e=>d.value=e)},null,8,["serviceName"])]),(0,l._)("div",aa,[(0,l.Wm)(Qt,{serviceVersion:c.value,"onUpdate:serviceVersion":t[2]||(t[2]=e=>c.value=e),"onUpdate:isValidServiceVersion":t[3]||(t[3]=e=>p.value=e)},null,8,["serviceVersion"])])])])),_:1}),(0,l.Wm)(a,null,{default:(0,l.w5)((()=>[(0,l._)("h6",{style:{size:"1em"},class:"q-ma-sm",textContent:(0,s.zw)(e.$t("servicesTabCustom.labelExecut"))},null,8,la),(0,l._)("div",sa,[(0,l._)("div",ia,[(0,l._)("div",na,[(0,l.Wm)(i,{style:{"margin-top":"-18px"},dense:"",modelValue:b.value,"onUpdate:modelValue":t[4]||(t[4]=e=>b.value=e),label:e.$t("servicesTabCustom.labelRadioCommand"),val:"command"},null,8,["modelValue","label"])]),(0,l._)("div",oa,[((0,l.wg)(),(0,l.j4)(Gt,{style:(0,s.j5)(y.value),serviceCommand:u.value,"onUpdate:serviceCommand":t[5]||(t[5]=e=>u.value=e),targetType:b.value,key:r.value,"onUpdate:isValidServiceCommand":t[6]||(t[6]=e=>g.value=e)},null,8,["style","serviceCommand","targetType"]))])]),(0,l._)("div",ra,[(0,l._)("div",ua,[(0,l.Wm)(i,{style:{"margin-top":"-18px"},dense:"",modelValue:b.value,"onUpdate:modelValue":t[7]||(t[7]=e=>b.value=e),label:e.$t("servicesTabCustom.labelRadioFile"),val:"file_uploader"},null,8,["modelValue","label"])]),(0,l._)("div",ca,[((0,l.wg)(),(0,l.j4)(S,{modelValue:o.value,"onUpdate:modelValue":t[8]||(t[8]=e=>o.value=e),color:"primary",counter:"",style:(0,s.j5)(_.value),filled:"","use-chips":"",key:r.value,label:e.$t("servicesTabCustom.labelUploadFile"),cursor:"pointer",type:"file"},{prepend:(0,l.w5)((()=>[(0,l.Wm)(h,{name:"sym_s_upload",size:"20px"})])),_:1},8,["modelValue","style","label"]))])])]),(0,l.Wm)($t.Z,{selected:m.value,"onUpdate:selected":t[9]||(t[9]=e=>m.value=e),label:e.$t("servicesTabCustom.typeSelect"),options:w.value},null,8,["selected","label","options"])])),_:1}),(0,l.Wm)(a,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesTabCustom.advancedSettingsLabel"),class:"services-tab-installable-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(q,{class:"q-ma-sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,null,{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:n.value,"onUpdate:portBindings":t[10]||(t[10]=e=>n.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(T,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesTabCustom.cancelButton"),color:"grey-7",onClick:t[11]||(t[11]=e=>x())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===f.value,label:e.$t("servicesTabCustom.installButton"),icon:"sym_s_install_desktop",onClick:t[12]||(t[12]=e=>W())},null,8,["disable","label"])])),_:1})])),_:1})}}});var ma=a(33837),da=a(13246),pa=a(50651),ga=a(11821);const ba=va,wa=ba;y()(va,"components",{QCard:Y.Z,QCardSection:N.Z,QRadio:Q.Z,QFile:ma.Z,QIcon:$.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z});var ya=a(18892);const _a={class:"flex justify-between items-center"},fa={class:"title-dialog"},ha=(0,l.aZ)({__name:"StartupFileDialog",props:{showStartupFileDialog:{type:Boolean}},emits:["update:showStartupFileDialog","update:startupFilePath"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(0),o=(0,i.iH)([]),r=(0,i.iH)([]),u=(0,i.iH)("/app"),c=(0,i.iH)(!1),v=()=>{c.value=!1};function m(){const e=new ya.Z;(0,Z.Q)(),e.getCurrentPath(u.value).then((e=>{if(r.value=e.data.body,"/app"===u.value)return d(e.data.body),void n.value++;p(o.value,u.value,e.data.body),n.value++})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{(0,Z.Z)()}),500)}))}function d(e){o.value=[{label:"/app",path:"/app",icon:"sym_s_home",iconColor:"grey-7",children:e.map((e=>Object.assign({label:e.name,path:e.path,icon:"directory"===e.mimeType?"sym_s_folder":"sym_s_description",iconColor:"directory"===e.mimeType?"yellow-9":"grey-7"},".trash"===e.name&&{icon:"sym_s_delete",iconColor:"grey-8"})))}]}function p(e,a,l){const s=e=>{for(const t of e){if(t.path===a)return t;if(t.children){const e=s(t.children);if(e)return e}}},i=s(e);if(!1!==i){if("sym_s_description"===i.icon)return t("update:startupFilePath",i.path),void v();i.icon="sym_s_folder_open",i.children=l.map((e=>Object.assign({label:e.name,path:e.path,icon:"directory"===e.mimeType?"sym_s_folder":"sym_s_description",iconColor:"directory"===e.mimeType?"yellow-9":"grey-7"},".trash"===e.name&&{icon:"sym_s_delete",iconColor:"grey-8"})))}}return(0,l.YP)((()=>a.showStartupFileDialog),(e=>{c.value=e,!1!==e&&m()}),{immediate:!0}),(0,l.YP)(c,(e=>{t("update:showStartupFileDialog",e)})),(0,l.YP)(u,(()=>{m()})),(e,t)=>{const a=(0,l.up)("q-btn"),i=(0,l.up)("q-tree"),r=(0,l.up)("q-card-section"),m=(0,l.up)("q-card-actions"),d=(0,l.up)("q-card"),p=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(p,{modelValue:c.value,"onUpdate:modelValue":t[3]||(t[3]=e=>c.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{flat:"",style:{width:"700px","max-width":"80vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",_a,[(0,l._)("div",fa,(0,s.zw)(e.$t("startupFileDialog.title")),1),(0,l.Wm)(a,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>v())})]),(0,l.Wm)(r,{class:"q-pa-none q-mt-md",style:{"overflow-y":"auto","max-height":"70vh"}},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)(i,{key:n.value,nodes:o.value,selected:u.value,"onUpdate:selected":t[1]||(t[1]=e=>u.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"]))])),_:1}),(0,l.Wm)(m,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("startupFileDialog.cancelBtn"),color:"grey-7",onClick:t[2]||(t[2]=e=>v())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var Sa=a(84749);const ka=ha,xa=ka;y()(ha,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z,QTree:Sa.Z,QCardActions:ga.Z});const qa={class:"q-pa-md startup-file-box"},Ua={class:"title-h6 q-mb-md"},Za={style:{"font-size":"0.9708rem"}},Ta={class:"flex justify-between items-center q-mt-md"},Wa={style:{width:"72%"}},Ia=(0,l.aZ)({__name:"StartupFile",props:{selectedStartupFile:{}},emits:["update:selectedStartupFile","update:isValidStartupFile"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(!1),o=(0,i.iH)(""),r=(0,i.iH)(0),u=(0,l.Fl)((()=>""!==o.value&&o.value.length<2046));return(0,l.YP)((()=>a.selectedStartupFile),(e=>{o.value=e}),{immediate:!0}),(0,l.YP)((()=>o.value),(e=>{t("update:selectedStartupFile",e)})),(0,l.YP)(n,(e=>{!1!==e&&r.value++})),(0,l.YP)(u,(e=>{t("update:isValidStartupFile",e)})),(e,t)=>{const a=(0,l.up)("q-input");return(0,l.wg)(),(0,l.iD)(l.HY,null,[((0,l.wg)(),(0,l.j4)(xa,{showStartupFileDialog:n.value,"onUpdate:showStartupFileDialog":t[0]||(t[0]=e=>n.value=e),"onUpdate:startupFilePath":t[1]||(t[1]=e=>o.value=e),key:r.value},null,8,["showStartupFileDialog"])),(0,l._)("div",qa,[(0,l._)("div",Ua,(0,s.zw)(e.$t("servicesTabInstallable.titleStartupFile")),1),(0,l._)("div",Za,(0,s.zw)(e.$t("servicesTabInstallable.helpText")),1),(0,l._)("div",Ta,[(0,l.Wm)(k.Z,{label:e.$t("servicesTabInstallable.selectStartupFile"),outline:!0,color:"primary",onClick:t[2]||(t[2]=e=>n.value=!0),style:{top:"2px"},icon:"sym_s_description"},null,8,["label"]),(0,l._)("div",Wa,[(0,l.Wm)(a,{filled:"",modelValue:o.value,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value=e),label:e.$t("servicesTabInstallable.startupFileLabel")},null,8,["modelValue","label"])])])])],64)}}}),Ca=Ia,Da=Ca;y()(Ia,"components",{QInput:St.Z});const Fa={class:"flex justify-between items-center q-my-md"},Ha={class:"col q-mr-sm"},Qa={class:"col q-ml-sm"},$a={key:0,class:"q-mb-lg"},Pa=(0,l.aZ)({__name:"ServicesTabInstallable",setup(e){const t=(0,U.QT)().t,a=tt(),s=new Je.Z,n=(0,i.iH)(!1),o=(0,i.iH)(0),r=(0,i.iH)(0),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)([]),m=(0,i.iH)(""),d=(0,i.iH)(!1),p=(0,i.iH)(!1),g=(0,i.iH)([]),b=(0,i.iH)([]),w=(0,i.iH)([]),y=(0,l.Fl)({get:()=>a.getShowDialogInstallService,set:e=>a.setShowDialogInstallService(e)}),_=(0,l.Fl)((()=>!1===p.value||!0===d.value)),f=(0,l.Fl)((()=>a.getServicesStatusList)),h=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function S(e){p.value=!1,g.value.forEach((t=>{t.name===e&&"multi"===t.nature&&(p.value=!0)}))}function x(){n.value=!0,g.value=[],s.getServicesInstallable().then((e=>{g.value=e.data.body})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{n.value=!1}),1e3)}))}function T(){b.value=[],g.value.forEach((e=>{let t=!1;const a={value:e.name,label:(0,mt.R)(e.name)};f.value.forEach((a=>{e.name===a.name&&"solo"===a.nature&&(t=!0)})),t||(b.value.push(a),r.value++)})),u.value=b.value[0].value}function W(){o.value++,w.value=[],g.value.forEach((e=>{e.name===u.value&&e.versions.forEach((e=>{w.value.push(e)}))})),c.value=w.value[0]}function I(){y.value=!1}function C(){(0,Z.Q)();const e=new Je.Z;let a={name:u.value,version:c.value,portBindings:v.value};p.value&&(a.startupFile=m.value),e.installService(a).then((()=>{(0,q.LX)(t("servicesTabInstallable.installSuccess")),h.value++,I()})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("servicesTabInstallable.installError"))})).finally((()=>{(0,Z.Z)()}))}return(0,l.bv)((()=>{x()})),(0,l.YP)(g,(()=>{0!==g.value.length&&T()})),(0,l.YP)(u,(e=>{W(),S(e)}),{immediate:!0}),(e,t)=>{const a=(0,l.up)("q-skeleton"),s=(0,l.up)("q-card-section"),i=(0,l.up)("q-card"),g=(0,l.up)("q-expansion-item"),y=(0,l.up)("q-list"),f=(0,l.up)("q-card-actions");return!0===n.value?((0,l.wg)(),(0,l.j4)(a,{key:0,animation:"blink",height:"400px"})):((0,l.wg)(),(0,l.j4)(i,{key:1},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",Fa,[(0,l._)("div",Ha,[((0,l.wg)(),(0,l.j4)($t.Z,{selected:u.value,"onUpdate:selected":t[0]||(t[0]=e=>u.value=e),label:e.$t("servicesTabInstallable.serviceLabel"),options:b.value,key:r.value},null,8,["selected","label","options"]))]),(0,l._)("div",Qa,[((0,l.wg)(),(0,l.j4)($t.Z,{selected:c.value,"onUpdate:selected":t[1]||(t[1]=e=>c.value=e),label:e.$t("servicesTabInstallable.versionLabel"),options:w.value,key:o.value},null,8,["selected","label","options"]))])]),!0===p.value?((0,l.wg)(),(0,l.iD)("div",$a,[(0,l.Wm)(Da,{selectedStartupFile:m.value,"onUpdate:selectedStartupFile":t[2]||(t[2]=e=>m.value=e),"onUpdate:isValidStartupFile":t[3]||(t[3]=e=>d.value=e)},null,8,["selectedStartupFile"])])):(0,l.kq)("",!0),(0,l.Wm)(y,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesTabInstallable.advancedSettingsLabel"),class:"services-tab-installable-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"q-ma-md"},{default:(0,l.w5)((()=>[(0,l.Wm)(s,null,{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:v.value,"onUpdate:portBindings":t[4]||(t[4]=e=>v.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(f,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesTabInstallable.cancelButton"),color:"grey-7",onClick:t[5]||(t[5]=e=>I())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===_.value,label:e.$t("servicesTabInstallable.installButton"),icon:"sym_s_install_desktop",onClick:t[6]||(t[6]=e=>C())},null,8,["disable","label"])])),_:1})])),_:1}))}}});var Va=a(490);const za=Pa,La=za;y()(Pa,"components",{QSkeleton:E.ZP,QCard:Y.Z,QCardSection:N.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z,QItem:Va.Z});const Aa=(0,l.aZ)({__name:"ServicesInstallDialogTabs",setup(e){const t=(0,i.iH)("installable");return(e,a)=>{const s=(0,l.up)("q-tab"),i=(0,l.up)("q-tabs"),n=(0,l.up)("q-separator"),o=(0,l.up)("q-tab-panel"),r=(0,l.up)("q-tab-panels");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=e=>t.value=e),"active-color":"primary","indicator-color":"primary",align:"justify",class:"text-grey","no-caps":""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"installable",class:"overview-services-tabs",icon:"sym_s_install_desktop",label:e.$t("servicesInstallDialogTabs.installableForm")},null,8,["label"]),(0,l.Wm)(s,{name:"custom",class:"overview-services-tabs",icon:"sym_s_app_registration",label:e.$t("servicesInstallDialogTabs.customForm")},null,8,["label"])])),_:1},8,["modelValue"]),(0,l.Wm)(n),(0,l.Wm)(r,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=e=>t.value=e),animated:""},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{name:"installable",class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(La)])),_:1}),(0,l.Wm)(o,{name:"custom",class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(wa)])),_:1})])),_:1},8,["modelValue"])],64)}}});var ja=a(47817),Ba=a(70900),Ya=a(50926),Ea=a(89800),Na=a(84106);const Ra=Aa,Ma=Ra;y()(Aa,"components",{QTabs:ja.Z,QTab:Ba.Z,QSeparator:Ya.Z,QTabPanels:Ea.Z,QTabPanel:Na.Z});const Ka={class:"flex justify-between items-center"},Xa={class:"title-dialog"},Oa=(0,l.aZ)({__name:"ServicesInstallDialog",setup(e){const t=tt(),a=(0,l.Fl)({get:()=>t.getShowDialogInstallService,set:e=>t.setShowDialogInstallService(e)});return(e,t)=>{const i=(0,l.up)("q-btn"),n=(0,l.up)("q-card-section"),o=(0,l.up)("q-card"),r=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(r,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",Ka,[(0,l._)("div",Xa,(0,s.zw)(e.$t("servicesInstallDialog.titleInstallService")),1),(0,l.Wm)(i,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>a.value=!1)})]),(0,l.Wm)(n,{class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Ma)])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ga=Oa,Ja=Ga;y()(Oa,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z});var el=a(89906);const tl=(0,l.aZ)({__name:"ServicesUninstallDialog",setup(e){const t=(0,U.QT)().t,a=new Je.Z,s=tt(),i=(0,l.Fl)((()=>s.getSelectedService.name)),n=(0,l.Fl)({get:()=>s.getShowDialogUninstallService,set:e=>{s.setShowDialogUninstallService(e)}}),o=(0,l.Fl)({get:()=>s.getKeyServicesStatusTable,set:e=>{s.keyServicesStatusTable=e}}),r=(0,l.Fl)({get:()=>s.getIsLoadingServicesStatus,set:e=>{s.setIsLoadingServicesStatus(e)}});function u(){r.value=!0,(0,Z.Q)(t("servicesUninstallDialog.uninstallLoading")),a.updateServiceStatus({name:i.value,status:"uninstalled"}).then((()=>{(0,q.LX)(t("servicesUninstallDialog.uninstallSuccess")),n.value=!1,o.value++})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("servicesUninstallDialog.uninstallError"))})).finally((()=>{r.value=!1,(0,Z.Z)()}))}return(e,t)=>((0,l.wg)(),(0,l.j4)(el.Z,{showDeleteDialog:n.value,"onUpdate:showDeleteDialog":t[2]||(t[2]=e=>n.value=e),titleDialog:e.$t("servicesUninstallDialog.uninstallDialogTitle"),messageToDelete:e.$t("servicesUninstallDialog.uninstallDialogDescription",{serviceName:i.value}),warningToDelete:e.$t("servicesUninstallDialog.warningUninstallService")},{"card-actions":(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesUninstallDialog.uninstallDialogCancelBtn"),color:"grey-7",onClick:t[0]||(t[0]=e=>n.value=!1)},null,8,["label"]),(0,l.Wm)(k.Z,{color:"negative",label:e.$t("servicesUninstallDialog.uninstallDialogConfirmBtn"),onClick:t[1]||(t[1]=e=>u())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),al=tl,ll=al,sl={class:"flex justify-between items-center"},il={class:"title-dialog"},nl={class:"flex justify-between items-center"},ol={class:"col q-mr-sm"},rl={class:"col q-ml-sm"},ul=(0,l.aZ)({__name:"ServicesUpdateDialog",setup(e){const t=(0,U.QT)().t,a=tt(),n=(0,i.iH)([]),o=(0,i.iH)(""),r=(0,i.iH)(""),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)(!1),m=(0,i.iH)(!1),d=(0,i.iH)(!1),p=(0,l.Fl)((()=>"custom"!==b.value.nature&&"solo"!==b.value.nature?!0===v.value&&!0===d.value:v.value)),g=(0,l.Fl)({get:()=>a.getShowDialogUpdateService,set:e=>a.setShowDialogUpdateService(e)}),b=(0,l.Fl)((()=>a.getSelectedService)),w=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function y(){g.value=!1}function _(){const e=new Je.Z;(0,Z.Q)(),e.updateServiceStatus({name:c.value,version:u.value,command:r.value,startupFile:o.value,portBindings:n.value}).then((()=>{(0,q.LX)(t("servicesUpdateDialog.updateSuccess")),w.value++,y()})).catch((e=>{(0,q.s9)(e.response.data,t("servicesUpdateDialog.updateError")),console.error(e)})).finally((()=>{(0,Z.Z)()}))}return(0,l.YP)(g,(e=>{!1!==e&&(n.value=b.value.portBindings?b.value.portBindings:[],o.value=b.value.startupFile?b.value.startupFile:"",r.value=b.value.command,u.value=b.value.version,c.value=b.value.name)})),(e,t)=>{const a=(0,l.up)("q-btn"),i=(0,l.up)("q-card-section"),w=(0,l.up)("q-card"),f=(0,l.up)("q-expansion-item"),h=(0,l.up)("q-list"),S=(0,l.up)("q-card-actions"),x=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(x,{modelValue:g.value,"onUpdate:modelValue":t[11]||(t[11]=e=>g.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",sl,[(0,l._)("div",il,(0,s.zw)(e.$t("servicesUpdateDialog.titleUpdateService")),1),(0,l.Wm)(a,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>g.value=!1)})]),(0,l.Wm)(i,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",nl,[(0,l._)("div",ol,[(0,l.Wm)(Dt,{disable:!0,serviceName:c.value,"onUpdate:serviceName":t[1]||(t[1]=e=>c.value=e)},null,8,["serviceName"])]),(0,l._)("div",rl,[(0,l.Wm)(Qt,{serviceVersion:u.value,"onUpdate:serviceVersion":t[2]||(t[2]=e=>u.value=e),"onUpdate:isValidServiceVersion":t[3]||(t[3]=e=>v.value=e)},null,8,["serviceVersion"])])]),"custom"===b.value.nature?((0,l.wg)(),(0,l.j4)(Gt,{key:0,serviceCommand:r.value,"onUpdate:serviceCommand":t[4]||(t[4]=e=>r.value=e),"onUpdate:isValidServiceCommand":t[5]||(t[5]=e=>m.value=e),class:"q-mt-sm"},null,8,["serviceCommand"])):(0,l.kq)("",!0),"custom"!==b.value.nature&&"solo"!==b.value.nature?((0,l.wg)(),(0,l.j4)(Da,{key:1,selectedStartupFile:o.value,"onUpdate:selectedStartupFile":t[6]||(t[6]=e=>o.value=e),class:"q-mt-sm","onUpdate:isValidStartupFile":t[7]||(t[7]=e=>d.value=e)},null,8,["selectedStartupFile"])):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(i,{class:"q-pt-none q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(f,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesUpdateDialog.advancedSettingsLabel"),class:"services-update-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{class:"q-ma-md"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:n.value,"onUpdate:portBindings":t[8]||(t[8]=e=>n.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(S,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesUpdateDialog.cancelButton"),color:"grey-7",onClick:t[9]||(t[9]=e=>y())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===p.value,label:e.$t("servicesUpdateDialog.updateButton"),icon:"sym_s_install_desktop",color:"primary",onClick:t[10]||(t[10]=e=>_())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),cl=ul,vl=cl;y()(ul,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z});const ml={class:"title-h4"},dl=(0,l.aZ)({__name:"ServicesStatusIndex",setup(e){const t=tt(),a=(0,Ye.V)(),n=new Je.Z,o=(0,i.iH)(),r=(0,i.iH)([]),u=(0,l.Fl)((()=>t.getKeyServicesStatusTable)),c=(0,l.Fl)((()=>a.getSelectedRefreshRate));function v(){o.value&&clearInterval(o.value),o.value=setInterval((()=>{n.getServicesStatus().then((e=>{0!==e.data.body.length&&(t.setServicesStatusList(e.data.body),r.value=m(e.data.body))})).catch((e=>{console.error(e)}))}),1e3*c.value)}function m(e){return e.forEach((e=>{e.metrics||(e.metrics={cpuUsagePercent:0,memUsagePercent:0,pids:[],uptimeSecs:0})})),e}return(0,l.bv)((()=>{n.getServicesStatus().then((e=>{0!==e.data.body.length&&(t.setServicesStatusList(e.data.body),r.value=m(e.data.body))})).catch((e=>{console.error(e)})).finally((()=>{v()}))})),(0,l.Ah)((()=>{clearInterval(o.value)})),(0,l.YP)(c,(()=>{v()})),(0,l.YP)(u,(()=>{v()})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(Ja),(0,l.Wm)(ll),(0,l.Wm)(vl),(0,l._)("div",ml,(0,s.zw)(e.$t("servicesStatusIndex.titleServicesStatus")),1),(0,l.Wm)(Tt,{servicesStatusList:r.value},null,8,["servicesStatusList"])],64))}}),pl=dl,gl=pl,bl={class:"title-h4"},wl={class:"flex justify-start"},yl=(0,l.aZ)({__name:"OverviewQuickServicesLinks",setup(e){const t=(0,U.QT)().t,a=[{name:t("quickLinks.linkApps"),icon:"apps",path:"/apps"},{name:t("quickLinks.linkDatabases"),icon:"database",path:"/databases"},{name:t("quickLinks.linkFiles"),icon:"folder",path:"/file-manager"},{name:t("quickLinks.linkBackups"),icon:"backup",path:"/backups"},{name:t("quickLinks.linkDomains"),icon:"language",path:"/domains"},{name:t("quickLinks.linkMetrics"),icon:"bar_chart",path:"/metrics"},{name:t("quickLinks.linkLogs"),icon:"receipt",path:"/logs"},{name:t("quickLinks.linkTerminal"),icon:"terminal",path:"/terminal"}];return(e,n)=>{const o=(0,l.up)("q-btn");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",bl,(0,s.zw)((0,i.SU)(t)("quickLinks.titleQuickLinks")),1),(0,l._)("div",wl,[((0,l.wg)(),(0,l.iD)(l.HY,null,(0,l.Ko)(a,(e=>(0,l.Wm)(o,{key:e.name,icon:"sym_s_"+e.icon,label:e.name,to:e.path,class:"q-my-md q-mx-xs",style:{width:"90px",height:"90px"},stack:"",outline:"","no-caps":""},null,8,["icon","label","to"]))),64))])],64)}}}),_l=yl,fl=_l;y()(yl,"components",{QBtn:b.Z});var hl={class:"row q-mt-md"},Sl={class:"col"},kl={class:"col q-ml-md hidden"};const xl={__name:"OverviewIndex",setup:function(e){return function(e,t){var a=(0,l.up)("q-card-section"),s=(0,l.up)("q-card"),i=(0,l.up)("q-page");return(0,l.wg)(),(0,l.j4)(i,{padding:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(s,{flat:"",class:"q-mb-md"},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(G)]})),_:1})]})),_:1}),(0,l.Wm)(s,{flat:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(Ge)]})),_:1})]})),_:1}),(0,l._)("div",hl,[(0,l._)("div",Sl,[(0,l.Wm)(s,{flat:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(gl)]})),_:1})]})),_:1})]),(0,l._)("div",kl,[(0,l.Wm)(s,{flat:"",style:{height:"100%"}},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(fl)]})),_:1})]})),_:1})])])]})),_:1})}}};var ql=a(69885);const Ul=xl,Zl=Ul;y()(xl,"components",{QPage:ql.Z,QCard:Y.Z,QCardSection:N.Z})}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/870.d1e53a36.js b/src/presentation/ui/dist/js/870.d1e53a36.js deleted file mode 100644 index 505a0c914..000000000 --- a/src/presentation/ui/dist/js/870.d1e53a36.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[870],{23346:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Zl});var l=a(59835),s=a(86970),i=a(60499),n=a(97510),o=a(84019),r=a(62601);const u={key:0,class:"flex justify-between items-center"},c={class:"flex justify-center items-center"},v=["onClick"],m=["src"],d={class:"text-capitalize",style:{"font-size":"1.2rem"}},p={key:1,class:"flex text-h6 justify-center items-center",style:{height:"115px"}},g=(0,l.aZ)({__name:"MarketplaceInstallAppSlide",props:{catalogList:{},marketplaceType:{}},emits:["update:selectedApp"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(0),o=(0,i.iH)(null),r=(0,i.iH)(null),g=(0,l.Fl)((()=>a.catalogList.filter((e=>e.type===a.marketplaceType)))),b=(0,l.Fl)((()=>{const e=Math.min(n.value,g.value.length-4);return g.value.slice(e,e+4)})),w=e=>{r.value=e,o.value=b.value[e]};return(0,l.YP)(g,(e=>{e.length>0||(o.value=null)})),(0,l.YP)(o,(()=>{t("update:selectedApp",o.value)})),(e,t)=>{const a=(0,l.up)("q-btn");return g.value.length>0?((0,l.wg)(),(0,l.iD)("div",u,[(0,l.Wm)(a,{style:(0,s.j5)(g.value.length>4&&n.value>0?"visibility: visible":"visibility: hidden"),round:"",flat:"",icon:"sym_s_chevron_left",color:"primary",size:"lg",onClick:t[0]||(t[0]=e=>n.value=Math.max(0,n.value-1))},null,8,["style"]),(0,l._)("div",c,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(b.value,((e,t)=>((0,l.wg)(),(0,l.iD)("div",{key:t,class:(0,s.C_)(["bg-app-slide",{active:r.value===t}]),style:{padding:"8px 4px"},onClick:e=>w(t)},[(0,l._)("img",{src:e.avatarUrl,style:{width:"64px",height:"64px"}},null,8,m),(0,l._)("div",d,(0,s.zw)(e.name),1)],10,v)))),128))]),(0,l.Wm)(a,{style:(0,s.j5)(g.value.length>4&&n.valuen.value=Math.min(g.value.length-1,n.value+1))},null,8,["style"])])):((0,l.wg)(),(0,l.iD)("div",p,(0,s.zw)(e.$t("marketplaceInstallAppSlide.notFoundApps",{type:e.marketplaceType})),1))}}});var b=a(68879),w=a(69984),y=a.n(w);const _=g,f=_;y()(g,"components",{QBtn:b.Z});var h=a(88850),S=a(21647),k=a(84278),x=a(9704),q=a(88900),U=a(25121),Z=a(45273);const T={class:"flex justify-start q-gutter-sm q-mb-md"},W={class:"q-my-md"},I={key:0,class:"marketplace-data-fields-box"},C={class:"flex justify-between items-center q-mb-md"},D={class:"title-h6"},F={class:"flex justify-between items-center q-mt-lg"},H=(0,l.aZ)({__name:"MarketplaceInstallAppForm",props:{catalogList:{}},setup(e){const t=(0,r.R)(),a=(0,U.QT)().t,n=(0,i.iH)(""),o=(0,i.iH)(""),u=(0,i.iH)(null),c=(0,i.iH)("app"),v=(0,i.iH)(0),m=(0,i.iH)(0),d=(0,i.iH)([]),p=(0,l.Fl)({get:()=>t.getShowInstallAppDialog,set:e=>t.setShowInstallAppDialog(e)}),g=(0,l.Fl)({get:()=>t.getKeyMarketplaceTable,set:e=>t.setKeyMarketplaceTable(e)});function b(){p.value=!1}function w(){if(!u.value)return;(0,Z.Q)();const e={id:u.value.id,hostname:o.value};n.value&&(e.installDirectory=n.value),d.value.length>0&&(e.dataFields=d.value);const t=new x.Z;t.installApp(e).then((()=>{var e,t;(0,q.LX)(a("marketplaceInstallAppForm.installAppSuccess",{type:null===(e=u.value)||void 0===e?void 0:e.type,appName:null===(t=u.value)||void 0===t?void 0:t.name})),setTimeout((()=>{b(),g.value++}),1e3)})).catch((e=>{var t,l;console.error(e),(0,q.s9)(e.response.data,a("marketplaceInstallAppForm.installAppWithError",{type:null===(t=u.value)||void 0===t?void 0:t.type,appName:null===(l=u.value)||void 0===l?void 0:l.name}))})).finally((()=>{(0,Z.Z)()}))}return(0,l.YP)(c,(()=>{m.value++})),(0,l.YP)(u,(()=>{v.value++})),(e,t)=>{const a=(0,l.up)("q-radio"),i=(0,l.up)("q-tooltip"),r=(0,l.up)("q-icon");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(S.Z,{class:"q-mb-md","onUpdate:selectedHostname":t[0]||(t[0]=e=>o.value=e),"onUpdate:installDirectory":t[1]||(t[1]=e=>n.value=e)}),(0,l._)("div",T,[(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=e=>c.value=e),val:"app",label:e.$t("marketplaceInstallAppForm.marketplaceType.apps")},null,8,["modelValue","label"]),(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[3]||(t[3]=e=>c.value=e),val:"framework",label:e.$t("marketplaceInstallAppForm.marketplaceType.frameworks")},null,8,["modelValue","label"]),(0,l.Wm)(a,{modelValue:c.value,"onUpdate:modelValue":t[4]||(t[4]=e=>c.value=e),val:"stack",label:e.$t("marketplaceInstallAppForm.marketplaceType.stacks")},null,8,["modelValue","label"])]),(0,l._)("div",W,[((0,l.wg)(),(0,l.j4)(f,{catalogList:e.catalogList,marketplaceType:c.value,"onUpdate:selectedApp":t[5]||(t[5]=e=>u.value=e),key:m.value},null,8,["catalogList","marketplaceType"]))]),null!==u.value&&u.value.dataFields.length>0?((0,l.wg)(),(0,l.iD)("div",I,[(0,l._)("div",C,[(0,l._)("div",D,(0,s.zw)(e.$t("marketplaceInstallAppForm.installParams")),1),(0,l.Wm)(r,{name:"sym_s_help",class:"text-white",size:"sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{anchor:"bottom middle",class:"bg-primary",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.$t("marketplaceInstallAppForm.descriptionInstallParams")),1)])),_:1})])),_:1})]),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(u.value.dataFields,((e,t)=>((0,l.wg)(),(0,l.iD)("div",{class:"q-mb-md",key:t},[((0,l.wg)(),(0,l.j4)(h.Z,{style:{width:"100%"},isRequired:e.isRequired,defaultValue:e.defaultValue,label:e.label,options:e.options,type:e.type,name:e.name,key:v.value,"onUpdate:dataFields":e=>d.value[t]=e},null,8,["isRequired","defaultValue","label","options","type","name","onUpdate:dataFields"]))])))),128))])):(0,l.kq)("",!0),(0,l._)("div",F,[(0,l.Wm)(k.Z,{color:"grey-8",label:e.$t("marketplaceInstallAppForm.cancelBtn"),onClick:t[6]||(t[6]=e=>b())},null,8,["label"]),(0,l.Wm)(k.Z,{color:"primary",label:e.$t("marketplaceInstallAppForm.confirmBtn"),disable:null===u.value,onClick:t[7]||(t[7]=e=>w())},null,8,["label","disable"])])],64)}}});var Q=a(11480),$=a(22857),P=a(46858);const V=H,z=V;y()(H,"components",{QRadio:Q.Z,QIcon:$.Z,QTooltip:P.Z});const L={class:"flex justify-between items-center"},A={class:"title-dialog"},j=(0,l.aZ)({__name:"MarketplaceInstallAppDialog",setup(e){const t=(0,r.R)(),a=new x.Z,n=(0,U.QT)().t,o=(0,i.iH)(!1),u=(0,i.iH)([]);(0,l.bv)((()=>{m()}));const c=(0,l.Fl)({get:()=>t.getShowInstallAppDialog,set:e=>t.setShowInstallAppDialog(e)});function v(){c.value=!1}function m(){o.value=!0,a.getCatalog().then((e=>{u.value=e.data.body})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,n("marketplaceInstallAppDialog.getCatalogWithError"))})).finally((()=>{o.value=!1}))}return(e,t)=>{const a=(0,l.up)("q-skeleton"),i=(0,l.up)("q-card"),n=(0,l.up)("q-btn"),r=(0,l.up)("q-card-section"),m=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(m,{modelValue:c.value,"onUpdate:modelValue":t[1]||(t[1]=e=>c.value=e),persistent:""},{default:(0,l.w5)((()=>[!0===o.value?((0,l.wg)(),(0,l.j4)(i,{key:0,flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{height:"400px",width:"100%"})])),_:1})):((0,l.wg)(),(0,l.j4)(i,{key:1,flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",L,[(0,l._)("div",A,(0,s.zw)(e.$t("marketplaceInstallAppDialog.title")),1),(0,l.Wm)(n,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>v())})]),(0,l.Wm)(r,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(z,{catalogList:u.value},null,8,["catalogList"])])),_:1})])),_:1}))])),_:1},8,["modelValue"])}}});var B=a(32074),Y=a(44458),E=a(57133),N=a(63190);const R=j,M=R;y()(j,"components",{QDialog:B.Z,QCard:Y.Z,QSkeleton:E.ZP,QBtn:b.Z,QCardSection:N.Z});const K={class:"title-h4"},X=(0,l.aZ)({__name:"MarketplaceIndex",setup(e){const t=(0,U.QT)().t,a=new x.Z,u=(0,r.R)(),c=(0,i.iH)([]),v=(0,i.iH)(!1),m=(0,i.iH)(0),d=(0,l.Fl)((()=>u.getShowInstallAppDialog));function p(){v.value=!0,a.getInstalledApps().then((e=>{var t;c.value=null!==(t=e.data.body)&&void 0!==t?t:[]})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("marketplaceIndex.getInstalledAppsWithError"))})).finally((()=>{v.value=!1}))}return(0,l.bv)((()=>{p()})),(0,l.YP)(d,(e=>{!1!==e&&m.value++})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(o.Z),((0,l.wg)(),(0,l.j4)(M,{key:m.value})),(0,l._)("div",K,(0,s.zw)(e.$t("marketplaceIndex.title")),1),(0,l.Wm)(n.Z,{installedAppsList:c.value},null,8,["installedAppsList"])],64))}}),O=X,G=O,J={class:"text-left home-system-info-table-td"},ee={class:"text-right"},te={class:"hidden"},ae={class:"text-left home-system-info-table-td"},le={class:"text-right"},se={class:"text-left home-system-info-table-td"},ie={class:"text-right"},ne={class:"text-left home-system-info-table-td"},oe={class:"text-right home-system-info-table-td"},re={class:"system-info-text-chip"},ue={class:"text-italic q-ml-xs system-info-text-chip"},ce={class:"system-info-text-chip"},ve=(0,l._)("small",{class:"text-italic q-ml-xs system-info-text-chip"}," GB RAM",-1),me={class:"system-info-text-chip"},de=(0,l._)("small",{class:"text-italic q-ml-xs system-info-text-chip"}," GB Storage",-1),pe={class:"text-left home-system-info-table-td"},ge={class:"text-right"},be=(0,l.aZ)({__name:"SystemInfoTable",props:{overview:{}},setup(e){const t=e,a=(0,i.iH)({currentUsage:{cpuUsagePercent:0,memUsagePercent:0,storageUsage:0},hostname:"",publicIp:"",runtimeContext:"container",specs:{cpuCores:0,cpuFrequency:0,cpuModel:"",memoryTotal:0,storageTotal:0},uptimeSecs:0});function n(e){return(e/1024/1024/1024).toFixed(1)}function o(e){return(e/1e3).toFixed(1)}function r(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),l=e%60;return`${t}h ${a}m ${l}s`}return(0,l.bv)((()=>{a.value=t.overview})),(0,l.YP)((()=>t.overview),(e=>{a.value=e})),(e,t)=>{const i=(0,l.up)("q-avatar"),u=(0,l.up)("q-chip"),c=(0,l.up)("q-markup-table");return(0,l.wg)(),(0,l.j4)(c,{flat:"",bordered:"",style:{"min-height":"300px"}},{default:(0,l.w5)((()=>[(0,l._)("tbody",null,[(0,l._)("tr",null,[(0,l._)("td",J,(0,s.zw)(e.$t("systemInfoTable.colHostname")),1),(0,l._)("td",ee,(0,s.zw)(a.value.hostname),1)]),(0,l._)("tr",te,[(0,l._)("td",ae,(0,s.zw)(e.$t("systemInfoTable.colRuntimeContext")),1),(0,l._)("td",le,(0,s.zw)(a.value.runtimeContext),1)]),(0,l._)("tr",null,[(0,l._)("td",se,(0,s.zw)(e.$t("systemInfoTable.colUptime")),1),(0,l._)("td",ie,(0,s.zw)(r(a.value.uptimeSecs)),1)]),(0,l._)("tr",null,[(0,l._)("td",ne,(0,s.zw)(e.$t("systemInfoTable.colHardware")),1),(0,l._)("td",oe,[(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_memory",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",re,(0,s.zw)(a.value.specs.cpuCores),1),(0,l._)("small",ue,"CPU "+(0,s.zw)(o(a.value.specs.cpuFrequency))+" GHz",1)])),_:1})]),(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_memory_alt",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",ce,(0,s.zw)(n(a.value.specs.memoryTotal)),1),ve])),_:1})]),(0,l._)("div",null,[(0,l.Wm)(u,{square:"",class:"text-primary",outline:"",style:{"min-width":"150px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{icon:"sym_s_sd_card",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("strong",me,(0,s.zw)(n(a.value.specs.storageTotal)),1),de])),_:1})])])]),(0,l._)("tr",null,[(0,l._)("td",pe,(0,s.zw)(e.$t("systemInfoTable.colPublicIp")),1),(0,l._)("td",ge,(0,s.zw)(a.value.publicIp),1)])])])),_:1})}}});var we=a(66933),ye=a(57691),_e=a(61357);const fe=be,he=fe;y()(be,"components",{QMarkupTable:we.Z,QChip:ye.Z,QAvatar:_e.Z});var Se=a(19302),ke=a(27092),xe=a.n(ke);const qe=(0,l.aZ)({__name:"AreaChart",props:{series:{},height:{default:200}},setup(e){const t=(0,Se.Z)(),a=(0,i.iH)(0),s=(0,i.iH)({theme:{mode:"dark",palette:"palette6"},chart:{height:200,type:"area",background:"transparent",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"datetime",categories:[0,1,2,3,4,5,6,7,8,9]},yaxis:{tickAmount:4,min:0,max:100,labels:{formatter:e=>e+"%"}},tooltip:{x:{format:"dd/MM/yy HH:mm"}},legend:{position:"top",horizontalAlign:"left"}}),n=(0,l.Fl)((()=>t.dark.isActive));return(0,l.YP)(n,(()=>{s.value.theme.mode=n.value?"dark":"light",a.value++}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)((0,i.SU)(xe()),{type:"area",options:s.value,series:e.series,height:e.height,key:a.value},null,8,["options","series","height"]))}}),Ue=qe,Ze=Ue,Te={class:"text-center"},We={style:{"line-height":"1.2944rem"}},Ie=(0,l._)("br",null,null,-1),Ce=(0,l.aZ)({__name:"SystemInfoDiskUsage",props:{storageUsage:{},storageTotal:{}},setup(e){const t=e;function a(){return Math.trunc(t.storageUsage)}return(e,t)=>{const i=(0,l.up)("q-circular-progress");return(0,l.wg)(),(0,l.iD)("div",Te,[(0,l.Wm)(i,{"show-value":"","font-size":"16px",value:a(),size:"150px",thickness:.3,color:"primary","track-color":"grey-6",class:"q-my-md"},{default:(0,l.w5)((()=>[(0,l._)("div",We,[(0,l.Uk)((0,s.zw)(a())+"% ",1),Ie,(0,l.Uk)(" "+(0,s.zw)(e.$t("systemInfoDiskUsage.diskUsage")),1)])])),_:1},8,["value"])])}}});var De=a(83302);const Fe=Ce,He=Fe;y()(Ce,"components",{QCircularProgress:De.Z});const Qe={class:"title-h6 q-py-sm"},$e={class:"row"},Pe={class:"col-9"},Ve={class:"col"},ze=(0,l.aZ)({__name:"SystemInfoResourcesChart",props:{overview:{}},setup(e){const t=e,a=(0,U.QT)().t,n=(0,i.iH)([{name:a("systemInfoResourcesChart.cpu"),data:Array()},{name:a("systemInfoResourcesChart.ram"),data:Array()}]);return(0,l.wF)((()=>{n.value[0].data.push(Math.trunc(100*t.overview.currentUsage.cpuUsagePercent)),n.value[1].data.push(Math.trunc(100*t.overview.currentUsage.memUsagePercent))})),(0,l.YP)((()=>t.overview),(e=>{10===n.value[0].data.length&&(n.value[0].data.shift(),n.value[1].data.shift()),n.value[0].data.push(parseInt(e.currentUsage.cpuUsagePercent.toFixed(3))),n.value[1].data.push(parseInt(e.currentUsage.memUsagePercent.toFixed(3)))}),{deep:!0}),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",Qe,(0,s.zw)(e.$t("systemInfoResourcesChart.titleResourcesChart")),1),(0,l._)("div",$e,[(0,l._)("div",Pe,[(0,l.Wm)(Ze,{series:n.value,height:235},null,8,["series"])]),(0,l._)("div",Ve,[(0,l.Wm)(He,{storageTotal:e.overview.specs.storageTotal,storageUsage:e.overview.currentUsage.storageUsage},null,8,["storageTotal","storageUsage"])])])],64))}}),Le=ze,Ae=Le;var je=a(87178),Be=a(16397),Ye=a(85118);const Ee={class:"flex justify-between items-center q-mb-sm"},Ne={class:"title-h4"},Re={class:"flex justify-between"},Me={class:"overview-system-info-table"},Ke={class:"overview-resources-chart"},Xe=(0,l.aZ)({__name:"SystemInfoIndex",setup(e){const t=(0,Be.n)(),a=(0,Ye.V)(),n=new je.Z,o=(0,i.iH)(),r=(0,l.Fl)({get:()=>t.getSystemInfo,set:e=>t.setSystemInfo(e)}),u=(0,l.Fl)((()=>a.getSelectedRefreshRate));function c(){o.value&&clearInterval(o.value),o.value=setInterval((()=>{n.getSystemInfo().then((e=>{r.value=e.data.body})).catch((e=>{console.error(e)}))}),1e3*u.value)}return(0,l.bv)((()=>{n.getSystemInfo().then((e=>{r.value=e.data.body})).catch((e=>{console.error(e)})).finally((()=>{c()}))})),(0,l.Ah)((()=>{clearInterval(o.value)})),(0,l.YP)(u,(()=>{c()})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",Ee,[(0,l._)("div",Ne,(0,s.zw)(e.$t("systemInfoIndex.titleSystemInfo")),1)]),(0,l._)("div",Re,[(0,l._)("div",Me,[(0,l.Wm)(he,{overview:r.value},null,8,["overview"])]),(0,l._)("div",Ke,[(0,l.Wm)(Ae,{overview:r.value},null,8,["overview"])])])],64))}}),Oe=Xe,Ge=Oe;var Je=a(9281),et=a(3746);const tt=(0,et.Q_)("servicesStatus",{state:()=>({keyServicesStatusTable:0,isLoadingServicesStatus:!1,showDialogUninstallService:!1,showDialogInstallService:!1,showDialogUpdateService:!1,selectedService:{},servicesStatusList:[]}),getters:{getKeyServicesStatusTable(e){return e.keyServicesStatusTable},getIsLoadingServicesStatus(e){return e.isLoadingServicesStatus},getShowDialogUninstallService(e){return e.showDialogUninstallService},getShowDialogInstallService(e){return e.showDialogInstallService},getShowDialogUpdateService(e){return e.showDialogUpdateService},getSelectedService(e){return e.selectedService},getServicesStatusList(e){return e.servicesStatusList}},actions:{setKeyServicesStatusTable(e){this.keyServicesStatusTable=e},setIsLoadingServicesStatus(e){this.isLoadingServicesStatus=e},setShowDialogUninstallService(e){this.showDialogUninstallService=e},setShowDialogInstallService(e){this.showDialogInstallService=e},setShowDialogUpdateService(e){this.showDialogUpdateService=e},setSelectedService(e){this.selectedService=e},setServicesStatusList(e){this.servicesStatusList=e}}}),at={key:0,class:"flex justify-end items-center"},lt={class:"td-action-bg-15",style:{width:"57px"}},st={class:"td-action-bg-20"},it={class:"td-action-bg-25"},nt={key:1,class:"flex justify-end items-center"},ot={class:"td-action-bg-25",style:{width:"56px"}},rt=(0,l.aZ)({__name:"ServicesStatusTableActions",props:{service:{}},setup(e){const t=e,a=new Je.Z,n=(0,U.QT)().t,o=tt(),r=(0,i.iH)(t.service.status),u=(0,i.iH)(!1),c=(0,i.iH)(!1),v=(0,l.Fl)({get:()=>o.getKeyServicesStatusTable,set:e=>{o.keyServicesStatusTable=e}}),m=(0,l.Fl)({get:()=>o.getIsLoadingServicesStatus,set:e=>{o.setIsLoadingServicesStatus(e)}});function d(e){"installed"!==e&&"uninstalled"!==e&&(m.value=!0,(0,Z.Q)(n("running"!==e?"servicesStatusTableActions.stopLoading":"servicesStatusTableActions.startLoading")),a.updateServiceStatus({name:t.service.name,status:e}).then((()=>{"running"!==e?(0,q.LX)(n("servicesStatusTableActions.stopSuccess")):(0,q.LX)(n("servicesStatusTableActions.startSuccess"))})).catch((t=>{if(console.error(t),"running"===e)return r.value="stopped",void(0,q.s9)(t.response.data,n("servicesStatusTableActions.startError"));r.value="running",(0,q.s9)(t.response.data,n("servicesStatusTableActions.stopError"))})).finally((()=>{m.value=!1,setTimeout((()=>{v.value++,(0,Z.Z)()}),1e3)})))}function p(e){"installed"!==e&&"uninstalled"!==e&&(m.value=!0,c.value=!0,(0,Z.Q)(n("servicesStatusTableActions.restartLoading")),a.updateServiceStatus({name:t.service.name,status:"running"===e?"stopped":"running"}).then((()=>{const t=n("running"===e?"servicesStatusTableActions.stopSuccess":"servicesStatusTableActions.startSuccess");(0,q.LX)(t),"stopped"!==e&&setTimeout((()=>{p("stopped")}),1e3)})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,n("servicesStatusTableActions.restartError"))})).finally((()=>{m.value=!1,c.value=!1,(0,Z.Z)()})))}function g(){o.setSelectedService(t.service),o.setShowDialogUpdateService(!0)}function b(){o.setSelectedService(t.service),o.setShowDialogUninstallService(!0)}return(0,l.YP)(r,(e=>{"installed"!==e&&"uninstalled"!==e&&d(e)})),(e,t)=>{const a=(0,l.up)("q-toggle"),o=(0,l.up)("q-tooltip"),v=(0,l.up)("q-btn"),m=(0,l.up)("q-icon");return"system"!==e.service.type?((0,l.wg)(),(0,l.iD)("div",at,[(0,l._)("div",lt,[(0,l.Wm)(a,{disable:"running"!==r.value&&"stopped"!==r.value,modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),"true-value":"running","false-value":"stopped",size:"36px"},null,8,["disable","modelValue"])]),(0,l._)("div",st,[(0,l.Wm)(v,{disable:"running"!==r.value,onClick:t[1]||(t[1]=e=>p(r.value)),loading:c.value,size:"md",flat:"",icon:"sym_s_refresh"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.restartBtn")),1)])),_:1})])),_:1},8,["disable","loading"])]),(0,l._)("div",it,[(0,l.Wm)(v,{disable:"solo"===e.service.nature,onClick:t[2]||(t[2]=e=>g()),size:"md",flat:"",icon:"sym_s_settings"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.updateBtn")),1)])),_:1})])),_:1},8,["disable"])]),(0,l._)("div",null,[(0,l.Wm)(v,{disable:"uninstalled"===r.value,onClick:t[3]||(t[3]=e=>b()),loading:u.value,color:"negative",size:"md",icon:"sym_s_delete_forever"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-negative text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.uninstallBtn")),1)])),_:1})])),_:1},8,["disable","loading"])])])):((0,l.wg)(),(0,l.iD)("div",nt,[(0,l._)("div",ot,[(0,l.Wm)(v,{disable:"running"!==r.value,onClick:t[4]||(t[4]=e=>p(r.value)),loading:c.value,size:"md",flat:"",icon:"sym_s_refresh"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.restartBtn")),1)])),_:1})])),_:1},8,["disable","loading"])]),(0,l.Wm)(m,{name:"sym_s_info",size:"16px",class:"text-primary q-ml-sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"bg-primary text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)((0,i.SU)(n)("servicesStatusTableActions.systemServiceWarning")),1)])),_:1})])),_:1})]))}}});var ut=a(23175);const ct=rt,vt=ct;y()(rt,"components",{QToggle:ut.Z,QBtn:b.Z,QTooltip:P.Z,QIcon:$.Z});var mt=a(73451);const dt={class:"flex justify-start items-center"},pt=(0,l._)("span",{style:{"padding-bottom":"3px"}},"v",-1),gt={class:"services-status-text-chip"},bt={class:"services-status-text-chip"},wt=(0,l.aZ)({__name:"ServicesStatusTableTdMain",props:{serviceName:{},version:{},startupFile:{}},setup(e){return(e,t)=>{const a=(0,l.up)("q-avatar"),n=(0,l.up)("q-chip");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",null,(0,s.zw)((0,i.SU)(mt.R)(e.serviceName)),1),(0,l._)("div",dt,[e.version?((0,l.wg)(),(0,l.j4)(n,{key:0,square:"",outline:"",color:"primary",class:"q-ml-none q-mr-xs"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{color:"primary","text-color":"white","font-size":"1.1326rem"},{default:(0,l.w5)((()=>[pt])),_:1}),(0,l._)("span",gt,(0,s.zw)(e.version),1)])),_:1})):(0,l.kq)("",!0),e.startupFile?((0,l.wg)(),(0,l.j4)(n,{key:1,square:"",class:"text-primary q-ml-none",outline:""},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{icon:"sym_s_description",color:"primary","text-color":"white","font-size":"1.2499rem"}),(0,l._)("span",bt,(0,s.zw)(e.startupFile),1)])),_:1})):(0,l.kq)("",!0)])],64)}}}),yt=wt,_t=yt;y()(wt,"components",{QChip:ye.Z,QAvatar:_e.Z});const ft=(0,l.aZ)({__name:"ServicesStatusTable",props:{servicesStatusList:{}},setup(e){const t=e,a=(0,U.QT)().t,n=tt(),o=(0,i.iH)(""),r=(0,i.iH)([]),u=(0,i.iH)([{name:"uptimeSecs",label:a("servicesStatusTable.colUptime"),align:"center",format:e=>p(e.uptimeSecs),field:"metrics"},{name:"cpuUsagePercent",label:a("servicesStatusTable.colCpuUsage"),align:"center",format:e=>g(e.cpuUsagePercent),field:"metrics"},{name:"memUsagePercent",label:a("servicesStatusTable.colRamUsage"),align:"center",format:e=>g(e.memUsagePercent),field:"metrics"}]),c=(0,i.iH)({sortBy:"serviceName",isDescending:!1}),v=(0,i.iH)({rowsPerPage:1e4}),m=(0,l.Fl)({get:()=>n.getShowDialogInstallService,set:e=>n.setShowDialogInstallService(e)});function d(e,a=!1){let l=t.servicesStatusList;"serviceName"===e&&l.sort(((e,t)=>e.namet.name?1:0)),"uptimeSecs"===e&&l.sort(((e,t)=>e.metrics.uptimeSecst.metrics.uptimeSecs?1:0)),"cpuUsagePercent"===e&&l.sort(((e,t)=>e.metrics.cpuUsagePercentt.metrics.cpuUsagePercent?1:0)),"memUsagePercent"===e&&l.sort(((e,t)=>e.metrics.memUsagePercentt.metrics.memUsagePercent?1:0)),!0===c.value.isDescending&&l.reverse(),!1===a&&c.value.sortBy===e&&(c.value.isDescending=!c.value.isDescending),r.value=l,c.value.sortBy=e}function p(e){if(!e)return"";const t=Math.floor(e/3600),a=Math.floor(e%3600/60),l=e%60;return`${t}h ${a}m ${l.toFixed(0)}s`}function g(e){return e?`${e.toFixed(2)}%`:"0%"}function b(){m.value=!0}return(0,l.YP)((()=>t.servicesStatusList),(()=>{d(c.value.sortBy,!0)})),(e,t)=>{const a=(0,l.up)("q-icon"),i=(0,l.up)("q-input"),n=(0,l.up)("q-space"),m=(0,l.up)("q-th"),p=(0,l.up)("q-tr"),g=(0,l.up)("q-td"),w=(0,l.up)("q-table");return(0,l.wg)(),(0,l.j4)(w,{rows:r.value,columns:u.value,filter:o.value,pagination:v.value,"onUpdate:pagination":t[3]||(t[3]=e=>v.value=e),"visible-columns":["uptimeSecs","cpuUsagePercent","memUsagePercent"],"no-data-label":e.$t("servicesStatusTable.notFound"),"row-key":"key",color:"primary",flat:"",bordered:"","virtual-scroll":"","rows-per-page-options":[0],"hide-pagination":"",style:{height:"auto","max-height":"800px"}},{top:(0,l.w5)((()=>[(0,l.Wm)(i,{borderless:"",debounce:"300",color:"primary",modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),label:e.$t("servicesStatusTable.inputSearch")},{prepend:(0,l.w5)((()=>[(0,l.Wm)(a,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,l.Wm)(n),(0,l.Wm)(k.Z,{label:e.$t("servicesStatusTable.createServiceBtn"),icon:"sym_s_install_desktop",onClick:t[1]||(t[1]=e=>b())},null,8,["label"])])),header:(0,l.w5)((i=>[(0,l.Wm)(p,{props:i},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{class:"bg-primary text-white services-table-th",style:{"text-align":"left !important"},onClick:t[2]||(t[2]=e=>d("serviceName"))},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.$t("servicesStatusTable.colServiceName"))+" ",1),(0,l.Wm)(a,{name:"serviceName"===c.value.sortBy?c.value.isDescending?"sym_s_arrow_downward":"sym_s_arrow_upward":""},null,8,["name"])])),_:1}),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.cols,(e=>((0,l.wg)(),(0,l.j4)(m,{key:e.name,props:i,class:"services-table-th",onClick:t=>d(e.name)},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.label)+" ",1),(0,l.Wm)(a,{name:c.value.sortBy===e.name?c.value.isDescending?"sym_s_arrow_downward":"sym_s_arrow_upward":""},null,8,["name"])])),_:2},1032,["props","onClick"])))),128)),(0,l.Wm)(m)])),_:2},1032,["props"])])),body:(0,l.w5)((e=>[(0,l.Wm)(p,{props:e},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{class:"td-main-table"},{default:(0,l.w5)((()=>[(0,l.Wm)(_t,{serviceName:e.row.name,version:e.row.version,startupFile:e.row.startupFile},null,8,["serviceName","version","startupFile"])])),_:2},1024),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.cols,(t=>((0,l.wg)(),(0,l.j4)(g,{key:t.name,props:e},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(t.value),1)])),_:2},1032,["props"])))),128)),(0,l.Wm)(g,{class:"text-right"},{default:(0,l.w5)((()=>[(0,l.Wm)(vt,{service:e.row},null,8,["service"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","columns","filter","pagination","no-data-label"])}}});var ht=a(84277),St=a(13119),kt=a(90136),xt=a(31233),qt=a(21682),Ut=a(67220);const Zt=ft,Tt=Zt;y()(ft,"components",{QTable:ht.Z,QInput:St.Z,QIcon:$.Z,QSpace:kt.Z,QTr:xt.Z,QTh:qt.Z,QTd:Ut.Z});var Wt=a(15521);const It=(0,l.aZ)({__name:"ServicesNameInput",props:{serviceName:{}},emits:["update:serviceName","update:isValidServiceName"],setup(e,{emit:t}){const a=e,s=/^[a-zA-Z0-9-_]{1,255}$/,n=(0,i.iH)(a.serviceName),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceName",e),t("update:isValidServiceName",o.value)}),{immediate:!0}),(0,l.YP)((()=>a.serviceName),(e=>{n.value=e}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),label:e.$t("servicesNameInput.serviceNameLabel"),icon:"sym_s_app_registration","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesNameInput.requiredError"),()=>n.value.length<=255||e.$t("servicesNameInput.maxLengthError"),()=>/^[a-zA-Z0-9-_]+$/.test(n.value)||e.$t("servicesNameInput.nameRegexError")]},null,8,["value","label","rules"]))}}),Ct=It,Dt=Ct,Ft=(0,l.aZ)({__name:"ServicesVersionInput",props:{serviceVersion:{}},emits:["update:serviceVersion","update:isValidServiceVersion"],setup(e,{emit:t}){const a=e,s=/^[\w\-\.]{1,255}$/,n=(0,i.iH)(a.serviceVersion),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceVersion",e),t("update:isValidServiceVersion",o.value)}),{immediate:!0}),(0,l.YP)((()=>a.serviceVersion),(e=>{n.value=e}),{immediate:!0}),(e,t)=>((0,l.wg)(),(0,l.j4)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),label:e.$t("servicesVersionInput.versionLabel"),icon:"sym_s_code","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesVersionInput.requiredError"),()=>n.value.length<=255||e.$t("servicesVersionInput.maxLengthError"),()=>/^[\w\-\.]+$/.test(n.value)||e.$t("servicesVersionInput.versionRegexError")]},null,8,["value","label","rules"]))}}),Ht=Ft,Qt=Ht;var $t=a(94629);const Pt={class:"port-bindings-bg q-pa-sm"},Vt={class:"title-h6 q-mb-sm"},zt={class:"flex justify-between items-center q-mb-md"},Lt={class:"col q-pr-sm"},At={class:"col q-px-sm"},jt={class:"flex justify-between items-center"},Bt={class:"col q-pr-sm"},Yt={class:"col q-px-sm"},Et=(0,l.aZ)({__name:"ServicesPortBindings",props:{portBindings:{}},emits:["update:portBindings"],setup(e,{emit:t}){const a=e,n=/^(\d{1,5})$/,o=(0,i.iH)(a.portBindings),r=["http","https","ws","wss","grpc","grpcs","tcp","udp"],u=(0,i.iH)(0),c=(0,i.iH)({port:"",protocol:""}),v=(0,l.Fl)((()=>!(parseInt(c.value.port)>65535)&&(n.test(c.value.port)&&c.value.protocol.length>0)));function m(){o.value.push({port:parseInt(c.value.port),protocol:c.value.protocol}),u.value++,c.value={port:"",protocol:""}}function d(e){o.value.splice(e,1)}return(0,l.YP)(o,(e=>{t("update:portBindings",e)})),(0,l.YP)((()=>a.portBindings),(e=>{o.value=e})),(e,t)=>{const a=(0,l.up)("q-btn");return(0,l.wg)(),(0,l.iD)("div",Pt,[(0,l._)("div",Vt,(0,s.zw)(e.$t("servicesPortBindings.titlePortBindings")),1),(0,l._)("div",zt,[(0,l._)("div",Lt,[((0,l.wg)(),(0,l.j4)(Wt.Z,{value:c.value.port,"onUpdate:value":t[0]||(t[0]=e=>c.value.port=e),label:e.$t("servicesPortBindings.hostPortInputLabel"),maxLength:"5",rules:[()=>n.test(c.value.port.toString())||e.$t("servicesPortBindings.portError"),()=>parseInt(c.value.port)<=65535||e.$t("servicesPortBindings.portError")],key:u.value},null,8,["value","label","rules"]))]),(0,l._)("div",At,[(0,l.Wm)($t.Z,{selected:c.value.protocol,"onUpdate:selected":t[1]||(t[1]=e=>c.value.protocol=e),options:r,dense:!1,label:e.$t("servicesPortBindings.protocolInputLabel")},null,8,["selected","label"])]),(0,l.Wm)(a,{onClick:t[2]||(t[2]=e=>m()),color:"primary",size:"md",dense:"",icon:"sym_s_add",disable:!1===v.value},null,8,["disable"])]),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.value,((t,s)=>((0,l.wg)(),(0,l.iD)("div",{key:s},[(0,l._)("div",jt,[(0,l._)("div",Bt,[(0,l.Wm)(Wt.Z,{value:t.port,"onUpdate:value":e=>t.port=e,label:e.$t("servicesPortBindings.hostPortInputLabel"),disable:""},null,8,["value","onUpdate:value","label"])]),(0,l._)("div",Yt,[(0,l.Wm)($t.Z,{selected:t.protocol,"onUpdate:selected":e=>t.protocol=e,options:r,dense:!1,label:e.$t("servicesPortBindings.protocolInputLabel"),disable:""},null,8,["selected","onUpdate:selected","label"])]),(0,l.Wm)(a,{onClick:e=>d(s),color:"negative",size:"md",dense:"",icon:"sym_s_delete"},null,8,["onClick"])])])))),128))])}}}),Nt=Et,Rt=Nt;y()(Et,"components",{QBtn:b.Z});const Mt={class:"flex justify-between items-center"},Kt=["innerHTML"],Xt=(0,l.aZ)({__name:"ServicesCommandInput",props:{serviceCommand:{}},emits:["update:serviceCommand","update:isValidServiceCommand"],setup(e,{emit:t}){const a=e,s=/^[\w\s-.\/\\]{1,255}$/,n=(0,i.iH)(a.serviceCommand),o=(0,l.Fl)((()=>s.test(n.value)));return(0,l.YP)(n,(e=>{t("update:serviceCommand",e)}),{immediate:!0}),(0,l.YP)(o,(e=>{t("update:isValidServiceCommand",e)})),(0,l.YP)((()=>a.serviceCommand),(e=>{n.value=e}),{immediate:!0}),(e,t)=>{const a=(0,l.up)("q-tooltip"),s=(0,l.up)("q-icon");return(0,l.wg)(),(0,l.iD)("div",Mt,[(0,l.Wm)(Wt.Z,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),placeholder:e.$t("servicesCommandInput.serviceCommandPlaceholder"),icon:"sym_s_terminal","max-length":"255",rules:[()=>0!==n.value.length||e.$t("servicesCommandInput.requiredError"),()=>n.value.length<=255||e.$t("servicesCommandInput.maxLengthError"),()=>/^[\w\s-.\/\\]+$/.test(n.value)||e.$t("servicesCommandInput.commandRegexError")],style:{width:"97%"}},null,8,["value","placeholder","rules"]),(0,l.Wm)(s,{name:"sym_s_help",size:"20px",class:"cursor-pointer",style:{position:"absolute",right:"30px",top:"100px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{anchor:"top middle",self:"bottom middle",class:"bg-primary"},{default:(0,l.w5)((()=>[(0,l._)("span",{innerHTML:e.$t("servicesCommandInput.helpCommand")},null,8,Kt)])),_:1})])),_:1})])}}}),Ot=Xt,Gt=Ot;y()(Xt,"components",{QIcon:$.Z,QTooltip:P.Z});var Jt=function(e,t,a,l){function s(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function n(e){try{r(l.next(e))}catch(t){i(t)}}function o(e){try{r(l["throw"](e))}catch(t){i(t)}}function r(e){e.done?a(e.value):s(e.value).then(n,o)}r((l=l.apply(e,t||[])).next())}))};const ea={class:"flex justify-between items-center"},ta={class:"col q-mr-sm"},aa={class:"col q-ml-sm"},la=["textContent"],sa={class:"service-tab-custom-box"},ia={class:"row justify-between items-center"},na={class:"col-2"},oa={class:"col"},ra={class:"row justify-between items-center"},ua={class:"col-2"},ca={class:"col"},va=(0,l.aZ)({__name:"ServicesTabCustom",setup(e){const t=(0,U.QT)().t,a=tt(),n=(0,i.iH)([]),o=(0,i.iH)(null),r=(0,i.iH)(0),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)(""),m=(0,i.iH)("other"),d=(0,i.iH)(!1),p=(0,i.iH)(!1),g=(0,i.iH)(!1),b=(0,i.iH)("command"),w=(0,i.iH)([{label:t("servicesTabCustom.application"),value:"application"},{label:t("servicesTabCustom.runtime"),value:"runtime"},{label:t("servicesTabCustom.database"),value:"database"},{label:t("servicesTabCustom.webserver"),value:"webserver"},{label:t("servicesTabCustom.mom"),value:"mom"},{label:t("servicesTabCustom.monitoring"),value:"monitoring"},{label:t("servicesTabCustom.logging"),value:"logging"},{label:t("servicesTabCustom.security"),value:"security"},{label:t("servicesTabCustom.backup"),value:"backup"},{label:t("servicesTabCustom.system"),value:"system"},{label:t("servicesTabCustom.other"),value:"other"}]);(0,l.YP)(b,(()=>{r.value++,o.value=null,u.value=""}));const y=(0,l.Fl)((()=>"command"===b.value?"display: block;":"visibility:hidden;")),_=(0,l.Fl)((()=>"file_uploader"===b.value?"display: block;":"visibility:hidden;")),f=(0,l.Fl)((()=>d.value&&p.value&&(g.value||null!==o.value))),h=(0,l.Fl)({get:()=>a.getShowDialogInstallService,set:e=>a.setShowDialogInstallService(e)}),S=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function x(){h.value=!1}function T(){return Jt(this,void 0,void 0,(function*(){return(0,Z.Q)(),new Promise(((e,a)=>{const l=new Je.Z,s=new FormData;s.append("files",o.value),s.append("destinationPath","/app/"),l.uploadFile(s).then((()=>{(0,Z.Z)(),e()})).catch((e=>{(0,q.s9)(e.message,t("servicesTabCustom.uploadError")),console.error(e),(0,Z.Z)(),a(e)}))}))}))}function W(){var e;return Jt(this,void 0,void 0,(function*(){if("file_uploader"===b.value)try{yield T()}catch(s){throw(0,q.c0)({msg:t("servicesTabCustom.uploadError"),type:"negative",position:"bottom"}),console.error(s),s}let a=u.value;!1===g.value&&(a=`/app/${null===(e=o.value)||void 0===e?void 0:e.name}`);const l=new Je.Z;(0,Z.Q)(),l.installCustomService({name:v.value,version:c.value,command:a,portBindings:n.value,type:m.value}).then((()=>{(0,q.LX)(t("servicesTabCustom.installSuccess")),S.value++,x()})).catch((e=>{(0,q.s9)(e.response.data,t("servicesTabCustom.installError")),console.error(e)})).finally((()=>{(0,Z.Z)()}))}))}return(e,t)=>{const a=(0,l.up)("q-card-section"),i=(0,l.up)("q-radio"),h=(0,l.up)("q-icon"),S=(0,l.up)("q-file"),q=(0,l.up)("q-card"),U=(0,l.up)("q-expansion-item"),Z=(0,l.up)("q-list"),T=(0,l.up)("q-card-actions");return(0,l.wg)(),(0,l.j4)(q,null,{default:(0,l.w5)((()=>[(0,l.Wm)(a,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",ea,[(0,l._)("div",ta,[(0,l.Wm)(Dt,{serviceName:v.value,"onUpdate:serviceName":t[0]||(t[0]=e=>v.value=e),"onUpdate:isValidServiceName":t[1]||(t[1]=e=>d.value=e)},null,8,["serviceName"])]),(0,l._)("div",aa,[(0,l.Wm)(Qt,{serviceVersion:c.value,"onUpdate:serviceVersion":t[2]||(t[2]=e=>c.value=e),"onUpdate:isValidServiceVersion":t[3]||(t[3]=e=>p.value=e)},null,8,["serviceVersion"])])])])),_:1}),(0,l.Wm)(a,null,{default:(0,l.w5)((()=>[(0,l._)("h6",{style:{size:"1em"},class:"q-ma-sm",textContent:(0,s.zw)(e.$t("servicesTabCustom.labelExecut"))},null,8,la),(0,l._)("div",sa,[(0,l._)("div",ia,[(0,l._)("div",na,[(0,l.Wm)(i,{style:{"margin-top":"-18px"},dense:"",modelValue:b.value,"onUpdate:modelValue":t[4]||(t[4]=e=>b.value=e),label:e.$t("servicesTabCustom.labelRadioCommand"),val:"command"},null,8,["modelValue","label"])]),(0,l._)("div",oa,[((0,l.wg)(),(0,l.j4)(Gt,{style:(0,s.j5)(y.value),serviceCommand:u.value,"onUpdate:serviceCommand":t[5]||(t[5]=e=>u.value=e),targetType:b.value,key:r.value,"onUpdate:isValidServiceCommand":t[6]||(t[6]=e=>g.value=e)},null,8,["style","serviceCommand","targetType"]))])]),(0,l._)("div",ra,[(0,l._)("div",ua,[(0,l.Wm)(i,{style:{"margin-top":"-18px"},dense:"",modelValue:b.value,"onUpdate:modelValue":t[7]||(t[7]=e=>b.value=e),label:e.$t("servicesTabCustom.labelRadioFile"),val:"file_uploader"},null,8,["modelValue","label"])]),(0,l._)("div",ca,[((0,l.wg)(),(0,l.j4)(S,{modelValue:o.value,"onUpdate:modelValue":t[8]||(t[8]=e=>o.value=e),color:"primary",counter:"",style:(0,s.j5)(_.value),filled:"","use-chips":"",key:r.value,label:e.$t("servicesTabCustom.labelUploadFile"),cursor:"pointer",type:"file"},{prepend:(0,l.w5)((()=>[(0,l.Wm)(h,{name:"sym_s_upload",size:"20px"})])),_:1},8,["modelValue","style","label"]))])])]),(0,l.Wm)($t.Z,{selected:m.value,"onUpdate:selected":t[9]||(t[9]=e=>m.value=e),label:e.$t("servicesTabCustom.typeSelect"),options:w.value},null,8,["selected","label","options"])])),_:1}),(0,l.Wm)(a,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesTabCustom.advancedSettingsLabel"),class:"services-tab-installable-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(q,{class:"q-ma-sm"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,null,{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:n.value,"onUpdate:portBindings":t[10]||(t[10]=e=>n.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(T,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesTabCustom.cancelButton"),color:"grey-7",onClick:t[11]||(t[11]=e=>x())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===f.value,label:e.$t("servicesTabCustom.installButton"),icon:"sym_s_install_desktop",onClick:t[12]||(t[12]=e=>W())},null,8,["disable","label"])])),_:1})])),_:1})}}});var ma=a(33837),da=a(13246),pa=a(50651),ga=a(11821);const ba=va,wa=ba;y()(va,"components",{QCard:Y.Z,QCardSection:N.Z,QRadio:Q.Z,QFile:ma.Z,QIcon:$.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z});var ya=a(18892);const _a={class:"flex justify-between items-center"},fa={class:"title-dialog"},ha=(0,l.aZ)({__name:"StartupFileDialog",props:{showStartupFileDialog:{type:Boolean}},emits:["update:showStartupFileDialog","update:startupFilePath"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(0),o=(0,i.iH)([]),r=(0,i.iH)([]),u=(0,i.iH)("/app"),c=(0,i.iH)(!1),v=()=>{c.value=!1};function m(){const e=new ya.Z;(0,Z.Q)(),e.getCurrentPath(u.value).then((e=>{if(r.value=e.data.body,"/app"===u.value)return d(e.data.body),void n.value++;p(o.value,u.value,e.data.body),n.value++})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{(0,Z.Z)()}),500)}))}function d(e){o.value=[{label:"/app",path:"/app",icon:"sym_s_home",iconColor:"grey-7",children:e.map((e=>Object.assign({label:e.name,path:e.path,icon:"directory"===e.mimeType?"sym_s_folder":"sym_s_description",iconColor:"directory"===e.mimeType?"yellow-9":"grey-7"},".trash"===e.name&&{icon:"sym_s_delete",iconColor:"grey-8"})))}]}function p(e,a,l){const s=e=>{for(const t of e){if(t.path===a)return t;if(t.children){const e=s(t.children);if(e)return e}}},i=s(e);if(!1!==i){if("sym_s_description"===i.icon)return t("update:startupFilePath",i.path),void v();i.icon="sym_s_folder_open",i.children=l.map((e=>Object.assign({label:e.name,path:e.path,icon:"directory"===e.mimeType?"sym_s_folder":"sym_s_description",iconColor:"directory"===e.mimeType?"yellow-9":"grey-7"},".trash"===e.name&&{icon:"sym_s_delete",iconColor:"grey-8"})))}}return(0,l.YP)((()=>a.showStartupFileDialog),(e=>{c.value=e,!1!==e&&m()}),{immediate:!0}),(0,l.YP)(c,(e=>{t("update:showStartupFileDialog",e)})),(0,l.YP)(u,(()=>{m()})),(e,t)=>{const a=(0,l.up)("q-btn"),i=(0,l.up)("q-tree"),r=(0,l.up)("q-card-section"),m=(0,l.up)("q-card-actions"),d=(0,l.up)("q-card"),p=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(p,{modelValue:c.value,"onUpdate:modelValue":t[3]||(t[3]=e=>c.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{flat:"",style:{width:"700px","max-width":"80vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",_a,[(0,l._)("div",fa,(0,s.zw)(e.$t("startupFileDialog.title")),1),(0,l.Wm)(a,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>v())})]),(0,l.Wm)(r,{class:"q-pa-none q-mt-md",style:{"overflow-y":"auto","max-height":"70vh"}},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)(i,{key:n.value,nodes:o.value,selected:u.value,"onUpdate:selected":t[1]||(t[1]=e=>u.value=e),"node-key":"path","tick-strategy":"none","default-expand-all":"",style:{"font-size":"0.809rem"}},null,8,["nodes","selected"]))])),_:1}),(0,l.Wm)(m,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("startupFileDialog.cancelBtn"),color:"grey-7",onClick:t[2]||(t[2]=e=>v())},null,8,["label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}});var Sa=a(84749);const ka=ha,xa=ka;y()(ha,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z,QTree:Sa.Z,QCardActions:ga.Z});const qa={class:"q-pa-md startup-file-box"},Ua={class:"title-h6 q-mb-md"},Za={style:{"font-size":"0.9708rem"}},Ta={class:"flex justify-between items-center q-mt-md"},Wa={style:{width:"72%"}},Ia=(0,l.aZ)({__name:"StartupFile",props:{selectedStartupFile:{}},emits:["update:selectedStartupFile","update:isValidStartupFile"],setup(e,{emit:t}){const a=e,n=(0,i.iH)(!1),o=(0,i.iH)(""),r=(0,i.iH)(0),u=(0,l.Fl)((()=>""!==o.value&&o.value.length<2046));return(0,l.YP)((()=>a.selectedStartupFile),(e=>{o.value=e}),{immediate:!0}),(0,l.YP)((()=>o.value),(e=>{t("update:selectedStartupFile",e)})),(0,l.YP)(n,(e=>{!1!==e&&r.value++})),(0,l.YP)(u,(e=>{t("update:isValidStartupFile",e)})),(e,t)=>{const a=(0,l.up)("q-input");return(0,l.wg)(),(0,l.iD)(l.HY,null,[((0,l.wg)(),(0,l.j4)(xa,{showStartupFileDialog:n.value,"onUpdate:showStartupFileDialog":t[0]||(t[0]=e=>n.value=e),"onUpdate:startupFilePath":t[1]||(t[1]=e=>o.value=e),key:r.value},null,8,["showStartupFileDialog"])),(0,l._)("div",qa,[(0,l._)("div",Ua,(0,s.zw)(e.$t("servicesTabInstallable.titleStartupFile")),1),(0,l._)("div",Za,(0,s.zw)(e.$t("servicesTabInstallable.helpText")),1),(0,l._)("div",Ta,[(0,l.Wm)(k.Z,{label:e.$t("servicesTabInstallable.selectStartupFile"),outline:!0,color:"primary",onClick:t[2]||(t[2]=e=>n.value=!0),style:{top:"2px"},icon:"sym_s_description"},null,8,["label"]),(0,l._)("div",Wa,[(0,l.Wm)(a,{filled:"",modelValue:o.value,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value=e),label:e.$t("servicesTabInstallable.startupFileLabel")},null,8,["modelValue","label"])])])])],64)}}}),Ca=Ia,Da=Ca;y()(Ia,"components",{QInput:St.Z});const Fa={class:"flex justify-between items-center q-my-md"},Ha={class:"col q-mr-sm"},Qa={class:"col q-ml-sm"},$a={key:0,class:"q-mb-lg"},Pa=(0,l.aZ)({__name:"ServicesTabInstallable",setup(e){const t=(0,U.QT)().t,a=tt(),s=new Je.Z,n=(0,i.iH)(!1),o=(0,i.iH)(0),r=(0,i.iH)(0),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)([]),m=(0,i.iH)(""),d=(0,i.iH)(!1),p=(0,i.iH)(!1),g=(0,i.iH)([]),b=(0,i.iH)([]),w=(0,i.iH)([]),y=(0,l.Fl)({get:()=>a.getShowDialogInstallService,set:e=>a.setShowDialogInstallService(e)}),_=(0,l.Fl)((()=>!1===p.value||!0===d.value)),f=(0,l.Fl)((()=>a.getServicesStatusList)),h=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function S(e){p.value=!1,g.value.forEach((t=>{t.name===e&&"multi"===t.nature&&(p.value=!0)}))}function x(){n.value=!0,g.value=[],s.getServicesInstallable().then((e=>{g.value=e.data.body})).catch((e=>{console.error(e)})).finally((()=>{setTimeout((()=>{n.value=!1}),1e3)}))}function T(){b.value=[],g.value.forEach((e=>{let t=!1;const a={value:e.name,label:(0,mt.R)(e.name)};f.value.forEach((a=>{e.name===a.name&&"solo"===a.nature&&(t=!0)})),t||(b.value.push(a),r.value++)})),u.value=b.value[0].value}function W(){o.value++,w.value=[],g.value.forEach((e=>{e.name===u.value&&e.versions.forEach((e=>{w.value.push(e)}))})),c.value=w.value[0]}function I(){y.value=!1}function C(){(0,Z.Q)();const e=new Je.Z;let a={name:u.value,version:c.value,portBindings:v.value};p.value&&(a.startupFile=m.value),e.installService(a).then((()=>{(0,q.LX)(t("servicesTabInstallable.installSuccess")),h.value++,I()})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("servicesTabInstallable.installError"))})).finally((()=>{(0,Z.Z)()}))}return(0,l.bv)((()=>{x()})),(0,l.YP)(g,(()=>{0!==g.value.length&&T()})),(0,l.YP)(u,(e=>{W(),S(e)}),{immediate:!0}),(e,t)=>{const a=(0,l.up)("q-skeleton"),s=(0,l.up)("q-card-section"),i=(0,l.up)("q-card"),g=(0,l.up)("q-expansion-item"),y=(0,l.up)("q-list"),f=(0,l.up)("q-card-actions");return!0===n.value?((0,l.wg)(),(0,l.j4)(a,{key:0,animation:"blink",height:"400px"})):((0,l.wg)(),(0,l.j4)(i,{key:1},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",Fa,[(0,l._)("div",Ha,[((0,l.wg)(),(0,l.j4)($t.Z,{selected:u.value,"onUpdate:selected":t[0]||(t[0]=e=>u.value=e),label:e.$t("servicesTabInstallable.serviceLabel"),options:b.value,key:r.value},null,8,["selected","label","options"]))]),(0,l._)("div",Qa,[((0,l.wg)(),(0,l.j4)($t.Z,{selected:c.value,"onUpdate:selected":t[1]||(t[1]=e=>c.value=e),label:e.$t("servicesTabInstallable.versionLabel"),options:w.value,key:o.value},null,8,["selected","label","options"]))])]),!0===p.value?((0,l.wg)(),(0,l.iD)("div",$a,[(0,l.Wm)(Da,{selectedStartupFile:m.value,"onUpdate:selectedStartupFile":t[2]||(t[2]=e=>m.value=e),"onUpdate:isValidStartupFile":t[3]||(t[3]=e=>d.value=e)},null,8,["selectedStartupFile"])])):(0,l.kq)("",!0),(0,l.Wm)(y,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesTabInstallable.advancedSettingsLabel"),class:"services-tab-installable-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"q-ma-md"},{default:(0,l.w5)((()=>[(0,l.Wm)(s,null,{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:v.value,"onUpdate:portBindings":t[4]||(t[4]=e=>v.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(f,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesTabInstallable.cancelButton"),color:"grey-7",onClick:t[5]||(t[5]=e=>I())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===_.value,label:e.$t("servicesTabInstallable.installButton"),icon:"sym_s_install_desktop",onClick:t[6]||(t[6]=e=>C())},null,8,["disable","label"])])),_:1})])),_:1}))}}});var Va=a(490);const za=Pa,La=za;y()(Pa,"components",{QSkeleton:E.ZP,QCard:Y.Z,QCardSection:N.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z,QItem:Va.Z});const Aa=(0,l.aZ)({__name:"ServicesInstallDialogTabs",setup(e){const t=(0,i.iH)("installable");return(e,a)=>{const s=(0,l.up)("q-tab"),i=(0,l.up)("q-tabs"),n=(0,l.up)("q-separator"),o=(0,l.up)("q-tab-panel"),r=(0,l.up)("q-tab-panels");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=e=>t.value=e),"active-color":"primary","indicator-color":"primary",align:"justify",class:"text-grey","no-caps":""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"installable",class:"overview-services-tabs",icon:"sym_s_install_desktop",label:e.$t("servicesInstallDialogTabs.installableForm")},null,8,["label"]),(0,l.Wm)(s,{name:"custom",class:"overview-services-tabs",icon:"sym_s_app_registration",label:e.$t("servicesInstallDialogTabs.customForm")},null,8,["label"])])),_:1},8,["modelValue"]),(0,l.Wm)(n),(0,l.Wm)(r,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=e=>t.value=e),animated:""},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{name:"installable",class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(La)])),_:1}),(0,l.Wm)(o,{name:"custom",class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(wa)])),_:1})])),_:1},8,["modelValue"])],64)}}});var ja=a(47817),Ba=a(70900),Ya=a(50926),Ea=a(89800),Na=a(84106);const Ra=Aa,Ma=Ra;y()(Aa,"components",{QTabs:ja.Z,QTab:Ba.Z,QSeparator:Ya.Z,QTabPanels:Ea.Z,QTabPanel:Na.Z});const Ka={class:"flex justify-between items-center"},Xa={class:"title-dialog"},Oa=(0,l.aZ)({__name:"ServicesInstallDialog",setup(e){const t=tt(),a=(0,l.Fl)({get:()=>t.getShowDialogInstallService,set:e=>t.setShowDialogInstallService(e)});return(e,t)=>{const i=(0,l.up)("q-btn"),n=(0,l.up)("q-card-section"),o=(0,l.up)("q-card"),r=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(r,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",Ka,[(0,l._)("div",Xa,(0,s.zw)(e.$t("servicesInstallDialog.titleInstallService")),1),(0,l.Wm)(i,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>a.value=!1)})]),(0,l.Wm)(n,{class:"q-pa-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Ma)])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),Ga=Oa,Ja=Ga;y()(Oa,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z});var el=a(89906);const tl=(0,l.aZ)({__name:"ServicesUninstallDialog",setup(e){const t=(0,U.QT)().t,a=new Je.Z,s=tt(),i=(0,l.Fl)((()=>s.getSelectedService.name)),n=(0,l.Fl)({get:()=>s.getShowDialogUninstallService,set:e=>{s.setShowDialogUninstallService(e)}}),o=(0,l.Fl)({get:()=>s.getKeyServicesStatusTable,set:e=>{s.keyServicesStatusTable=e}}),r=(0,l.Fl)({get:()=>s.getIsLoadingServicesStatus,set:e=>{s.setIsLoadingServicesStatus(e)}});function u(){r.value=!0,(0,Z.Q)(t("servicesUninstallDialog.uninstallLoading")),a.updateServiceStatus({name:i.value,status:"uninstalled"}).then((()=>{(0,q.LX)(t("servicesUninstallDialog.uninstallSuccess")),n.value=!1,o.value++})).catch((e=>{console.error(e),(0,q.s9)(e.response.data,t("servicesUninstallDialog.uninstallError"))})).finally((()=>{r.value=!1,(0,Z.Z)()}))}return(e,t)=>((0,l.wg)(),(0,l.j4)(el.Z,{showDeleteDialog:n.value,"onUpdate:showDeleteDialog":t[2]||(t[2]=e=>n.value=e),titleDialog:e.$t("servicesUninstallDialog.uninstallDialogTitle"),messageToDelete:e.$t("servicesUninstallDialog.uninstallDialogDescription",{serviceName:i.value}),warningToDelete:e.$t("servicesUninstallDialog.warningUninstallService")},{"card-actions":(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesUninstallDialog.uninstallDialogCancelBtn"),color:"grey-7",onClick:t[0]||(t[0]=e=>n.value=!1)},null,8,["label"]),(0,l.Wm)(k.Z,{color:"negative",label:e.$t("servicesUninstallDialog.uninstallDialogConfirmBtn"),onClick:t[1]||(t[1]=e=>u())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","messageToDelete","warningToDelete"]))}}),al=tl,ll=al,sl={class:"flex justify-between items-center"},il={class:"title-dialog"},nl={class:"flex justify-between items-center"},ol={class:"col q-mr-sm"},rl={class:"col q-ml-sm"},ul=(0,l.aZ)({__name:"ServicesUpdateDialog",setup(e){const t=(0,U.QT)().t,a=tt(),n=(0,i.iH)([]),o=(0,i.iH)(""),r=(0,i.iH)(""),u=(0,i.iH)(""),c=(0,i.iH)(""),v=(0,i.iH)(!1),m=(0,i.iH)(!1),d=(0,i.iH)(!1),p=(0,l.Fl)((()=>"custom"!==b.value.nature&&"solo"!==b.value.nature?!0===v.value&&!0===d.value:v.value)),g=(0,l.Fl)({get:()=>a.getShowDialogUpdateService,set:e=>a.setShowDialogUpdateService(e)}),b=(0,l.Fl)((()=>a.getSelectedService)),w=(0,l.Fl)({get:()=>a.getKeyServicesStatusTable,set:e=>{a.keyServicesStatusTable=e}});function y(){g.value=!1}function _(){const e=new Je.Z;(0,Z.Q)(),e.updateServiceStatus({name:c.value,version:u.value,command:r.value,startupFile:o.value,portBindings:n.value}).then((()=>{(0,q.LX)(t("servicesUpdateDialog.updateSuccess")),w.value++,y()})).catch((e=>{(0,q.s9)(e.response.data,t("servicesUpdateDialog.updateError")),console.error(e)})).finally((()=>{(0,Z.Z)()}))}return(0,l.YP)(g,(e=>{!1!==e&&(n.value=b.value.portBindings?b.value.portBindings:[],o.value=b.value.startupFile?b.value.startupFile:"",r.value=b.value.command,u.value=b.value.version,c.value=b.value.name)})),(e,t)=>{const a=(0,l.up)("q-btn"),i=(0,l.up)("q-card-section"),w=(0,l.up)("q-card"),f=(0,l.up)("q-expansion-item"),h=(0,l.up)("q-list"),S=(0,l.up)("q-card-actions"),x=(0,l.up)("q-dialog");return(0,l.wg)(),(0,l.j4)(x,{modelValue:g.value,"onUpdate:modelValue":t[11]||(t[11]=e=>g.value=e),persistent:""},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{flat:"",style:{width:"950px","max-width":"90vw"},class:"dialog-card-bg"},{default:(0,l.w5)((()=>[(0,l._)("div",sl,[(0,l._)("div",il,(0,s.zw)(e.$t("servicesUpdateDialog.titleUpdateService")),1),(0,l.Wm)(a,{icon:"sym_s_close",flat:"",round:"",dense:"",onClick:t[0]||(t[0]=e=>g.value=!1)})]),(0,l.Wm)(i,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l._)("div",nl,[(0,l._)("div",ol,[(0,l.Wm)(Dt,{disable:!0,serviceName:c.value,"onUpdate:serviceName":t[1]||(t[1]=e=>c.value=e)},null,8,["serviceName"])]),(0,l._)("div",rl,[(0,l.Wm)(Qt,{serviceVersion:u.value,"onUpdate:serviceVersion":t[2]||(t[2]=e=>u.value=e),"onUpdate:isValidServiceVersion":t[3]||(t[3]=e=>v.value=e)},null,8,["serviceVersion"])])]),"custom"===b.value.nature?((0,l.wg)(),(0,l.j4)(Gt,{key:0,serviceCommand:r.value,"onUpdate:serviceCommand":t[4]||(t[4]=e=>r.value=e),"onUpdate:isValidServiceCommand":t[5]||(t[5]=e=>m.value=e),class:"q-mt-sm"},null,8,["serviceCommand"])):(0,l.kq)("",!0),"custom"!==b.value.nature&&"solo"!==b.value.nature?((0,l.wg)(),(0,l.j4)(Da,{key:1,selectedStartupFile:o.value,"onUpdate:selectedStartupFile":t[6]||(t[6]=e=>o.value=e),class:"q-mt-sm","onUpdate:isValidStartupFile":t[7]||(t[7]=e=>d.value=e)},null,8,["selectedStartupFile"])):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(i,{class:"q-pt-none q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(f,{"expand-separator":"",icon:"sym_s_settings",label:e.$t("servicesUpdateDialog.advancedSettingsLabel"),class:"services-update-icon"},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{class:"q-ma-md"},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(Rt,{portBindings:n.value,"onUpdate:portBindings":t[8]||(t[8]=e=>n.value=e)},null,8,["portBindings"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,l.Wm)(S,{align:"between",class:"q-pt-md q-px-none"},{default:(0,l.w5)((()=>[(0,l.Wm)(k.Z,{label:e.$t("servicesUpdateDialog.cancelButton"),color:"grey-7",onClick:t[9]||(t[9]=e=>y())},null,8,["label"]),(0,l.Wm)(k.Z,{disable:!1===p.value,label:e.$t("servicesUpdateDialog.updateButton"),icon:"sym_s_install_desktop",color:"primary",onClick:t[10]||(t[10]=e=>_())},null,8,["disable","label"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),cl=ul,vl=cl;y()(ul,"components",{QDialog:B.Z,QCard:Y.Z,QBtn:b.Z,QCardSection:N.Z,QList:da.Z,QExpansionItem:pa.Z,QCardActions:ga.Z});const ml={class:"title-h4"},dl=(0,l.aZ)({__name:"ServicesStatusIndex",setup(e){const t=tt(),a=(0,Ye.V)(),n=new Je.Z,o=(0,i.iH)(),r=(0,i.iH)([]),u=(0,l.Fl)((()=>t.getKeyServicesStatusTable)),c=(0,l.Fl)((()=>a.getSelectedRefreshRate));function v(){o.value&&clearInterval(o.value),o.value=setInterval((()=>{n.getServicesStatus().then((e=>{0!==e.data.body.length&&(t.setServicesStatusList(e.data.body),r.value=m(e.data.body))})).catch((e=>{console.error(e)}))}),1e3*c.value)}function m(e){return e.forEach((e=>{e.metrics||(e.metrics={cpuUsagePercent:0,memUsagePercent:0,pids:[],uptimeSecs:0})})),e}return(0,l.bv)((()=>{n.getServicesStatus().then((e=>{0!==e.data.body.length&&(t.setServicesStatusList(e.data.body),r.value=m(e.data.body))})).catch((e=>{console.error(e)})).finally((()=>{v()}))})),(0,l.Ah)((()=>{clearInterval(o.value)})),(0,l.YP)(c,(()=>{v()})),(0,l.YP)(u,(()=>{v()})),(e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(Ja),(0,l.Wm)(ll),(0,l.Wm)(vl),(0,l._)("div",ml,(0,s.zw)(e.$t("servicesStatusIndex.titleServicesStatus")),1),(0,l.Wm)(Tt,{servicesStatusList:r.value},null,8,["servicesStatusList"])],64))}}),pl=dl,gl=pl,bl={class:"title-h4"},wl={class:"flex justify-start"},yl=(0,l.aZ)({__name:"OverviewQuickServicesLinks",setup(e){const t=(0,U.QT)().t,a=[{name:t("quickLinks.linkApps"),icon:"apps",path:"/apps"},{name:t("quickLinks.linkDatabases"),icon:"database",path:"/databases"},{name:t("quickLinks.linkFiles"),icon:"folder",path:"/file-manager"},{name:t("quickLinks.linkBackups"),icon:"backup",path:"/backups"},{name:t("quickLinks.linkDomains"),icon:"language",path:"/domains"},{name:t("quickLinks.linkMetrics"),icon:"bar_chart",path:"/metrics"},{name:t("quickLinks.linkLogs"),icon:"receipt",path:"/logs"},{name:t("quickLinks.linkTerminal"),icon:"terminal",path:"/terminal"}];return(e,n)=>{const o=(0,l.up)("q-btn");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",bl,(0,s.zw)((0,i.SU)(t)("quickLinks.titleQuickLinks")),1),(0,l._)("div",wl,[((0,l.wg)(),(0,l.iD)(l.HY,null,(0,l.Ko)(a,(e=>(0,l.Wm)(o,{key:e.name,icon:"sym_s_"+e.icon,label:e.name,to:e.path,class:"q-my-md q-mx-xs",style:{width:"90px",height:"90px"},stack:"",outline:"","no-caps":""},null,8,["icon","label","to"]))),64))])],64)}}}),_l=yl,fl=_l;y()(yl,"components",{QBtn:b.Z});var hl={class:"row q-mt-md"},Sl={class:"col"},kl={class:"col q-ml-md hidden"};const xl={__name:"OverviewIndex",setup:function(e){return function(e,t){var a=(0,l.up)("q-card-section"),s=(0,l.up)("q-card"),i=(0,l.up)("q-page");return(0,l.wg)(),(0,l.j4)(i,{padding:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(s,{flat:"",class:"q-mb-md"},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(G)]})),_:1})]})),_:1}),(0,l.Wm)(s,{flat:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(Ge)]})),_:1})]})),_:1}),(0,l._)("div",hl,[(0,l._)("div",Sl,[(0,l.Wm)(s,{flat:""},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(gl)]})),_:1})]})),_:1})]),(0,l._)("div",kl,[(0,l.Wm)(s,{flat:"",style:{height:"100%"}},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,null,{default:(0,l.w5)((function(){return[(0,l.Wm)(fl)]})),_:1})]})),_:1})])])]})),_:1})}}};var ql=a(69885);const Ul=xl,Zl=Ul;y()(xl,"components",{QPage:ql.Z,QCard:Y.Z,QCardSection:N.Z})}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/app.92ab606c.js b/src/presentation/ui/dist/js/app.1bc11324.js similarity index 99% rename from src/presentation/ui/dist/js/app.92ab606c.js rename to src/presentation/ui/dist/js/app.1bc11324.js index 1e5af57d2..4f08114a9 100644 --- a/src/presentation/ui/dist/js/app.92ab606c.js +++ b/src/presentation/ui/dist/js/app.1bc11324.js @@ -1 +1 @@ -(()=>{"use strict";var e={62228:(e,a,r)=>{var t=r(47798),o=r.n(t),s=r(37167),i=r.n(s),n=r(1001),l=r.n(n),c=(r(11476),r(18964),r(98998),r(65716),r(59437),r(33697),r(77280),r(40702),r(51393),r(56072),r(32119),r(61957)),d=r(71947),u=r(60499),m=r(59835),p=r(19302),g=r(25121),v=r(74358),b=r(20503);const f=(0,m.aZ)({__name:"App",setup(e){const a=(0,v.S)(),{locale:r}=(0,g.QT)(),t=(0,u.iH)(0),o=(0,m.Fl)({get:()=>a.getSelectedLanguage,set:e=>a.setSelectedLanguage(e)});return(0,m.wF)((()=>{const e=new b.Z,a=(0,p.Z)();a.dark.set(e.getDarkMode()),o.value=e.getLanguage()})),(0,m.YP)(o,(e=>{r.value=e,t.value++})),(e,a)=>{const r=(0,m.up)("router-view");return(0,m.wg)(),(0,m.j4)(r,{key:t.value})}}}),h=f,C=h;var S=r(23340),y=r(3746);const D=(0,S.h)((()=>{const e=(0,y.WB)();return e}));var A=r(21809),E=r(28339);const P=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.all([r.e(736),r.e(549)]).then(r.bind(r,62549)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(64),r.e(719)]).then(r.bind(r,26719)),meta:{requiresAuth:!1,isMenuItem:!1}}]}],N=[{path:"/overview",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/overview",component:()=>Promise.all([r.e(736),r.e(64),r.e(870)]).then(r.bind(r,23346)),meta:{requiresAuth:!0,isMenuItem:!0,title:"overviewRoute.title",icon:"sym_s_speed",disabled:!1}}]}],M=[{path:"/accounts",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/accounts",component:()=>Promise.all([r.e(736),r.e(64),r.e(506)]).then(r.bind(r,73403)),meta:{requiresAuth:!0,isMenuItem:!0,title:"accountsRoute.title",icon:"sym_s_people",disabled:!1}}]}],R=[{path:"/databases",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/databases",component:()=>Promise.all([r.e(736),r.e(64),r.e(693)]).then(r.bind(r,31555)),meta:{requiresAuth:!0,isMenuItem:!0,title:"databasesRoute.title",icon:"sym_s_database",disabled:!1}}]}],F=[{path:"/runtime",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/runtime",component:()=>Promise.all([r.e(736),r.e(64),r.e(628)]).then(r.bind(r,31691)),meta:{requiresAuth:!0,isMenuItem:!0,title:"runtimeRoute.title",icon:"sym_s_code",disabled:!1}}]}],w=[{path:"/crons",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/crons",component:()=>Promise.all([r.e(736),r.e(64),r.e(915)]).then(r.bind(r,60884)),meta:{requiresAuth:!0,isMenuItem:!0,title:"cronsRoute.title",icon:"sym_s_schedule",disabled:!1}}]}],T=[{path:"/settings",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/settings",component:()=>Promise.all([r.e(736),r.e(64),r.e(517)]).then(r.bind(r,73120)),meta:{requiresAuth:!0,isMenuItem:!1,title:"settingsRoute.title",icon:"sym_s_settings",disabled:!1}}]}],I=[{path:"/file-manager",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/file-manager",component:()=>Promise.all([r.e(736),r.e(64),r.e(664)]).then(r.bind(r,59590)),meta:{requiresAuth:!0,isMenuItem:!0,title:"fileManagerRoute.title",icon:"sym_s_home_storage",disabled:!1}}]}],U=[{path:"/mappings",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/mappings",component:()=>Promise.all([r.e(736),r.e(64),r.e(755)]).then(r.bind(r,85090)),meta:{requiresAuth:!0,isMenuItem:!0,title:"mappingsRoute.title",icon:"sym_s_device_hub",disabled:!1}}]}],k=[{path:"/ssl",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/ssl",component:()=>Promise.all([r.e(736),r.e(64),r.e(646)]).then(r.bind(r,34721)),meta:{requiresAuth:!0,isMenuItem:!0,title:"sslRoute.title",icon:"sym_s_lock",disabled:!1}}]}],L=[{path:"/marketplace",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/marketplace",component:()=>Promise.all([r.e(736),r.e(64),r.e(381)]).then(r.bind(r,16789)),meta:{requiresAuth:!0,isMenuItem:!0,title:"marketplaceRoute.title",icon:"sym_s_store",disabled:!1}}]}],B=[...P,...N,...M,...R,...F,...w,...T,...I,...U,...k,...L,{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(320)]).then(r.bind(r,57320))}],q=B,x=(0,S.BC)((function(){const e=E.r5,a=(0,E.p7)({scrollBehavior:()=>({left:0,top:0}),routes:q,history:e("/_/")});return a.beforeEach(((e,a,r)=>{const t=new A.Z,o=["/login"],s=!o.includes(e.path),i=t.hasCookie("os-access-token");return s&&!i?r("/login"):"/login"===e.path&&i?r("/overview"):void r()})),a}));function H(e,a){return O.apply(this,arguments)}function O(){return O=l()(o()().mark((function e(a,r){var t,s,i;return o()().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a(C),t.use(d.Z,r),"function"!==typeof D){e.next=8;break}return e.next=5,D({});case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=D;case 9:if(s=e.t0,t.use(s),e.t1=u.Xl,"function"!==typeof x){e.next=18;break}return e.next=15,x({store:s});case 15:e.t2=e.sent,e.next=19;break;case 18:e.t2=x;case 19:return e.t3=e.t2,i=(0,e.t1)(e.t3),s.use((function(e){var a=e.store;a.router=i})),e.abrupt("return",{app:t,store:s,router:i});case 23:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}var j=r(99527),V=r(37879),z=r(6827),W=r(5917),K=r(26950),_=r(84006);const G={config:{loadingBar:{color:"primary"}},lang:j.Z,iconSet:V.Z,plugins:{Notify:z.Z,LoadingBar:W.Z,Loading:K.Z,Cookies:_.Z}};var Z="/_/",Y=/\/\//,Q=function(e){return(Z+e).replace(Y,"/")};function J(e,a){return $.apply(this,arguments)}function $(){return $=l()(o()().mark((function e(a,r){var t,s,i,n,l,c,d,u;return o()().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=a.app,s=a.router,i=a.store,n=!1,l=function(e){try{return Q(s.resolve(e).href)}catch(a){}return Object(e)===e?null:e},c=function(e){if(n=!0,"string"===typeof e&&/^https?:\/\//.test(e))window.location.href=e;else{var a=l(e);null!==a&&(window.location.href=a,window.location.reload())}},d=window.location.href.replace(window.location.origin,""),u=0;case 6:if(!(!1===n&&u{r.r(a),r.d(a,{default:()=>cs,i18n:()=>ls});var t={};r.r(t),r.d(t,{footerBar:()=>Q,langSelect:()=>_,profileCard:()=>Y,refreshRateSelect:()=>G,sideBarMenu:()=>Z,themeSelect:()=>K});var o={};r.r(o),r.d(o,{generatePassword:()=>J,loading:()=>ee,serviceInstallButton:()=>X,strongPasswordStrength:()=>$});var s={};r.r(s),r.d(s,{overviewRoute:()=>oe,quickLinks:()=>se});var i={};r.r(i),r.d(i,{systemInfoDiskUsage:()=>ne,systemInfoIndex:()=>ie,systemInfoResourcesChart:()=>ce,systemInfoTable:()=>le});var n={};r.r(n),r.d(n,{servicesCommandInput:()=>ue,servicesInstallDialog:()=>ge,servicesInstallDialogTabs:()=>ve,servicesNameInput:()=>me,servicesPortBindings:()=>be,servicesStatusIndex:()=>de,servicesStatusTable:()=>he,servicesStatusTableActions:()=>Ce,servicesTabCustom:()=>Se,servicesTabInstallable:()=>ye,servicesUninstallDialog:()=>fe,servicesUpdateDialog:()=>De,servicesVersionInput:()=>pe,startupFileDialog:()=>Ae});var l={};r.r(l),r.d(l,{marketplaceInstallAppDialog:()=>Ee,marketplaceInstallAppForm:()=>Pe,marketplaceInstallAppSlide:()=>Ne,marketplaceTableTdActions:()=>Re,overviewMarketplaceTable:()=>Me});var c={};r.r(c),r.d(c,{accountsCreateUserDialog:()=>Te,accountsDeleteUserDialog:()=>Ie,accountsIndex:()=>we,accountsRoute:()=>Fe,accountsTable:()=>Ue,accountsTableActions:()=>Be,accountsUpdateApiKeyDialog:()=>Le,accountsUpdatePasswordDialog:()=>ke});var d={};r.r(d),r.d(d,{databasesConnectionInfo:()=>He,databasesDialogCreate:()=>Oe,databasesDialogCreateUser:()=>je,databasesDialogRemove:()=>Ve,databasesDialogRemoveUser:()=>ze,databasesDialogUpdateUser:()=>We,databasesIndex:()=>xe,databasesRemoveDatabase:()=>Ke,databasesRoute:()=>qe,databasesTable:()=>_e,databasesUsersActions:()=>Ge});var u={};r.r(u),r.d(u,{phpCreateMapping:()=>Ye,phpDialogPhpVersion:()=>$e,phpExtensionsToggle:()=>ra,phpIndex:()=>Ze,phpOptionsSelect:()=>aa,phpOptionsToggle:()=>Xe,phpSubdirectoryInput:()=>ea,phpVersionSelect:()=>Je,phpVhostSelect:()=>Qe});var m={};r.r(m),r.d(m,{cronIndex:()=>oa,cronOptionsSelects:()=>ca,cronsDialogForm:()=>na,cronsDialogRemove:()=>la,cronsRoute:()=>ta,cronsTable:()=>sa,cronsTableActions:()=>ia});var p={};r.r(p),r.d(p,{fileManagerCodeEditor:()=>pa,fileManagerDialogCompress:()=>La,fileManagerDialogCopy:()=>Ba,fileManagerDialogEditCode:()=>qa,fileManagerDialogEditPermissions:()=>xa,fileManagerDialogExtract:()=>Ha,fileManagerDialogMove:()=>Oa,fileManagerDialogRenameFile:()=>ja,fileManagerEditPermission:()=>Va,fileManagerInputUploaderFile:()=>Ta,fileManagerRoute:()=>da,fileManagerTable:()=>ua,fileManagerToolbarBtnClearTrash:()=>ma,fileManagerToolbarBtnCompress:()=>ga,fileManagerToolbarBtnCopy:()=>va,fileManagerToolbarBtnDownload:()=>ba,fileManagerToolbarBtnDuplicateFile:()=>fa,fileManagerToolbarBtnEditCode:()=>ha,fileManagerToolbarBtnEditPermissions:()=>Ca,fileManagerToolbarBtnExtract:()=>Sa,fileManagerToolbarBtnGoBackUp:()=>Da,fileManagerToolbarBtnHome:()=>ya,fileManagerToolbarBtnMove:()=>Aa,fileManagerToolbarBtnNewFile:()=>Ea,fileManagerToolbarBtnNewFolder:()=>Na,fileManagerToolbarBtnPageReload:()=>Ma,fileManagerToolbarBtnRemove:()=>wa,fileManagerToolbarBtnRenameFile:()=>Pa,fileManagerToolbarBtnShowTrash:()=>Ra,fileManagerToolbarBtnUploaderFile:()=>Fa,fileManagerToolbarDialogNewFile:()=>Ia,fileManagerToolbarDialogNewFolder:()=>Ua,fileManagerToolbarDialogUploaderFile:()=>ka});var g={};r.r(g),r.d(g,{mappingsAdvancedOptions:()=>Wa,mappingsCreateDialog:()=>Ka,mappingsDeleteDialog:()=>_a,mappingsInlineHtmlInput:()=>Ya,mappingsResponseCodeInput:()=>Ga,mappingsRoute:()=>za,mappingsUrlInput:()=>Za,virtualHostsCreateDialog:()=>Qa,virtualHostsDeleteDialog:()=>Ja,virtualHostsSubdomainForm:()=>$a,virtualHostsTable:()=>Xa,virtualHostsTableActions:()=>er,virtualHostsTableMappingsTd:()=>ar});var v={};r.r(v),r.d(v,{sslChangeDialog:()=>sr,sslCreateDialog:()=>or,sslDownloadFilesDialog:()=>ir,sslFilePemClipBoard:()=>nr,sslIndex:()=>tr,sslRoute:()=>rr,sslTable:()=>lr,sslTableActions:()=>cr,sslVirtualHostsSelect:()=>dr});var b={};r.r(b),r.d(b,{marketplaceAppCard:()=>pr,marketplaceDeleteAppDialog:()=>gr,marketplaceIndex:()=>mr,marketplaceInstallAppDialog:()=>vr,marketplaceInstalledAppCard:()=>br,marketplaceRoute:()=>ur,marketplaceTable:()=>fr});var f={};r.r(f),r.d(f,{footerBar:()=>qr,langSelect:()=>Ur,profileCard:()=>Br,refreshRateSelect:()=>kr,sideBarMenu:()=>Lr,themeSelect:()=>Ir});var h={};r.r(h),r.d(h,{generatePassword:()=>xr,loading:()=>jr,serviceInstallButton:()=>Or,strongPasswordStrength:()=>Hr});var C={};r.r(C),r.d(C,{overviewRoute:()=>Kr,quickLinks:()=>_r});var S={};r.r(S),r.d(S,{systemInfoDiskUsage:()=>Zr,systemInfoIndex:()=>Gr,systemInfoResourcesChart:()=>Qr,systemInfoTable:()=>Yr});var y={};r.r(y),r.d(y,{servicesCommandInput:()=>$r,servicesInstallDialog:()=>Xr,servicesInstallDialogTabs:()=>et,servicesNameInput:()=>at,servicesPortBindings:()=>tt,servicesStatusIndex:()=>Jr,servicesStatusTable:()=>st,servicesStatusTableActions:()=>it,servicesTabCustom:()=>nt,servicesTabInstallable:()=>lt,servicesUninstallDialog:()=>ot,servicesUpdateDialog:()=>ct,servicesVersionInput:()=>rt,startupFileDialog:()=>dt});var D={};r.r(D),r.d(D,{marketplaceInstallAppDialog:()=>ut,marketplaceInstallAppForm:()=>mt,marketplaceInstallAppSlide:()=>pt,marketplaceTableTdActions:()=>vt,overviewMarketplaceTable:()=>gt});var A={};r.r(A),r.d(A,{accountsCreateUserDialog:()=>ht,accountsDeleteUserDialog:()=>Ct,accountsIndex:()=>ft,accountsRoute:()=>bt,accountsTable:()=>St,accountsTableActions:()=>At,accountsUpdateApiKeyDialog:()=>Dt,accountsUpdatePasswordDialog:()=>yt});var E={};r.r(E),r.d(E,{databasesConnectionInfo:()=>Nt,databasesDialogCreate:()=>Mt,databasesDialogCreateUser:()=>Rt,databasesDialogRemove:()=>Ft,databasesDialogRemoveUser:()=>wt,databasesDialogUpdateUser:()=>Tt,databasesIndex:()=>Pt,databasesRemoveDatabase:()=>It,databasesRoute:()=>Et,databasesTable:()=>Ut,databasesUsersActions:()=>kt});var P={};r.r(P),r.d(P,{phpCreateMapping:()=>Bt,phpDialogPhpVersion:()=>Ht,phpExtensionsToggle:()=>zt,phpIndex:()=>Lt,phpOptionsSelect:()=>Vt,phpOptionsToggle:()=>Ot,phpSubdirectoryInput:()=>jt,phpVersionSelect:()=>xt,phpVhostSelect:()=>qt});var N={};r.r(N),r.d(N,{cronIndex:()=>Kt,cronOptionsSelects:()=>Qt,cronsDialogForm:()=>Zt,cronsDialogRemove:()=>Yt,cronsRoute:()=>Wt,cronsTable:()=>_t,cronsTableActions:()=>Gt});var M={};r.r(M),r.d(M,{fileManagerCodeEditor:()=>eo,fileManagerDialogCompress:()=>Ao,fileManagerDialogCopy:()=>Eo,fileManagerDialogEditCode:()=>Po,fileManagerDialogEditPermissions:()=>No,fileManagerDialogExtract:()=>Mo,fileManagerDialogMove:()=>Ro,fileManagerDialogRenameFile:()=>Fo,fileManagerEditPermission:()=>wo,fileManagerInputUploaderFile:()=>Co,fileManagerRoute:()=>Jt,fileManagerTable:()=>$t,fileManagerToolbarBtnClearTrash:()=>Xt,fileManagerToolbarBtnCompress:()=>ao,fileManagerToolbarBtnCopy:()=>ro,fileManagerToolbarBtnDownload:()=>to,fileManagerToolbarBtnDuplicateFile:()=>oo,fileManagerToolbarBtnEditCode:()=>so,fileManagerToolbarBtnEditPermissions:()=>io,fileManagerToolbarBtnExtract:()=>no,fileManagerToolbarBtnGoBackUp:()=>co,fileManagerToolbarBtnHome:()=>lo,fileManagerToolbarBtnMove:()=>uo,fileManagerToolbarBtnNewFile:()=>mo,fileManagerToolbarBtnNewFolder:()=>go,fileManagerToolbarBtnPageReload:()=>vo,fileManagerToolbarBtnRemove:()=>ho,fileManagerToolbarBtnRenameFile:()=>po,fileManagerToolbarBtnShowTrash:()=>bo,fileManagerToolbarBtnUploaderFile:()=>fo,fileManagerToolbarDialogNewFile:()=>So,fileManagerToolbarDialogNewFolder:()=>yo,fileManagerToolbarDialogUploaderFile:()=>Do});var R={};r.r(R),r.d(R,{mappingsAdvancedOptions:()=>Io,mappingsCreateDialog:()=>Uo,mappingsDeleteDialog:()=>ko,mappingsInlineHtmlInput:()=>qo,mappingsResponseCodeInput:()=>Lo,mappingsRoute:()=>To,mappingsUrlInput:()=>Bo,virtualHostsCreateDialog:()=>xo,virtualHostsDeleteDialog:()=>Ho,virtualHostsSubdomainForm:()=>Oo,virtualHostsTable:()=>jo,virtualHostsTableActions:()=>Vo,virtualHostsTableMappingsTd:()=>zo});var F={};r.r(F),r.d(F,{sslChangeDialog:()=>Go,sslCreateDialog:()=>_o,sslDownloadFilesDialog:()=>Zo,sslFilePemClipBoard:()=>Yo,sslIndex:()=>Ko,sslRoute:()=>Wo,sslTable:()=>Qo,sslTableActions:()=>Jo,sslVirtualHostsSelect:()=>$o});var w={};r.r(w),r.d(w,{marketplaceAppCard:()=>as,marketplaceDeleteAppDialog:()=>rs,marketplaceIndex:()=>es,marketplaceInstallAppDialog:()=>ts,marketplaceRoute:()=>Xo,marketplaceTable:()=>os});var T=r(23340),I=r(25121);const U={messageLoginSuccess:"Login realizado com sucesso!",messageLoginError:"Erro ao realizar login!"},k=U,L={inputMail:"Endereço de E-mail",invalidMail:"Formato de e-mail inválido."},B=L,q={inputPassword:"Senha",invalidPassword:"Senha deve ter no mínimo {minLength} caracteres."},x=q,H={label:"FQDN",fqdnRequired:"Campo {label} é obrigatório",fqdnMaxLengthError:"{label} deve ter menos de 255 caracteres",fqdnRegexError:"{label} deve ser um nome de domínio válido"},O=H,j={mailAddressInput:B,passwordInput:x,fqdnInput:O},V=j,z={authTokenInvalided:"Sua sessão expirou, por favor, faça login novamente.",invalidCredentials:"Credenciais inválidas.",networkError:"Servidor indisponível.",timeoutError:"Tempo de requisição expirado."},W=z,K={light:"Claro",dark:"Escuro"},_={label:"Idioma",en:"Inglês",pt:"Português"},G={selectRefreshRate:"Refresh Rate"},Z={apps:"Aplicações",fileManager:"Gerenciador de Arquivos",domains:"Domínios",backups:"Backups",webServers:"Servidores Web",metrics:"Métricas",logs:"Logs",imageOptimizer:"Otimizador de Imagens",security:"Segurança",terminal:"Terminal",disabled:"Recurso em desenvolvimento"},Y={btnSettings:"Configurações",btnLogout:"Sair"},Q={cpuUsage:"{cpuUsage}% de CPU em uso",ramUsage:"{ramUsage}% de RAM em uso",storageUsage:"{storageUsage}% de disco em uso",disabled:"Recurso em desenvolvimento"},J={btnGeneratePassword:"gerar uma senha aleatória",messageCopiedPassword:"A senha gerada foi copiada para sua área de transferência.
Use CTRL + V para colar em seu gerenciador de senhas."},$={securePassword:"Senha segura",isTooShort:"No mínimo {minPasswordLength} caracteres;",isTooLong:"No máximo {maxPasswordLength} caracteres;",hasNumber:"Ao menos 1 número;",hasUpperCases:"Ao menos 1 letra maiúscula;",hasLowerCases:"Ao menos 1 letra minúscula.",hasReservedCharSuccess:"Sem caracteres especiais reservados.",hasReservedCharError:"Uso de caracteres especiais reservados: "},X={uninstalledService:"O serviço {serviceName} não está instalado no servidor.",installService:"Instalar o serviço {serviceName}"},ee={messageDefault:"Carregando..."},ae={title:"Runtime"},re={title:"Configurações"},te={title:"Configurações",titleConfigs:"Alterar Configurações",titleProfile:"Alterar Senha",titleApiKey:"Alterar Chave de API",updatePasswordBtn:"Atualizar Senha",generatedApiKey:"Chave de API Gerada",generateNewApiKeyBtn:"Gerar Nova Chave de API",closeBtn:"Fechar",copiedToClipboard:"Copiado para a área de transferência.",saveNewApiKey:"Nova chave de API gerada. Salve-a em um local seguro porque a chave não é armazenada no servidor.",errorGettingAccounts:"Erro ao obter contas.",updatedPasswordSuccessfully:"Senha atualizada com sucesso.",errorUpdatingPassword:"Erro ao atualizar a senha.",updatedApiKeySuccessfully:"Nova chave de API gerada, salve-a em um local seguro",errorUpdatingApiKey:"Erro ao atualizar a chave de API."},oe={title:"Visão Geral"},se={titleQuickLinks:"Atalhos",linkApps:"Apps",linkDatabases:"Bancos de Dados",linkFiles:"Arquivos",linkBackups:"Backups",linkDomains:"Domínios",linkMetrics:"Métricas",linkLogs:"Logs",linkTerminal:"Terminal"},ie={titleSystemInfo:"Informações do Sistema"},ne={diskUsage:"Uso de Disco"},le={titleSystemInfo:"Informações do Sistema",colHostname:"Nome do Host",colRuntimeContext:"Contexto de Execução",colUptime:"Tempo de Atividade",colHardware:"Especificações de Hardware",colPublicIp:"Endereço IP Público"},ce={titleResourcesChart:"Uso de Recursos",cpu:"Processador",ram:"Memória RAM"},de={titleServicesStatus:"Serviços"},ue={serviceCommandPlaceholder:"exemplo: /usr/bin/binary",requiredError:"Comando é obrigatório.",maxLengthError:"Comando deve ter menos de 255 caracteres.",commandRegexError:"Comando deve ser um commando válido.",helpCommand:'

Se precisar instalar vários pacotes para executar seu software, você deverá usar o Terminal (SSH).

'},me={serviceNameLabel:"Nome do Serviço",requiredError:"Nome do Serviço é obrigatório.",maxLengthError:"Nome do Serviço deve ter menos de 255 caracteres.",serviceNameRegexError:"Nome do Serviço deve ser um nome de serviço válido."},pe={versionLabel:"Versão",requiredError:"Versão é obrigatória",maxLengthError:"Versão deve ter menos de 255 caracteres.",versionRegexError:"Versão deve ser uma versão válida."},ge={titleInstallService:"Instalar Serviço"},ve={installableForm:"Instalável",customForm:"Personalizado"},be={titlePortBindings:"Portas",hostPortInputLabel:"Porta",PortError:"A porta deve ser um número entre 1 e 65535.",protocolInputLabel:"Protocolo"},fe={uninstallDialogTitle:"Desinstalar Serviço",uninstallDialogDescription:"Deseja realmente desinstalar o serviço {serviceName}?",warningUninstallService:"Atenção! Ao desinstalar o serviço, todos os dados serão perdidos.",uninstallDialogCancelBtn:"Cancelar",uninstallDialogConfirmBtn:"Sim, Desinstalar Serviço"},he={notFound:"Nenhum serviço encontrado.",colServiceName:"Nome do Serviço",colPids:"PIDs",colUptime:"Tempo de Atividade",colCpuUsage:"Uso de CPU",colRamUsage:"Uso de RAM",inputSearch:"Pesquisar",createServiceBtn:"Instalar Novo Serviço"},Ce={restartBtn:"Reiniciar Serviço",uninstallBtn:"Remover Serviço",updateBtn:"Editar Serviço",installBtn:"Instalar Serviço",startSuccess:"Serviço iniciado com sucesso.",stopLoading:"Parando serviço, aguarde a finalização...",stopSuccess:"Serviço parado com sucesso.",startError:"Erro ao iniciar o serviço.",startLoading:"Iniciando serviço, aguarde a finalização...",stopError:"Erro ao parar o serviço.",restartLoading:"Reiniciando serviço, aguarde a finalização...",restartSuccess:"Serviço reiniciado com sucesso.",restartError:"Erro ao reiniciar o serviço.",installLoading:'

Atualizando Status do Serviço

Por favor, aguarde...

Esse processo pode demorar um pouco. NÃO atualize ou feche a página.

',installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço.",uninstallLoading:"Desinstalando serviço, aguarde a finalização...",uninstallSuccess:"Serviço desinstalado com sucesso.",uninstallError:"Erro ao desinstalar o serviço.",systemServiceWarning:"Serviços do tipo sistema não podem ser removidos ou alterados, apenas reiniciados."},Se={serviceNameLabel:"Nome do Serviço",versionLabel:"Versão",commandLabel:"Comando",startupFileLabel:"Arquivo de Inicialização",typeSelect:"Tipo de Serviço",application:"Aplicação",runtime:"Tempo de Execução",database:"Banco de Dados",webserver:"Servidor Web",mom:"Mensageria",monitoring:"Monitoramento",logging:"Registro",security:"Segurança",backup:"Backup",system:"Sistema",other:"Outro",advancedSettingsLabel:"Configurações Avançadas",cancelButton:"Cancelar",installButton:"Instalar Serviço",installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço.",labelExecut:"Modo de Execução",labelRadioCommand:"Comando",labelRadioFile:"ou faça upload de um arquivo executável",labelUploadFile:"Selecione o arquivo (.appImage, .jar etc)",labelCommand:"Comando",uploadError:"Erro ao fazer upload do arquivo."},ye={serviceLabel:"Serviço",versionLabel:"Versão",titleStartupFile:"Selecione o Arquivo de Inicialização",selectStartupFile:"Selecione o Arquivo",startupFileLabel:"Arquivo de Inicialização",helpText:"Este arquivo será executado sempre que o serviço for iniciado.",advancedSettingsLabel:"Configurações Avançadas",cancelButton:"Cancelar",installButton:"Instalar Serviço",installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço."},De={titleUpdateService:"Atualizar Serviço",cancelButton:"Cancelar",advancedSettingsLabel:"Advanced Settings",updateButton:"Atualizar Serviço",updateSuccess:"Serviço atualizado com sucesso.",updateError:"Erro ao atualizar o serviço."},Ae={title:"Selecione o Arquivo de Inicialização",cancelBtn:"Cancelar"},Ee={title:"Marketplace",getCatalogWithError:"Falha ao obter catálogo de aplicativos."},Pe={installParams:"Parâmetros de instalação",descriptionInstallParams:"Preencha os campos abaixo quando obrigatórios ou quando quiser alterar alguma configuração.",marketplaceType:{apps:"Apps",stacks:"Stacks",frameworks:"Frameworks"},cancelBtn:"Cancelar",confirmBtn:"Instalar Marketplace",installAppSuccess:"Marketplace {appName} Instalado com sucesso",installAppWithError:"Falha ao instalar marketplace {appName}."},Ne={notFoundApps:"{type}s não encontrados."},Me={noDataLabel:"Nenhum aplicativo disponível.",searchInput:"Pesquisar",installBtn:"Instalar",appNameColumn:"Nome",installDirectoryColumn:"Diretório de Instalação",createdAtColumn:"Criado Em"},Re={uninstallBtn:"Desinstalar"},Fe={title:"Contas"},we={errorLoadingAccounts:"Não foi possível carregar contas de usuários."},Te={title:"Criar Conta",username:"Nome de usuário",usernameRequired:"Nome de usuário é obrigatório.",usernameMinLength:"Nome de usuário deve ter no mínimo 3 caracteres.",cancelBtn:"Cancelar",createBtn:"Criar Conta",createdSuccessfully:"Conta criada com sucesso.",errorCreatingAccount:"Não foi possível criar a conta."},Ie={title:"Remover Usuário {username}",messageDeleteAccount:"Tem certeza que deseja remover o usuário {username}?",warningDeleteAccount:"Atenção! Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, Remover Usuário",deletedSuccessfully:"Usuário {username} removido com sucesso.",errorDeletingAccount:"Não foi possível remover o usuário {username}."},Ue={createAccountBtn:"Criar Conta",noDataLabel:"Nenhuma conta de usuário encontrada.",searchInput:"Pesquisar"},ke={title:"Alterar Senha do Usuário {username}",cancelBtn:"Cancelar",closeDialogBtn:"Cancelar",updateBtn:"Alterar Senha",updatedSuccessfully:"Senha alterada com sucesso.",errorUpdatingAccount:"Não foi possível alterar a senha."},Le={title:"Alterar Chave de API do Usuário {username}",generatedApiKey:"Nova chave de API gerada.",updatedSuccessfullyWithApiKey:"Nova chave de API gerada, salve-a em um local seguro.",saveNewApiKey:"Nova chave de API gerada. Por favor, salve-a em um local seguro porque a chave não é armazenada no servidor.",copiedToClipboard:"Copiado para a área de transferência.",closeDialogBtn:"Cancelar",generateNewApiKeyBtn:"Gerar Nova Chave de API",updatedSuccessfully:"Nova chave de API gerada com sucesso.",errorUpdatingApiKey:"Não foi possível gerar nova chave de API."},Be={editPasswordBtn:"Alterar Senha",editApiKeyBtn:"Alterar Chave de API",deleteBtn:"Remover Conta"},qe={title:"Bancos de Dados"},xe={errorLoadingPostgresqlDatabases:"Erro ao carregar a lista de bases de dados Postgresql.",errorLoadingMysqlDatabases:"Erro ao carregar a lista de bases de dados Mysql."},He={tdIpAddress:"Endereço IP do Servidor",tdPort:"Porta do Servidor",localhost:"localhost",dataLocal:"Conexão Local"},Oe={titleDialogCreate:"Criar Base de Dados",inputDataBaseName:"Nome da base de dados",inputUserName:"Nome do usuário",messageValidateError:"Somente letras, números e underline são permitidos.",btnCancel:"Cancelar",btnCreateDataBase:"Criar Base de Dados",createDataBaseSuccess:"Base de dados criado com sucesso.",createDataBaseError:"Erro ao criar base de dados."},je={titleDialogCreateUser:"Criar Usuário de Banco de Dados",textSelectDatabases:"Selecione as bases de dados",inputUsername:"Nome do usuário",messageInputError:"Somente letras, números e underline são permitidos.",textPrivileges:"Privilégios",textPrivilegesSelect:"Selecione os privilégios",toggleSelectAll:"Selecionar todos",btnCancel:"Cancelar",btnCreateUser:"Criar Usuário",messageCreateUserSuccess:"Usuário criado com sucesso.",messageCreateUserError:"Erro ao criar usuário."},Ve={titleDialogRemove:"Remover Base de Dados",messageConfirmRemove:"Tem certeza que deseja remover a base de dados {databaseName}?",warningRemoveDatabase:"Atenção! Esta ação não pode ser desfeita",btnCancel:"Cancelar",btnRemove:"Remover Base de Dados",messageRemoveSuccess:"Base de dados removida com sucesso.",messageRemoveError:"Erro ao remover base de dados."},ze={titleDialogRemoveUser:"Remover Usuário de Banco de Dados",messageConfirmRemove:"Tem certeza que deseja remover o usuário {username}?",warningRemoveUser:"Atenção! Esta ação não pode ser desfeita.",btnCancel:"Cancelar",btnRemove:"Remover Usuário",subtitleDialogRemoveUser:"{databaseType} - {databaseName}",messageRemoveUserSuccess:"Usuário removido com sucesso.",messageRemoveUserError:"Erro ao remover usuário."},We={titleDialogUpdateUser:"Atualizar Usuário de Banco de Dados: {user}",subtitleDialogUpdateUser:"Base de dados: {databaseType}",textAlertMessage:"Atenção! Esta ação não pode ser desfeita.",inputName:"Nome do usuário",textPrivileges:"Privilégios",toggleSelectAll:"Selecionar todos",textPostgresPrivileges:'Todos usuários ProstgreSQL serão criados com "ALL PRIVILEGES" nas bases de dados e na schema public',btnCancel:"Cancelar",btnUpdateUser:"Atualizar Usuário",messageUpdateUserSuccess:"Usuário atualizado com sucesso.",messageUpdateUserError:"Erro ao atualizar usuário."},Ke={tooltipRemove:"Remover Base de Dados"},_e={notFoundDatabases:"Nenhuma base de dados encontrada.",search:"Pesquisar",btnCreateUser:"Criar Usuário",btnCreateDatabase:"Criar Base de Dados",databaseName:"Nome da Base de Dados",databaseUsers:"Usuários",databaseSize:"Tamanho"},Ge={tooltipEditUser:"Editar Usuário",tooltipRemoveUser:"Remover Usuário"},Ze={textWarningChanges:'Suas alterações ainda não foram aplicadas. Clique em "Atualizar Configurações" para propagar as mudanças desejadas.',btnUpdateConfigurations:"Atualizar Configurações",tabExtensions:"Extensões",tabOptions:"Opções",getVirtualHostsError:"Não foi possível listar os hosts virtuais do servidor.",getMappingsError:"Não foi possível listar os mapeamentos dos hosts virtuais do servidor.",checkPhpServiceError:"Não foi possível verificar o status do serviço PHP.",getPhpConfigurationsError:"Não foi possível exibir as configurações do PHP.",updatePhpConfigurationsSuccess:"Configurações do PHP.ini atualizadas com sucesso.",updatePhpConfigurationsError:"Não foi possível atualizar as configurações do PHP.ini."},Ye={title:"O Host Virtual Selecionado Ainda Não Está Mapeado para o PHP",mappingExplanation:"O mapeamento de um virtual host para um servidor PHP permite que diferentes partes de um site sejam tratadas por servidores PHP diferentes, permitindo funcionalidades específicas para cada seção do site.",createBtn:"Criar Mapeamento",createMappingSuccessfully:"Mapeamento criado com sucesso",createMappingError:"Não foi possível criar o mapeamento"},Qe={selectVirtualHost:"Host Virtual"},Je={selectPhpVersion:"Versão do PHP"},$e={title:"Você tem certeza de que deseja alterar a versão do PHP?",body:"

Antes de alterar, confira se sua aplicação é compatível com a versão PHP {newVersion}.

Lembre-se de em seguida habilitar/desabilitar os módulos desejados e ajustar as configurações na nova versão, uma vez que os módulos/configurações da versão anterior podem ser diferentes.

",btnCancel:"Cancelar",btnConfirm:"Alterar Versão",updatePhpVersionSuccess:"Versão do PHP alterada com sucesso.",updatePhpVersionError:"Não foi possível alterar a versão do PHP."},Xe={enablePhpSettingError:"Não foi possível ativar a opção {settingName}.",disablePhpSettingError:"Não foi possível desativar a opção {settingName}.",enablePhpSettingSuccess:"Opção {settingName} ativada com sucesso.",disablePhpSettingSuccess:"Opção {settingName} desativada com sucesso."},ea={urlLabel:"Subdiretório",urlIsInvalid:"URL inválida",urlExplanation:"Subdiretórios são usados para acessar diferentes aplicações em um mesmo domínio. Por exemplo, se você tem um site em {hostname} e deseja criar um blog, você pode criar um subdiretório chamado blog e acessá-lo em {hostname}/blog."},aa={enablePhpSettingError:"Não foi possível ativar a opção {settingName}.",enablePhpSettingSuccess:"Opção {settingName} ativada com sucesso."},ra={enablePhpModuleError:"Não foi possível ativar o módulo {moduleName}.",disablePhpModuleError:"Não foi possível desativar o módulo {moduleName}.",enablePhpModuleSuccess:"Módulo {moduleName} ativado com sucesso.",disablePhpModuleSuccess:"Módulo {moduleName} desativado com sucesso."},ta={title:"Agendador de Tarefas"},oa={getCronjobsError:"Não foi possível buscar as informações sobre tarefas agendadas."},sa={notFoundCronjobs:"Não foi possível encontrar tarefas agendadas.",btnNewTask:"Agendar Nova Tarefa",inputSearch:"Pesquisar",columnSchedule:"Agendamento",columnCommand:"Comando",columnComment:"Comentário",predefinedHourly:"A cada hora",predefinedDaily:"Diariamente",predefinedWeekly:"Semanalmente",predefinedMonthly:"Mensalmente",predefinedYearly:"Anualmente",predefinedAnnually:"Anualmente",predefinedReboot:"Ao reiniciar"},ia={btnEditCronjob:"Editar Tarefa",btnRemoveCronjob:"Remover Tarefa"},na={editCronjob:"Editar Tarefa",newCronjob:"Nova Tarefa",updateCronjob:"Atualizar Tarefa",createCronjob:"Criar Tarefa",btnCancel:"Cancelar",updateCronjobSuccess:"Tarefa atualizada com sucesso.",updateCronjobError:"Não foi possível atualizar a tarefa.",createCronjobSuccess:"Tarefa criada com sucesso.",createCronjobError:"Não foi possível criar a tarefa.",predefinedForm:"Predefinido",customForm:"Customizado",selectExecuteTask:"Executar Tarefa",predefinedHourly:"A cada hora",predefined3Hours:"A cada 3 horas",predefined6Hours:"A cada 6 horas",predefined12Hours:"A cada 12 horas",predefinedDaily:"Diariamente",predefinedWeekly:"Semanalmente",predefinedMonthly:"Mensalmente",predefinedYearly:"Anualmente",predefinedAnnually:"Anualmente",predefinedReboot:"Reboot",fieldMinutes:"Minuto(s)",fieldDays:"Dia(s)",fieldHours:"Hora(s)",fieldMonths:"Meses",fieldWeekDay:"Dia da Semana",fieldCommand:"Comando",fieldComment:"Comentário",messageFieldRequired:"Campo obrigatório.",messageInputError:"Você não formatou as configurações corretamente."},la={titleDialogRemove:"Remover a Tarefa",confirmRemoveCron:"Você tem certeza que deseja remover essa tarefa?",warningRemoveCron:"Essa ação é irreversível.",btnCancel:"Cancelar",btnConfirm:"Sim, Remova a Tarefa",removeCronSuccess:"Tarefa removida com sucesso.",removeCronError:"Não foi possível remover a tarefa."},ca={everyMinute:"A cada minuto",everyMinutes:"A cada {minute} minutos",atMinute:"No minuto {minute}",everyHour:"A cada hora",everyHours:"A cada {hour} horas",atMidnight:"A meia-noite",atMidday:"Ao meio-dia",atHour:"As {standard24hours}h ({standard12hours})",everyDay:"Todos os dias",everyDays:"A cada {day} dias",weekly:"Uma vez por semana",atDay:"No dia {day}",everyMonth:"Todos os meses",everyMonths:"A cada {month} meses",january:"Janeiro",february:"Fevereiro",march:"Março",april:"Abril",may:"Maio",june:"Junho",july:"Julho",august:"Agosto",september:"Setembro",october:"Outubro",november:"Novembro",december:"Dezembro",everyWeekDay:"Todos os dias da semana",mondayToFriday:"De segunda a sexta",onlyWeekends:"Apenas finais de semana",everyMonday:"Todas as segundas-feiras",everyTuesday:"Todas as terças-feiras",everyWednesday:"Todas as quartas-feiras",everyThursday:"Todas as quintas-feiras",everyFriday:"Todas as sextas-feiras",everySaturday:"Todos os sábados",everySunday:"Todos os domingos"},da={title:"Gerenciador de Arquivos"},ua={notFoundFiles:"Não foi possível encontrar nenhum arquivo neste diretório.",labelInputSearch:"Pesquisar",placeholderInputSearch:"Pesquisar no Diretório",colUserAndGroup:"Usuário:Grupo",colName:"Nome",colSize:"Tamanho",colType:"Tipo",colLastModifiedDate:"Última Atualização",colPermission:"Permissão",oneFileSelected:"1 registro selecionado de {total}",multiFileModelsSelected:"{quantity} registros selecionados de {total}",labelSelectRowsViews:"Quantidade de Registros"},ma={btnClearTrash:"Esvaziar Lixeira",titleDialogClearTrash:"Esvaziar Lixeira",bodyDialogClearTrash:"Você tem certeza que deseja remover todos arquivos na lixeira?
Essa ação é irreversível.",msgRemoveSuccess:"Lixeira esvaziada com sucesso.",msgRemoveError:"Não foi possível remover os arquivos na lixeira.",msgCreateTrashError:"Não foi possível criar a lixeira novamente.",btnCancel:"Cancelar",btnConfirm:"Sim, esvazie a lixeira"},pa={btnSave:"Salvar",btnUndo:"Desfazer",btnRedo:"Refazer",btnRedoAll:"Desfazer Todas Alterações",btnSaveFile:"Salvar Arquivo",btnDecreaseFont:"Diminuir Fonte",btnIncreaseFont:"Aumentar Fonte"},ga={btnCompress:"Compactar"},va={btnCopy:"Copiar"},ba={btnDownload:"Download do Arquivo",msgDownloadError:"Não foi possível fazer download do arquivo {fileName}"},fa={btnDuplicateFile:"Duplicar Arquivo",msgDuplicateFileSuccess:"Arquivo {fileName} foi duplicado com sucesso.",msgDuplicateFileError:"Não foi possível duplicar o arquivo {fileName}."},ha={btnEditCode:"Editar Código"},Ca={btnEditPermissions:"Editar Permissões"},Sa={btnExtract:"Extrair Arquivo"},ya={btnGoToHome:"Ir para diretório raiz"},Da={btnGoBackUp:"Voltar um Nível"},Aa={btnMoveFile:"Mover Arquivo",btnMoveFiles:"Mover Arquivos Selecionados",btnMoveDir:"Mover Diretório"},Ea={btnNewFile:"Novo Arquivo"},Pa={btnRenameDir:"Renomear Diretório",btnRenameFile:"Renomear Arquivo"},Na={btnNewFolder:"Nova Pasta"},Ma={btnPageReload:"Recarregar Página"},Ra={btnShowTrash:"Exibir Lixeira"},Fa={btnUploaderFile:"Upload de Arquivo"},wa={btnRemoveFile:"Remover o Arquivo",btnRemoveDir:"Remover Diretório",titleDialogRemoveFile:"Remover Arquivo",titleDialogRemoveDir:"Remover Diretório",msgConfirmRemoveSelectedOneFile:"Você tem certeza que deseja remover o arquivo selecionado?
O arquivo permanecerá na lixeira por 30 dias.",msgConfirmRemoveSelectedMultiFileModels:"Você tem certeza que deseja remover os {countFiles} arquivos selecionados?
Os arquivos permanecerão na lixeira por 30 dias.",msgConfirmRemoveOneFile:"Você tem certeza que deseja remover o {mimeType} {fileName}?
O arquivo permanecerá na lixeira por 30 dias.",msgConfirmRemoveSelectedOneFileTrash:"Você tem certeza que deseja remover o {mimeType} selecionado?
Essa ação é irreversível.",msgConfirmRemoveSelectedMultiFileModelsTrash:"Você tem certeza que deseja remover os {countFiles} arquivos selecionados?
Essa ação é irreversível.",msgConfirmRemoveOneFileTrash:"Você tem certeza que deseja remover o {mimeType} {fileName}?
Essa ação é irreversível.",msgRemoveSuccess:"Arquivo(s) movido(s) para a lixeira com sucesso.",msgRemovePermanentSuccess:"Arquivo(s) permanentemente apagado(s).",msgRemoveError:"Não foi possível remover os arquivos.",btnCancel:"Cancelar",btnConfirm:"Sim, remover"},Ta={title:"Upload de Arquivo",addFile:"Adicionar Arquivo"},Ia={titleDialog:"Novo Arquivo",labelInputNameFile:"Nome do Novo Arquivo",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore",inputCreateIn:"Criar em",btnCancel:"Cancelar",btnCreateFile:"Novo Arquivo",msgCreateFileSuccess:"O arquivo {fileName} foi criado com sucesso.",msgCreateFileError:"Não foi possível criar o arquivo {fileName}."},Ua={titleDialog:"Nova Pasta",labelInputNameFolder:"Nome da Nova Pasta",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore",inputCreateIn:"Criar em",btnCancel:"Cancelar",btnCreateFolder:"Nova Pasta",msgCreateFolderSuccess:"O diretório {dirName} foi criado com sucesso.",msgCreateFolderError:"Não foi possível criar o diretório {dirName}."},ka={titleDialog:"Upload de Arquivo",selectDir:"Selecionar Diretório:",inputSendTo:"Enviar Para",btnCancel:"Cancelar",btnUploaderFile:"Enviar Arquivo",msgUploaderFileSuccess:"Upload do arquivo {fileName} realizado com sucesso.",msgUploaderFileError:"Erro no upload do arquivo {fileName}: {reason}."},La={simpleTitleDialog:"Compactar o Arquivo",countTitleDialog:"Compactar os {countSelectedPaths} Arquivos Selecionados",inputName:"Nome do Arquivo",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore.",extensionFile:"Extensão do Arquivo",selectedPaths:"Arquivos Selecionados",selectDir:"Selecionar Diretório:",destinationDir:"Diretório de Destino",btnCancel:"Cancelar",btnCompressFile:"Compactar Arquivo",msgCompressedFileSuccess:"Arquivo(s) compactado(s) com sucesso: {compressedFileName}.",msgCompressedFileError:"Não foi possível compactar o arquivo {compressedFileName}."},Ba={titleDialog:"Copiar Arquivo",selectDir:"Selecionar Diretório:",copyTo:"Copiar Para",btnCancel:"Cancelar",btnCopyFile:"Copiar Arquivo",msgCopiedFileSuccess:"Arquivo {fileName} foi copiado com sucesso.",msgCopiedFileError:"Não foi possível copiar o arquivo {fileName}."},qa={titleEditCode:"Editar Código",titleDialogWarningSave:"Alterações Não Salvas",bodyDialogWarningSave:"Há alterações não salvas, deseja descartar as alterações ?",btnDialogWarningSave:"Descartar Alterações",inputAbsolutePath:"Caminho Absoluto",msgGetContentError:"Não foi possível exibir o conteúdo do arquivo {fileName}.",msgSaveCodeSuccess:"Arquivo {fileName} foi salvo com sucesso.",msgSaveCodeError:"Não foi possível salvar o arquivo {fileName}."},xa={titleDialog:"Editar Permissões",btnCancel:"Cancelar",btnSave:"Salvar Alterações",msgEditPermissionsSuccess:"Permissões alteradas com sucesso.",msgEditPermissionsError:"Não foi possível alterar as permissões do arquivo {fileName}."},Ha={titleDialog:"Extrair Arquivo",selectDir:"Selecionar diretório:",inputExtractTo:"Extrair para",btnCancel:"Cancelar",btnExtractFile:"Extrair Arquivo",msgExtractFileSuccess:"Arquivo {filename} foi extraído com sucesso.",msgExtractFileError:"`Não foi possível extrair o arquivo {filename}."},Oa={titleOneFile:"Mover Arquivo {fileName}",titleOneDir:"Mover Diretório {dirName}",titleMultiFileModel:"Mover os {count} Arquivos Selecionados",selectDir:"Selecionar Diretório:",inputMoveTo:"Mover Para",btnMoveFile:"Mover Arquivo",btnMoveFiles:"Mover Arquivos",btnMoveDir:"Mover Diretório",btnCancel:"Cancelar",msgMoveOneFileSuccess:"Arquivo {fileName} foi movido com sucesso.",msgMoveMultiFileModelsSuccess:"Os {count} arquivos foram movidos com sucesso.",msgMoveOneFileError:"Não foi possível mover o arquivo {fileName}.",msgMoveMultiFileModelsError:"Não foi possível mover os {count} arquivos selecionados."},ja={titleRenameFile:"Renomear Arquivo",titleRenameDir:"Renomear Diretório",absolutePath:"Caminho Absoluto",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore.",dirName:"Nome do Diretório",fileName:"Nome do Arquivo",btnCancel:"Cancelar",btnSave:"Salvar Alteração",msgRenamedFileSuccess:"Arquivo {fileName} alterado com sucesso.",msgRenamedDirSuccess:"Diretório {dirName} alterado com sucesso.",msgRenamedFileError:"Não foi possível alterar o arquivo {fileName}.",msgRenamedDirError:"Não foi possível alterar o diretório {fileName}."},Va={permissions:"Permissões: ",user:"Usuário",group:"Grupo",others:"Outros",read:"Leitura",write:"Gravação",execute:"Execução"},za={title:"Mapeamentos"},Wa={advancedOptionsLabel:"Opções Avançadas",matchPatternLabel:"Padrão de Correspondência",matchPatternOptions:{beginWith:"Começa Com",contains:"Contém",endsWith:"Termina Com",equals:"Igual a"}},Ka={title:"Criar Mapeamento",cancelBtn:"Cancelar",targetType:{url:"URL",service:"Serviço",responseCode:"Código de Resposta",inlineHtml:"Inline HTML",staticFiles:"Arquivos Estáticos"},hostnameLabel:"Nome do Host",servicesNameLabel:"Nome do Serviço",pathLabel:"URL de Origem",responseCodeLabel:"Response Code",targetUrlLabel:"URL de Destino",createBtn:"Criar Mapeamento",createMappingSuccessfully:"Mapeamento criado com sucesso.",createMappingError:"Erro ao criar mapeamento."},_a={title:"Excluir Mapeamento",confirmRemoveMapping:"Tem certeza de que deseja excluir o mapeamento para {path}?",warningRemoveMapping:"Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, excluir mapeamento",deleteMappingSuccess:"Mapeamento excluído com sucesso.",deleteMappingError:"Erro ao excluir mapeamento."},Ga={responseCodeLabel:"Código de Resposta",responseCodeIsRequired:"O código de resposta é obrigatório",responseCodeIsInvalid:"O código de resposta é inválido"},Za={targetUrlLabel:"URL",targetUrlIsRequired:"URL é obrigatória",targetUrlIsInvalid:"URL é inválida"},Ya={targetInlineHtmlLabel:"Inline HTML",targetInlineHtmlIsRequired:"Inline HTML é obrigatório"},Qa={title:"Criar Virtual Host",hostnameLabel:"Hostname",typeLabel:"Tipo",parentHostnameLabel:"Hostname Pai",cancelBtn:"Cancelar",createBtn:"Criar Virtual Host",optionTopLevel:"Top Level",optionSubdomain:"Subdomínio",optionWildcard:"Wildcard",optionAlias:"Alias",createVhostSuccess:"Virtual Host criado com sucesso",createVhostError:"Erro ao criar virtual host"},Ja={title:"Deletar Virtual Host",confirmRemove:"Tem certeza de que deseja excluir o virtual host {virtualHost}?",warningRemove:"Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, Deletar Virtual Host",deleteVhostSuccess:"Virtual Host deletado com sucesso.",deleteVhostError:"Erro ao deletar virtual host."},$a={topLevelLabel:"Domínio Pai",hostnameLabel:"Subdomínio"},Xa={noDataLabel:"Nenhum mapeamento encontrado.",searchInput:"Pesquisar",createMappingsBtn:"Criar Mapeamento",createVirtualHostsBtn:"Criar Virtual Hosts"},er={deleteBtn:"Excluir Virtual Host"},ar={aliasWarning:"Este virtual host é um alias e não pode ter mapeamentos.",createMappingBtn:"Criar Mapeamento",matchPattern:"Padrão de Correspondência",deleteBtn:"Delete Mapping"},rr={title:"Certificado SSL"},tr={errorLoadingSsl:"Não foi possível carregar o certificado SSL."},or={title:"Adicionar/Substituir Certificado SSL",labelShowFileTypeInputs:"OU carregar arquivos (.crt/.key - formato pem)",labelCertificateInput:"Certificado",certificateContentIsRequired:"O conteúdo do certificado é obrigatório.",certificateContentIsInvalid:"O conteúdo do certificado é inválido.",labelPrivateKeyInput:"Chave Privada",privateKeyIsRequired:"A chave privada é obrigatória.",privateKeyIsInvalid:"A chave privada não é valida.",labelCertificateChainInput:"Certificado Intermediário (CA Bundle / Chain)",certificateAuthIsInvalid:"O certificado intermediário é inválido.",cancelBtn:"Cancelar",createBtn:"Adicionar/Substituir Certificado SSL",createdSuccessfully:"Certificado SSL criado com sucesso.",errorCreatingSsl:"Não foi possível criar o certificado SSL."},sr={title:"Substituir Certificado SSL",messageReplaceSsl:"Tem certeza de que deseja substituir o certificado SSL?",warningReplaceSsl:"Use esta ação somente se você não deseja mais usar o certificado SSL atual. O sistema substituirá o certificado atual por um SSL auto-assinado até que seja possível emitir um novo certificado SSL Let's Encrypt válido.",cancelBtn:"Cancelar",swapSslBtn:"Sim, Substituir Certificado SSL",deletedSuccessfully:"Certificado SSL substituído com sucesso.",errorDeletingSsl:"Não foi possível substituir o certificado SSL."},ir={title:"Download dos arquivos PEM",labelCertificate:"Certificado",labelPrivateKey:"Chave Privada"},nr={messageClipBoard:"Copiar o conteúdo",downloadFile:"Download do Arquivo",messageCopied:"O conteúdo foi copiado para a área de transferência.
Use CTRL + V para colar."},lr={createSslBtn:"Adicionar/Substituir Certificado SSL",noDataLabel:"Nenhum certificado SSL encontrado.",searchInput:"Pesquisar",virtualHostCol:"Virtual Host",issuedAtCol:"Data de Emissão",expiresAtCol:"Valido até",isCACol:"Entidade Certificadora",isCAYes:"Sim",isCANo:"Não"},cr={downloadPemFilesBtn:"Download dos arquivos PEM",swapSslBtn:"Substituir por SSL auto-assinado"},dr={labelSelectVirtualHosts:"Selecionar Virtual Hosts"},ur={title:"Marketplace"},mr={title:"Marketplace",getCatalogWithError:"Falha ao obter catálogo de marketplace.",getInstalledAppsWithError:"Falha ao obter marketplace instalados.",installedApps:"Marketplace instalados",catalog:"Catálogo"},pr={installBtn:"Instalar"},gr={title:"Desinstalar Marketplace",confirmRemoveApp:"Deseja realmente desinstalar o marketplace {appName}?",warningRemoveApp:"Atenção: Todos os dados do marketplace serão perdidos.",deleteAppSuccess:"Marketplace desinstalado com sucesso.",deleteAppWithError:"Falha ao desinstalar marketplace.",cancelBtn:"Cancelar",confirmBtn:"Desinstalar"},vr={title:"Instalar {appName}",hostnameSelect:"Selecione o virtual host",rootDirectory:"Caso deseje instalar em um diretório específico, informe abaixo, caso contrário, o diretório de instalação será: {rootDirectory}.",installDirectory:"Diretório",installParams:"Parâmetros de instalação",descriptionInstallParams:"Preencha os campos abaixo quando obrigatórios ou quando quiser alterar alguma configuração.",getVirtualHostsWithError:"Falha ao obter lista de virtual hosts.",installAppSuccess:"Marketplace instalado com sucesso.",installAppWithError:"Falha ao instalar marketplace.",cancelBtn:"Cancelar",confirmBtn:"Instalar Marketplace"},br={createdAt:"Data de instalação: {createdAt}",rootDirectory:"Instalado em {rootDirectory}",uninstallAppBtn:"Desinstalar"},fr={inputSearch:"Pesquisar",notFound:"Nenhum dado encontrado",onlyInstalledAppsLabel:"Apenas marketplace instalados"},hr=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({login:k,form:V,errorMessages:W},t),o),{runtimeRoute:ae,settingsIndex:te,settingsRoute:re}),s),i),n),l),c),d),u),m),p),g),v),b),Cr=hr,Sr={messageLoginSuccess:"Login Successful!",messageLoginError:"Error while logging in!"},yr=Sr,Dr={inputMail:"E-mail",invalidMail:"Invalid e-mail address"},Ar=Dr,Er={inputPassword:"Password",invalidPassword:"Password must have at least {minLength} characters."},Pr=Er,Nr={label:"FQDN",fqdnRequired:"{label} is required",fqdnMaxLengthError:"{label} must be less than 255 characters",fqdnRegexError:"{label} must be a valid domain name"},Mr=Nr,Rr={mailAddressInput:Ar,passwordInput:Pr,fqdnInput:Mr},Fr=Rr,wr={authTokenInvalided:"Your session has expired, please login again.",invalidCredentials:"Invalid credentials.",networkError:"Server unavailable.",timeoutError:"Request timeout."},Tr=wr,Ir={light:"Day",dark:"Night"},Ur={label:"Language",en:"English",pt:"Portuguese"},kr={selectRefreshRate:"Refresh Rate"},Lr={apps:"Apps",fileManager:"File Manager",domains:"Domains",backups:"Backups",webServers:"Web Servers",metrics:"Metrics",logs:"Logs",imageOptimizer:"Image Optimizer",security:"Security",terminal:"Terminal",disabled:"Feat under development"},Br={btnSettings:"Settings",btnLogout:"Logout"},qr={cpuUsage:"{cpuUsage}% CPU usage",ramUsage:"{ramUsage}% RAM usage",storageUsage:"{storageUsage}% disk usage",disabled:"Feat under development"},xr={btnGeneratePassword:"generate a random password",messageCopiedPassword:"The generated password has been copied to your clipboard.
Use CTRL + V to paste it into your password manager."},Hr={securePassword:"Secure password",isTooShort:"At least {minPasswordLength} characters;",isTooLong:"At most {maxPasswordLength} characters;",hasNumber:"At least 1 number;",hasUpperCases:"At least 1 uppercase letter;",hasLowerCases:"At least 1 lowercase letter.",hasReservedCharSuccess:"No reserved special characters.",hasReservedCharError:"Use of reserved special characters: "},Or={uninstalledService:"The {serviceName} service is not installed yet.",installService:"Install {serviceName} service"},jr={messageDefault:"Loading..."},Vr={title:"Runtime"},zr={title:"Settings"},Wr={title:"Settings",titleConfigs:"Update Settings",titleProfile:"Update Password",titleApiKey:"Update API Key",updatePasswordBtn:"Update Password",generatedApiKey:"Generated API Key",generateNewApiKeyBtn:"Generate New API Key",closeBtn:"Close",copiedToClipboard:"Copied to clipboard.",errorGettingAccounts:"Error getting accounts.",saveNewApiKey:"New API key generated. Please save it in a safe place because the key is not stored on the server.",updatedPasswordSuccessfully:"Updated password successfully.",errorUpdatingPassword:"Error updating password.",updatedApiKeySuccessfully:"New API key generated, save it in a safe place",errorUpdatingApiKey:"Error updating API key."},Kr={title:"Overview"},_r={titleQuickLinks:"Quick Links",linkApps:"Apps",linkDatabases:"Databases",linkFiles:"Files",linkBackups:"Backups",linkDomains:"Domains",linkMetrics:"Metrics",linkLogs:"Logs",linkTerminal:"Terminal"},Gr={titleSystemInfo:"System Information"},Zr={diskUsage:"Disk Usage"},Yr={titleSystemInfo:"System Information",colHostname:"Hostname",colRuntimeContext:"Runtime Context",colUptime:"Uptime",colHardware:"Hardware Specs",colPublicIp:"Public IP Address"},Qr={titleResourcesChart:"Resources Usage",cpu:"CPU",ram:"Memory RAM"},Jr={titleServicesStatus:"Services"},$r={serviceCommandPlaceholder:"example: /usr/bin/binary",requiredError:"Command is required.",maxLengthError:"Command must be less than 255 characters.",commandRegexError:"Command must be a valid command.",helpCommand:'

If you need to install multiple packages to run your software, you must use the Terminal (SSH).

'},Xr={titleInstallService:"Install Service"},et={installableForm:"Installable",customForm:"Custom"},at={serviceNameLabel:"Service Name",requiredError:"Service Name is required.",maxLengthError:"Service Name must be less than 255 characters.",serviceNameRegexError:"Service Name must be a valid service name."},rt={versionLabel:"Version",requiredError:"Version is required.",maxLengthError:"Version must be less than 255 characters.",versionRegexError:"Version must be a valid version."},tt={titlePortBindings:"Port Bindings",hostPortInputLabel:"Port",PortError:"Port must be a number between 1 and 65535.",protocolInputLabel:"Protocol"},ot={uninstallDialogTitle:"Uninstall Service",uninstallDialogDescription:"Do you really want to uninstall the service {serviceName}?",warningUninstallService:"Warning! By uninstalling the service, all data will be lost.",uninstallDialogCancelBtn:"Cancel",uninstallDialogConfirmBtn:"Yes, Uninstall Service"},st={notFound:"No services found.",colServiceName:"Service Name",colPids:"Process IDs",colUptime:"Uptime",colCpuUsage:"CPU Usage",colRamUsage:"RAM Usage",inputSearch:"Search",createServiceBtn:"Install New Service"},it={restartBtn:"Restart Service",uninstallBtn:"Uninstall Service",updateBtn:"Edit Service",installBtn:"Install Service",startSuccess:"Service started with success.",stopLoading:"Stopping service, please wait.",stopSuccess:"Service stopped with success.",startLoading:"Starting service, please wait.",startError:"Error starting service.",stopError:"Error stopping service.",restartLoading:"Restarting service, please wait.",restartSuccess:"Service restarted with success.",restartError:"Error restarting service.",installLoading:'

Updating Service Status

Please await...

This process may take a while. DO NOT refresh or close the window.

',installSuccess:"Service installed with success.",installError:"Error installing service.",uninstallLoading:"Uninstalling service, please wait.",uninstallSuccess:"Service uninstalled with success.",uninstallError:"Error uninstalling service.",systemServiceWarning:"System services cannot be uninstalled or changed, only restarted."},nt={serviceNameLabel:"Service Name",versionLabel:"Version",commandLabel:"Command",startupFileLabel:"Startup File",typeSelect:"Service Type",application:"Application",runtime:"Runtime",database:"Database",webserver:"Web Server",mom:"Messaging",monitoring:"Monitoring",logging:"Logging",security:"Security",backup:"Backup",system:"System",other:"Other",advancedSettingsLabel:"Advanced Settings",cancelButton:"Cancel",installButton:"Install Service",installSuccess:"Service installed with success.",installError:"Error installing service.",labelExecut:"Execution Mode",labelRadioCommand:"Command",labelRadioFile:"or upload an executable file",labelUploadFile:"Select File (.appImage, .bin etc)",labelCommand:"Command",uploadError:"Error uploading file."},lt={serviceLabel:"Service",versionLabel:"Version",titleStartupFile:"Select Startup File",selectStartupFile:"Select Startup File",helpText:"This file will be executed when the service starts.",startupFileLabel:"Startup File",advancedSettingsLabel:"Advanced Settings",cancelButton:"Cancel",installButton:"Install Service",installSuccess:"Service installed with success.",installError:"Error installing service."},ct={titleUpdateService:"Update Service",startupFileLabel:"Startup File",cancelButton:"Cancel",advancedSettingsLabel:"Advanced Settings",updateButton:"Update Service",updateSuccess:"Service updated with success.",updateError:"Error updating service."},dt={title:"Select Startup File",cancelBtn:"Cancel"},ut={title:"Marketplace",getCatalogWithError:"Failed to get app catalog."},mt={installParams:"Installation parameters",descriptionInstallParams:"Fill in the fields below when required or when you want to change some configuration.",marketplaceType:{apps:"Apps",stacks:"Stacks",frameworks:"Frameworks"},cancelBtn:"Cancel",confirmBtn:"Install Marketplace",installAppSuccess:"Marketplace {appName} Installed successfully",installAppWithError:"Failed to install Marketplace {appName}."},pt={notFoundApps:"{type}s not found."},gt={noDataLabel:"No marketplace available.",searchInput:"Search",installBtn:"Install",appNameColumn:"Name",installDirectoryColumn:"Installation Directory",createdAtColumn:"Created At"},vt={uninstallBtn:"Uninstall"},bt={title:"Accounts"},ft={errorLoadingAccounts:"Not able to load accounts."},ht={title:"Create Account",username:"Username",usernameRequired:"Username is required.",usernameMinLength:"Username must have at least 3 characters.",cancelBtn:"Cancel",createBtn:"Create Account",createdSuccessfully:"Account created successfully.",errorCreatingAccount:"Not able to create account"},Ct={title:"Delete User {username}",messageDeleteAccount:"Are you sure you want to delete user {username}?",warningDeleteAccount:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, Delete User",deletedSuccessfully:"User {username} deleted successfully.",errorDeletingAccount:"Not able to delete user {username}."},St={createAccountBtn:"Create Account",noDataLabel:"No accounts found.",searchInput:"Search"},yt={title:"Update Password for User {username}",cancelBtn:"Cancel",updateBtn:"Update Password",updatedSuccessfully:"Password updated successfully.",errorUpdatingAccount:"Not able to update password."},Dt={title:"Update API Key for User {username}",generatedApiKey:"New API key generated.",updatedSuccessfullyWithApiKey:"New API key generated, save it in a safe place",saveNewApiKey:"New API key generated. Please save it in a safe place because the key is not stored on the server.",copiedToClipboard:"Copied to clipboard.",closeDialogBtn:"Close",generateNewApiKeyBtn:"Generate New API Key",updatedSuccessfully:"New API key generated successfully.",errorUpdatingApiKey:"Not able to generate new API key."},At={editPasswordBtn:"Update Password",editApiKeyBtn:"Update API Key",deleteBtn:"Delete Account"},Et={title:"Databases"},Pt={errorLoadingPostgresqlDatabases:"Error loading the list of Postgresql databases.",errorLoadingMysqlDatabases:"Error loading the list of Mysql databases."},Nt={tdIpAddress:"Server IP Address",tdPort:"Server Port",localhost:"localhost",dataLocal:"Local Connection"},Mt={titleDialogCreate:"Create Database",inputDataBaseName:"Database name",inputUserName:"Username",messageValidateError:"Only letters, numbers and underline are allowed.",btnCancel:"Cancel",btnCreateDataBase:"Create Database",createDataBaseSuccess:"Database created successfully.",createDataBaseError:"Error creating database."},Rt={titleDialogCreateUser:"Create Database User",textSelectDatabases:"Select databases",inputUsername:"Username",messageInputError:"Only letters, numbers and underline are allowed.",textPrivileges:"Privileges",textPrivilegesSelect:"Select privileges",toggleSelectAll:"Select all",btnCancel:"Cancel",btnCreateUser:"Create User",messageCreateUserSuccess:"User created successfully.",messageCreateUserError:"Error creating user."},Ft={titleDialogRemove:"Remove Database",messageConfirmRemove:"Are you sure you want to remove the {databaseName} database",warningRemoveDatabase:"Warning! This action cannot be undone.",btnCancel:"Cancel",btnRemove:"Remove Database",messageRemoveSuccess:"Database removed successfully.",messageRemoveError:"Error removing database."},wt={titleDialogRemoveUser:"Remove Database User",messageConfirmRemove:"Are you sure you want to remove the {username} user",warningRemoveUser:"Warning! This action cannot be undone.",btnCancel:"Cancel",btnRemove:"Remove User",subtitleDialogRemoveUser:"{databaseType} - {databaseName}",messageRemoveUserSuccess:"User removed successfully.",messageRemoveUserError:"Error removing user."},Tt={titleDialogUpdateUser:"Update Database User: {user}",subtitleDialogUpdateUser:"Database: {databaseType}",textAlertMessage:"Warning! This action cannot be undone.",inputName:"Username",textPrivileges:"Privileges",toggleSelectAll:"Select all",textPostgresPrivileges:'All ProstgreSQL users will be created with "ALL PRIVILEGES" in the databases and in the public schema',btnCancel:"Cancel",btnUpdateUser:"Update User",messageUpdateUserSuccess:"User updated successfully.",messageUpdateUserError:"Error updating user."},It={tooltipRemove:"Remove Database"},Ut={notFoundDatabases:"No databases found.",search:"Search",btnCreateUser:"Create User",btnCreateDatabase:"Create Database",databaseName:"Database Name",databaseUsers:"Users",databaseSize:"Size"},kt={tooltipEditUser:"Edit User",tooltipRemoveUser:"Remove User"},Lt={textWarningChanges:'Your changes have not yet been applied. Click "Update Configurations" to propagate the desired changes.',btnUpdateConfigurations:"Update Configurations",tabExtensions:"Extensions",tabOptions:"Options",getVirtualHostsError:"Unable to list server virtual hosts",getMappingsError:"Unable to list server virtual hosts mappings",getPhpConfigurationsError:"No PHP configurations could be displayed",checkPhpServiceError:"Unable to check PHP service status",updatePhpConfigurationsSuccess:"PHP.ini configurations successfully updated",updatePhpConfigurationsError:"Not able to update PHP.ini configurations"},Bt={title:"The Selected Virtual Host Doesn't Map to PHP Yet",mappingExplanation:'In order to control PHP settings and modules, the selected virtual host needs to proxy traffic to the PHP Web Server.
Just click on "Create Mapping" and the system will do this for you. If you want to map a specific sub-directory of your virtual host to the PHP Web Server, go to the Advanced Settings and change the Sub-directory from "/" (root) to the desired location.',createBtn:"Create Mapping",createMappingSuccessfully:"Mapping successfully created",createMappingError:"Not able to create mapping"},qt={selectVirtualHost:"Virtual Host"},xt={selectPhpVersion:"PHP Version"},Ht={title:"Do you really want to change the PHP version?",body:"

Before changing, make sure your application is compatible with PHP version {newVersion}.

Remember to then enable/disable the desired modules and adjust the settings in the new version, since the modules/settings of the previous version may be different.

",btnCancel:"Cancel",btnConfirm:"Change Version",updatePhpVersionSuccess:"PHP version successfully changed.",updatePhpVersionError:"Not able to change PHP version."},Ot={enablePhpSettingError:"Not able to enable option {settingName}.",disablePhpSettingError:"Not able to disable option {settingName}.",enablePhpSettingSuccess:"Option {settingName} successfully enabled.",disablePhpSettingSuccess:"Option {settingName} successfully disabled."},jt={urlLabel:"Subdirectory",urlIsInvalid:"Invalid URL",urlExplanation:"Subdirectories are used to access different applications within the same domain. For example, if you have a website at {hostname} and want to create a blog, you can create a subdirectory called blog and access it at {hostname}/blog."},Vt={enablePhpSettingError:"Not able to enable option {settingName}.",enablePhpSettingSuccess:"Option {settingName} successfully enabled."},zt={enablePhpModuleError:"Not able to enable module {moduleName}.",disablePhpModuleError:"Not able to disable module {moduleName}.",enablePhpModuleSuccess:"Module {moduleName} successfully enabled.",disablePhpModuleSuccess:"Module {moduleName} successfully disabled."},Wt={title:"Cron Jobs"},Kt={getCronjobsError:"Could not fetch information about scheduled tasks."},_t={notFoundCronjobs:"Could not find scheduled tasks.",btnNewTask:"Schedule New Task",inputSearch:"Search",columnSchedule:"Schedule",columnCommand:"Command",columnComment:"Comment",predefinedHourly:"Hourly",predefinedDaily:"Daily",predefinedWeekly:"Weekly",predefinedMonthly:"Monthly",predefinedYearly:"Yearly",predefinedAnnually:"Annually",predefinedReboot:"Reboot"},Gt={btnEditCronjob:"Edit Task",btnRemoveCronjob:"Remove Task"},Zt={editCronjob:"Edit Task",newCronjob:"New Task",updateCronjob:"Update Task",createCronjob:"Create Task",btnCancel:"Cancel",updateCronjobSuccess:"Task updated successfully.",updateCronjobError:"Could not update task.",createCronjobSuccess:"Task created successfully.",createCronjobError:"Could not create task.",predefinedForm:"Predefined",customForm:"Custom",selectExecuteTask:"Execute Task",predefinedHourly:"Hourly",predefined3Hours:"Every 3 hours",predefined6Hours:"Every 6 hours",predefined12Hours:"Every 12 hours",predefinedDaily:"Daily",predefinedWeekly:"Weekly",predefinedMonthly:"Monthly",predefinedYearly:"Yearly",predefinedAnnually:"Annually",predefinedReboot:"Reboot",fieldMinutes:"Minute(s)",fieldDays:"Day(s)",fieldHours:"Hour(s)",fieldMonths:"Months",fieldWeekDay:"Week Day",fieldCommand:"Command",fieldComment:"Comment",messageFieldRequired:"Required field.",messageInputError:"You did not format the settings correctly."},Yt={titleDialogRemove:"Remove Task",confirmRemoveCron:"Are you sure you want to remove this task?",warningRemoveCron:"This action is irreversible.",btnCancel:"Cancel",btnConfirm:"Yes, Remove Task",removeCronSuccess:"Task removed successfully.",removeCronError:"Could not remove task."},Qt={everyMinute:"Every minute",everyMinutes:"Every {minute} minutes",atMinute:"At minute {minute}",everyHour:"Every hour",everyHours:"Every {hour} hours",atMidnight:"At midnight",atMidday:"At midday",atHour:"At {standard24hours}h ({standard12hours})",everyDay:"Every day",everyDays:"Every {day} days",weekly:"Weekly",atDay:"At day {day}",everyMonth:"Every month",everyMonths:"Every {month} months",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",everyWeekDay:"Every weekday",mondayToFriday:"Monday to Friday",onlyWeekends:"Only weekends",everyMonday:"Every Monday",everyTuesday:"Every Tuesday",everyWednesday:"Every Wednesday",everyThursday:"Every Thursday",everyFriday:"Every Friday",everySaturday:"Every Saturday",everySunday:"Every Sunday"},Jt={title:"File Manager"},$t={notFoundFiles:"No files were found in this directory.",labelInputSearch:"Search",placeholderInputSearch:"Search in Directory",colUserAndGroup:"User:Group",colName:"Name",colSize:"Size",colType:"Type",colLastModifiedDate:"Last Modified Date",colPermission:"Permission",oneFileSelected:"1 record selected out of {total}",multiFileModelsSelected:"{quantity} records selected out of {total}",labelSelectRowsViews:"Number of Records"},Xt={btnClearTrash:"Empty Trash",titleDialogClearTrash:"Empty Trash",bodyDialogClearTrash:"Are you sure you want to remove all files from the trash?
This action is irreversible.",msgRemoveSuccess:"Trash emptied successfully.",msgRemoveError:"Could not remove files from the trash.",msgCreateTrashError:"Could not create the trash again.",btnCancel:"Cancel",btnConfirm:"Yes, empty trash"},eo={btnSave:"Save",btnUndo:"Undo",btnRedo:"Redo",btnRedoAll:"Undo All Changes",btnSaveFile:"Save File",btnDecreaseFont:"Decrease Font",btnIncreaseFont:"Increase Font"},ao={btnCompress:"Compress"},ro={btnCopy:"Copy"},to={btnDownload:"Download File",msgDownloadError:"Could not download the file {fileName}"},oo={btnDuplicateFile:"Duplicate File",msgDuplicateFileSuccess:"File {fileName} duplicated successfully.",msgDuplicateFileError:"Could not duplicate the file {fileName}."},so={btnEditCode:"Edit Code"},io={btnEditPermissions:"Edit Permissions"},no={btnExtract:"Extract File"},lo={btnGoToHome:"Go to Home Directory"},co={btnGoBackUp:"Go Back a Level"},uo={btnMoveFile:"Move File",btnMoveFiles:"Move Selected Files",btnMoveDir:"Move Directory"},mo={btnNewFile:"New File"},po={btnRenameDir:"Rename Directory",btnRenameFile:"Rename File"},go={btnNewFolder:"New Folder"},vo={btnPageReload:"Reload Page"},bo={btnShowTrash:"Show Trash"},fo={btnUploaderFile:"Upload File"},ho={btnRemoveFile:"Remove File",btnRemoveDir:"Remove Directory",titleDialogRemoveFile:"Remove File",titleDialogRemoveDir:"Remove Directory",msgConfirmRemoveSelectedOneFile:"Are you sure you want to remove the selected file?
The file will remain in the trash for 30 days.",msgConfirmRemoveSelectedMultiFileModels:"Are you sure you want to remove the {countFiles} selected files?
The files will remain in the trash for 30 days.",msgConfirmRemoveOneFile:"Are you sure you want to remove the {mimeType} {fileName}?
The file will remain in the trash for 30 days.",msgConfirmRemoveSelectedOneFileTrash:"Are you sure you want to remove the selected {mimeType}?
This action is irreversible.",msgConfirmRemoveSelectedMultiFileModelsTrash:"Are you sure you want to remove the {countFiles} selected files?
This action is irreversible.",msgConfirmRemoveOneFileTrash:"Are you sure you want to remove the {mimeType} {fileName}?
This action is irreversible.",msgRemoveSuccess:"File(s) moved to the trash successfully.",msgRemovePermanentSuccess:"File(s) permanently deleted.",msgRemoveError:"Could not remove the files.",btnCancel:"Cancel",btnConfirm:"Yes, remove"},Co={title:"Upload File",addFile:"Add File"},So={titleDialog:"New File",labelInputNameFile:"New File Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore",inputCreateIn:"Create in",btnCancel:"Cancel",btnCreateFile:"New File",msgCreateFileSuccess:"File {fileName} created successfully.",msgCreateFileError:"Could not create the file {fileName}."},yo={titleDialog:"New Folder",labelInputNameFolder:"New Folder Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore",inputCreateIn:"Create in",btnCancel:"Cancel",btnCreateFolder:"New Folder",msgCreateFolderSuccess:"Directory {dirName} created successfully.",msgCreateFolderError:"Could not create the directory {dirName}."},Do={titleDialog:"Upload File",selectDir:"Select Directory:",inputSendTo:"Send To",btnCancel:"Cancel",btnUploaderFile:"Upload File",msgUploaderFileSuccess:"File upload {fileName} successful.",msgUploaderFileError:"Error uploading file {fileName}: {reason}."},Ao={simpleTitleDialog:"Compress File",countTitleDialog:"Compress {countSelectedPaths} Selected Files",inputName:"File Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore.",extensionFile:"File Extension",selectedPaths:"Selected Files",selectDir:"Select Directory:",destinationDir:"Destination Directory",btnCancel:"Cancel",btnCompressFile:"Compress File",msgCompressedFileSuccess:"File(s) compressed successfully: {compressedFileName}.",msgCompressedFileError:"Could not compress the file {compressedFileName}."},Eo={titleDialog:"Copy File",selectDir:"Select Directory:",copyTo:"Copy To",btnCancel:"Cancel",btnCopyFile:"Copy File",msgCopiedFileSuccess:"File {fileName} copied successfully.",msgCopiedFileError:"Could not copy the file {fileName}."},Po={titleEditCode:"Edit Code",titleDialogWarningSave:"Unsaved Changes",bodyDialogWarningSave:"There are unsaved changes, do you want to discard the changes?",btnDialogWarningSave:"Discard Changes",inputAbsolutePath:"Absolute Path",msgGetContentError:"Could not display the content of the file {fileName}.",msgSaveCodeSuccess:"File {fileName} saved successfully.",msgSaveCodeError:"Could not save the file {fileName}."},No={titleDialog:"Edit Permissions",btnCancel:"Cancel",btnSave:"Save Changes",msgEditPermissionsSuccess:"Permissions changed successfully.",msgEditPermissionsError:"Could not change the permissions of the file {fileName}."},Mo={titleDialog:"Extract File",selectDir:"Select directory:",inputExtractTo:"Extract to",btnCancel:"Cancel",btnExtractFile:"Extract File",msgExtractFileSuccess:"File {filename} extracted successfully.",msgExtractFileError:"Could not extract the file {filename}."},Ro={titleOneFile:"Move File {fileName}",titleOneDir:"Move Directory {dirName}",titleMultiFileModel:"Move {count} Selected Files",selectDir:"Select Directory:",inputMoveTo:"Move To",btnMoveFile:"Move File",btnMoveFiles:"Move Files",btnMoveDir:"Move Directory",btnCancel:"Cancel",msgMoveOneFileSuccess:"File {fileName} moved successfully.",msgMoveMultiFileModelsSuccess:"The {count} files were moved successfully.",msgMoveOneFileError:"Could not move the file {fileName}.",msgMoveMultiFileModelsError:"Could not move the {count} selected files."},Fo={titleRenameFile:"Rename File",titleRenameDir:"Rename Directory",absolutePath:"Absolute Path",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore.",dirName:"Directory Name",fileName:"File Name",btnCancel:"Cancel",btnSave:"Save Change",msgRenamedFileSuccess:"File {fileName} changed successfully.",msgRenamedDirSuccess:"Directory {dirName} changed successfully.",msgRenamedFileError:"Could not change the file {fileName}.",msgRenamedDirError:"Could not change the directory {fileName}."},wo={permissions:"Permissions: ",user:"User",group:"Group",others:"Others",read:"Read",write:"Write",execute:"Execute"},To={title:"Mappings"},Io={advancedOptionsLabel:"Advanced Options",matchPatternLabel:"Match Pattern",matchPatternOptions:{beginWith:"Begin With",contains:"Contains",endsWith:"Ends With",equals:"Equals"}},Uo={title:"Create Mapping",cancelBtn:"Cancel",targetType:{url:"URL",service:"Service",responseCode:"Response Code",inlineHtml:"Inline HTML",staticFiles:"Static Files"},hostnameLabel:"Virtual Host",servicesNameLabel:"Service Name",pathLabel:"Source URL",responseCodeLabel:"Response Code",targetUrlLabel:"Destination URL",createBtn:"Create Mapping",createMappingSuccessfully:"Mapping created successfully.",createMappingError:"Error creating mapping."},ko={title:"Delete Mapping",confirmRemoveMapping:"Are you sure you want to delete mapping to {path}?",warningRemoveMapping:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, delete mapping",deleteMappingSuccess:"Mapping deleted successfully.",deleteMappingError:"Error deleting mapping."},Lo={responseCodeLabel:"Response Code",responseCodeIsRequired:"Response Code is required",responseCodeIsInvalid:"Response Code is invalid"},Bo={targetUrlLabel:"URL",targetUrlIsRequired:"URL is required",targetUrlIsInvalid:"URL is invalid"},qo={targetInlineHtmlLabel:"Inline HTML",targetInlineHtmlIsRequired:"Inline HTML is required"},xo={title:"Create Virtual Host",hostnameLabel:"Hostname",typeLabel:"Type",parentHostnameLabel:"Parent Hostname",cancelBtn:"Cancel",createBtn:"Create Virtual Host",optionTopLevel:"Top Level",optionSubdomain:"Subdomain",optionWildcard:"Wildcard",optionAlias:"Alias",createVirtualHostSuccess:"Virtual Host created successfully",createVirtualHostError:"Error creating virtual host"},Ho={title:"Delete Virtual Host",confirmRemove:"Are you sure you want to delete the {virtualHost} virtual host?",warningRemove:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, Delete Virtual Host",deleteVhostSuccess:"Virtual Host deleted successfully.",deleteVhostError:"Error deleting virtual host."},Oo={topLevelLabel:"Parent Domain",hostnameLabel:"Subdomain"},jo={noDataLabel:"No mappings found",searchInput:"Search",createMappingsBtn:"Create Mapping",createVirtualHostsBtn:"Create Virtual Host"},Vo={deleteBtn:"Delete Virtual Host"},zo={aliasWarning:"This virtual host is an alias and cannot have mappings.",createMappingBtn:"Create Mapping",matchPattern:"match pattern",deleteBtn:"Delete Mapping"},Wo={title:"SSL Certificate"},Ko={errorLoadingSsl:"Not able to load SSL certificate."},_o={title:"Add/Replace Ssl Certificate",labelShowFileTypeInputs:"OR upload files (.crt/.key - pem format)",labelCertificateInput:"Certificate",certificateContentIsRequired:"Certificate content is required.",certificateContentIsInvalid:"Certificate content is invalid.",labelPrivateKeyInput:"Private Key",privateKeyIsRequired:"Private key is required.",privateKeyIsInvalid:"Private key is invalid.",labelCertificateChainInput:"Root & Intermediaries Certificates (CA Bundle / Chain)",certificateAuthIsInvalid:"Certificate chain is invalid.",cancelBtn:"Cancel",createBtn:"Add/Replace SSL Certificate",createdSuccessfully:"SSL certificate created successfully.",errorCreatingSsl:"Not able to create SSL certificate"},Go={title:"Swap with self-signed SSL",messageReplaceSsl:"Are you sure you want to swap SSL certificate?",warningReplaceSsl:"Only use this action if you no longer want to use your current SSL certificate. The system will swap the current certificate with a self-signed SSL until it's able to issue a new valid Let's Encrypt SSL certificate.",cancelBtn:"Cancel",swapSslBtn:"Yes, Swap Ssl Certificate",deletedSuccessfully:"Ssl certificate replaced successfully.",errorDeletingSsl:"Not able to swap SSL certificate."},Zo={title:"Download PEM Files",labelCertificate:"Certificate",labelPrivateKey:"Private Key"},Yo={messageClipBoard:"Copy the content",downloadFile:"Download File",messageCopied:"The content has been copied to your clipboard.
Use CTRL + V to paste."},Qo={createSslBtn:"Add/Swap SSL Certificate",noDataLabel:"No SSL certificate found.",searchInput:"Search",virtualHostCol:"Virtual Host",issuedAtCol:"Issued At",expiresAtCol:"Expires At",isCACol:"Certificate Authority",isCAYes:"Yes",isCANo:"No"},Jo={downloadPemFilesBtn:"Download PEM Files",swapSslBtn:"Swap to self-signed SSL"},$o={labelSelectVirtualHosts:"Select Virtual Hosts"},Xo={title:"Marketplace"},es={title:"Marketplace",getCatalogWithError:"Failed to get marketplace catalog.",getInstalledAppsWithError:"Failed to get installed marketplaces.",installedApps:"Installed marketplaces",catalog:"Catalog"},as={installBtn:"Install"},rs={title:"Uninstall Marketplace",confirmRemoveApp:"Do you really want to uninstall the marketplace {appName}?",warningRemoveApp:"Warning: All marketplace data will be lost.",deleteAppSuccess:"Marketplace uninstalled successfully.",deleteAppWithError:"Failed to uninstall marketplace.",cancelBtn:"Cancel",confirmBtn:"Uninstall"},ts={title:"Install {appName}",hostnameSelect:"Select virtual host",rootDirectory:"If you want to install in a specific directory, inform below, otherwise, the installation directory will be: {rootDirectory}.",installDirectory:"Path",installParams:"Install parameters",descriptionInstallParams:"Fill in the fields below when required or when you want to change some configuration.",getVirtualHostsWithError:"Failed to get virtual host list.",installAppSuccess:"Marketplace installed successfully.",installAppWithError:"Failed to install marketplace.",cancelBtn:"Cancel",confirmBtn:"Install Marketplace"},os={inputSearch:"Search",notFound:"No data found",onlyInstalledAppsLabel:"Only installed marketplaces"},ss=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({login:yr,form:Fr,errorMessages:Tr},f),h),{runtimeRoute:Vr,settingsIndex:Wr,settingsRoute:zr}),C),S),y),D),A),E),P),N),M),R),F),w),is=ss,ns={"en-us":is,"pt-br":Cr},ls=(0,I.o)({locale:"en-us",fallbackLocale:"pt-br",legacy:!1,globalInjection:!0,messages:ns}),cs=(0,T.xr)((({app:e})=>{e.use(ls)}))},74358:(e,a,r)=>{r.d(a,{S:()=>o});var t=r(3746);const o=(0,t.Q_)("langSelect",{state:()=>({selectedLanguage:"en-us"}),getters:{getSelectedLanguage(e){return e.selectedLanguage}},actions:{setSelectedLanguage(e){this.selectedLanguage=e}}})},21809:(e,a,r)=>{r.d(a,{Z:()=>o});var t=r(84006);class o{constructor(){this.tokenName="os-access-token"}getToken(){return t.Z.get(this.tokenName)}setToken(e){const a=new Date(Date.now()+108e5),r="None",o={expires:a,path:"/",domain:window.location.hostname,secure:!0,sameSite:r};t.Z.set(this.tokenName,e,o)}removeToken(){this.removeCookie(this.tokenName)}removeCookie(e,a="/",r=window.location.hostname){const t="Thu, 01 Jan 1970 00:00:00 GMT";document.cookie=`${e}=; Expires=${t}; Path=${a}; Domain=${r}`}hasCookie(e){return t.Z.has(e)}}},20503:(e,a,r)=>{r.d(a,{Z:()=>o});var t=r(63703);class o{getDarkMode(){var e;return null===(e=t.Z.getItem("darkMode"))||void 0===e||e}setDarkMode(e){t.Z.set("darkMode",e)}getUsername(){var e;return null!==(e=t.Z.getItem("username"))&&void 0!==e?e:""}setUsername(e){t.Z.set("username",e)}getLanguage(){var e;return null!==(e=t.Z.getItem("language"))&&void 0!==e?e:"en-us"}setLanguage(e){t.Z.set("language",e)}getRefreshRate(){var e;return null!==(e=t.Z.getItem("refreshRate"))&&void 0!==e?e:20}setRefreshRate(e){t.Z.set("refreshRate",e)}hasItemLocalStorage(e){return t.Z.has(e)}clearAllLocalStorage(){t.Z.clear()}}}},a={};function r(t){var o=a[t];if(void 0!==o)return o.exports;var s=a[t]={exports:{}};return e[t].call(s.exports,s,s.exports,r),s.exports}r.m=e,(()=>{r.amdO={}})(),(()=>{var e=[];r.O=(a,t,o,s)=>{if(!t){var i=1/0;for(d=0;d=s)&&Object.keys(r.O).every((e=>r.O[e](t[l])))?t.splice(l--,1):(n=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,o,s]}})(),(()=>{r.n=e=>{var a=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(a,{a}),a}})(),(()=>{r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,t)=>(r.f[t](e,a),a)),[]))})(),(()=>{r.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{64:"9772496c",320:"ef12a7fc",381:"d2db59d9",437:"1f14c16b",506:"0eddfc52",517:"d140078e",549:"dadba440",628:"de5fb6e9",646:"ba18415e",664:"c2c9a509",693:"69543928",719:"f0e19c17",755:"05d5c8ee",870:"d1e53a36",915:"3b21944f"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+e+"."+{381:"451ac5f1",437:"c31f08a2",506:"bc12730f",517:"295044ed",549:"acbb5d0f",628:"203c03df",646:"2d094734",664:"0514e9c1",693:"e6ad8e07",719:"9eaf338a",755:"25177ab5",870:"f35f2e51",915:"dd13f0d1"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a)})(),(()=>{var e={},a="sos-dash:";r.l=(t,o,s,i)=>{if(e[t])e[t].push(o);else{var n,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d{n.onerror=n.onload=null,clearTimeout(p);var o=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach((e=>e(r))),a)return a(r)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=m.bind(null,n.onerror),n.onload=m.bind(null,n.onload),l&&document.head.appendChild(n)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p="/_/"})(),(()=>{if("undefined"!==typeof document){var e=(e,a,r,t,o)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css";var i=r=>{if(s.onerror=s.onload=null,"load"===r.type)t();else{var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.href||a,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=n,s.parentNode.removeChild(s),o(l)}};return s.onerror=s.onload=i,s.href=a,r?r.parentNode.insertBefore(s,r.nextSibling):document.head.appendChild(s),s},a=(e,a)=>{for(var r=document.getElementsByTagName("link"),t=0;tnew Promise(((o,s)=>{var i=r.miniCssF(t),n=r.p+i;if(a(i,n))return o();e(t,n,null,o,s)})),o={143:0};r.f.miniCss=(e,a)=>{var r={381:1,437:1,506:1,517:1,549:1,628:1,646:1,664:1,693:1,719:1,755:1,870:1,915:1};o[e]?a.push(o[e]):0!==o[e]&&r[e]&&a.push(o[e]=t(e).then((()=>{o[e]=0}),(a=>{throw delete o[e],a})))}}})(),(()=>{var e={143:0};r.f.j=(a,t)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)t.push(o[2]);else{var s=new Promise(((r,t)=>o=e[a]=[r,t]));t.push(o[2]=s);var i=r.p+r.u(a),n=new Error,l=t=>{if(r.o(e,a)&&(o=e[a],0!==o&&(e[a]=void 0),o)){var s=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+i+")",n.name="ChunkLoadError",n.type=s,n.request=i,o[1](n)}};r.l(i,l,"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,t)=>{var o,s,[i,n,l]=t,c=0;if(i.some((a=>0!==e[a]))){for(o in n)r.o(n,o)&&(r.m[o]=n[o]);if(l)var d=l(r)}for(a&&a(t);cr(62228)));t=r.O(t)})(); \ No newline at end of file +(()=>{"use strict";var e={62228:(e,a,r)=>{var t=r(47798),o=r.n(t),s=r(37167),i=r.n(s),n=r(1001),l=r.n(n),c=(r(11476),r(18964),r(98998),r(65716),r(59437),r(33697),r(77280),r(40702),r(51393),r(56072),r(32119),r(61957)),d=r(71947),u=r(60499),m=r(59835),p=r(19302),g=r(25121),v=r(74358),b=r(20503);const f=(0,m.aZ)({__name:"App",setup(e){const a=(0,v.S)(),{locale:r}=(0,g.QT)(),t=(0,u.iH)(0),o=(0,m.Fl)({get:()=>a.getSelectedLanguage,set:e=>a.setSelectedLanguage(e)});return(0,m.wF)((()=>{const e=new b.Z,a=(0,p.Z)();a.dark.set(e.getDarkMode()),o.value=e.getLanguage()})),(0,m.YP)(o,(e=>{r.value=e,t.value++})),(e,a)=>{const r=(0,m.up)("router-view");return(0,m.wg)(),(0,m.j4)(r,{key:t.value})}}}),h=f,C=h;var S=r(23340),y=r(3746);const D=(0,S.h)((()=>{const e=(0,y.WB)();return e}));var A=r(21809),E=r(28339);const P=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.all([r.e(736),r.e(549)]).then(r.bind(r,62549)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(64),r.e(719)]).then(r.bind(r,26719)),meta:{requiresAuth:!1,isMenuItem:!1}}]}],N=[{path:"/overview",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/overview",component:()=>Promise.all([r.e(736),r.e(64),r.e(870)]).then(r.bind(r,23346)),meta:{requiresAuth:!0,isMenuItem:!0,title:"overviewRoute.title",icon:"sym_s_speed",disabled:!1}}]}],M=[{path:"/accounts",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/accounts",component:()=>Promise.all([r.e(736),r.e(64),r.e(506)]).then(r.bind(r,73403)),meta:{requiresAuth:!0,isMenuItem:!0,title:"accountsRoute.title",icon:"sym_s_people",disabled:!1}}]}],R=[{path:"/databases",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/databases",component:()=>Promise.all([r.e(736),r.e(64),r.e(693)]).then(r.bind(r,31555)),meta:{requiresAuth:!0,isMenuItem:!0,title:"databasesRoute.title",icon:"sym_s_database",disabled:!1}}]}],F=[{path:"/runtime",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/runtime",component:()=>Promise.all([r.e(736),r.e(64),r.e(628)]).then(r.bind(r,31691)),meta:{requiresAuth:!0,isMenuItem:!0,title:"runtimeRoute.title",icon:"sym_s_code",disabled:!1}}]}],w=[{path:"/crons",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/crons",component:()=>Promise.all([r.e(736),r.e(64),r.e(915)]).then(r.bind(r,60884)),meta:{requiresAuth:!0,isMenuItem:!0,title:"cronsRoute.title",icon:"sym_s_schedule",disabled:!1}}]}],T=[{path:"/settings",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/settings",component:()=>Promise.all([r.e(736),r.e(64),r.e(517)]).then(r.bind(r,73120)),meta:{requiresAuth:!0,isMenuItem:!1,title:"settingsRoute.title",icon:"sym_s_settings",disabled:!1}}]}],I=[{path:"/file-manager",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/file-manager",component:()=>Promise.all([r.e(736),r.e(64),r.e(664)]).then(r.bind(r,59590)),meta:{requiresAuth:!0,isMenuItem:!0,title:"fileManagerRoute.title",icon:"sym_s_home_storage",disabled:!1}}]}],U=[{path:"/mappings",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/mappings",component:()=>Promise.all([r.e(736),r.e(64),r.e(755)]).then(r.bind(r,85090)),meta:{requiresAuth:!0,isMenuItem:!0,title:"mappingsRoute.title",icon:"sym_s_device_hub",disabled:!1}}]}],k=[{path:"/ssl",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/ssl",component:()=>Promise.all([r.e(736),r.e(64),r.e(646)]).then(r.bind(r,34721)),meta:{requiresAuth:!0,isMenuItem:!0,title:"sslRoute.title",icon:"sym_s_lock",disabled:!1}}]}],L=[{path:"/marketplace",component:()=>Promise.all([r.e(736),r.e(64),r.e(437)]).then(r.bind(r,67437)),children:[{path:"/marketplace",component:()=>Promise.all([r.e(736),r.e(64),r.e(381)]).then(r.bind(r,16789)),meta:{requiresAuth:!0,isMenuItem:!0,title:"marketplaceRoute.title",icon:"sym_s_store",disabled:!1}}]}],B=[...P,...N,...M,...R,...F,...w,...T,...I,...U,...k,...L,{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(320)]).then(r.bind(r,57320))}],q=B,x=(0,S.BC)((function(){const e=E.r5,a=(0,E.p7)({scrollBehavior:()=>({left:0,top:0}),routes:q,history:e("/_/")});return a.beforeEach(((e,a,r)=>{const t=new A.Z,o=["/login"],s=!o.includes(e.path),i=t.hasCookie("os-access-token");return s&&!i?r("/login"):"/login"===e.path&&i?r("/overview"):void r()})),a}));function H(e,a){return O.apply(this,arguments)}function O(){return O=l()(o()().mark((function e(a,r){var t,s,i;return o()().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a(C),t.use(d.Z,r),"function"!==typeof D){e.next=8;break}return e.next=5,D({});case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=D;case 9:if(s=e.t0,t.use(s),e.t1=u.Xl,"function"!==typeof x){e.next=18;break}return e.next=15,x({store:s});case 15:e.t2=e.sent,e.next=19;break;case 18:e.t2=x;case 19:return e.t3=e.t2,i=(0,e.t1)(e.t3),s.use((function(e){var a=e.store;a.router=i})),e.abrupt("return",{app:t,store:s,router:i});case 23:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}var j=r(99527),V=r(37879),z=r(6827),W=r(5917),K=r(26950),_=r(84006);const G={config:{loadingBar:{color:"primary"}},lang:j.Z,iconSet:V.Z,plugins:{Notify:z.Z,LoadingBar:W.Z,Loading:K.Z,Cookies:_.Z}};var Z="/_/",Y=/\/\//,Q=function(e){return(Z+e).replace(Y,"/")};function J(e,a){return $.apply(this,arguments)}function $(){return $=l()(o()().mark((function e(a,r){var t,s,i,n,l,c,d,u;return o()().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=a.app,s=a.router,i=a.store,n=!1,l=function(e){try{return Q(s.resolve(e).href)}catch(a){}return Object(e)===e?null:e},c=function(e){if(n=!0,"string"===typeof e&&/^https?:\/\//.test(e))window.location.href=e;else{var a=l(e);null!==a&&(window.location.href=a,window.location.reload())}},d=window.location.href.replace(window.location.origin,""),u=0;case 6:if(!(!1===n&&u{r.r(a),r.d(a,{default:()=>cs,i18n:()=>ls});var t={};r.r(t),r.d(t,{footerBar:()=>Q,langSelect:()=>_,profileCard:()=>Y,refreshRateSelect:()=>G,sideBarMenu:()=>Z,themeSelect:()=>K});var o={};r.r(o),r.d(o,{generatePassword:()=>J,loading:()=>ee,serviceInstallButton:()=>X,strongPasswordStrength:()=>$});var s={};r.r(s),r.d(s,{overviewRoute:()=>oe,quickLinks:()=>se});var i={};r.r(i),r.d(i,{systemInfoDiskUsage:()=>ne,systemInfoIndex:()=>ie,systemInfoResourcesChart:()=>ce,systemInfoTable:()=>le});var n={};r.r(n),r.d(n,{servicesCommandInput:()=>ue,servicesInstallDialog:()=>ge,servicesInstallDialogTabs:()=>ve,servicesNameInput:()=>me,servicesPortBindings:()=>be,servicesStatusIndex:()=>de,servicesStatusTable:()=>he,servicesStatusTableActions:()=>Ce,servicesTabCustom:()=>Se,servicesTabInstallable:()=>ye,servicesUninstallDialog:()=>fe,servicesUpdateDialog:()=>De,servicesVersionInput:()=>pe,startupFileDialog:()=>Ae});var l={};r.r(l),r.d(l,{marketplaceInstallAppDialog:()=>Ee,marketplaceInstallAppForm:()=>Pe,marketplaceInstallAppSlide:()=>Ne,marketplaceTableTdActions:()=>Re,overviewMarketplaceTable:()=>Me});var c={};r.r(c),r.d(c,{accountsCreateUserDialog:()=>Te,accountsDeleteUserDialog:()=>Ie,accountsIndex:()=>we,accountsRoute:()=>Fe,accountsTable:()=>Ue,accountsTableActions:()=>Be,accountsUpdateApiKeyDialog:()=>Le,accountsUpdatePasswordDialog:()=>ke});var d={};r.r(d),r.d(d,{databasesConnectionInfo:()=>He,databasesDialogCreate:()=>Oe,databasesDialogCreateUser:()=>je,databasesDialogRemove:()=>Ve,databasesDialogRemoveUser:()=>ze,databasesDialogUpdateUser:()=>We,databasesIndex:()=>xe,databasesRemoveDatabase:()=>Ke,databasesRoute:()=>qe,databasesTable:()=>_e,databasesUsersActions:()=>Ge});var u={};r.r(u),r.d(u,{phpCreateMapping:()=>Ye,phpDialogPhpVersion:()=>$e,phpExtensionsToggle:()=>ra,phpIndex:()=>Ze,phpOptionsSelect:()=>aa,phpOptionsToggle:()=>Xe,phpSubdirectoryInput:()=>ea,phpVersionSelect:()=>Je,phpVhostSelect:()=>Qe});var m={};r.r(m),r.d(m,{cronIndex:()=>oa,cronOptionsSelects:()=>ca,cronsDialogForm:()=>na,cronsDialogRemove:()=>la,cronsRoute:()=>ta,cronsTable:()=>sa,cronsTableActions:()=>ia});var p={};r.r(p),r.d(p,{fileManagerCodeEditor:()=>pa,fileManagerDialogCompress:()=>La,fileManagerDialogCopy:()=>Ba,fileManagerDialogEditCode:()=>qa,fileManagerDialogEditPermissions:()=>xa,fileManagerDialogExtract:()=>Ha,fileManagerDialogMove:()=>Oa,fileManagerDialogRenameFile:()=>ja,fileManagerEditPermission:()=>Va,fileManagerInputUploaderFile:()=>Ta,fileManagerRoute:()=>da,fileManagerTable:()=>ua,fileManagerToolbarBtnClearTrash:()=>ma,fileManagerToolbarBtnCompress:()=>ga,fileManagerToolbarBtnCopy:()=>va,fileManagerToolbarBtnDownload:()=>ba,fileManagerToolbarBtnDuplicateFile:()=>fa,fileManagerToolbarBtnEditCode:()=>ha,fileManagerToolbarBtnEditPermissions:()=>Ca,fileManagerToolbarBtnExtract:()=>Sa,fileManagerToolbarBtnGoBackUp:()=>Da,fileManagerToolbarBtnHome:()=>ya,fileManagerToolbarBtnMove:()=>Aa,fileManagerToolbarBtnNewFile:()=>Ea,fileManagerToolbarBtnNewFolder:()=>Na,fileManagerToolbarBtnPageReload:()=>Ma,fileManagerToolbarBtnRemove:()=>wa,fileManagerToolbarBtnRenameFile:()=>Pa,fileManagerToolbarBtnShowTrash:()=>Ra,fileManagerToolbarBtnUploaderFile:()=>Fa,fileManagerToolbarDialogNewFile:()=>Ia,fileManagerToolbarDialogNewFolder:()=>Ua,fileManagerToolbarDialogUploaderFile:()=>ka});var g={};r.r(g),r.d(g,{mappingsAdvancedOptions:()=>Wa,mappingsCreateDialog:()=>Ka,mappingsDeleteDialog:()=>_a,mappingsInlineHtmlInput:()=>Ya,mappingsResponseCodeInput:()=>Ga,mappingsRoute:()=>za,mappingsUrlInput:()=>Za,virtualHostsCreateDialog:()=>Qa,virtualHostsDeleteDialog:()=>Ja,virtualHostsSubdomainForm:()=>$a,virtualHostsTable:()=>Xa,virtualHostsTableActions:()=>er,virtualHostsTableMappingsTd:()=>ar});var v={};r.r(v),r.d(v,{sslChangeDialog:()=>sr,sslCreateDialog:()=>or,sslDownloadFilesDialog:()=>ir,sslFilePemClipBoard:()=>nr,sslIndex:()=>tr,sslRoute:()=>rr,sslTable:()=>lr,sslTableActions:()=>cr,sslVirtualHostsSelect:()=>dr});var b={};r.r(b),r.d(b,{marketplaceAppCard:()=>pr,marketplaceDeleteAppDialog:()=>gr,marketplaceIndex:()=>mr,marketplaceInstallAppDialog:()=>vr,marketplaceInstalledAppCard:()=>br,marketplaceRoute:()=>ur,marketplaceTable:()=>fr});var f={};r.r(f),r.d(f,{footerBar:()=>qr,langSelect:()=>Ur,profileCard:()=>Br,refreshRateSelect:()=>kr,sideBarMenu:()=>Lr,themeSelect:()=>Ir});var h={};r.r(h),r.d(h,{generatePassword:()=>xr,loading:()=>jr,serviceInstallButton:()=>Or,strongPasswordStrength:()=>Hr});var C={};r.r(C),r.d(C,{overviewRoute:()=>Kr,quickLinks:()=>_r});var S={};r.r(S),r.d(S,{systemInfoDiskUsage:()=>Zr,systemInfoIndex:()=>Gr,systemInfoResourcesChart:()=>Qr,systemInfoTable:()=>Yr});var y={};r.r(y),r.d(y,{servicesCommandInput:()=>$r,servicesInstallDialog:()=>Xr,servicesInstallDialogTabs:()=>et,servicesNameInput:()=>at,servicesPortBindings:()=>tt,servicesStatusIndex:()=>Jr,servicesStatusTable:()=>st,servicesStatusTableActions:()=>it,servicesTabCustom:()=>nt,servicesTabInstallable:()=>lt,servicesUninstallDialog:()=>ot,servicesUpdateDialog:()=>ct,servicesVersionInput:()=>rt,startupFileDialog:()=>dt});var D={};r.r(D),r.d(D,{marketplaceInstallAppDialog:()=>ut,marketplaceInstallAppForm:()=>mt,marketplaceInstallAppSlide:()=>pt,marketplaceTableTdActions:()=>vt,overviewMarketplaceTable:()=>gt});var A={};r.r(A),r.d(A,{accountsCreateUserDialog:()=>ht,accountsDeleteUserDialog:()=>Ct,accountsIndex:()=>ft,accountsRoute:()=>bt,accountsTable:()=>St,accountsTableActions:()=>At,accountsUpdateApiKeyDialog:()=>Dt,accountsUpdatePasswordDialog:()=>yt});var E={};r.r(E),r.d(E,{databasesConnectionInfo:()=>Nt,databasesDialogCreate:()=>Mt,databasesDialogCreateUser:()=>Rt,databasesDialogRemove:()=>Ft,databasesDialogRemoveUser:()=>wt,databasesDialogUpdateUser:()=>Tt,databasesIndex:()=>Pt,databasesRemoveDatabase:()=>It,databasesRoute:()=>Et,databasesTable:()=>Ut,databasesUsersActions:()=>kt});var P={};r.r(P),r.d(P,{phpCreateMapping:()=>Bt,phpDialogPhpVersion:()=>Ht,phpExtensionsToggle:()=>zt,phpIndex:()=>Lt,phpOptionsSelect:()=>Vt,phpOptionsToggle:()=>Ot,phpSubdirectoryInput:()=>jt,phpVersionSelect:()=>xt,phpVhostSelect:()=>qt});var N={};r.r(N),r.d(N,{cronIndex:()=>Kt,cronOptionsSelects:()=>Qt,cronsDialogForm:()=>Zt,cronsDialogRemove:()=>Yt,cronsRoute:()=>Wt,cronsTable:()=>_t,cronsTableActions:()=>Gt});var M={};r.r(M),r.d(M,{fileManagerCodeEditor:()=>eo,fileManagerDialogCompress:()=>Ao,fileManagerDialogCopy:()=>Eo,fileManagerDialogEditCode:()=>Po,fileManagerDialogEditPermissions:()=>No,fileManagerDialogExtract:()=>Mo,fileManagerDialogMove:()=>Ro,fileManagerDialogRenameFile:()=>Fo,fileManagerEditPermission:()=>wo,fileManagerInputUploaderFile:()=>Co,fileManagerRoute:()=>Jt,fileManagerTable:()=>$t,fileManagerToolbarBtnClearTrash:()=>Xt,fileManagerToolbarBtnCompress:()=>ao,fileManagerToolbarBtnCopy:()=>ro,fileManagerToolbarBtnDownload:()=>to,fileManagerToolbarBtnDuplicateFile:()=>oo,fileManagerToolbarBtnEditCode:()=>so,fileManagerToolbarBtnEditPermissions:()=>io,fileManagerToolbarBtnExtract:()=>no,fileManagerToolbarBtnGoBackUp:()=>co,fileManagerToolbarBtnHome:()=>lo,fileManagerToolbarBtnMove:()=>uo,fileManagerToolbarBtnNewFile:()=>mo,fileManagerToolbarBtnNewFolder:()=>go,fileManagerToolbarBtnPageReload:()=>vo,fileManagerToolbarBtnRemove:()=>ho,fileManagerToolbarBtnRenameFile:()=>po,fileManagerToolbarBtnShowTrash:()=>bo,fileManagerToolbarBtnUploaderFile:()=>fo,fileManagerToolbarDialogNewFile:()=>So,fileManagerToolbarDialogNewFolder:()=>yo,fileManagerToolbarDialogUploaderFile:()=>Do});var R={};r.r(R),r.d(R,{mappingsAdvancedOptions:()=>Io,mappingsCreateDialog:()=>Uo,mappingsDeleteDialog:()=>ko,mappingsInlineHtmlInput:()=>qo,mappingsResponseCodeInput:()=>Lo,mappingsRoute:()=>To,mappingsUrlInput:()=>Bo,virtualHostsCreateDialog:()=>xo,virtualHostsDeleteDialog:()=>Ho,virtualHostsSubdomainForm:()=>Oo,virtualHostsTable:()=>jo,virtualHostsTableActions:()=>Vo,virtualHostsTableMappingsTd:()=>zo});var F={};r.r(F),r.d(F,{sslChangeDialog:()=>Go,sslCreateDialog:()=>_o,sslDownloadFilesDialog:()=>Zo,sslFilePemClipBoard:()=>Yo,sslIndex:()=>Ko,sslRoute:()=>Wo,sslTable:()=>Qo,sslTableActions:()=>Jo,sslVirtualHostsSelect:()=>$o});var w={};r.r(w),r.d(w,{marketplaceAppCard:()=>as,marketplaceDeleteAppDialog:()=>rs,marketplaceIndex:()=>es,marketplaceInstallAppDialog:()=>ts,marketplaceRoute:()=>Xo,marketplaceTable:()=>os});var T=r(23340),I=r(25121);const U={messageLoginSuccess:"Login realizado com sucesso!",messageLoginError:"Erro ao realizar login!"},k=U,L={inputMail:"Endereço de E-mail",invalidMail:"Formato de e-mail inválido."},B=L,q={inputPassword:"Senha",invalidPassword:"Senha deve ter no mínimo {minLength} caracteres."},x=q,H={label:"FQDN",fqdnRequired:"Campo {label} é obrigatório",fqdnMaxLengthError:"{label} deve ter menos de 255 caracteres",fqdnRegexError:"{label} deve ser um nome de domínio válido"},O=H,j={mailAddressInput:B,passwordInput:x,fqdnInput:O},V=j,z={authTokenInvalided:"Sua sessão expirou, por favor, faça login novamente.",invalidCredentials:"Credenciais inválidas.",networkError:"Servidor indisponível.",timeoutError:"Tempo de requisição expirado."},W=z,K={light:"Claro",dark:"Escuro"},_={label:"Idioma",en:"Inglês",pt:"Português"},G={selectRefreshRate:"Refresh Rate"},Z={apps:"Aplicações",fileManager:"Gerenciador de Arquivos",domains:"Domínios",backups:"Backups",webServers:"Servidores Web",metrics:"Métricas",logs:"Logs",imageOptimizer:"Otimizador de Imagens",security:"Segurança",terminal:"Terminal",disabled:"Recurso em desenvolvimento"},Y={btnSettings:"Configurações",btnLogout:"Sair"},Q={cpuUsage:"{cpuUsage}% de CPU em uso",ramUsage:"{ramUsage}% de RAM em uso",storageUsage:"{storageUsage}% de disco em uso",disabled:"Recurso em desenvolvimento"},J={btnGeneratePassword:"gerar uma senha aleatória",messageCopiedPassword:"A senha gerada foi copiada para sua área de transferência.
Use CTRL + V para colar em seu gerenciador de senhas."},$={securePassword:"Senha segura",isTooShort:"No mínimo {minPasswordLength} caracteres;",isTooLong:"No máximo {maxPasswordLength} caracteres;",hasNumber:"Ao menos 1 número;",hasUpperCases:"Ao menos 1 letra maiúscula;",hasLowerCases:"Ao menos 1 letra minúscula.",hasReservedCharSuccess:"Sem caracteres especiais reservados.",hasReservedCharError:"Uso de caracteres especiais reservados: "},X={uninstalledService:"O serviço {serviceName} não está instalado no servidor.",installService:"Instalar o serviço {serviceName}"},ee={messageDefault:"Carregando..."},ae={title:"Runtime"},re={title:"Configurações"},te={title:"Configurações",titleConfigs:"Alterar Configurações",titleProfile:"Alterar Senha",titleApiKey:"Alterar Chave de API",updatePasswordBtn:"Atualizar Senha",generatedApiKey:"Chave de API Gerada",generateNewApiKeyBtn:"Gerar Nova Chave de API",closeBtn:"Fechar",copiedToClipboard:"Copiado para a área de transferência.",saveNewApiKey:"Nova chave de API gerada. Salve-a em um local seguro porque a chave não é armazenada no servidor.",errorGettingAccounts:"Erro ao obter contas.",updatedPasswordSuccessfully:"Senha atualizada com sucesso.",errorUpdatingPassword:"Erro ao atualizar a senha.",updatedApiKeySuccessfully:"Nova chave de API gerada, salve-a em um local seguro",errorUpdatingApiKey:"Erro ao atualizar a chave de API."},oe={title:"Visão Geral"},se={titleQuickLinks:"Atalhos",linkApps:"Apps",linkDatabases:"Bancos de Dados",linkFiles:"Arquivos",linkBackups:"Backups",linkDomains:"Domínios",linkMetrics:"Métricas",linkLogs:"Logs",linkTerminal:"Terminal"},ie={titleSystemInfo:"Informações do Sistema"},ne={diskUsage:"Uso de Disco"},le={titleSystemInfo:"Informações do Sistema",colHostname:"Nome do Host",colRuntimeContext:"Contexto de Execução",colUptime:"Tempo de Atividade",colHardware:"Especificações de Hardware",colPublicIp:"Endereço IP Público"},ce={titleResourcesChart:"Uso de Recursos",cpu:"Processador",ram:"Memória RAM"},de={titleServicesStatus:"Serviços"},ue={serviceCommandPlaceholder:"exemplo: /usr/bin/binary",requiredError:"Comando é obrigatório.",maxLengthError:"Comando deve ter menos de 255 caracteres.",commandRegexError:"Comando deve ser um commando válido.",helpCommand:'

Se precisar instalar vários pacotes para executar seu software, você deverá usar o Terminal (SSH).

'},me={serviceNameLabel:"Nome do Serviço",requiredError:"Nome do Serviço é obrigatório.",maxLengthError:"Nome do Serviço deve ter menos de 255 caracteres.",serviceNameRegexError:"Nome do Serviço deve ser um nome de serviço válido."},pe={versionLabel:"Versão",requiredError:"Versão é obrigatória",maxLengthError:"Versão deve ter menos de 255 caracteres.",versionRegexError:"Versão deve ser uma versão válida."},ge={titleInstallService:"Instalar Serviço"},ve={installableForm:"Instalável",customForm:"Personalizado"},be={titlePortBindings:"Portas",hostPortInputLabel:"Porta",PortError:"A porta deve ser um número entre 1 e 65535.",protocolInputLabel:"Protocolo"},fe={uninstallDialogTitle:"Desinstalar Serviço",uninstallDialogDescription:"Deseja realmente desinstalar o serviço {serviceName}?",warningUninstallService:"Atenção! Ao desinstalar o serviço, todos os dados serão perdidos.",uninstallDialogCancelBtn:"Cancelar",uninstallDialogConfirmBtn:"Sim, Desinstalar Serviço"},he={notFound:"Nenhum serviço encontrado.",colServiceName:"Nome do Serviço",colPids:"PIDs",colUptime:"Tempo de Atividade",colCpuUsage:"Uso de CPU",colRamUsage:"Uso de RAM",inputSearch:"Pesquisar",createServiceBtn:"Instalar Novo Serviço"},Ce={restartBtn:"Reiniciar Serviço",uninstallBtn:"Remover Serviço",updateBtn:"Editar Serviço",installBtn:"Instalar Serviço",startSuccess:"Serviço iniciado com sucesso.",stopLoading:"Parando serviço, aguarde a finalização...",stopSuccess:"Serviço parado com sucesso.",startError:"Erro ao iniciar o serviço.",startLoading:"Iniciando serviço, aguarde a finalização...",stopError:"Erro ao parar o serviço.",restartLoading:"Reiniciando serviço, aguarde a finalização...",restartSuccess:"Serviço reiniciado com sucesso.",restartError:"Erro ao reiniciar o serviço.",installLoading:'

Atualizando Status do Serviço

Por favor, aguarde...

Esse processo pode demorar um pouco. NÃO atualize ou feche a página.

',installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço.",uninstallLoading:"Desinstalando serviço, aguarde a finalização...",uninstallSuccess:"Serviço desinstalado com sucesso.",uninstallError:"Erro ao desinstalar o serviço.",systemServiceWarning:"Serviços do tipo sistema não podem ser removidos ou alterados, apenas reiniciados."},Se={serviceNameLabel:"Nome do Serviço",versionLabel:"Versão",commandLabel:"Comando",startupFileLabel:"Arquivo de Inicialização",typeSelect:"Tipo de Serviço",application:"Aplicação",runtime:"Tempo de Execução",database:"Banco de Dados",webserver:"Servidor Web",mom:"Mensageria",monitoring:"Monitoramento",logging:"Registro",security:"Segurança",backup:"Backup",system:"Sistema",other:"Outro",advancedSettingsLabel:"Configurações Avançadas",cancelButton:"Cancelar",installButton:"Instalar Serviço",installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço.",labelExecut:"Modo de Execução",labelRadioCommand:"Comando",labelRadioFile:"ou faça upload de um arquivo executável",labelUploadFile:"Selecione o arquivo (.appImage, .jar etc)",labelCommand:"Comando",uploadError:"Erro ao fazer upload do arquivo."},ye={serviceLabel:"Serviço",versionLabel:"Versão",titleStartupFile:"Selecione o Arquivo de Inicialização",selectStartupFile:"Selecione o Arquivo",startupFileLabel:"Arquivo de Inicialização",helpText:"Este arquivo será executado sempre que o serviço for iniciado.",advancedSettingsLabel:"Configurações Avançadas",cancelButton:"Cancelar",installButton:"Instalar Serviço",installSuccess:"Serviço instalado com sucesso.",installError:"Erro ao instalar o serviço."},De={titleUpdateService:"Atualizar Serviço",cancelButton:"Cancelar",advancedSettingsLabel:"Advanced Settings",updateButton:"Atualizar Serviço",updateSuccess:"Serviço atualizado com sucesso.",updateError:"Erro ao atualizar o serviço."},Ae={title:"Selecione o Arquivo de Inicialização",cancelBtn:"Cancelar"},Ee={title:"Marketplace",getCatalogWithError:"Falha ao obter catálogo de aplicativos."},Pe={installParams:"Parâmetros de instalação",descriptionInstallParams:"Preencha os campos abaixo quando obrigatórios ou quando quiser alterar alguma configuração.",marketplaceType:{apps:"Apps",stacks:"Stacks",frameworks:"Frameworks"},cancelBtn:"Cancelar",confirmBtn:"Instalar Marketplace",installAppSuccess:"Marketplace {appName} Instalado com sucesso",installAppWithError:"Falha ao instalar marketplace {appName}."},Ne={notFoundApps:"{type}s não encontrados."},Me={noDataLabel:"Nenhum aplicativo disponível.",searchInput:"Pesquisar",installBtn:"Instalar",appNameColumn:"Nome",installDirectoryColumn:"Diretório de Instalação",createdAtColumn:"Criado Em"},Re={uninstallBtn:"Desinstalar"},Fe={title:"Contas"},we={errorLoadingAccounts:"Não foi possível carregar contas de usuários."},Te={title:"Criar Conta",username:"Nome de usuário",usernameRequired:"Nome de usuário é obrigatório.",usernameMinLength:"Nome de usuário deve ter no mínimo 3 caracteres.",cancelBtn:"Cancelar",createBtn:"Criar Conta",createdSuccessfully:"Conta criada com sucesso.",errorCreatingAccount:"Não foi possível criar a conta."},Ie={title:"Remover Usuário {username}",messageDeleteAccount:"Tem certeza que deseja remover o usuário {username}?",warningDeleteAccount:"Atenção! Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, Remover Usuário",deletedSuccessfully:"Usuário {username} removido com sucesso.",errorDeletingAccount:"Não foi possível remover o usuário {username}."},Ue={createAccountBtn:"Criar Conta",noDataLabel:"Nenhuma conta de usuário encontrada.",searchInput:"Pesquisar"},ke={title:"Alterar Senha do Usuário {username}",cancelBtn:"Cancelar",closeDialogBtn:"Cancelar",updateBtn:"Alterar Senha",updatedSuccessfully:"Senha alterada com sucesso.",errorUpdatingAccount:"Não foi possível alterar a senha."},Le={title:"Alterar Chave de API do Usuário {username}",generatedApiKey:"Nova chave de API gerada.",updatedSuccessfullyWithApiKey:"Nova chave de API gerada, salve-a em um local seguro.",saveNewApiKey:"Nova chave de API gerada. Por favor, salve-a em um local seguro porque a chave não é armazenada no servidor.",copiedToClipboard:"Copiado para a área de transferência.",closeDialogBtn:"Cancelar",generateNewApiKeyBtn:"Gerar Nova Chave de API",updatedSuccessfully:"Nova chave de API gerada com sucesso.",errorUpdatingApiKey:"Não foi possível gerar nova chave de API."},Be={editPasswordBtn:"Alterar Senha",editApiKeyBtn:"Alterar Chave de API",deleteBtn:"Remover Conta"},qe={title:"Bancos de Dados"},xe={errorLoadingPostgresqlDatabases:"Erro ao carregar a lista de bases de dados Postgresql.",errorLoadingMysqlDatabases:"Erro ao carregar a lista de bases de dados Mysql."},He={tdIpAddress:"Endereço IP do Servidor",tdPort:"Porta do Servidor",localhost:"localhost",dataLocal:"Conexão Local"},Oe={titleDialogCreate:"Criar Base de Dados",inputDataBaseName:"Nome da base de dados",inputUserName:"Nome do usuário",messageValidateError:"Somente letras, números e underline são permitidos.",btnCancel:"Cancelar",btnCreateDataBase:"Criar Base de Dados",createDataBaseSuccess:"Base de dados criado com sucesso.",createDataBaseError:"Erro ao criar base de dados."},je={titleDialogCreateUser:"Criar Usuário de Banco de Dados",textSelectDatabases:"Selecione as bases de dados",inputUsername:"Nome do usuário",messageInputError:"Somente letras, números e underline são permitidos.",textPrivileges:"Privilégios",textPrivilegesSelect:"Selecione os privilégios",toggleSelectAll:"Selecionar todos",btnCancel:"Cancelar",btnCreateUser:"Criar Usuário",messageCreateUserSuccess:"Usuário criado com sucesso.",messageCreateUserError:"Erro ao criar usuário."},Ve={titleDialogRemove:"Remover Base de Dados",messageConfirmRemove:"Tem certeza que deseja remover a base de dados {databaseName}?",warningRemoveDatabase:"Atenção! Esta ação não pode ser desfeita",btnCancel:"Cancelar",btnRemove:"Remover Base de Dados",messageRemoveSuccess:"Base de dados removida com sucesso.",messageRemoveError:"Erro ao remover base de dados."},ze={titleDialogRemoveUser:"Remover Usuário de Banco de Dados",messageConfirmRemove:"Tem certeza que deseja remover o usuário {username}?",warningRemoveUser:"Atenção! Esta ação não pode ser desfeita.",btnCancel:"Cancelar",btnRemove:"Remover Usuário",subtitleDialogRemoveUser:"{databaseType} - {databaseName}",messageRemoveUserSuccess:"Usuário removido com sucesso.",messageRemoveUserError:"Erro ao remover usuário."},We={titleDialogUpdateUser:"Atualizar Usuário de Banco de Dados: {user}",subtitleDialogUpdateUser:"Base de dados: {databaseType}",textAlertMessage:"Atenção! Esta ação não pode ser desfeita.",inputName:"Nome do usuário",textPrivileges:"Privilégios",toggleSelectAll:"Selecionar todos",textPostgresPrivileges:'Todos usuários ProstgreSQL serão criados com "ALL PRIVILEGES" nas bases de dados e na schema public',btnCancel:"Cancelar",btnUpdateUser:"Atualizar Usuário",messageUpdateUserSuccess:"Usuário atualizado com sucesso.",messageUpdateUserError:"Erro ao atualizar usuário."},Ke={tooltipRemove:"Remover Base de Dados"},_e={notFoundDatabases:"Nenhuma base de dados encontrada.",search:"Pesquisar",btnCreateUser:"Criar Usuário",btnCreateDatabase:"Criar Base de Dados",databaseName:"Nome da Base de Dados",databaseUsers:"Usuários",databaseSize:"Tamanho"},Ge={tooltipEditUser:"Editar Usuário",tooltipRemoveUser:"Remover Usuário"},Ze={textWarningChanges:'Suas alterações ainda não foram aplicadas. Clique em "Atualizar Configurações" para propagar as mudanças desejadas.',btnUpdateConfigurations:"Atualizar Configurações",tabExtensions:"Extensões",tabOptions:"Opções",getVirtualHostsError:"Não foi possível listar os hosts virtuais do servidor.",getMappingsError:"Não foi possível listar os mapeamentos dos hosts virtuais do servidor.",checkPhpServiceError:"Não foi possível verificar o status do serviço PHP.",getPhpConfigurationsError:"Não foi possível exibir as configurações do PHP.",updatePhpConfigurationsSuccess:"Configurações do PHP.ini atualizadas com sucesso.",updatePhpConfigurationsError:"Não foi possível atualizar as configurações do PHP.ini."},Ye={title:"O Host Virtual Selecionado Ainda Não Está Mapeado para o PHP",mappingExplanation:"O mapeamento de um virtual host para um servidor PHP permite que diferentes partes de um site sejam tratadas por servidores PHP diferentes, permitindo funcionalidades específicas para cada seção do site.",createBtn:"Criar Mapeamento",createMappingSuccessfully:"Mapeamento criado com sucesso",createMappingError:"Não foi possível criar o mapeamento"},Qe={selectVirtualHost:"Host Virtual"},Je={selectPhpVersion:"Versão do PHP"},$e={title:"Você tem certeza de que deseja alterar a versão do PHP?",body:"

Antes de alterar, confira se sua aplicação é compatível com a versão PHP {newVersion}.

Lembre-se de em seguida habilitar/desabilitar os módulos desejados e ajustar as configurações na nova versão, uma vez que os módulos/configurações da versão anterior podem ser diferentes.

",btnCancel:"Cancelar",btnConfirm:"Alterar Versão",updatePhpVersionSuccess:"Versão do PHP alterada com sucesso.",updatePhpVersionError:"Não foi possível alterar a versão do PHP."},Xe={enablePhpSettingError:"Não foi possível ativar a opção {settingName}.",disablePhpSettingError:"Não foi possível desativar a opção {settingName}.",enablePhpSettingSuccess:"Opção {settingName} ativada com sucesso.",disablePhpSettingSuccess:"Opção {settingName} desativada com sucesso."},ea={urlLabel:"Subdiretório",urlIsInvalid:"URL inválida",urlExplanation:"Subdiretórios são usados para acessar diferentes aplicações em um mesmo domínio. Por exemplo, se você tem um site em {hostname} e deseja criar um blog, você pode criar um subdiretório chamado blog e acessá-lo em {hostname}/blog."},aa={enablePhpSettingError:"Não foi possível ativar a opção {settingName}.",enablePhpSettingSuccess:"Opção {settingName} ativada com sucesso."},ra={enablePhpModuleError:"Não foi possível ativar o módulo {moduleName}.",disablePhpModuleError:"Não foi possível desativar o módulo {moduleName}.",enablePhpModuleSuccess:"Módulo {moduleName} ativado com sucesso.",disablePhpModuleSuccess:"Módulo {moduleName} desativado com sucesso."},ta={title:"Agendador de Tarefas"},oa={getCronjobsError:"Não foi possível buscar as informações sobre tarefas agendadas."},sa={notFoundCronjobs:"Não foi possível encontrar tarefas agendadas.",btnNewTask:"Agendar Nova Tarefa",inputSearch:"Pesquisar",columnSchedule:"Agendamento",columnCommand:"Comando",columnComment:"Comentário",predefinedHourly:"A cada hora",predefinedDaily:"Diariamente",predefinedWeekly:"Semanalmente",predefinedMonthly:"Mensalmente",predefinedYearly:"Anualmente",predefinedAnnually:"Anualmente",predefinedReboot:"Ao reiniciar"},ia={btnEditCronjob:"Editar Tarefa",btnRemoveCronjob:"Remover Tarefa"},na={editCronjob:"Editar Tarefa",newCronjob:"Nova Tarefa",updateCronjob:"Atualizar Tarefa",createCronjob:"Criar Tarefa",btnCancel:"Cancelar",updateCronjobSuccess:"Tarefa atualizada com sucesso.",updateCronjobError:"Não foi possível atualizar a tarefa.",createCronjobSuccess:"Tarefa criada com sucesso.",createCronjobError:"Não foi possível criar a tarefa.",predefinedForm:"Predefinido",customForm:"Customizado",selectExecuteTask:"Executar Tarefa",predefinedHourly:"A cada hora",predefined3Hours:"A cada 3 horas",predefined6Hours:"A cada 6 horas",predefined12Hours:"A cada 12 horas",predefinedDaily:"Diariamente",predefinedWeekly:"Semanalmente",predefinedMonthly:"Mensalmente",predefinedYearly:"Anualmente",predefinedAnnually:"Anualmente",predefinedReboot:"Reboot",fieldMinutes:"Minuto(s)",fieldDays:"Dia(s)",fieldHours:"Hora(s)",fieldMonths:"Meses",fieldWeekDay:"Dia da Semana",fieldCommand:"Comando",fieldComment:"Comentário",messageFieldRequired:"Campo obrigatório.",messageInputError:"Você não formatou as configurações corretamente."},la={titleDialogRemove:"Remover a Tarefa",confirmRemoveCron:"Você tem certeza que deseja remover essa tarefa?",warningRemoveCron:"Essa ação é irreversível.",btnCancel:"Cancelar",btnConfirm:"Sim, Remova a Tarefa",removeCronSuccess:"Tarefa removida com sucesso.",removeCronError:"Não foi possível remover a tarefa."},ca={everyMinute:"A cada minuto",everyMinutes:"A cada {minute} minutos",atMinute:"No minuto {minute}",everyHour:"A cada hora",everyHours:"A cada {hour} horas",atMidnight:"A meia-noite",atMidday:"Ao meio-dia",atHour:"As {standard24hours}h ({standard12hours})",everyDay:"Todos os dias",everyDays:"A cada {day} dias",weekly:"Uma vez por semana",atDay:"No dia {day}",everyMonth:"Todos os meses",everyMonths:"A cada {month} meses",january:"Janeiro",february:"Fevereiro",march:"Março",april:"Abril",may:"Maio",june:"Junho",july:"Julho",august:"Agosto",september:"Setembro",october:"Outubro",november:"Novembro",december:"Dezembro",everyWeekDay:"Todos os dias da semana",mondayToFriday:"De segunda a sexta",onlyWeekends:"Apenas finais de semana",everyMonday:"Todas as segundas-feiras",everyTuesday:"Todas as terças-feiras",everyWednesday:"Todas as quartas-feiras",everyThursday:"Todas as quintas-feiras",everyFriday:"Todas as sextas-feiras",everySaturday:"Todos os sábados",everySunday:"Todos os domingos"},da={title:"Gerenciador de Arquivos"},ua={notFoundFiles:"Não foi possível encontrar nenhum arquivo neste diretório.",labelInputSearch:"Pesquisar",placeholderInputSearch:"Pesquisar no Diretório",colUserAndGroup:"Usuário:Grupo",colName:"Nome",colSize:"Tamanho",colType:"Tipo",colLastModifiedDate:"Última Atualização",colPermission:"Permissão",oneFileSelected:"1 registro selecionado de {total}",multiFileModelsSelected:"{quantity} registros selecionados de {total}",labelSelectRowsViews:"Quantidade de Registros"},ma={btnClearTrash:"Esvaziar Lixeira",titleDialogClearTrash:"Esvaziar Lixeira",bodyDialogClearTrash:"Você tem certeza que deseja remover todos arquivos na lixeira?
Essa ação é irreversível.",msgRemoveSuccess:"Lixeira esvaziada com sucesso.",msgRemoveError:"Não foi possível remover os arquivos na lixeira.",msgCreateTrashError:"Não foi possível criar a lixeira novamente.",btnCancel:"Cancelar",btnConfirm:"Sim, esvazie a lixeira"},pa={btnSave:"Salvar",btnUndo:"Desfazer",btnRedo:"Refazer",btnRedoAll:"Desfazer Todas Alterações",btnSaveFile:"Salvar Arquivo",btnDecreaseFont:"Diminuir Fonte",btnIncreaseFont:"Aumentar Fonte"},ga={btnCompress:"Compactar"},va={btnCopy:"Copiar"},ba={btnDownload:"Download do Arquivo",msgDownloadError:"Não foi possível fazer download do arquivo {fileName}"},fa={btnDuplicateFile:"Duplicar Arquivo",msgDuplicateFileSuccess:"Arquivo {fileName} foi duplicado com sucesso.",msgDuplicateFileError:"Não foi possível duplicar o arquivo {fileName}."},ha={btnEditCode:"Editar Código"},Ca={btnEditPermissions:"Editar Permissões"},Sa={btnExtract:"Extrair Arquivo"},ya={btnGoToHome:"Ir para diretório raiz"},Da={btnGoBackUp:"Voltar um Nível"},Aa={btnMoveFile:"Mover Arquivo",btnMoveFiles:"Mover Arquivos Selecionados",btnMoveDir:"Mover Diretório"},Ea={btnNewFile:"Novo Arquivo"},Pa={btnRenameDir:"Renomear Diretório",btnRenameFile:"Renomear Arquivo"},Na={btnNewFolder:"Nova Pasta"},Ma={btnPageReload:"Recarregar Página"},Ra={btnShowTrash:"Exibir Lixeira"},Fa={btnUploaderFile:"Upload de Arquivo"},wa={btnRemoveFile:"Remover o Arquivo",btnRemoveDir:"Remover Diretório",titleDialogRemoveFile:"Remover Arquivo",titleDialogRemoveDir:"Remover Diretório",msgConfirmRemoveSelectedOneFile:"Você tem certeza que deseja remover o arquivo selecionado?
O arquivo permanecerá na lixeira por 30 dias.",msgConfirmRemoveSelectedMultiFileModels:"Você tem certeza que deseja remover os {countFiles} arquivos selecionados?
Os arquivos permanecerão na lixeira por 30 dias.",msgConfirmRemoveOneFile:"Você tem certeza que deseja remover o {mimeType} {fileName}?
O arquivo permanecerá na lixeira por 30 dias.",msgConfirmRemoveSelectedOneFileTrash:"Você tem certeza que deseja remover o {mimeType} selecionado?
Essa ação é irreversível.",msgConfirmRemoveSelectedMultiFileModelsTrash:"Você tem certeza que deseja remover os {countFiles} arquivos selecionados?
Essa ação é irreversível.",msgConfirmRemoveOneFileTrash:"Você tem certeza que deseja remover o {mimeType} {fileName}?
Essa ação é irreversível.",msgRemoveSuccess:"Arquivo(s) movido(s) para a lixeira com sucesso.",msgRemovePermanentSuccess:"Arquivo(s) permanentemente apagado(s).",msgRemoveError:"Não foi possível remover os arquivos.",btnCancel:"Cancelar",btnConfirm:"Sim, remover"},Ta={title:"Upload de Arquivo",addFile:"Adicionar Arquivo"},Ia={titleDialog:"Novo Arquivo",labelInputNameFile:"Nome do Novo Arquivo",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore",inputCreateIn:"Criar em",btnCancel:"Cancelar",btnCreateFile:"Novo Arquivo",msgCreateFileSuccess:"O arquivo {fileName} foi criado com sucesso.",msgCreateFileError:"Não foi possível criar o arquivo {fileName}."},Ua={titleDialog:"Nova Pasta",labelInputNameFolder:"Nome da Nova Pasta",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore",inputCreateIn:"Criar em",btnCancel:"Cancelar",btnCreateFolder:"Nova Pasta",msgCreateFolderSuccess:"O diretório {dirName} foi criado com sucesso.",msgCreateFolderError:"Não foi possível criar o diretório {dirName}."},ka={titleDialog:"Upload de Arquivo",selectDir:"Selecionar Diretório:",inputSendTo:"Enviar Para",btnCancel:"Cancelar",btnUploaderFile:"Enviar Arquivo",msgUploaderFileSuccess:"Upload do arquivo {fileName} realizado com sucesso.",msgUploaderFileError:"Erro no upload do arquivo {fileName}: {reason}."},La={simpleTitleDialog:"Compactar o Arquivo",countTitleDialog:"Compactar os {countSelectedPaths} Arquivos Selecionados",inputName:"Nome do Arquivo",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore.",extensionFile:"Extensão do Arquivo",selectedPaths:"Arquivos Selecionados",selectDir:"Selecionar Diretório:",destinationDir:"Diretório de Destino",btnCancel:"Cancelar",btnCompressFile:"Compactar Arquivo",msgCompressedFileSuccess:"Arquivo(s) compactado(s) com sucesso: {compressedFileName}.",msgCompressedFileError:"Não foi possível compactar o arquivo {compressedFileName}."},Ba={titleDialog:"Copiar Arquivo",selectDir:"Selecionar Diretório:",copyTo:"Copiar Para",btnCancel:"Cancelar",btnCopyFile:"Copiar Arquivo",msgCopiedFileSuccess:"Arquivo {fileName} foi copiado com sucesso.",msgCopiedFileError:"Não foi possível copiar o arquivo {fileName}."},qa={titleEditCode:"Editar Código",titleDialogWarningSave:"Alterações Não Salvas",bodyDialogWarningSave:"Há alterações não salvas, deseja descartar as alterações ?",btnDialogWarningSave:"Descartar Alterações",inputAbsolutePath:"Caminho Absoluto",msgGetContentError:"Não foi possível exibir o conteúdo do arquivo {fileName}.",msgSaveCodeSuccess:"Arquivo {fileName} foi salvo com sucesso.",msgSaveCodeError:"Não foi possível salvar o arquivo {fileName}."},xa={titleDialog:"Editar Permissões",btnCancel:"Cancelar",btnSave:"Salvar Alterações",msgEditPermissionsSuccess:"Permissões alteradas com sucesso.",msgEditPermissionsError:"Não foi possível alterar as permissões do arquivo {fileName}."},Ha={titleDialog:"Extrair Arquivo",selectDir:"Selecionar diretório:",inputExtractTo:"Extrair para",btnCancel:"Cancelar",btnExtractFile:"Extrair Arquivo",msgExtractFileSuccess:"Arquivo {filename} foi extraído com sucesso.",msgExtractFileError:"`Não foi possível extrair o arquivo {filename}."},Oa={titleOneFile:"Mover Arquivo {fileName}",titleOneDir:"Mover Diretório {dirName}",titleMultiFileModel:"Mover os {count} Arquivos Selecionados",selectDir:"Selecionar Diretório:",inputMoveTo:"Mover Para",btnMoveFile:"Mover Arquivo",btnMoveFiles:"Mover Arquivos",btnMoveDir:"Mover Diretório",btnCancel:"Cancelar",msgMoveOneFileSuccess:"Arquivo {fileName} foi movido com sucesso.",msgMoveMultiFileModelsSuccess:"Os {count} arquivos foram movidos com sucesso.",msgMoveOneFileError:"Não foi possível mover o arquivo {fileName}.",msgMoveMultiFileModelsError:"Não foi possível mover os {count} arquivos selecionados."},ja={titleRenameFile:"Renomear Arquivo",titleRenameDir:"Renomear Diretório",absolutePath:"Caminho Absoluto",fieldRequired:"Campo Obrigatório.",onlyAlphaNumeric:"Somente letras, números e underscore.",dirName:"Nome do Diretório",fileName:"Nome do Arquivo",btnCancel:"Cancelar",btnSave:"Salvar Alteração",msgRenamedFileSuccess:"Arquivo {fileName} alterado com sucesso.",msgRenamedDirSuccess:"Diretório {dirName} alterado com sucesso.",msgRenamedFileError:"Não foi possível alterar o arquivo {fileName}.",msgRenamedDirError:"Não foi possível alterar o diretório {fileName}."},Va={permissions:"Permissões: ",user:"Usuário",group:"Grupo",others:"Outros",read:"Leitura",write:"Gravação",execute:"Execução"},za={title:"Mapeamentos"},Wa={advancedOptionsLabel:"Opções Avançadas",matchPatternLabel:"Padrão de Correspondência",matchPatternOptions:{beginWith:"Começa Com",contains:"Contém",endsWith:"Termina Com",equals:"Igual a"}},Ka={title:"Criar Mapeamento",cancelBtn:"Cancelar",targetType:{url:"URL",service:"Serviço",responseCode:"Código de Resposta",inlineHtml:"Inline HTML",staticFiles:"Arquivos Estáticos"},hostnameLabel:"Nome do Host",servicesNameLabel:"Nome do Serviço",pathLabel:"URL de Origem",responseCodeLabel:"Response Code",targetUrlLabel:"URL de Destino",createBtn:"Criar Mapeamento",createMappingSuccessfully:"Mapeamento criado com sucesso.",createMappingError:"Erro ao criar mapeamento."},_a={title:"Excluir Mapeamento",confirmRemoveMapping:"Tem certeza de que deseja excluir o mapeamento para {path}?",warningRemoveMapping:"Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, excluir mapeamento",deleteMappingSuccess:"Mapeamento excluído com sucesso.",deleteMappingError:"Erro ao excluir mapeamento."},Ga={responseCodeLabel:"Código de Resposta",responseCodeIsRequired:"O código de resposta é obrigatório",responseCodeIsInvalid:"O código de resposta é inválido"},Za={targetUrlLabel:"URL",targetUrlIsRequired:"URL é obrigatória",targetUrlIsInvalid:"URL é inválida"},Ya={targetInlineHtmlLabel:"Inline HTML",targetInlineHtmlIsRequired:"Inline HTML é obrigatório"},Qa={title:"Criar Virtual Host",hostnameLabel:"Hostname",typeLabel:"Tipo",parentHostnameLabel:"Hostname Pai",cancelBtn:"Cancelar",createBtn:"Criar Virtual Host",optionTopLevel:"Top Level",optionSubdomain:"Subdomínio",optionWildcard:"Wildcard",optionAlias:"Alias",createVhostSuccess:"Virtual Host criado com sucesso",createVhostError:"Erro ao criar virtual host"},Ja={title:"Deletar Virtual Host",confirmRemove:"Tem certeza de que deseja excluir o virtual host {virtualHost}?",warningRemove:"Esta ação não pode ser desfeita.",cancelBtn:"Cancelar",deleteBtn:"Sim, Deletar Virtual Host",deleteVhostSuccess:"Virtual Host deletado com sucesso.",deleteVhostError:"Erro ao deletar virtual host."},$a={topLevelLabel:"Domínio Pai",hostnameLabel:"Subdomínio"},Xa={noDataLabel:"Nenhum mapeamento encontrado.",searchInput:"Pesquisar",createMappingsBtn:"Criar Mapeamento",createVirtualHostsBtn:"Criar Virtual Hosts"},er={deleteBtn:"Excluir Virtual Host"},ar={aliasWarning:"Este virtual host é um alias e não pode ter mapeamentos.",createMappingBtn:"Criar Mapeamento",matchPattern:"Padrão de Correspondência",deleteBtn:"Delete Mapping"},rr={title:"Certificado SSL"},tr={errorLoadingSsl:"Não foi possível carregar o certificado SSL."},or={title:"Adicionar/Substituir Certificado SSL",labelShowFileTypeInputs:"OU carregar arquivos (.crt/.key - formato pem)",labelCertificateInput:"Certificado",certificateContentIsRequired:"O conteúdo do certificado é obrigatório.",certificateContentIsInvalid:"O conteúdo do certificado é inválido.",labelPrivateKeyInput:"Chave Privada",privateKeyIsRequired:"A chave privada é obrigatória.",privateKeyIsInvalid:"A chave privada não é valida.",labelCertificateChainInput:"Certificado Intermediário (CA Bundle / Chain)",certificateAuthIsInvalid:"O certificado intermediário é inválido.",cancelBtn:"Cancelar",createBtn:"Adicionar/Substituir Certificado SSL",createdSuccessfully:"Certificado SSL criado com sucesso.",errorCreatingSsl:"Não foi possível criar o certificado SSL."},sr={title:"Substituir Certificado SSL",messageReplaceSsl:"Tem certeza de que deseja substituir o certificado SSL?",warningReplaceSsl:"Use esta ação somente se você não deseja mais usar o certificado SSL atual. O sistema substituirá o certificado atual por um SSL auto-assinado até que seja possível emitir um novo certificado SSL Let's Encrypt válido.",cancelBtn:"Cancelar",swapSslBtn:"Sim, Substituir Certificado SSL",deletedSuccessfully:"Certificado SSL substituído com sucesso.",errorDeletingSsl:"Não foi possível substituir o certificado SSL."},ir={title:"Download dos arquivos PEM",labelCertificate:"Certificado",labelPrivateKey:"Chave Privada"},nr={messageClipBoard:"Copiar o conteúdo",downloadFile:"Download do Arquivo",messageCopied:"O conteúdo foi copiado para a área de transferência.
Use CTRL + V para colar."},lr={createSslBtn:"Adicionar/Substituir Certificado SSL",noDataLabel:"Nenhum certificado SSL encontrado.",searchInput:"Pesquisar",virtualHostCol:"Virtual Host",issuedAtCol:"Data de Emissão",expiresAtCol:"Valido até",isCACol:"Entidade Certificadora",isCAYes:"Sim",isCANo:"Não"},cr={downloadPemFilesBtn:"Download dos arquivos PEM",swapSslBtn:"Substituir por SSL auto-assinado"},dr={labelSelectVirtualHosts:"Selecionar Virtual Hosts"},ur={title:"Marketplace"},mr={title:"Marketplace",getCatalogWithError:"Falha ao obter catálogo de marketplace.",getInstalledAppsWithError:"Falha ao obter marketplace instalados.",installedApps:"Marketplace instalados",catalog:"Catálogo"},pr={installBtn:"Instalar"},gr={title:"Desinstalar Marketplace",confirmRemoveApp:"Deseja realmente desinstalar o marketplace {appName}?",warningRemoveApp:"Atenção: Todos os dados do marketplace serão perdidos.",deleteAppSuccess:"Marketplace desinstalado com sucesso.",deleteAppWithError:"Falha ao desinstalar marketplace.",cancelBtn:"Cancelar",confirmBtn:"Desinstalar"},vr={title:"Instalar {appName}",hostnameSelect:"Selecione o virtual host",rootDirectory:"Caso deseje instalar em um diretório específico, informe abaixo, caso contrário, o diretório de instalação será: {rootDirectory}.",installDirectory:"Diretório",installParams:"Parâmetros de instalação",descriptionInstallParams:"Preencha os campos abaixo quando obrigatórios ou quando quiser alterar alguma configuração.",getVirtualHostsWithError:"Falha ao obter lista de virtual hosts.",installAppSuccess:"Marketplace instalado com sucesso.",installAppWithError:"Falha ao instalar marketplace.",cancelBtn:"Cancelar",confirmBtn:"Instalar Marketplace"},br={createdAt:"Data de instalação: {createdAt}",rootDirectory:"Instalado em {rootDirectory}",uninstallAppBtn:"Desinstalar"},fr={inputSearch:"Pesquisar",notFound:"Nenhum dado encontrado",onlyInstalledAppsLabel:"Apenas marketplace instalados"},hr=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({login:k,form:V,errorMessages:W},t),o),{runtimeRoute:ae,settingsIndex:te,settingsRoute:re}),s),i),n),l),c),d),u),m),p),g),v),b),Cr=hr,Sr={messageLoginSuccess:"Login Successful!",messageLoginError:"Error while logging in!"},yr=Sr,Dr={inputMail:"E-mail",invalidMail:"Invalid e-mail address"},Ar=Dr,Er={inputPassword:"Password",invalidPassword:"Password must have at least {minLength} characters."},Pr=Er,Nr={label:"FQDN",fqdnRequired:"{label} is required",fqdnMaxLengthError:"{label} must be less than 255 characters",fqdnRegexError:"{label} must be a valid domain name"},Mr=Nr,Rr={mailAddressInput:Ar,passwordInput:Pr,fqdnInput:Mr},Fr=Rr,wr={authTokenInvalided:"Your session has expired, please login again.",invalidCredentials:"Invalid credentials.",networkError:"Server unavailable.",timeoutError:"Request timeout."},Tr=wr,Ir={light:"Day",dark:"Night"},Ur={label:"Language",en:"English",pt:"Portuguese"},kr={selectRefreshRate:"Refresh Rate"},Lr={apps:"Apps",fileManager:"File Manager",domains:"Domains",backups:"Backups",webServers:"Web Servers",metrics:"Metrics",logs:"Logs",imageOptimizer:"Image Optimizer",security:"Security",terminal:"Terminal",disabled:"Feat under development"},Br={btnSettings:"Settings",btnLogout:"Logout"},qr={cpuUsage:"{cpuUsage}% CPU usage",ramUsage:"{ramUsage}% RAM usage",storageUsage:"{storageUsage}% disk usage",disabled:"Feat under development"},xr={btnGeneratePassword:"generate a random password",messageCopiedPassword:"The generated password has been copied to your clipboard.
Use CTRL + V to paste it into your password manager."},Hr={securePassword:"Secure password",isTooShort:"At least {minPasswordLength} characters;",isTooLong:"At most {maxPasswordLength} characters;",hasNumber:"At least 1 number;",hasUpperCases:"At least 1 uppercase letter;",hasLowerCases:"At least 1 lowercase letter.",hasReservedCharSuccess:"No reserved special characters.",hasReservedCharError:"Use of reserved special characters: "},Or={uninstalledService:"The {serviceName} service is not installed yet.",installService:"Install {serviceName} service"},jr={messageDefault:"Loading..."},Vr={title:"Runtime"},zr={title:"Settings"},Wr={title:"Settings",titleConfigs:"Update Settings",titleProfile:"Update Password",titleApiKey:"Update API Key",updatePasswordBtn:"Update Password",generatedApiKey:"Generated API Key",generateNewApiKeyBtn:"Generate New API Key",closeBtn:"Close",copiedToClipboard:"Copied to clipboard.",errorGettingAccounts:"Error getting accounts.",saveNewApiKey:"New API key generated. Please save it in a safe place because the key is not stored on the server.",updatedPasswordSuccessfully:"Updated password successfully.",errorUpdatingPassword:"Error updating password.",updatedApiKeySuccessfully:"New API key generated, save it in a safe place",errorUpdatingApiKey:"Error updating API key."},Kr={title:"Overview"},_r={titleQuickLinks:"Quick Links",linkApps:"Apps",linkDatabases:"Databases",linkFiles:"Files",linkBackups:"Backups",linkDomains:"Domains",linkMetrics:"Metrics",linkLogs:"Logs",linkTerminal:"Terminal"},Gr={titleSystemInfo:"System Information"},Zr={diskUsage:"Disk Usage"},Yr={titleSystemInfo:"System Information",colHostname:"Hostname",colRuntimeContext:"Runtime Context",colUptime:"Uptime",colHardware:"Hardware Specs",colPublicIp:"Public IP Address"},Qr={titleResourcesChart:"Resources Usage",cpu:"CPU",ram:"Memory RAM"},Jr={titleServicesStatus:"Services"},$r={serviceCommandPlaceholder:"example: /usr/bin/binary",requiredError:"Command is required.",maxLengthError:"Command must be less than 255 characters.",commandRegexError:"Command must be a valid command.",helpCommand:'

If you need to install multiple packages to run your software, you must use the Terminal (SSH).

'},Xr={titleInstallService:"Install Service"},et={installableForm:"Installable",customForm:"Custom"},at={serviceNameLabel:"Service Name",requiredError:"Service Name is required.",maxLengthError:"Service Name must be less than 255 characters.",serviceNameRegexError:"Service Name must be a valid service name."},rt={versionLabel:"Version",requiredError:"Version is required.",maxLengthError:"Version must be less than 255 characters.",versionRegexError:"Version must be a valid version."},tt={titlePortBindings:"Port Bindings",hostPortInputLabel:"Port",PortError:"Port must be a number between 1 and 65535.",protocolInputLabel:"Protocol"},ot={uninstallDialogTitle:"Uninstall Service",uninstallDialogDescription:"Do you really want to uninstall the service {serviceName}?",warningUninstallService:"Warning! By uninstalling the service, all data will be lost.",uninstallDialogCancelBtn:"Cancel",uninstallDialogConfirmBtn:"Yes, Uninstall Service"},st={notFound:"No services found.",colServiceName:"Service Name",colPids:"Process IDs",colUptime:"Uptime",colCpuUsage:"CPU Usage",colRamUsage:"RAM Usage",inputSearch:"Search",createServiceBtn:"Install New Service"},it={restartBtn:"Restart Service",uninstallBtn:"Uninstall Service",updateBtn:"Edit Service",installBtn:"Install Service",startSuccess:"Service started with success.",stopLoading:"Stopping service, please wait.",stopSuccess:"Service stopped with success.",startLoading:"Starting service, please wait.",startError:"Error starting service.",stopError:"Error stopping service.",restartLoading:"Restarting service, please wait.",restartSuccess:"Service restarted with success.",restartError:"Error restarting service.",installLoading:'

Updating Service Status

Please await...

This process may take a while. DO NOT refresh or close the window.

',installSuccess:"Service installed with success.",installError:"Error installing service.",uninstallLoading:"Uninstalling service, please wait.",uninstallSuccess:"Service uninstalled with success.",uninstallError:"Error uninstalling service.",systemServiceWarning:"System services cannot be uninstalled or changed, only restarted."},nt={serviceNameLabel:"Service Name",versionLabel:"Version",commandLabel:"Command",startupFileLabel:"Startup File",typeSelect:"Service Type",application:"Application",runtime:"Runtime",database:"Database",webserver:"Web Server",mom:"Messaging",monitoring:"Monitoring",logging:"Logging",security:"Security",backup:"Backup",system:"System",other:"Other",advancedSettingsLabel:"Advanced Settings",cancelButton:"Cancel",installButton:"Install Service",installSuccess:"Service installed with success.",installError:"Error installing service.",labelExecut:"Execution Mode",labelRadioCommand:"Command",labelRadioFile:"or upload an executable file",labelUploadFile:"Select File (.appImage, .bin etc)",labelCommand:"Command",uploadError:"Error uploading file."},lt={serviceLabel:"Service",versionLabel:"Version",titleStartupFile:"Select Startup File",selectStartupFile:"Select Startup File",helpText:"This file will be executed when the service starts.",startupFileLabel:"Startup File",advancedSettingsLabel:"Advanced Settings",cancelButton:"Cancel",installButton:"Install Service",installSuccess:"Service installed with success.",installError:"Error installing service."},ct={titleUpdateService:"Update Service",startupFileLabel:"Startup File",cancelButton:"Cancel",advancedSettingsLabel:"Advanced Settings",updateButton:"Update Service",updateSuccess:"Service updated with success.",updateError:"Error updating service."},dt={title:"Select Startup File",cancelBtn:"Cancel"},ut={title:"Marketplace",getCatalogWithError:"Failed to get app catalog."},mt={installParams:"Installation parameters",descriptionInstallParams:"Fill in the fields below when required or when you want to change some configuration.",marketplaceType:{apps:"Apps",stacks:"Stacks",frameworks:"Frameworks"},cancelBtn:"Cancel",confirmBtn:"Install Marketplace",installAppSuccess:"Marketplace {appName} Installed successfully",installAppWithError:"Failed to install Marketplace {appName}."},pt={notFoundApps:"{type}s not found."},gt={noDataLabel:"No marketplace available.",searchInput:"Search",installBtn:"Install",appNameColumn:"Name",installDirectoryColumn:"Installation Directory",createdAtColumn:"Created At"},vt={uninstallBtn:"Uninstall"},bt={title:"Accounts"},ft={errorLoadingAccounts:"Not able to load accounts."},ht={title:"Create Account",username:"Username",usernameRequired:"Username is required.",usernameMinLength:"Username must have at least 3 characters.",cancelBtn:"Cancel",createBtn:"Create Account",createdSuccessfully:"Account created successfully.",errorCreatingAccount:"Not able to create account"},Ct={title:"Delete User {username}",messageDeleteAccount:"Are you sure you want to delete user {username}?",warningDeleteAccount:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, Delete User",deletedSuccessfully:"User {username} deleted successfully.",errorDeletingAccount:"Not able to delete user {username}."},St={createAccountBtn:"Create Account",noDataLabel:"No accounts found.",searchInput:"Search"},yt={title:"Update Password for User {username}",cancelBtn:"Cancel",updateBtn:"Update Password",updatedSuccessfully:"Password updated successfully.",errorUpdatingAccount:"Not able to update password."},Dt={title:"Update API Key for User {username}",generatedApiKey:"New API key generated.",updatedSuccessfullyWithApiKey:"New API key generated, save it in a safe place",saveNewApiKey:"New API key generated. Please save it in a safe place because the key is not stored on the server.",copiedToClipboard:"Copied to clipboard.",closeDialogBtn:"Close",generateNewApiKeyBtn:"Generate New API Key",updatedSuccessfully:"New API key generated successfully.",errorUpdatingApiKey:"Not able to generate new API key."},At={editPasswordBtn:"Update Password",editApiKeyBtn:"Update API Key",deleteBtn:"Delete Account"},Et={title:"Databases"},Pt={errorLoadingPostgresqlDatabases:"Error loading the list of Postgresql databases.",errorLoadingMysqlDatabases:"Error loading the list of Mysql databases."},Nt={tdIpAddress:"Server IP Address",tdPort:"Server Port",localhost:"localhost",dataLocal:"Local Connection"},Mt={titleDialogCreate:"Create Database",inputDataBaseName:"Database name",inputUserName:"Username",messageValidateError:"Only letters, numbers and underline are allowed.",btnCancel:"Cancel",btnCreateDataBase:"Create Database",createDataBaseSuccess:"Database created successfully.",createDataBaseError:"Error creating database."},Rt={titleDialogCreateUser:"Create Database User",textSelectDatabases:"Select databases",inputUsername:"Username",messageInputError:"Only letters, numbers and underline are allowed.",textPrivileges:"Privileges",textPrivilegesSelect:"Select privileges",toggleSelectAll:"Select all",btnCancel:"Cancel",btnCreateUser:"Create User",messageCreateUserSuccess:"User created successfully.",messageCreateUserError:"Error creating user."},Ft={titleDialogRemove:"Remove Database",messageConfirmRemove:"Are you sure you want to remove the {databaseName} database",warningRemoveDatabase:"Warning! This action cannot be undone.",btnCancel:"Cancel",btnRemove:"Remove Database",messageRemoveSuccess:"Database removed successfully.",messageRemoveError:"Error removing database."},wt={titleDialogRemoveUser:"Remove Database User",messageConfirmRemove:"Are you sure you want to remove the {username} user",warningRemoveUser:"Warning! This action cannot be undone.",btnCancel:"Cancel",btnRemove:"Remove User",subtitleDialogRemoveUser:"{databaseType} - {databaseName}",messageRemoveUserSuccess:"User removed successfully.",messageRemoveUserError:"Error removing user."},Tt={titleDialogUpdateUser:"Update Database User: {user}",subtitleDialogUpdateUser:"Database: {databaseType}",textAlertMessage:"Warning! This action cannot be undone.",inputName:"Username",textPrivileges:"Privileges",toggleSelectAll:"Select all",textPostgresPrivileges:'All ProstgreSQL users will be created with "ALL PRIVILEGES" in the databases and in the public schema',btnCancel:"Cancel",btnUpdateUser:"Update User",messageUpdateUserSuccess:"User updated successfully.",messageUpdateUserError:"Error updating user."},It={tooltipRemove:"Remove Database"},Ut={notFoundDatabases:"No databases found.",search:"Search",btnCreateUser:"Create User",btnCreateDatabase:"Create Database",databaseName:"Database Name",databaseUsers:"Users",databaseSize:"Size"},kt={tooltipEditUser:"Edit User",tooltipRemoveUser:"Remove User"},Lt={textWarningChanges:'Your changes have not yet been applied. Click "Update Configurations" to propagate the desired changes.',btnUpdateConfigurations:"Update Configurations",tabExtensions:"Extensions",tabOptions:"Options",getVirtualHostsError:"Unable to list server virtual hosts",getMappingsError:"Unable to list server virtual hosts mappings",getPhpConfigurationsError:"No PHP configurations could be displayed",checkPhpServiceError:"Unable to check PHP service status",updatePhpConfigurationsSuccess:"PHP.ini configurations successfully updated",updatePhpConfigurationsError:"Not able to update PHP.ini configurations"},Bt={title:"The Selected Virtual Host Doesn't Map to PHP Yet",mappingExplanation:'In order to control PHP settings and modules, the selected virtual host needs to proxy traffic to the PHP Web Server.
Just click on "Create Mapping" and the system will do this for you. If you want to map a specific sub-directory of your virtual host to the PHP Web Server, go to the Advanced Settings and change the Sub-directory from "/" (root) to the desired location.',createBtn:"Create Mapping",createMappingSuccessfully:"Mapping successfully created",createMappingError:"Not able to create mapping"},qt={selectVirtualHost:"Virtual Host"},xt={selectPhpVersion:"PHP Version"},Ht={title:"Do you really want to change the PHP version?",body:"

Before changing, make sure your application is compatible with PHP version {newVersion}.

Remember to then enable/disable the desired modules and adjust the settings in the new version, since the modules/settings of the previous version may be different.

",btnCancel:"Cancel",btnConfirm:"Change Version",updatePhpVersionSuccess:"PHP version successfully changed.",updatePhpVersionError:"Not able to change PHP version."},Ot={enablePhpSettingError:"Not able to enable option {settingName}.",disablePhpSettingError:"Not able to disable option {settingName}.",enablePhpSettingSuccess:"Option {settingName} successfully enabled.",disablePhpSettingSuccess:"Option {settingName} successfully disabled."},jt={urlLabel:"Subdirectory",urlIsInvalid:"Invalid URL",urlExplanation:"Subdirectories are used to access different applications within the same domain. For example, if you have a website at {hostname} and want to create a blog, you can create a subdirectory called blog and access it at {hostname}/blog."},Vt={enablePhpSettingError:"Not able to enable option {settingName}.",enablePhpSettingSuccess:"Option {settingName} successfully enabled."},zt={enablePhpModuleError:"Not able to enable module {moduleName}.",disablePhpModuleError:"Not able to disable module {moduleName}.",enablePhpModuleSuccess:"Module {moduleName} successfully enabled.",disablePhpModuleSuccess:"Module {moduleName} successfully disabled."},Wt={title:"Cron Jobs"},Kt={getCronjobsError:"Could not fetch information about scheduled tasks."},_t={notFoundCronjobs:"Could not find scheduled tasks.",btnNewTask:"Schedule New Task",inputSearch:"Search",columnSchedule:"Schedule",columnCommand:"Command",columnComment:"Comment",predefinedHourly:"Hourly",predefinedDaily:"Daily",predefinedWeekly:"Weekly",predefinedMonthly:"Monthly",predefinedYearly:"Yearly",predefinedAnnually:"Annually",predefinedReboot:"Reboot"},Gt={btnEditCronjob:"Edit Task",btnRemoveCronjob:"Remove Task"},Zt={editCronjob:"Edit Task",newCronjob:"New Task",updateCronjob:"Update Task",createCronjob:"Create Task",btnCancel:"Cancel",updateCronjobSuccess:"Task updated successfully.",updateCronjobError:"Could not update task.",createCronjobSuccess:"Task created successfully.",createCronjobError:"Could not create task.",predefinedForm:"Predefined",customForm:"Custom",selectExecuteTask:"Execute Task",predefinedHourly:"Hourly",predefined3Hours:"Every 3 hours",predefined6Hours:"Every 6 hours",predefined12Hours:"Every 12 hours",predefinedDaily:"Daily",predefinedWeekly:"Weekly",predefinedMonthly:"Monthly",predefinedYearly:"Yearly",predefinedAnnually:"Annually",predefinedReboot:"Reboot",fieldMinutes:"Minute(s)",fieldDays:"Day(s)",fieldHours:"Hour(s)",fieldMonths:"Months",fieldWeekDay:"Week Day",fieldCommand:"Command",fieldComment:"Comment",messageFieldRequired:"Required field.",messageInputError:"You did not format the settings correctly."},Yt={titleDialogRemove:"Remove Task",confirmRemoveCron:"Are you sure you want to remove this task?",warningRemoveCron:"This action is irreversible.",btnCancel:"Cancel",btnConfirm:"Yes, Remove Task",removeCronSuccess:"Task removed successfully.",removeCronError:"Could not remove task."},Qt={everyMinute:"Every minute",everyMinutes:"Every {minute} minutes",atMinute:"At minute {minute}",everyHour:"Every hour",everyHours:"Every {hour} hours",atMidnight:"At midnight",atMidday:"At midday",atHour:"At {standard24hours}h ({standard12hours})",everyDay:"Every day",everyDays:"Every {day} days",weekly:"Weekly",atDay:"At day {day}",everyMonth:"Every month",everyMonths:"Every {month} months",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",everyWeekDay:"Every weekday",mondayToFriday:"Monday to Friday",onlyWeekends:"Only weekends",everyMonday:"Every Monday",everyTuesday:"Every Tuesday",everyWednesday:"Every Wednesday",everyThursday:"Every Thursday",everyFriday:"Every Friday",everySaturday:"Every Saturday",everySunday:"Every Sunday"},Jt={title:"File Manager"},$t={notFoundFiles:"No files were found in this directory.",labelInputSearch:"Search",placeholderInputSearch:"Search in Directory",colUserAndGroup:"User:Group",colName:"Name",colSize:"Size",colType:"Type",colLastModifiedDate:"Last Modified Date",colPermission:"Permission",oneFileSelected:"1 record selected out of {total}",multiFileModelsSelected:"{quantity} records selected out of {total}",labelSelectRowsViews:"Number of Records"},Xt={btnClearTrash:"Empty Trash",titleDialogClearTrash:"Empty Trash",bodyDialogClearTrash:"Are you sure you want to remove all files from the trash?
This action is irreversible.",msgRemoveSuccess:"Trash emptied successfully.",msgRemoveError:"Could not remove files from the trash.",msgCreateTrashError:"Could not create the trash again.",btnCancel:"Cancel",btnConfirm:"Yes, empty trash"},eo={btnSave:"Save",btnUndo:"Undo",btnRedo:"Redo",btnRedoAll:"Undo All Changes",btnSaveFile:"Save File",btnDecreaseFont:"Decrease Font",btnIncreaseFont:"Increase Font"},ao={btnCompress:"Compress"},ro={btnCopy:"Copy"},to={btnDownload:"Download File",msgDownloadError:"Could not download the file {fileName}"},oo={btnDuplicateFile:"Duplicate File",msgDuplicateFileSuccess:"File {fileName} duplicated successfully.",msgDuplicateFileError:"Could not duplicate the file {fileName}."},so={btnEditCode:"Edit Code"},io={btnEditPermissions:"Edit Permissions"},no={btnExtract:"Extract File"},lo={btnGoToHome:"Go to Home Directory"},co={btnGoBackUp:"Go Back a Level"},uo={btnMoveFile:"Move File",btnMoveFiles:"Move Selected Files",btnMoveDir:"Move Directory"},mo={btnNewFile:"New File"},po={btnRenameDir:"Rename Directory",btnRenameFile:"Rename File"},go={btnNewFolder:"New Folder"},vo={btnPageReload:"Reload Page"},bo={btnShowTrash:"Show Trash"},fo={btnUploaderFile:"Upload File"},ho={btnRemoveFile:"Remove File",btnRemoveDir:"Remove Directory",titleDialogRemoveFile:"Remove File",titleDialogRemoveDir:"Remove Directory",msgConfirmRemoveSelectedOneFile:"Are you sure you want to remove the selected file?
The file will remain in the trash for 30 days.",msgConfirmRemoveSelectedMultiFileModels:"Are you sure you want to remove the {countFiles} selected files?
The files will remain in the trash for 30 days.",msgConfirmRemoveOneFile:"Are you sure you want to remove the {mimeType} {fileName}?
The file will remain in the trash for 30 days.",msgConfirmRemoveSelectedOneFileTrash:"Are you sure you want to remove the selected {mimeType}?
This action is irreversible.",msgConfirmRemoveSelectedMultiFileModelsTrash:"Are you sure you want to remove the {countFiles} selected files?
This action is irreversible.",msgConfirmRemoveOneFileTrash:"Are you sure you want to remove the {mimeType} {fileName}?
This action is irreversible.",msgRemoveSuccess:"File(s) moved to the trash successfully.",msgRemovePermanentSuccess:"File(s) permanently deleted.",msgRemoveError:"Could not remove the files.",btnCancel:"Cancel",btnConfirm:"Yes, remove"},Co={title:"Upload File",addFile:"Add File"},So={titleDialog:"New File",labelInputNameFile:"New File Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore",inputCreateIn:"Create in",btnCancel:"Cancel",btnCreateFile:"New File",msgCreateFileSuccess:"File {fileName} created successfully.",msgCreateFileError:"Could not create the file {fileName}."},yo={titleDialog:"New Folder",labelInputNameFolder:"New Folder Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore",inputCreateIn:"Create in",btnCancel:"Cancel",btnCreateFolder:"New Folder",msgCreateFolderSuccess:"Directory {dirName} created successfully.",msgCreateFolderError:"Could not create the directory {dirName}."},Do={titleDialog:"Upload File",selectDir:"Select Directory:",inputSendTo:"Send To",btnCancel:"Cancel",btnUploaderFile:"Upload File",msgUploaderFileSuccess:"File upload {fileName} successful.",msgUploaderFileError:"Error uploading file {fileName}: {reason}."},Ao={simpleTitleDialog:"Compress File",countTitleDialog:"Compress {countSelectedPaths} Selected Files",inputName:"File Name",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore.",extensionFile:"File Extension",selectedPaths:"Selected Files",selectDir:"Select Directory:",destinationDir:"Destination Directory",btnCancel:"Cancel",btnCompressFile:"Compress File",msgCompressedFileSuccess:"File(s) compressed successfully: {compressedFileName}.",msgCompressedFileError:"Could not compress the file {compressedFileName}."},Eo={titleDialog:"Copy File",selectDir:"Select Directory:",copyTo:"Copy To",btnCancel:"Cancel",btnCopyFile:"Copy File",msgCopiedFileSuccess:"File {fileName} copied successfully.",msgCopiedFileError:"Could not copy the file {fileName}."},Po={titleEditCode:"Edit Code",titleDialogWarningSave:"Unsaved Changes",bodyDialogWarningSave:"There are unsaved changes, do you want to discard the changes?",btnDialogWarningSave:"Discard Changes",inputAbsolutePath:"Absolute Path",msgGetContentError:"Could not display the content of the file {fileName}.",msgSaveCodeSuccess:"File {fileName} saved successfully.",msgSaveCodeError:"Could not save the file {fileName}."},No={titleDialog:"Edit Permissions",btnCancel:"Cancel",btnSave:"Save Changes",msgEditPermissionsSuccess:"Permissions changed successfully.",msgEditPermissionsError:"Could not change the permissions of the file {fileName}."},Mo={titleDialog:"Extract File",selectDir:"Select directory:",inputExtractTo:"Extract to",btnCancel:"Cancel",btnExtractFile:"Extract File",msgExtractFileSuccess:"File {filename} extracted successfully.",msgExtractFileError:"Could not extract the file {filename}."},Ro={titleOneFile:"Move File {fileName}",titleOneDir:"Move Directory {dirName}",titleMultiFileModel:"Move {count} Selected Files",selectDir:"Select Directory:",inputMoveTo:"Move To",btnMoveFile:"Move File",btnMoveFiles:"Move Files",btnMoveDir:"Move Directory",btnCancel:"Cancel",msgMoveOneFileSuccess:"File {fileName} moved successfully.",msgMoveMultiFileModelsSuccess:"The {count} files were moved successfully.",msgMoveOneFileError:"Could not move the file {fileName}.",msgMoveMultiFileModelsError:"Could not move the {count} selected files."},Fo={titleRenameFile:"Rename File",titleRenameDir:"Rename Directory",absolutePath:"Absolute Path",fieldRequired:"Required Field.",onlyAlphaNumeric:"Only letters, numbers, and underscore.",dirName:"Directory Name",fileName:"File Name",btnCancel:"Cancel",btnSave:"Save Change",msgRenamedFileSuccess:"File {fileName} changed successfully.",msgRenamedDirSuccess:"Directory {dirName} changed successfully.",msgRenamedFileError:"Could not change the file {fileName}.",msgRenamedDirError:"Could not change the directory {fileName}."},wo={permissions:"Permissions: ",user:"User",group:"Group",others:"Others",read:"Read",write:"Write",execute:"Execute"},To={title:"Mappings"},Io={advancedOptionsLabel:"Advanced Options",matchPatternLabel:"Match Pattern",matchPatternOptions:{beginWith:"Begin With",contains:"Contains",endsWith:"Ends With",equals:"Equals"}},Uo={title:"Create Mapping",cancelBtn:"Cancel",targetType:{url:"URL",service:"Service",responseCode:"Response Code",inlineHtml:"Inline HTML",staticFiles:"Static Files"},hostnameLabel:"Virtual Host",servicesNameLabel:"Service Name",pathLabel:"Source URL",responseCodeLabel:"Response Code",targetUrlLabel:"Destination URL",createBtn:"Create Mapping",createMappingSuccessfully:"Mapping created successfully.",createMappingError:"Error creating mapping."},ko={title:"Delete Mapping",confirmRemoveMapping:"Are you sure you want to delete mapping to {path}?",warningRemoveMapping:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, delete mapping",deleteMappingSuccess:"Mapping deleted successfully.",deleteMappingError:"Error deleting mapping."},Lo={responseCodeLabel:"Response Code",responseCodeIsRequired:"Response Code is required",responseCodeIsInvalid:"Response Code is invalid"},Bo={targetUrlLabel:"URL",targetUrlIsRequired:"URL is required",targetUrlIsInvalid:"URL is invalid"},qo={targetInlineHtmlLabel:"Inline HTML",targetInlineHtmlIsRequired:"Inline HTML is required"},xo={title:"Create Virtual Host",hostnameLabel:"Hostname",typeLabel:"Type",parentHostnameLabel:"Parent Hostname",cancelBtn:"Cancel",createBtn:"Create Virtual Host",optionTopLevel:"Top Level",optionSubdomain:"Subdomain",optionWildcard:"Wildcard",optionAlias:"Alias",createVirtualHostSuccess:"Virtual Host created successfully",createVirtualHostError:"Error creating virtual host"},Ho={title:"Delete Virtual Host",confirmRemove:"Are you sure you want to delete the {virtualHost} virtual host?",warningRemove:"This action cannot be undone.",cancelBtn:"Cancel",deleteBtn:"Yes, Delete Virtual Host",deleteVhostSuccess:"Virtual Host deleted successfully.",deleteVhostError:"Error deleting virtual host."},Oo={topLevelLabel:"Parent Domain",hostnameLabel:"Subdomain"},jo={noDataLabel:"No mappings found",searchInput:"Search",createMappingsBtn:"Create Mapping",createVirtualHostsBtn:"Create Virtual Host"},Vo={deleteBtn:"Delete Virtual Host"},zo={aliasWarning:"This virtual host is an alias and cannot have mappings.",createMappingBtn:"Create Mapping",matchPattern:"match pattern",deleteBtn:"Delete Mapping"},Wo={title:"SSL Certificate"},Ko={errorLoadingSsl:"Not able to load SSL certificate."},_o={title:"Add/Replace Ssl Certificate",labelShowFileTypeInputs:"OR upload files (.crt/.key - pem format)",labelCertificateInput:"Certificate",certificateContentIsRequired:"Certificate content is required.",certificateContentIsInvalid:"Certificate content is invalid.",labelPrivateKeyInput:"Private Key",privateKeyIsRequired:"Private key is required.",privateKeyIsInvalid:"Private key is invalid.",labelCertificateChainInput:"Root & Intermediaries Certificates (CA Bundle / Chain)",certificateAuthIsInvalid:"Certificate chain is invalid.",cancelBtn:"Cancel",createBtn:"Add/Replace SSL Certificate",createdSuccessfully:"SSL certificate created successfully.",errorCreatingSsl:"Not able to create SSL certificate"},Go={title:"Swap with self-signed SSL",messageReplaceSsl:"Are you sure you want to swap SSL certificate?",warningReplaceSsl:"Only use this action if you no longer want to use your current SSL certificate. The system will swap the current certificate with a self-signed SSL until it's able to issue a new valid Let's Encrypt SSL certificate.",cancelBtn:"Cancel",swapSslBtn:"Yes, Swap Ssl Certificate",deletedSuccessfully:"Ssl certificate replaced successfully.",errorDeletingSsl:"Not able to swap SSL certificate."},Zo={title:"Download PEM Files",labelCertificate:"Certificate",labelPrivateKey:"Private Key"},Yo={messageClipBoard:"Copy the content",downloadFile:"Download File",messageCopied:"The content has been copied to your clipboard.
Use CTRL + V to paste."},Qo={createSslBtn:"Add/Swap SSL Certificate",noDataLabel:"No SSL certificate found.",searchInput:"Search",virtualHostCol:"Virtual Host",issuedAtCol:"Issued At",expiresAtCol:"Expires At",isCACol:"Certificate Authority",isCAYes:"Yes",isCANo:"No"},Jo={downloadPemFilesBtn:"Download PEM Files",swapSslBtn:"Swap to self-signed SSL"},$o={labelSelectVirtualHosts:"Select Virtual Hosts"},Xo={title:"Marketplace"},es={title:"Marketplace",getCatalogWithError:"Failed to get marketplace catalog.",getInstalledAppsWithError:"Failed to get installed marketplaces.",installedApps:"Installed marketplaces",catalog:"Catalog"},as={installBtn:"Install"},rs={title:"Uninstall Marketplace",confirmRemoveApp:"Do you really want to uninstall the marketplace {appName}?",warningRemoveApp:"Warning: All marketplace data will be lost.",deleteAppSuccess:"Marketplace uninstalled successfully.",deleteAppWithError:"Failed to uninstall marketplace.",cancelBtn:"Cancel",confirmBtn:"Uninstall"},ts={title:"Install {appName}",hostnameSelect:"Select virtual host",rootDirectory:"If you want to install in a specific directory, inform below, otherwise, the installation directory will be: {rootDirectory}.",installDirectory:"Path",installParams:"Install parameters",descriptionInstallParams:"Fill in the fields below when required or when you want to change some configuration.",getVirtualHostsWithError:"Failed to get virtual host list.",installAppSuccess:"Marketplace installed successfully.",installAppWithError:"Failed to install marketplace.",cancelBtn:"Cancel",confirmBtn:"Install Marketplace"},os={inputSearch:"Search",notFound:"No data found",onlyInstalledAppsLabel:"Only installed marketplaces"},ss=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({login:yr,form:Fr,errorMessages:Tr},f),h),{runtimeRoute:Vr,settingsIndex:Wr,settingsRoute:zr}),C),S),y),D),A),E),P),N),M),R),F),w),is=ss,ns={"en-us":is,"pt-br":Cr},ls=(0,I.o)({locale:"en-us",fallbackLocale:"pt-br",legacy:!1,globalInjection:!0,messages:ns}),cs=(0,T.xr)((({app:e})=>{e.use(ls)}))},74358:(e,a,r)=>{r.d(a,{S:()=>o});var t=r(3746);const o=(0,t.Q_)("langSelect",{state:()=>({selectedLanguage:"en-us"}),getters:{getSelectedLanguage(e){return e.selectedLanguage}},actions:{setSelectedLanguage(e){this.selectedLanguage=e}}})},21809:(e,a,r)=>{r.d(a,{Z:()=>o});var t=r(84006);class o{constructor(){this.tokenName="os-access-token"}getToken(){return t.Z.get(this.tokenName)}setToken(e){const a=new Date(Date.now()+108e5),r="None",o={expires:a,path:"/",domain:window.location.hostname,secure:!0,sameSite:r};t.Z.set(this.tokenName,e,o)}removeToken(){this.removeCookie(this.tokenName)}removeCookie(e,a="/",r=window.location.hostname){const t="Thu, 01 Jan 1970 00:00:00 GMT";document.cookie=`${e}=; Expires=${t}; Path=${a}; Domain=${r}`}hasCookie(e){return t.Z.has(e)}}},20503:(e,a,r)=>{r.d(a,{Z:()=>o});var t=r(63703);class o{getDarkMode(){var e;return null===(e=t.Z.getItem("darkMode"))||void 0===e||e}setDarkMode(e){t.Z.set("darkMode",e)}getUsername(){var e;return null!==(e=t.Z.getItem("username"))&&void 0!==e?e:""}setUsername(e){t.Z.set("username",e)}getLanguage(){var e;return null!==(e=t.Z.getItem("language"))&&void 0!==e?e:"en-us"}setLanguage(e){t.Z.set("language",e)}getRefreshRate(){var e;return null!==(e=t.Z.getItem("refreshRate"))&&void 0!==e?e:20}setRefreshRate(e){t.Z.set("refreshRate",e)}hasItemLocalStorage(e){return t.Z.has(e)}clearAllLocalStorage(){t.Z.clear()}}}},a={};function r(t){var o=a[t];if(void 0!==o)return o.exports;var s=a[t]={exports:{}};return e[t].call(s.exports,s,s.exports,r),s.exports}r.m=e,(()=>{r.amdO={}})(),(()=>{var e=[];r.O=(a,t,o,s)=>{if(!t){var i=1/0;for(d=0;d=s)&&Object.keys(r.O).every((e=>r.O[e](t[l])))?t.splice(l--,1):(n=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,o,s]}})(),(()=>{r.n=e=>{var a=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(a,{a}),a}})(),(()=>{r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,t)=>(r.f[t](e,a),a)),[]))})(),(()=>{r.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{64:"478f3322",320:"ef12a7fc",381:"d2db59d9",437:"1f14c16b",506:"0eddfc52",517:"d140078e",549:"dadba440",628:"de5fb6e9",646:"ba18415e",664:"53dda770",693:"95a04be3",719:"f0e19c17",755:"05d5c8ee",870:"0630ca03",915:"3b21944f"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+e+"."+{381:"451ac5f1",437:"c31f08a2",506:"bc12730f",517:"295044ed",549:"acbb5d0f",628:"203c03df",646:"2d094734",664:"0514e9c1",693:"e6ad8e07",719:"9eaf338a",755:"25177ab5",870:"f35f2e51",915:"dd13f0d1"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a)})(),(()=>{var e={},a="sos-dash:";r.l=(t,o,s,i)=>{if(e[t])e[t].push(o);else{var n,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d{n.onerror=n.onload=null,clearTimeout(p);var o=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach((e=>e(r))),a)return a(r)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=m.bind(null,n.onerror),n.onload=m.bind(null,n.onload),l&&document.head.appendChild(n)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p="/_/"})(),(()=>{if("undefined"!==typeof document){var e=(e,a,r,t,o)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css";var i=r=>{if(s.onerror=s.onload=null,"load"===r.type)t();else{var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.href||a,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=n,s.parentNode.removeChild(s),o(l)}};return s.onerror=s.onload=i,s.href=a,r?r.parentNode.insertBefore(s,r.nextSibling):document.head.appendChild(s),s},a=(e,a)=>{for(var r=document.getElementsByTagName("link"),t=0;tnew Promise(((o,s)=>{var i=r.miniCssF(t),n=r.p+i;if(a(i,n))return o();e(t,n,null,o,s)})),o={143:0};r.f.miniCss=(e,a)=>{var r={381:1,437:1,506:1,517:1,549:1,628:1,646:1,664:1,693:1,719:1,755:1,870:1,915:1};o[e]?a.push(o[e]):0!==o[e]&&r[e]&&a.push(o[e]=t(e).then((()=>{o[e]=0}),(a=>{throw delete o[e],a})))}}})(),(()=>{var e={143:0};r.f.j=(a,t)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)t.push(o[2]);else{var s=new Promise(((r,t)=>o=e[a]=[r,t]));t.push(o[2]=s);var i=r.p+r.u(a),n=new Error,l=t=>{if(r.o(e,a)&&(o=e[a],0!==o&&(e[a]=void 0),o)){var s=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+i+")",n.name="ChunkLoadError",n.type=s,n.request=i,o[1](n)}};r.l(i,l,"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,t)=>{var o,s,[i,n,l]=t,c=0;if(i.some((a=>0!==e[a]))){for(o in n)r.o(n,o)&&(r.m[o]=n[o]);if(l)var d=l(r)}for(a&&a(t);cr(62228)));t=r.O(t)})(); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/chunk-common.478f3322.js b/src/presentation/ui/dist/js/chunk-common.478f3322.js new file mode 100644 index 000000000..fa80ab7c9 --- /dev/null +++ b/src/presentation/ui/dist/js/chunk-common.478f3322.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[64],{85118:(e,t,a)=>{a.d(t,{V:()=>o});var s=a(3746);const o=(0,s.Q_)("refreshRate",{state:()=>({selectedRefreshRate:20}),getters:{getSelectedRefreshRate(e){return e.selectedRefreshRate}},actions:{setSelectedRefreshRate(e){this.selectedRefreshRate=e}}})},45273:(e,t,a)=>{a.d(t,{Q:()=>n,Z:()=>r});var s=a(26950),o=a(93382),l=a(74462);function n(e=l.i18n.global.t("loading.messageDefault"),t=!1){s.Z.show({spinner:o.Z,spinnerColor:"primary",spinnerSize:140,backgroundColor:"black",message:`${e}`,messageColor:"white",html:t})}function r(){s.Z.hide()}},88900:(e,t,a)=>{a.d(t,{LX:()=>n,c0:()=>o,s9:()=>l});var s=a(6827);function o(e){const t="warning"===e.type?"black":"white";s.Z.create({color:e.type,textColor:t,message:e.msg,position:e.position,html:!!e.html&&e.html,actions:[{icon:"sym_s_cancel",color:t}]})}function l(e,t,a="bottom",s=!1){const l=e.hasOwnProperty("msg")?e.msg:`${t.slice(0,-1)}: ${e.body}`,n=e.hasOwnProperty("type")?e.type:"negative";o({msg:`${l}`,position:a,type:`${n}`,html:s})}function n(e,t="bottom",a=!1){o({msg:e,position:t,type:"positive",html:a})}},50168:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(74462),o=a(4376);const l=s.i18n.global.t;function n(e){if(0===e.epoch)return l("components.sharedComponents.formatDate.dateNotFound");const t=new Date(0).setUTCSeconds(e.epoch);return!0===e.onlyDate?o.ZP.formatDate(t,"DD/MM/YYYY"):o.ZP.formatDate(t,"DD/MM/YYYY hh:mm:ss")}},73451:(e,t,a)=>{function s(e){if(!e)return"";const t={nginx:"NGINX",redis:"Redis",mysql:"MySQL",postgresql:"PostgreSQL",openlitespeed:"OpenLiteSpeed",node:"Node.js",mariadb:"MariaDB",php:"PHP WebServer","php-webserver":"PHP WebServer","sos-api":"Speedia OS API"},a=t[e.toLowerCase()];if(a)return a;const s=e.charAt(0).toUpperCase()+e.slice(1);return s}a.d(t,{R:()=>s})},25971:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{createAccount(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/account/",e)}))}getAccounts(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/account/")}))}updateAccount(e){return o(this,void 0,void 0,(function*(){return this.request.put("/v1/account/",e)}))}deleteAccount(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`/v1/account/${e}/`)}))}}},18892:(e,t,a)=>{a.d(t,{Z:()=>r});var s=a(69036),o=a(74462),l=a(85027),n=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class r extends s.Z{constructor(){super(...arguments),this.timeout=12e4}getCurrentPath(e){return n(this,void 0,void 0,(function*(){return this.request.get(`/v1/files/?sourcePath=${e}`)}))}getFileDownloadBlob(e){return n(this,void 0,void 0,(function*(){return new Promise(((t,a)=>{this.request.get("/v1/files/?sourcePath="+e.path).then((s=>{0===s.data.body.length&&a({error:null,msg:`${o.i18n.global.t("fileManagerToolbarBtnDownload.msgDownloadError",{fileName:e.name})}`});const n=""!==e.extension?e.extension:"txt",r=l.g.includes(n);let i="application/"+n;r&&(i="application/octet-binary; charset=utf-8"),t(new Blob([s.data.body[0].content],{type:i}))})).catch((t=>{a({error:t,msg:`${o.i18n.global.t("fileManagerToolbarBtnDownload.msgDownloadError",{fileName:e.name})}`})}))}))}))}createFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/",e)}))}uploadFile(e){return n(this,void 0,void 0,(function*(){return this.request.defaults.headers["Content-Type"]="multipart/form-data",this.request.post("/v1/files/upload/",e)}))}compressFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/compress/",e)}))}copyFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/copy/",e)}))}updateFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/",e)}))}extractFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/extract/",e)}))}removeFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/delete/",e)}))}}},85027:(e,t,a)=>{a.d(t,{g:()=>s});const s=["zip","rar","tar.gz","gzip","tar","gz","tgz"]},62120:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getMappings(){return o(this,void 0,void 0,(function*(){return this.request.get("v1/vhosts/mapping/")}))}createMappings(e){return o(this,void 0,void 0,(function*(){return this.request.post("v1/vhosts/mapping/",e)}))}deleteMappings(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`v1/vhosts/mapping/${e.mappingId}/`)}))}}},60016:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getVirtualHosts(){return o(this,void 0,void 0,(function*(){return this.request.get("v1/vhosts/")}))}createVirtualHost(e){return o(this,void 0,void 0,(function*(){return this.request.post("v1/vhosts/",e)}))}deleteVirtualHost(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`v1/vhosts/${e}/`)}))}}},39697:(e,t,a)=>{a.d(t,{i:()=>o});var s=a(3746);const o=(0,s.Q_)("mappings",{state:()=>({keyMappingsTable:0,selectedMapping:{},showCreateMappingDialog:!1,showDeleteMappingDialog:!1,selectedDeleteMapping:{}}),getters:{getKeyMappingsTable(e){return e.keyMappingsTable},getSelectedMapping(e){return e.selectedMapping},getShowCreateMappingDialog(e){return e.showCreateMappingDialog},getShowDeleteMappingDialog(e){return e.showDeleteMappingDialog},getSelectedDeleteMapping(e){return e.selectedDeleteMapping}},actions:{setKeyMappingsTable(e){this.keyMappingsTable=e},setSelectedMapping(e){this.selectedMapping=e},setShowCreateMappingDialog(e){this.showCreateMappingDialog=e},setShowDeleteMappingDialog(e){this.showDeleteMappingDialog=e},setSelectedDeleteMapping(e){this.selectedDeleteMapping=e}}})},9704:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getCatalog(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/marketplace/catalog/")}))}installApp(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/marketplace/catalog/",e)}))}getInstalledApps(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/marketplace/installed/")}))}uninstallApp(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`/v1/marketplace/installed/${e}/`)}))}}},62601:(e,t,a)=>{a.d(t,{R:()=>o});var s=a(3746);const o=(0,s.Q_)("marketplace",{state:()=>({keyMarketplaceTable:0,showSlideDialog:!1,screenshotUrlsList:[],selectedScreenshotIndex:0,showInstallAppDialog:!1,selectedAppToInstall:{},showDeleteAppDialog:!1,selectedAppToDelete:{}}),getters:{getKeyMarketplaceTable:e=>e.keyMarketplaceTable,getShowSlideDialog:e=>e.showSlideDialog,getScreenshotUrlsList:e=>e.screenshotUrlsList,getSelectedScreenshotIndex:e=>e.selectedScreenshotIndex,getShowInstallAppDialog:e=>e.showInstallAppDialog,getSelectedAppToInstall:e=>e.selectedAppToInstall,getShowDeleteAppDialog:e=>e.showDeleteAppDialog,getSelectedAppToDelete:e=>e.selectedAppToDelete},actions:{setKeyMarketplaceTable(e){this.keyMarketplaceTable=e},setShowSlideDialog(e){this.showSlideDialog=e},setScreenshotUrlsList(e){this.screenshotUrlsList=e},setSelectedScreenshotIndex(e){this.selectedScreenshotIndex=e},setShowInstallAppDialog(e){this.showInstallAppDialog=e},setSelectedAppToInstall(e){this.selectedAppToInstall=e},setShowDeleteAppDialog(e){this.showDeleteAppDialog=e},setSelectedAppToDelete(e){this.selectedAppToDelete=e}}})},9281:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{constructor(){super(...arguments),this.timeout=18e4}getServicesStatus(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/services/")}))}getServicesInstallable(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/services/installables/")}))}installService(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/services/installables/",e)}))}uploadFile(e){return o(this,void 0,void 0,(function*(){return this.request.defaults.headers["Content-Type"]="multipart/form-data",this.request.post("/v1/files/upload/",e)}))}installCustomService(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/services/custom/",e)}))}updateServiceStatus(e){return o(this,void 0,void 0,(function*(){return this.request.put("/v1/services/",e)}))}}},87178:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getSystemInfo(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/o11y/overview/")}))}}},16397:(e,t,a)=>{a.d(t,{n:()=>o});var s=a(3746);const o=(0,s.Q_)("systemInfo",{state:()=>({systemInfo:{currentUsage:{cpuUsagePercent:0,memUsagePercent:0,storageUsage:0},hostname:"",publicIp:"",runtimeContext:"container",specs:{cpuCores:0,cpuFrequency:0,cpuModel:"",memoryTotal:0,storageTotal:0},uptimeSecs:0}}),getters:{getSystemInfo(e){return e.systemInfo}},actions:{setSystemInfo(e){this.systemInfo=e}}})},37747:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(20503),o=a(21809);class l{constructor(){this.localStorage=new s.Z,this.cookieService=new o.Z}logout(){this.localStorage.clearAllLocalStorage(),this.cookieService.removeToken(),setTimeout((()=>{window.open("#/login","_self")}),100)}}},69036:(e,t,a)=>{a.d(t,{Z:()=>c});var s=a(37524),o=a(21809),l=a(37747),n=a(74462),r=a(88900);class i{constructor(){this.logoutService=new l.Z,this.$i18n=n.i18n.global.t}showAuthTokenInvalided(e){const t={msg:this.$i18n("errorMessages.authTokenInvalided").toString(),type:"negative"};return(0,r.s9)(e,t.msg),setTimeout((()=>{this.logoutService.logout()}),3e3),Object.assign(e,t)}showInvalidCredentials(e){const t={msg:this.$i18n("errorMessages.invalidCredentials").toString(),type:"negative"};return Object.assign(e,t)}}class u{constructor(e){this.authError=new i,this.error=e}executeErrorHandling(){return RegExp(/InvalidAccessToken/).exec(this.error.body)?this.authError.showAuthTokenInvalided(this.error):RegExp(/InvalidCredentials/).exec(this.error.body)?this.authError.showInvalidCredentials(this.error):this.error}}class c{constructor(){this.timeoutInSeconds=180,this.timeoutInMilliseconds=18e4,this.baseURL="/_/api",this.request=s.Z.create(),this.cookieService=new o.Z,this.request=s.Z.create({baseURL:this.baseURL,timeout:this.timeoutInMilliseconds,headers:{Accept:"application/json","Content-Type":"application/json"}}),this.configHeaders(),this.interceptorsResponses(),this.interceptorsRequests()}configHeaders(){!1!==this.cookieService.hasCookie("os-access-token")&&(this.request.defaults.headers.common["Authorization"]=`Bearer ${this.cookieService.getToken()}`)}interceptorsResponses(){this.request.interceptors.response.use((e=>e),(e=>{if(!e.response)return(0,r.c0)({type:"negative",msg:n.i18n.global.t("errorMessages.networkError").toString(),position:"bottom"}),Promise.reject(new Error("Network Error"));const t=new u(e.response.data);return console.error(e),e.response.data=t.executeErrorHandling(),Promise.reject(e)}))}interceptorsRequests(){this.request.interceptors.request.use((e=>(e.timeout=this.timeoutInMilliseconds,e)),(e=>"ECONNABORTED"===e.code&&e.message.includes("timeout")?((0,r.c0)({type:"negative",msg:n.i18n.global.t("errorMessages.timeoutError").toString(),position:"bottom"}),Promise.reject(new Error("Timeout exceeded"))):Promise.reject(e)))}}},84278:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(86970);const l=(0,s.aZ)({__name:"DefaultButton",props:{color:{default:"primary"},loading:{type:Boolean,default:!1},label:{},disable:{type:Boolean,default:!1},icon:{},iconRight:{},padding:{},size:{},stack:{type:Boolean,default:!1},align:{default:"around"},outline:{type:Boolean,default:!1},noCaps:{type:Boolean,default:!0},textTooltip:{default:""},colorTooltip:{default:""}},setup(e){const t=e,a=(0,s.Fl)((()=>t.padding||t.size?"text-bold":"text-bold q-pa-md-sm"));return(e,t)=>{const l=(0,s.up)("q-spinner"),n=(0,s.up)("q-tooltip"),r=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.j4)(r,{loading:e.loading,size:e.size,padding:e.padding,label:e.label.toLowerCase(),color:e.color,icon:e.icon,"icon-right":e.iconRight,stack:e.stack,disable:e.disable,align:e.align,outline:e.outline,"no-caps":e.noCaps,style:{"font-size":"1.1326rem"},class:(0,o.C_)(a.value)},{loading:(0,s.w5)((()=>[(0,s.Wm)(l,{class:"on-left"}),(0,s.Uk)(" "+(0,o.zw)(e.label),1)])),default:(0,s.w5)((()=>[e.textTooltip?((0,s.wg)(),(0,s.j4)(n,{key:0,class:(0,o.C_)(e.colorTooltip),style:{"font-size":"14px"},offset:[10,10]},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.textTooltip),1)])),_:1},8,["class"])):(0,s.kq)("",!0)])),_:1},8,["loading","size","padding","label","color","icon","icon-right","stack","disable","align","outline","no-caps","class"])}}});var n=a(68879),r=a(13902),i=a(46858),u=a(69984),c=a.n(u);const p=l,d=p;c()(l,"components",{QBtn:n.Z,QSpinner:r.Z,QTooltip:i.Z})},15521:(e,t,a)=>{a.d(t,{Z:()=>p});var s=a(59835),o=a(60499);const l=(0,s.aZ)({__name:"DefaultInput",props:{value:{},label:{},placeholder:{default:""},icon:{default:""},disable:{type:Boolean,default:!1},type:{default:"text"},dataCy:{default:""},counter:{type:Boolean,default:!1},maxLength:{default:"32"},msgError:{default:""},isError:{type:Boolean,default:!1},suffix:{default:""},prefix:{default:""},readonly:{type:Boolean,default:!1},rules:{default:void 0}},emits:["update:value"],setup(e,{emit:t}){const a=e,l=(0,o.iH)("");return(0,s.wF)((()=>{l.value=a.value})),(0,s.YP)(l,(e=>{t("update:value",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(o,{label:e.label,placeholder:e.placeholder,type:e.type,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),modelModifiers:{trim:!0},debounce:"100","data-cy":e.dataCy,readonly:e.readonly,disable:e.disable,counter:e.counter,maxlength:e.maxLength,"error-message":e.msgError,error:e.isError,suffix:e.suffix,prefix:e.prefix,rules:e.rules,filled:""},(0,s.Nv)({_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["label","placeholder","type","modelValue","data-cy","readonly","disable","counter","maxlength","error-message","error","suffix","prefix","rules"])}}});var n=a(13119),r=a(22857),i=a(69984),u=a.n(i);const c=l,p=c;u()(l,"components",{QInput:n.Z,QIcon:r.Z})},27974:(e,t,a)=>{a.d(t,{Z:()=>f});var s=a(59835),o=a(86970),l=a(60499);const n=["innerHTML"],r=(0,s.aZ)({__name:"MultiSelect",props:{selected:{},options:{},label:{default:""},icon:{default:""}},emits:["update:selected"],setup(e,{emit:t}){const a=e,r=(0,l.iH)(a.selected);return(0,s.YP)(r,(e=>{t("update:selected",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-item-label"),i=(0,s.up)("q-item-section"),u=(0,s.up)("q-toggle"),c=(0,s.up)("q-item"),p=(0,s.up)("q-select");return(0,s.wg)(),(0,s.j4)(p,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),options:e.options,label:e.label,borderless:"",filled:"",multiple:"",class:"rounded-borders",style:{width:"100%"},"emit-value":"","map-options":"","expand-icon":"sym_s_expand_more","expanded-icon":"sym_s_expand_less"},(0,s.Nv)({option:(0,s.w5)((({itemProps:e,opt:t,selected:a,toggleOption:r})=>[(0,s.Wm)(c,(0,o.vs)((0,s.F4)(e)),{default:(0,s.w5)((()=>[(0,s.Wm)(i,null,{default:(0,s.w5)((()=>[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s._)("div",{innerHTML:t.label},null,8,n)])),_:2},1024)])),_:2},1024),(0,s.Wm)(i,{side:""},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{"model-value":a,"onUpdate:modelValue":e=>r(t)},null,8,["model-value","onUpdate:modelValue"])])),_:2},1024)])),_:2},1040)])),_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["modelValue","options","label"])}}});var i=a(32259),u=a(22857),c=a(490),p=a(76749),d=a(33115),m=a(23175),g=a(69984),v=a.n(g);const h=r,f=h;v()(r,"components",{QSelect:i.Z,QIcon:u.Z,QItem:c.Z,QItemSection:p.Z,QItemLabel:d.Z,QToggle:m.Z})},26557:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(60499),l=a(25121);const n=(0,s.aZ)({__name:"PasswordInput",props:{password:{default:""},dataCyInput:{default:""},isReadonly:{type:Boolean,default:!1},minLength:{default:6},maxLength:{default:64}},emits:["update:password"],setup(e,{emit:t}){const a=e,n=(0,l.QT)().t,r=(0,o.iH)(""),i=(0,o.iH)(!0);(0,s.wF)((()=>{r.value=a.password})),(0,s.YP)(r,(e=>{t("update:password",e)})),(0,s.YP)((()=>a.password),(e=>{r.value=e}));const u=[e=>e.length>=a.minLength||`${n("form.passwordInput.invalidPassword",{minLength:a.minLength})}`];return(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(o,{label:e.$t("form.passwordInput.inputPassword"),readonly:e.isReadonly,type:i.value?"password":"text",rules:u,modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),modelModifiers:{trim:!0},maxlength:e.maxLength,debounce:"100",borderless:"","data-cy":e.dataCyInput,filled:""},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_lock"})])),append:(0,s.w5)((()=>[(0,s.Wm)(a,{name:i.value?"sym_s_visibility_off":"sym_s_visibility",class:"cursor-pointer",onClick:t[0]||(t[0]=e=>i.value=!i.value)},null,8,["name"])])),_:1},8,["label","readonly","type","modelValue","maxlength","data-cy"])}}});var r=a(13119),i=a(22857),u=a(69984),c=a.n(u);const p=n,d=p;c()(n,"components",{QInput:r.Z,QIcon:i.Z})},94629:(e,t,a)=>{a.d(t,{Z:()=>p});var s=a(59835),o=a(60499);const l=(0,s.aZ)({__name:"SingleSelect",props:{options:{},label:{default:""},icon:{default:""},emitValue:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},msgError:{default:""},isError:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisable:{type:Boolean,default:!1},selected:{default:""}},emits:["update:selected"],setup(e,{emit:t}){const a=e,l=(0,o.iH)(a.selected),n=(0,o.iH)(a.options);return(0,s.YP)((()=>a.selected),(e=>{l.value=e}),{immediate:!0}),(0,s.YP)(l,(e=>{t("update:selected",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-select");return(0,s.wg)(),(0,s.j4)(o,{options:n.value,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),label:e.label,debounce:"100","emit-value":e.emitValue,"map-options":"",borderless:"","stack-label":"",clearable:e.clearable,"error-message":e.msgError,error:e.isError,loading:e.isLoading,disable:e.isDisable,filled:""},(0,s.Nv)({_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["options","modelValue","label","emit-value","clearable","error-message","error","loading","disable"])}}});var n=a(32259),r=a(22857),i=a(69984),u=a.n(i);const c=l,p=c;u()(l,"components",{QSelect:n.Z,QIcon:r.Z})},67377:(e,t,a)=>{a.d(t,{Z:()=>u});var s=a(59835),o=a(86970),l=a(60499);const n={class:"default-chip-text q-px-xs"},r=(0,s.aZ)({__name:"CustomChip",props:{labelLeft:{},labelRight:{},color:{default:"#c97350"},textColor:{default:"#fff"},fontSize:{default:"1.2499rem"}},setup(e){const t=e,a=(0,l.iH)({}),r=(0,l.iH)({});return(0,s.bv)((()=>{a.value={backgroundColor:t.color,color:t.textColor},r.value={border:"1px solid "+t.color,borderRadius:"5px",fontSize:t.fontSize}})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{style:(0,o.j5)(r.value)},[(0,s._)("div",{class:"q-px-xs float-left",style:(0,o.j5)(a.value)},(0,o.zw)(e.labelLeft),5),(0,s._)("span",n,(0,o.zw)(e.labelRight),1)],4))}}),i=r,u=i},99573:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(86970);const l={class:"default-chip-text"},n=(0,s.aZ)({__name:"DefaultChip",props:{icon:{default:""},label:{},color:{default:"primary"}},setup(e){return(e,t)=>{const a=(0,s.up)("q-avatar"),n=(0,s.up)("q-chip");return(0,s.wg)(),(0,s.j4)(n,{square:"",class:"text-primary",outline:""},{default:(0,s.w5)((()=>[(0,s.Wm)(a,{icon:e.icon,color:e.color,"text-color":"white","font-size":"1.2499rem"},null,8,["icon","color"]),(0,s._)("span",l,(0,o.zw)(e.label),1)])),_:1})}}});var r=a(57691),i=a(61357),u=a(69984),c=a.n(u);const p=n,d=p;c()(n,"components",{QChip:r.Z,QAvatar:i.Z})},89906:(e,t,a)=>{a.d(t,{Z:()=>x});var s=a(59835),o=a(86970),l=a(60499);const n={class:"column items-center"},r={class:"col q-mb-md"},i={class:"q-pa-sm",style:{"border-radius":"50%",height:"auto"}},u={class:"col"},c={class:"title-dialog text-negative q-mb-md"},p={class:"col"},d=["innerHTML"],m={class:"text-bold",style:{"font-size":"0.9708rem"}},g=(0,s.aZ)({__name:"DeleteDialog",props:{showDeleteDialog:{type:Boolean},titleDialog:{},imagePath:{},messageToDelete:{},warningToDelete:{},customStyle:{}},emits:["update:showDeleteDialog"],setup(e,{emit:t}){const a=e,g=(0,l.iH)(a.showDeleteDialog);return(0,s.YP)((()=>a.showDeleteDialog),(e=>{g.value=e})),(0,s.YP)(g,(e=>{t("update:showDeleteDialog",e)})),(e,t)=>{const a=(0,s.up)("q-img"),l=(0,s.up)("q-icon"),v=(0,s.up)("q-card-section"),h=(0,s.up)("q-card-actions"),f=(0,s.up)("q-card"),w=(0,s.up)("q-dialog");return(0,s.wg)(),(0,s.j4)(w,{modelValue:g.value,"onUpdate:modelValue":t[0]||(t[0]=e=>g.value=e),persistent:""},{default:(0,s.w5)((()=>[(0,s.Wm)(f,{class:"bg-card dialog-card-bg",style:{"min-width":"450px","border-radius":"16px"}},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:"q-px-none"},{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",r,[(0,s._)("div",i,[e.imagePath?((0,s.wg)(),(0,s.j4)(a,{key:0,src:e.imagePath,style:{width:"62px",height:"62px"}},null,8,["src"])):((0,s.wg)(),(0,s.j4)(l,{key:1,name:"sym_s_warning",size:"62px",color:"negative"}))])]),(0,s._)("div",u,[(0,s._)("div",c,(0,o.zw)(e.titleDialog),1)]),(0,s._)("div",p,[(0,s._)("p",{style:{"font-size":"1.2135rem"},innerHTML:e.messageToDelete},null,8,d)]),(0,s._)("div",null,[(0,s._)("p",m,(0,o.zw)(e.warningToDelete),1)])])])),_:1}),(0,s.Wm)(h,{align:"between",class:"q-px-none"},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"card-actions")])),_:3})])),_:3})])),_:3},8,["modelValue"])}}});var v=a(32074),h=a(44458),f=a(63190),w=a(70335),y=a(22857),b=a(11821),D=a(69984),_=a.n(D);const k=g,x=k;_()(g,"components",{QDialog:v.Z,QCard:h.Z,QCardSection:f.Z,QImg:w.Z,QIcon:y.Z,QCardActions:b.Z})},87713:(e,t,a)=>{a.d(t,{Z:()=>m});var s=a(59835),o=a(60499),l=a(25121),n=a(88900);const r=(0,s.aZ)({__name:"GeneratePassword",props:{password:{default:""},dataCy:{default:""},lenPassword:{default:16},lenLowerCasePart:{default:1},lenUpperCasePart:{default:1},lenNumericPart:{default:1},lenSpecialCharacterPart:{default:1}},emits:["update:password"],setup(e,{emit:t}){const a=e,r=(0,o.iH)(null),i=(0,l.QT)().t;function u(){let e="";const s=a.lenPassword-a.lenLowerCasePart-a.lenUpperCasePart-a.lenNumericPart-a.lenSpecialCharacterPart;e+=c(a.lenLowerCasePart,"lowerCase"),e+=c(a.lenUpperCasePart,"upperCase"),e+=c(a.lenNumericPart,"numeric"),e+=c(a.lenSpecialCharacterPart,"symbol"),e+=c(s,"default"),e=e.split("").sort((function(){return.5-Math.random()})).join(""),t("update:password",e),p(e)}function c(e,t){let a="";switch(t){case"lowerCase":a="abcdefghijklmnopqrstuvwxyz";break;case"upperCase":a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";break;case"numeric":a="0123456789";break;case"symbol":a="%?)(*><";break;default:a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789%?)(*><"}let s="";for(let o=0;o{const a=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.iD)("div",null,[(0,s.Wm)(a,{"data-cy":e.dataCy,label:e.$t("generatePassword.btnGeneratePassword"),class:"text-bold","no-caps":"",unelevated:"",rounded:"",outline:"",size:"11px",padding:"2px 10px",onClick:t[0]||(t[0]=e=>u())},null,8,["data-cy","label"]),(0,s._)("input",{type:"hidden",ref_key:"clipboard",ref:r,value:""},null,512)])}}});var i=a(11639),u=a(68879),c=a(69984),p=a.n(c);const d=(0,i.Z)(r,[["__scopeId","data-v-617700b8"]]),m=d;p()(r,"components",{QBtn:u.Z})},35274:(e,t,a)=>{a.d(t,{Z:()=>y});var s=a(59835),o=a(86970),l=a(60499),n=a(88900),r=a(9281),i=a(84278),u=a(45273),c=a(25121);const p={class:"text-h6"},d=(0,s.aZ)({__name:"ServiceInstallButton",props:{serviceName:{}},emits:["update:isInstalledService"],setup(e,{emit:t}){const a=e,d=(0,c.QT)().t,m=(0,l.iH)(!1);function g(){(0,u.Q)();const e=new r.Z;m.value=!0,e.installService({name:a.serviceName.toLowerCase()}).then((()=>{(0,n.LX)(d("servicesStatusTableActions.installSuccess")),t("update:isInstalledService",!0)})).catch((e=>{console.error(e),(0,n.s9)(e.response.data,d("servicesStatusTableActions.installError")),t("update:isInstalledService",!1)})).finally((()=>{m.value=!1,(0,u.Z)()}))}return(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-card-section"),n=(0,s.up)("q-card");return(0,s.wg)(),(0,s.j4)(n,{flat:"",style:{height:"80vh"}},{default:(0,s.w5)((()=>[(0,s.Wm)(l,{class:"row justify-start items-center q-gutter-lg"},{default:(0,s.w5)((()=>[(0,s._)("div",p,[(0,s.Wm)(a,{name:"sym_s_warning",class:"text-warning q-mr-md",size:"md"}),(0,s.Uk)(" "+(0,o.zw)(e.$t("serviceInstallButton.uninstalledService",{serviceName:e.serviceName})),1)]),(0,s.Wm)(i.Z,{color:"primary",icon:"sym_s_download_for_offline",loading:m.value,label:e.$t("serviceInstallButton.installService",{serviceName:e.serviceName}),onClick:t[0]||(t[0]=e=>g())},null,8,["loading","label"])])),_:1})])),_:1})}}});var m=a(44458),g=a(63190),v=a(22857),h=a(69984),f=a.n(h);const w=d,y=w;f()(d,"components",{QCard:m.Z,QCardSection:g.Z,QIcon:v.Z})},63064:(e,t,a)=>{a.d(t,{Z:()=>C});var s=a(59835),o=a(86970),l=a(60499),n=a(25121);const r={class:"q-pt-md"},i={class:"q-gutter-y-md column"},u=["textContent"],c={key:1,style:{"line-height":"1.68rem"}},p={key:0,class:"q-pr-sm"},d={key:1,class:"q-pr-sm"},m={key:0,class:"q-pr-sm"},g={key:1,class:"q-pr-sm"},v={key:0,class:"q-pr-sm"},h={key:1,class:"q-pr-sm"},f={key:0,class:"q-pr-sm"},w={key:1,class:"q-pr-sm"},y={key:0,class:"q-pr-sm"},b={key:1,class:"q-pr-sm"},D={key:0,class:"q-pr-sm"},_={key:1,class:"q-pr-sm"},k={key:2},x=(0,s.aZ)({__name:"StrongPasswordStrength",props:{password:{},minPasswordLength:{default:16},maxPasswordLength:{default:64}},emits:["update:isValidPassword"],setup(e,{emit:t}){const a=e,x=(0,n.QT)().t,q=(0,l.iH)(0),Z=(0,l.iH)([]),S={showError:!1,msgError:`${x("strongPasswordStrength.isTooShort",{minPasswordLength:a.minPasswordLength})}`},P={showError:!1,msgError:`${x("strongPasswordStrength.isTooLong",{maxPasswordLength:a.maxPasswordLength})}`},C={showError:!1,msgError:`${x("strongPasswordStrength.hasNumber")}`},T={showError:!1,msgError:`${x("strongPasswordStrength.hasUpperCases")}`},A={showError:!1,msgError:`${x("strongPasswordStrength.hasLowerCases")}`},I={showError:!1,msgError:`${x("strongPasswordStrength.hasReservedCharSuccess")}`},M=(0,s.Fl)((()=>{let e="red";return q.value<=.3&&(e="red"),q.value>.3&&q.value<=.6&&(e="orange"),q.value>.6&&q.value<=.9&&(e="yellow"),1===q.value&&(e="green"),e}));return(0,s.YP)((()=>a.password),(e=>{const s=/[\!\@\#\$\&\=\'\"\`\|]+/i;q.value=0,S.showError=e.lengtha.maxPasswordLength,C.showError=!/\d/.test(e),T.showError=!/[A-Z]/.test(e),A.showError=!/[a-z]/.test(e),I.showError=s.test(e),e.length>=a.minPasswordLength&&e.length<=a.maxPasswordLength&&(q.value=q.value+.2),/\d/.test(e)&&(q.value=q.value+.2),/[A-Z]/.test(e)&&(q.value=q.value+.2),/[a-z]/.test(e)&&(q.value=q.value+.2),s.test(e)?(Z.value=[...new Set(Array.from(e).filter((e=>s.test(e))))],I.msgError=`${x("strongPasswordStrength.hasReservedCharError")}`):(I.msgError=`${x("strongPasswordStrength.hasReservedCharSuccess")}`,q.value=q.value+.2),t("update:isValidPassword",1===q.value)})),(e,t)=>{const a=(0,s.up)("q-linear-progress");return(0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("div",i,[(0,s.Wm)(a,{size:"10px",value:q.value,color:M.value,class:"q-my-sm"},null,8,["value","color"])]),1===q.value?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"text-positive q-pb-sm",textContent:(0,o.zw)(e.$t("strongPasswordStrength.securePassword"))},null,8,u)):((0,s.wg)(),(0,s.iD)("div",c,[(0,s._)("div",{class:(0,o.C_)(S.showError?"text-negative":"text-positive")},[S.showError?((0,s.wg)(),(0,s.iD)("span",p,"❌")):((0,s.wg)(),(0,s.iD)("span",d,"✅")),(0,s.Uk)(" "+(0,o.zw)(S.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(P.showError?"text-negative":"text-positive")},[P.showError?((0,s.wg)(),(0,s.iD)("span",m,"❌")):((0,s.wg)(),(0,s.iD)("span",g,"✅")),(0,s.Uk)(" "+(0,o.zw)(P.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(C.showError?"text-negative":"text-positive")},[C.showError?((0,s.wg)(),(0,s.iD)("span",v,"❌")):((0,s.wg)(),(0,s.iD)("span",h,"✅")),(0,s.Uk)(" "+(0,o.zw)(C.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(T.showError?"text-negative":"text-positive")},[T.showError?((0,s.wg)(),(0,s.iD)("span",f,"❌")):((0,s.wg)(),(0,s.iD)("span",w,"✅")),(0,s.Uk)(" "+(0,o.zw)(T.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(A.showError?"text-negative":"text-positive")},[A.showError?((0,s.wg)(),(0,s.iD)("span",y,"❌")):((0,s.wg)(),(0,s.iD)("span",b,"✅")),(0,s.Uk)(" "+(0,o.zw)(A.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(I.showError?"text-negative":"text-positive")},[I.showError?((0,s.wg)(),(0,s.iD)("span",D,"❌")):((0,s.wg)(),(0,s.iD)("span",_,"✅")),(0,s.Uk)(" "+(0,o.zw)(I.msgError)+" ",1),I.showError?((0,s.wg)(),(0,s.iD)("span",k,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(Z.value,((e,t)=>((0,s.wg)(),(0,s.iD)("span",{key:t,style:{"font-weight":"bold"}},(0,o.zw)(e),1)))),128))])):(0,s.kq)("",!0)],2)]))])}}});var q=a(8289),Z=a(69984),S=a.n(Z);const P=x,C=P;S()(x,"components",{QLinearProgress:q.Z})},88850:(e,t,a)=>{a.d(t,{Z:()=>k});var s=a(59835),o=a(61957),l=a(60499),n=a(72622),r=a.n(n);const i=(0,s.aZ)({__name:"MailAddressInput",props:{mailAddress:{default:""},suffix:{default:""},dataCyInput:{default:""}},emits:["update:isValidMail","update:mailAddressWithSuffix","update:mailAddress"],setup(e,{emit:t}){const a=e,o=(0,l.iH)(""),n=(0,s.Fl)((()=>r()(`${o.value}${a.suffix}`)));return(0,s.YP)((()=>a.mailAddress),(e=>{o.value=e})),(0,s.YP)(n,(e=>{t("update:isValidMail",e)})),(0,s.YP)(o,(e=>{t("update:mailAddress",e),t("update:mailAddressWithSuffix",`${e}${a.suffix}`)})),(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(l,{label:e.$t("form.mailAddressInput.inputMail"),type:e.suffix?"text":"email",rules:[()=>n.value||e.$t("form.mailAddressInput.invalidMail")],modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),modelModifiers:{trim:!0},debounce:"100",suffix:e.suffix,borderless:"","data-cy":e.dataCyInput,filled:""},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_alternate_email"})])),_:1},8,["label","type","rules","modelValue","suffix","data-cy"])}}});var u=a(13119),c=a(22857),p=a(69984),d=a.n(p);const m=i,g=m;d()(i,"components",{QInput:u.Z,QIcon:c.Z});var v=a(26557),h=a(87713),f=a(63064);const w={key:3,class:"q-my-md"},y={style:{"margin-top":"24px"}},b=(0,s.aZ)({__name:"MarketplaceDataFields",props:{label:{},name:{},type:{},defaultValue:{default:""},isRequired:{type:Boolean,default:!1},options:{default:[]}},emits:["update:dataFields"],setup(e,{emit:t}){const a=e,n=(0,l.iH)(a.defaultValue),r=()=>e=>!!e||!a.isRequired||"This field is required";return(0,s.YP)(n,(e=>{t("update:dataFields",{key:a.name,value:e})}),{immediate:!0}),(e,t)=>{const l=(0,s.up)("q-input"),i=(0,s.up)("q-select");return(0,s.wg)(),(0,s.iD)(s.HY,null,["text"===e.type&&0===e.options.length?((0,s.wg)(),(0,s.j4)(l,{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),label:a.label,filled:"",rules:e.isRequired?[r()]:[],class:"q-my-md"},null,8,["modelValue","label","rules"])):(0,s.kq)("",!0),"text"===e.type&&e.options.length>0?((0,s.wg)(),(0,s.j4)(i,{key:1,modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=e=>n.value=e),label:e.label,filled:"",options:e.options,class:"q-mt-md q-mb-lg"},null,8,["modelValue","label","options"])):(0,s.kq)("",!0),"email"===e.type?((0,s.wg)(),(0,s.j4)(g,{key:2,mailAddress:n.value,"onUpdate:mailAddress":t[2]||(t[2]=e=>n.value=e),class:"q-my-md"},null,8,["mailAddress"])):(0,s.kq)("",!0),"password"===e.type?((0,s.wg)(),(0,s.iD)("div",w,[(0,s._)("div",null,[(0,s.Wm)(v.Z,{password:n.value,"onUpdate:password":t[3]||(t[3]=e=>n.value=e)},null,8,["password"]),(0,s.Wm)(h.Z,{password:n.value,"onUpdate:password":t[4]||(t[4]=e=>n.value=e),class:"float-right",style:{position:"relative",top:"-10px"}},null,8,["password"])]),(0,s._)("div",y,[(0,s.wy)((0,s.Wm)(f.Z,{password:n.value,minPasswordLength:6},null,8,["password"]),[[o.F8,n.value.length>0]])])])):(0,s.kq)("",!0)],64)}}});var D=a(32259);const _=b,k=_;d()(b,"components",{QInput:u.Z,QSelect:D.Z})},84019:(e,t,a)=>{a.d(t,{Z:()=>g});var s=a(59835),o=a(25121),l=a(84278),n=a(89906),r=a(45273),i=a(88900),u=a(19302),c=a(62601),p=a(9704);const d=(0,s.aZ)({__name:"MarketplaceDeleteAppDialog",setup(e){const t=(0,o.QT)().t,a=(0,c.R)(),d=(0,s.Fl)({get:()=>a.getShowDeleteAppDialog,set:e=>{a.setShowDeleteAppDialog(e)}}),m=(0,s.Fl)({get:()=>a.getKeyMarketplaceTable,set:e=>{a.setKeyMarketplaceTable(e)}}),g=(0,s.Fl)((()=>a.getSelectedAppToDelete)),v=(0,s.Fl)((()=>{const e=(0,u.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));function h(){d.value=!1}function f(){const e=new p.Z;(0,r.Q)(),e.uninstallApp(g.value.id.toString()).then((()=>{(0,i.LX)(`${t("marketplaceDeleteAppDialog.deleteAppSuccess")}`),setTimeout((()=>{h(),m.value++}),100)})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${t("marketplaceDeleteAppDialog.deleteAppWithError")}`)})).finally((()=>{(0,r.Z)()}))}return(e,t)=>((0,s.wg)(),(0,s.j4)(n.Z,{showDeleteDialog:d.value,"onUpdate:showDeleteDialog":t[2]||(t[2]=e=>d.value=e),titleDialog:e.$t("marketplaceDeleteAppDialog.title"),imagePath:v.value,messageToDelete:e.$t("marketplaceDeleteAppDialog.confirmRemoveApp",{appName:g.value.name}),warningToDelete:e.$t("marketplaceDeleteAppDialog.warningRemoveApp")},{"card-actions":(0,s.w5)((()=>[(0,s.Wm)(l.Z,{label:e.$t("marketplaceDeleteAppDialog.cancelBtn"),color:"grey-8",onClick:t[0]||(t[0]=e=>h())},null,8,["label"]),(0,s.Wm)(l.Z,{icon:"sym_s_delete",label:e.$t("marketplaceDeleteAppDialog.confirmBtn"),color:"negative",onClick:t[1]||(t[1]=e=>f())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","imagePath","messageToDelete","warningToDelete"]))}}),m=d,g=m},21647:(e,t,a)=>{a.d(t,{Z:()=>b});var s=a(59835),o=a(60499),l=a(94629),n=a(15521),r=a(60016),i=a(88900),u=a(25121);const c={key:0},p={key:1},d={class:"flex items-center q-gutter-sm"},m={style:{width:"70%"}},g={style:{width:"28%"}},v=(0,s.aZ)({__name:"MarketplaceInstallDirectory",emits:["update:selectedHostname","update:installDirectory"],setup(e,{emit:t}){const a=(0,u.QT)().t,v=(0,o.iH)(!1),h=(0,o.iH)([]),f=(0,o.iH)([]),w=(0,o.iH)(""),y=(0,o.iH)("");function b(){v.value=!0;const e=new r.Z;e.getVirtualHosts().then((e=>{0!==e.data.body.length&&(h.value=e.data.body,f.value=e.data.body.map((e=>e.hostname)),w.value=f.value[0])})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,a("marketplaceInstallAppDialog.getVirtualHostsWithError"))})).finally((()=>{v.value=!1}))}return(0,s.bv)((()=>{b()})),(0,s.YP)(w,(e=>{t("update:selectedHostname",e)})),(0,s.YP)(y,(e=>{t("update:installDirectory",e)})),(e,t)=>{const a=(0,s.up)("q-skeleton");return!0===v.value?((0,s.wg)(),(0,s.iD)("div",c,[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(2,(e=>(0,s.Wm)(a,{animation:"wave",height:"60px",class:"q-mb-md",key:e}))),64))])):((0,s.wg)(),(0,s.iD)("div",p,[(0,s._)("div",d,[(0,s._)("div",m,[(0,s.Wm)(l.Z,{selected:w.value,"onUpdate:selected":t[0]||(t[0]=e=>w.value=e),label:e.$t("marketplaceInstallAppDialog.hostnameSelect"),options:f.value},null,8,["selected","label","options"])]),(0,s._)("div",g,[(0,s.Wm)(n.Z,{prefix:"/",value:y.value,"onUpdate:value":t[1]||(t[1]=e=>y.value=e),label:e.$t("marketplaceInstallAppDialog.installDirectory")},null,8,["value","label"])])])]))}}});var h=a(57133),f=a(69984),w=a.n(f);const y=v,b=y;w()(v,"components",{QSkeleton:h.ZP})},97510:(e,t,a)=>{a.d(t,{Z:()=>U});var s=a(59835),o=a(86970),l=a(60499),n=a(67377);const r={class:"flex items-center"},i=["src"],u={class:"td-main-app-name"},c={class:"q-mt-sm"},p=(0,s.aZ)({__name:"MarketplaceTableTdMain",props:{avatarUrl:{},appName:{},type:{},path:{}},setup(e){const t=e;function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(e,l)=>((0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("div",r,[(0,s._)("img",{src:e.avatarUrl,class:"td-main-avatar"},null,8,i),(0,s._)("div",u,(0,o.zw)(t.appName),1)]),(0,s._)("div",c,[(0,s.Wm)(n.Z,{labelLeft:a(e.type),labelRight:e.path,fontSize:"0.9708rem"},null,8,["labelLeft","labelRight"])])],64))}}),d=p,m=d;var g=a(62601);const v=(0,s.aZ)({__name:"MarketplaceTableTdActions",props:{app:{}},setup(e){const t=e,a=(0,g.R)(),n=(0,l.iH)(!1);function r(){a.setSelectedAppToDelete(t.app),a.setShowDeleteAppDialog(!0)}return(e,t)=>{const a=(0,s.up)("q-tooltip"),l=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.j4)(l,{onClick:t[0]||(t[0]=e=>r()),loading:n.value,color:"negative",size:"md",icon:"sym_s_delete_forever"},{default:(0,s.w5)((()=>[(0,s.Wm)(a,{class:"bg-negative text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("marketplaceTableTdActions.uninstallBtn")),1)])),_:1})])),_:1},8,["loading"])}}});var h=a(68879),f=a(46858),w=a(69984),y=a.n(w);const b=v,D=b;y()(v,"components",{QBtn:h.Z,QTooltip:f.Z});var _=a(84278),k=a(50168);const x={class:"row justify-center q-mt-md"},q=(0,s.aZ)({__name:"MarketplaceInstalledTable",props:{installedAppsList:{},showInstallAppBtn:{type:Boolean,default:!0}},setup(e){const t=e,a=(0,g.R)(),n=(0,l.iH)(""),r=(0,l.iH)({sortBy:"desc",descending:!1,page:1,rowsPerPage:10}),i=(0,s.Fl)((()=>Math.ceil(t.installedAppsList.length/r.value.rowsPerPage)));function u(){a.setShowInstallAppDialog(!0)}return(e,t)=>{const a=(0,s.up)("q-icon"),c=(0,s.up)("q-input"),p=(0,s.up)("q-space"),d=(0,s.up)("q-th"),g=(0,s.up)("q-tr"),v=(0,s.up)("q-td"),h=(0,s.up)("q-table"),f=(0,s.up)("q-pagination");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(h,{rows:e.installedAppsList,filter:n.value,pagination:r.value,"onUpdate:pagination":t[2]||(t[2]=e=>r.value=e),"no-data-label":e.$t("overviewMarketplaceTable.noDataLabel"),"row-key":"key",color:"primary",flat:"",bordered:"","hide-pagination":""},{top:(0,s.w5)((()=>[(0,s.Wm)(c,{borderless:"",debounce:"300",color:"primary",modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),label:e.$t("overviewMarketplaceTable.searchInput")},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,s.Wm)(p),!0===e.showInstallAppBtn?((0,s.wg)(),(0,s.j4)(_.Z,{key:0,label:e.$t("overviewMarketplaceTable.installBtn"),color:"primary",icon:"sym_s_store",onClick:t[1]||(t[1]=e=>u())},null,8,["label"])):(0,s.kq)("",!0)])),header:(0,s.w5)((t=>[(0,s.Wm)(g,{props:t},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{class:"marketplace-table-th-main"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.appNameColumn")),1)])),_:1}),(0,s.Wm)(d,{class:"marketplace-table-th"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.installDirectoryColumn")),1)])),_:1}),(0,s.Wm)(d,{class:"marketplace-table-th"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.createdAtColumn")),1)])),_:1}),(0,s.Wm)(d)])),_:2},1032,["props"])])),body:(0,s.w5)((e=>[(0,s.Wm)(g,{props:e},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:"td-main-table"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{avatarUrl:e.row.avatarUrl,appName:e.row.name,type:e.row.type,path:e.row.hostname+e.row.urlPath},null,8,["avatarUrl","appName","type","path"])])),_:2},1024),(0,s.Wm)(v,{class:"text-center"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.row.installDirectory),1)])),_:2},1024),(0,s.Wm)(v,{class:"text-center"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)((0,l.SU)(k.Z)({epoch:e.row.createdAt,onlyDate:!0})),1)])),_:2},1024),(0,s.Wm)(v,{class:"text-right"},{default:(0,s.w5)((()=>[(0,s.Wm)(D,{app:e.row},null,8,["app"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","filter","pagination","no-data-label"]),(0,s._)("div",x,[(0,s.Wm)(f,{modelValue:r.value.page,"onUpdate:modelValue":t[3]||(t[3]=e=>r.value.page=e),color:"primary",max:i.value,size:"md"},null,8,["modelValue","max"])])],64)}}});var Z=a(84277),S=a(13119),P=a(22857),C=a(90136),T=a(31233),A=a(21682),I=a(67220),M=a(80996);const E=q,U=E;y()(q,"components",{QTable:Z.Z,QInput:S.Z,QIcon:P.Z,QSpace:C.Z,QTr:T.Z,QTh:A.Z,QTd:I.Z,QPagination:M.Z})}}]); \ No newline at end of file diff --git a/src/presentation/ui/dist/js/chunk-common.9772496c.js b/src/presentation/ui/dist/js/chunk-common.9772496c.js deleted file mode 100644 index 0a1044ff9..000000000 --- a/src/presentation/ui/dist/js/chunk-common.9772496c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunksos_dash"]=self["webpackChunksos_dash"]||[]).push([[64],{85118:(e,t,a)=>{a.d(t,{V:()=>o});var s=a(3746);const o=(0,s.Q_)("refreshRate",{state:()=>({selectedRefreshRate:20}),getters:{getSelectedRefreshRate(e){return e.selectedRefreshRate}},actions:{setSelectedRefreshRate(e){this.selectedRefreshRate=e}}})},45273:(e,t,a)=>{a.d(t,{Q:()=>n,Z:()=>r});var s=a(26950),o=a(93382),l=a(74462);function n(e=l.i18n.global.t("loading.messageDefault"),t=!1){s.Z.show({spinner:o.Z,spinnerColor:"primary",spinnerSize:140,backgroundColor:"black",message:`${e}`,messageColor:"white",html:t})}function r(){s.Z.hide()}},88900:(e,t,a)=>{a.d(t,{LX:()=>n,c0:()=>o,s9:()=>l});var s=a(6827);function o(e){const t="warning"===e.type?"black":"white";s.Z.create({color:e.type,textColor:t,message:e.msg,position:e.position,html:!!e.html&&e.html,actions:[{icon:"sym_s_cancel",color:t}]})}function l(e,t,a="bottom",s=!1){const l=e.hasOwnProperty("msg")?e.msg:`${t.slice(0,-1)}: ${e.body}`,n=e.hasOwnProperty("type")?e.type:"negative";o({msg:`${l}`,position:a,type:`${n}`,html:s})}function n(e,t="bottom",a=!1){o({msg:e,position:t,type:"positive",html:a})}},50168:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(74462),o=a(4376);const l=s.i18n.global.t;function n(e){if(0===e.epoch)return l("components.sharedComponents.formatDate.dateNotFound");const t=new Date(0).setUTCSeconds(e.epoch);return!0===e.onlyDate?o.ZP.formatDate(t,"DD/MM/YYYY"):o.ZP.formatDate(t,"DD/MM/YYYY hh:mm:ss")}},73451:(e,t,a)=>{function s(e){if(!e)return"";const t={nginx:"NGINX",redis:"Redis",mysql:"MySQL",postgresql:"PostgreSQL",openlitespeed:"OpenLiteSpeed",node:"Node.js",mariadb:"MariaDB",php:"PHP WebServer","php-webserver":"PHP WebServer","sos-api":"Speedia OS API"},a=t[e.toLowerCase()];if(a)return a;const s=e.charAt(0).toUpperCase()+e.slice(1);return s}a.d(t,{R:()=>s})},25971:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{createAccount(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/account/",e)}))}getAccounts(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/account/")}))}updateAccount(e){return o(this,void 0,void 0,(function*(){return this.request.put("/v1/account/",e)}))}deleteAccount(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`/v1/account/${e}/`)}))}}},18892:(e,t,a)=>{a.d(t,{Z:()=>r});var s=a(69036),o=a(74462),l=a(85027),n=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class r extends s.Z{constructor(){super(...arguments),this.timeout=12e4}getCurrentPath(e){return n(this,void 0,void 0,(function*(){return this.request.get(`/v1/files/?sourcePath=${e}`)}))}getFileDownloadBlob(e){return n(this,void 0,void 0,(function*(){return new Promise(((t,a)=>{this.request.get("/v1/files/?sourcePath="+e.path).then((s=>{0===s.data.body.length&&a({error:null,msg:`${o.i18n.global.t("fileManagerToolbarBtnDownload.msgDownloadError",{fileName:e.name})}`});const n=""!==e.extension?e.extension:"txt",r=l.g.includes(n);let i="application/"+n;r&&(i="application/octet-binary; charset=utf-8"),t(new Blob([s.data.body[0].content],{type:i}))})).catch((t=>{a({error:t,msg:`${o.i18n.global.t("fileManagerToolbarBtnDownload.msgDownloadError",{fileName:e.name})}`})}))}))}))}createFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/",e)}))}uploadFile(e){return n(this,void 0,void 0,(function*(){return this.request.defaults.headers["Content-Type"]="multipart/form-data",this.request.post("/v1/files/upload/",e)}))}compressFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/compress/",e)}))}copyFile(e){return n(this,void 0,void 0,(function*(){return this.request.post("/v1/files/copy/",e)}))}updateFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/",e)}))}extractFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/extract/",e)}))}removeFile(e){return n(this,void 0,void 0,(function*(){return this.request.put("/v1/files/delete/",e)}))}}},85027:(e,t,a)=>{a.d(t,{g:()=>s});const s=["zip","rar","tar.gz","gzip","tar","gz","tgz"]},62120:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getMappings(){return o(this,void 0,void 0,(function*(){return this.request.get("v1/vhosts/mapping/")}))}createMappings(e){return o(this,void 0,void 0,(function*(){return this.request.post("v1/vhosts/mapping/",e)}))}deleteMappings(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`v1/vhosts/mapping/${e.mappingId}/`)}))}}},60016:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getVirtualHosts(){return o(this,void 0,void 0,(function*(){return this.request.get("v1/vhosts/")}))}createVirtualHost(e){return o(this,void 0,void 0,(function*(){return this.request.post("v1/vhosts/",e)}))}deleteVirtualHost(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`v1/vhosts/${e}/`)}))}}},39697:(e,t,a)=>{a.d(t,{i:()=>o});var s=a(3746);const o=(0,s.Q_)("mappings",{state:()=>({keyMappingsTable:0,selectedMapping:{},showCreateMappingDialog:!1,showDeleteMappingDialog:!1,selectedDeleteMapping:{}}),getters:{getKeyMappingsTable(e){return e.keyMappingsTable},getSelectedMapping(e){return e.selectedMapping},getShowCreateMappingDialog(e){return e.showCreateMappingDialog},getShowDeleteMappingDialog(e){return e.showDeleteMappingDialog},getSelectedDeleteMapping(e){return e.selectedDeleteMapping}},actions:{setKeyMappingsTable(e){this.keyMappingsTable=e},setSelectedMapping(e){this.selectedMapping=e},setShowCreateMappingDialog(e){this.showCreateMappingDialog=e},setShowDeleteMappingDialog(e){this.showDeleteMappingDialog=e},setSelectedDeleteMapping(e){this.selectedDeleteMapping=e}}})},9704:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getCatalog(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/marketplace/catalog/")}))}installApp(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/marketplace/catalog/",e)}))}getInstalledApps(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/marketplace/installed/")}))}uninstallApp(e){return o(this,void 0,void 0,(function*(){return this.request.delete(`/v1/marketplace/installed/${e}/`)}))}}},62601:(e,t,a)=>{a.d(t,{R:()=>o});var s=a(3746);const o=(0,s.Q_)("marketplace",{state:()=>({keyMarketplaceTable:0,showSlideDialog:!1,screenshotUrlsList:[],selectedScreenshotIndex:0,showInstallAppDialog:!1,selectedAppToInstall:{},showDeleteAppDialog:!1,selectedAppToDelete:{}}),getters:{getKeyMarketplaceTable:e=>e.keyMarketplaceTable,getShowSlideDialog:e=>e.showSlideDialog,getScreenshotUrlsList:e=>e.screenshotUrlsList,getSelectedScreenshotIndex:e=>e.selectedScreenshotIndex,getShowInstallAppDialog:e=>e.showInstallAppDialog,getSelectedAppToInstall:e=>e.selectedAppToInstall,getShowDeleteAppDialog:e=>e.showDeleteAppDialog,getSelectedAppToDelete:e=>e.selectedAppToDelete},actions:{setKeyMarketplaceTable(e){this.keyMarketplaceTable=e},setShowSlideDialog(e){this.showSlideDialog=e},setScreenshotUrlsList(e){this.screenshotUrlsList=e},setSelectedScreenshotIndex(e){this.selectedScreenshotIndex=e},setShowInstallAppDialog(e){this.showInstallAppDialog=e},setSelectedAppToInstall(e){this.selectedAppToInstall=e},setShowDeleteAppDialog(e){this.showDeleteAppDialog=e},setSelectedAppToDelete(e){this.selectedAppToDelete=e}}})},9281:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{constructor(){super(...arguments),this.timeout=18e4}getServicesStatus(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/services/")}))}getServicesInstallable(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/services/installables/")}))}installService(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/services/installables/",e)}))}uploadFile(e){return o(this,void 0,void 0,(function*(){return this.request.defaults.headers["Content-Type"]="multipart/form-data",this.request.post("/v1/files/upload/",e)}))}installCustomService(e){return o(this,void 0,void 0,(function*(){return this.request.post("/v1/services/custom/",e)}))}updateServiceStatus(e){return o(this,void 0,void 0,(function*(){return this.request.put("/v1/services/",e)}))}}},87178:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(69036),o=function(e,t,a,s){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function n(e){try{i(s.next(e))}catch(t){l(t)}}function r(e){try{i(s["throw"](e))}catch(t){l(t)}}function i(e){e.done?a(e.value):o(e.value).then(n,r)}i((s=s.apply(e,t||[])).next())}))};class l extends s.Z{getSystemInfo(){return o(this,void 0,void 0,(function*(){return this.request.get("/v1/o11y/overview/")}))}}},16397:(e,t,a)=>{a.d(t,{n:()=>o});var s=a(3746);const o=(0,s.Q_)("systemInfo",{state:()=>({systemInfo:{currentUsage:{cpuUsagePercent:0,memUsagePercent:0,storageUsage:0},hostname:"",publicIp:"",runtimeContext:"container",specs:{cpuCores:0,cpuFrequency:0,cpuModel:"",memoryTotal:0,storageTotal:0},uptimeSecs:0}}),getters:{getSystemInfo(e){return e.systemInfo}},actions:{setSystemInfo(e){this.systemInfo=e}}})},37747:(e,t,a)=>{a.d(t,{Z:()=>l});var s=a(20503),o=a(21809);class l{constructor(){this.localStorage=new s.Z,this.cookieService=new o.Z}logout(){this.localStorage.clearAllLocalStorage(),this.cookieService.removeToken(),setTimeout((()=>{window.open("#/login","_self")}),100)}}},69036:(e,t,a)=>{a.d(t,{Z:()=>c});var s=a(37524),o=a(21809),l=a(37747),n=a(74462),r=a(88900);class i{constructor(){this.logoutService=new l.Z,this.$i18n=n.i18n.global.t}showAuthTokenInvalided(e){const t={msg:this.$i18n("errorMessages.authTokenInvalided").toString(),type:"negative"};return(0,r.s9)(e,t.msg),setTimeout((()=>{this.logoutService.logout()}),3e3),Object.assign(e,t)}showInvalidCredentials(e){const t={msg:this.$i18n("errorMessages.invalidCredentials").toString(),type:"negative"};return Object.assign(e,t)}}class u{constructor(e){this.authError=new i,this.error=e}executeErrorHandling(){return RegExp(/InvalidAuthToken/).exec(this.error.body)?this.authError.showAuthTokenInvalided(this.error):RegExp(/InvalidCredentials/).exec(this.error.body)?this.authError.showInvalidCredentials(this.error):this.error}}class c{constructor(){this.timeoutInSeconds=180,this.timeoutInMilliseconds=18e4,this.baseURL="/_/api",this.request=s.Z.create(),this.cookieService=new o.Z,this.request=s.Z.create({baseURL:this.baseURL,timeout:this.timeoutInMilliseconds,headers:{Accept:"application/json","Content-Type":"application/json"}}),this.configHeaders(),this.interceptorsResponses(),this.interceptorsRequests()}configHeaders(){!1!==this.cookieService.hasCookie("os-access-token")&&(this.request.defaults.headers.common["Authorization"]=`Bearer ${this.cookieService.getToken()}`)}interceptorsResponses(){this.request.interceptors.response.use((e=>e),(e=>{if(!e.response)return(0,r.c0)({type:"negative",msg:n.i18n.global.t("errorMessages.networkError").toString(),position:"bottom"}),Promise.reject(new Error("Network Error"));const t=new u(e.response.data);return console.error(e),e.response.data=t.executeErrorHandling(),Promise.reject(e)}))}interceptorsRequests(){this.request.interceptors.request.use((e=>(e.timeout=this.timeoutInMilliseconds,e)),(e=>"ECONNABORTED"===e.code&&e.message.includes("timeout")?((0,r.c0)({type:"negative",msg:n.i18n.global.t("errorMessages.timeoutError").toString(),position:"bottom"}),Promise.reject(new Error("Timeout exceeded"))):Promise.reject(e)))}}},84278:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(86970);const l=(0,s.aZ)({__name:"DefaultButton",props:{color:{default:"primary"},loading:{type:Boolean,default:!1},label:{},disable:{type:Boolean,default:!1},icon:{},iconRight:{},padding:{},size:{},stack:{type:Boolean,default:!1},align:{default:"around"},outline:{type:Boolean,default:!1},noCaps:{type:Boolean,default:!0},textTooltip:{default:""},colorTooltip:{default:""}},setup(e){const t=e,a=(0,s.Fl)((()=>t.padding||t.size?"text-bold":"text-bold q-pa-md-sm"));return(e,t)=>{const l=(0,s.up)("q-spinner"),n=(0,s.up)("q-tooltip"),r=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.j4)(r,{loading:e.loading,size:e.size,padding:e.padding,label:e.label.toLowerCase(),color:e.color,icon:e.icon,"icon-right":e.iconRight,stack:e.stack,disable:e.disable,align:e.align,outline:e.outline,"no-caps":e.noCaps,style:{"font-size":"1.1326rem"},class:(0,o.C_)(a.value)},{loading:(0,s.w5)((()=>[(0,s.Wm)(l,{class:"on-left"}),(0,s.Uk)(" "+(0,o.zw)(e.label),1)])),default:(0,s.w5)((()=>[e.textTooltip?((0,s.wg)(),(0,s.j4)(n,{key:0,class:(0,o.C_)(e.colorTooltip),style:{"font-size":"14px"},offset:[10,10]},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.textTooltip),1)])),_:1},8,["class"])):(0,s.kq)("",!0)])),_:1},8,["loading","size","padding","label","color","icon","icon-right","stack","disable","align","outline","no-caps","class"])}}});var n=a(68879),r=a(13902),i=a(46858),u=a(69984),c=a.n(u);const p=l,d=p;c()(l,"components",{QBtn:n.Z,QSpinner:r.Z,QTooltip:i.Z})},15521:(e,t,a)=>{a.d(t,{Z:()=>p});var s=a(59835),o=a(60499);const l=(0,s.aZ)({__name:"DefaultInput",props:{value:{},label:{},placeholder:{default:""},icon:{default:""},disable:{type:Boolean,default:!1},type:{default:"text"},dataCy:{default:""},counter:{type:Boolean,default:!1},maxLength:{default:"32"},msgError:{default:""},isError:{type:Boolean,default:!1},suffix:{default:""},prefix:{default:""},readonly:{type:Boolean,default:!1},rules:{default:void 0}},emits:["update:value"],setup(e,{emit:t}){const a=e,l=(0,o.iH)("");return(0,s.wF)((()=>{l.value=a.value})),(0,s.YP)(l,(e=>{t("update:value",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(o,{label:e.label,placeholder:e.placeholder,type:e.type,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),modelModifiers:{trim:!0},debounce:"100","data-cy":e.dataCy,readonly:e.readonly,disable:e.disable,counter:e.counter,maxlength:e.maxLength,"error-message":e.msgError,error:e.isError,suffix:e.suffix,prefix:e.prefix,rules:e.rules,filled:""},(0,s.Nv)({_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["label","placeholder","type","modelValue","data-cy","readonly","disable","counter","maxlength","error-message","error","suffix","prefix","rules"])}}});var n=a(13119),r=a(22857),i=a(69984),u=a.n(i);const c=l,p=c;u()(l,"components",{QInput:n.Z,QIcon:r.Z})},27974:(e,t,a)=>{a.d(t,{Z:()=>f});var s=a(59835),o=a(86970),l=a(60499);const n=["innerHTML"],r=(0,s.aZ)({__name:"MultiSelect",props:{selected:{},options:{},label:{default:""},icon:{default:""}},emits:["update:selected"],setup(e,{emit:t}){const a=e,r=(0,l.iH)(a.selected);return(0,s.YP)(r,(e=>{t("update:selected",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-item-label"),i=(0,s.up)("q-item-section"),u=(0,s.up)("q-toggle"),c=(0,s.up)("q-item"),p=(0,s.up)("q-select");return(0,s.wg)(),(0,s.j4)(p,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),options:e.options,label:e.label,borderless:"",filled:"",multiple:"",class:"rounded-borders",style:{width:"100%"},"emit-value":"","map-options":"","expand-icon":"sym_s_expand_more","expanded-icon":"sym_s_expand_less"},(0,s.Nv)({option:(0,s.w5)((({itemProps:e,opt:t,selected:a,toggleOption:r})=>[(0,s.Wm)(c,(0,o.vs)((0,s.F4)(e)),{default:(0,s.w5)((()=>[(0,s.Wm)(i,null,{default:(0,s.w5)((()=>[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s._)("div",{innerHTML:t.label},null,8,n)])),_:2},1024)])),_:2},1024),(0,s.Wm)(i,{side:""},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{"model-value":a,"onUpdate:modelValue":e=>r(t)},null,8,["model-value","onUpdate:modelValue"])])),_:2},1024)])),_:2},1040)])),_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["modelValue","options","label"])}}});var i=a(32259),u=a(22857),c=a(490),p=a(76749),d=a(33115),m=a(23175),g=a(69984),v=a.n(g);const h=r,f=h;v()(r,"components",{QSelect:i.Z,QIcon:u.Z,QItem:c.Z,QItemSection:p.Z,QItemLabel:d.Z,QToggle:m.Z})},26557:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(60499),l=a(25121);const n=(0,s.aZ)({__name:"PasswordInput",props:{password:{default:""},dataCyInput:{default:""},isReadonly:{type:Boolean,default:!1},minLength:{default:6},maxLength:{default:64}},emits:["update:password"],setup(e,{emit:t}){const a=e,n=(0,l.QT)().t,r=(0,o.iH)(""),i=(0,o.iH)(!0);(0,s.wF)((()=>{r.value=a.password})),(0,s.YP)(r,(e=>{t("update:password",e)})),(0,s.YP)((()=>a.password),(e=>{r.value=e}));const u=[e=>e.length>=a.minLength||`${n("form.passwordInput.invalidPassword",{minLength:a.minLength})}`];return(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(o,{label:e.$t("form.passwordInput.inputPassword"),readonly:e.isReadonly,type:i.value?"password":"text",rules:u,modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),modelModifiers:{trim:!0},maxlength:e.maxLength,debounce:"100",borderless:"","data-cy":e.dataCyInput,filled:""},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_lock"})])),append:(0,s.w5)((()=>[(0,s.Wm)(a,{name:i.value?"sym_s_visibility_off":"sym_s_visibility",class:"cursor-pointer",onClick:t[0]||(t[0]=e=>i.value=!i.value)},null,8,["name"])])),_:1},8,["label","readonly","type","modelValue","maxlength","data-cy"])}}});var r=a(13119),i=a(22857),u=a(69984),c=a.n(u);const p=n,d=p;c()(n,"components",{QInput:r.Z,QIcon:i.Z})},94629:(e,t,a)=>{a.d(t,{Z:()=>p});var s=a(59835),o=a(60499);const l=(0,s.aZ)({__name:"SingleSelect",props:{options:{},label:{default:""},icon:{default:""},emitValue:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},msgError:{default:""},isError:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisable:{type:Boolean,default:!1},selected:{default:""}},emits:["update:selected"],setup(e,{emit:t}){const a=e,l=(0,o.iH)(a.selected),n=(0,o.iH)(a.options);return(0,s.YP)((()=>a.selected),(e=>{l.value=e}),{immediate:!0}),(0,s.YP)(l,(e=>{t("update:selected",e)})),(e,t)=>{const a=(0,s.up)("q-icon"),o=(0,s.up)("q-select");return(0,s.wg)(),(0,s.j4)(o,{options:n.value,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),label:e.label,debounce:"100","emit-value":e.emitValue,"map-options":"",borderless:"","stack-label":"",clearable:e.clearable,"error-message":e.msgError,error:e.isError,loading:e.isLoading,disable:e.isDisable,filled:""},(0,s.Nv)({_:2},[e.icon?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.Wm)(a,{name:e.icon},null,8,["name"])])),key:"0"}:void 0]),1032,["options","modelValue","label","emit-value","clearable","error-message","error","loading","disable"])}}});var n=a(32259),r=a(22857),i=a(69984),u=a.n(i);const c=l,p=c;u()(l,"components",{QSelect:n.Z,QIcon:r.Z})},67377:(e,t,a)=>{a.d(t,{Z:()=>u});var s=a(59835),o=a(86970),l=a(60499);const n={class:"default-chip-text q-px-xs"},r=(0,s.aZ)({__name:"CustomChip",props:{labelLeft:{},labelRight:{},color:{default:"#c97350"},textColor:{default:"#fff"},fontSize:{default:"1.2499rem"}},setup(e){const t=e,a=(0,l.iH)({}),r=(0,l.iH)({});return(0,s.bv)((()=>{a.value={backgroundColor:t.color,color:t.textColor},r.value={border:"1px solid "+t.color,borderRadius:"5px",fontSize:t.fontSize}})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{style:(0,o.j5)(r.value)},[(0,s._)("div",{class:"q-px-xs float-left",style:(0,o.j5)(a.value)},(0,o.zw)(e.labelLeft),5),(0,s._)("span",n,(0,o.zw)(e.labelRight),1)],4))}}),i=r,u=i},99573:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(59835),o=a(86970);const l={class:"default-chip-text"},n=(0,s.aZ)({__name:"DefaultChip",props:{icon:{default:""},label:{},color:{default:"primary"}},setup(e){return(e,t)=>{const a=(0,s.up)("q-avatar"),n=(0,s.up)("q-chip");return(0,s.wg)(),(0,s.j4)(n,{square:"",class:"text-primary",outline:""},{default:(0,s.w5)((()=>[(0,s.Wm)(a,{icon:e.icon,color:e.color,"text-color":"white","font-size":"1.2499rem"},null,8,["icon","color"]),(0,s._)("span",l,(0,o.zw)(e.label),1)])),_:1})}}});var r=a(57691),i=a(61357),u=a(69984),c=a.n(u);const p=n,d=p;c()(n,"components",{QChip:r.Z,QAvatar:i.Z})},89906:(e,t,a)=>{a.d(t,{Z:()=>x});var s=a(59835),o=a(86970),l=a(60499);const n={class:"column items-center"},r={class:"col q-mb-md"},i={class:"q-pa-sm",style:{"border-radius":"50%",height:"auto"}},u={class:"col"},c={class:"title-dialog text-negative q-mb-md"},p={class:"col"},d=["innerHTML"],m={class:"text-bold",style:{"font-size":"0.9708rem"}},g=(0,s.aZ)({__name:"DeleteDialog",props:{showDeleteDialog:{type:Boolean},titleDialog:{},imagePath:{},messageToDelete:{},warningToDelete:{},customStyle:{}},emits:["update:showDeleteDialog"],setup(e,{emit:t}){const a=e,g=(0,l.iH)(a.showDeleteDialog);return(0,s.YP)((()=>a.showDeleteDialog),(e=>{g.value=e})),(0,s.YP)(g,(e=>{t("update:showDeleteDialog",e)})),(e,t)=>{const a=(0,s.up)("q-img"),l=(0,s.up)("q-icon"),v=(0,s.up)("q-card-section"),h=(0,s.up)("q-card-actions"),f=(0,s.up)("q-card"),w=(0,s.up)("q-dialog");return(0,s.wg)(),(0,s.j4)(w,{modelValue:g.value,"onUpdate:modelValue":t[0]||(t[0]=e=>g.value=e),persistent:""},{default:(0,s.w5)((()=>[(0,s.Wm)(f,{class:"bg-card dialog-card-bg",style:{"min-width":"450px","border-radius":"16px"}},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:"q-px-none"},{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",r,[(0,s._)("div",i,[e.imagePath?((0,s.wg)(),(0,s.j4)(a,{key:0,src:e.imagePath,style:{width:"62px",height:"62px"}},null,8,["src"])):((0,s.wg)(),(0,s.j4)(l,{key:1,name:"sym_s_warning",size:"62px",color:"negative"}))])]),(0,s._)("div",u,[(0,s._)("div",c,(0,o.zw)(e.titleDialog),1)]),(0,s._)("div",p,[(0,s._)("p",{style:{"font-size":"1.2135rem"},innerHTML:e.messageToDelete},null,8,d)]),(0,s._)("div",null,[(0,s._)("p",m,(0,o.zw)(e.warningToDelete),1)])])])),_:1}),(0,s.Wm)(h,{align:"between",class:"q-px-none"},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"card-actions")])),_:3})])),_:3})])),_:3},8,["modelValue"])}}});var v=a(32074),h=a(44458),f=a(63190),w=a(70335),y=a(22857),b=a(11821),D=a(69984),_=a.n(D);const k=g,x=k;_()(g,"components",{QDialog:v.Z,QCard:h.Z,QCardSection:f.Z,QImg:w.Z,QIcon:y.Z,QCardActions:b.Z})},87713:(e,t,a)=>{a.d(t,{Z:()=>m});var s=a(59835),o=a(60499),l=a(25121),n=a(88900);const r=(0,s.aZ)({__name:"GeneratePassword",props:{password:{default:""},dataCy:{default:""},lenPassword:{default:16},lenLowerCasePart:{default:1},lenUpperCasePart:{default:1},lenNumericPart:{default:1},lenSpecialCharacterPart:{default:1}},emits:["update:password"],setup(e,{emit:t}){const a=e,r=(0,o.iH)(null),i=(0,l.QT)().t;function u(){let e="";const s=a.lenPassword-a.lenLowerCasePart-a.lenUpperCasePart-a.lenNumericPart-a.lenSpecialCharacterPart;e+=c(a.lenLowerCasePart,"lowerCase"),e+=c(a.lenUpperCasePart,"upperCase"),e+=c(a.lenNumericPart,"numeric"),e+=c(a.lenSpecialCharacterPart,"symbol"),e+=c(s,"default"),e=e.split("").sort((function(){return.5-Math.random()})).join(""),t("update:password",e),p(e)}function c(e,t){let a="";switch(t){case"lowerCase":a="abcdefghijklmnopqrstuvwxyz";break;case"upperCase":a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";break;case"numeric":a="0123456789";break;case"symbol":a="%?)(*><";break;default:a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789%?)(*><"}let s="";for(let o=0;o{const a=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.iD)("div",null,[(0,s.Wm)(a,{"data-cy":e.dataCy,label:e.$t("generatePassword.btnGeneratePassword"),class:"text-bold","no-caps":"",unelevated:"",rounded:"",outline:"",size:"11px",padding:"2px 10px",onClick:t[0]||(t[0]=e=>u())},null,8,["data-cy","label"]),(0,s._)("input",{type:"hidden",ref_key:"clipboard",ref:r,value:""},null,512)])}}});var i=a(11639),u=a(68879),c=a(69984),p=a.n(c);const d=(0,i.Z)(r,[["__scopeId","data-v-617700b8"]]),m=d;p()(r,"components",{QBtn:u.Z})},35274:(e,t,a)=>{a.d(t,{Z:()=>y});var s=a(59835),o=a(86970),l=a(60499),n=a(88900),r=a(9281),i=a(84278),u=a(45273),c=a(25121);const p={class:"text-h6"},d=(0,s.aZ)({__name:"ServiceInstallButton",props:{serviceName:{}},emits:["update:isInstalledService"],setup(e,{emit:t}){const a=e,d=(0,c.QT)().t,m=(0,l.iH)(!1);function g(){(0,u.Q)();const e=new r.Z;m.value=!0,e.installService({name:a.serviceName.toLowerCase()}).then((()=>{(0,n.LX)(d("servicesStatusTableActions.installSuccess")),t("update:isInstalledService",!0)})).catch((e=>{console.error(e),(0,n.s9)(e.response.data,d("servicesStatusTableActions.installError")),t("update:isInstalledService",!1)})).finally((()=>{m.value=!1,(0,u.Z)()}))}return(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-card-section"),n=(0,s.up)("q-card");return(0,s.wg)(),(0,s.j4)(n,{flat:"",style:{height:"80vh"}},{default:(0,s.w5)((()=>[(0,s.Wm)(l,{class:"row justify-start items-center q-gutter-lg"},{default:(0,s.w5)((()=>[(0,s._)("div",p,[(0,s.Wm)(a,{name:"sym_s_warning",class:"text-warning q-mr-md",size:"md"}),(0,s.Uk)(" "+(0,o.zw)(e.$t("serviceInstallButton.uninstalledService",{serviceName:e.serviceName})),1)]),(0,s.Wm)(i.Z,{color:"primary",icon:"sym_s_download_for_offline",loading:m.value,label:e.$t("serviceInstallButton.installService",{serviceName:e.serviceName}),onClick:t[0]||(t[0]=e=>g())},null,8,["loading","label"])])),_:1})])),_:1})}}});var m=a(44458),g=a(63190),v=a(22857),h=a(69984),f=a.n(h);const w=d,y=w;f()(d,"components",{QCard:m.Z,QCardSection:g.Z,QIcon:v.Z})},63064:(e,t,a)=>{a.d(t,{Z:()=>C});var s=a(59835),o=a(86970),l=a(60499),n=a(25121);const r={class:"q-pt-md"},i={class:"q-gutter-y-md column"},u=["textContent"],c={key:1,style:{"line-height":"1.68rem"}},p={key:0,class:"q-pr-sm"},d={key:1,class:"q-pr-sm"},m={key:0,class:"q-pr-sm"},g={key:1,class:"q-pr-sm"},v={key:0,class:"q-pr-sm"},h={key:1,class:"q-pr-sm"},f={key:0,class:"q-pr-sm"},w={key:1,class:"q-pr-sm"},y={key:0,class:"q-pr-sm"},b={key:1,class:"q-pr-sm"},D={key:0,class:"q-pr-sm"},_={key:1,class:"q-pr-sm"},k={key:2},x=(0,s.aZ)({__name:"StrongPasswordStrength",props:{password:{},minPasswordLength:{default:16},maxPasswordLength:{default:64}},emits:["update:isValidPassword"],setup(e,{emit:t}){const a=e,x=(0,n.QT)().t,q=(0,l.iH)(0),Z=(0,l.iH)([]),S={showError:!1,msgError:`${x("strongPasswordStrength.isTooShort",{minPasswordLength:a.minPasswordLength})}`},P={showError:!1,msgError:`${x("strongPasswordStrength.isTooLong",{maxPasswordLength:a.maxPasswordLength})}`},C={showError:!1,msgError:`${x("strongPasswordStrength.hasNumber")}`},T={showError:!1,msgError:`${x("strongPasswordStrength.hasUpperCases")}`},A={showError:!1,msgError:`${x("strongPasswordStrength.hasLowerCases")}`},I={showError:!1,msgError:`${x("strongPasswordStrength.hasReservedCharSuccess")}`},M=(0,s.Fl)((()=>{let e="red";return q.value<=.3&&(e="red"),q.value>.3&&q.value<=.6&&(e="orange"),q.value>.6&&q.value<=.9&&(e="yellow"),1===q.value&&(e="green"),e}));return(0,s.YP)((()=>a.password),(e=>{const s=/[\!\@\#\$\&\=\'\"\`\|]+/i;q.value=0,S.showError=e.lengtha.maxPasswordLength,C.showError=!/\d/.test(e),T.showError=!/[A-Z]/.test(e),A.showError=!/[a-z]/.test(e),I.showError=s.test(e),e.length>=a.minPasswordLength&&e.length<=a.maxPasswordLength&&(q.value=q.value+.2),/\d/.test(e)&&(q.value=q.value+.2),/[A-Z]/.test(e)&&(q.value=q.value+.2),/[a-z]/.test(e)&&(q.value=q.value+.2),s.test(e)?(Z.value=[...new Set(Array.from(e).filter((e=>s.test(e))))],I.msgError=`${x("strongPasswordStrength.hasReservedCharError")}`):(I.msgError=`${x("strongPasswordStrength.hasReservedCharSuccess")}`,q.value=q.value+.2),t("update:isValidPassword",1===q.value)})),(e,t)=>{const a=(0,s.up)("q-linear-progress");return(0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("div",i,[(0,s.Wm)(a,{size:"10px",value:q.value,color:M.value,class:"q-my-sm"},null,8,["value","color"])]),1===q.value?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"text-positive q-pb-sm",textContent:(0,o.zw)(e.$t("strongPasswordStrength.securePassword"))},null,8,u)):((0,s.wg)(),(0,s.iD)("div",c,[(0,s._)("div",{class:(0,o.C_)(S.showError?"text-negative":"text-positive")},[S.showError?((0,s.wg)(),(0,s.iD)("span",p,"❌")):((0,s.wg)(),(0,s.iD)("span",d,"✅")),(0,s.Uk)(" "+(0,o.zw)(S.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(P.showError?"text-negative":"text-positive")},[P.showError?((0,s.wg)(),(0,s.iD)("span",m,"❌")):((0,s.wg)(),(0,s.iD)("span",g,"✅")),(0,s.Uk)(" "+(0,o.zw)(P.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(C.showError?"text-negative":"text-positive")},[C.showError?((0,s.wg)(),(0,s.iD)("span",v,"❌")):((0,s.wg)(),(0,s.iD)("span",h,"✅")),(0,s.Uk)(" "+(0,o.zw)(C.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(T.showError?"text-negative":"text-positive")},[T.showError?((0,s.wg)(),(0,s.iD)("span",f,"❌")):((0,s.wg)(),(0,s.iD)("span",w,"✅")),(0,s.Uk)(" "+(0,o.zw)(T.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(A.showError?"text-negative":"text-positive")},[A.showError?((0,s.wg)(),(0,s.iD)("span",y,"❌")):((0,s.wg)(),(0,s.iD)("span",b,"✅")),(0,s.Uk)(" "+(0,o.zw)(A.msgError),1)],2),(0,s._)("div",{class:(0,o.C_)(I.showError?"text-negative":"text-positive")},[I.showError?((0,s.wg)(),(0,s.iD)("span",D,"❌")):((0,s.wg)(),(0,s.iD)("span",_,"✅")),(0,s.Uk)(" "+(0,o.zw)(I.msgError)+" ",1),I.showError?((0,s.wg)(),(0,s.iD)("span",k,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(Z.value,((e,t)=>((0,s.wg)(),(0,s.iD)("span",{key:t,style:{"font-weight":"bold"}},(0,o.zw)(e),1)))),128))])):(0,s.kq)("",!0)],2)]))])}}});var q=a(8289),Z=a(69984),S=a.n(Z);const P=x,C=P;S()(x,"components",{QLinearProgress:q.Z})},88850:(e,t,a)=>{a.d(t,{Z:()=>k});var s=a(59835),o=a(61957),l=a(60499),n=a(72622),r=a.n(n);const i=(0,s.aZ)({__name:"MailAddressInput",props:{mailAddress:{default:""},suffix:{default:""},dataCyInput:{default:""}},emits:["update:isValidMail","update:mailAddressWithSuffix","update:mailAddress"],setup(e,{emit:t}){const a=e,o=(0,l.iH)(""),n=(0,s.Fl)((()=>r()(`${o.value}${a.suffix}`)));return(0,s.YP)((()=>a.mailAddress),(e=>{o.value=e})),(0,s.YP)(n,(e=>{t("update:isValidMail",e)})),(0,s.YP)(o,(e=>{t("update:mailAddress",e),t("update:mailAddressWithSuffix",`${e}${a.suffix}`)})),(e,t)=>{const a=(0,s.up)("q-icon"),l=(0,s.up)("q-input");return(0,s.wg)(),(0,s.j4)(l,{label:e.$t("form.mailAddressInput.inputMail"),type:e.suffix?"text":"email",rules:[()=>n.value||e.$t("form.mailAddressInput.invalidMail")],modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),modelModifiers:{trim:!0},debounce:"100",suffix:e.suffix,borderless:"","data-cy":e.dataCyInput,filled:""},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_alternate_email"})])),_:1},8,["label","type","rules","modelValue","suffix","data-cy"])}}});var u=a(13119),c=a(22857),p=a(69984),d=a.n(p);const m=i,g=m;d()(i,"components",{QInput:u.Z,QIcon:c.Z});var v=a(26557),h=a(87713),f=a(63064);const w={key:3,class:"q-my-md"},y={style:{"margin-top":"24px"}},b=(0,s.aZ)({__name:"MarketplaceDataFields",props:{label:{},name:{},type:{},defaultValue:{default:""},isRequired:{type:Boolean,default:!1},options:{default:[]}},emits:["update:dataFields"],setup(e,{emit:t}){const a=e,n=(0,l.iH)(a.defaultValue),r=()=>e=>!!e||!a.isRequired||"This field is required";return(0,s.YP)(n,(e=>{t("update:dataFields",{key:a.name,value:e})}),{immediate:!0}),(e,t)=>{const l=(0,s.up)("q-input"),i=(0,s.up)("q-select");return(0,s.wg)(),(0,s.iD)(s.HY,null,["text"===e.type&&0===e.options.length?((0,s.wg)(),(0,s.j4)(l,{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),label:a.label,filled:"",rules:e.isRequired?[r()]:[],class:"q-my-md"},null,8,["modelValue","label","rules"])):(0,s.kq)("",!0),"text"===e.type&&e.options.length>0?((0,s.wg)(),(0,s.j4)(i,{key:1,modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=e=>n.value=e),label:e.label,filled:"",options:e.options,class:"q-mt-md q-mb-lg"},null,8,["modelValue","label","options"])):(0,s.kq)("",!0),"email"===e.type?((0,s.wg)(),(0,s.j4)(g,{key:2,mailAddress:n.value,"onUpdate:mailAddress":t[2]||(t[2]=e=>n.value=e),class:"q-my-md"},null,8,["mailAddress"])):(0,s.kq)("",!0),"password"===e.type?((0,s.wg)(),(0,s.iD)("div",w,[(0,s._)("div",null,[(0,s.Wm)(v.Z,{password:n.value,"onUpdate:password":t[3]||(t[3]=e=>n.value=e)},null,8,["password"]),(0,s.Wm)(h.Z,{password:n.value,"onUpdate:password":t[4]||(t[4]=e=>n.value=e),class:"float-right",style:{position:"relative",top:"-10px"}},null,8,["password"])]),(0,s._)("div",y,[(0,s.wy)((0,s.Wm)(f.Z,{password:n.value,minPasswordLength:6},null,8,["password"]),[[o.F8,n.value.length>0]])])])):(0,s.kq)("",!0)],64)}}});var D=a(32259);const _=b,k=_;d()(b,"components",{QInput:u.Z,QSelect:D.Z})},84019:(e,t,a)=>{a.d(t,{Z:()=>g});var s=a(59835),o=a(25121),l=a(84278),n=a(89906),r=a(45273),i=a(88900),u=a(19302),c=a(62601),p=a(9704);const d=(0,s.aZ)({__name:"MarketplaceDeleteAppDialog",setup(e){const t=(0,o.QT)().t,a=(0,c.R)(),d=(0,s.Fl)({get:()=>a.getShowDeleteAppDialog,set:e=>{a.setShowDeleteAppDialog(e)}}),m=(0,s.Fl)({get:()=>a.getKeyMarketplaceTable,set:e=>{a.setKeyMarketplaceTable(e)}}),g=(0,s.Fl)((()=>a.getSelectedAppToDelete)),v=(0,s.Fl)((()=>{const e=(0,u.Z)();return e.dark.isActive?"/icons/bomb_dark.svg":"/icons/bomb_light.svg"}));function h(){d.value=!1}function f(){const e=new p.Z;(0,r.Q)(),e.uninstallApp(g.value.id.toString()).then((()=>{(0,i.LX)(`${t("marketplaceDeleteAppDialog.deleteAppSuccess")}`),setTimeout((()=>{h(),m.value++}),100)})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,`${t("marketplaceDeleteAppDialog.deleteAppWithError")}`)})).finally((()=>{(0,r.Z)()}))}return(e,t)=>((0,s.wg)(),(0,s.j4)(n.Z,{showDeleteDialog:d.value,"onUpdate:showDeleteDialog":t[2]||(t[2]=e=>d.value=e),titleDialog:e.$t("marketplaceDeleteAppDialog.title"),imagePath:v.value,messageToDelete:e.$t("marketplaceDeleteAppDialog.confirmRemoveApp",{appName:g.value.name}),warningToDelete:e.$t("marketplaceDeleteAppDialog.warningRemoveApp")},{"card-actions":(0,s.w5)((()=>[(0,s.Wm)(l.Z,{label:e.$t("marketplaceDeleteAppDialog.cancelBtn"),color:"grey-8",onClick:t[0]||(t[0]=e=>h())},null,8,["label"]),(0,s.Wm)(l.Z,{icon:"sym_s_delete",label:e.$t("marketplaceDeleteAppDialog.confirmBtn"),color:"negative",onClick:t[1]||(t[1]=e=>f())},null,8,["label"])])),_:1},8,["showDeleteDialog","titleDialog","imagePath","messageToDelete","warningToDelete"]))}}),m=d,g=m},21647:(e,t,a)=>{a.d(t,{Z:()=>b});var s=a(59835),o=a(60499),l=a(94629),n=a(15521),r=a(60016),i=a(88900),u=a(25121);const c={key:0},p={key:1},d={class:"flex items-center q-gutter-sm"},m={style:{width:"70%"}},g={style:{width:"28%"}},v=(0,s.aZ)({__name:"MarketplaceInstallDirectory",emits:["update:selectedHostname","update:installDirectory"],setup(e,{emit:t}){const a=(0,u.QT)().t,v=(0,o.iH)(!1),h=(0,o.iH)([]),f=(0,o.iH)([]),w=(0,o.iH)(""),y=(0,o.iH)("");function b(){v.value=!0;const e=new r.Z;e.getVirtualHosts().then((e=>{0!==e.data.body.length&&(h.value=e.data.body,f.value=e.data.body.map((e=>e.hostname)),w.value=f.value[0])})).catch((e=>{console.error(e),(0,i.s9)(e.response.data,a("marketplaceInstallAppDialog.getVirtualHostsWithError"))})).finally((()=>{v.value=!1}))}return(0,s.bv)((()=>{b()})),(0,s.YP)(w,(e=>{t("update:selectedHostname",e)})),(0,s.YP)(y,(e=>{t("update:installDirectory",e)})),(e,t)=>{const a=(0,s.up)("q-skeleton");return!0===v.value?((0,s.wg)(),(0,s.iD)("div",c,[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(2,(e=>(0,s.Wm)(a,{animation:"wave",height:"60px",class:"q-mb-md",key:e}))),64))])):((0,s.wg)(),(0,s.iD)("div",p,[(0,s._)("div",d,[(0,s._)("div",m,[(0,s.Wm)(l.Z,{selected:w.value,"onUpdate:selected":t[0]||(t[0]=e=>w.value=e),label:e.$t("marketplaceInstallAppDialog.hostnameSelect"),options:f.value},null,8,["selected","label","options"])]),(0,s._)("div",g,[(0,s.Wm)(n.Z,{prefix:"/",value:y.value,"onUpdate:value":t[1]||(t[1]=e=>y.value=e),label:e.$t("marketplaceInstallAppDialog.installDirectory")},null,8,["value","label"])])])]))}}});var h=a(57133),f=a(69984),w=a.n(f);const y=v,b=y;w()(v,"components",{QSkeleton:h.ZP})},97510:(e,t,a)=>{a.d(t,{Z:()=>U});var s=a(59835),o=a(86970),l=a(60499),n=a(67377);const r={class:"flex items-center"},i=["src"],u={class:"td-main-app-name"},c={class:"q-mt-sm"},p=(0,s.aZ)({__name:"MarketplaceTableTdMain",props:{avatarUrl:{},appName:{},type:{},path:{}},setup(e){const t=e;function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(e,l)=>((0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("div",r,[(0,s._)("img",{src:e.avatarUrl,class:"td-main-avatar"},null,8,i),(0,s._)("div",u,(0,o.zw)(t.appName),1)]),(0,s._)("div",c,[(0,s.Wm)(n.Z,{labelLeft:a(e.type),labelRight:e.path,fontSize:"0.9708rem"},null,8,["labelLeft","labelRight"])])],64))}}),d=p,m=d;var g=a(62601);const v=(0,s.aZ)({__name:"MarketplaceTableTdActions",props:{app:{}},setup(e){const t=e,a=(0,g.R)(),n=(0,l.iH)(!1);function r(){a.setSelectedAppToDelete(t.app),a.setShowDeleteAppDialog(!0)}return(e,t)=>{const a=(0,s.up)("q-tooltip"),l=(0,s.up)("q-btn");return(0,s.wg)(),(0,s.j4)(l,{onClick:t[0]||(t[0]=e=>r()),loading:n.value,color:"negative",size:"md",icon:"sym_s_delete_forever"},{default:(0,s.w5)((()=>[(0,s.Wm)(a,{class:"bg-negative text-white",style:{"font-size":"14px"},offset:[10,10]},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("marketplaceTableTdActions.uninstallBtn")),1)])),_:1})])),_:1},8,["loading"])}}});var h=a(68879),f=a(46858),w=a(69984),y=a.n(w);const b=v,D=b;y()(v,"components",{QBtn:h.Z,QTooltip:f.Z});var _=a(84278),k=a(50168);const x={class:"row justify-center q-mt-md"},q=(0,s.aZ)({__name:"MarketplaceInstalledTable",props:{installedAppsList:{},showInstallAppBtn:{type:Boolean,default:!0}},setup(e){const t=e,a=(0,g.R)(),n=(0,l.iH)(""),r=(0,l.iH)({sortBy:"desc",descending:!1,page:1,rowsPerPage:10}),i=(0,s.Fl)((()=>Math.ceil(t.installedAppsList.length/r.value.rowsPerPage)));function u(){a.setShowInstallAppDialog(!0)}return(e,t)=>{const a=(0,s.up)("q-icon"),c=(0,s.up)("q-input"),p=(0,s.up)("q-space"),d=(0,s.up)("q-th"),g=(0,s.up)("q-tr"),v=(0,s.up)("q-td"),h=(0,s.up)("q-table"),f=(0,s.up)("q-pagination");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(h,{rows:e.installedAppsList,filter:n.value,pagination:r.value,"onUpdate:pagination":t[2]||(t[2]=e=>r.value=e),"no-data-label":e.$t("overviewMarketplaceTable.noDataLabel"),"row-key":"key",color:"primary",flat:"",bordered:"","hide-pagination":""},{top:(0,s.w5)((()=>[(0,s.Wm)(c,{borderless:"",debounce:"300",color:"primary",modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),label:e.$t("overviewMarketplaceTable.searchInput")},{prepend:(0,s.w5)((()=>[(0,s.Wm)(a,{name:"sym_s_search"})])),_:1},8,["modelValue","label"]),(0,s.Wm)(p),!0===e.showInstallAppBtn?((0,s.wg)(),(0,s.j4)(_.Z,{key:0,label:e.$t("overviewMarketplaceTable.installBtn"),color:"primary",icon:"sym_s_store",onClick:t[1]||(t[1]=e=>u())},null,8,["label"])):(0,s.kq)("",!0)])),header:(0,s.w5)((t=>[(0,s.Wm)(g,{props:t},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{class:"marketplace-table-th-main"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.appNameColumn")),1)])),_:1}),(0,s.Wm)(d,{class:"marketplace-table-th"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.installDirectoryColumn")),1)])),_:1}),(0,s.Wm)(d,{class:"marketplace-table-th"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.$t("overviewMarketplaceTable.createdAtColumn")),1)])),_:1}),(0,s.Wm)(d)])),_:2},1032,["props"])])),body:(0,s.w5)((e=>[(0,s.Wm)(g,{props:e},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:"td-main-table"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{avatarUrl:e.row.avatarUrl,appName:e.row.name,type:e.row.type,path:e.row.hostname+e.row.urlPath},null,8,["avatarUrl","appName","type","path"])])),_:2},1024),(0,s.Wm)(v,{class:"text-center"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)(e.row.installDirectory),1)])),_:2},1024),(0,s.Wm)(v,{class:"text-center"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,o.zw)((0,l.SU)(k.Z)({epoch:e.row.createdAt,onlyDate:!0})),1)])),_:2},1024),(0,s.Wm)(v,{class:"text-right"},{default:(0,s.w5)((()=>[(0,s.Wm)(D,{app:e.row},null,8,["app"])])),_:2},1024)])),_:2},1032,["props"])])),_:1},8,["rows","filter","pagination","no-data-label"]),(0,s._)("div",x,[(0,s.Wm)(f,{modelValue:r.value.page,"onUpdate:modelValue":t[3]||(t[3]=e=>r.value.page=e),color:"primary",max:i.value,size:"md"},null,8,["modelValue","max"])])],64)}}});var Z=a(84277),S=a(13119),P=a(22857),C=a(90136),T=a(31233),A=a(21682),I=a(67220),M=a(80996);const E=q,U=E;y()(q,"components",{QTable:Z.Z,QInput:S.Z,QIcon:P.Z,QSpace:C.Z,QTr:T.Z,QTh:A.Z,QTd:I.Z,QPagination:M.Z})}}]); \ No newline at end of file