@duplicati/ngclient 0.0.232 → 0.0.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/sh.woff2 +0 -0
- package/{chunk-B52v_pjw.js → chunk-8Y8ReLEn.js} +2 -2
- package/{chunk-Brvxo-yI.js → chunk-AuCOjHXM.js} +1 -1
- package/{chunk-Bja52qI7.js → chunk-B1c7h-_w.js} +1 -1
- package/{chunk-BqN36tfl.js → chunk-B1wZ4poV.js} +1 -1
- package/{chunk-DI7suso2.js → chunk-B5Y6lgE8.js} +1 -1
- package/chunk-B6c2NXNy.js +1 -0
- package/{chunk-Cjb79u3p.js → chunk-BZgAzrl9.js} +1 -1
- package/chunk-B_cIFQAl.js +1 -0
- package/{chunk-Da_-7L7P.js → chunk-BaSm1lsB.js} +1 -1
- package/{chunk-Saq2s7Ep.js → chunk-Bgw6E0Xu.js} +1 -1
- package/{chunk-CIcBoEH1.js → chunk-Bj7EyCHb.js} +1 -1
- package/{chunk-aOMoAKYY.js → chunk-BmmYJhOf.js} +1 -1
- package/chunk-BrtdRb9j.js +1 -0
- package/{chunk-CkrxdjhU.js → chunk-BsNCg00z.js} +2 -2
- package/{chunk-CHzwXmsn.js → chunk-BstaUtD_.js} +1 -1
- package/{chunk-BBsBaTWO.js → chunk-BxpXVeOr.js} +1 -1
- package/{chunk-ivwxSoND.js → chunk-ByL8ndec.js} +1 -1
- package/chunk-BzJX1fKw.js +1 -0
- package/{chunk-B53Wj4F9.js → chunk-C3gUxHQM.js} +1 -1
- package/{chunk-Cz0KuBHB.js → chunk-C7AeY2HY.js} +2 -2
- package/chunk-C7gG_Yh_.js +2 -0
- package/{chunk-CgyaUJSI.js → chunk-C9OqpwwE.js} +1 -1
- package/{chunk-DvyGZpE4.js → chunk-C9ecLR93.js} +2 -2
- package/chunk-CGsQCBkP.js +1 -0
- package/{chunk-CUaRQ2FJ.js → chunk-CIe9Bupz.js} +1 -1
- package/chunk-CIw_h8oP.js +1 -0
- package/{chunk-DZm4l28A.js → chunk-CP6xnjgo.js} +2 -2
- package/{chunk-Cg09iQR5.js → chunk-CS2J-6VZ.js} +1 -1
- package/{chunk-umW-K0Ca.js → chunk-CWgXi-7W.js} +1 -1
- package/{chunk-DmDqcC4A.js → chunk-CX3Axjpk.js} +1 -1
- package/{chunk-BlTnmRGU.js → chunk-Ca1aaA1h.js} +1 -1
- package/{chunk-CartdZy-.js → chunk-CfxBiw7I.js} +1 -1
- package/{chunk-CTm37hI-.js → chunk-CgJAbgNN.js} +1 -1
- package/{chunk-CUuyy9Er.js → chunk-ChUm8bnG.js} +1 -1
- package/{chunk-CtEMAj2d.js → chunk-CkRbgemk.js} +1 -1
- package/chunk-ClRItSzt.js +1 -0
- package/{chunk-DoQHDPZg.js → chunk-CsIAXoYP.js} +1 -1
- package/{chunk-BVEyeg9y.js → chunk-CuJ_uEdr.js} +1 -1
- package/{chunk-BEhUV7oX.js → chunk-CvSsZZty.js} +1 -1
- package/{chunk-Bb6BmVO4.js → chunk-CyqqlRjO.js} +2 -2
- package/{chunk-DqIU7ViF.js → chunk-D1pDZLJ9.js} +1 -1
- package/{chunk-vnqcxg-9.js → chunk-D2G7_0hG.js} +1 -1
- package/{chunk-DKZlKdfB.js → chunk-D3PhthfU.js} +1 -1
- package/chunk-D55uWC7G.js +1 -0
- package/{chunk-B8uF0dom.js → chunk-DDWDcSq2.js} +1 -1
- package/{chunk-Cu2bh6aQ.js → chunk-DD_wKpGc.js} +1 -1
- package/{chunk-Box6Lckh.js → chunk-DGvC49aU.js} +1 -1
- package/{chunk-BkIXk6uR.js → chunk-DGxk44Me.js} +2 -2
- package/{chunk-D5tms-6w.js → chunk-DM11Gu0H.js} +1 -1
- package/chunk-DV8bRznt.js +2 -0
- package/{chunk-Dum38U6w.js → chunk-DWiO0A6h.js} +2 -2
- package/{chunk-BpRWdcC8.js → chunk-DXEgz1tV.js} +1 -1
- package/{chunk-BI14DMeb.js → chunk-DbbyVAGl.js} +1 -1
- package/{chunk-CVQPUpDQ.js → chunk-DcdpG1YG.js} +2 -2
- package/{chunk-B9maI7Xa.js → chunk-DhiIZLrA.js} +3 -3
- package/{chunk-BTgf5lfZ.js → chunk-DidJB9ig.js} +1 -1
- package/{chunk-CX26gEKv.js → chunk-Dk-Wgx3e.js} +1 -1
- package/{chunk-BBU0vswn.js → chunk-DuYKanVS.js} +1 -1
- package/{chunk-DY3nK3tu.js → chunk-DwmssGG9.js} +1 -1
- package/chunk-DxFBzFom.js +1 -0
- package/{chunk-ihUnHtR7.js → chunk-Dz5guW4b.js} +1 -1
- package/{chunk-DzmZd524.js → chunk-FTZ5atHM.js} +1 -1
- package/{chunk-CZoVeRAG.js → chunk-I5dxaHZ4.js} +2 -2
- package/{chunk-C4GeR7BF.js → chunk-K2iai6rC.js} +1 -1
- package/{chunk-BYWmNy-_.js → chunk-L8hQtTzU.js} +1 -1
- package/{chunk-CKnRcyHZ.js → chunk-MDqH8T3Z.js} +2 -2
- package/{chunk-BkUa7yBI.js → chunk-Y-xXBGKy.js} +1 -1
- package/{chunk-Bt_Ie-F3.js → chunk-Z81HNfgo.js} +1 -1
- package/{chunk-DUYvFN8m.js → chunk-aCJqF9DH.js} +1 -1
- package/{chunk-Bo1yB-fQ.js → chunk-aYCYzU5Q.js} +1 -1
- package/{chunk-C80zvTbO.js → chunk-bt6lhYfG.js} +1 -1
- package/{chunk-Rp7-yjlz.js → chunk-eiyaQxBt.js} +1 -1
- package/{chunk-DJJ8GbYi.js → chunk-h6n5A491.js} +1 -1
- package/{chunk-vPGrgL1U.js → chunk-jy8x4GhV.js} +1 -1
- package/{chunk-BS8PXjJJ.js → chunk-ksSA-rDF.js} +1 -1
- package/{chunk-Dn8nZWLd.js → chunk-lymL5FDY.js} +1 -1
- package/{chunk-CAwTsBqQ.js → chunk-mA4J4_nC.js} +1 -1
- package/{chunk-CwKy8pxa.js → chunk-mflQLMHH.js} +1 -1
- package/chunk-nuwlP4Wz.js +14 -0
- package/chunk-uGh0bVbu.js +4 -0
- package/index.html +1 -1
- package/locale/messages.de.json +69 -9
- package/locale/messages.de_CH.json +68 -8
- package/locale/messages.de_DE.json +68 -8
- package/locale/messages.en.json +32 -8
- package/locale/messages.fr.json +77 -13
- package/locale/messages.fr_CA.json +72 -8
- package/locale/messages.fr_FR.json +72 -8
- package/locale/messages.it.json +76 -12
- package/locale/messages.it_IT.json +72 -8
- package/locale/messages.json +32 -8
- package/locale/messages.ko.json +8 -15
- package/locale/messages.nl_BE.json +72 -8
- package/locale/messages.nl_NL.json +72 -8
- package/locale/messages.tr.json +7 -9
- package/locale/messages.zh-Hans.json +159 -16
- package/locale/messages.zh-Hant.json +159 -16
- package/locale/messages.zh.json +159 -16
- package/locale/messages.zh_CN.json +159 -16
- package/locale/messages.zh_HK.json +7 -8
- package/locale/messages.zh_TW.json +159 -16
- package/{main-VVQP2YE7.js → main-3NL5M6JB.js} +13 -13
- package/package.json +1 -1
- package/chunk-B73LRsqH.js +0 -1
- package/chunk-BO2GlieG.js +0 -1
- package/chunk-BaxM-kGV.js +0 -2
- package/chunk-BvGGBIy7.js +0 -1
- package/chunk-CGArETYn.js +0 -1
- package/chunk-CTRzgLM9.js +0 -2
- package/chunk-CTwO6j97.js +0 -1
- package/chunk-Cu4siB3B.js +0 -4
- package/chunk-DTu0ZYnR.js +0 -1
- package/chunk-DYnVzNxt.js +0 -1
- package/chunk-kU0H989B.js +0 -14
- package/chunk-mby7fvmj.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {J}from'./chunk-DUYvFN8m.js';import {c}from'./chunk-BpRWdcC8.js';import {E as Ee,L as Le}from'./chunk-ihUnHtR7.js';import {N as Nt$2}from'./chunk-Bb6BmVO4.js';import {v as ve}from'./chunk-DmDqcC4A.js';import {x}from'./chunk-CAwTsBqQ.js';import {T,ab as C,m,a6 as be,b as I1,ac as v1,G as Ge,E as D1,N as Nt$1,ai as m$1,aj as l,z as za,at as h,aG as pt$1,b0 as Hs,b1 as oy,bK as Dy,H as qu,h as hw,v,d as N,a0 as de,b_ as ei,u as ue,aH as m$2,M as aC,f as aT,Q as Qi,X as cC,bg as ag,$ as $l,c4 as pC,i as cT,C as CE,Y as Yg,A as yg,a$ as JC,W as Wg,K as fC,p as cm,U as UC,s as CD,aC as mg,x as am,y as _D,ag as Zg,aD as YC,n as nC,aP as ql,a1 as dT,aQ as Gl,au as jg,av as rC,a2 as fT,c5 as $s,ay as Gu,l as vT,r as kd,k as iC,O as Od,j as vg,b$ as Dg,V as Vg,w as jC,J as om,L as Lg,F as Fg,a3 as KC,aB as im,ap as lT,aM as ob,aa as Ql,aS as cb,aF as XC,ar as Qp,c6 as lb}from'./main-VVQP2YE7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-BO2GlieG.js';import {$}from'./chunk-Box6Lckh.js';function Tt(r){let t=r.replace(/^@/,""),e=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return t=t.replace(e,(n,i,o)=>`(${o})`),t.replace(/\\/g,"\\\\")}function dt(r,t){let e=Tt(t),n=e.startsWith("^")&&e.endsWith("$")?e:`^(${e})$`;return new RegExp(n).test(r)}function Se(r,t){let e=t.replace(/[\\.+^${}()|[\]*?]/g,n=>n==="*"?".*":n==="?"?".":"\\"+n);return new RegExp(`^${e}$`).test(r)}var Et=["treeContainer"],bt=["formRef"],St=[[["label"]],[["label"]],[["input"]]],Nt=["label","label","input"],ut=["ngProjectAs","label",5,["label"]],vt=["ngProjectAs","input",5,["input"]],Ot=r=>({children:r,level:0}),_t=r=>({$implicit:r}),Ft=(r,t)=>({children:r,level:t}),xt=()=>({maxWidth:"700px",width:"100%"}),Rt=(r,t)=>t.id;function Dt(r,t){if(r&1){let e=vT();Qi(0,"sh-button-group",22),cm("valueChange",function(i){kd(e);let o=iC();return UC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),Od(i)}),Qi(1,"button",23),nC(2,4),$l(),Qi(3,"button",24),nC(4,5),$l()();}if(r&2){let e=iC();am("value",e.pathDiscoveryMethod);}}function wt(r,t){r&1&&vg(0,"sh-progress-bar",14);}function It(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"spinner"),$l());}function Lt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"arrow-down"),$l());}function At(r,t){if(r&1){let e=vT();Qi(0,"div",26),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.loadMore(i,o))}),Qi(1,"div",27),vg(2,"sh-icon",28),aT(3,It,2,0,"sh-icon",29)(4,Lt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l()()();}if(r&2){let e=iC().$implicit,n=iC(2);Yg("loading",n.isLoading()===e.id),CE(3),cT(n.isLoading()===e.id?3:4),CE(4),om(e.text);}}function kt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-down"),$l());}function Bt(r,t){r&1&&vg(0,"sh-icon",28);}function $t(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"spinner"),$l());}function Wt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-right"),$l());}function Vt(r,t){if(r&1&&vg(0,"img",34),r&2){let e=iC(3).$implicit;yg("src",e.customIcon,Qp);}}function Gt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-open"),$l());}function zt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-user"),$l());}function jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"file"),$l());}function Ht(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder"),$l());}function Ut(r,t){if(r&1&&(aT(0,kt,2,0,"sh-icon",28)(1,Bt,1,0,"sh-icon",28)(2,$t,2,0,"sh-icon",28)(3,Wt,2,0,"sh-icon",28),aT(4,Vt,1,1,"img",34)(5,Gt,2,0,"sh-icon",29)(6,zt,2,0,"sh-icon",29)(7,jt,2,0,"sh-icon",29)(8,Ht,2,0,"sh-icon",29)),r&2){let e=iC(2).$implicit,n=iC(2);cT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),CE(4),cT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"desktop-tower"),$l());}function Xt(r,t){if(r&1&&(Qi(0,"span",33),jC(1),ob(2,"bytes"),$l()),r&2){let e=iC(2).$implicit;CE(),Ql("\xA0(",cb(2,1,e.fileSize,true,true),")");}}function qt(r,t){r&1&&Dg(0);}function Kt(r,t){if(r&1&&ag(0,qt,1,0,"ng-container",15),r&2){let e=iC(2).$implicit,n=iC().$implicit;iC();let i=pC(7);yg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,_t,XC(2,Ft,e.children,n.level+1)));}}function Qt(r,t){if(r&1){let e=vT();Qi(0,"div",31,3),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.toggleSelectedNode(i,o))}),Qi(2,"div",32),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.toggleNode(i,o.id,o))}),aT(3,Ut,9,2)(4,Jt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l(),aT(8,Xt,3,5,"span",33),$l()(),aT(9,Kt,1,7,"ng-container");}if(r&2){let e=iC().$implicit,n=iC().$implicit,i=iC();Yg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),CE(2),Yg("file",e.cls==="file"),CE(),cT(e.id!=="/"?3:4),CE(4),om(e.text),CE(),cT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),CE(),cT(e.children.length>0?9:-1);}}function Yt(r,t){if(r&1&&aT(0,At,8,4,"div",25)(1,Qt,10,24),r&2){let e=t.$implicit,n=iC(2);cT(e.isLoadMore?0:e.hidden&&n._showHiddenNodes()||!e.hidden?1:-1);}}function Zt(r,t){if(r&1&&(Qi(0,"sh-list"),dT(1,Yt,2,1,null,null,Rt),$l()),r&2){let e=t.$implicit;Zg("padding-left",e.level*.25,"rem"),CE(),fT(e.children);}}function en(r,t){r&1&&Dg(0);}function tn(r,t){if(r&1){let e=vT();Qi(0,"sh-toggle",35),cm("checkedChange",function(i){kd(e);let o=iC();return UC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),Od(i)}),nC(1,6),$l();}if(r&2){let e=iC();am("checked",e._showHiddenNodes),CE(),jg(e.showFiles()?"files":"folders"),rC(1);}}function nn(r,t){if(r&1){let e=vT();Qi(0,"button",36),Vg("click",function(){kd(e);let i=iC();return Od(i.openCreateFolderDialog())}),nC(1,7),$l();}if(r&2){let e=iC();yg("disabled",!e.isCurrentPathFolder());}}function on(r,t){if(r&1&&(Qi(0,"sh-alert",20),jC(1),$l()),r&2){let e=iC();yg("color","error"),CE(),om(e.errorMessage());}}function rn(r,t){if(r&1){let e=vT();Qi(0,"sh-dialog",37),cm("isOpenChange",function(i){kd(e);let o=iC();return UC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),Od(i)}),Qi(1,"header",38)(2,"h2"),nC(3,8),$l()(),Qi(4,"div",39)(5,"div",40)(6,"p"),nC(7,9),$l(),Qi(8,"div",41)(9,"pre"),jC(10),$l()()(),Qi(11,"sh-form-field")(12,"textarea",42),cm("ngModelChange",function(i){kd(e);let o=iC();return UC(o.createFolderPath,i)||(o.createFolderPath=i),Od(i)}),$l(),CD(),$l()(),Qi(13,"footer",43)(14,"button",44),Vg("click",function(){kd(e);let i=iC();return Od(i.closeCreateFolderDialog(false))}),jC(15,"Cancel"),$l(),Qi(16,"button",45),Vg("click",function(){kd(e);let i=iC();return Od(i.closeCreateFolderDialog(true))}),Lg(17,10),vg(18,"sh-icon"),Fg(),$l()()();}if(r&2){let e=iC();am("isOpen",e.createFolderDialogOpen),yg("options",KC(6,xt)),CE(10),im("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),CE(2),am("ngModel",e.createFolderPath),_D(),CE(4),yg("disabled",!e.createFolderPath()?.length);}}var ft=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(ft||{}),E="/",pt="\0load-more",ie=true,Ne=class r{#e=T(C);#t=T(m);#E=T(be);multiSelect=I1(false);disabled=I1(false);showFiles=I1(false);selectFiles=I1(false);onlySelectFolder=I1(false);accepts=I1(null);startingPath=I1(null);rootPaths=I1([]);initialNodes=I1([]);backupSettings=I1(null);pathRefreshTrigger=I1(false);showHiddenNodes=I1(false);enableCreateFolder=I1(false);hideShortcuts=I1(false);resolvePaths=I1(false);customRemoteMode=I1(null);showUnrootedSources=I1(false);backupId=I1("");connectionStringId=I1(null);sourcePrefix=I1("");destinationUrl=I1("");loadExtendedData=I1(true);hasExtendedData=v1();searchMode=I1(false);searchResults=I1([]);_showHiddenNodes=Ge(false);createFolderDialogOpen=Ge(false);createFolderPath=Ge(null);errorMessage=Ge(null);anyRemoteSourcesLoaded=Ge(false);treeContainerRef=D1("treeContainer");formRef=D1("formRef");pathDiscoveryMethod=Ge("browse");isLoading=Ge(null);currentPath=Ge("");#p=Ge(null);treeSearchQuery=Ge("");treeNodes=Ge([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==E));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#c(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],l=e[2]??"";return o==="diskimage"&&!l&&(l=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:l}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[E]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#c(n);return i?{id:n,path:i.mount,displayName:Le(i.url),icon:Ee(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#d(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#c(e);return n?this.#s(n.mount):e})}TreeEvalEnum=ft;#b=Nt$1(()=>{if(!this.#r())return null;let t=this.#d(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().filter(o=>!o.isLoadMore).map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#b()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?oy(null):$s(300).pipe(Gu(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt$1(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Hs(()=>oy(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let s of t){let a=s.Path??"",m=this.#a(a),P=a.split(m).filter(O=>O!==""),y="";for(let O=0;O<P.length;O++){let b=P[O],I=O===P.length-1,U=!I||this.#n(a),Pt=y||E,ve=y?y.endsWith(m)?y.slice(0,-m.length):y:"";if(y=ve?`${ve}${m}${b}`:`${m}${b}`,U&&!y.endsWith(m)&&(y+=m),!i.has(y))i.set(y,{part:b,parentPath:Pt,isFolder:U,match:I?s:null});else if(I){let yt=i.get(y);yt.match=s;}}}let o=new Map;for(let[s,a]of i)o.has(a.parentPath)||o.set(a.parentPath,[]),o.get(a.parentPath).push(s);let l=new Set,d=new Map;for(let[s,a]of i){if(!a.isFolder){l.add(s);continue}let m=o.get(a.parentPath)||[];if(m.length===1&&m[0]===s&&a.parentPath!==E)continue;l.add(s);let y=a.part,O=s;for(;;){let b=o.get(O)||[];if(b.length!==1)break;let I=b[0],U=i.get(I);if(!U||!U.isFolder)break;y+="/"+U.part,O=I;}O!==s&&d.set(s,y);}l.add(E);let c=[],p=new Map,u=Array.from(l).filter(s=>s!==E).sort((s,a)=>s.split("/").length-a.split("/").length||s.localeCompare(a));for(let s of u){let a=i.get(s);if(!a)continue;let m=a.parentPath;for(;m!==E&&!l.has(m);)m=i.get(m)?.parentPath||E;if(p.has(s))continue;let P=this.#g(d.get(s),a.match?.Metadata)??a.part,y=a.match===null,O=a.match!==null&&!a.isFolder&&n?0:this.#r()?this.#h(s,null,e,a.isFolder?"folder":"file"):this.#u(e,s,a.isFolder?"folder":"file",null),b={id:s,resolvedpath:s,text:P,parentPath:m,children:[],evalState:O,isIndeterminate:this.isIndeterminate(e,s),cls:a.isFolder?"folder":"file",isSearchMatch:a.match!==null,isGenerated:y,hasChildrenInSearch:(o.get(s)?.length||0)>0,iconCls:null,check:false,leaf:!a.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:a.match?.Size??0};if(p.set(s,b),m===E)c.push(b);else {let I=p.get(m);I&&I.children.push(b);}}let M=s=>{s.sort((a,m)=>a.cls==="folder"&&m.cls!=="folder"?-1:a.cls!=="folder"&&m.cls==="folder"?1:(a.text??"").localeCompare(m.text??"")),s.forEach(a=>M(a.children));};return M(c),c});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#S(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),l$1=this.accepts(),d=[];o.length>0?d=o.map(p=>{let u=this.#r()?this.#h(p,null,n,"folder"):this.#u(n,p,"folder",null);return {id:p,resolvedpath:p,text:p,parentPath:"",children:[],evalState:u,isIndeterminate:false,cls:this.#n(p)?"folder":"file"}}):d=[{id:E,resolvedpath:E,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let c=this.#m().map(p=>({id:p.path,resolvedpath:p.path,remoteSource:this.#c(p.id),text:p.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:p.icon}));return d=[...d,...c],d.map(p=>{let u=new Map;if(!p.id)return;let M=p.id;l$1&&(p.accepted=true),u.set(M,p);let s=o.length>0?i.filter(a=>a.parentPath.startsWith(M)):i;for(let a of s){if(!a.id)continue;let m=a.id;if(!a.cls||u.has(m))continue;let P=u.get(a.parentPath),y=a.isLoadMore===true,O=y||a.hidden===true&&!e?0:this.#r()?this.#h(m,P,n,a.cls):this.#u(n,m,a.cls,P),b=m$1(l({},a),{isIndeterminate:y?false:this.isIndeterminate(n,m),evalState:O,children:[]});y?b.accepted=true:l$1&&(b.accepted=this.matchAccepts(l$1,b)),u.set(m,b),b.id?.startsWith("%")&&b.id?.endsWith("%")&&u.set(this.#s(m),b),P&&P.children.push(b);}return p}),d});#S(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let l=o.slice(1,-1),d=this.filterGroups?.FilterGroups?.[l];if(d&&d.length){let c=d.map(p=>`-${p}`);e.splice(n,1,...c);}}}return e}#s(t){if(!t)return E;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===E?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#u(n,t,i,e)}#u(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,l=this.#d(t.filter(u=>!this.#i(u))),d=t.filter(u=>this.#i(u)),c=this.multiSelect(),p=this.#f(this.treeNodes().find(u=>u.id===e))??e;if(l.length===0)return o;for(let u=0;u<l.length;u++){let M=l[u];if(e===M||p==M){o=1;break}if(!c||!this.#n(M))continue;if(e?.startsWith(M)||p?.startsWith(M)){o=1;break}}if(d.length===0)return o;for(let u=0;u<d.length;u++){let M=d[u],s=M.slice(1),a=M.startsWith("-")?-1:1;if(this.#n(s)){if(n!=="folder")continue;if(e===s||p==s){o=a;break}}if(s.startsWith("*")&&(s.endsWith("*\\")||s.endsWith("*/"))){if(n!=="folder")continue;let P=s.slice(1,-2);if(P==="")break;if(e?.includes(P+"\\")||e?.includes(P+"/")){o=a;break}}if(s.startsWith("[.*")&&(s.endsWith("[^\\/]*]")||s.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let P=s.slice(3,-7);if(new RegExp(P).test(e)){o=a;break}}if(s.startsWith("[")&&s.endsWith("]")){let P=s.slice(1,-1);if(dt(e,P)){o=a;break}}if(s.startsWith("*.")){if(n!=="file"||s.replace("*.","").length===0)continue;if(Se(e,s)){o=a;break}}if(s==="")continue;if(s===e){o=a;break}if(Se(e,s)){o=a;break}}return o}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=za(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=za(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===E)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=za(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=za(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#N(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#F(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#l(null,e[0])):this.#l(null,E);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?E:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.isLoadMore||e.id===E||this.#m().map(u=>this.#c(u.id)?.mount).filter(u=>u).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#d(i),l=this.isChildOfSelected(e),d=this.#f(e),c=l?`-${d}`:d,p=this.#n(d);if(this.multiSelect())if(o.includes(d))this.currentPath.set(i.filter(u=>u!==d&&!(p&&u.startsWith(c))).join("\0"));else if(o.some(u=>u==c))this.currentPath.set(i.filter(u=>u!==c).join("\0"));else {let u=p?i.filter(M=>!M.startsWith(d)):i;this.currentPath.set([...u,c].join("\0"));}else i.includes(d)?this.currentPath.set(i.filter(u=>u!==d).join("\0")):this.currentPath.set(d);}isChildOfSelected(t){return this.#d(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#l(n,e));}loadMore(t,e){t.stopPropagation(),e.isLoadMore&&this.isLoading()===null&&this.#l(e,e.parentPath||E,e.loadMoreOffset??null);}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#l(null,n),setTimeout(()=>{this.#C();},500),this.createFolderDialogOpen.set(false);},error:d=>{let c=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),p=c?c[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#E.open(h,{data:{title:$localize`Cannot create folder`,message:p,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#C(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#N(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#v(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n,i=null){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:i,Limit:100}}).pipe(pt$1(o=>{let l$1=o.Data?.Items??[];return {items:l$1.map(c=>m$1(l({},c),{Path:(e?.prefix??"")+c.Path})).filter(c=>c.Metadata==null||!c.Metadata.ExtType),hasMore:o.Data?.HasMore??false,nextOffset:(o.Data?.Offset??i??0)+l$1.length}}))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#P(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#y(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt$1(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#O(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt$1(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt$1(i=>i.Files??[]))}}#T(t,e,n=null){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#P(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#P(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#y(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#y(t):this.isByBackupSettings()?this.#O(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend",n):this.#v(t)}#F(t){let n=t.split("\0").filter(l=>!this.#i(l)&&!l.startsWith("@")).filter(Boolean).map(l=>{let d=this.#a(l),c=l.split(d);return c.at(-1)===""&&c.pop(),this.#n(l)||c.pop(),{split:c,sep:d}}),i=[E];n.forEach(({split:l,sep:d})=>{l.forEach((c,p)=>{let u=l.slice(0,p+1).join(d)+d;u===""||u===d||i.includes(u)||i.push(u);});});let o=i.map(l=>(this.isLoading.set(l),this.#T(l,null).pipe(pt$1(d=>({status:"success",value:d,url:l})),Hs(d=>oy({status:"error",value:d,url:l})))));Dy(o).pipe(qu(()=>this.isLoading.set(null))).subscribe({next:l$1=>{let d=l$1.filter(p=>p.status==="success");l$1.filter(p=>p.status==="error");this.treeNodes.update(p=>{let u=d.flatMap(s=>(Array.isArray(s.value)?s.value:s.value?.items??[]).map(m=>m$1(l({},m),{parentPath:s.url})));u.length>0&&this.anyRemoteSourcesLoaded.set(true);let M=[...new Map([...p,...u].map(s=>[s.id,s])).values()];return this.#C(),this.hideShortcuts()?M.filter(s=>!s.id.startsWith("%")):M});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0?this.hasExtendedData.emit(t.ExtType):t&&t["diskimage:Type"]&&t["diskimage:Type"].length>0&&this.hasExtendedData.emit("diskimage");}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#R(t,e,n){return {id:`${t}${pt}`,text:$localize`Load more`,cls:"load-more",leaf:true,hidden:false,parentPath:t,remoteSource:e??void 0,isLoadMore:true,loadMoreOffset:n}}#l(t=null,e=E,n=null){let i=t?.remoteSource;this.isLoading.set(t?.isLoadMore?t.id??e:e),this.#T(e,i,n).pipe(qu(()=>this.isLoading.set(null))).subscribe({next:o=>{let l$1=Array.isArray(o)?{items:o,hasMore:false,nextOffset:0}:{items:o?.items??[],hasMore:o?.hasMore??false,nextOffset:o?.nextOffset??0},d=this.isByBackupSettings()||this.customRemoteMode()!==null||i?l$1.items.map(c=>{this.#x(c.Metadata);let p=this.#a(c.Path),u=this.#g(c.Path.split(p).filter(P=>P!=="").pop(),c.Metadata),M=c.Path,s=null,a=this.#n(c.Path)?"folder":"file",m=c.Metadata;return i&&(M=c.Path.substring(1),s=m$1(l({},i),{path:c.Path.substring(i.prefix.length)})),m&&(m["diskimage:Type"]==="geometry"||m["diskimage:Type"]==="partitioninfo"||m["diskimage:Type"]==="filesystem")?null:{text:u,id:M,cls:a,leaf:t!==null,resolvedpath:c.Path,hidden:false,remoteSource:s,fileSize:c.Size}}):l$1.items;d.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(c=>{let p=d.filter(a=>a!==null).map(a=>{let m=a.cls??(this.#n(a.id)?"folder":"file");return m$1(l({},a),{cls:m,parentPath:e})}),u=`${e}${pt}`,M=[...c,...p].filter(a=>a.id!==u);l$1.hasMore&&M.push(this.#R(e,i,l$1.nextOffset));let s=[...new Map(M.map(a=>[a.id,a])).values()];return this.hideShortcuts()?s.filter(a=>!a.id.startsWith("%")):s});},error:o=>{this.errorMessage.set(o.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&Wg(n.treeContainerRef,Et,5)(n.formRef,bt,5),e&2&&fC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Yg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Nt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let l;l=$localize`Will be created as:`;let d;return d=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,l,d,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",1,"load-more",3,"loading"],["action","",1,"load-more",3,"click"],[1,"icon","file"],[1,"small"],[1,"primary"],[1,"text"],["action","",3,"click"],[1,"icon",3,"click"],[1,"size"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(aC(St),aT(0,Dt,5,1,"sh-button-group",11),Qi(1,"div",12),cC(2,0,ut),Qi(3,"div",13,0),aT(5,wt,1,0,"sh-progress-bar",14),ag(6,Zt,3,2,"ng-template",null,1,lb)(8,en,1,0,"ng-container",15),$l(),Qi(9,"div",16),aT(10,tn,2,2,"sh-toggle",17),aT(11,nn,2,1,"button",18),$l()(),Qi(12,"div",19,2)(14,"sh-form-field"),cC(15,1,ut),cC(16,2,vt),$l()(),aT(17,on,2,2,"sh-alert",20),aT(18,rn,19,7,"sh-dialog",21)),e&2){let i=pC(7);cT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),CE(),Yg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),CE(2),Yg("visualize-accepted",n.accepts()),CE(2),cT(n.isLoading()!=null?5:-1),CE(3),yg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(16,_t,JC(14,Ot,n.treeStructure()))),CE(2),cT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),CE(),cT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),CE(),Yg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),CE(5),cT(n.errorMessage()?17:-1),CE(),cT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].load-more[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-style:italic;opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1&&jC(0),r&2){let e=t.$implicit,n=iC();im("",e.label,"",n.hasPerSecond()?"/s":"");}}var dn=["throttle-upload","throttle-download"],un=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],pn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},Ct=class r{customId=I1();inputType=I1();timespan=Ge(0);unit=Ge("MB");sizeOptions=Ge(un);readonly=Ge(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&dn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=pn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(aC(sn),Qi(0,"div",0),cC(1,0,ln),$l(),Qi(2,"sh-form-field")(3,"input",1),cm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(4,1),cC(5,2),$l(),Qi(6,"sh-select",2)(7,"input",3),cm("ngModelChange",function(o){return UC(n.unit,o)||(n.unit=o),o}),$l(),CD(),ag(8,cn,1,2,"ng-template"),$l()),e&2&&(CE(2),mg("readonly",n.readonly()||void 0),CE(),yg("id",n.customId()),am("ngModel",n.timespan),yg("disabled",n.readonly()),_D(),CE(3),Zg("--miw",0),yg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),CE(),am("ngModel",n.unit),_D());},dependencies:[Nt$2,Fe,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var hn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],gn=["label","[prefix]","[suffix]"],mn=["ngProjectAs","label",5,["label"]];function _n(r,t){if(r&1){let e=vT();Qi(0,"button",7),Vg("click",function(){let i=kd(e).$implicit,o=iC();return Od(o.updateUnit(i.value))}),nC(1,1),$l();}if(r&2){let e=t.$implicit;CE(),jg(e.label),rC(1);}}var fn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Cn=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Mn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout","long-database-query-threshold"],Mt=class r{customId=I1();inputType=I1();timespan=Ge(0);#e="D";unit=Ge(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&Mn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?fn:Cn);readonly=Ge(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});inputTypeEffect=za(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:gn,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(aC(hn),cC(0,0,mn),Qi(1,"sh-form-field")(2,"input",2),cm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(3,1),cC(4,2),$l(),Qi(5,"sh-menu",3)(6,"button",4),nC(7,0),$l(),ql(8,5),dT(9,_n,2,1,"button",6,lT),Gl(),$l()),e&2&&(CE(),mg("readonly",n.readonly()||void 0),CE(),yg("id",n.customId()),am("ngModel",n.timespan),yg("disabled",n.readonly()),_D(),CE(3),yg("openIndicator",true),CE(2),jg(n.unitLabel()),rC(7),CE(2),fT(n.timeOptions()));},dependencies:[ve,Fe,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
|
|
1
|
+
import {J}from'./chunk-aCJqF9DH.js';import {c}from'./chunk-DXEgz1tV.js';import {E as Ee,L as Le}from'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {T,ab as C,m,a6 as be,E as E1,ac as I1,G as Ge,D as w1,N as Nt$1,ai as m$1,aj as l,z as za,at as h,aG as pt$1,b0 as Hs,b1 as iy,bK as wy,J as zu,h as hw,v,c as N,a0 as de,bZ as ei,u as ue,aH as m$2,S as aC,d as aT,Q as Qi,Y as cC,bi as cg,$ as $l,c3 as pC,g as cT,C as CE,L as Kg,y as vg,a$ as JC,M as qg,R as fC,p as lm,U as UC,r as CD,aC as yg,w as cm,x as _D,ag as Yg,aD as YC,n as nC,aP as ql,a1 as dT,aQ as Gl,au as Vg,av as rC,a2 as fT,c4 as $s,ay as Qu,l as vT,O as Od,k as iC,P as Pd,i as Ig,b_ as wg,H as Hg,s as jC,K as im,F as Fg,j as jg,a3 as KC,aB as sm,ap as lT,aM as ob,aa as Ql,aS as cb,aF as XC,ar as Zp,c5 as lb}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';function Tt(r){let t=r.replace(/^@/,""),e=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return t=t.replace(e,(n,i,o)=>`(${o})`),t.replace(/\\/g,"\\\\")}function dt(r,t){let e=Tt(t),n=e.startsWith("^")&&e.endsWith("$")?e:`^(${e})$`;return new RegExp(n).test(r)}function Se(r,t){let e=t.replace(/[\\.+^${}()|[\]*?]/g,n=>n==="*"?".*":n==="?"?".":"\\"+n);return new RegExp(`^${e}$`).test(r)}var Et=["treeContainer"],bt=["formRef"],St=[[["label"]],[["label"]],[["input"]]],Nt=["label","label","input"],ut=["ngProjectAs","label",5,["label"]],vt=["ngProjectAs","input",5,["input"]],Ot=r=>({children:r,level:0}),_t=r=>({$implicit:r}),Ft=(r,t)=>({children:r,level:t}),xt=()=>({maxWidth:"700px",width:"100%"}),Rt=(r,t)=>t.id;function Dt(r,t){if(r&1){let e=vT();Qi(0,"sh-button-group",22),lm("valueChange",function(i){Od(e);let o=iC();return UC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),Pd(i)}),Qi(1,"button",23),nC(2,4),$l(),Qi(3,"button",24),nC(4,5),$l()();}if(r&2){let e=iC();cm("value",e.pathDiscoveryMethod);}}function wt(r,t){r&1&&Ig(0,"sh-progress-bar",14);}function It(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"spinner"),$l());}function Lt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"arrow-down"),$l());}function At(r,t){if(r&1){let e=vT();Qi(0,"div",26),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.loadMore(i,o))}),Qi(1,"div",27),Ig(2,"sh-icon",28),aT(3,It,2,0,"sh-icon",29)(4,Lt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l()()();}if(r&2){let e=iC().$implicit,n=iC(2);Kg("loading",n.isLoading()===e.id),CE(3),cT(n.isLoading()===e.id?3:4),CE(4),im(e.text);}}function kt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-down"),$l());}function Bt(r,t){r&1&&Ig(0,"sh-icon",28);}function $t(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"spinner"),$l());}function Wt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-right"),$l());}function Vt(r,t){if(r&1&&Ig(0,"img",34),r&2){let e=iC(3).$implicit;vg("src",e.customIcon,Zp);}}function Gt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-open"),$l());}function zt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-user"),$l());}function jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"file"),$l());}function Ht(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder"),$l());}function Ut(r,t){if(r&1&&(aT(0,kt,2,0,"sh-icon",28)(1,Bt,1,0,"sh-icon",28)(2,$t,2,0,"sh-icon",28)(3,Wt,2,0,"sh-icon",28),aT(4,Vt,1,1,"img",34)(5,Gt,2,0,"sh-icon",29)(6,zt,2,0,"sh-icon",29)(7,jt,2,0,"sh-icon",29)(8,Ht,2,0,"sh-icon",29)),r&2){let e=iC(2).$implicit,n=iC(2);cT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),CE(4),cT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"desktop-tower"),$l());}function Xt(r,t){if(r&1&&(Qi(0,"span",33),jC(1),ob(2,"bytes"),$l()),r&2){let e=iC(2).$implicit;CE(),Ql("\xA0(",cb(2,1,e.fileSize,true,true),")");}}function qt(r,t){r&1&&wg(0);}function Kt(r,t){if(r&1&&cg(0,qt,1,0,"ng-container",15),r&2){let e=iC(2).$implicit,n=iC().$implicit;iC();let i=pC(7);vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,_t,XC(2,Ft,e.children,n.level+1)));}}function Qt(r,t){if(r&1){let e=vT();Qi(0,"div",31,3),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleSelectedNode(i,o))}),Qi(2,"div",32),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleNode(i,o.id,o))}),aT(3,Ut,9,2)(4,Jt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l(),aT(8,Xt,3,5,"span",33),$l()(),aT(9,Kt,1,7,"ng-container");}if(r&2){let e=iC().$implicit,n=iC().$implicit,i=iC();Kg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),CE(2),Kg("file",e.cls==="file"),CE(),cT(e.id!=="/"?3:4),CE(4),im(e.text),CE(),cT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),CE(),cT(e.children.length>0?9:-1);}}function Yt(r,t){if(r&1&&aT(0,At,8,4,"div",25)(1,Qt,10,24),r&2){let e=t.$implicit,n=iC(2);cT(e.isLoadMore?0:e.hidden&&n._showHiddenNodes()||!e.hidden?1:-1);}}function Zt(r,t){if(r&1&&(Qi(0,"sh-list"),dT(1,Yt,2,1,null,null,Rt),$l()),r&2){let e=t.$implicit;Yg("padding-left",e.level*.25,"rem"),CE(),fT(e.children);}}function en(r,t){r&1&&wg(0);}function tn(r,t){if(r&1){let e=vT();Qi(0,"sh-toggle",35),lm("checkedChange",function(i){Od(e);let o=iC();return UC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),Pd(i)}),nC(1,6),$l();}if(r&2){let e=iC();cm("checked",e._showHiddenNodes),CE(),Vg(e.showFiles()?"files":"folders"),rC(1);}}function nn(r,t){if(r&1){let e=vT();Qi(0,"button",36),Hg("click",function(){Od(e);let i=iC();return Pd(i.openCreateFolderDialog())}),nC(1,7),$l();}if(r&2){let e=iC();vg("disabled",!e.isCurrentPathFolder());}}function on(r,t){if(r&1&&(Qi(0,"sh-alert",20),jC(1),$l()),r&2){let e=iC();vg("color","error"),CE(),im(e.errorMessage());}}function rn(r,t){if(r&1){let e=vT();Qi(0,"sh-dialog",37),lm("isOpenChange",function(i){Od(e);let o=iC();return UC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),Pd(i)}),Qi(1,"header",38)(2,"h2"),nC(3,8),$l()(),Qi(4,"div",39)(5,"div",40)(6,"p"),nC(7,9),$l(),Qi(8,"div",41)(9,"pre"),jC(10),$l()()(),Qi(11,"sh-form-field")(12,"textarea",42),lm("ngModelChange",function(i){Od(e);let o=iC();return UC(o.createFolderPath,i)||(o.createFolderPath=i),Pd(i)}),$l(),CD(),$l()(),Qi(13,"footer",43)(14,"button",44),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(false))}),jC(15,"Cancel"),$l(),Qi(16,"button",45),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(true))}),Fg(17,10),Ig(18,"sh-icon"),jg(),$l()()();}if(r&2){let e=iC();cm("isOpen",e.createFolderDialogOpen),vg("options",KC(6,xt)),CE(10),sm("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),CE(2),cm("ngModel",e.createFolderPath),_D(),CE(4),vg("disabled",!e.createFolderPath()?.length);}}var ft=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(ft||{}),E="/",pt="\0load-more",ie=true,Ne=class r{#e=T(C);#t=T(m);#E=T(be);multiSelect=E1(false);disabled=E1(false);showFiles=E1(false);selectFiles=E1(false);onlySelectFolder=E1(false);accepts=E1(null);startingPath=E1(null);rootPaths=E1([]);initialNodes=E1([]);backupSettings=E1(null);pathRefreshTrigger=E1(false);showHiddenNodes=E1(false);enableCreateFolder=E1(false);hideShortcuts=E1(false);resolvePaths=E1(false);customRemoteMode=E1(null);showUnrootedSources=E1(false);backupId=E1("");connectionStringId=E1(null);sourcePrefix=E1("");destinationUrl=E1("");loadExtendedData=E1(true);hasExtendedData=I1();searchMode=E1(false);searchResults=E1([]);_showHiddenNodes=Ge(false);createFolderDialogOpen=Ge(false);createFolderPath=Ge(null);errorMessage=Ge(null);anyRemoteSourcesLoaded=Ge(false);treeContainerRef=w1("treeContainer");formRef=w1("formRef");pathDiscoveryMethod=Ge("browse");isLoading=Ge(null);currentPath=Ge("");#p=Ge(null);treeSearchQuery=Ge("");treeNodes=Ge([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==E));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#c(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],l=e[2]??"";return o==="diskimage"&&!l&&(l=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:l}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[E]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#c(n);return i?{id:n,path:i.mount,displayName:Le(i.url),icon:Ee(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#d(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#c(e);return n?this.#s(n.mount):e})}TreeEvalEnum=ft;#b=Nt$1(()=>{if(!this.#r())return null;let t=this.#d(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().filter(o=>!o.isLoadMore).map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#b()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?iy(null):$s(300).pipe(Qu(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt$1(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Hs(()=>iy(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let s of t){let a=s.Path??"",m=this.#a(a),P=a.split(m).filter(O=>O!==""),y="";for(let O=0;O<P.length;O++){let b=P[O],I=O===P.length-1,U=!I||this.#n(a),Pt=y||E,ve=y?y.endsWith(m)?y.slice(0,-m.length):y:"";if(y=ve?`${ve}${m}${b}`:`${m}${b}`,U&&!y.endsWith(m)&&(y+=m),!i.has(y))i.set(y,{part:b,parentPath:Pt,isFolder:U,match:I?s:null});else if(I){let yt=i.get(y);yt.match=s;}}}let o=new Map;for(let[s,a]of i)o.has(a.parentPath)||o.set(a.parentPath,[]),o.get(a.parentPath).push(s);let l=new Set,d=new Map;for(let[s,a]of i){if(!a.isFolder){l.add(s);continue}let m=o.get(a.parentPath)||[];if(m.length===1&&m[0]===s&&a.parentPath!==E)continue;l.add(s);let y=a.part,O=s;for(;;){let b=o.get(O)||[];if(b.length!==1)break;let I=b[0],U=i.get(I);if(!U||!U.isFolder)break;y+="/"+U.part,O=I;}O!==s&&d.set(s,y);}l.add(E);let c=[],p=new Map,u=Array.from(l).filter(s=>s!==E).sort((s,a)=>s.split("/").length-a.split("/").length||s.localeCompare(a));for(let s of u){let a=i.get(s);if(!a)continue;let m=a.parentPath;for(;m!==E&&!l.has(m);)m=i.get(m)?.parentPath||E;if(p.has(s))continue;let P=this.#g(d.get(s),a.match?.Metadata)??a.part,y=a.match===null,O=a.match!==null&&!a.isFolder&&n?0:this.#r()?this.#h(s,null,e,a.isFolder?"folder":"file"):this.#u(e,s,a.isFolder?"folder":"file",null),b={id:s,resolvedpath:s,text:P,parentPath:m,children:[],evalState:O,isIndeterminate:this.isIndeterminate(e,s),cls:a.isFolder?"folder":"file",isSearchMatch:a.match!==null,isGenerated:y,hasChildrenInSearch:(o.get(s)?.length||0)>0,iconCls:null,check:false,leaf:!a.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:a.match?.Size??0};if(p.set(s,b),m===E)c.push(b);else {let I=p.get(m);I&&I.children.push(b);}}let M=s=>{s.sort((a,m)=>a.cls==="folder"&&m.cls!=="folder"?-1:a.cls!=="folder"&&m.cls==="folder"?1:(a.text??"").localeCompare(m.text??"")),s.forEach(a=>M(a.children));};return M(c),c});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#S(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),l$1=this.accepts(),d=[];o.length>0?d=o.map(p=>{let u=this.#r()?this.#h(p,null,n,"folder"):this.#u(n,p,"folder",null);return {id:p,resolvedpath:p,text:p,parentPath:"",children:[],evalState:u,isIndeterminate:false,cls:this.#n(p)?"folder":"file"}}):d=[{id:E,resolvedpath:E,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let c=this.#m().map(p=>({id:p.path,resolvedpath:p.path,remoteSource:this.#c(p.id),text:p.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:p.icon}));return d=[...d,...c],d.map(p=>{let u=new Map;if(!p.id)return;let M=p.id;l$1&&(p.accepted=true),u.set(M,p);let s=o.length>0?i.filter(a=>a.parentPath.startsWith(M)):i;for(let a of s){if(!a.id)continue;let m=a.id;if(!a.cls||u.has(m))continue;let P=u.get(a.parentPath),y=a.isLoadMore===true,O=y||a.hidden===true&&!e?0:this.#r()?this.#h(m,P,n,a.cls):this.#u(n,m,a.cls,P),b=m$1(l({},a),{isIndeterminate:y?false:this.isIndeterminate(n,m),evalState:O,children:[]});y?b.accepted=true:l$1&&(b.accepted=this.matchAccepts(l$1,b)),u.set(m,b),b.id?.startsWith("%")&&b.id?.endsWith("%")&&u.set(this.#s(m),b),P&&P.children.push(b);}return p}),d});#S(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let l=o.slice(1,-1),d=this.filterGroups?.FilterGroups?.[l];if(d&&d.length){let c=d.map(p=>`-${p}`);e.splice(n,1,...c);}}}return e}#s(t){if(!t)return E;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===E?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#u(n,t,i,e)}#u(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,l=this.#d(t.filter(u=>!this.#i(u))),d=t.filter(u=>this.#i(u)),c=this.multiSelect(),p=this.#f(this.treeNodes().find(u=>u.id===e))??e;if(l.length===0)return o;for(let u=0;u<l.length;u++){let M=l[u];if(e===M||p==M){o=1;break}if(!c||!this.#n(M))continue;if(e?.startsWith(M)||p?.startsWith(M)){o=1;break}}if(d.length===0)return o;for(let u=0;u<d.length;u++){let M=d[u],s=M.slice(1),a=M.startsWith("-")?-1:1;if(this.#n(s)){if(n!=="folder")continue;if(e===s||p==s){o=a;break}}if(s.startsWith("*")&&(s.endsWith("*\\")||s.endsWith("*/"))){if(n!=="folder")continue;let P=s.slice(1,-2);if(P==="")break;if(e?.includes(P+"\\")||e?.includes(P+"/")){o=a;break}}if(s.startsWith("[.*")&&(s.endsWith("[^\\/]*]")||s.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let P=s.slice(3,-7);if(new RegExp(P).test(e)){o=a;break}}if(s.startsWith("[")&&s.endsWith("]")){let P=s.slice(1,-1);if(dt(e,P)){o=a;break}}if(s.startsWith("*.")){if(n!=="file"||s.replace("*.","").length===0)continue;if(Se(e,s)){o=a;break}}if(s==="")continue;if(s===e){o=a;break}if(Se(e,s)){o=a;break}}return o}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=za(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=za(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===E)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=za(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=za(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#N(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#F(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#l(null,e[0])):this.#l(null,E);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?E:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.isLoadMore||e.id===E||this.#m().map(u=>this.#c(u.id)?.mount).filter(u=>u).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#d(i),l=this.isChildOfSelected(e),d=this.#f(e),c=l?`-${d}`:d,p=this.#n(d);if(this.multiSelect())if(o.includes(d))this.currentPath.set(i.filter(u=>u!==d&&!(p&&u.startsWith(c))).join("\0"));else if(o.some(u=>u==c))this.currentPath.set(i.filter(u=>u!==c).join("\0"));else {let u=p?i.filter(M=>!M.startsWith(d)):i;this.currentPath.set([...u,c].join("\0"));}else i.includes(d)?this.currentPath.set(i.filter(u=>u!==d).join("\0")):this.currentPath.set(d);}isChildOfSelected(t){return this.#d(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#l(n,e));}loadMore(t,e){t.stopPropagation(),e.isLoadMore&&this.isLoading()===null&&this.#l(e,e.parentPath||E,e.loadMoreOffset??null);}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#l(null,n),setTimeout(()=>{this.#C();},500),this.createFolderDialogOpen.set(false);},error:d=>{let c=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),p=c?c[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#E.open(h,{data:{title:$localize`Cannot create folder`,message:p,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#C(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#N(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#v(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n,i=null){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:i,Limit:100}}).pipe(pt$1(o=>{let l$1=o.Data?.Items??[];return {items:l$1.map(c=>m$1(l({},c),{Path:(e?.prefix??"")+c.Path})).filter(c=>c.Metadata==null||!c.Metadata.ExtType),hasMore:o.Data?.HasMore??false,nextOffset:(o.Data?.Offset??i??0)+l$1.length}}))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#P(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#y(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt$1(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#O(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt$1(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt$1(i=>i.Files??[]))}}#T(t,e,n=null){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#P(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#P(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#y(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#y(t):this.isByBackupSettings()?this.#O(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend",n):this.#v(t)}#F(t){let n=t.split("\0").filter(l=>!this.#i(l)&&!l.startsWith("@")).filter(Boolean).map(l=>{let d=this.#a(l),c=l.split(d);return c.at(-1)===""&&c.pop(),this.#n(l)||c.pop(),{split:c,sep:d}}),i=[E];n.forEach(({split:l,sep:d})=>{l.forEach((c,p)=>{let u=l.slice(0,p+1).join(d)+d;u===""||u===d||i.includes(u)||i.push(u);});});let o=i.map(l=>(this.isLoading.set(l),this.#T(l,null).pipe(pt$1(d=>({status:"success",value:d,url:l})),Hs(d=>iy({status:"error",value:d,url:l})))));wy(o).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:l$1=>{let d=l$1.filter(p=>p.status==="success");l$1.filter(p=>p.status==="error");this.treeNodes.update(p=>{let u=d.flatMap(s=>(Array.isArray(s.value)?s.value:s.value?.items??[]).map(m=>m$1(l({},m),{parentPath:s.url})));u.length>0&&this.anyRemoteSourcesLoaded.set(true);let M=[...new Map([...p,...u].map(s=>[s.id,s])).values()];return this.#C(),this.hideShortcuts()?M.filter(s=>!s.id.startsWith("%")):M});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0?this.hasExtendedData.emit(t.ExtType):t&&t["diskimage:Type"]&&t["diskimage:Type"].length>0&&this.hasExtendedData.emit("diskimage");}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#R(t,e,n){return {id:`${t}${pt}`,text:$localize`Load more`,cls:"load-more",leaf:true,hidden:false,parentPath:t,remoteSource:e??void 0,isLoadMore:true,loadMoreOffset:n}}#l(t=null,e=E,n=null){let i=t?.remoteSource;this.isLoading.set(t?.isLoadMore?t.id??e:e),this.#T(e,i,n).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:o=>{let l$1=Array.isArray(o)?{items:o,hasMore:false,nextOffset:0}:{items:o?.items??[],hasMore:o?.hasMore??false,nextOffset:o?.nextOffset??0},d=this.isByBackupSettings()||this.customRemoteMode()!==null||i?l$1.items.map(c=>{this.#x(c.Metadata);let p=this.#a(c.Path),u=this.#g(c.Path.split(p).filter(P=>P!=="").pop(),c.Metadata),M=c.Path,s=null,a=this.#n(c.Path)?"folder":"file",m=c.Metadata;return i&&(M=c.Path.substring(1),s=m$1(l({},i),{path:c.Path.substring(i.prefix.length)})),m&&(m["diskimage:Type"]==="geometry"||m["diskimage:Type"]==="partitioninfo"||m["diskimage:Type"]==="filesystem")?null:{text:u,id:M,cls:a,leaf:t!==null,resolvedpath:c.Path,hidden:false,remoteSource:s,fileSize:c.Size}}):l$1.items;d.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(c=>{let p=d.filter(a=>a!==null).map(a=>{let m=a.cls??(this.#n(a.id)?"folder":"file");return m$1(l({},a),{cls:m,parentPath:e})}),u=`${e}${pt}`,M=[...c,...p].filter(a=>a.id!==u);l$1.hasMore&&M.push(this.#R(e,i,l$1.nextOffset));let s=[...new Map(M.map(a=>[a.id,a])).values()];return this.hideShortcuts()?s.filter(a=>!a.id.startsWith("%")):s});},error:o=>{this.errorMessage.set(o.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&qg(n.treeContainerRef,Et,5)(n.formRef,bt,5),e&2&&fC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Kg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Nt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let l;l=$localize`Will be created as:`;let d;return d=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,l,d,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",1,"load-more",3,"loading"],["action","",1,"load-more",3,"click"],[1,"icon","file"],[1,"small"],[1,"primary"],[1,"text"],["action","",3,"click"],[1,"icon",3,"click"],[1,"size"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(aC(St),aT(0,Dt,5,1,"sh-button-group",11),Qi(1,"div",12),cC(2,0,ut),Qi(3,"div",13,0),aT(5,wt,1,0,"sh-progress-bar",14),cg(6,Zt,3,2,"ng-template",null,1,lb)(8,en,1,0,"ng-container",15),$l(),Qi(9,"div",16),aT(10,tn,2,2,"sh-toggle",17),aT(11,nn,2,1,"button",18),$l()(),Qi(12,"div",19,2)(14,"sh-form-field"),cC(15,1,ut),cC(16,2,vt),$l()(),aT(17,on,2,2,"sh-alert",20),aT(18,rn,19,7,"sh-dialog",21)),e&2){let i=pC(7);cT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),CE(),Kg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),CE(2),Kg("visualize-accepted",n.accepts()),CE(2),cT(n.isLoading()!=null?5:-1),CE(3),vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(16,_t,JC(14,Ot,n.treeStructure()))),CE(2),cT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),CE(),cT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),CE(),Kg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),CE(5),cT(n.errorMessage()?17:-1),CE(),cT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].load-more[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-style:italic;opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1&&jC(0),r&2){let e=t.$implicit,n=iC();sm("",e.label,"",n.hasPerSecond()?"/s":"");}}var dn=["throttle-upload","throttle-download"],un=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],pn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},Ct=class r{customId=E1();inputType=E1();timespan=Ge(0);unit=Ge("MB");sizeOptions=Ge(un);readonly=Ge(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&dn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=pn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(aC(sn),Qi(0,"div",0),cC(1,0,ln),$l(),Qi(2,"sh-form-field")(3,"input",1),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(4,1),cC(5,2),$l(),Qi(6,"sh-select",2)(7,"input",3),lm("ngModelChange",function(o){return UC(n.unit,o)||(n.unit=o),o}),$l(),CD(),cg(8,cn,1,2,"ng-template"),$l()),e&2&&(CE(2),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),Yg("--miw",0),vg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),CE(),cm("ngModel",n.unit),_D());},dependencies:[Nt$2,Fe,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var hn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],gn=["label","[prefix]","[suffix]"],mn=["ngProjectAs","label",5,["label"]];function _n(r,t){if(r&1){let e=vT();Qi(0,"button",7),Hg("click",function(){let i=Od(e).$implicit,o=iC();return Pd(o.updateUnit(i.value))}),nC(1,1),$l();}if(r&2){let e=t.$implicit;CE(),Vg(e.label),rC(1);}}var fn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Cn=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Mn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout","long-database-query-threshold"],Mt=class r{customId=E1();inputType=E1();timespan=Ge(0);#e="D";unit=Ge(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&Mn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?fn:Cn);readonly=Ge(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});inputTypeEffect=za(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:gn,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(aC(hn),cC(0,0,mn),Qi(1,"sh-form-field")(2,"input",2),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(3,1),cC(4,2),$l(),Qi(5,"sh-menu",3)(6,"button",4),nC(7,0),$l(),ql(8,5),dT(9,_n,2,1,"button",6,lT),Gl(),$l()),e&2&&(CE(),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),vg("openIndicator",true),CE(2),Vg(n.unitLabel()),rC(7),CE(2),fT(n.timeOptions()));},dependencies:[ve,Fe,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
|
|
2
2
|
export{Ct as C,Mt as M,Ne as N,pn as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {e as ee,W}from'./chunk-K2iai6rC.js';import {k}from'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {N as Ne,E as Ee}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import {D}from'./chunk-DidJB9ig.js';import {T,ab as C,aX as y,a5 as g,bj as Q,a6 as be,m,N as Nt$1,G as Ge,B as A,z as za,J as zu,h as hw,_ as _t$1,v,c as N,i as Ig,Q as Qi,H as Hg,n as nC,$ as $l,F as Fg,j as jg,aP as ql,aQ as Gl,d as aT,b5 as lg,b6 as oT,bi as cg,c5 as lb,C as CE,y as vg,a3 as KC,g as cT,b7 as iT,o as oC,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,w as cm,s as jC,au as Vg,av as rC,a1 as dT,ap as lT,a2 as fT,L as Kg,c3 as pC,a$ as JC,b_ as wg,ak as dm,aa as Ql,ar as Zp,al as WC,aM as ob,aN as ab,ao as qC,aR as sb,bZ as ei$1,cq as ce,cr as y$1,be as Fi,cs as tn,ct as en,ad as Mr,aJ as ci,bh as pi,cu as A$1,cv as I,cw as fv,cx as Je,aL as hi,cy as Ne$1,cz as U,bf as Jt$1,cA as Ce,bg as Kn$1,cB as ye,cC as qt$1,cD as Ee$1,cE as Qt$1,cF as Ze,cG as ne,cH as m$1,cI as de,cJ as g$1,cK as nn,cL as j,cM as d$1,cN as Rt$1,cO as Zt$1,cP as Gt$1,cQ as Kt$1,cR as Yt$1,cS as zt$1,cT as q,cU as Q$1,cV as Bt$1,cW as Pt$1,cX as kt$1,cY as Ut$1,cZ as jt$1,c_ as Ot$1,c$ as Nt$2,d0 as Fe,d1 as M,d2 as xt$1,d3 as J,d4 as Vt$1,bs as Rr,d5 as Or,d6 as Tr,d7 as f$1,d8 as wi,d9 as Ai,bL as s,da as L,db as k$1,dc as _,aI as c$1,aH as m$2,b2 as m$3}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import {a as at$1}from'./chunk-MDqH8T3Z.js';import {C as C$1}from'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var fn=()=>[_t$1,Promise.resolve().then(function(){return chunkSWVAJ6TW}).then(e=>e.NgTemplateOutlet),v,N,Promise.resolve().then(function(){return chunkJGYPH2BS}).then(e=>e.ShipChip),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipTable),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipSort),at$1,Promise.resolve().then(function(){return chunkAOYFZEXX}).then(e=>e.BackupProgressComponent),Promise.resolve().then(function(){return chunk4HOV3NJV}).then(e=>e.DurationFormatPipe),Promise.resolve().then(function(){return chunkHNLWAJTV}).then(e=>e.BytesPipe),Promise.resolve().then(function(){return chunkDXTOMSER}).then(e=>e.RelativeTimePipe)],hn=()=>["/add-backup"],$n=()=>["/restore"],Dn=e=>({$implicit:e}),yn=()=>["/backup/new"],Rn=e=>["/backup",e,"export"],An=e=>["/backup",e,"delete"],xn=e=>["/backup",e,"database"],Hn=e=>["/backup",e,"commandline"],Ln=e=>["/backup",e,"log"],kn=e=>["/backup",e],Gn=e=>["/restore",e],bn=e=>["/backup",e,"version-labels"],Bn=e=>["/backup",e,"delete-versions"],vn=e=>["/backup",e,"broken-files"];function Jn(e,t){e&1&&nC(0,11,1);}function Xn(e,t){e&1&&nC(0,11,2);}function wn(e,t){if(e&1&&nC(0,11,3),e&2){let n=iC(2);Vg(n.timeType()),rC(0);}}function zn(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){let c=Od(n).$implicit,d=iC(3);return Pd(d.sortByColumn.set(c.value))}),nC(1,15),$l();}if(e&2){let n=t.$implicit,a=iC(3);Kg("active",a.orderBy()===n.value),CE(),Vg(n.label),rC(1);}}function Vn(e,t){if(e&1&&(Qi(0,"sh-menu",68)(1,"button",69),Fg(2,14),Ig(3,"strong")(4,"sh-icon"),jg(),$l(),ql(5,70),dT(6,zn,2,3,"button",72,lT),Gl(),$l()),e&2){let n=iC(2);CE(4),Vg(n.orderBy()),rC(2),CE(2),fT(n.sortOrderOptions());}}function Un(e,t){if(e&1){let n=vT();Qi(0,"div",64)(1,"sh-button-group",65),lm("valueChange",function(c){Od(n);let d=iC();return UC(d.viewMode,c)||(d.viewMode=c),Pd(c)}),Qi(2,"button",66),Fg(3,9),Ig(4,"sh-icon"),jg(),$l(),Qi(5,"button",67),Fg(6,10),Ig(7,"sh-icon"),jg(),$l()(),Qi(8,"sh-menu",68)(9,"button",69),Fg(10,11),Qi(11,"strong"),aT(12,Jn,1,0)(13,Xn,1,0)(14,wn,1,1),$l(),Ig(15,"sh-icon"),jg(),$l(),ql(16,70),Qi(17,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("relative"))}),nC(18,12),$l(),Qi(19,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("actual"))}),nC(20,13),$l(),Gl(),$l(),aT(21,Vn,8,1,"sh-menu",68),$l();}if(e&2){let n=iC();CE(),cm("value",n.viewMode),CE(11),cT(n.timeType()=="relative"?12:n.timeType()=="actual"?13:14),CE(9),cT(n.viewMode()==="list"?21:-1);}}function Kn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,19),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function jn(e,t){if(e&1){let n=vT();Qi(0,"div",77)(1,"div",60)(2,"h3"),jC(3),aT(4,Kn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l()()(),Qi(8,"div",81)(9,"sh-chip",82),nC(10,16),$l()(),Qi(11,"div",64)(12,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.startBackup(c.Backup.ID))}),Fg(13,17),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",84),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.openInConsole(c))}),Fg(16,18),Ig(17,"sh-icon"),jg(),$l()(),Ig(18,"app-backup-progress",85),$l();}if(e&2){let n=iC().$implicit,a=iC(4);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(5),Kg("loading",a.startingBackup()===n.Backup.ID),CE(6),vg("backupId",n.Backup.ID);}}function Wn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,21),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function qn(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(7);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Qn(e,t){if(e&1&&dT(0,qn,3,2,"sh-chip",null,lT),e&2){let n=iC(2).$implicit;fT(n.Backup.AdditionalTargetURLs);}}function Yn(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,26),$l(),jC(3),ob(4,"relativeTime"),$l()),e&2){iC();let n=qC(5),a=iC(6);CE(3),Ql(" ",ab(4,1,n,a.timeType()==="actual")," ");}}function Zn(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC(3).$implicit,a=iC(4);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function et(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function nt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function tt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function it(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function ot(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function _t(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,22),$l(),jC(3),ob(4,"relativeTime"),$l(),dm(5),aT(6,Yn,5,4,"p"),Qi(7,"p")(8,"span"),nC(9,23),$l(),aT(10,Zn,2,4)(11,et,2,0,"ng-container"),$l(),Qi(12,"p")(13,"span"),nC(14,24),$l(),aT(15,nt,2,3)(16,tt,2,0,"ng-container"),$l(),Qi(17,"p")(18,"span"),nC(19,25),$l(),aT(20,it,2,3)(21,ot,2,0,"ng-container"),$l()),e&2){let n=iC(2).$implicit,a=iC(4);CE(3),Ql(" ",ab(4,5,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," "),CE(2);let c=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(c?6:-1),CE(4),cT(n.Backup.Metadata?.LastBackupDuration?10:11),CE(5),cT(n.Backup.Metadata?.SourceFilesSize?15:16),CE(5),cT(n.Backup.Metadata?.TargetFilesSize?20:21);}}function at(e,t){if(e&1&&Ig(0,"app-backup-progress",85),e&2){let n=iC(2).$implicit;vg("backupId",n.Backup.ID);}}function lt(e,t){e&1&&(Qi(0,"sh-chip",82),nC(1,27),$l());}function rt(e,t){e&1&&wg(0);}function ct(e,t){if(e&1&&(Qi(0,"div",78)(1,"div",60)(2,"h3"),jC(3),aT(4,Wn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l(),aT(8,Qn,2,0),$l(),aT(9,_t,22,9)(10,at,1,1,"app-backup-progress",85),$l(),Qi(11,"div",81)(12,"sh-chip",86),nC(13,20),$l(),aT(14,lt,2,0,"sh-chip",82),$l(),Qi(15,"div",64),cg(16,rt,1,0,"ng-container",87),$l()()),e&2){let n=iC().$implicit,a=iC(4),c=pC(33);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(),cT(a.runningBackupId()!==n.Backup.ID?9:10);let d=a.getBackupVersionCount(n);CE(4),Vg(d)(d),rC(13),CE(),cT(n.Backup.ExternalID?14:-1),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,Dn,n));}}function st(e,t){if(e&1&&aT(0,jn,19,7,"div",77)(1,ct,17,13,"div",78),e&2){let n=t.$implicit;cT(n.Backup.ExternalID?0:1);}}function ut(e,t){if(e&1&&dT(0,st,2,1,null,null,lT),e&2){let n=iC(3);fT(n.backups());}}function Ft(e,t){e&1&&(Qi(0,"div",76),Fg(1,28),Qi(2,"button",88),Ig(3,"sh-icon"),$l(),jg(),$l()),e&2&&(CE(2),vg("routerLink",KC(1,yn)));}function Ct(e,t){if(e&1&&(Qi(0,"div",75),aT(1,ut,2,0)(2,Ft,4,2,"div",76),$l()),e&2){let n=iC(2);Kg("fallback",n.backups().length===0),CE(),cT(n.backups().length?1:2);}}function Tt(e,t){e&1&&(Fg(0,29,1),wg(1),jg());}function dt(e,t){e&1&&(Fg(0,30,1),wg(1),jg());}function Et(e,t){e&1&&(Fg(0,31,1),wg(1),jg());}function pt(e,t){e&1&&(Fg(0,32,1),wg(1),jg());}function gt(e,t){e&1&&(Fg(0,33,1),wg(1),jg());}function St(e,t){e&1&&(Fg(0,34,1),wg(1),jg());}function mt(e,t){e&1&&(Fg(0,35,1),wg(1),jg());}function Ot(e,t){e&1&&(Qi(0,"sh-chip",99),Fg(1,39),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function Nt(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(5);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Mt(e,t){if(e&1&&dT(0,Nt,3,2,"sh-chip",null,lT),e&2){let n=iC().$implicit;fT(n.Backup.AdditionalTargetURLs);}}function It(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," ");}}function Pt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Dt(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){iC();let n=qC(13),a=iC(3);Ql(" ",ab(1,1,n,a.timeType()==="actual")," ");}}function ft(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function ht(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function $t(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function yt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function Rt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function At(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function xt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Ht(e,t){e&1&&wg(0);}function Lt(e,t){if(e&1&&(Qi(0,"tr")(1,"td"),jC(2),aT(3,Ot,3,1,"sh-chip",99),$l(),Qi(4,"td")(5,"sh-chip",100),Ig(6,"img",80),jC(7),$l(),aT(8,Mt,2,0),$l(),Qi(9,"td"),aT(10,It,2,4)(11,Pt,2,0,"ng-container"),$l(),Qi(12,"td"),dm(13),aT(14,Dt,2,4)(15,ft,2,0,"ng-container"),$l(),Qi(16,"td"),aT(17,ht,2,4)(18,$t,2,0,"ng-container"),$l(),Qi(19,"td"),aT(20,yt,2,3)(21,Rt,2,0,"ng-container"),$l(),Qi(22,"td"),aT(23,At,2,3)(24,xt,2,0,"ng-container"),$l(),Qi(25,"td")(26,"span"),nC(27,38),$l()(),Qi(28,"td"),cg(29,Ht,1,0,"ng-container",87),$l()()),e&2){let n=t.$implicit,a=iC(3),c=pC(33);CE(2),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?3:-1),CE(3),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(2),cT(n.Backup.Metadata?.LastBackupFinished?10:11),CE(3);let d=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(d?14:15),CE(3),cT(n.Backup.Metadata?.LastBackupDuration?17:18),CE(3),cT(n.Backup.Metadata?.SourceFilesSize?20:21),CE(3),cT(n.Backup.Metadata?.TargetFilesSize?23:24);let R=a.getBackupVersionCount(n);CE(4),Vg(R)(R),rC(27),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(15,Dn,n));}}function kt(e,t){if(e&1){let n=vT();Qi(0,"sh-table",89),lm("sortByColumnChange",function(c){Od(n);let d=iC(2);return UC(d.sortByColumn,c)||(d.sortByColumn=c),Pd(c)}),Qi(1,"tr",90)(2,"th",91),Fg(3,29),cg(4,Tt,2,0,"ng-container",92),jg(),$l(),Qi(5,"th",93),Fg(6,30),cg(7,dt,2,0,"ng-container",92),jg(),$l(),Qi(8,"th",94),Fg(9,31),cg(10,Et,2,0,"ng-container",92),jg(),$l(),Qi(11,"th",95),Fg(12,32),cg(13,pt,2,0,"ng-container",92),jg(),$l(),Qi(14,"th",96),Fg(15,33),cg(16,gt,2,0,"ng-container",92),jg(),$l(),Qi(17,"th",97),Fg(18,34),cg(19,St,2,0,"ng-container",92),jg(),$l(),Qi(20,"th",98),Fg(21,35),cg(22,mt,2,0,"ng-container",92),jg(),$l(),Qi(23,"th"),nC(24,36),$l(),Qi(25,"th"),nC(26,37),$l()(),dT(27,Lt,30,17,"tr",null,lT),$l();}if(e&2){let n=iC(2),a=pC(35);vg("data",n.backups())("loading",n.backupsLoading()),cm("sortByColumn",n.sortByColumn),CE(4),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(5),fT(n.backups());}}function Gt(e,t){if(e&1&&aT(0,Ct,3,3,"div",73)(1,kt,29,10,"sh-table",74),e&2){let n=iC();cT(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1);}}function bt(e,t){e&1&&(Qi(0,"div",101),Ig(1,"sh-progress-bar",102),Qi(2,"div",60)(3,"h3"),nC(4,40),$l()()());}function Bt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.abort())}),Fg(1,42),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function vt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.stop())}),Fg(1,43),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function Jt(e,t){e&1&&(Fg(0,41,1),Ig(1,"sh-icon"),jg());}function Xt(e,t){e&1&&(Fg(0,41,2),Ig(1,"sh-icon"),jg());}function wt(e,t){if(e&1){let n=vT();aT(0,Bt,3,2,"button",103)(1,vt,3,2,"button",103),Qi(2,"button",83),Hg("click",function(){Od(n);let c=iC(2);return Pd(c.pauseResume())}),Fg(3,41),aT(4,Jt,2,0)(5,Xt,2,0),jg(),$l();}if(e&2){let n=iC(2);cT(n.isStopping()?0:1),CE(2),Kg("small",n.viewMode()==="details")("loading",n.isResuming()),CE(2),cT(n.clientIsRunning()?4:5);}}function zt(e,t){e&1&&nC(0,44,1);}function Vt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function Ut(e,t){if(e&1&&(Qi(0,"button",105)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,kn,n.Backup.ID));}}function Kt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"dots-three-vertical"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function jt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Wt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"dots-three-vertical"),$l());}function qt(e,t){if(e&1&&(Qi(0,"button",110),aT(1,jt,2,0,"sh-icon")(2,Wt,2,0,"sh-icon"),$l()),e&2){let n=iC(2).$implicit,a=iC();Kg("loading",a.loadingId()===n.Backup.ID)("success",a.successId()===n.Backup.ID),CE(),cT(a.successId()===n.Backup.ID?1:2);}}function Qt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,52),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,Gn,n.Backup.ID));}}function Yt(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){Od(n);let c=iC(2).$implicit,d=iC();return Pd(d.verifyFiles(c.Backup.ID))}),Fg(1,53),Ig(2,"sh-icon"),jg(),$l();}}function Zt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,54),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(3).$implicit;vg("routerLink",JC(1,bn,n.Backup.ID));}}function ei(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,56),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,Bn,n.Backup.ID));}}function ni(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,57),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,vn,n.Backup.ID));}}function ti(e,t){if(e&1&&(Ig(0,"sh-divider"),Qi(1,"h3",107),nC(2,55),$l(),aT(3,ei,3,3,"button",108),aT(4,ni,3,3,"button",108)),e&2){let n=iC(4);CE(3),cT(n.hasDeleteVersions()?3:-1),CE(),cT(n.hasBrokenFiles()?4:-1);}}function ii(e,t){if(e&1&&(aT(0,Zt,3,3,"button",108),aT(1,ti,5,2)),e&2){let n=iC(3);cT(n.hasSetVersionLabel()?0:-1),CE(),cT(n.hasDeleteVersions()||n.hasBrokenFiles()?1:-1);}}function oi(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC();return Pd(d.startBackup(c.Backup.ID))}),Fg(1,44),Ig(2,"sh-icon"),aT(3,zt,1,0),jg(),$l(),aT(4,Vt,3,2,"button",104)(5,Ut,3,3,"button",105),Qi(6,"sh-menu"),aT(7,Kt,3,2,"button",104)(8,qt,3,5,"button",106),ql(9,70),Qi(10,"h3",107),jC(11,"Operations"),$l(),aT(12,Qt,3,3,"button",108),Qi(13,"button",108),Fg(14,45),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",108),Fg(17,46),Ig(18,"sh-icon"),jg(),$l(),Ig(19,"sh-divider"),Qi(20,"h3",107),nC(21,47),$l(),Qi(22,"button",108),Fg(23,48),Ig(24,"sh-icon"),jg(),$l(),aT(25,Yt,3,0,"button",109),Qi(26,"button",108),Fg(27,49),Ig(28,"sh-icon"),jg(),$l(),aT(29,ii,2,2),Ig(30,"sh-divider"),Qi(31,"h3",107),nC(32,50),$l(),Qi(33,"button",108),Fg(34,51),Ig(35,"sh-icon"),jg(),$l(),Gl(),$l();}if(e&2){let n=iC().$implicit,a=iC();Kg("loading",a.startingBackup()===n.Backup.ID),CE(3),cT(a.viewMode()==="list"?3:-1),CE(),cT(n.Backup.ExternalID?4:5),CE(3),cT(n.Backup.ExternalID?7:8),CE(5),cT(n.Backup.OperationType!=="Sync"?12:-1),CE(),vg("routerLink",JC(13,Rn,n.Backup.ID)),CE(3),vg("routerLink",JC(15,An,n.Backup.ID)),CE(6),vg("routerLink",JC(17,xn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?25:-1),CE(),vg("routerLink",JC(19,Hn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?29:-1),CE(4),vg("routerLink",JC(21,Ln,n.Backup.ID));}}function _i(e,t){if(e&1&&aT(0,wt,6,6)(1,oi,36,23),e&2){let n=t.$implicit,a=iC();cT(a.runningBackupId()===n.Backup.ID?0:1);}}function ai(e,t){e&1&&(Qi(0,"sh-icon",111),jC(1,"funnel-simple"),$l(),Qi(2,"sh-icon",112),jC(3,"sort-ascending"),$l(),Qi(4,"sh-icon",113),jC(5,"sort-descending"),$l());}var le=class e{#t=T(C);#n=T(y);#e=T(g);#_=T(C$1);#a=T(Q);#l=T(be);#i=T(m);hasDeleteVersions=this.#i.hasV2DeleteVersions;hasSetVersionLabel=this.#i.hasV2SetVersionLabel;hasBrokenFiles=this.#i.hasV2BrokenFiles;MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;runningBackupId=this.#n.runningBackupId;getBackendType=Ne;getBackendIcon=Ee;timeType=this.#e.timeType;clientIsRunning=this.#n.clientIsRunning;isResuming=this.#n.isResuming;runningTask=Nt$1(()=>this.#n.serverState()?.ActiveTask?.Item1);isStopping=Nt$1(()=>this.runningTask()==this.#o());scheduledTimes=Nt$1(()=>{let t=this.#a.serverState()?.ProposedSchedule??[],n=this.#e.backups(),a={};return n.forEach(c=>{let d=c.Backup?.ID;if(d){var R=t.find(X=>X.Item1==d);R?.Item2?a[d]=R.Item2:c.Schedule?.Time&&(a[d]=c.Schedule.Time);}}),a});#o=Ge(-1);viewMode=A("viewMode","list");sortByColumn=Ge(this.#e.orderBy());loadingId=Ge(null);successId=Ge(null);sortEffect=za(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(true);}openInConsole(t){let n=t.Backup.ExternalID?.split(":")[1];if(!n){console.error("Backup does not have an external ID");return}this.#_.openConsole("/app/machines/configurations/"+n);}setOrderBy(t){this.#e.setOrderBy(t);}setTimeType(t){this.#e.setTimeType(t);}startBackup(t){this.#n.resumeDialogCheck(()=>this.#e.startBackup(t));}openPauseDialog(){this.#l.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#n.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#t.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#t.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}getBackupVersionCount(t){return parseInt(t?.Backup?.Metadata?.BackupListCount??"",10)||0}verifyFiles(t){this.loadingId.set(t),this.#t.postApiV1BackupByIdVerify({id:t}).pipe(zu(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(t),setTimeout(()=>this.successId.set(null),2e3);}});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=hw({type:e,selectors:[["app-home"]],decls:36,vars:6,consts:()=>{let t;t=$localize`Backups`;let n;n=$localize`Keep your data safe at your chosen destination.`;let a;a=$localize` Create ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let c;c=$localize`Restores`;let d;d=$localize`Recover your files from any backup set.`;let R;R=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let X;X=$localize`My backups`;let re;re=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:rows${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: List `;let ce;ce=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:list${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Details `;let se;se=$localize` Time: ${"\uFFFD#11\uFFFD"}:START_TAG_STRONG:${"\uFFFD*12:1\uFFFD"}:START_BLOCK_IF: Relative ${"\uFFFD/*12:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*13:2\uFFFD"}:START_BLOCK_ELSE_IF: Actual ${"\uFFFD/*13:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*14:3\uFFFD"}:START_BLOCK_ELSE: ${"\uFFFD0:3\uFFFD"}:INTERPOLATION: ${"\uFFFD/*14:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ue;ue=$localize`Relative time`;let Fe;Fe=$localize`Actual time`;let Ce;Ce=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Te;Te=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let de;de=$localize`Externally managed`;let Ee;Ee=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Start `;let pe;pe=$localize` Edit in console ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-up-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ge;ge=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let w;w=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,w=oC(w,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Se;Se=$localize` ${w}:ICU@@6502601490918455200: `;let me;me=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Oe;Oe=$localize`Last successful backup:`;let Ne;Ne=$localize`Duration:`;let Me;Me=$localize`Source:`;let Ie;Ie=$localize`Destination:`;let Pe;Pe=$localize`Next scheduled run:`;let De;De=$localize`Externally managed`;let fe;fe=$localize` No backups found ${"\uFFFD#2\uFFFD"}:START_TAG_BUTTON: Click to create one now ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_BUTTON:`;let he;he=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let $e;$e=$localize` Type ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let ye;ye=$localize` Last backup ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Re;Re=$localize` Next run ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ae;Ae=$localize` Duration ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let xe;xe=$localize` Source ${"\uFFFD*19:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*19:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let He;He=$localize` Destination ${"\uFFFD*22:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*22:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Le;Le=$localize`Version`;let ke;ke=$localize`Actions`;let z;z=$localize`{VAR_PLURAL, plural, =0 {No versions} =1 {1 Version} other {{INTERPOLATION} Versions}}`,z=oC(z,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ge;Ge=$localize` ${z}:ICU@@3521773141017690117: `;let be;be=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Be;Be=$localize`Loading backups...`;let V;V=$localize`${"\uFFFD*4:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*4:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*5:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*5:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,V=oC(V);let ve;ve=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let Je;Je=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `;let Xe;Xe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Start ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:`;let we;we=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let ze;ze=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let Ve;Ve=$localize`Advanced`;let Ue;Ue=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Database `;let Ke;Ke=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Commandline `;let je;je=$localize`Reporting`;let We;We=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:notepad${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SH_ICON: Log `;let qe;qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let Qe;Qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check-square-offset${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Verify files `;let Ye;Ye=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:tag${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Version labels `;let Ze;Ze=$localize`Cleanup`;let en;en=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Delete versions `;let nn;return nn=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:file-x${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Purge broken files `,[["actions",""],["sortIcons",""],t,n,a,c,d,R,X,re,ce,se,ue,Fe,Ce,Te,de,Ee,pe,ge,Se,me,Oe,Ne,Me,Ie,Pe,De,fe,he,$e,ye,Re,Ae,xe,He,Le,ke,Ge,be,Be,V,ve,Je,Xe,we,ze,Ve,Ue,Ke,je,We,qe,Qe,Ye,Ze,en,nn,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","tabindex","-1","shButton",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small","type-b",3,"valueChange","value"],["value","list"],["value","details"],[1,"table-overview"],["type","button","shButton","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups",3,"fallback"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backups"],[1,"no-backups"],[1,"backup","externaly-managed"],[1,"backup"],[1,"simple","accent",3,"shTooltip"],["alt","",1,"provider-icon",3,"src"],[1,"tags"],[1,"simple","primary"],["shButton","",3,"click"],["type","button","shButton","",3,"click"],[3,"backupId"],[1,"simple","success"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["shButton","",1,"primary","raised",3,"routerLink"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["shSort","name"],[4,"ngTemplateOutlet"],["shSort","type"],["shSort","lastrun"],["shSort","nextrun"],["shSort","duration"],["shSort","sourcesize"],["shSort","destinationsize"],[1,"small","accent",3,"shTooltip"],[1,"small"],[1,"loading-list"],[1,"indeterminate","primary"],["shButton","",3,"small"],["type","button","shButton","",3,"shTooltip","disabled"],["type","button","shButton","",3,"routerLink"],["type","button","shButton","",3,"loading","success"],["title",""],["type","button",3,"routerLink"],["type","button"],["type","button","shButton",""],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,a){n&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"header")(3,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(4,"img",59),Qi(5,"div",60)(6,"h3"),nC(7,2),$l(),Qi(8,"p"),nC(9,3),$l()(),Qi(10,"button",61),Fg(11,4),Ig(12,"sh-icon"),jg(),$l()(),Qi(13,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(14,"img",62),Qi(15,"div",60)(16,"h3"),nC(17,5),$l(),Qi(18,"p"),nC(19,6),$l()(),Qi(20,"button",61),Fg(21,7),Ig(22,"sh-icon"),jg(),$l()()(),Qi(23,"div",63)(24,"h2"),ql(25),nC(26,8),Gl(),aT(27,Un,22,3,"div",64),$l(),lg(28,Gt,2,1)(29,bt,5,0),oT(30,28,fn,null,29),$l()(),cg(32,_i,2,1,"ng-template",null,0,lb)(34,ai,6,0,"ng-template",null,1,lb)),n&2&&(CE(3),vg("routerLink",KC(4,hn)),CE(10),vg("routerLink",KC(5,$n)),CE(14),cT(a.backups().length>0?27:-1),CE(3),iT(!a.backupsLoading()));},dependencies:[_t$1,ee,f,v,N,c,ve,d,x,at$1],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}@media only screen and (max-width:768px){header[_ngcontent-%COMP%]{grid-template-columns:1fr}}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}@media only screen and (max-width:768px){.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}}sh-menu[_ngcontent-%COMP%]{color:red}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backups.fallback[_ngcontent-%COMP%]{justify-content:center;align-items:center;padding:4rem;border:1px solid var(--base-4);background:var(--base-2);border-radius:var(--shape-2);width:calc(100% - 4rem);margin:0 auto}.no-backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{max-width:initial}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}.backup[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:.5rem}.provider-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.sortable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.sortable[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) sh-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] sh-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.sortable.sort-desc[_ngcontent-%COMP%] sh-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"]})};var chunkSWVAJ6TW=/*#__PURE__*/Object.freeze({__proto__:null,APP_BASE_HREF:ce,BrowserPlatformLocation:y$1,CommonModule:Fi,DATE_PIPE_DEFAULT_OPTIONS:tn,DATE_PIPE_DEFAULT_TIMEZONE:en,DOCUMENT:Mr,DatePipe:ci,DecimalPipe:pi,FormStyle:A$1,FormatWidth:I,IMAGE_CONFIG:fv,IMAGE_LOADER:Je,JsonPipe:hi,Location:Ne$1,LocationStrategy:U,NgFor:Jt$1,NgForOf:Jt$1,NgForOfContext:Ce,NgIf:Kn$1,NgIfContext:ye,NgLocaleLocalization:qt$1,NgLocalization:Ee$1,NgPlural:Qt$1,NgSwitch:Ze,NgTemplateOutlet:ei$1,NumberFormatStyle:ne,NumberSymbol:m$1,PathLocationStrategy:de,PlatformLocation:g$1,PlatformNavigation:nn,Plural:j,TranslationWidth:d$1,WeekDay:Rt$1,formatCurrency:Zt$1,formatDate:Gt$1,formatNumber:Kt$1,formatPercent:Yt$1,getCurrencySymbol:zt$1,getLocaleDateFormat:q,getLocaleDateTimeFormat:Q$1,getLocaleDayNames:Bt$1,getLocaleDayPeriods:Pt$1,getLocaleEraNames:kt$1,getLocaleExtraDayPeriodRules:Ut$1,getLocaleExtraDayPeriods:jt$1,getLocaleId:Ot$1,getLocaleMonthNames:Nt$2,getLocaleNumberFormat:Fe,getLocaleNumberSymbol:M,getLocalePluralCase:xt$1,getLocaleTimeFormat:J,getNumberOfCurrencyDigits:Vt$1,isPlatformBrowser:Rr,isPlatformServer:Or,registerLocaleData:Tr,ɵDomAdapter:f$1,ɵPLATFORM_BROWSER_ID:wi,ɵPLATFORM_SERVER_ID:Ai,ɵgetDOM:s,ɵnormalizeQueryParams:L,ɵparseCookieValue:k$1,ɵsetRootDomAdapter:_});var chunkJGYPH2BS=/*#__PURE__*/Object.freeze({__proto__:null,ShipChip:D});var chunkAOYFZEXX=/*#__PURE__*/Object.freeze({__proto__:null,BackupProgressComponent:W});var chunk4HOV3NJV=/*#__PURE__*/Object.freeze({__proto__:null,DurationFormatPipe:c$1});var chunkHNLWAJTV=/*#__PURE__*/Object.freeze({__proto__:null,BytesPipe:m$2});var chunkDXTOMSER=/*#__PURE__*/Object.freeze({__proto__:null,RelativeTimePipe:m$3});export{le as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {d}from'./chunk-BS8PXjJJ.js';import'./chunk-CZoVeRAG.js';import {t as tn,Q as Qt,l as lt,o as on,k as ke}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import {V,G}from'./chunk-ihUnHtR7.js';import'./chunk-Bb6BmVO4.js';import {v as ve$1}from'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,e as ee,aw as W,a6 as be,bF as ve,E as D1,G as Ge,N as Nt,at as h,h as hw,v,d as N,a0 as de,u as ue,l as vT,ak as um,Q as Qi,V as Vg,n as nC,$ as $l,f as aT,p as cm,r as kd,U as UC,O as Od,L as Lg,j as vg,F as Fg,al as WC,C as CE,i as cT,x as am,A as yg,o as oC,aD as YC,W as Wg,K as fC,k as iC,w as jC,aP as ql,aQ as Gl,ao as qC,s as CD,a3 as KC,y as _D}from'./main-VVQP2YE7.js';import'./chunk-Bja52qI7.js';import'./chunk-B8uF0dom.js';import {F as Fe$1}from'./chunk-B9maI7Xa.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-BO2GlieG.js';import'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(1,5),vg(2,"sh-icon"),Fg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC(2);return Od(t.copyTargetUrl())}),Lg(1,7),vg(2,"sh-icon"),Fg(),$l();}}function he(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(6,6),vg(7,"sh-icon"),Fg(),$l(),aT(8,fe,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function Pe(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);yg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Vg("setDestination",function(t){kd(e);let l=iC();return Od(l.setDestination(t))}),$l();}}function Ae(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),cm("targetUrlChange",function(t){kd(e);let l=iC();return UC(l.targetUrlModel,t)||(l.targetUrlModel=t),Od(t)}),$l();}if(o&2){let e=iC();am("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Lg(0,4,1),vg(1,"sh-icon",22),Fg());}function Re(o,i){o&1&&(Lg(0,4,2),vg(1,"sh-icon"),Fg());}function Ue(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),cm("isOpenChange",function(t){kd(e);let l=iC();return UC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Od(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),cm("ngModelChange",function(t){kd(e);let l=iC();return UC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Od(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(true))}),Lg(14,11),vg(15,"sh-icon"),Fg(),$l()()();}if(o&2){let e=iC();am("isOpen",e.targetUrlDialogOpen),yg("options",KC(3,Ee)),CE(9),am("ngModel",e.targetUrlCtrl),_D();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=D1.required("formRef");testUrlComponent=D1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&Wg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&fC(2);},features:[YC([ke])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();um(0),Qi(1,"form",12,0),Vg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),cm("targetUrlChange",function(g){return kd(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Od(g)})("testSignalChange",function(g){return kd(t),UC(n.testSignal,g)||(n.testSignal=g),Od(g)}),$l(),um(12),aT(13,Pe,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Vg("click",function(){return n.goBack()}),Lg(18,3),vg(19,"sh-icon"),Fg(),$l(),Qi(20,"button",21),Lg(21,4),aT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),Fg(),$l()()(),aT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),am("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),yg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let l=WC(n.selectedDestinationTypeOption());CE(),cT(l?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),yg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[tn,Qt,lt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,on],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
|
|
1
|
+
import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {s as sn,o as on,p as pt,_ as _n,V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee,aw as W,a6 as be,bF as ve,D as w1,G as Ge,N as Nt,at as h,h as hw,v,c as N,a0 as de,u as ue,l as vT,ak as dm,Q as Qi,H as Hg,n as nC,$ as $l,d as aT,p as lm,O as Od,U as UC,P as Pd,F as Fg,i as Ig,j as jg,al as WC,C as CE,g as cT,w as cm,y as vg,o as oC,aD as YC,M as qg,R as fC,k as iC,s as jC,aP as ql,aQ as Gl,ao as qC,r as CD,a3 as KC,x as _D}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(1,5),Ig(2,"sh-icon"),jg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC(2);return Pd(t.copyTargetUrl())}),Fg(1,7),Ig(2,"sh-icon"),jg(),$l();}}function he(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(6,6),Ig(7,"sh-icon"),jg(),$l(),aT(8,fe,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function Pe(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);vg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Hg("setDestination",function(t){Od(e);let l=iC();return Pd(l.setDestination(t))}),$l();}}function Ae(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),lm("targetUrlChange",function(t){Od(e);let l=iC();return UC(l.targetUrlModel,t)||(l.targetUrlModel=t),Pd(t)}),$l();}if(o&2){let e=iC();cm("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Fg(0,4,1),Ig(1,"sh-icon",22),jg());}function Re(o,i){o&1&&(Fg(0,4,2),Ig(1,"sh-icon"),jg());}function Ue(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),lm("isOpenChange",function(t){Od(e);let l=iC();return UC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Pd(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),lm("ngModelChange",function(t){Od(e);let l=iC();return UC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Pd(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(true))}),Fg(14,11),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let e=iC();cm("isOpen",e.targetUrlDialogOpen),vg("options",KC(3,Ee)),CE(9),cm("ngModel",e.targetUrlCtrl),_D();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=w1.required("formRef");testUrlComponent=w1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&fC(2);},features:[YC([Ve])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();dm(0),Qi(1,"form",12,0),Hg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),lm("targetUrlChange",function(g){return Od(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Pd(g)})("testSignalChange",function(g){return Od(t),UC(n.testSignal,g)||(n.testSignal=g),Pd(g)}),$l(),dm(12),aT(13,Pe,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Hg("click",function(){return n.goBack()}),Fg(18,3),Ig(19,"sh-icon"),jg(),$l(),Qi(20,"button",21),Fg(21,4),aT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),jg(),$l()()(),aT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),cm("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),vg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let l=WC(n.selectedDestinationTypeOption());CE(),cT(l?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),vg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[sn,on,pt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,_n],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
|
|
2
2
|
export{w as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {w}from'./chunk-
|
|
1
|
+
import {w}from'./chunk-CS2J-6VZ.js';import {T,e as ee,A as v,B as A,G as Ge,D as w1,z as za,J as zu,h as hw,c as N,v as v$1,u as ue,Q as Qi,H as Hg,d as aT,i as Ig,$ as $l,F as Fg,j as jg,r as CD,s as jC,y as vg,C as CE,g as cT,x as _D,K as im,L as Kg,M as qg,R as fC,n as nC}from'./main-3NL5M6JB.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {U}from'./chunk-D1pDZLJ9.js';var Y=["passwordInput"];function Z(l,n){l&1&&(Qi(0,"sh-alert",6),nC(1,4),$l());}var h=new jn,C=class l{#e=T(ee);#n=T(v);rememberMe=A("rememberMe",false,true);failedLogin=Ge(false);successLogin=Ge(false);isLoading=Ge(false);loginForm=h.group({pass:h.control("",me.required),rememberMe:h.control(this.rememberMe())});showPassword=Ge(false);passwordInput=w1("passwordInput");passwordEffect=za(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??false)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??false),n&&(this.isLoading.set(true),this.#n.login(n,this.rememberMe()).pipe(zu(()=>{this.isLoading.set(false),this.failedLogin.set(true);})).subscribe({next:()=>{this.successLogin.set(true),this.#e.navigate(["/"]);}}));}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=hw({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&qg(e.passwordInput,Y,5),o&2&&fC();},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let N;return N=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,N,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/configuration-and-management/duplicati-access-password#access-from-the-trayicon","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(Qi(0,"form",5),Hg("submit",function(){return e.submit()}),aT(1,Z,2,0,"sh-alert",6),Qi(2,"div",7),Ig(3,"app-logo"),$l(),Qi(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),Fg(8,1),Qi(9,"a",11),Ig(10,"sh-icon"),$l(),jg(),$l(),Ig(11,"input",12,0),CD(),Qi(13,"sh-icon",13),Hg("click",function(){return e.showPassword.set(!e.showPassword())}),jC(14),$l()(),Qi(15,"button",14),Fg(16,2),Ig(17,"sh-icon"),jg(),$l()(),Qi(18,"sh-checkbox",15),Fg(19,3),Ig(20,"input",16),CD(),jg(),$l(),Qi(21,"div",17),Ig(22,"label",18),$l()()()),o&2&&(vg("formGroup",e.loginForm),CE(),cT(e.failedLogin()&&!e.successLogin()?1:-1),CE(10),vg("type",e.showPassword()?"text":"password"),_D(),CE(3),im(e.showPassword()?"eye":"eye-slash"),CE(),Kg("loading",e.isLoading()),CE(5),_D());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,w,Fe,N,v$1,ue,U],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"]})};
|
|
2
2
|
export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {T,ab as C,G as Ge,N as Nt,z as za,
|
|
1
|
+
import {T,ab as C,G as Ge,N as Nt,z as za,J as zu,aZ as ee}from'./main-3NL5M6JB.js';var u=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],v=class a{#l=T(C);#e=Ge([]);LOG_LEVELS=u;logLevel=Ge("Disabled");logLevelByLabel=Nt(()=>u.find(e=>e.value===this.logLevel())?.label);whenFilter=Ge(null);backupIdFilter=Ge(null);id=Ge(0);logs=Nt(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=Ge(false);isPolling=Ge(false);pagination=Ge({offset:0,pagesize:100});logLevelEffect=za(()=>{this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs();},3e3)):this.clearPolling();});setWhenFilter(e){this.whenFilter.set(e);}setBackupIdFilter(e){this.backupIdFilter.set(e);}loadLogs(){this.logsLoading.set(true),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(zu(()=>this.logsLoading.set(false))).subscribe({next:e=>{let i=e.reverse(),t=this.#i(i);t>0&&this.id.set(t),this.#e.set([...i,...this.#e()]);}});}updateLogLevel(e){this.logLevel.set(e),e==="Disabled"&&this.clearPolling();}#i(e){return e.reduce((i,t)=>Math.max(i,t.ID),0)}destroy(){this.logLevel.set("Disabled"),this.clearPolling();}clearPolling(){this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0;}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{v};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {T,ae as eo,
|
|
1
|
+
import {T,ae as eo,bu as N,D as w1,bU as B$1,af as D1,bV as re,E as E1,bb as ce,h as hw,S as aC,W as Eg,Y as cC,d as aT,f as NC,C as CE,g as cT,H as Hg,aC as yg,M as qg,R as fC,l as vT,V as Ul,an as Bg,O as Od,k as iC,P as Pd,X as Wl,aq as Tg}from'./main-3NL5M6JB.js';var H=["internalInput"],B=["*"];function K(t,Q){if(t&1){let n=vT();Ul(0,"input",3,0),Bg("change",function(i){Od(n);let l=iC();return Pd(l.onInternalInputChange(i))}),Wl();}if(t&2){let n=iC();Tg("checked",n.checked()),yg("disabled",n.disabled()?"":null);}}var O=(()=>{class t{constructor(){this.#e=T(eo),this.#i=T(N),this.internalInput=w1("internalInput"),this.projectedInputs=B$1("input:not(.internal-input)",{childList:true,attributes:true}),this.checked=D1(false),this.currentClassList=re(),this.color=E1(null),this.variant=E1(null),this.readonly=E1(false),this.disabled=E1(false),this.noInternalInput=E1(false),this.hostClasses=ce("radio",{color:this.color,variant:this.variant,readonly:this.readonly});}#e;#i;onInternalInputChange(n){if(this.disabled())return;let e=n.target;this.checked.set(e.checked);}onKeyDown(n){if(this.#i.matches(n,"radio.select")){let e=this.internalInput()?.nativeElement;e&&getComputedStyle(e).display!=="none"?e.click():this.#e.nativeElement.click(),n.preventDefault();}}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=hw({type:t,selectors:[["sh-radio"]],viewQuery:function(e,i){e&1&&qg(i.internalInput,H,5),e&2&&fC();},hostVars:6,hostBindings:function(e,i){e&1&&Hg("keydown",function(x){return i.onKeyDown(x)}),e&2&&(yg("disabled",i.disabled()?"":null)("role",i.noInternalInput()?"radio":null)("aria-checked",i.noInternalInput()?i.checked():null)("tabindex",i.noInternalInput()?i.disabled()?"-1":"0":null),NC(i.hostClasses()));},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:B,decls:3,vars:3,consts:[["internalInput",""],[1,"radio","sh-sheet"],["type","radio",1,"internal-input",3,"checked"],["type","radio",1,"internal-input",3,"change","checked"]],template:function(e,i){e&1&&(aC(),Eg(0,"div",1),cC(1),aT(2,K,2,2,"input",2)),e&2&&(NC(i.currentClassList()),CE(2),cT(i.projectedInputs().length===0&&!i.noInternalInput()?2:-1));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}
|
|
2
2
|
`],encapsulation:2});}}return t})();export{O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w}from'./chunk-C9OqpwwE.js';import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,n as nC,$ as $l,C as CE,y as vg,a3 as KC,aD as YC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var S=()=>["/backup/import-destination/destination"],M=()=>["/backup/import-destination/encryption"],g=()=>["/backup/import-destination/select-config"],p=class T{static \u0275fac=function(e){return new(e||T)};static \u0275cmp=hw({type:T,selectors:[["app-import-destination"]],features:[YC([d,Ve])],decls:10,vars:6,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let s;return s=$localize` Select configurations `,[i,e,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,s){e&1&&(Ig(0,"app-status-bar"),Qi(1,"sh-stepper",3)(2,"div",4),nC(3,0),$l(),Qi(4,"div",4),nC(5,1),$l(),Qi(6,"div",5),nC(7,2),$l()(),Qi(8,"section"),Ig(9,"router-outlet"),$l()),e&2&&(CE(2),vg("routerLink",KC(3,S)),CE(2),vg("routerLink",KC(4,M)),CE(2),vg("routerLink",KC(5,g)));},dependencies:[w,ee,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {ShipTable as ot}from'./chunk-
|
|
2
|
-
`):[]}loadMore(){let e=this.logs().at(-1)?.Timestamp;this.pagination.update(t=>m(l({},t),{offsetTime:e}));}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-logs-stored"]],decls:18,vars:6,consts:()=>{let e;e=$localize`Timestamp`;let t;t=$localize`Backup ID`;let n;n=$localize`Message`;let _;_=$localize`No data available`;let m;return m=$localize`${"\uFFFD*16:1\uFFFD"}:START_BLOCK_IF: No more items ${"\uFFFD/*16:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*17:2\uFFFD"}:START_BLOCK_ELSE: Load more ${"\uFFFD/*17:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,[e,t,n,_,m,[1,"type-b",3,"data","loading"],["thead",""],["table-no-rows",""],["shButton","",1,"primary","raised",3,"click","disabled"],[3,"click"],[1,"id"],["shButton","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]]},template:function(t,n){if(t&1&&(Qi(0,"sh-table",5)(1,"tr",6)(2,"th"),nC(3,0),$l(),Qi(4,"th"),nC(5,1),$l(),Qi(6,"th"),nC(7,2),$l(),
|
|
1
|
+
import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';import {T,ab as C,G as Ge,z as za,J as zu,ai as m,aj as l,h as hw,c as N,v,aJ as ci,Q as Qi,n as nC,$ as $l,i as Ig,a1 as dT,H as Hg,F as Fg,d as aT,j as jg,ag as Yg,y as vg,C as CE,a2 as fT,g as cT,l as vT,O as Od,k as iC,P as Pd,s as jC,aM as ob,K as im,aN as ab,L as Kg,ap as lT}from'./main-3NL5M6JB.js';function X(o,e){if(o&1&&(Qi(0,"li"),jC(1),$l()),o&2){let t=e.$implicit;CE(),im(t);}}function j(o,e){if(o&1&&(Qi(0,"tr")(1,"td",12)(2,"code")(3,"ol",13),dT(4,X,2,1,"li",null,lT),$l()()()()),o&2){let t=iC().$implicit,n=iC();CE(),Yg("grid-column","1 / -1")("height","auto"),CE(3),fT(n.breakIntoLines(t.Exception));}}function K(o,e){if(o&1){let t=vT();Qi(0,"tr",9),Hg("click",function(){let _=Od(t).$index,m=iC();return Pd(m.toggleRow(_))}),Qi(1,"td"),jC(2),ob(3,"date"),$l(),Qi(4,"td",10),jC(5),$l(),Qi(6,"td"),jC(7),$l(),Qi(8,"td")(9,"button",11)(10,"sh-icon"),jC(11,"caret-down"),$l()()()(),aT(12,j,6,4,"tr");}if(o&2){let t=e.$implicit,n=e.$index,_=iC();CE(2),im(t.Timestamp?ab(3,6,t.Timestamp*1e3,"medium"):"-"),CE(3),im(t.BackupID>=0?t.BackupID:"-"),CE(2),im(t.Message),CE(2),Kg("rotated-icon",n===_.openRowIndex()),CE(3),cT(n===_.openRowIndex()?12:-1);}}function V(o,e){o&1&&nC(0,4,1);}function q(o,e){o&1&&nC(0,4,2);}var H=["BackupID","Timestamp","Message","actions"],M=class o{#e=T(C);displayedColumns=Ge(H);openRowIndex=Ge(null);noMoreItems=Ge(false);logsIsLoading=Ge(false);logs=Ge([]);pagination=Ge({offsetTime:void 0,pagesize:10});paginationEffect=za(()=>{this.pagination();this.getLogs();});ngOnInit(){this.getLogs();}getLogs(){this.logsIsLoading.set(true);let e=this.pagination();this.#e.getApiV1LogdataLog({pagesize:e.pagesize,offset:e.offsetTime}).pipe(zu(()=>this.logsIsLoading.set(false))).subscribe({next:t=>{t.length===0&&this.noMoreItems.set(true),this.logs.update(n=>[...n,...t]);}});}toggleRow(e){this.openRowIndex.set(e===this.openRowIndex()?null:e);}breakIntoLines(e){return e?e.split(`
|
|
2
|
+
`):[]}loadMore(){let e=this.logs().at(-1)?.Timestamp;this.pagination.update(t=>m(l({},t),{offsetTime:e}));}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-logs-stored"]],decls:18,vars:6,consts:()=>{let e;e=$localize`Timestamp`;let t;t=$localize`Backup ID`;let n;n=$localize`Message`;let _;_=$localize`No data available`;let m;return m=$localize`${"\uFFFD*16:1\uFFFD"}:START_BLOCK_IF: No more items ${"\uFFFD/*16:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*17:2\uFFFD"}:START_BLOCK_ELSE: Load more ${"\uFFFD/*17:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,[e,t,n,_,m,[1,"type-b",3,"data","loading"],["thead",""],["table-no-rows",""],["shButton","",1,"primary","raised",3,"click","disabled"],[3,"click"],[1,"id"],["shButton","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]]},template:function(t,n){if(t&1&&(Qi(0,"sh-table",5)(1,"tr",6)(2,"th"),nC(3,0),$l(),Qi(4,"th"),nC(5,1),$l(),Qi(6,"th"),nC(7,2),$l(),Ig(8,"th"),$l(),dT(9,K,13,9,null,null,lT),Qi(11,"div",7),nC(12,3),$l()(),Qi(13,"footer")(14,"button",8),Hg("click",function(){return n.loadMore()}),Fg(15,4),aT(16,V,1,0)(17,q,1,0),jg(),$l()()),t&2){let _=n.logs();Yg("grid-template-columns","1fr 1fr 1fr auto"),vg("data",_)("loading",n.logsIsLoading()),CE(9),fT(_),CE(5),vg("disabled",n.logsIsLoading()||n.noMoreItems()),CE(2),cT(n.noMoreItems()?16:17);}},dependencies:[ot,N,v,ci],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 0 0}"]})};export{M as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ba as ue,E as E1,bb as ce,h as hw,bc as sg,S as aC,Y as cC,f as NC,ag as Yg}from'./main-3NL5M6JB.js';var p=["*"],w=(()=>{class t extends ue{constructor(){super("[value], [tab], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("tabs",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275cmp=hw({type:t,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(a,s){a&2&&(NC(s.hostClasses()),Yg("--tabs-id",s.id));},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[sg],ngContentSelectors:p,decls:1,vars:0,template:function(a,s){a&1&&(aC(),cC(0));},styles:[`sh-tabs{--tabs-bc: var(--base-4);--tabs-bg: var(--base-1);--tabs-c: var(--base-12);--tabs-c-hover: var(--base-8);--tabs-c-active: var(--base-12);--tabs-f: var(--paragraph-30);--tabs-sel-bg: var(--base-12);display:flex;gap:1rem;border-bottom:var(--border-10);position:relative;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none}sh-tabs::-webkit-scrollbar{display:none}sh-tabs button,sh-tabs [tab],sh-tabs [value]{display:flex;align-items:center;gap:.5rem;height:3rem;font:var(--tabs-f);background:var(--tabs-bg);border-radius:0;appearance:none;border:0;color:var(--tabs-c);cursor:pointer;position:relative;flex-shrink:0;white-space:nowrap;transition:transform 125ms linear;transform:scale(1)}sh-tabs button:focus-visible,sh-tabs [tab]:focus-visible,sh-tabs [value]:focus-visible{outline:2px solid var(--primary-8);outline-offset:-2px;border-radius:var(--shape-1)}sh-tabs button:active,sh-tabs [tab]:active,sh-tabs [value]:active{transform:scale(.98)}sh-tabs button:hover,sh-tabs [tab]:hover,sh-tabs [value]:hover{color:var(--tabs-c-hover)}sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{color:var(--tabs-c-active)}@supports (anchor-name: --anchor){sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{position:relative;anchor-name:var(--tabs-id)}}@supports not (anchor-name: --anchor){sh-tabs button.active:after,sh-tabs [tab].active:after,sh-tabs [value].active:after{display:block}}sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{content:"";display:none;width:100%;height:.125rem;background:var(--tabs-sel-bg);position:absolute;left:0;bottom:0}@supports (anchor-name: --anchor){sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{display:none}}@supports (anchor-name: --anchor){sh-tabs:after{content:"";background:var(--tabs-sel-bg);pointer-events:none;position:absolute;z-index:10;height:.125rem;bottom:anchor(bottom);left:anchor(left);right:anchor(right);position-anchor:var(--tabs-id);transition:all .175s ease-out}}sh-tabs.primary{--tabs-sel-bg: var(--primary-8);--tabs-c-active: var(--primary-8)}sh-tabs.accent{--tabs-sel-bg: var(--accent-8);--tabs-c-active: var(--accent-8)}sh-tabs.warn{--tabs-sel-bg: var(--warn-8);--tabs-c-active: var(--warn-8)}sh-tabs.error{--tabs-sel-bg: var(--error-8);--tabs-c-active: var(--error-8)}sh-tabs.success{--tabs-sel-bg: var(--success-8);--tabs-c-active: var(--success-8)}
|
|
2
2
|
`],encapsulation:2});}}return t})();export{w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-DDWDcSq2.js';import {L}from'./chunk-DGvC49aU.js';import {T,ab as C,bj as Q,m,G as Ge,N as Nt,aG as pt,J as zu,h as hw,v,c as N,d as aT,Q as Qi,n as nC,$ as $l,s as jC,g as cT,C as CE,au as Vg,av as rC,K as im,i as Ig,l as vT,H as Hg,O as Od,k as iC,P as Pd,L as Kg,F as Fg,j as jg,y as vg,ar as Zp}from'./main-3NL5M6JB.js';function w(n,t){n&1&&Ig(0,"sh-progress-bar",3);}function V(n,t){if(n&1&&(Qi(0,"a",7),Fg(1,2),Ig(2,"sh-icon"),jg(),$l()),n&2){let e=iC(2);vg("href",e.serverState()?.UpdateDownloadLink,Zp),CE(2),Vg(e.serverState()?.UpdatedVersion),rC(1);}}function B(n,t){if(n&1){let e=vT();Qi(0,"button",6),Hg("click",function(){Od(e);let s=iC();return Pd(s.checkForUpdates())}),jC(1,"Check for updates"),$l(),aT(2,V,3,2,"a",7);}if(n&2){let e=iC();Kg("loading",e.checkingForUpdates()),CE(2),cT(e.serverState()?.UpdateDownloadLink?2:-1);}}function J(n,t){if(n&1){let e=vT();Qi(0,"button",6),Hg("click",function(){Od(e);let s=iC();return Pd(s.checkForUpdates())}),jC(1,"Checking for updates \u2026"),$l();}}function X(n,t){n&1&&Ig(0,"sh-progress-bar",3);}var h=class n{#e=T(C);#n=T(Q);#t=T(m);isLoading=Ge(true);checkingForUpdates=Ge(false);serverState=this.#n.serverState;duplicatiVersion=Nt(()=>this.#t.systemInfo()?.ServerVersionName??"Unknown");generalInfo=L(this.#e.getApiV1Acknowledgements().pipe(pt(t=>t.Acknowledgements),zu(()=>this.isLoading.set(false))));checkForUpdates(){this.checkingForUpdates.set(true),this.#e.postApiV1UpdatesCheck().pipe(zu(()=>this.checkingForUpdates.set(false))).subscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let t;t=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let i;return i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[t,e,i,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,i){e&1&&(aT(0,w,1,0,"sh-progress-bar",3),Qi(1,"section")(2,"h3"),nC(3,0),$l(),Qi(4,"p"),nC(5,1),$l(),Qi(6,"div",4),aT(7,B,3,3)(8,J,2,0,"button",5),aT(9,X,1,0,"sh-progress-bar",3),$l(),Qi(10,"div"),jC(11),$l()()),e&2&&(cT(i.isLoading()?0:-1),CE(5),Vg(i.duplicatiVersion()),rC(5),CE(2),cT(i.serverState()?.UpdaterState==="Waiting"?7:i.serverState()?.UpdaterState==="Checking"?8:-1),CE(2),cT(i.serverState()?.UpdaterState==="Downloading"?9:-1),CE(2),im(i.generalInfo()));},dependencies:[d,v,N],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{h as default};
|