@duplicati/ngclient 0.0.230 → 0.0.231
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/dest-icons/googleworkspace.png +0 -0
- package/assets/sh.woff2 +0 -0
- package/chunk--kVw-BwM.js +1 -0
- package/chunk-5Ay2I6OJ.js +2 -0
- package/chunk-6bHATzM2.js +1 -0
- package/{chunk-DtA6Mvdt.js → chunk-7qu0Yols.js} +1 -1
- package/{chunk-DmKJmG9z.js → chunk-B1FMMTzB.js} +1 -1
- package/{chunk-BjAIXsAS.js → chunk-B6VmpM-T.js} +1 -1
- package/chunk-B7vxwDBG.js +1 -0
- package/chunk-BAVJD-p4.js +1 -0
- package/chunk-BC2-YuwH.js +14 -0
- package/{chunk-C4kBXz3C.js → chunk-BFfFD-XE.js} +1 -1
- package/chunk-BHERv_y8.js +1 -0
- package/chunk-BIAFFPb6.js +1 -0
- package/{chunk-C6QX7znk.js → chunk-BRJ93eei.js} +1 -1
- package/{chunk-C-NgIZiF.js → chunk-BYJ0fSUP.js} +1 -1
- package/chunk-B_iekvt6.js +1 -0
- package/chunk-Baizh2Dx.js +1 -0
- package/{chunk-Ca1C9pJ0.js → chunk-Bcxzhjj8.js} +1 -1
- package/{chunk-D2g5mSLr.js → chunk-Bfak-Gjv.js} +1 -1
- package/{chunk-DD_QfWih.js → chunk-Bgx4dtaL.js} +1 -1
- package/chunk-BhGD1_v8.js +2 -0
- package/{chunk-Dj3xknEh.js → chunk-BhPCHFyT.js} +1 -1
- package/{chunk-B728v9oc.js → chunk-Bj1ToKwz.js} +2 -2
- package/{chunk-BIOMsSHI.js → chunk-BjSSXg5V.js} +1 -1
- package/chunk-BlfsmSZO.js +4 -0
- package/chunk-Bnu5Zyue.js +1 -0
- package/{chunk-OFYkgZA1.js → chunk-C1BwGQgo.js} +2 -2
- package/{chunk-D2g44FyO.js → chunk-C2H72Zk8.js} +2 -2
- package/{chunk-DPNAj9Vc.js → chunk-C3KPTLNN.js} +1 -1
- package/{chunk-B2TXzbpy.js → chunk-C5p3bQwH.js} +1 -1
- package/{chunk-C1kucB1O.js → chunk-C6beMvkJ.js} +2 -2
- package/chunk-CAgfvBGI.js +2 -0
- package/{chunk-BD9-OWSe.js → chunk-CDEvMQA2.js} +1 -1
- package/{chunk-OLi7f6y7.js → chunk-CI8lsvKT.js} +1 -1
- package/chunk-CP3edE1P.js +1 -0
- package/{chunk-wyNyzSXi.js → chunk-CQv4eyEK.js} +1 -1
- package/chunk-CTwvkMrj.js +2 -0
- package/chunk-CmexLvf7.js +2 -0
- package/chunk-Cng2PWKw.js +2 -0
- package/chunk-CqwyTVd3.js +1 -0
- package/{chunk-Fw6nFDZK.js → chunk-Crs56mDy.js} +2 -2
- package/{chunk-BYJA6sbi.js → chunk-CwKxis_6.js} +1 -1
- package/{chunk-DWkdK0Ib.js → chunk-CxjTj8X0.js} +1 -1
- package/chunk-CzJ3-6Pu.js +1 -0
- package/chunk-D2MSuPzM.js +2 -0
- package/{chunk-PVmXLw9b.js → chunk-D2aWqPl_.js} +1 -1
- package/{chunk-DuIUmwWN.js → chunk-D3SUPUQT.js} +3 -3
- package/{chunk-C7pjkqKB.js → chunk-D3d-eReU.js} +1 -1
- package/chunk-D5031IDL.js +3 -0
- package/{chunk-khm9J_G0.js → chunk-D7AP6g7S.js} +1 -1
- package/chunk-D9O-afXN.js +1 -0
- package/chunk-DA5X-TzJ.js +1 -0
- package/chunk-DAM-4k69.js +2 -0
- package/{chunk-Cgbi9MZq.js → chunk-DH6L3nQP.js} +1 -1
- package/chunk-DH6iiZWc.js +3 -0
- package/{chunk-D5lj-fQk.js → chunk-DKacf9Tj.js} +1 -1
- package/{chunk-BzIY4AaX.js → chunk-DKwqdnLJ.js} +1 -1
- package/{chunk-CJ0GoaW1.js → chunk-DNUCXG8E.js} +1 -1
- package/chunk-DPpQ_8VM.js +1 -0
- package/chunk-Da2vs6ff.js +1 -0
- package/chunk-DfcHtA-G.js +1 -0
- package/chunk-DlTsXgG2.js +2 -0
- package/{chunk-DaGzYsVs.js → chunk-DlqfMbsZ.js} +1 -1
- package/chunk-DoYGADYB.js +1 -0
- package/{chunk-RQ_MoiOh.js → chunk-DuHXCtrV.js} +1 -1
- package/{chunk-CT9ziigM.js → chunk-DuTbfCdT.js} +2 -2
- package/{chunk-dmyIQdVx.js → chunk-EwTTC1EW.js} +1 -1
- package/{chunk-I0R6Ty-p.js → chunk-JMkz2RrF.js} +1 -1
- package/chunk-PGDvGDW-.js +1 -0
- package/{chunk-CRAg6SRo.js → chunk-PONAC1Ya.js} +1 -1
- package/chunk-RqvNv7T_.js +2 -0
- package/{chunk-DFEb6rgg.js → chunk-SycSMD-r.js} +2 -2
- package/chunk-U0VOUPLl.js +1 -0
- package/chunk-Z5fN6CGR.js +1 -0
- package/chunk-d4cdVCUg.js +2 -0
- package/{chunk-DN6f5jXR.js → chunk-dCFVYHva.js} +1 -1
- package/{chunk-D6aNT_wo.js → chunk-gaP3Sx_C.js} +1 -1
- package/chunk-mnaJWx8D.js +1 -0
- package/chunk-oTpkLrqH.js +1 -0
- package/chunk-tpJJunhQ.js +1 -0
- package/index.html +1 -1
- package/locale/messages.de.json +1 -1
- package/locale/messages.de_CH.json +1 -1
- package/locale/messages.de_DE.json +1 -1
- package/locale/messages.en.json +65 -1
- package/locale/messages.fr.json +1 -1
- package/locale/messages.fr_CA.json +1 -1
- package/locale/messages.fr_FR.json +1 -1
- package/locale/messages.it.json +95 -2
- package/locale/messages.it_IT.json +94 -1
- package/locale/messages.json +65 -1
- package/locale/messages.nl_BE.json +1 -1
- package/locale/messages.nl_NL.json +1 -1
- package/locale/messages.zh_HK.json +152 -8
- package/main-QLXVXD6E.js +16 -0
- package/package.json +1 -1
- package/chunk-3RXp81pP.js +0 -1
- package/chunk-B0RBkC1E.js +0 -1
- package/chunk-BB1pOOUx.js +0 -1
- package/chunk-BIL3nR4_.js +0 -2
- package/chunk-BOOAIFTC.js +0 -1
- package/chunk-BaGYaLxZ.js +0 -2
- package/chunk-Bceym75m.js +0 -1
- package/chunk-BfZh4DNq.js +0 -2
- package/chunk-BlSN71kd.js +0 -1
- package/chunk-Bq7wRTmy.js +0 -2
- package/chunk-ByhuT4BS.js +0 -14
- package/chunk-CBgNjPex.js +0 -1
- package/chunk-CEyp0Xmg.js +0 -1
- package/chunk-CFne6FXR.js +0 -1
- package/chunk-CGn_EA_5.js +0 -2
- package/chunk-CJ1mxauG.js +0 -2
- package/chunk-CMJCX33P.js +0 -1
- package/chunk-CWAvlP_u.js +0 -1
- package/chunk-CYQJGwsB.js +0 -1
- package/chunk-Ca-HIRNP.js +0 -1
- package/chunk-CegwkGVu.js +0 -3
- package/chunk-CgcnOoRq.js +0 -2
- package/chunk-Ck9c9Juw.js +0 -1
- package/chunk-CnRCpl-v.js +0 -2
- package/chunk-CrgyDps4.js +0 -1
- package/chunk-DDBflo2l.js +0 -4
- package/chunk-Df7q8ewK.js +0 -1
- package/chunk-Dgns65Zu.js +0 -2
- package/chunk-Dh6x3lXP.js +0 -2
- package/chunk-DipTNkHN.js +0 -1
- package/chunk-DkdGEw1e.js +0 -1
- package/chunk-DtdFhFa9.js +0 -1
- package/chunk-DwKPz2Gn.js +0 -3
- package/chunk-DwMhABnQ.js +0 -2
- package/chunk-HWQc1Hoa.js +0 -1
- package/chunk-LL0IHZns.js +0 -1
- package/chunk-Zo-grJt3.js +0 -1
- package/chunk-glhLCQrb.js +0 -1
- package/chunk-yF6CJHRg.js +0 -1
- package/main-KFKZO6SJ.js +0 -16
package/chunk-CFne6FXR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {e as ee,W}from'./chunk-B0RBkC1E.js';import {k}from'./chunk-BB1pOOUx.js';import'./chunk-DN6f5jXR.js';import'./chunk-3RXp81pP.js';import {O as Oe,F as Fe}from'./chunk-CegwkGVu.js';import'./chunk-CT9ziigM.js';import {v as ve}from'./chunk-D5lj-fQk.js';import {x}from'./chunk-D6aNT_wo.js';import {c}from'./chunk-OLi7f6y7.js';import {D}from'./chunk-B2TXzbpy.js';import {T,ab as C,aX as y,a5 as g,bg as Q,a6 as be,m,N as Nt$1,U as Ue,A,G as Ga,C as Bu,d as dw,_ as _t$1,v,f as N,j as mg,Q as Qi,F as Fg,X as XT,H as Hl,O as Og,P as Pg,aP as Ul,aQ as Wl,o as oT,b2 as sg,b3 as tT,bf as ig,c4 as sb,D as DE,z as gg,a3 as QC,i as iT,b4 as nT,t as tC,k as gT,s as sm,S as Sd,n as nC,l as HC,x as xd,w as im,q as PC,au as Lg,av as eC,a1 as cT,ap as sT,a2 as lT,I as Qg,c2 as uC,a_ as ZC,b_ as Ig,ak as cm,aa as Gl,ar as Wp,al as BC,aM as tb,aN as ob,ao as $C,aR as rb,bZ as ei$1,cm as ce,cn as y$1,bb as Fi,co as tn,cp as en,ad as br,aJ as ci,be as pi,cq as A$1,cr as I,cs as lv,ct as Je,aL as hi,cu as Ne,cv as U,bc as Jt$1,cw as Ce,bd as Kn$1,cx as ye,cy as qt$1,cz as Ee,cA as Qt$1,cB as Ze,cC as ne,cD as m$1,cE as de,cF as g$1,cG as nn,cH as j,cI as d$1,cJ as Rt$1,cK as Zt$1,cL as Gt$1,cM as Kt$1,cN as Yt$1,cO as zt$1,cP as q,cQ as Q$1,cR as Bt$1,cS as Pt$1,cT as kt$1,cU as Ut$1,cV as jt$1,cW as Ot$1,cX as Nt$2,cY as Fe$1,cZ as M,c_ as xt$1,c$ as J,d0 as Vt$1,bp as Rr,d1 as Or,d2 as Tr,d3 as f$1,d4 as wi,d5 as Ai,bK as s,d6 as L,d7 as k$1,d8 as _,aI as c$1,aH as m$2,b1 as m$3}from'./main-KFKZO6SJ.js';import {f}from'./chunk-DPNAj9Vc.js';import {d}from'./chunk-CRAg6SRo.js';import'./chunk-DuIUmwWN.js';import'./chunk-DipTNkHN.js';import {a as at$1}from'./chunk-Fw6nFDZK.js';import {C as C$1}from'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import'./chunk-PVmXLw9b.js';import'./chunk-C7pjkqKB.js';var Dn=()=>[_t$1,Promise.resolve().then(function(){return chunkMMKUC4VL}).then(e=>e.NgTemplateOutlet),v,N,Promise.resolve().then(function(){return chunkHDVQZPM7}).then(e=>e.ShipChip),import('./chunk-DFEb6rgg.js').then(e=>e.ShipTable),import('./chunk-DFEb6rgg.js').then(e=>e.ShipSort),at$1,Promise.resolve().then(function(){return chunk7LCZ5GKV}).then(e=>e.BackupProgressComponent),Promise.resolve().then(function(){return chunkHQCSYRO2}).then(e=>e.DurationFormatPipe),Promise.resolve().then(function(){return chunk6SL5ENJT}).then(e=>e.BytesPipe),Promise.resolve().then(function(){return chunkYYXJREWY}).then(e=>e.RelativeTimePipe)],fn=()=>["/add-backup"],hn=()=>["/restore"],Pn=e=>({$implicit:e}),$n=()=>["/backup/new"],Rn=e=>["/restore",e],yn=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=>["/backup",e,"delete-versions"],bn=e=>["/backup",e,"broken-files"];function Bn(e,t){e&1&&XT(0,11,1);}function vn(e,t){e&1&&XT(0,11,2);}function Jn(e,t){if(e&1&&XT(0,11,3),e&2){let n=nC(2);Lg(n.timeType()),eC(0);}}function Xn(e,t){if(e&1){let n=gT();Qi(0,"button",70),Fg("click",function(){let c=Sd(n).$implicit,C=nC(3);return xd(C.sortByColumn.set(c.value))}),XT(1,15),Hl();}if(e&2){let n=t.$implicit,_=nC(3);Qg("active",_.orderBy()===n.value),DE(),Lg(n.label),eC(1);}}function wn(e,t){if(e&1&&(Qi(0,"sh-menu",67)(1,"button",68),Og(2,14),mg(3,"strong")(4,"sh-icon"),Pg(),Hl(),Ul(5,69),cT(6,Xn,2,3,"button",71,sT),Wl(),Hl()),e&2){let n=nC(2);DE(4),Lg(n.orderBy()),eC(2),DE(2),lT(n.sortOrderOptions());}}function zn(e,t){if(e&1){let n=gT();Qi(0,"div",63)(1,"sh-button-group",64),sm("valueChange",function(c){Sd(n);let C=nC();return HC(C.viewMode,c)||(C.viewMode=c),xd(c)}),Qi(2,"button",65),Og(3,9),mg(4,"sh-icon"),Pg(),Hl(),Qi(5,"button",66),Og(6,10),mg(7,"sh-icon"),Pg(),Hl()(),Qi(8,"sh-menu",67)(9,"button",68),Og(10,11),Qi(11,"strong"),oT(12,Bn,1,0)(13,vn,1,0)(14,Jn,1,1),Hl(),mg(15,"sh-icon"),Pg(),Hl(),Ul(16,69),Qi(17,"button",70),Fg("click",function(){Sd(n);let c=nC();return xd(c.setTimeType("relative"))}),XT(18,12),Hl(),Qi(19,"button",70),Fg("click",function(){Sd(n);let c=nC();return xd(c.setTimeType("actual"))}),XT(20,13),Hl(),Wl(),Hl(),oT(21,wn,8,1,"sh-menu",67),Hl();}if(e&2){let n=nC();DE(),im("value",n.viewMode),DE(11),iT(n.timeType()=="relative"?12:n.timeType()=="actual"?13:14),DE(9),iT(n.viewMode()==="list"?21:-1);}}function Vn(e,t){e&1&&(Qi(0,"sh-chip",78),Og(1,19),mg(2,"sh-icon"),Pg(),Hl()),e&2&&gg("shTooltip","Synchronization job");}function Un(e,t){if(e&1){let n=gT();Qi(0,"div",76)(1,"div",59)(2,"h3"),PC(3),oT(4,Vn,3,1,"sh-chip",78),Qi(5,"sh-chip"),mg(6,"img",79),PC(7),Hl()()(),Qi(8,"div",80)(9,"sh-chip",81),XT(10,16),Hl()(),Qi(11,"div",63)(12,"button",82),Fg("click",function(){Sd(n);let c=nC().$implicit,C=nC(4);return xd(C.startBackup(c.Backup.ID))}),Og(13,17),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",83),Fg("click",function(){Sd(n);let c=nC().$implicit,C=nC(4);return xd(C.openInConsole(c))}),Og(16,18),mg(17,"sh-icon"),Pg(),Hl()(),mg(18,"app-backup-progress",84),Hl();}if(e&2){let n=nC().$implicit,_=nC(4);DE(3),Gl(" ",n.Backup.Name??_.MISSING_BACKUP_NAME," "),DE(),iT(n.Backup.OperationType==="Sync"?4:-1),DE(2),gg("src",_.getBackendIcon(n.Backup.TargetURL),Wp),DE(),Gl(" ",_.getBackendType(n.Backup.TargetURL)," "),DE(5),Qg("loading",_.startingBackup()===n.Backup.ID),DE(6),gg("backupId",n.Backup.ID);}}function Kn(e,t){e&1&&(Qi(0,"sh-chip",78),Og(1,21),mg(2,"sh-icon"),Pg(),Hl()),e&2&&gg("shTooltip","Synchronization job");}function jn(e,t){if(e&1&&(Qi(0,"sh-chip"),mg(1,"img",79),PC(2),Hl()),e&2){let n=t.$implicit,_=nC(7);DE(),gg("src",_.getBackendIcon(n.TargetUrl),Wp),DE(),Gl(" ",_.getBackendType(n.TargetUrl)," ");}}function Wn(e,t){if(e&1&&cT(0,jn,3,2,"sh-chip",null,sT),e&2){let n=nC(2).$implicit;lT(n.Backup.AdditionalTargetURLs);}}function qn(e,t){if(e&1&&(Qi(0,"p")(1,"span"),XT(2,26),Hl(),PC(3),tb(4,"relativeTime"),Hl()),e&2){nC();let n=$C(5),_=nC(6);DE(3),Gl(" ",ob(4,1,n,_.timeType()==="actual")," ");}}function Qn(e,t){if(e&1&&(PC(0),tb(1,"durationFormat")),e&2){let n=nC(3).$implicit,_=nC(4);Gl(" ",ob(1,1,n.Backup.Metadata?.LastBackupDuration,_.timeType()==="actual")," ");}}function Yn(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function Zn(e,t){if(e&1&&(PC(0),tb(1,"bytes")),e&2){let n=nC(3).$implicit;Gl(" ",rb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function et(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function nt(e,t){if(e&1&&(PC(0),tb(1,"bytes")),e&2){let n=nC(3).$implicit;Gl(" ",rb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function tt(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function it(e,t){if(e&1&&(Qi(0,"p")(1,"span"),XT(2,22),Hl(),PC(3),tb(4,"relativeTime"),Hl(),cm(5),oT(6,qn,5,4,"p"),Qi(7,"p")(8,"span"),XT(9,23),Hl(),oT(10,Qn,2,4)(11,Yn,2,0,"ng-container"),Hl(),Qi(12,"p")(13,"span"),XT(14,24),Hl(),oT(15,Zn,2,3)(16,et,2,0,"ng-container"),Hl(),Qi(17,"p")(18,"span"),XT(19,25),Hl(),oT(20,nt,2,3)(21,tt,2,0,"ng-container"),Hl()),e&2){let n=nC(2).$implicit,_=nC(4);DE(3),Gl(" ",ob(4,5,n.Backup.Metadata?.LastBackupFinished,_.timeType()==="actual")," "),DE(2);let c=BC(_.scheduledTimes()[n.Backup.ID??""]);DE(),iT(c?6:-1),DE(4),iT(n.Backup.Metadata?.LastBackupDuration?10:11),DE(5),iT(n.Backup.Metadata?.SourceFilesSize?15:16),DE(5),iT(n.Backup.Metadata?.TargetFilesSize?20:21);}}function ot(e,t){if(e&1&&mg(0,"app-backup-progress",84),e&2){let n=nC(2).$implicit;gg("backupId",n.Backup.ID);}}function _t(e,t){e&1&&(Qi(0,"sh-chip",81),XT(1,27),Hl());}function at(e,t){e&1&&Ig(0);}function lt(e,t){if(e&1&&(Qi(0,"div",77)(1,"div",59)(2,"h3"),PC(3),oT(4,Kn,3,1,"sh-chip",78),Qi(5,"sh-chip"),mg(6,"img",79),PC(7),Hl(),oT(8,Wn,2,0),Hl(),oT(9,it,22,9)(10,ot,1,1,"app-backup-progress",84),Hl(),Qi(11,"div",80)(12,"sh-chip",85),XT(13,20),Hl(),oT(14,_t,2,0,"sh-chip",81),Hl(),Qi(15,"div",63),ig(16,at,1,0,"ng-container",86),Hl()()),e&2){let n=nC().$implicit,_=nC(4),c=uC(33);DE(3),Gl(" ",n.Backup.Name??_.MISSING_BACKUP_NAME," "),DE(),iT(n.Backup.OperationType==="Sync"?4:-1),DE(2),gg("src",_.getBackendIcon(n.Backup.TargetURL),Wp),DE(),Gl(" ",_.getBackendType(n.Backup.TargetURL)," "),DE(),iT(n.Backup.AdditionalTargetURLs?.length?8:-1),DE(),iT(_.runningBackupId()!==n.Backup.ID?9:10);let C=_.getBackupVersionCount(n);DE(4),Lg(C)(C),eC(13),DE(),iT(n.Backup.ExternalID?14:-1),DE(2),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(11,Pn,n));}}function rt(e,t){if(e&1&&oT(0,Un,19,7,"div",76)(1,lt,17,13,"div",77),e&2){let n=t.$implicit;iT(n.Backup.ExternalID?0:1);}}function ct(e,t){if(e&1&&cT(0,rt,2,1,null,null,sT),e&2){let n=nC(3);lT(n.backups());}}function st(e,t){e&1&&(Qi(0,"div",75),Og(1,28),Qi(2,"button",87),mg(3,"sh-icon"),Hl(),Pg(),Hl()),e&2&&(DE(2),gg("routerLink",QC(1,$n)));}function ut(e,t){if(e&1&&(Qi(0,"div",74),oT(1,ct,2,0)(2,st,4,2,"div",75),Hl()),e&2){let n=nC(2);Qg("fallback",n.backups().length===0),DE(),iT(n.backups().length?1:2);}}function Ft(e,t){e&1&&(Og(0,29,1),Ig(1),Pg());}function Ct(e,t){e&1&&(Og(0,30,1),Ig(1),Pg());}function Tt(e,t){e&1&&(Og(0,31,1),Ig(1),Pg());}function dt(e,t){e&1&&(Og(0,32,1),Ig(1),Pg());}function Et(e,t){e&1&&(Og(0,33,1),Ig(1),Pg());}function pt(e,t){e&1&&(Og(0,34,1),Ig(1),Pg());}function gt(e,t){e&1&&(Og(0,35,1),Ig(1),Pg());}function St(e,t){e&1&&(Qi(0,"sh-chip",98),Og(1,39),mg(2,"sh-icon"),Pg(),Hl()),e&2&&gg("shTooltip","Synchronization job");}function mt(e,t){if(e&1&&(Qi(0,"sh-chip"),mg(1,"img",79),PC(2),Hl()),e&2){let n=t.$implicit,_=nC(5);DE(),gg("src",_.getBackendIcon(n.TargetUrl),Wp),DE(),Gl(" ",_.getBackendType(n.TargetUrl)," ");}}function Ot(e,t){if(e&1&&cT(0,mt,3,2,"sh-chip",null,sT),e&2){let n=nC().$implicit;lT(n.Backup.AdditionalTargetURLs);}}function Nt(e,t){if(e&1&&(PC(0),tb(1,"relativeTime")),e&2){let n=nC().$implicit,_=nC(3);Gl(" ",ob(1,1,n.Backup.Metadata?.LastBackupFinished,_.timeType()==="actual")," ");}}function Mt(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function It(e,t){if(e&1&&(PC(0),tb(1,"relativeTime")),e&2){nC();let n=$C(13),_=nC(3);Gl(" ",ob(1,1,n,_.timeType()==="actual")," ");}}function Pt(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function Dt(e,t){if(e&1&&(PC(0),tb(1,"durationFormat")),e&2){let n=nC().$implicit,_=nC(3);Gl(" ",ob(1,1,n.Backup.Metadata?.LastBackupDuration,_.timeType()==="actual")," ");}}function ft(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function ht(e,t){if(e&1&&(PC(0),tb(1,"bytes")),e&2){let n=nC().$implicit;Gl(" ",rb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function $t(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function Rt(e,t){if(e&1&&(PC(0),tb(1,"bytes")),e&2){let n=nC().$implicit;Gl(" ",rb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function yt(e,t){e&1&&(Ul(0),PC(1,"-"),Wl());}function At(e,t){e&1&&Ig(0);}function xt(e,t){if(e&1&&(Qi(0,"tr")(1,"td"),PC(2),oT(3,St,3,1,"sh-chip",98),Hl(),Qi(4,"td")(5,"sh-chip",99),mg(6,"img",79),PC(7),Hl(),oT(8,Ot,2,0),Hl(),Qi(9,"td"),oT(10,Nt,2,4)(11,Mt,2,0,"ng-container"),Hl(),Qi(12,"td"),cm(13),oT(14,It,2,4)(15,Pt,2,0,"ng-container"),Hl(),Qi(16,"td"),oT(17,Dt,2,4)(18,ft,2,0,"ng-container"),Hl(),Qi(19,"td"),oT(20,ht,2,3)(21,$t,2,0,"ng-container"),Hl(),Qi(22,"td"),oT(23,Rt,2,3)(24,yt,2,0,"ng-container"),Hl(),Qi(25,"td")(26,"span"),XT(27,38),Hl()(),Qi(28,"td"),ig(29,At,1,0,"ng-container",86),Hl()()),e&2){let n=t.$implicit,_=nC(3),c=uC(33);DE(2),Gl(" ",n.Backup.Name??_.MISSING_BACKUP_NAME," "),DE(),iT(n.Backup.OperationType==="Sync"?3:-1),DE(3),gg("src",_.getBackendIcon(n.Backup.TargetURL),Wp),DE(),Gl(" ",_.getBackendType(n.Backup.TargetURL)," "),DE(),iT(n.Backup.AdditionalTargetURLs?.length?8:-1),DE(2),iT(n.Backup.Metadata?.LastBackupFinished?10:11),DE(3);let C=BC(_.scheduledTimes()[n.Backup.ID??""]);DE(),iT(C?14:15),DE(3),iT(n.Backup.Metadata?.LastBackupDuration?17:18),DE(3),iT(n.Backup.Metadata?.SourceFilesSize?20:21),DE(3),iT(n.Backup.Metadata?.TargetFilesSize?23:24);let y=_.getBackupVersionCount(n);DE(4),Lg(y)(y),eC(27),DE(2),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(15,Pn,n));}}function Ht(e,t){if(e&1){let n=gT();Qi(0,"sh-table",88),sm("sortByColumnChange",function(c){Sd(n);let C=nC(2);return HC(C.sortByColumn,c)||(C.sortByColumn=c),xd(c)}),Qi(1,"tr",89)(2,"th",90),Og(3,29),ig(4,Ft,2,0,"ng-container",91),Pg(),Hl(),Qi(5,"th",92),Og(6,30),ig(7,Ct,2,0,"ng-container",91),Pg(),Hl(),Qi(8,"th",93),Og(9,31),ig(10,Tt,2,0,"ng-container",91),Pg(),Hl(),Qi(11,"th",94),Og(12,32),ig(13,dt,2,0,"ng-container",91),Pg(),Hl(),Qi(14,"th",95),Og(15,33),ig(16,Et,2,0,"ng-container",91),Pg(),Hl(),Qi(17,"th",96),Og(18,34),ig(19,pt,2,0,"ng-container",91),Pg(),Hl(),Qi(20,"th",97),Og(21,35),ig(22,gt,2,0,"ng-container",91),Pg(),Hl(),Qi(23,"th"),XT(24,36),Hl(),Qi(25,"th"),XT(26,37),Hl()(),cT(27,xt,30,17,"tr",null,sT),Hl();}if(e&2){let n=nC(2),_=uC(35);gg("data",n.backups())("loading",n.backupsLoading()),im("sortByColumn",n.sortByColumn),DE(4),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(3),gg("ngTemplateOutlet",_),DE(5),lT(n.backups());}}function Lt(e,t){if(e&1&&oT(0,ut,3,3,"div",72)(1,Ht,29,10,"sh-table",73),e&2){let n=nC();iT(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1);}}function kt(e,t){e&1&&(Qi(0,"div",100),mg(1,"sh-progress-bar",101),Qi(2,"div",59)(3,"h3"),XT(4,40),Hl()()());}function Gt(e,t){if(e&1){let n=gT();Qi(0,"button",82),Fg("click",function(){Sd(n);let c=nC(3);return xd(c.abort())}),Og(1,42),mg(2,"sh-icon"),Pg(),Hl();}if(e&2){let n=nC(3);Qg("small",n.viewMode()==="details");}}function bt(e,t){if(e&1){let n=gT();Qi(0,"button",82),Fg("click",function(){Sd(n);let c=nC(3);return xd(c.stop())}),Og(1,43),mg(2,"sh-icon"),Pg(),Hl();}if(e&2){let n=nC(3);Qg("small",n.viewMode()==="details");}}function Bt(e,t){e&1&&(Og(0,41,1),mg(1,"sh-icon"),Pg());}function vt(e,t){e&1&&(Og(0,41,2),mg(1,"sh-icon"),Pg());}function Jt(e,t){if(e&1){let n=gT();oT(0,Gt,3,2,"button",102)(1,bt,3,2,"button",102),Qi(2,"button",82),Fg("click",function(){Sd(n);let c=nC(2);return xd(c.pauseResume())}),Og(3,41),oT(4,Bt,2,0)(5,vt,2,0),Pg(),Hl();}if(e&2){let n=nC(2);iT(n.isStopping()?0:1),DE(2),Qg("small",n.viewMode()==="details")("loading",n.isResuming()),DE(2),iT(n.clientIsRunning()?4:5);}}function Xt(e,t){e&1&&XT(0,44,1);}function wt(e,t){e&1&&(Qi(0,"button",103)(1,"sh-icon"),PC(2,"pencil-simple"),Hl()()),e&2&&gg("shTooltip","Externally managed")("disabled",true);}function zt(e,t){if(e&1&&(Qi(0,"button",104)(1,"sh-icon"),PC(2,"pencil-simple"),Hl()()),e&2){let n=nC(2).$implicit;gg("routerLink",ZC(1,kn,n.Backup.ID));}}function Vt(e,t){e&1&&(Qi(0,"button",103)(1,"sh-icon"),PC(2,"dots-three-vertical"),Hl()()),e&2&&gg("shTooltip","Externally managed")("disabled",true);}function Ut(e,t){e&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function Kt(e,t){e&1&&(Qi(0,"sh-icon"),PC(1,"dots-three-vertical"),Hl());}function jt(e,t){if(e&1&&(Qi(0,"button",108),oT(1,Ut,2,0,"sh-icon")(2,Kt,2,0,"sh-icon"),Hl()),e&2){let n=nC(2).$implicit,_=nC();Qg("loading",_.loadingId()===n.Backup.ID)("success",_.successId()===n.Backup.ID),DE(),iT(_.successId()===n.Backup.ID?1:2);}}function Wt(e,t){if(e&1&&(Qi(0,"button",107),Og(1,55),mg(2,"sh-icon"),Pg(),Hl()),e&2){let n=nC(3).$implicit;gg("routerLink",ZC(1,Gn,n.Backup.ID));}}function qt(e,t){if(e&1&&(Qi(0,"button",107),Og(1,56),mg(2,"sh-icon"),Pg(),Hl()),e&2){let n=nC(3).$implicit;gg("routerLink",ZC(1,bn,n.Backup.ID));}}function Qt(e,t){if(e&1&&(mg(0,"sh-divider"),Qi(1,"h3",106),XT(2,54),Hl(),oT(3,Wt,3,3,"button",107),oT(4,qt,3,3,"button",107)),e&2){let n=nC(3);DE(3),iT(n.hasDeleteVersions()?3:-1),DE(),iT(n.hasBrokenFiles()?4:-1);}}function Yt(e,t){if(e&1){let n=gT();Qi(0,"button",82),Fg("click",function(){Sd(n);let c=nC().$implicit,C=nC();return xd(C.startBackup(c.Backup.ID))}),Og(1,44),mg(2,"sh-icon"),oT(3,Xt,1,0),Pg(),Hl(),oT(4,wt,3,2,"button",103)(5,zt,3,3,"button",104),Qi(6,"sh-menu"),oT(7,Vt,3,2,"button",103)(8,jt,3,5,"button",105),Ul(9,69),Qi(10,"h3",106),PC(11,"Operations"),Hl(),Qi(12,"button",107),Og(13,45),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",107),Og(16,46),mg(17,"sh-icon"),Pg(),Hl(),Qi(18,"button",107),Og(19,47),mg(20,"sh-icon"),Pg(),Hl(),mg(21,"sh-divider"),Qi(22,"h3",106),XT(23,48),Hl(),Qi(24,"button",107),Og(25,49),mg(26,"sh-icon"),Pg(),Hl(),Qi(27,"button",70),Fg("click",function(){Sd(n);let c=nC().$implicit,C=nC();return xd(C.verifyFiles(c.Backup.ID))}),Og(28,50),mg(29,"sh-icon"),Pg(),Hl(),Qi(30,"button",107),Og(31,51),mg(32,"sh-icon"),Pg(),Hl(),oT(33,Qt,5,2),mg(34,"sh-divider"),Qi(35,"h3",106),XT(36,52),Hl(),Qi(37,"button",107),Og(38,53),mg(39,"sh-icon"),Pg(),Hl(),Wl(),Hl();}if(e&2){let n=nC().$implicit,_=nC();Qg("loading",_.startingBackup()===n.Backup.ID),DE(3),iT(_.viewMode()==="list"?3:-1),DE(),iT(n.Backup.ExternalID?4:5),DE(3),iT(n.Backup.ExternalID?7:8),DE(5),gg("routerLink",ZC(12,Rn,n.Backup.ID)),DE(3),gg("routerLink",ZC(14,yn,n.Backup.ID)),DE(3),gg("routerLink",ZC(16,An,n.Backup.ID)),DE(6),gg("routerLink",ZC(18,xn,n.Backup.ID)),DE(6),gg("routerLink",ZC(20,Hn,n.Backup.ID)),DE(3),iT(_.hasDeleteVersions()||_.hasBrokenFiles()?33:-1),DE(4),gg("routerLink",ZC(22,Ln,n.Backup.ID));}}function Zt(e,t){if(e&1&&oT(0,Jt,6,6)(1,Yt,40,24),e&2){let n=t.$implicit,_=nC();iT(_.runningBackupId()===n.Backup.ID?0:1);}}function ei(e,t){e&1&&(Qi(0,"sh-icon",109),PC(1,"funnel-simple"),Hl(),Qi(2,"sh-icon",110),PC(3,"sort-ascending"),Hl(),Qi(4,"sh-icon",111),PC(5,"sort-descending"),Hl());}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;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=Oe;getBackendIcon=Fe;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(),_={};return n.forEach(c=>{let C=c.Backup?.ID;if(C){var y=t.find(X=>X.Item1==C);y?.Item2?_[C]=y.Item2:c.Schedule?.Time&&(_[C]=c.Schedule.Time);}}),_});#o=Ue(-1);viewMode=A("viewMode","list");sortByColumn=Ue(this.#e.orderBy());loadingId=Ue(null);successId=Ue(null);sortEffect=Ga(()=>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(Bu(()=>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=dw({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 _;_=$localize` Create ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let c;c=$localize`Restores`;let C;C=$localize`Recover your files from any backup set.`;let y;y=$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=tC(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 Re;Re=$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 ye;ye=$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=tC(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=tC(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#14\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let ze;ze=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let Ve;Ve=$localize`${"\uFFFD#20\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let Ue;Ue=$localize`Advanced`;let Ke;Ke=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SH_ICON: Database `;let je;je=$localize`${"\uFFFD#29\uFFFD"}:START_TAG_SH_ICON:check-square-offset${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_SH_ICON: Verify files `;let We;We=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SH_ICON: Commandline `;let qe;qe=$localize`Reporting`;let Qe;Qe=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:notepad${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SH_ICON: Log `;let Ye;Ye=$localize`Cleanup`;let Ze;Ze=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Delete versions `;let en;return en=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:file-x${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Purge broken files `,[["actions",""],["sortIcons",""],t,n,_,c,C,y,X,re,ce,se,ue,Fe,Ce,Te,de,Ee,pe,ge,Se,me,Oe,Ne,Me,Ie,Pe,De,fe,he,$e,Re,ye,Ae,xe,He,Le,ke,Ge,be,Be,V,ve,Je,Xe,we,ze,Ve,Ue,Ke,je,We,qe,Qe,Ye,Ze,en,[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","shButton",""],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,_){n&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"header")(3,"sh-card",57),Fg("keydown.enter",function(C){return C.target.click()})("keydown.space",function(C){return C.target.click()}),mg(4,"img",58),Qi(5,"div",59)(6,"h3"),XT(7,2),Hl(),Qi(8,"p"),XT(9,3),Hl()(),Qi(10,"button",60),Og(11,4),mg(12,"sh-icon"),Pg(),Hl()(),Qi(13,"sh-card",57),Fg("keydown.enter",function(C){return C.target.click()})("keydown.space",function(C){return C.target.click()}),mg(14,"img",61),Qi(15,"div",59)(16,"h3"),XT(17,5),Hl(),Qi(18,"p"),XT(19,6),Hl()(),Qi(20,"button",60),Og(21,7),mg(22,"sh-icon"),Pg(),Hl()()(),Qi(23,"div",62)(24,"h2"),Ul(25),XT(26,8),Wl(),oT(27,zn,22,3,"div",63),Hl(),sg(28,Lt,2,1)(29,kt,5,0),tT(30,28,Dn,null,29),Hl()(),ig(32,Zt,2,1,"ng-template",null,0,sb)(34,ei,6,0,"ng-template",null,1,sb)),n&2&&(DE(3),gg("routerLink",QC(4,fn)),DE(10),gg("routerLink",QC(5,hn)),DE(14),iT(_.backups().length>0?27:-1),DE(3),nT(!_.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 chunkMMKUC4VL=/*#__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:br,DatePipe:ci,DecimalPipe:pi,FormStyle:A$1,FormatWidth:I,IMAGE_CONFIG:lv,IMAGE_LOADER:Je,JsonPipe:hi,Location:Ne,LocationStrategy:U,NgFor:Jt$1,NgForOf:Jt$1,NgForOfContext:Ce,NgIf:Kn$1,NgIfContext:ye,NgLocaleLocalization:qt$1,NgLocalization:Ee,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$1,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 chunkHDVQZPM7=/*#__PURE__*/Object.freeze({__proto__:null,ShipChip:D});var chunk7LCZ5GKV=/*#__PURE__*/Object.freeze({__proto__:null,BackupProgressComponent:W});var chunkHQCSYRO2=/*#__PURE__*/Object.freeze({__proto__:null,DurationFormatPipe:c$1});var chunk6SL5ENJT=/*#__PURE__*/Object.freeze({__proto__:null,BytesPipe:m$2});var chunkYYXJREWY=/*#__PURE__*/Object.freeze({__proto__:null,RelativeTimePipe:m$3});export{le as default};
|
package/chunk-CGn_EA_5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {T,a7 as l,b as g1,N as Nt,d as dw,a1 as cT,a2 as lT,e as ee,aw as W,a6 as be,ah as fe$1,ab as C,M,U as Ue,at as h$1,az as t,v,u as ue,ak as cm,Q as Qi,q as PC,H as Hl,o as oT,F as Fg,X as XT,al as BC,D as DE,h as bC,E as nm,i as iT,j as mg,z as gg,n as nC,ao as $C,aa as Gl,O as Og,P as Pg,ar as Wp,k as gT,S as Sd,x as xd,aP as Ul,aQ as Wl}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';function ae(i,t){if(i&1&&(Qi(0,"div",11),PC(1),Hl()),i&2){nC();let e=$C(0);DE(),Gl(" ",e.Message," ");}}function re(i,t){if(i&1&&(Qi(0,"div"),Og(1,1),mg(2,"a",15),Pg(),Hl()),i&2){let e=nC();DE(2),gg("href",e.downloadLink(),Wp);}}function ce(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doRepair(l.BackupID))}),XT(1,2),Hl();}}function le(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doDownloadBugreport(l))}),XT(1,3),Hl();}}function _e(i,t){if(i&1&&mg(0,"sh-progress-bar",17),i&2){let e=nC(2);gg("value",e.serverState()?.UpdateDownloadProgress);}}function se(i,t){if(i&1){let e=gT();Qi(0,"div",11),Ul(1),XT(2,4),Wl(),Qi(3,"a",16),PC(4),Hl(),oT(5,_e,1,1,"sh-progress-bar",17),Qi(6,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowUpdate())}),XT(7,5),Hl()();}if(i&2){let e=nC(),n=$C(0);DE(3),gg("href",e.serverState()?.UpdateDownloadLink,Wp),DE(),nm(n.Message),DE(),iT(e.serverState()?.UpdaterState==="Downloading"?5:-1);}}function de(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doShowLog(l.BackupID))}),XT(1,6),Hl();}}function Ne(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),XT(1,7),Hl();}}function Te(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),XT(1,8),Hl();}}var Ce={Error:"error",Warning:"warn",Information:"primary"},h=class i{#e=T(ee);#a=T(W);#r=T(be);#t=T(fe$1);#i=T(l);#n=T(C);#c=T(M);#o=Ue(null);serverState=this.#i.serverState;index=g1.required();notification=g1.required();downloadLink=Nt(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index());}deleteAllNotifications(){this.#i.deleteAllNotifications();}getAlertType(t){return t&&Ce[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"]);},error:e=>{if(e.status===404){let n={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(n={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(h$1,{maxWidth:"550px",width:"100%",data:n});}else this.#t.error($localize`Failed to find backup: `+e.message);}});}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a});},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message);}});}doShowUpdate(){this.#e.navigate(["/about/changelog"]);}doShowLink(t){window.open(t,"_blank");}doDownloadBugreport(t$1){let e=t$1.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:n=>{if(!n.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let o=t.BASE||"",l=this.#c.xsrfQueryParam(),m=`${location.origin}${o}/api/v1/bugreport/${e}?token=${n.Token}${l?`&${l}`:""}`;t$1.DownloadLink=m,this.#o.set(m),this.triggerDownload(m);},error:n=>{this.#t.error(`Failed to get bug report URL: ${n.message}`);}});}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click();}catch{}document.body.removeChild(e);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let n;n=$localize`Repair`;let o;o=$localize`Download`;let l;l=$localize`New update found:`;let m;m=$localize`Show Update`;let b;b=$localize`Show Log`;let L;L=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,n,o,l,m,b,L,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"sub-actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,n){if(e&1&&(cm(0),Qi(1,"sh-alert")(2,"div",9),PC(3),Hl(),Qi(4,"div",10),oT(5,ae,2,1,"div",11),oT(6,re,3,1,"div"),Qi(7,"div",12),oT(8,ce,2,0,"button",13),oT(9,le,2,0,"button",13),oT(10,se,8,3,"div",11),oT(11,de,2,0,"button",13),oT(12,Ne,2,0,"button",13),oT(13,Te,2,0,"button",13),Qi(14,"button",14),Fg("click",function(){return n.deleteNotificationByIndex()}),XT(15,0),Hl()()()()),e&2){let o=BC(n.notification());DE(),bC(n.getAlertType(o.Type)),DE(2),nm(o.Title),DE(2),iT(o.Action!=="update:new"&&o.Action!=="update:manual"?5:-1),DE(),iT(n.downloadLink()?6:-1),DE(2),iT(o.Message?.includes("please run repair")?8:-1),DE(),iT(o.Action?.startsWith("bug-report:created:")&&!n.downloadLink()?9:-1),DE(),iT(o.Action==="update:new"?10:-1),DE(),iT(o.Action==="backup:show-log"?11:-1),DE(),iT(o.Action==="config:issue:unencrypted-database"?12:-1),DE(),iT(o.Action==="config:issue:windows-folder-used"?13:-1);}},dependencies:[d,v,ue],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}"]})};var pe=(i,t)=>t.ID;function Ie(i,t){if(i&1&&mg(0,"app-notification",1),i&2){let e=t.$implicit,n=t.$index;gg("index",n)("notification",e);}}function fe(i,t){i&1&&(Qi(0,"div",2)(1,"p"),XT(2,0),Hl()());}var ie=class i{#e=T(l);notificationFilterPredicate=g1();notifications=Nt(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,n){e&1&&cT(0,Ie,1,2,"app-notification",1,pe,false,fe,3,0,"div",2),e&2&&lT(n.notifications());},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};
|
|
2
|
-
export{h,ie as i};
|
package/chunk-CJ1mxauG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {L as L$1}from'./chunk-C7pjkqKB.js';import {T,ab as C,aG as pt,ai as m,aj as l,U as Ue,G as Ga,d as dw,f as N,v,a0 as de,k as gT,Q as Qi,X as XT,H as Hl,a1 as cT,s as sm,q as PC,F as Fg,S as Sd,x as xd,D as DE,a2 as lT,w as im,z as gg,a3 as QC,E as nm,aa as Gl,l as HC,o as oT,j as mg,n as nC,O as Og,P as Pg,aB as rm,i as iT,ar as Wp,a9 as UC,ap as sT}from'./main-KFKZO6SJ.js';var q=()=>({maxWidth:"700px",width:"100%"});function H(s,i){if(s&1&&(Qi(0,"a",9)(1,"sh-icon"),PC(2,"link"),Hl()()),s&2){let e=nC().$implicit;gg("href",UC(e.Url),Wp);}}function K(s,i){if(s&1){let e=gT();Qi(0,"div",2)(1,"h4"),PC(2),oT(3,H,3,2,"a",9),Hl(),Qi(4,"p"),PC(5),mg(6,"br"),Qi(7,"i"),PC(8),Hl()(),Qi(9,"div",10)(10,"button",11),Fg("click",function(){let o=Sd(e).$implicit,p=nC();return xd(p.openLicense(o))}),Og(11,1),mg(12,"sh-icon"),Pg(),Hl()()();}if(s&2){let e=i.$implicit;DE(2),rm(" ",e.Title," - ",e.data?.license," "),DE(),iT(e.Url?3:-1),DE(2),Gl(" ",e.data?.description," "),DE(3),nm(e.data?.notes);}}var L=class s{#e=T(C);licenses=L$1(this.#e.getApiV1Licenses().pipe(pt(i=>i.map(e=>m(l({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=Ue(false);dialogLicense=Ue(null);#i=Ga(()=>{this.dialogLicense()&&this.dialogIsOpen.set(true);});openLicense(i){this.dialogLicense.set(i);}closeLicense(){this.dialogIsOpen.set(false),this.dialogLicense.set(null);}breakIntoLines(i){let e=i.split(`
|
|
2
|
-
`),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=dw({type:s,selectors:[["app-libraries"]],decls:14,vars:5,consts:()=>{let i;i=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`,[i,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["shButton","","type","button",3,"click"],[3,"href"],[1,"actions"],["shButton","",3,"click"]]},template:function(e,n){if(e&1){let o=gT();Qi(0,"h3"),XT(1,0),Hl(),cT(2,K,13,5,"div",2,sT),Qi(4,"sh-dialog",3),sm("isOpenChange",function(_){return Sd(o),HC(n.dialogIsOpen,_)||(n.dialogIsOpen=_),xd(_)}),Qi(5,"header",4)(6,"h3"),PC(7),Hl()(),Qi(8,"div",5)(9,"div",6),PC(10),Hl()(),Qi(11,"footer",7)(12,"button",8),Fg("click",function(){return Sd(o),n.dialogLicense.set(null),xd(n.dialogIsOpen.set(false))}),PC(13,"Close"),Hl()()();}if(e&2){DE(2),lT(n.licenses()),DE(2),im("isOpen",n.dialogIsOpen),gg("options",QC(4,q)),DE(3),nm(n.dialogLicense()?.Title);let o=n.dialogLicense()?.License??"";DE(3),Gl(" ",o," ");}},dependencies:[N,v,de],styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-4)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-1);color:var(--base-12);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-4)}"]})};export{L as default};
|
package/chunk-CMJCX33P.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-ByhuT4BS.js').then(function(n){return n.c})},{path:"destination",loadComponent:()=>import('./chunk-BaGYaLxZ.js')},{path:"source-data",loadComponent:()=>import('./chunk-ByhuT4BS.js').then(function(n){return n.a})},{path:"schedule",loadComponent:()=>import('./chunk-ByhuT4BS.js').then(function(n){return n.b})},{path:"options",loadComponent:()=>import('./chunk-DmKJmG9z.js')}];export{o as default};
|
package/chunk-CWAvlP_u.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {T,ab as C,a6 as be,a5 as g,e as ee,b as g1,N as Nt,U as Ue,at as h,C as Bu,d as dw,v,f as N,_ as _t,aH as m,ak as cm,Q as Qi,X as XT,H as Hl,o as oT,q as PC,F as Fg,al as BC,D as DE,au as Lg,av as eC,i as iT,z as gg,a_ as ZC,a3 as QC,I as Qg,t as tC,k as gT,s as sm,S as Sd,n as nC,l as HC,x as xd,p as DD,w as im,y as TD,aM as tb,ao as $C,aS as ib,aG as pt,a$ as Vs,b0 as ty}from'./main-KFKZO6SJ.js';import {B as Bn,y as yt,R as Rn,J as Jt}from'./chunk-DipTNkHN.js';import {$}from'./chunk-C7pjkqKB.js';import {U}from'./chunk-PVmXLw9b.js';var Ee=l=>["/backup",l,"export"],ue=()=>["/"];function Ce(l,_){if(l&1){let e=gT();Qi(0,"section")(1,"h4"),XT(2,4),Hl(),Qi(3,"p"),XT(4,5),Hl(),Qi(5,"sh-checkbox",11),PC(6," Delete local database "),Qi(7,"input",12),sm("ngModelChange",function(t){Sd(e);let a=nC();return HC(a.deleteLocalDb,t)||(a.deleteLocalDb=t),xd(t)}),Hl(),DD(),Hl()();}if(l&2){let e=nC();DE(7),im("ngModel",e.deleteLocalDb),TD();}}function de(l,_){if(l&1){let e=gT();Qi(0,"section")(1,"h4"),XT(2,6),Hl(),Qi(3,"p"),XT(4,7),tb(5,"bytes"),Hl(),Qi(6,"sh-checkbox",11),PC(7," Delete remote files "),Qi(8,"input",12),sm("ngModelChange",function(t){Sd(e);let a=nC();return HC(a.deleteRemoteFiles,t)||(a.deleteRemoteFiles=t),xd(t)}),Hl(),DD(),Hl()();}if(l&2){let e=nC(),t=$C(0)?.Backup?.Metadata?.TargetFilesSize??0;DE(5),Lg(e.fileCount())(e.fileCount())(ib(5,4,t,true,true)),eC(4),DE(3),im("ngModel",e.deleteRemoteFiles),TD();}}var R=class l{#t=T(C);#n=T(be);#e=T(g);#o=T(ee);id=g1.required();backup=Nt(()=>this.#e.getBackupById(this.id()));noLocalDbResource=$({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(pt(()=>true),Vs(()=>ty(false)))});fileCount=Nt(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=Ue(false);deleteRemoteFiles=Ue(false);isDeleting=Ue(false);deleteBackup(){let _=this.id(),e=this.deleteLocalDb(),i=this.deleteRemoteFiles();this.isDeleting.set(true),this.#n.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:t=>{t&&this.#e.deleteBackup({id:_,deleteLocalDb:e,deleteRemoteFiles:i}).pipe(Bu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#o.navigate(["/"]);}});}});}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=dw({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Export configuration`;let i;i=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let t;t=$localize`Cancel`;let a;a=$localize`Delete local database`;let O;O=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let y;y=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=tC(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let k;return k=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,e,i,t,a,O,y,k,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(e,i){if(e&1&&(cm(0),Qi(1,"h3"),XT(2,0),Hl(),oT(3,Ce,8,1,"section"),Qi(4,"section")(5,"h4"),XT(6,1),Hl(),Qi(7,"p"),XT(8,2),Hl(),Qi(9,"button",8),PC(10," Export configuration "),Qi(11,"sh-icon"),PC(12,"caret-right"),Hl()()(),oT(13,de,9,8,"section"),Qi(14,"div",9)(15,"button",8),XT(16,3),Hl(),Qi(17,"button",10),Fg("click",function(){return i.deleteBackup()}),PC(18,"Delete backup"),Hl()()),e&2){let t=BC(i.backup()),a=i.noLocalDbResource.value();DE(2),Lg(t?.Backup?.Name),eC(2),DE(),iT(a?3:-1),DE(6),gg("routerLink",ZC(8,Ee,i.id())),DE(4),iT(a?13:-1),DE(2),gg("routerLink",QC(10,ue)),DE(2),Qg("loading",i.isDeleting());}},dependencies:[U,v,N,Bn,yt,Rn,Jt,_t,m],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"]})};export{R as default};
|
package/chunk-CYQJGwsB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as at}from'./chunk-Fw6nFDZK.js';import {C}from'./chunk-Ca1C9pJ0.js';import {O}from'./chunk-C-NgIZiF.js';import {T as T$1,e as ee,U as Ue,G as Ga,d as dw,v,a0 as de,f as N,Q as Qi,F as Fg,X as XT,H as Hl,a1 as cT,s as sm,q as PC,j as mg,D as DE,a2 as lT,w as im,z as gg,I as Qg,a3 as QC,a4 as aT,l as HC,E as nm}from'./main-KFKZO6SJ.js';import {U}from'./chunk-PVmXLw9b.js';import'./chunk-C7pjkqKB.js';var D=()=>({maxWidth:"520px",width:"100%"});function z(r,i){if(r&1&&(Qi(0,"div",11)(1,"sh-icon",26),PC(2,"check-circle"),Hl(),Qi(3,"span"),PC(4),Hl()()),r&2){let o=i.$implicit;DE(4),nm(o);}}function J(r,i){if(r&1&&(Qi(0,"div",11)(1,"sh-icon",26),PC(2,"check-circle"),Hl(),Qi(3,"span"),PC(4),Hl()()),r&2){let o=i.$implicit;DE(4),nm(o);}}var T=class r{#n=T$1(O);#e=T$1(ee);#t=T$1(C);hoveringConnect=Ue(false);skipDialogOpen=Ue(false);hasConnectionLink=Ue(false);primaryBenefits=[$localize`Zero-configuration cloud storage`,$localize`Centralized backup reporting and monitoring`,$localize`Remote management from the dashboard`,$localize`Notifcations if backups stop running`];secondaryBenefits=[$localize`Get notified if your backups stop working`,$localize`Access AI powered troubleshooting`,$localize`View all backups from one place`];#i=Ga(()=>{let i=this.#t.state();i=="unknown"||i=="inactive"||this.setWelcomeShown();});setWelcomeShown(){this.#n.setShownWelcomePage().subscribe(()=>{this.#e.navigate([""]);});}openSkipDialog(){this.skipDialogOpen.set(true);}connect(){let i=this.hasConnectionLink()?"/welcome/connect/link":"/welcome/connect/logon";this.#e.navigate([i]);}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=dw({type:r,selectors:[["app-select"]],decls:36,vars:7,consts:()=>{let i;i=$localize`Proceed without connecting to console`;let o;o=$localize`Connect to console`;let n;n=$localize`Consolidate all your backup reports in one place.`;let l;l=$localize`I have a connection link`;let c;c=$localize`Are you sure?`;let O;O=$localize`Cancel`;let b;return b=$localize`Proceed without connecting`,[i,o,n,l,c,O,b,[1,"left"],[1,"actionables"],[1,"without-connecting",3,"click"],[1,"benefits"],[1,"benefit"],["shButton","",1,"connect","outlined","primary",3,"mouseenter","mouseleave","click"],[1,"action"],[1,"connection-link-label"],[1,"primary","raised","connection-link-check",3,"checkedChange","checked"],[3,"shTooltip"],[1,"right"],["src","assets/images/console.avif","alt",""],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"dialog-benefits-header"],[1,"dialog-benefits"],["footer",""],["type","button","shButton","",1,"outlined",3,"click"],[1,"primary"]]},template:function(o,n){o&1&&(Qi(0,"section",7)(1,"div",8)(2,"div",9),Fg("click",function(){return n.openSkipDialog()}),XT(3,0),Hl(),Qi(4,"div",10),cT(5,z,5,1,"div",11,aT),Hl(),Qi(7,"button",12),Fg("mouseenter",function(){return n.hoveringConnect.set(true)})("mouseleave",function(){return n.hoveringConnect.set(false)})("click",function(){return n.connect()}),Qi(8,"div",13)(9,"h2"),XT(10,1),Hl(),Qi(11,"p"),XT(12,2),Hl()()(),Qi(13,"div",14)(14,"sh-checkbox",15),sm("checkedChange",function(c){return HC(n.hasConnectionLink,c)||(n.hasConnectionLink=c),c}),Hl(),Qi(15,"span"),XT(16,3),Hl(),Qi(17,"sh-icon",16),PC(18," information "),Hl()()()(),Qi(19,"section",17),mg(20,"img",18),Hl(),Qi(21,"sh-dialog",19),sm("isOpenChange",function(c){return HC(n.skipDialogOpen,c)||(n.skipDialogOpen=c),c}),Qi(22,"header",20)(23,"h3"),XT(24,4),Hl()(),Qi(25,"div",21)(26,"h4",22),PC(27," You can use Duplicati without a Console connection, but connecting to the Console will expand the capabilities of Duplicati. "),Hl(),Qi(28,"div",23),cT(29,J,5,1,"div",11,aT),Hl()(),Qi(31,"footer",24)(32,"button",25),Fg("click",function(){return n.skipDialogOpen.set(false)}),XT(33,5),Hl(),Qi(34,"button",25),Fg("click",function(){return n.setWelcomeShown()}),XT(35,6),Hl()()()),o&2&&(DE(5),lT(n.primaryBenefits),DE(9),im("checked",n.hasConnectionLink),DE(3),gg("shTooltip","Connection links are used for Enterprise and large-scale installations"),DE(2),Qg("hovering",n.hoveringConnect()),DE(2),im("isOpen",n.skipDialogOpen),gg("options",QC(6,D)),DE(8),lT(n.secondaryBenefits));},dependencies:[v,U,de,N,at],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;height:100vh;overflow:hidden;padding:2rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{display:flex;flex-direction:column-reverse;height:auto;padding:4rem 1rem;gap:2rem}}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%]{align-items:flex-start}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{width:100%}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] sh-divider[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem 0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;color:var(--base-11)}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 2rem 0}.right.hovering[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-color:var(--primary-8)}.right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:90%;max-height:90%;object-fit:contain;border:1px solid var(--base-3);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20);transition:border-color .2s ease-in-out}.connect[_ngcontent-%COMP%]{height:auto;padding:2rem}.without-connecting[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer;margin:0}.without-connecting[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.dialog-benefits-header[_ngcontent-%COMP%]{margin-bottom:1rem}.dialog-benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem;color:var(--base-11)}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.connection-link-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem}"]})};export{T as default};
|
package/chunk-Ca-HIRNP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {m,C as C$1,F}from'./chunk-C4kBXz3C.js';import {J}from'./chunk-khm9J_G0.js';import {x}from'./chunk-D6aNT_wo.js';import {T,a6 as be$1,ab as C,aw as W,e as ee,ax as De,a5 as g,U as Ue$1,N as Nt,G as Ga,at as h,ay as $u,az as t,aA as y,aj as l,C as Bu,d as dw,_ as _t,f as N,v,u as ue,Q as Qi,q as PC,O as Og,j as mg,P as Pg,H as Hl,F as Fg,s as sm,p as DD,o as oT,D as DE,z as gg,a3 as QC,I as Qg,aB as rm,w as im,y as TD,i as iT,t as tC,l as HC,k as gT,S as Sd,n as nC,x as xd,E as nm,X as XT,au as Lg,av as eC}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe}from'./chunk-DuIUmwWN.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-DipTNkHN.js';import {a as at}from'./chunk-Fw6nFDZK.js';import {L}from'./chunk-C7pjkqKB.js';var Xe=()=>["/"];function be(t,o){t&1&&(Qi(0,"sh-toggle",25),Og(1,5),mg(2,"input",28),DD(),Pg(),Hl()),t&2&&(DE(2),TD());}function Ge(t,o){t&1&&(Qi(0,"span",31),XT(1,9),Hl());}function Be(t,o){if(t&1&&(Qi(0,"span",31),XT(1,10),Hl()),t&2){let e=nC(2);DE(),Lg(e.exportForm.controls.password.errors?.minlength.requiredLength),eC(1);}}function ve(t,o){if(t&1&&mg(0,"sh-progress-bar",38),t&2){let e=nC(2);Qg("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),gg("value",e.calculatePasswordStrength()*(100/5));}}function ke(t,o){t&1&&(Qi(0,"span",31),XT(1,11),Hl());}function Ue(t,o){t&1&&(Qi(0,"span",31),XT(1,12),Hl());}function Ke(t,o){if(t&1&&(Qi(0,"span",31),XT(1,13),Hl()),t&2){let e=nC(2);DE(),Lg(e.exportForm.controls.repeatPassword.errors?.minlength.requiredLength),eC(1);}}function Je(t,o){t&1&&(Og(0,7,1),mg(1,"sh-icon"),Pg());}function He(t,o){t&1&&(Og(0,7,2),mg(1,"sh-icon"),Pg());}function ze(t,o){t&1&&(Og(0,14,1),mg(1,"sh-icon",40),Pg());}function Ve(t,o){t&1&&(Og(0,14,2),mg(1,"sh-icon"),Pg());}function qe(t,o){if(t&1){let e=gT();Qi(0,"button",39),Fg("click",function(){Sd(e);let a=nC(2);return xd(a.copyPassword())}),Og(1,14),oT(2,ze,2,0)(3,Ve,2,0),Pg(),Hl();}if(t&2){let e=nC(2);DE(2),iT(e.copiedPassword()?2:3);}}function je(t,o){t&1&&(Qi(0,"sh-alert",37),XT(1,15),Hl());}function We(t,o){if(t&1){let e=gT();Qi(0,"div",26)(1,"sh-form-field")(2,"label",29),Og(3,6),mg(4,"sup"),Pg(),Hl(),mg(5,"input",30),DD(),oT(6,Ge,2,0,"span",31)(7,Be,2,1,"span",31),Hl(),oT(8,ve,1,9,"sh-progress-bar",32),Qi(9,"sh-form-field"),mg(10,"input",33),DD(),oT(11,ke,2,0,"span",31)(12,Ue,2,0,"span",31)(13,Ke,2,1,"span",31),Hl(),Qi(14,"div",34)(15,"button",35),Fg("click",function(){Sd(e);let a=nC();return xd(a.showPassword.set(!a.showPassword()))}),Og(16,7),oT(17,Je,2,0)(18,He,2,0),Pg(),Hl(),Qi(19,"button",35),Fg("click",function(){Sd(e);let a=nC();return xd(a.generatePassword())}),Og(20,8),mg(21,"sh-icon"),Pg(),Hl(),oT(22,qe,4,1,"button",36),Hl(),oT(23,je,2,0,"sh-alert",37),Hl();}if(t&2){let e=nC();DE(5),gg("type",e.showPassword()?"text":"password"),TD(),DE(),iT(e.exportForm.controls.password.errors?.required?6:e.exportForm.controls.password.errors?.minlength?7:-1),DE(2),iT(e.exportForm.value.password?8:-1),DE(2),gg("type",e.showPassword()?"text":"password"),TD(),DE(),iT(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors?.required?12:e.exportForm.controls.repeatPassword.errors?.minlength?13:-1),DE(6),iT(e.showPassword()?17:18),DE(5),iT(e.showCopyPassword()?22:-1),DE(),iT(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1);}}function Qe(t,o){if(t&1&&(Qi(0,"div",27)(1,"code"),PC(2),Hl()()),t&2){let e=nC();DE(2),nm(e.exportedCmd());}}var I=new jn,K=class t$1{#o=T(m);#n=T(be$1);#t=T(C);#e=T(W);#i=T(ee);#r=T(De);#s=T(g);isExporting=Ue$1(false);exportType=Ue$1("file");exportedCmd=Ue$1(null);exportForm=I.group({exportPasswords:I.control(true),encryption:I.control(false,[me.required,F()]),password:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])]),repeatPassword:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])])});exportFormSignal=L(this.exportForm.valueChanges);encryptionFieldSignal=Nt(()=>(this.exportFormSignal()?.encryption??false)&&this.exportType()==="file");activeBackup=Nt(()=>this.#s.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=Ue$1(false);copiedPassword=Ue$1(false);showCopyPassword=Ue$1(false);calculatePasswordStrength=Nt(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=Ga(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity();});disablePasswordForCommandLine=Ga(()=>{this.exportType()==="cmd"&&this.exportForm.controls.encryption.setValue(false);});submit(){if(this.exportType()==="file"&&this.exportFormSignal()?.exportPasswords===true&&!this.exportFormSignal()?.encryption){this.#n.open(h,{data:{title:$localize`Export without encryption?`,message:$localize`Are you sure you want to export your backup without encryption?`,confirmText:$localize`Yes, write plain-text passwords`,cancelText:$localize`Cancel`},closed:o=>{o&&this.submitApproved();}});return}this.submitApproved();}submitApproved(){this.isExporting.set(true),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe($u(o=>{let e=T=>{let O=Object.entries(T);return O?"?"+O.filter(([h,E])=>E!=null).map(([h,E])=>`${encodeURIComponent(h)}=${encodeURIComponent(E)}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0,a=t.BASE||"";return this.#r.get(`${a}/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob",headers:new y(l({},t.HEADERS??{}))})}),Bu(()=>this.isExporting.set(false))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",a=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${a}`),this.#i.navigate(["/"]);},error:o=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(Bu(()=>this.isExporting.set(false))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null);},error:o=>{}});}downloadFile(o,e){let n=window.URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n);}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#a(o??""),this.copiedPassword.set(true);}async#a(o){try{await navigator.clipboard.writeText(o);}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);}catch(n){console.error("Failed to copy text: ",n);}}}generatePassword(){this.copiedPassword.set(false);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(true);}static \u0275fac=function(e){return new(e||t$1)};static \u0275cmp=dw({type:t$1,selectors:[["app-export"]],decls:26,vars:13,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let n;n=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: As command line `;let a;a=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: To file `;let T;T=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let O;O=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let h;h=$localize`Password`;let E;E=$localize`Repeat password`;let J;J=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=tC(w);let H;H=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Generate password `;let z;z=$localize`Passwords are required`;let V;V=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let q;q=$localize`Passwords do not match`;let j;j=$localize`Passwords are required`;let W;W=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let D;D=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,D=tC(D);let Q;return Q=$localize` Tip: Be sure to save your password. If you lose it, you will not be able to import the configuration. `,[o,e,n,a,T,O,J,w,H,z,V,q,j,W,D,Q,[1,"actions"],["shButton","",1,"outlined",3,"routerLink"],["shButton","",1,"raised","primary",3,"click","shTooltip","disabled"],["autocomplete","off",3,"formGroup"],[1,"type-b",3,"valueChange","value"],["value","cmd"],["value","file"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",h,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",E,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["shButton","","type","button",1,"small",3,"click"],["shButton","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["shButton","","type","button",1,"small","copy",3,"click"],[1,"sh-success"]]},template:function(e,n){e&1&&(Qi(0,"header")(1,"h3"),PC(2," Export backup configuration "),Qi(3,"div",16)(4,"button",17),Og(5,0),mg(6,"sh-icon"),Pg(),Hl(),Qi(7,"button",18),Fg("click",function(){return n.submit()}),Og(8,1),mg(9,"sh-icon"),Pg(),Hl()()(),Qi(10,"p"),PC(11),Hl()(),Qi(12,"form",19)(13,"sh-button-group",20),sm("valueChange",function(T){return HC(n.exportType,T)||(n.exportType=T),T}),Qi(14,"button",21),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",22),Og(18,3),mg(19,"sh-icon"),Pg(),Hl()(),Qi(20,"sh-toggle",23),Og(21,4),mg(22,"input",24),DD(),Pg(),Hl(),oT(23,be,3,0,"sh-toggle",25),oT(24,We,24,8,"div",26),oT(25,Qe,3,1,"div",27),Hl()),e&2&&(DE(4),gg("routerLink",QC(12,Xe)),DE(3),Qg("loading",n.isExporting()),gg("shTooltip",n.encryptionFieldSignal()?"Remember to copy the password":"")("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()||n.encryptionFieldSignal()&&n.exportForm.value.repeatPassword!==n.exportForm.value.password),DE(4),rm("#",n.activeBackup()?.Backup?.ID,": ",n.activeBackup()?.Backup?.Name),DE(),gg("formGroup",n.exportForm),DE(),im("value",n.exportType),DE(9),TD(),DE(),iT(n.exportType()==="file"?23:-1),DE(),iT(n.encryptionFieldSignal()?24:-1),DE(),iT(n.exportedCmd()?25:-1));},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,x,J,N,Fe,v,ue,d,at],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] sh-icon.sh-success[_ngcontent-%COMP%]{color:var(--success-8)}.hide[_ngcontent-%COMP%]{display:none}"]})};export{K as default};
|
package/chunk-CegwkGVu.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import {j as jn,m as me}from'./chunk-DipTNkHN.js';import {aj as l$1,T as T$1,ab as C$1,N as Nt,aG as pt,aZ as ee,U as Ue,ai as m$1,C as Bu}from'./main-KFKZO6SJ.js';var y=class{constructor(t){this.loader=t;}loader;_data=Ue(void 0);_isLoading=false;_loaded=false;load(){return !this._loaded&&!this._isLoading&&(this._isLoading=true,this.loader().pipe(Bu(()=>this._isLoading=false)).subscribe(t=>{this._data.set(t),this._loaded=true;})),this._data.asReadonly()}value(){return this._data.asReadonly()}isLoading(){return this._isLoading}isLoaded(){return this._loaded}reset(){this._data.set(void 0),this._loaded=false;}};var d=class e{#e=T$1(C$1);#o=new y(()=>this.getS3Config("Providers"));#n=new y(()=>this.getS3Config("Regions"));#r=new y(()=>this.getS3Config("RegionHosts"));#s=new y(()=>this.getS3Config("StorageClasses"));#i=Nt(()=>{let t=this.#o.value()(),o=this.#r.value()(),r=[...t??[],...o?.map(n=>({key:`Amazon ${n.key}`,value:n.value}))??[]];return Array.from(new Map(r.map(n=>[n.value,n])).values())});#a=new y(()=>this.getStorjConfig("Satellites"));#l=new y(()=>this.getStorjConfig("AuthenticationMethods"));#c=new y(()=>this.getOpenstackConfig("Providers"));#u=new y(()=>this.getOpenstackConfig("Versions"));#p=new y(()=>this.getGcsConfig("Locations"));#m=new y(()=>this.getGcsConfig("StorageClasses"));getS3AllProviders(){return this.#o.load(),this.#r.load(),this.#i}getS3ProvidersFiltered(t){return Nt(()=>this.getS3AllProviders()().filter(t))}getS3Providers(){return this.#o.load()}getS3Regions(){return this.#n.load()}getS3RegionHosts(){return this.#r.load()}getS3StorageClasses(){return this.#s.load()}getStorjSatellites(){return this.#a.load()}getStorjAuthenticationMethods(){return this.#l.load()}getOpenstackProviders(){return this.#c.load()}getOpenstackVersions(){return this.#u.load()}getGcsLocations(){return this.#p.load()}getGcsStorageClasses(){return this.#m.load()}getS3Config(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":t}}).pipe(pt(o=>this.#t(o)))}createS3IamUser(t,o){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":t,"s3-password":o}})}createS3PolicyIAM(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:t}})}getStorjConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":t}}).pipe(pt(o=>this.#t(o)))}getOpenstackConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":t}}).pipe(pt(o=>this.#t(o)))}getGcsConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":t}}).pipe(pt(o=>this.#t(o)))}#t(t){return (t.Result&&typeof t.Result=="object"&&Object.entries(t.Result).map(([o,r])=>({key:o,value:r})))??[]}getDuplicatiStorageBackups(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"duplicati-list-backups",requestBody:{action:"ListBackups",url:t}}).pipe(pt(o=>this.#t(o)),pt(o=>o.find(r=>r.key==="folders")?.value),pt(o=>JSON.parse(o)))}getFilenApiKey(t,o){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"filen-get-api-key",requestBody:{"filen-operation":"GetApiKey","backup-id":o??"",url:t}}).pipe(pt(r=>this.#t(r)),pt(r=>r.find(n=>n.key==="api-key")?.value))}getOffice365Counts(t,o,r){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":r??"","source-prefix":o,operation:"CountItems",url:t}}).pipe(pt(n=>this.#t(n)),pt(n=>n.find(i=>i.key==="counts")?.value),pt(n=>JSON.parse(n)))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"})};var s=new jn,u={type:"error",message:$localize`Using a leading slash is most likely wrong, and will result in objects being created with a leading slash in the name.`},U={description:$localize`Unknown destination type`,icon:"assets/dest-icons/file-system.png",isDefaultEntry:true,customFields:{path:{type:"String",name:"path",doubleSlash:u,shortDescription:$localize`Path`,formElement:e=>s.control(e??"")}},mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>{let n=o.startsWith(`${e}:///`)?o.split(`${e}:///`)[1]:o.split(`${e}://`)[1];return l$1({destinationType:e,custom:{path:n.split("?")[0]}},l(e,t))}}},F={key:"s3",displayName:$localize`S3 Compatible`,description:$localize`Store backups in any S3 compatible bucket.`,icon:"assets/dest-icons/s3compat.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3AllProviders(),isMandatory:true,formElement:e=>s.control(e??"")},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},{name:"use-ssl"}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ue([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}]),validate:e=>({type:"warning",message:$localize`Invalid client selected`})}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))}}},P=[{key:"file",displayName:$localize`File system`,description:$localize`Store backups on your local file system.`,icon:"assets/dest-icons/file-system.png",searchTerms:"local disk harddrive localdisk filesystem unc server share drive",sortOrder:110,customFields:{path:{type:"FolderTree",name:"path",doubleSlash:u,shortDescription:$localize`File path`,longDescription:$localize`The path to store the backup`,formElement:e=>s.control(e??""),isMandatory:true}},mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>{let r=o.startsWith("file:///"),n=decodeURIComponent(r?o.split("file:///")[1]:o.split("file://")[1]),p=n.slice(1).startsWith(":\\")||n.slice(1).startsWith(":/")||n.startsWith("\\\\")?n:"/"+n;return l$1({destinationType:e,custom:{path:p.split("?")[0]}},l(e,t))}}},{key:"duplicati",displayName:$localize`Duplicati Storage`,description:$localize`Store backups with Duplicati Storage.`,icon:"assets/dest-icons/duplicati.png",searchTerms:"duplicati internal built-in",sortOrder:100,dynamicFields:[{name:"duplicati-backup-id",type:"DuplicatiBackupId",isMandatory:true,shortDescription:$localize`Unique Backup ID`,longDescription:$localize`A unique identifier for the backup job. It is recommended to not change this value.`}],mapper:{to:e=>c(e,null,null,null),from:(e,t,o)=>l$1({destinationType:e},l(e,t)),default:e=>e&&e.length>0?`duplicati://?duplicati-backup-id=${encodeURIComponent(e)}`:"duplicati://"}},{key:"ssh",displayName:$localize`SFTP (SSH)`,description:$localize`Store backups with SFTP (SSH).`,icon:"assets/dest-icons/ssh.png",searchTerms:"sftp scp secure shell",sortOrder:80,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`The server to connect to`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`The port to connect to`,formElement:e=>s.control(e??"",[me.required,me.max(65535)])},path:{type:"Path",name:"path",shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,longDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,longDescription:$localize`Password`}],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:$localize`This is a path to a private key file locally on the machine`,longDescription:$localize`This is a path to a private key file locally on the machine`},{type:"FreeText",name:"ssh-key",shortDescription:$localize`SSH private key`,longDescription:$localize`An SSH private key. Supported formats are OpenSSL, OpenSSH, PuTTY, and PEM.`}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"s3",displayName:$localize`S3 Compatible`,description:$localize`Store backups in any S3 compatible bucket.`,icon:"assets/dest-icons/s3compat.png",searchTerms:"spaces cloud digitalocean cloudian minio linode bunnycdn oracle cloudflare alibaba huawei tencent baidu jd ucloud qiniu aliyun tcloud tencent ",sortOrder:90,customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3AllProviders(),isMandatory:true,formElement:e=>s.control(e??"")},{name:"use-ssl",order:2},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ue([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}])},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3StorageClasses()},{name:"s3-location-constraint",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3Regions()}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))}}},{key:"s3",customKey:"s3-aws",displayName:$localize`Amazon S3`,description:$localize`Store backups in Amazon S3.`,icon:"assets/dest-icons/aws.png",searchTerms:"amazon aws",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3ProvidersFiltered(t=>t.value.endsWith(".amazonaws.com")),isMandatory:true,formElement:e=>s.control(e??"")},{name:"use-ssl",order:2},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ue([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}])},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3StorageClasses()},{name:"s3-location-constraint",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3Regions()}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return e.dynamic["s3-server-name"]?.endsWith(".amazonaws.com")&&(e.destinationType="s3"),c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))},default:e=>"s3-aws://?use-ssl=true",intercept:e=>e.searchParams.get("s3-server-name")?.endsWith(".amazonaws.com")??false}},{key:"gcs",displayName:$localize`Google Cloud Storage`,description:$localize`Store backups in Google Cloud Storage.`,icon:"assets/dest-icons/google-cloud.png",oauthField:"authid",searchTerms:"gcp googlecloud",sortOrder:70,customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true,longDescription:$localize`An OAuth token with access to the Google Cloud Storage. Not required if service account JSON is provided.`}],advancedFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getGcsLocations()},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getGcsStorageClasses()},{name:"gcs-service-account-file",type:"FileTree",accepts:".json,",shortDescription:$localize`Service account JSON file`,longDescription:$localize`Pick the path to a file with service account JSON.`},{name:"gcs-service-account-json",type:"FreeText",shortDescription:$localize`Service account JSON`,longDescription:$localize`Paste the service account JSON here.`}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))}}},{key:"googledrive",displayName:$localize`Google Drive`,description:$localize`Store backups in Google Drive.`,icon:"assets/dest-icons/google-drive.png",oauthField:"authid",searchTerms:"gdrive",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",type:"Password",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"pcloud",displayName:$localize`pCloud`,description:$localize`Store backups in pCloud.`,icon:"assets/dest-icons/pcloud.png",oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>Ue([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",type:"Password",oauthVersion:2,isMandatory:true}],mapper:{to:e=>{let{server:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{server:r,path:n}=m(t);return l$1({destinationType:e,custom:{server:r,path:n}},l(e,t))}}},{key:"azure",displayName:$localize`Azure Blob Storage`,description:$localize`Store backups in Azure Blob Storage.`,icon:"assets/dest-icons/azure.png",searchTerms:"microsoft ms",sortOrder:60,customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Container name`,longDescription:$localize`Container name`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"onedrivev2",displayName:$localize`OneDrive`,description:$localize`Store backups in OneDrive.`,icon:"assets/dest-icons/one-drive.png",oauthField:"authid",searchTerms:"micorsoft ms",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"od4b",displayName:$localize`OneDrive Business (deprecated)`,description:$localize`Store backups in OneDrive Business. Deprecated, use Sharepoint instead.`,icon:"assets/dest-icons/one-drive.png",searchTerms:"microsoft ms",sortOrder:-1,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"mssp",displayName:$localize`Microsoft SharePoint (deprecated)`,description:$localize`Store backups in Microsoft SharePoint using legacy API.`,icon:"assets/dest-icons/sharepoint.png",searchTerms:"microsoft ms",sortOrder:-1,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"String",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"sharepoint",displayName:$localize`Microsoft SharePoint`,description:$localize`Store backups in Microsoft SharePoint.`,icon:"assets/dest-icons/sharepoint.png",oauthField:"authid",searchTerms:"microsoft ms",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"site-id",isMandatory:true},{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"dropbox",displayName:$localize`Dropbox`,description:$localize`Store backups in Dropbox.`,icon:"assets/dest-icons/dropbox.png",oauthField:"authid",searchTerms:"dbx",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"box",displayName:$localize`Box.com`,description:$localize`Store backups in Box.com.`,icon:"assets/dest-icons/box-com.png",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"jottacloud",displayName:$localize`Jottacloud`,description:$localize`Store backups in Jottacloud.`,icon:"assets/dest-icons/jottacloud.png",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"b2",displayName:$localize`B2 Cloud Storage`,description:$localize`Store backups in B2 Cloud Storage.`,icon:"assets/dest-icons/backblaze.png",searchTerms:"backblaze",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true,validate:e=>{function t(o){if(!o)return false;let r=o.length;return !(r<6||r>63||!/^[a-zA-Z0-9.-]+$/.test(o)||!/^[a-zA-Z0-9]/.test(o)||!/[a-zA-Z0-9]$/.test(o)||/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||/(\.\.)|(\.-)|(-\.)/.test(o)||o.toLowerCase().startsWith("b2-"))}return t(e)?null:{type:"error",message:$localize`Invalid bucket name.`}}},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Application ID`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Application Key`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))}}},{key:"e2",displayName:$localize`IDrive e2`,description:$localize`Store backups in IDrive e2.`,icon:"assets/dest-icons/idrive-e2.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"String",name:"path",doubleSlash:u,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Access ID`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access Secret`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{bucket:r,path:n}},l(e,t))}}},{key:"mega",displayName:$localize`Mega.nz`,description:$localize`Store backups in Mega.nz.`,icon:"assets/dest-icons/mega-nz.png",sortOrder:-1,customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let t=e.custom.path;return c(e,null,null,t)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"msgroup",displayName:$localize`Microsoft Office 365 Group`,description:$localize`Store backups in Microsoft Office 365 Group.`,icon:"assets/dest-icons/office-365.png",oauthField:"authid",searchTerms:"ms",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:$localize`Group email`,longDescription:$localize`Group email`,formElement:e=>s.control(e??"",[me.email]),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"cloudfiles",displayName:$localize`Rackspace CloudFiles`,description:$localize`Store backups in Rackspace CloudFiles.`,icon:"assets/dest-icons/rackspace.png",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"rclone",displayName:$localize`Rclone`,description:$localize`Store backups in Rclone.`,icon:"assets/dest-icons/rclone.png",searchTerms:"rcl",dynamicFields:[{name:"rclone-local-repository",shortDescription:$localize`Local repository`,defaultValue:""},{name:"rclone-remote-repository",shortDescription:$localize`Remote repository`,defaultValue:""},{name:"rclone-remote-path",type:"Path",shortDescription:$localize`Path on remote repository`,defaultValue:""}],mapper:{to:e=>{let t=e.dynamic["rclone-remote-repository"],o=e.dynamic["rclone-remote-path"],r=Object.entries(e.dynamic).filter(([n])=>!["rclone-remote-repository","rclone-remote-path"].includes(n));return C(e.destinationType??"rclone",t,null,o,[...Object.entries(e.advanced??{}),...r])},from:(e,t,o)=>{let{advanced:r,dynamic:n}=l(e,t),{bucket:i,path:p}=m(t);return {destinationType:e,dynamic:l$1({"rclone-remote-repository":i,"rclone-remote-path":p},n),advanced:l$1({},r)}}}},{key:"openstack",displayName:$localize`OpenStack Object Storage`,description:$localize`Store backups in OpenStack Object Storage.`,icon:"assets/dest-icons/open-stack.png",searchTerms:"swift",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket`,longDescription:$localize`Bucket`,formElement:e=>s.control(e??""),isMandatory:true}},dynamicFields:[{name:"openstack-authuri",shortDescription:$localize`Auth URI`,type:"Enumeration",loadOptions:e=>e.get(d).getOpenstackProviders(),isMandatory:true},{name:"openstack-version",shortDescription:$localize`Version`,type:"Enumeration",loadOptions:e=>e.get(d).getOpenstackVersions()},{name:"openstack-domain-name",type:"Hostname",shortDescription:$localize`Domain name`},{name:"openstack-tenant-name",shortDescription:$localize`Tenant name`},{name:"openstack-region",shortDescription:$localize`Region`}],mapper:{to:e=>{let{bucket:t}=e.custom;return c(e,t,null,null)},from:(e,t,o)=>{let{bucket:r,path:n}=m(t);return l$1({destinationType:e,custom:{path:n,bucket:r}},l(e,t))}}},{key:"webdav",displayName:$localize`WebDAV`,description:$localize`Store backups in WebDAV.`,icon:"assets/dest-icons/webdav.png",searchTerms:"web dav",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`},{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],advancedFields:[{type:"FileTree",name:"debug-propfind-file",accepts:".txt,.log"}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"aftp",displayName:$localize`Alternative FTP`,description:$localize`Store backups in FTP.`,icon:"assets/dest-icons/ftp.png",searchTerms:"alt file transfer protocol ftps",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"ftp",displayName:$localize`FTP`,description:$localize`Store backups in FTP.`,icon:"assets/dest-icons/ftp.png",searchTerms:"file transfer protocol ftps",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"sia",displayName:$localize`Sia Decentrilized Cloud`,description:$localize`Store backups in Sia Decentrilized Cloud.`,icon:"assets/dest-icons/sia-cloud.png",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let t=e.custom.server,o=e.dynamic["sia-targetpath"],r=[...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([n])=>n!=="sia-targetpath")];return C(e.destinationType??"sia",t,null,o,r)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"cos",displayName:$localize`Tencent COS`,description:$localize`Store backups in Tencent COS.`,icon:"assets/dest-icons/tencent-cloud.png",customFields:{bucket:{name:"bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"cos-region",shortDescription:$localize`Region`},{name:"cos-app-id",shortDescription:$localize`COS App Id`,isMandatory:true},{name:"cos-secret-id",shortDescription:$localize`COS Secret Id`,isMandatory:true},{name:"cos-secret-key",shortDescription:$localize`COS Secret Key`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=m$1(l$1({},e),{advanced:m$1(l$1({},e.advanced),{"cos-bucket":t})});return c(r,null,null,o)},from:(e,t,o)=>{let r=l(e,t),n=r.advanced["cos-bucket"];return delete r.advanced["cos-bucket"],l$1({destinationType:e,custom:{path:h(t),bucket:n}},r)}}},{key:"tahoe",displayName:$localize`Tahoe LAFS`,description:$localize`Store backups in Tahoe LAFS.`,icon:"assets/dest-icons/tahoelafs.png",searchTerms:"least authority file system",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>s.control(e??"")},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:n,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:n,path:i}},l(e,t))}}},{key:"smb",displayName:$localize`Windows Share (SMB)`,description:$localize`Store backups on SMB storage.`,icon:"assets/dest-icons/smb.png",searchTerms:"cifs samba",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>s.control(e??""),isMandatory:true},share:{type:"Hostname",name:"share",shortDescription:$localize`Share Name`,longDescription:$localize`Share Name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>s.control(e??"")}},dynamicFields:["transport",{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},"auth-domain"],mapper:{to:e=>{let{share:t,server:o,path:r}=e.custom;return c(e,o,null,N(t,r))},from:(e,t,o)=>{let{server:r,path:n}=m(t),i=n.split("/")[0],p=n.split("/").slice(1).join("/");return l$1({destinationType:e,custom:{server:r,share:i,path:p}},l(e,t))}}},{key:"cifs",displayName:$localize`CIFS (deprecated)`,description:$localize`Same as SMB backend, but with a different name. Use SMB instead.`,icon:"assets/dest-icons/smb.png",sortOrder:-1,mapper:U.mapper},{key:"filen",displayName:$localize`Filen.io`,description:$localize`Store backups in Filen.io.`,icon:"assets/dest-icons/filen.png",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on Filen`,longDescription:$localize`Path on Filen`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},{name:"two-factor-code",type:"Filen2FACode"}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"filejump",displayName:$localize`Filejump`,description:$localize`Store backups in Filejump.`,icon:"assets/dest-icons/file-jump.png",sortOrder:-1,customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path on Filejump`,longDescription:$localize`Path on Filejump`,formElement:e=>s.control(e??"")}},dynamicFields:[{type:"Password",name:"api-token",shortDescription:$localize`API Token`,longDescription:$localize`Filejump API Token`,formElement:e=>s.control(e??""),isMandatory:true}],mapper:{to:e=>{let{path:t}=e.custom;return c(e,null,null,t)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"storj",customKey:"storjAccessGrant",displayName:$localize`Storj Access Grant`,description:$localize`Store backups in Storj Access Grant.`,icon:"assets/dest-icons/storj.png",dynamicFields:[{name:"storj-shared-access",shortDescription:$localize`Access Grant`,isMandatory:true},{name:"storj-bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true},{name:"storj-folder",type:"Path",shortDescription:$localize`Path on server`,doubleSlash:u},{name:"storj-satellite",shortDescription:$localize`Satellite`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getStorjSatellites(),isMandatory:true}],mapper:{to:e=>{let t={"storj-auth-method":"Acccess grant"};return `storj://storj.io/config${$([...Object.entries(e.advanced),...Object.entries(e.dynamic),...Object.entries(t)])}`},from:(e,t,o)=>{let r=l(e,t);return delete r.advanced["storj-auth-method"],l$1({destinationType:e},r)},intercept:e=>e.protocol!=="storj:"?false:!!(e.searchParams.get("storj-shared-access")||e.searchParams.get("storj-auth-method")==="Acccess grant"),default:()=>"storj://?storj-shared-access=&storj-auth-method=Acccess+grant"}},{key:"storj",customKey:"storjApiKey",displayName:$localize`Storj API Key`,description:$localize`Store backups in Storj API Key.`,icon:"assets/dest-icons/storj.png",dynamicFields:[{name:"storj-satellite",shortDescription:$localize`Satellite`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getStorjSatellites(),isMandatory:true},{name:"storj-api-key",shortDescription:$localize`API Key`,isMandatory:true},{name:"storj-secret",shortDescription:$localize`Secret`,isMandatory:true},{name:"storj-bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true},{name:"storj-folder",type:"Path",shortDescription:$localize`Path on server`,doubleSlash:u}],mapper:{to:e=>{let t={"storj-auth-method":"API key"};return `storj://storj.io/config${$([...Object.entries(e.advanced),...Object.entries(e.dynamic),...Object.entries(t)])}`},from:(e,t,o)=>{let r=l("storjApiKey",t);return delete r.advanced["storj-auth-method"],l$1({destinationType:e},r)},intercept:e=>e.protocol!=="storj:"?false:!!(e.searchParams.get("storj-api-key")||e.searchParams.get("storj-secret")||e.searchParams.get("storj-auth-method")==="API key"),default:()=>"storj://?storj-api-key=&storj-secret=&storj-auth-method=API+key"}},{key:"aliyunoss",displayName:$localize`Aliyun OSS`,description:$localize`Store backups in Aliyun OSS`,icon:"assets/dest-icons/aliyun.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,formElement:e=>s.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path in bucket`,longDescription:$localize`Path in bucket`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"oss-endpoint",isMandatory:true},{name:"oss-access-key-id",isMandatory:true},{name:"oss-access-key-secret",isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=m$1(l$1({},e),{advanced:m$1(l$1({},e.advanced),{"oss-bucket-name":t})});return c(r,null,null,o)},from:(e,t,o)=>{let r=l(e,t),n=r.advanced["oss-bucket-name"];return delete r.advanced["oss-bucket-name"],l$1({destinationType:e,custom:{path:h(t),bucket:n}},r)}}},{key:"office365",displayName:$localize`Microsoft 365`,description:$localize`Create backups of Microsoft 365 data.`,searchTerms:"office o365 office365 m365 ms365",icon:"assets/dest-icons/office365.png",isNonFree:true,dynamicFields:[{name:"auth-username",shortDescription:$localize`Client ID`,longDescription:$localize`Application (client) ID from your Azure AD app registration.`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Client Secret`,longDescription:$localize`Client Secret from your Azure AD app registration.`,isMandatory:true},{name:"office365-tenant-id",shortDescription:$localize`Tenant ID`,isMandatory:true}],advancedFields:[{name:"office365-certificate-path",type:"FileTree"}],mapper:{to:e=>`office365://${$([...Object.entries(e.advanced),...Object.entries(e.dynamic)])}`,from:(e,t,o)=>{let{advanced:r,dynamic:n}=l(e,t);return {destinationType:e,advanced:l$1({},r),dynamic:l$1({},n)}}}},{key:"googleworkspace",displayName:$localize`Google Workspace`,description:$localize`Create backups of Google Workspace data.`,icon:"assets/dest-icons/googleworkspace.png",isNonFree:true,dynamicFields:[{name:"google-admin-email",type:"Email",shortDescription:$localize`Admin Email`,longDescription:$localize`Email address of the Google Workspace admin user.`,isMandatory:true},{name:"google-service-account-json",type:"FreeText",shortDescription:$localize`Service account JSON`,longDescription:$localize`Paste the service account JSON here.`,isMandatory:true}],advancedFields:[{name:"google-service-account-file",type:"FileTree",accepts:".json,",shortDescription:$localize`Service account JSON file`,longDescription:$localize`Pick the path to a file with service account JSON.`}],mapper:{to:e=>`googleworkspace://${$([...Object.entries(e.advanced),...Object.entries(e.dynamic)])}`,from:(e,t,o)=>{let{advanced:r,dynamic:n}=l(e,t);return {destinationType:e,advanced:l$1({},r),dynamic:l$1({},n)}}}},{key:"drimecloud",displayName:$localize`Drime Cloud`,description:$localize`Store backups in Drime Cloud.`,icon:"assets/dest-icons/drime.png",customFields:{path:{type:"Path",name:"path",doubleSlash:u,shortDescription:$localize`Path in Drime Cloud`,longDescription:$localize`Path in Drime Cloud`,formElement:e=>s.control(e??"")}},dynamicFields:[{name:"api-token",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},g("rabata","Rabata.io",null,"assets/dest-icons/rabata.png",[".rabata.io"]),g("wasabi","Wasabi Hot Storage",null,"assets/dest-icons/wasabi.png",[".wasabisys.com"]),g("impossiblecloud","Impossible Cloud",null,"assets/dest-icons/impossiblecloud.png",[".impossibleapi.net"]),g("scaleway","Scaleway",null,"assets/dest-icons/scaleway.png",[".scw.cloud"]),g("hosteurope","Hosteurope",null,"assets/dest-icons/hosteurope.png",[".hosteurope.de"]),g("dunkel","Dunkel",null,"assets/dest-icons/dunkel.png",[".dunkel.de"]),g("dreamhost","DreamHost",null,"assets/dest-icons/dreamhost.png",[".dreamhost.com"]),g("dincloud","dinCloud",null,"assets/dest-icons/dincloud.png",[".dincloud.com"]),g("polisystems","Poli Systems",null,"assets/dest-icons/polisystems.png",[".polisystems.ch"]),g("ibmcos","IBM COS",null,"assets/dest-icons/ibmcos.png",[".softlayer.net"]),g("storadera","Storadera",null,"assets/dest-icons/storadera.png",[".storadera.com"]),g("infomaniak","Infomaniak",null,"assets/dest-icons/infomaniak.png",[".infomaniak.com",".infomaniak.cloud"]),g("sakuracloud","\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9",null,"assets/dest-icons/sakuracloud.png",[".sakurastorage.jp"]),g("seagatelyve","Seagate Lyve",null,"assets/dest-icons/seagatelyve.png",[".lyvecloud.seagate.com"]),g("internxt","Internxt",null,"assets/dest-icons/internxt.png",[".internxt.com"]),g("selectel","Selectel",null,"assets/dest-icons/selectel.png",[".storage.selcloud.ru",".srvstorage.uz",".srvstorage.kz"])],j={".amazonaws.com":"Amazon S3",".impossibleapi.net":"Impossible Cloud S3",".scw.cloud":"Scaleway S3",".hosteurope.de":"Hosteurope S3",".dunkel.de":"Dunkel S3",".dreamhost.com":"DreamHost S3",".dincloud.com":"dinCloud S3",".polisystems.ch":"Poli Systems S3",".softlayer.net":"IBM COS (S3)",".storadera.com":"Storadera S3",".wasabisys.com":"Wasabi S3",".infomaniak.com":"Infomaniak S3",".infomaniak.cloud":"Infomaniak S3",".sakurastorage.jp":"\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9 S3",".lyvecloud.seagate.com":"Seagate Lyve S3",".digitaloceanspaces.com":"DigitalOcean S3",".backblazeb2.com":"Backblaze B2 S3",".cloudian.com":"Cloudian S3",".min.io":"MinIO S3",".linodeobjects.com":"Linode S3",".bunnycdn.com":"BunnyCDN S3",".azure.com":"Microsoft Azure S3",".googleapis.com":"Google Cloud Storage S3",".ibm.com":"IBM Cloud S3",".oracle.com":"Oracle Cloud S3",".cloudflare.com":"Cloudflare S3",".alibaba.com":"Alibaba Cloud S3",".huawei.com":"Huawei Cloud S3",".tencent.com":"Tencent Cloud S3",".baidu.com":"Baidu Cloud S3",".jd.com":"JD Cloud S3",".ucloud.cn":"UCloud S3",".qiniu.com":"Qiniu Cloud S3",".aliyuncs.com":"Aliyun S3",".tcloud.com":"TCloud S3",".tencentcloudapi.com":"Tencent Cloud S3",".rabata.io":"Rabata S3",".internxt.com":"Internxt S3",".storage.selcloud.ru":"Selectel S3",".srvstorage.uz":"Selectel S3",".srvstorage.kz":"Selectel S3"};var W=new jn,v=class{host;hostname;exactHostname;pathname;port;protocol;search;username;password;searchParams;originalUrl;constructor(t){let o=new URL(t);this.originalUrl=t,this.host=o.host,this.hostname=o.hostname,this.exactHostname=this.extractExactHostname(t),this.pathname=o.pathname,this.port=o.port,this.protocol=o.protocol,this.search=o.search,this.username=o.username,this.password=o.password,this.searchParams=o.searchParams;}extractExactHostname(t){let o=t.match(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/(?:[^@\/?#]*@)?(\[[a-fA-F0-9:.]+\]|[^:\/?#]+)/);return o?o[1]:""}};function c(e,t,o,r){return C(e.destinationType??"file",t,o,r,[...Object.entries(e.advanced),...Object.entries(e.dynamic)])}function C(e,t,o,r,n){let i=$(n),p=encodeURIComponent(_(t)),S=p==""?"":p+K(o),k=r??"",w=k.slice(1).startsWith(":\\")&&e=="file"?"file:///":`${e}://`,b=N(S,H(k));return `${w}${b}${i}`}function R(e){return e==null||e===""?"":e.startsWith("/")?e.substring(1):e}function N(...e){if(e.length===0)return "";if(e.length===1)return e[0]??"";let t="";for(let o of e)o==null||o===""||(t+=t.endsWith("/")||t==""?o:"/"+o);return t}function H(e){return e.split("/").map(encodeURIComponent).join("/")}function h(e){if(e==null||e==="")return "";if(typeof e=="string")try{e=new v(e);}catch{return ""}return decodeURIComponent(e.exactHostname??"")+decodeURIComponent(e.pathname=="/"?"":e.pathname??"")}function _(e){return e==null||e===""?"":e.endsWith("/")?e.substring(0,e.length-1):e}function K(e){return e==null||e===""?"":":"+e.toString()}function Fe(e){return e?e.startsWith("diskimage:")?"assets/dest-icons/external-harddrive.png":V(e).icon:""}function Pe(e){if(!e)return "";if(e.startsWith("diskimage:"))return $localize`Local disk`;let t=V(e);return t?t.displayName:"Unknown"}function V(e){try{let o=new v(e),r=P.find(n=>n.mapper.intercept?.(o));if(r)return r}catch{}let t=e.split("://")[0];return G(t)}var q={file:{Display:$localize`Local`,Icon:null}};function Oe(e){if(!e)return "";let t=V(e);if(!t)return "";let o=q[t.key];if(o?.Display)return o.Display;if(t.key==="s3"){let r="http://null?"+e.split("?")[1],i=new URL(r).searchParams.get("s3-server-name")?.toLowerCase()??"";for(let[p,S]of Object.entries(j))if(i.endsWith(p))return S}return t.displayName}function G(e){return P.find(o=>o.key===e||o.customKey===e)??P.find(o=>`${o.key}s`===e)??null??l$1({key:e,displayName:e},U)}function Me(e){return P.filter(t=>t.key===e||t.customKey===e)}function m(e){return {bucket:decodeURIComponent(e.exactHostname),server:decodeURIComponent(e.exactHostname||e.hostname),port:e.port,path:R(decodeURIComponent(e.pathname))}}function l(e,t){let o={},r={},n=G(e);return t.searchParams.forEach((i,p)=>{n?.dynamicFields?.some(k=>k===p||k?.name===p)?r[p]=decodeURIComponent(i):o[p]=decodeURIComponent(i);}),{advanced:o,dynamic:r}}function $(e,t=false){let o=e.map(([n,i])=>`${n}=${i?encodeURIComponent(i.toString()):""}`).join("&");return o?(t?"":"?")+o:""}function Ce(e){let t=e.destinationType??"";return G(t)?.mapper.to(e)??""}function Ve(e){let t=e.split("://")[0],o=e.split("://")[1],r=t==="file"?"http://dummy":o==""||o.startsWith("?")?`${t}://`+o:"http://"+o;if(!o)return null;let n=V(e),i="";if(`${n.key}s`===t&&(i+=r.indexOf("?")===-1?"?":"&",i+="use-ssl=true",e=n.key+e.substring(t.length)),t==="file"&&o.indexOf("?")!==-1&&(i+=i.indexOf("?")===-1?"?":"&",i+=o.split("?")[1]??""),t==="file"&&o.startsWith("%")&&!o.startsWith("%5C"))return G(t).mapper.from(t,new v("http://localhost"+i),e);try{let p=new v(r+i);if(p.host==="undefined")return null;let S=o.split("?")[0].split("/")[0],k=p.host!=""&&!isNaN(Number(p.host.replaceAll(".",""))),A=S.split("."),w=A.length===4&&A.every(b=>b.length&&b.length<=3&&!isNaN(Number(b))&&parseInt(b)<=255);return k&&!w?null:n.mapper.from(n.key,p,e)}catch(p){return console.error("Error while parsing target path",e,r+i,p),null}}function T(e){return typeof e!="string"||!e.trim()?[]:e.split(`
|
|
2
|
-
`).map(t=>t.trim()).filter(t=>t).map(t=>{let[o,...r]=t.split("="),n=r.join("=").trim();return o.trim()?[o.trim(),n]:null}).filter(t=>t!==null)}function Ge(e){return T(e).map(([t,o])=>({Name:t,Value:o}))}function Ae(e){return Object.fromEntries(T(e))}function we(e){if(!e)return false;let t=e.length;return !(t<3||t>63||!/^[a-z0-9.-]+$/.test(e)||!/^[a-z0-9]/.test(e)||!/[a-z0-9]$/.test(e)||/^\d{1,3}(\.\d{1,3}){3}$/.test(e)||/(\.\.)|(\.-)|(-\.)/.test(e))}function Ee(e){if(!e||e.length>253)return false;let t=e.split(".");for(let o of t)if(!o||o.length>63||!/^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?$/.test(o))return false;return true}function g(e,t,o,r,n){return m$1(l$1({},F),{customKey:`s3-${e}`,icon:r??F.icon,displayName:$localize`${t} (S3)`,description:$localize`Store backups in ${t} storage.`,dynamicFields:[...(F.dynamicFields??[]).filter(i=>i?.name!=="s3-server-name"),{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the ${t} endpoint`,type:"NonValidatedSelectableString",loadOptions:i=>i.get(d).getS3ProvidersFiltered(p=>n.some(S=>p.value.endsWith(S))),isMandatory:true,formElement:i=>W.control(i??"")}],mapper:m$1(l$1({},F.mapper),{to:i=>{let{bucket:p,path:S}=i.custom;return n.some(k=>i.dynamic["s3-server-name"]?.endsWith(k))&&(i.destinationType="s3"),c(i,p,null,S)},default:i=>`s3-${e}://?use-ssl=true`,intercept:i=>n.some(p=>i.searchParams.get("s3-server-name")?.endsWith(p))??false})})}
|
|
3
|
-
export{Ae as A,Ce as C,Ee as E,Fe as F,G,Me as M,Oe as O,Pe as P,V,Ge as a,Ve as b,d,h,we as w};
|
package/chunk-CgcnOoRq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {v as v$1}from'./chunk-C6QX7znk.js';import {ShipTable as ot}from'./chunk-DFEb6rgg.js';import {c}from'./chunk-wyNyzSXi.js';import {T,b as g1,G as Ga,U as Ue,d as dw,f as N,v as v$2,aJ as ci,o as oT,i as iT,I as Qg,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,n as nC,ag as zg,z as gg,D as DE,a2 as lT,k as gT,F as Fg,S as Sd,x as xd,q as PC,aM as tb,E as nm,aN as ob,aa as Gl,ap as sT}from'./main-KFKZO6SJ.js';import'./chunk-B2TXzbpy.js';import'./chunk-CRAg6SRo.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),XT(1,0),Hl());}function U(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Exception"),Hl(),Qi(2,"ol",15),cT(3,U,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Message"),Hl(),Qi(2,"ol",15),cT(3,j,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),oT(1,X,5,0),oT(2,z,5,0),Hl()),t&2){let e=nC(2).$implicit;DE(),iT(e.Exception?1:-1),DE(),iT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),PC(4),Hl(),Qi(5,"div",14),PC(6),Hl(),Qi(7,"div",14),PC(8),Hl(),Qi(9,"div",14),PC(10),Hl(),Qi(11,"div",14),PC(12),Hl()(),oT(13,W,3,2,"code"),Hl()()),t&2){let e=nC().$implicit;DE(4),Gl("ID: ",e.ID),DE(2),Gl("Type: ",e.Type),DE(2),Gl("Tag: ",e.Tag),DE(2),Gl("TaskID: ",e.TaskID),DE(2),Gl("MessageID: ",e.MessageID),DE(),iT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=gT();Qi(0,"tr",10),Fg("click",function(){let u=Sd(e).$implicit,g=nC(2);return xd(g.toggleRow(u.ID))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td"),PC(5),Hl(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),PC(9,"caret-down"),Hl()()()(),oT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=nC(2);DE(2),nm(ob(3,5,e.When,"medium")),DE(3),nm(a.subStringMessage(e.Message)),DE(2),Qg("rotated-icon",e.ID===a.openRowId()),DE(3),iT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),XT(3,1),Hl(),Qi(4,"th"),XT(5,2),Hl(),mg(6,"th",8),Hl(),cT(7,q,11,8,null,null,B),Qi(9,"div",9),XT(10,3),Hl()()),t&2){let e=nC();zg("grid-template-columns","auto 1fr auto"),Qg("type-b",true),gg("data",e.logs())("loading",e.logsLoading()),DE(7),lT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=g1();backupIdFilter=g1();polling=g1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=Ga(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ue(null);whenEffect=Ga(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=Ga(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
|
|
2
|
-
`):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Qg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&oT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&iT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}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:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
|
package/chunk-Ck9c9Juw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=[{path:"",loadComponent:()=>import('./chunk-Bceym75m.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-CnRCpl-v.js')},{path:"live",loadComponent:()=>import('./chunk-CgcnOoRq.js')}]}],t=o;export{t as default};
|
package/chunk-CnRCpl-v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {ShipTable as ot}from'./chunk-DFEb6rgg.js';import'./chunk-B2TXzbpy.js';import'./chunk-CRAg6SRo.js';import {T,ab as C,U as Ue,G as Ga,C as Bu,ai as m,aj as l,d as dw,f as N,v,aJ as ci,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,F as Fg,O as Og,o as oT,P as Pg,ag as zg,z as gg,D as DE,a2 as lT,i as iT,k as gT,S as Sd,n as nC,x as xd,q as PC,aM as tb,E as nm,aN as ob,I as Qg,ap as sT}from'./main-KFKZO6SJ.js';function X(o,e){if(o&1&&(Qi(0,"li"),PC(1),Hl()),o&2){let t=e.$implicit;DE(),nm(t);}}function j(o,e){if(o&1&&(Qi(0,"tr")(1,"td",12)(2,"code")(3,"ol",13),cT(4,X,2,1,"li",null,sT),Hl()()()()),o&2){let t=nC().$implicit,n=nC();DE(),zg("grid-column","1 / -1")("height","auto"),DE(3),lT(n.breakIntoLines(t.Exception));}}function K(o,e){if(o&1){let t=gT();Qi(0,"tr",9),Fg("click",function(){let _=Sd(t).$index,m=nC();return xd(m.toggleRow(_))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td",10),PC(5),Hl(),Qi(6,"td"),PC(7),Hl(),Qi(8,"td")(9,"button",11)(10,"sh-icon"),PC(11,"caret-down"),Hl()()()(),oT(12,j,6,4,"tr");}if(o&2){let t=e.$implicit,n=e.$index,_=nC();DE(2),nm(t.Timestamp?ob(3,6,t.Timestamp*1e3,"medium"):"-"),DE(3),nm(t.BackupID>=0?t.BackupID:"-"),DE(2),nm(t.Message),DE(2),Qg("rotated-icon",n===_.openRowIndex()),DE(3),iT(n===_.openRowIndex()?12:-1);}}function V(o,e){o&1&&XT(0,4,1);}function q(o,e){o&1&&XT(0,4,2);}var H=["BackupID","Timestamp","Message","actions"],M=class o{#e=T(C);displayedColumns=Ue(H);openRowIndex=Ue(null);noMoreItems=Ue(false);logsIsLoading=Ue(false);logs=Ue([]);pagination=Ue({offsetTime:void 0,pagesize:10});paginationEffect=Ga(()=>{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(Bu(()=>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=dw({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"),XT(3,0),Hl(),Qi(4,"th"),XT(5,1),Hl(),Qi(6,"th"),XT(7,2),Hl(),mg(8,"th"),Hl(),cT(9,K,13,9,null,null,sT),Qi(11,"div",7),XT(12,3),Hl()(),Qi(13,"footer")(14,"button",8),Fg("click",function(){return n.loadMore()}),Og(15,4),oT(16,V,1,0)(17,q,1,0),Pg(),Hl()()),t&2){let _=n.logs();zg("grid-template-columns","1fr 1fr 1fr auto"),gg("data",_)("loading",n.logsIsLoading()),DE(9),lT(_),DE(5),gg("disabled",n.logsIsLoading()||n.noMoreItems()),DE(2),iT(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};
|
package/chunk-CrgyDps4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d as dw,Z as lr,j as mg}from'./main-KFKZO6SJ.js';var t=class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-welcome"]],decls:1,vars:0,template:function(e,m){e&1&&mg(0,"router-outlet");},dependencies:[lr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100vh}"]})};export{t as default};
|
package/chunk-DDBflo2l.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import {e as ee}from'./chunk-B0RBkC1E.js';import'./chunk-BB1pOOUx.js';import {O as O$1}from'./chunk-DN6f5jXR.js';import {m}from'./chunk-3RXp81pP.js';import {J}from'./chunk-khm9J_G0.js';import {N as Nt$1}from'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import {c}from'./chunk-OLi7f6y7.js';import {D}from'./chunk-B2TXzbpy.js';import {bi as bs,bj as H,bk as ft,bl as po,T,a6 as be,m as m$1,g,bm as h,U as Ue,N as Nt,G as Ga,C as Bu,bn as xt,at as h$1,d as dw,v,f as N,u as ue,j as mg,Q as Qi,X as XT,H as Hl,o as oT,F as Fg,p as DD,O as Og,P as Pg,s as sm,bf as ig,D as DE,i as iT,I as Qg,z as gg,a3 as QC,y as TD,au as Lg,av as eC,w as im,t as tC,l as HC,ab as C$1,B as y1,b2 as sg,b3 as tT,b4 as nT,$ as $g,K as lC,ae as Jr,b as g1,af as m1,b8 as ce,L as oC,R as Bl,Y as iC,W as $l,q as PC,an as jg,V as yg,aB as rm,ag as zg,h as bC,n as nC,E as nm,k as gT,S as Sd,x as xd,ar as Wp,a9 as UC,aa as Gl}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe}from'./chunk-DuIUmwWN.js';import {B as Bn$1,Z as Ze,o as on$1,R as Rn$1,J as Jt,G as Gn$1}from'./chunk-DipTNkHN.js';import {a as at}from'./chunk-Fw6nFDZK.js';import {C}from'./chunk-Ca1C9pJ0.js';import {O}from'./chunk-C-NgIZiF.js';import'./chunk-PVmXLw9b.js';import'./chunk-C7pjkqKB.js';var sn=[[["label"]],[["input","type","range"]]],an=["label","input[type=range]"],tn=(()=>{class i{constructor(){this.hasInput=Ue(false),this.#n=T(Jr),this.#i=null,this.#e=null,this.#t=0,this.unit=g1(""),this.value=m1(this.#t),this.inputState=Ue({min:0,max:100,step:1}),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.sharp=g1(void 0),this.alwaysShow=g1(void 0),this.hostClasses=ce("rangeSlider",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,alwaysShow:this.alwaysShow}),this.valuePercentage=Nt(()=>{let{min:e,max:n}=this.inputState(),s=this.value()??e;if(isNaN(s))return 0;let l=n-e;if(l===0)return 0;let E=(s-e)/l*100;return Math.max(0,Math.min(100,E))}),this.trackFilledPercentage=Nt(()=>this.valuePercentage()),this.thumbPositionPercentage=Nt(()=>this.valuePercentage()),this.syncModelToInputEffect=Ga(()=>{let e=this.value();if(this.#e){let n=parseFloat(this.#e.value);(isNaN(n)||String(n)!==String(e))&&(this.#e.value=String(e));}});}#n;#i;#e;#t;ngAfterViewInit(){this.#e=this.#n.nativeElement.querySelector('input[type="range"]'),this.#e?(this.hasInput.set(true),this.#a(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value);},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value);}),queueMicrotask(()=>this.#o(true)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.');}setNewInputValue(e){let n=parseFloat(e??"0");if(!isNaN(n)){let{min:s,max:l}=this.inputState();this.value.set(Math.max(s,Math.min(l,n)));}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let s=e.currentTarget.getBoundingClientRect(),l=e.clientX-s.left,E=s.width,{min:S,max:m,step:f}=this.inputState(),W=m-S;if(E>0&&W!==0&&f>0){let J=(l/E*W+S-S)/f,z=S+Math.round(J)*f,Q=this.#s(f);z=parseFloat(z.toFixed(Q));let Y=Math.max(S,Math.min(m,z));this.value.set(Y);}}#o(e=false){if(!this.#e)return;let n=parseFloat(this.#e.min??"0")??0,s=parseFloat(this.#e.max??"100")??100,l=this.#e.step,E=1;if(l&&l.toLowerCase()!=="any"){let m=parseFloat(l);!isNaN(m)&&m>0&&(E=m);}this.inputState.set({min:n,max:s,step:E});let S=parseFloat(this.#e.value??String(n))??n;if(e&&this.value()!==this.#t){let m=this.value(),f=Math.max(n,Math.min(s,m));S!==f&&(this.#e.value=String(f)),m!==f&&this.value.set(f);}else {let m=Math.max(n,Math.min(s,S));this.value()!==m&&this.value.set(m);}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(n=>{let s=false;for(let l of n)if(l.type==="attributes"&&e.includes(l.attributeName??"")){s=true;break}s&&this.#o(false);}),this.#i.observe(this.#e,{attributes:true,attributeFilter:e});}#s(e){if(isNaN(e)||Math.floor(e)===e)return 0;let s=e.toString().split(".")[1];return s?s.length:0}#a(e){Object.defineProperty(e,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(n){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,n);let l=new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:n}});return this.dispatchEvent(l),n}});}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#e&&(this.#e.oninput=null);}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=dw({type:i,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(n,s){n&2&&(bC(s.hostClasses()),Qg("sh-range-slider",true)("has-input",s.hasInput()));},inputs:{unit:[1,"unit"],value:[1,"value"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],alwaysShow:[1,"alwaysShow"]},outputs:{value:"valueChange"},ngContentSelectors:an,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(n,s){n&1&&(oC(sn),Bl(0,"div",0),iC(1),$l(),Bl(2,"div",1)(3,"div",2),PC(4),$l(),Bl(5,"div",3),jg("click",function(E){return s.trackEvent(E)}),iC(6,1),Bl(7,"div",4),yg(8,"div",5),$l(),Bl(9,"div",6)(10,"div",7)(11,"div",8),PC(12),$l()()()(),Bl(13,"div",9),PC(14),$l()()),n&2&&(DE(4),rm("",s.inputState().min,"",s.unit()),DE(4),zg("width",s.trackFilledPercentage(),"%"),DE(),zg("left",s.thumbPositionPercentage(),"%"),DE(3),rm("",s.value(),"",s.unit()),DE(2),rm("",s.inputState().max,"",s.unit()));},styles:[`sh-range-slider{--rs-h: 2.5rem;--rs-f: var(--paragraph-30);--rs-unit-g: .75rem;--rs-unit-c: var(--base-8);--rst: var(--base-3);--rst-bc: var(--base-1);--rst-bg: var(--base-4);--rst-h: .5rem;--rst-s: calc(var(--shape-2) / 2);--rs-thumb-c: var(--base-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--base-4);--rs-thumb-arrow: var(--rs-thumb-value-bg);--rs-thumb-value-c: var(--base-8);--rs-thumb-si: 1rem;--rs-thumb-w: var(--rs-thumb-si);--rs-thumb-s: calc(var(--rs-thumb-w) / 2);display:flex;flex-direction:column;width:100%;font:var(--rs-f)}sh-range-slider.sharp{--rst-s: .125rem;--rs-thumb-s: .125rem;--rs-thumb-bc: transparent !important}sh-range-slider .label{display:flex;align-items:center;gap:.5rem;padding-bottom:.25rem}sh-range-slider .label>label{display:flex;align-items:center;gap:.25rem}sh-range-slider .label sh-icon{color:var(--grey-500);font-size:1rem}sh-range-slider .label:empty{display:none}sh-range-slider[readonly]:not([readonly=false]),sh-range-slider:has(input[type=range][readonly]:not([readonly=false])),sh-range-slider[disabled]:not([disabled=false]),sh-range-slider:has(input[type=range][disabled]:not([disabled=false])){opacity:.4;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}sh-range-slider:has(input[type=range][readonly]) .thumb .value-indicator,sh-range-slider.always-show .thumb .value-indicator{opacity:1}sh-range-slider input[type=range]{appearance:none;width:100%;height:100%;position:absolute;inset:0;opacity:0;margin:0;z-index:1000}sh-range-slider .input-wrap{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--rs-h);position:relative;gap:var(--rs-unit-g)}sh-range-slider .thumb-wrap{position:absolute;top:0}sh-range-slider .thumb{position:relative;margin-top:calc(-1 * var(--rs-thumb-si) / 4);width:var(--rs-thumb-w);height:var(--rs-thumb-si);border-radius:var(--rs-thumb-s);background-color:var(--rs-thumb-c);border:1px solid var(--rs-thumb-bc);box-shadow:var(--box-shadow-20);transform:translate(-50%)}sh-range-slider .track-wrap{position:relative;width:100%;height:var(--rst-h)}sh-range-slider .track{position:relative;width:100%;height:var(--rst-h);border-radius:var(--rst-s);background-color:var(--rst);border:1px solid var(--rst-bc);overflow:hidden}sh-range-slider .track-filled{position:absolute;top:0;left:0;bottom:0;background:var(--rst-bg);width:0}sh-range-slider .min-indicator,sh-range-slider .max-indicator{white-space:nowrap;color:var(--rs-unit-c)}sh-range-slider input[type=range]:hover~.thumb-wrap .value-indicator,sh-range-slider input[type=range]:focus~.thumb-wrap .value-indicator{opacity:1}sh-range-slider .value-indicator{position:absolute;top:-1.875rem;height:1.5rem;min-width:1.5rem;border-radius:var(--shape-2);left:50%;margin:auto;transform:translate(-50%);padding:.25rem .5rem;background:var(--rs-thumb-value-bg);color:var(--rs-thumb-value-c);white-space:nowrap;opacity:0;transition:opacity 125ms linear;-webkit-user-select:none;user-select:none;pointer-events:none}sh-range-slider .value-indicator:after{content:"";border-top:.3125rem solid var(--rs-thumb-arrow);border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;position:absolute;top:calc(100% - 1px);left:50%;margin-left:-.3125rem}sh-range-slider.primary{--rst-bg: var(--primary-8);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: #fff}sh-range-slider.accent{--rst-bg: var(--accent-8);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: #fff}sh-range-slider.warn{--rst-bg: var(--warn-8);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: #fff}sh-range-slider.error{--rst-bg: var(--error-8);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: #fff}sh-range-slider.success{--rst-bg: var(--success-8);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: #fff}sh-range-slider.simple{--rst-h: 1rem;--rst-s: var(--shape-2)}sh-range-slider.simple .thumb{width:1px;height:var(--rst-h);margin-top:0;border-radius:0;border:none;box-shadow:none}sh-range-slider.simple.primary{--rst-bg: var(--primary-8);--rst: var(--primary-2);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: var(--primary-2)}sh-range-slider.simple.accent{--rst-bg: var(--accent-8);--rst: var(--accent-2);--rs-thumb-c: var(--accent-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: var(--accent-2)}sh-range-slider.simple.warn{--rst-bg: var(--warn-8);--rst: var(--warn-2);--rs-thumb-c: var(--warn-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: var(--warn-2)}sh-range-slider.simple.error{--rst-bg: var(--error-8);--rst: var(--error-2);--rs-thumb-c: var(--error-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: var(--error-2)}sh-range-slider.simple.success{--rst-bg: var(--success-8);--rst: var(--success-2);--rs-thumb-c: var(--success-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: var(--success-2)}sh-range-slider.outlined{--rst: var(--base-1);--rst-bc: var(--base-4);--rs-thumb-c: var(--base-6);--rs-thumb-bc: var(--base-1);--rs-thumb-arrow: var(--base-4)}sh-range-slider.outlined.primary,sh-range-slider.outlined.accent,sh-range-slider.outlined.warn,sh-range-slider.outlined.error,sh-range-slider.outlined.success{--rst: var(--base-2)}sh-range-slider.outlined.primary{--rst-bg: var(--primary-4);--rst-bc: var(--primary-8);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-4);--rs-thumb-value-c: var(--primary-8);--rs-thumb-arrow: var(--primary-4)}sh-range-slider.outlined.accent{--rs-thumb-c: var(--accent-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-4);--rs-thumb-value-c: var(--accent-8);--rs-thumb-arrow: var(--accent-4)}sh-range-slider.outlined.warn{--rs-thumb-c: var(--warn-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-4);--rs-thumb-value-c: var(--warn-8);--rs-thumb-arrow: var(--warn-4)}sh-range-slider.outlined.error{--rs-thumb-c: var(--error-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-4);--rs-thumb-value-c: var(--error-8);--rs-thumb-arrow: var(--error-4)}sh-range-slider.outlined.success{--rs-thumb-c: var(--success-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-4);--rs-thumb-value-c: var(--success-8);--rs-thumb-arrow: var(--success-4)}sh-range-slider.flat{--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.flat.primary,sh-range-slider.flat.accent,sh-range-slider.flat.warn,sh-range-slider.flat.error,sh-range-slider.flat.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-8);--rs-thumb-value-c: #fff}sh-range-slider.flat.primary{--rst-bg: var(--primary-8);--rs-thumb-value-bg: var(--primary-8)}sh-range-slider.flat.accent{--rst-bg: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.flat.warn{--rst-bg: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.flat.error{--rst-bg: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.flat.success{--rst-bg: var(--success-8);--rs-thumb-value-bg: var(--success-8)}sh-range-slider.raised{--rst-bg: var(--base-g2);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.raised.primary,sh-range-slider.raised.accent,sh-range-slider.raised.warn,sh-range-slider.raised.error,sh-range-slider.raised.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-g6);--rs-thumb-value-c: #fff}sh-range-slider.raised.primary{--rst-bg: var(--primary-g2);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-g3)}sh-range-slider.raised.accent{--rst-bg: var(--accent-g2);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.raised.warn{--rst-bg: var(--warn-g2);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.raised.error{--rst-bg: var(--error-g2);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.raised.success{--rst-bg: var(--success-g2);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8)}
|
|
2
|
-
`],encapsulation:2});}}return i})();var rn=["formRef"],ln=()=>[import('./chunk-Dgns65Zu.js').then(i=>i.OptionsListComponent)];function _n(i,t){i&1&&(Qi(0,"sh-alert",3),XT(1,1),Hl());}function cn(i,t){if(i&1){let e=gT();Qi(0,"app-options-list",5),sm("optionsChange",function(s){Sd(e);let l=nC();return HC(l.settings,s)||(l.settings=s),xd(s)}),Hl();}if(i&2){let e=nC();im("options",e.settings),gg("hasFreeTextSettings",true);}}var K=class i{#n=T(O);#i=T(C$1);formRef=y1.required("formRef");settings=Ue([]);isSubmitting=Ue(false);isLoadingOptions=Ue(true);saved=Ue(false);lastRecievedServerSettings=Ue({});serverSettingsEffect=Ga(()=>{let t=this.#n.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(true);let e=Object.entries(t);e.forEach(([n,s],l)=>{if(n.startsWith("--")){let E=n.substring(2);this.settings.update(S=>(S.some(m=>m.Name===E||m.Name===n)||S.push({Name:n,Value:s}),S));}l===e.length-1&&this.isLoadingOptions.set(false);});});submit(){this.isSubmitting.set(true);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(S=>S.Name?.startsWith("--")?S.Name:`--${S.Name}`),l=Object.keys(e).filter(S=>S.startsWith("--")).filter(S=>!n.includes(S)),E=t.reduce((S,m)=>{let f=m.Name?.startsWith("--")?m.Name:`--${m.Name}`;return S[f]=m.Value,S},{});l.forEach(S=>{E[S]=null;}),this.#i.patchApiV1Serversettings({requestBody:E}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.#n.refreshServerSettings(),this.saved.set(true),setTimeout(()=>{this.saved.set(false);},3e3);}});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&$g(n.formRef,rn,5),e&2&&lC();},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,n){e&1&&(Qi(0,"div",2),oT(1,_n,2,0,"sh-alert",3),Qi(2,"button",4),Fg("click",function(){return n.submit()}),Og(3,0),mg(4,"sh-icon"),Pg(),Hl()(),sg(5,cn,1,2),tT(6,5,ln)),e&2&&(DE(),iT(n.saved()?1:-1),DE(),Qg("loading",n.isSubmitting()),DE(4),nT(!n.isLoadingOptions()));},dependencies:[Gn$1,v,N,ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"]})};function Tn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field",12)(1,"input",13),sm("ngModelChange",function(s){Sd(e);let l=nC(2);return HC(l.registerUrl,s)||(l.registerUrl=s),xd(s)}),Hl(),DD(),Hl(),Qi(2,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.register())}),XT(3,0),Hl();}if(i&2){let e=nC(2);DE(),im("ngModel",e.registerUrl),TD();}}function Sn(i,t){if(i&1&&(Qi(0,"div",9)(1,"label"),XT(2,1),Hl(),Qi(3,"a",15),PC(4),Hl()()),i&2){let e=nC(2);DE(3),gg("href",UC(e.claimUrl()),Wp),DE(),nm(e.claimUrl());}}function un(i,t){i&1&&(Qi(0,"div",9)(1,"label"),XT(2,2),Hl()());}function gn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.cancel())}),XT(1,3),Hl();}}function pn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.disable())}),XT(1,4),Hl();}}function Cn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.enable())}),XT(1,5),Hl(),Qi(2,"button",16),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.delete())}),XT(3,6),Hl();}}function mn(i,t){i&1&&(Og(0,7,1),mg(1,"sh-icon"),Pg());}function En(i,t){i&1&&(Og(0,7,2),mg(1,"sh-icon"),Pg());}function Nn(i,t){if(i&1){let e=gT();Qi(0,"sh-chip",17),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.copyReportingUrl())}),Og(1,7),oT(2,mn,2,0,"sh-icon")(3,En,2,0,"sh-icon"),Pg(),Hl();}if(i&2){let e=nC(2);DE(2),iT(e.copiedReportingUrl()===true?2:3);}}function hn(i,t){if(i&1&&(Qi(0,"div",8),oT(1,Tn,4,1),oT(2,Sn,5,3,"div",9),oT(3,un,3,0,"div",9),oT(4,gn,2,0,"button",10),oT(5,pn,2,0,"button",10),oT(6,Cn,4,0),oT(7,Nn,4,1,"sh-chip",11),Hl()),i&2){let e=nC();DE(),iT(e.state()==="inactive"?1:-1),DE(),iT(e.state()==="registered"?2:-1),DE(),iT(e.state()==="registering"?3:-1),DE(),iT(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),DE(),iT(e.state()==="connected"||e.state()==="connecting"?5:-1),DE(),iT(e.state()==="disabled"?6:-1),DE(),iT(e.additionalReportingUrl()!==""&&e.state()!=="registered"?7:-1);}}var Te=class i{#n=T(C);#i=T(O);state=this.#n.state;claimUrl=this.#n.claimUrl;registerUrl=this.#n.registerUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return t&&t["additional-report-url"]||""});copiedReportingUrl=Ue(false);ngOnInit(){this.#n.refreshRemoteControlStatus();}cancel(){this.#n.cancelRemoteRegistration();}register(){this.#n.beginRemoteRegistration();}disable(){this.#n.disableRemoteControl();}enable(){this.#n.enableRemoteControl();}delete(){this.#n.deleteRemoteControl();}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(true),setTimeout(()=>this.copiedReportingUrl.set(false),2e3),navigator.clipboard.writeText(t));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let s;s=$localize`Cancel registration`;let l;l=$localize`Disable console connection`;let E;E=$localize`Enable console connection`;let S;S=$localize` Delete console connection setup `;let m;return m=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,m=tC(m),[t,e,n,s,l,E,S,m,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,n){e&1&&oT(0,hn,8,7,"div",8),e&2&&iT(n.state()!=="unknown"?0:-1);},dependencies:[Bn$1,Ze,Rn$1,Jt,Fe,v,D,N],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"]})};var Se=()=>({standalone:true});function fn(i,t){i&1&&(Qi(0,"sh-chip",90),XT(1,33),Hl());}function In(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,32),Hl(),Qi(4,"p"),PC(5),Hl()(),Qi(6,"div",68),oT(7,fn,2,0,"sh-chip",90),Hl()()),i&2){let e=nC();DE(5),nm(e.remoteControlStatus()),DE(2),iT(e.additionalReportingUrl()!==""&&e.remoteControlState()!=="registered"?7:-1);}}function Mn(i,t){if(i&1&&(Qi(0,"label"),Og(1,37),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.remoteControlTooltip());}}function Pn(i,t){if(i&1&&(Qi(0,"label"),Og(1,38),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.remoteControlTooltip());}}function On(i,t){if(i&1&&(Qi(0,"label"),Og(1,39),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.connectionStatusIndicatorTooltip());}}function bn(i,t){if(i&1&&(Qi(0,"label"),Og(1,40),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.connectionStatusIndicatorTooltip());}}function vn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,35),Hl(),Qi(4,"p"),XT(5,36),Hl()(),Qi(6,"div",91)(7,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.toggleConsoleControl(s))}),oT(8,Mn,3,1,"label")(9,Pn,3,1,"label"),Hl(),Qi(10,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.saveHideConsoleConnectionStatus(s))}),oT(11,On,3,1,"label")(12,bn,3,1,"label"),Hl()()();}if(i&2){let e=nC(2);DE(7),gg("checked",!e.consoleControlDisabled()),DE(),iT(e.consoleControlDisabled()?8:9),DE(2),gg("checked",!e.hideConsoleConnectionStatus()),DE(),iT(e.hideConsoleConnectionStatus()?11:12);}}function Rn(i,t){i&1&&(Qi(0,"label"),XT(1,43),Hl());}function Gn(i,t){i&1&&(Qi(0,"label"),XT(1,44),Hl());}function yn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,41),Hl(),Qi(4,"p"),XT(5,42),Hl()(),Qi(6,"div",68)(7,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.saveHideConsoleConnectionStatus(s))}),oT(8,Rn,2,0,"label")(9,Gn,2,0,"label"),Hl()()();}if(i&2){let e=nC(2);DE(7),gg("checked",!e.hideConsoleConnectionStatus()),DE(),iT(e.hideConsoleConnectionStatus()?8:9);}}function Fn(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,34),Hl(),Qi(4,"p"),PC(5),Hl()(),Qi(6,"div",68),mg(7,"app-remote-control"),Hl()(),oT(8,vn,13,4,"section")(9,yn,10,2,"section")),i&2){let e=nC();DE(5),nm(e.remoteControlStatus()),DE(3),iT(e.remoteControlState()!="inactive"?8:9);}}function $n(i,t){i&1&&(Qi(0,"sh-icon",97),PC(1,"check"),Hl());}function An(i,t){i&1&&(Qi(0,"sh-icon",98),PC(1,"prohibit"),Hl());}function Ln(i,t){if(i&1){let e=gT();Qi(0,"button",102),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.updatePassphrase())}),XT(1,48),Hl();}if(i&2){let e=nC(2);Qg("loading",e.isUpdating());}}function wn(i,t){if(i&1){let e=gT();Qi(0,"button",103),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.updatePassphrase())}),XT(1,49),Hl();}if(i&2){let e=nC(2);Qg("loading",e.isUpdating()),gg("disabled",true);}}function Dn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field")(1,"label",93),XT(2,45),Hl(),Qi(3,"input",94),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.passphrase,s)||(l.passphrase=s),xd(s)}),Hl(),DD(),Hl(),Qi(4,"sh-form-field")(5,"label",95),XT(6,46),Hl(),Qi(7,"input",96),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.repeatPassphrase,s)||(l.repeatPassphrase=s),xd(s)}),Hl(),DD(),oT(8,$n,2,0,"sh-icon",97)(9,An,2,0,"sh-icon",98),Hl(),Qi(10,"div",73)(11,"button",99),Fg("click",function(){Sd(e);let s=nC();return xd(s.cancelPasswordChange())}),XT(12,47),Hl(),oT(13,Ln,2,2,"button",100)(14,wn,2,3,"button",101),Hl();}if(i&2){let e=nC();DE(3),im("ngModel",e.passphrase),TD(),DE(4),gg("disabled",e.passphrase().length===0),im("ngModel",e.repeatPassphrase),TD(),DE(),iT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),DE(3),Qg("loading",e.isUpdating()),DE(2),iT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14);}}function xn(i,t){i&1&&(Qi(0,"sh-icon",104),PC(1,"check"),Hl());}function kn(i,t){if(i&1){let e=gT();Qi(0,"div",73)(1,"button",99),Fg("click",function(){Sd(e);let s=nC();return xd(s.openPassphraseForm())}),XT(2,50),Hl(),oT(3,xn,2,0,"sh-icon",104),Hl();}if(i&2){let e=nC();DE(3),iT(e.passwordUpdated()?3:-1);}}function Xn(i,t){i&1&&(Og(0,11,1),mg(1,"span"),Pg());}function Jn(i,t){i&1&&(Og(0,11,2),mg(1,"span"),Pg());}function zn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field")(1,"label",105),XT(2,51),Hl(),Qi(3,"textarea",106),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.allowedHostnames,s)||(l.allowedHostnames=s),xd(s)}),Hl(),DD(),Hl(),Qi(4,"sh-alert",107),XT(5,52),Hl(),Qi(6,"button",102),Fg("click",function(){Sd(e);let s=nC();return xd(s.updateAllowedHostnames())}),XT(7,53),Hl();}if(i&2){let e=nC();DE(3),im("ngModel",e.allowedHostnames),TD(),DE(3),Qg("loading",e.updatingAllowedHosts());}}function Vn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,54),Hl(),Qi(4,"p"),XT(5,55),Hl()(),Qi(6,"div",68)(7,"sh-select",108)(8,"input",75),Fg("ngModelChange",function(s){Sd(e);let l=nC();return xd(l.updatePowerMode(s))}),Hl(),DD(),Hl()()();}if(i&2){let e=nC();DE(7),gg("options",e.powerModeOptions())("isClearable",false),DE(),gg("ngModel",e.powerModeCtrl())("ngModelOptions",QC(4,Se)),TD();}}function Un(i,t){if(i&1&&(Qi(0,"p"),XT(1,56),Hl()),i&2){let e=nC();DE(),Lg(e.sysinfo()?.ServerVersionName),eC(1);}}function Bn(i,t){i&1&&mg(0,"sh-progress-bar",80);}function Hn(i,t){if(i&1&&PC(0),i&2){let e=t.$implicit;Gl(" ",e.label," ");}}function Wn(i,t){if(i&1&&PC(0),i&2){let e=t.$implicit;Gl(" ",e.label," ");}}function jn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,57),Hl(),Qi(4,"p")(5,"span"),XT(6,58),Hl(),Qi(7,"a",109),XT(8,59),Hl(),mg(9,"br")(10,"br"),Qi(11,"span"),XT(12,60),Hl()()(),Qi(13,"div",68)(14,"sh-select",110)(15,"input",75),Fg("ngModelChange",function(s){Sd(e);let l=nC();return xd(l.updateUsageStatistics(s))}),Hl(),DD(),ig(16,Wn,1,1,"ng-template"),Hl()()();}if(i&2){let e=nC();DE(14),gg("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),DE(),gg("ngModel",e.usageStatistics())("ngModelOptions",QC(4,Se)),TD();}}function qn(i,t){i&1&&(Qi(0,"label"),XT(1,63),Hl());}function Kn(i,t){i&1&&(Qi(0,"label"),XT(1,64),Hl());}function Qn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,61),Hl(),Qi(4,"p"),XT(5,62),Hl()(),Qi(6,"div",91)(7,"p"),PC(8,"Backup process isolation"),Hl(),Qi(9,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC();return xd(l.saveControllerIpcState(s))}),oT(10,qn,2,0,"label")(11,Kn,2,0,"label"),Hl()()();}if(i&2){let e=nC();DE(9),gg("checked",e.isControllerIpcEnabled()),DE(),iT(e.isControllerIpcEnabled()?10:11);}}function Yn(i,t,e){let[n]=bs(i,e?.equal),s=n,l=n[H],E;return s.set=S=>{clearTimeout(E),E=setTimeout(()=>{ft(l,S);},t);},s.update=S=>{clearTimeout(E),E=setTimeout(()=>{po(l,S);},t);},s}var Zn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],on=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],fe=class i{#n=T(be);#i=T(m);#e=T(m$1);#t=T(O);#o=T(C);#r=T(g);#s=T(h);#a=this.#s.getItem("locale")??"en-US";sysinfo=this.#e.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=Ue("list");previousLang=this.#a;langCtrl=Ue(this.#a);powerModeCtrl=Ue("");usageStatistics=Ue("");updatingUsageStatistics=Ue(false);remoteControlStatus=this.#o.statusMessage;remoteControlState=this.#o.state;updatingChannel=Ue(false);updateChannel=Ue("");isUsingRelay=this.#r.relayIsEnabled;defaultClient=Ue(this.#d());hasIpcController=this.#e.hasIpcController;usageStatisticsDisabled=Nt(()=>(this.#e.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");additionalReportingUrl=Nt(()=>{let t=this.#t.serverSettings();return t&&t["additional-report-url"]||""});#T=Ga(()=>{let t=this.#e.systemInfo()?.DefaultUsageReportLevel??"",e=on;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e);});remoteControlTooltip=Ue($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
|
|
3
|
-
registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=Ue($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(Bu(()=>this.updatingChannel.set(false))).subscribe();}allowRemoteAccess=Ue(false);allowedHostnames=Ue("");loadedAllowedHostnames=Ue("");updatingRemoteAccess=Ue(false);updatingAllowedHosts=Ue(false);updatingConsoleControl=Ue(false);consoleControlDisabled=Ue(false);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;isControllerIpcEnabled=this.#t.isControllerIpcEnabled;updateRemoteAccess(t){this.allowRemoteAccess.set(t),this.#t.setRemoteAccessInterface(t?"any":"loopback").pipe(Bu(()=>this.updatingRemoteAccess.set(false))).subscribe();}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(true),this.#t.setRemoteAccessAllowedHostnames(t).pipe(Bu(()=>this.updatingAllowedHosts.set(false))).subscribe();}toggleConsoleControl(t){this.consoleControlDisabled.set(!t),this.#t.setDisableConsoleControl(!t).pipe(Bu(()=>this.updatingConsoleControl.set(false))).subscribe();}updatingDisableTrayIconLogin=Ue(false);disableTrayIconLogin=Ue(false);saveDisableTrayIconLogin(t){let e=t;this.updatingDisableTrayIconLogin.set(true),this.#t.setDisableTrayIconLogin(e).pipe(Bu(()=>this.updatingDisableTrayIconLogin.set(false))).subscribe();}updatingHideConsoleConnectionStatus=Ue(false);saveHideConsoleConnectionStatus(t){this.updatingHideConsoleConnectionStatus.set(true),this.#t.setHideConsoleConnectionStatus(!t).pipe(Bu(()=>this.updatingHideConsoleConnectionStatus.set(false))).subscribe();}updatingControllerIpcState=Ue(false);saveControllerIpcState(t){this.updatingControllerIpcState.set(true),this.#t.setControllerIpcState(!!t).pipe(Bu(()=>this.updatingControllerIpcState.set(false))).subscribe();}showPassphraseForm=Ue(false);isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");passwordUpdated=Ue(false);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>{this.showPassphraseForm.set(false),this.passwordUpdated.set(true),setTimeout(()=>{this.passwordUpdated.set(false);},3e3);}}));}openPassphraseForm(){this.showPassphraseForm.set(true);}cancelPasswordChange(){this.showPassphraseForm.set(false);}languageOptions=Ue([...xt].sort((t,e)=>t.label.localeCompare(e.label)));powerModeOptions=Nt(()=>{let t=this.#e.systemInfo();return !t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=Ue(on);timeTypeOptions=Ue(Zn);timeType=Ue("none");timeValue=Yn(0,300);timeRange=Nt(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#s.setItem("locale",t),window.location.reload());}updateTimeValue(t){this.timeValue.set(t),this.#_();}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_();}#l;#_(){this.#l&&clearTimeout(this.#l),this.#l=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),n=e==="none"||t===0?"":`${t}${e}`;n!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(n).subscribe();},1e3);}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(true),this.#t.setUsageReporterLevel(t).subscribe());}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe());}serverSettingsEffect=Ga(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),s=e.slice(0,-1),l=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":l.includes(n)?n:"none"),this.timeValue.set(e==""?0:parseInt(s));let E=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(E);});setDarkMode(){this.#i.setDarkMode();}setLightMode(){this.#i.setLightMode();}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#n.open(h$1,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#c(t));}}):this.#c(t));}openLegacyUI(){this.#n.open(h$1,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank");}});}#c(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t);}#d(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let n=t[e].trim();if(n.startsWith("default-client="))return n.substring(15)}return "ngclient"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-settings"]],decls:130,vars:38,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Color theme`;let s;s=$localize`Customize your application theme`;let l;l=$localize`Passwords`;let E;E=$localize`Change server passphrase`;let S;S=$localize`Language`;let m;m=$localize`Select a language for the platform`;let f;f=$localize`Use legacy interface`;let W;W=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let ue;ue=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let J;J=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*51:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set current UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*52:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set legacy UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*52:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,J=tC(J);let z;z=$localize`Allow remote access (requires restart)`;let Q;Q=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Y;Y=$localize`Allow remote access`;let Ie;Ie=$localize`Prevent tray icon automatic log-in`;let Me;Me=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Pe;Pe=$localize`Prevent tray icon automatic log-in`;let Oe;Oe=$localize`Update channel`;let be;be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ve;ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Re;Re=$localize`Stable`;let Ge;Ge=$localize`Official stable release.`;let ye;ye=$localize`Beta`;let Fe;Fe=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let $e;$e=$localize`Experimental`;let Ae;Ae=$localize`Early previews of new features. Not for use with important data.`;let Le;Le=$localize`Canary`;let we;we=$localize`Builds for developers and testers only. Not for use with important data.`;let De;De=$localize`Pause after startup or hibernation`;let xe;xe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let ke;ke=$localize`Advanced options`;let Xe;Xe=$localize`Console connection status`;let Je;Je=$localize`Reporting configured by server`;let ze;ze=$localize`Connect to console`;let Ve;Ve=$localize`Configure console control`;let Ue;Ue=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let Be;Be=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let He;He=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let We;We=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let je;je=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let qe;qe=$localize`Toggle console connection status`;let Ke;Ke=$localize`Toggle the visibility of the console connection status indicator.`;let Qe;Qe=$localize`Console connection status is hidden`;let Ye;Ye=$localize`Console connection status is visible`;let Ze;Ze=$localize`Enter new password`;let et;et=$localize`Repeat password`;let ge;ge=$localize`Password have to be filled and have to match`;let tt;tt=$localize`Passphrase`;let nt;nt=$localize`Repeat passphrase`;let it;it=$localize`Cancel`;let ot;ot=$localize` Update passphrase `;let st;st=$localize` Update passphrase `;let at;at=$localize`Change password`;let rt;rt=$localize`Allowed hostnames`;let lt;lt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let _t;_t=$localize` Update allowed hostnames `;let ct;ct=$localize`Power mode provider`;let dt;dt=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let Tt;Tt=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let St;St=$localize`Usage statistics`;let ut;ut=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate `;let gt;gt=$localize`public usage statistics.`;let pt;pt=$localize` All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `;let Ct;Ct=$localize`Experimental options`;let mt;mt=$localize`Toggle experimental options.`;let Et;Et=$localize`Operations run in an isolated process`;let Nt;return Nt=$localize`Operations run inside the server process`,[t,e,n,s,l,E,S,m,f,W,ue,J,z,Q,Y,Ie,Me,Pe,Oe,be,ve,Re,Ge,ye,Fe,$e,Ae,Le,we,De,xe,ke,Xe,Je,ze,Ve,Ue,Be,He,We,je,qe,Ke,Qe,Ye,tt,nt,it,ot,st,at,rt,lt,_t,ct,dt,Tt,St,ut,gt,pt,Ct,mt,Et,Nt,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"checkedChange","checked"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised",3,"checked"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"reporting-url","primary","simple"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","new-password","placeholder",Ze,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","new-password","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",ge,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",ge,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","https://usage-reporter.duplicati.com/","target","_blank"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,n){e&1&&(mg(0,"app-status-bar"),Qi(1,"div",65)(2,"header")(3,"div",66)(4,"h2"),XT(5,0),Hl(),Qi(6,"p"),XT(7,1),Hl()()(),oT(8,In,8,2,"section")(9,Fn,10,2),Qi(10,"section")(11,"div",67)(12,"h3"),XT(13,2),Hl(),Qi(14,"p"),XT(15,3),Hl()(),Qi(16,"div",68)(17,"div",69)(18,"img",70),Fg("click",function(){return n.setLightMode()}),Hl(),Qi(19,"img",71),Fg("click",function(){return n.setDarkMode()}),Hl()()()(),Qi(20,"section")(21,"div",67)(22,"h3"),XT(23,4),Hl(),Qi(24,"p"),XT(25,5),Hl()(),Qi(26,"div",72),oT(27,Dn,15,7)(28,kn,4,1,"div",73),Hl()(),Qi(29,"section")(30,"div",67)(31,"h3"),XT(32,6),Hl(),Qi(33,"p"),XT(34,7),Hl()(),Qi(35,"div",68)(36,"sh-select",74)(37,"input",75),Fg("ngModelChange",function(l){return n.updateLocale(l)}),Hl(),DD(),Hl()()(),Qi(38,"section")(39,"div",67)(40,"h3"),XT(41,8),Hl(),Qi(42,"p"),XT(43,9),Hl()(),Qi(44,"div",76)(45,"button",77),Fg("click",function(){return n.openLegacyUI()}),Og(46,10),mg(47,"sh-icon"),Pg(),Hl(),Qi(48,"button",77),Fg("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),Og(49,11),mg(50,"sh-icon"),oT(51,Xn,2,0,"span")(52,Jn,2,0,"span"),Pg(),Hl()()(),Qi(53,"section")(54,"div",67)(55,"h3"),XT(56,12),Hl(),Qi(57,"p"),XT(58,13),Hl()(),Qi(59,"div",78)(60,"sh-toggle",79),Fg("checkedChange",function(l){return n.updateRemoteAccess(l)}),Qi(61,"label"),XT(62,14),Hl()(),oT(63,zn,8,3),Hl()(),Qi(64,"section")(65,"div",67)(66,"h3"),XT(67,15),Hl(),Qi(68,"p"),XT(69,16),Hl()(),Qi(70,"div",68)(71,"sh-toggle",79),Fg("checkedChange",function(l){return n.saveDisableTrayIconLogin(l)}),Qi(72,"label"),XT(73,17),Hl()()()(),oT(74,Vn,9,5,"section"),Qi(75,"section")(76,"div",67)(77,"h3"),XT(78,18),Hl(),oT(79,Un,2,1,"p"),oT(80,Bn,1,0,"sh-progress-bar",80),Hl(),Qi(81,"div",81)(82,"div",82),Fg("click",function(){return n.setNewChannel("")}),Qi(83,"sh-radio",83),XT(84,19),Hl(),Qi(85,"p"),XT(86,20),Hl()(),Qi(87,"div",82),Fg("click",function(){return n.setNewChannel("stable")}),Qi(88,"sh-radio",83),XT(89,21),Hl(),Qi(90,"p"),XT(91,22),Hl()(),Qi(92,"div",82),Fg("click",function(){return n.setNewChannel("beta")}),Qi(93,"sh-radio",83),XT(94,23),Hl(),Qi(95,"p"),XT(96,24),Hl()(),Qi(97,"div",82),Fg("click",function(){return n.setNewChannel("experimental")}),Qi(98,"sh-radio",83),XT(99,25),Hl(),Qi(100,"p"),XT(101,26),Hl()(),Qi(102,"div",82),Fg("click",function(){return n.setNewChannel("canary")}),Qi(103,"sh-radio",83),XT(104,27),Hl(),Qi(105,"p"),XT(106,28),Hl()()()(),Qi(107,"section")(108,"div",67)(109,"h3"),XT(110,29),Hl(),Qi(111,"p"),XT(112,30),Hl()(),Qi(113,"div",68)(114,"div",84)(115,"sh-range-slider",85)(116,"input",86),sm("ngModelChange",function(l){return HC(n.timeValue,l)||(n.timeValue=l),l}),Fg("ngModelChange",function(l){return n.updateTimeValue(l)}),Hl(),DD(),Hl(),Qi(117,"sh-select",87)(118,"input",88),Fg("ngModelChange",function(l){return n.updateTimeType(l)}),Hl(),DD(),ig(119,Hn,1,1,"ng-template"),Hl()()()(),oT(120,jn,17,5,"section"),oT(121,Qn,12,2,"section"),Hl(),mg(122,"sh-divider"),Qi(123,"div",65)(124,"section")(125,"div",89)(126,"h3"),XT(127,31),Hl(),mg(128,"app-advanced-options-settings"),Hl()()(),mg(129,"sh-divider")),e&2&&(DE(8),iT(n.isUsingRelay()?8:9),DE(10),Qg("active",!n.isDarkMode()),DE(),Qg("active",n.isDarkMode()),DE(8),iT(n.showPassphraseForm()?27:28),DE(9),gg("options",n.languageOptions())("isClearable",false)("inlineSearch",true),DE(),gg("ngModel",n.langCtrl())("ngModelOptions",QC(36,Se)),TD(),DE(14),iT(n.defaultClient()==="ngax"?51:52),DE(9),gg("checked",n.allowRemoteAccess()),DE(3),iT(n.allowRemoteAccess()?63:-1),DE(8),gg("checked",n.disableTrayIconLogin()),DE(3),iT(n.powerModeOptions().length>0?74:-1),DE(5),iT(n.sysinfo()?.ServerVersion?79:-1),DE(),iT(n.updatingChannel()?80:-1),DE(3),gg("checked",n.updateChannel()===""),DE(),Lg(n.sysinfo()?.DefaultUpdateChannel),eC(84),DE(2),Lg(n.sysinfo()?.ServerVersionType),eC(86),DE(2),gg("checked",n.updateChannel()==="stable"),DE(5),gg("checked",n.updateChannel()==="beta"),DE(5),gg("checked",n.updateChannel()==="experimental"),DE(5),gg("checked",n.updateChannel()==="canary"),DE(12),gg("unit",n.timeType()==="none"?"s":n.timeType()),DE(),gg("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),im("ngModel",n.timeValue),gg("ngModelOptions",QC(37,Se)),TD(),DE(),gg("options",n.timeTypeOptions())("isClearable",false),DE(),gg("ngModel",n.timeType()),TD(),DE(2),iT(n.usageStatisticsDisabled()?-1:120),DE(),iT(n.hasIpcController()?121:-1));},dependencies:[Bn$1,Ze,on$1,Rn$1,Jt,Gn$1,ee,Te,K,v,O$1,tn,d,J,at,Fe,N,c,ue,Nt$1,D],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{grid-template-columns:1fr}}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};
|
|
4
|
-
export{Yn as debounceSignal,fe as default};
|
package/chunk-Df7q8ewK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {ShipTable as ot}from'./chunk-DFEb6rgg.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,a6 as be,a5 as g,e as ee,b as g1,N as Nt,U as Ue,G as Ga,ai as m,aj as l,at as h,C as Bu,d as dw,v as v$1,_ as _t,aH as m$1,b1 as m$2,Q as Qi,X as XT,H as Hl,o as oT,F as Fg,s as sm,D as DE,au as Lg,av as eC,i as iT,z as gg,a3 as QC,I as Qg,w as im,t as tC,l as HC,j as mg,k as gT,S as Sd,n as nC,x as xd,a1 as cT,a2 as lT,q as PC,aM as tb,E as nm,aN as ob,aR as rb}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';import {$}from'./chunk-C7pjkqKB.js';import {U}from'./chunk-PVmXLw9b.js';var de=()=>["/"],Se=(l,n)=>n.Version;function ce(l,n){l&1&&(Qi(0,"div",11),mg(1,"sh-progress-bar",19),Qi(2,"p"),XT(3,4),Hl()());}function Ce(l,n){l&1&&(Qi(0,"div",12)(1,"p"),XT(2,5),Hl()());}function me(l,n){if(l&1){let e=gT();Qi(0,"tr",26),Fg("click",function(i){let r=Sd(e).$implicit,S=nC(2);return xd(S.toggleSelected(r.Version,i))}),Qi(1,"td")(2,"sh-checkbox",22),Fg("click",function(i){let r=Sd(e).$implicit,S=nC(2);return xd(S.toggleSelected(r.Version,i))}),Hl()(),Qi(3,"td"),PC(4),Hl(),Qi(5,"td"),PC(6),tb(7,"relativeTime"),Hl(),Qi(8,"td"),PC(9),tb(10,"relativeTime"),Hl(),Qi(11,"td"),PC(12),tb(13,"bytes"),Hl(),Qi(14,"td"),PC(15),Hl()();}if(l&2){let e=n.$implicit;DE(2),gg("checked",e.Selected),DE(2),nm(e.Version),DE(2),nm(ob(7,6,e.Time,true)),DE(3),nm(ob(10,9,e.Time,false)),DE(3),nm(rb(13,12,e.FileSizes)),DE(3),nm(e.FileCount);}}function pe(l,n){if(l&1){let e=gT();Qi(0,"sh-table",20),sm("sortByColumnChange",function(i){Sd(e);let r=nC();return HC(r.sortByColumn,i)||(r.sortByColumn=i),xd(i)}),Qi(1,"tr",21)(2,"th")(3,"sh-checkbox",22),Fg("click",function(){Sd(e);let i=nC();return xd(i.toggleSelect())}),Hl()(),Qi(4,"th",23),XT(5,6),Hl(),Qi(6,"th",23),XT(7,7),Hl(),Qi(8,"th",23),XT(9,8),Hl(),Qi(10,"th",24),XT(11,9),Hl(),Qi(12,"th",25),XT(13,10),Hl()(),cT(14,me,16,14,"tr",null,Se),Hl();}if(l&2){let e=nC();gg("data",e.versions())("loading",e.isLoading()),im("sortByColumn",e.sortByColumn),DE(3),Qg("indeterminate",e.indeterminate()),gg("checked",e.allSelected()),DE(11),lT(e.versions());}}var v=class l$1{#e=T(C);#n=T(be);#t=T(g);#i=T(ee);id=g1.required();backup=Nt(()=>{this.#t.backups();return this.#t.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:n})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:n.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isDeleting=Ue(false);performCompact=Ue(true);versions=Ue([]);constructor(){Ga(()=>{let n=this.versionsResource.value();if(n){let e=(n.Data??[]).slice().sort((t,i)=>t.Time<i.Time?1:t.Time>i.Time?-1:0);this.versions.set(e.map(t=>m(l({},t),{Selected:false})));}});}selectedItems=Nt(()=>this.versions().filter(n=>n.Selected));allSelected=Nt(()=>this.selectedItems().length===this.versions().length&&this.versions().length>0);noneSelected=Nt(()=>this.selectedItems().length===0);indeterminate=Nt(()=>this.selectedItems().length>0&&!this.allSelected());sortByColumn=Ue("version");toggleSelected(n,e){e?.stopPropagation(),this.versions.update(t=>t.map(i=>i.Version===n?m(l({},i),{Selected:!i.Selected}):i));}toggleSelect(){this.allSelected()?this.selectNone():this.selectAll();}selectAll(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:true})));}selectNone(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:false})));}deleteVersions(){let n=this.selectedItems();if(n.length===0)return;let e=n.length,t=n.map(i=>i.Version);this.#n.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete ${e} version(s)?`,confirmText:$localize`Delete versions`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.isDeleting.set(true),this.#e.postApiV2BackupDeleteVersions({requestBody:{BackupId:this.id(),Versions:t,SuppressCompact:!this.performCompact()}}).pipe(Bu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#i.navigate(["/"]);}}));}});}static \u0275fac=function(e){return new(e||l$1)};static \u0275cmp=dw({type:l$1,selectors:[["app-delete-versions"]],inputs:{id:[1,"id"]},decls:13,vars:11,consts:()=>{let n;n=$localize`Delete versions from ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let t;t=$localize`{VAR_PLURAL, plural, =1 {1 version} other {{INTERPOLATION} versions}}`,t=tC(t,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i=$localize` Delete ${t}:ICU@@85461926550041466: `;let r;r=$localize`Compact after deletion`;let S;S=$localize`Fetching versions from destination...`;let $;$=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let B;B=$localize`Timestamp`;let k;k=$localize`When`;let G;G=$localize`Size`;let x;return x=$localize`Files`,[n,e,i,r,S,$,b,B,k,G,x,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","error",3,"click","disabled"],[1,"sub-actions"],[1,"primary","raised",3,"checkedChange","checked"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],[1,"primary","raised",3,"click","checked"],["shSort","version"],["shSort","size"],["shSort","files"],[3,"click"]]},template:function(e,t){e&1&&(Qi(0,"h3"),XT(1,0),Hl(),oT(2,ce,4,0,"div",11)(3,Ce,3,0,"div",12)(4,pe,16,6,"sh-table",13),Qi(5,"div",14)(6,"button",15),XT(7,1),Hl(),Qi(8,"button",16),Fg("click",function(){return t.deleteVersions()}),XT(9,2),Hl()(),Qi(10,"div",17)(11,"sh-checkbox",18),sm("checkedChange",function(r){return HC(t.performCompact,r)||(t.performCompact=r),r}),XT(12,3),Hl()()),e&2&&(DE(),Lg(t.backup()?.Backup?.Name),eC(1),DE(),iT(t.isLoading()?2:t.versions().length===0?3:4),DE(4),gg("routerLink",QC(10,de))("disabled",t.isDeleting()),DE(2),Qg("loading",t.isDeleting()),gg("disabled",t.isDeleting()||t.selectedItems().length===0||t.isLoading()),DE(),Lg(t.selectedItems().length)(t.selectedItems().length),eC(9),DE(2),im("checked",t.performCompact));},dependencies:[v$1,U,d,ot,_t,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem;padding-bottom:2rem}"]})};export{v as default};
|