@duplicati/ngclient 0.0.234 → 0.0.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/sh.woff2 +0 -0
- package/chunk-0pQRcAhF.js +1 -0
- package/chunk-1DRz_1dv.js +1 -0
- package/chunk-2QKZNH3T.js +1 -0
- package/chunk-3iAIXnG6.js +14 -0
- package/chunk-5q0UK__c.js +3 -0
- package/chunk-644SEuYO.js +1 -0
- package/chunk-6oGy_iFC.js +1 -0
- package/{chunk-CTH9uShX.js → chunk-8A93BNds.js} +1 -1
- package/chunk-9Pc-waxi.js +1 -0
- package/{chunk-BFquKzMb.js → chunk-B20GDhu-.js} +1 -1
- package/{chunk-GKdOPH_4.js → chunk-B5S2d_Pm.js} +2 -2
- package/chunk-BFsdrFDX.js +1 -0
- package/chunk-BG8y51P2.js +2 -0
- package/chunk-BIZHZ66x.js +2 -0
- package/chunk-BM5sEnUl.js +1 -0
- package/chunk-BO1Nqy2x.js +1 -0
- package/chunk-BSB0qCYy.js +2 -0
- package/{chunk-xwdrpTfz.js → chunk-BSCOyYHH.js} +2 -2
- package/chunk-BWDCVcaP.js +1 -0
- package/{chunk-B0ETfgeR.js → chunk-BZPh4AYw.js} +11 -11
- package/chunk-Bc_wPl6H.js +1 -0
- package/chunk-Bdg6GNH8.js +3 -0
- package/{chunk-DqoYKCmi.js → chunk-Be4WXTyA.js} +3 -3
- package/{chunk-BDhLEYas.js → chunk-Bfg1Kjif.js} +1 -1
- package/{chunk-FZcbbWYC.js → chunk-BmOgPfpY.js} +1 -1
- package/chunk-BpG_gjhd.js +1 -0
- package/chunk-BszFCrvn.js +2 -0
- package/chunk-Bx7WLGmZ.js +2 -0
- package/{chunk-UUMQmD5I.js → chunk-BxBZMjtQ.js} +2 -2
- package/chunk-BxLcE6zQ.js +1 -0
- package/chunk-Bz49u_nH.js +2 -0
- package/chunk-BzRnxKOJ.js +1 -0
- package/{chunk-DP2sLJDC.js → chunk-C0w3mWOI.js} +1 -1
- package/chunk-C1PIQTOq.js +2 -0
- package/{chunk-BnFO-7ok.js → chunk-C8Zr0vl3.js} +1 -1
- package/chunk-C9fglVxt.js +1 -0
- package/chunk-CBaqwuDY.js +1 -0
- package/chunk-CC4z1keD.js +1 -0
- package/chunk-CH0tv6BB.js +1 -0
- package/chunk-CMLjueVV.js +1 -0
- package/chunk-CNwmuSlJ.js +1 -0
- package/chunk-COhlvPYj.js +1 -0
- package/{chunk-B-T54LAJ.js → chunk-CRhQXQUC.js} +1 -1
- package/chunk-CSPT2xlQ.js +1 -0
- package/chunk-CUlaXyK0.js +1 -0
- package/{chunk-BaknLOqq.js → chunk-CUo9Jt8-.js} +1 -1
- package/chunk-CWCU9i20.js +1 -0
- package/chunk-CYA8bL3v.js +2 -0
- package/{chunk-D5zSyubd.js → chunk-CZu3210D.js} +1 -1
- package/{chunk-KNmRQWOM.js → chunk-CaQaYVo7.js} +1 -1
- package/chunk-CgrVW_eL.js +1 -0
- package/{chunk-BaNH2nfC.js → chunk-Ci645E9t.js} +1 -1
- package/chunk-CpY-WOcD.js +2 -0
- package/chunk-CqNJ2t71.js +1 -0
- package/chunk-D0owcdvy.js +1 -0
- package/chunk-D39Om4Mk.js +1 -0
- package/chunk-D72BQ7G7.js +1 -0
- package/chunk-DCP61JTN.js +1 -0
- package/{chunk-Cv4o9u3S.js → chunk-DF2Ac802.js} +1 -1
- package/chunk-DLYD6dRM.js +1 -0
- package/{chunk-DCsYP4vf.js → chunk-DM-zhIVI.js} +1 -1
- package/{chunk-pxcB56N0.js → chunk-DOUmqK2E.js} +1 -1
- package/{chunk-5kQsbzck.js → chunk-DQ3vKQCE.js} +1 -1
- package/chunk-DR-utttZ.js +1 -0
- package/chunk-DWyjU7VC.js +1 -0
- package/chunk-DgUP0uNQ.js +1 -0
- package/chunk-Dgq3OqWW.js +2 -0
- package/chunk-Djpe9Lo0.js +1 -0
- package/chunk-DkT-0-DS.js +1 -0
- package/chunk-Dn7TWCfq.js +1 -0
- package/chunk-DxIS2uYj.js +2 -0
- package/chunk-DyDoCZiX.js +1 -0
- package/chunk-DzP0W6ua.js +1 -0
- package/chunk-Ied7KwvV.js +1 -0
- package/{chunk-Dyq6iPbF.js → chunk-Mj9aFt3b.js} +1 -1
- package/chunk-OEmUbdHQ.js +2 -0
- package/{chunk-0lYdrxte.js → chunk-OpdQrdKp.js} +1 -1
- package/chunk-VrjhL6gl.js +2 -0
- package/chunk-Z-8b6Hyr.js +1 -0
- package/chunk-bJwp1ogZ.js +4 -0
- package/chunk-hTxREuXu.js +1 -0
- package/chunk-mVyxhVwu.js +2 -0
- package/chunk-oBjabFaf.js +2 -0
- package/chunk-qUlwoHQn.js +2 -0
- package/{chunk-B-c3Zv6R.js → chunk-vtWJkNZ_.js} +1 -1
- package/chunk-zcgLq6FT.js +3 -0
- package/index.html +1 -1
- package/main-X6MUEPX4.js +21 -0
- package/package.json +1 -1
- package/assets/dest-icons/sia_logo_dark.92db63f5.svg +0 -6
- package/chunk-1-oPQ4n-.js +0 -1
- package/chunk-5EFCeqK3.js +0 -3
- package/chunk-AHhgJqe4.js +0 -2
- package/chunk-B1dNb-QT.js +0 -1
- package/chunk-B8PnvglY.js +0 -2
- package/chunk-BAmgFjXY.js +0 -1
- package/chunk-BFVhQEGw.js +0 -1
- package/chunk-BGcVKmjp.js +0 -1
- package/chunk-BHrABvoK.js +0 -1
- package/chunk-BNG7N21y.js +0 -1
- package/chunk-BQapkAzp.js +0 -1
- package/chunk-BRqx-u9-.js +0 -2
- package/chunk-BaR3Dslz.js +0 -1
- package/chunk-Bg98dUtr.js +0 -2
- package/chunk-BiSIt2zb.js +0 -2
- package/chunk-BkLND74M.js +0 -1
- package/chunk-BqbJuWHd.js +0 -3
- package/chunk-C4zj812G.js +0 -1
- package/chunk-C5G4RPpS.js +0 -1
- package/chunk-CA-0mTsq.js +0 -1
- package/chunk-CAEYxmzQ.js +0 -1
- package/chunk-CGnsbLNG.js +0 -1
- package/chunk-CPjYiawK.js +0 -1
- package/chunk-CQHKuUqk.js +0 -2
- package/chunk-CSYDDxaa.js +0 -2
- package/chunk-CUNe6D-d.js +0 -2
- package/chunk-CUaDFQyH.js +0 -1
- package/chunk-CnyuuWJ3.js +0 -1
- package/chunk-CsgB8OpN.js +0 -1
- package/chunk-CspKioFm.js +0 -4
- package/chunk-CxOam2tf.js +0 -1
- package/chunk-CxUx2RFx.js +0 -1
- package/chunk-D0qGkLVr.js +0 -1
- package/chunk-D4S_1RMU.js +0 -1
- package/chunk-D6WUhpxO.js +0 -14
- package/chunk-D7C8xyJI.js +0 -1
- package/chunk-D9dEfxn4.js +0 -1
- package/chunk-DB1KeglF.js +0 -1
- package/chunk-DGO0_pkA.js +0 -2
- package/chunk-DKOaWS_j.js +0 -2
- package/chunk-DXh9g32e.js +0 -1
- package/chunk-DYfv4gJW.js +0 -1
- package/chunk-DZMTCfoN.js +0 -1
- package/chunk-DcU0yXkQ.js +0 -1
- package/chunk-Dg-uYwbp.js +0 -2
- package/chunk-DmwtL4h3.js +0 -2
- package/chunk-DnTA-m4k.js +0 -2
- package/chunk-Du0Hd0t6.js +0 -1
- package/chunk-DzYR8wiz.js +0 -2
- package/chunk-OIDsf_Aq.js +0 -1
- package/chunk-S-sgDIKw.js +0 -1
- package/chunk-UCY_7-Of.js +0 -1
- package/chunk-X3dwwJIr.js +0 -2
- package/chunk-_J1lTnCH.js +0 -1
- package/chunk-i6kMmbhY.js +0 -1
- package/chunk-oobMnyEm.js +0 -3
- package/chunk-sgM_r5NM.js +0 -1
- package/chunk-umUQn7LQ.js +0 -1
- package/main-XKLDSNLY.js +0 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {OptionsListComponent as Oe}from'./chunk-BG8y51P2.js';import {K as Ke}from'./chunk-3iAIXnG6.js';import'./chunk-644SEuYO.js';import {Z}from'./chunk-hTxREuXu.js';import'./chunk-OpdQrdKp.js';import'./chunk-Bz49u_nH.js';import'./chunk-1DRz_1dv.js';import'./chunk-BmOgPfpY.js';import'./chunk-Mj9aFt3b.js';import'./chunk-5q0UK__c.js';import'./chunk-CaQaYVo7.js';import {N as Nt}from'./chunk-B5S2d_Pm.js';import'./chunk-CRhQXQUC.js';import'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,e as ee,ax as W,B as w1,G as Ge,g as gw,v,a as N,Z as Zi,o as oC,W as Wl,l as lT,n as lm,w as Hg,F as Fg,d as Ig,j as jg,b as bE,c as uT,y as cm,z as vg,a3 as XC,K as Kg,O as qg,R as hC,p as qC,i as ET,P as Pd,h as aC,L as Ld,t as bD,M as MD}from'./main-X6MUEPX4.js';import'./chunk-8A93BNds.js';import'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn,Z as Ze,e as en,R as Rn,J as Jt}from'./chunk-Bfg1Kjif.js';import'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import'./chunk-CUo9Jt8-.js';import'./chunk-DM-zhIVI.js';var oe=["formRef"],ae=()=>["--skip-files-larger-than","encryption-module","no-encryption","--no-encryption","--dbpath","keep-time","keep-versions","retention-policy"];function se(o,_){o&1&&(Zi(0,"p"),oC(1,4),Wl());}function _e(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,5),Wl(),Zi(2,"app-timespan",21),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionTime,n)||(a.optionsFields.backupRetentionTime=n),Ld(n)}),Zi(3,"label",22),oC(4,6),Wl()(),bD();}if(o&2){let e=aC(2);bE(2),vg("customId","backupRetentionTime"),cm("ngModel",e.optionsFields.backupRetentionTime),MD();}}function le(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,7),Wl(),Zi(2,"sh-form-field")(3,"label",23),oC(4,8),Wl(),Zi(5,"input",24),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionVersions,n)||(a.optionsFields.backupRetentionVersions=n),Ld(n)}),Wl(),bD(),Wl();}if(o&2){let e=aC(2);bE(5),cm("ngModel",e.optionsFields.backupRetentionVersions),MD();}}function re(o,_){o&1&&(Zi(0,"p"),oC(1,9),Wl());}function ce(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,10),Wl(),Zi(2,"sh-form-field")(3,"p"),oC(4,11),Wl(),Zi(5,"label",25),oC(6,12),Wl(),Zi(7,"input",26),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionCustom,n)||(a.optionsFields.backupRetentionCustom=n),Ld(n)}),Wl(),bD(),Wl();}if(o&2){let e=aC(2);bE(7),cm("ngModel",e.optionsFields.backupRetentionCustom),MD();}}function pe(o,_){if(o&1){let e=ET();Zi(0,"sh-select",18)(1,"label",19),oC(2,3),Wl(),Zi(3,"input",20),lm("ngModelChange",function(n){Pd(e);let a=aC();return qC(a.optionsFields.backupRetention,n)||(a.optionsFields.backupRetention=n),Ld(n)}),Wl(),bD(),Wl(),lT(4,se,2,0,"p")(5,_e,5,2)(6,le,6,1)(7,re,2,0,"p")(8,ce,8,1);}if(o&2){let e=aC();vg("options",e.retentionOptions())("inlineSearch",true)("isClearable",false),bE(3),cm("ngModel",e.optionsFields.backupRetention),MD(),bE(),uT(e.optionsFields.backupRetention()==="all"?4:e.optionsFields.backupRetention()==="time"?5:e.optionsFields.backupRetention()==="versions"?6:e.optionsFields.backupRetention()==="smart"?7:e.optionsFields.backupRetention()==="custom"?8:-1);}}var de=[{value:"all",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],y=class o{#e=T(Ke);#n=T(ee);#t=T(W);formRef=w1.required("formRef");isSubmitting=this.#e.isSubmitting;settings=this.#e.settings;optionsFields=this.#e.optionsFields;applicationOptions=this.#e.applicationOptions;isSyncMode=this.#e.isSyncMode;retentionOptions=Ge(de);goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#t.parent});}submit(){switch(this.#e.validateBeforeSubmit()){case "general":this.#n.navigate(["general"],{relativeTo:this.#t.parent});return;case "destination":this.#n.navigate(["destination"],{relativeTo:this.#t.parent});return;case "source":this.#n.navigate(["source-data"],{relativeTo:this.#t.parent});return}this.#e.submit();}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,s){e&1&&qg(s.formRef,oe,5),e&2&&hC();},decls:12,vars:8,consts:()=>{let _;_=$localize`Options`;let e;e=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let s;s=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let n;n=$localize`Backup retention`;let a;a=$localize`Nothing will be deleted. The backup size will grow with each change.`;let b;b=$localize`If at least one newer backup is found, all backups older than this date are deleted.`;let A;A=$localize`Time to keep versions`;let k;k=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let F;F=$localize`Number of versions`;let w;w=$localize` Over time backups will be deleted automatically. There will remain one backup for each of the last 7 days, each of the last 4 weeks, each of the last 12 months. There will always be at least one remaining backup. `;let $;$=$localize` Enter a retention strategy manually. Placeholders are D/W/Y for days/weeks/years and U for unlimited. The syntax is: 7D:1D,4W:1W,36M:1M. This example keeps one backup for each of the next 7 days, one for each of the next 4 weeks, and one for each of the next 36 months. This can also be written as 1W:1D,1M:1W,3Y:1M. `;let L;L=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let G;return G=$localize`Retention expression`,[_,e,s,n,a,b,A,k,F,w,$,L,G,[1,"title-30"],[3,"optionsChange","options","applicationOptions","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click"],["value","value","label","name",3,"options","inlineSearch","isClearable"],["for","size"],["type","text",3,"ngModelChange","ngModel"],[3,"ngModelChange","customId","ngModel"],["for","backupRetentionTime"],["for","backupRetentionVersions"],["type","number","id","backupRetentionVersions",3,"ngModelChange","ngModel"],["for","backupRetentionCustom"],["type","text","id","backupRetentionCustom",3,"ngModelChange","ngModel"]]},template:function(e,s){e&1&&(Zi(0,"section")(1,"h3",13),oC(2,0),Wl(),lT(3,pe,9,5),Zi(4,"app-options-list",14),lm("optionsChange",function(a){return qC(s.settings,a)||(s.settings=a),a}),Wl(),Zi(5,"div",15)(6,"button",16),Hg("click",function(){return s.goBack()}),Fg(7,1),Ig(8,"sh-icon"),jg(),Wl(),Zi(9,"button",17),Hg("click",function(){return s.submit()}),Fg(10,2),Ig(11,"sh-icon"),jg(),Wl()()()),e&2&&(bE(3),uT(s.isSyncMode()?-1:3),bE(),cm("options",s.settings),vg("applicationOptions",s.applicationOptions())("hasFreeTextSettings",true)("hiddenOptions",XC(7,ae)),bE(5),Kg("loading",s.isSubmitting()));},dependencies:[Bn,Ze,en,Rn,Jt,Oe,Z,v,N,Nt,Fe],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:37.5rem;padding:2.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.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}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}"]})};export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w}from'./chunk-CpY-WOcD.js';import {w as w$1}from'./chunk-vtWJkNZ_.js';import'./chunk-BG8y51P2.js';import {t as te}from'./chunk-Ied7KwvV.js';import'./chunk-CNwmuSlJ.js';import'./chunk-B20GDhu-.js';import'./chunk-2QKZNH3T.js';import {K as Ke}from'./chunk-3iAIXnG6.js';import'./chunk-644SEuYO.js';import'./chunk-hTxREuXu.js';import'./chunk-OpdQrdKp.js';import'./chunk-Bz49u_nH.js';import'./chunk-1DRz_1dv.js';import'./chunk-BmOgPfpY.js';import'./chunk-Mj9aFt3b.js';import'./chunk-5q0UK__c.js';import'./chunk-CaQaYVo7.js';import'./chunk-B5S2d_Pm.js';import'./chunk-CRhQXQUC.js';import'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,ax as W,e as ee,G as Ge,Q as Qa,bb as k$1,g as gw,$ as lr,_ as _t,a8 as To,d as Ig,l as lT,Z as Zi,W as Wl,b as bE,c as uT,aF as JC,K as Kg,h as aC,o as oC,z as vg,a3 as XC,b0 as eb}from'./main-X6MUEPX4.js';import'./chunk-8A93BNds.js';import'./chunk-C8Zr0vl3.js';import'./chunk-Be4WXTyA.js';import'./chunk-Bfg1Kjif.js';import'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import {L}from'./chunk-DM-zhIVI.js';import'./chunk-CUo9Jt8-.js';var b=()=>["/restore-from-files/destination"],x=()=>["/restore-from-files/encryption"],k=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],D=t=>["/restore",t,"options"];function z(t,i){t&1&&(Zi(0,"div",7),oC(1,0),Wl(),Zi(2,"div",7),oC(3,1),Wl(),Zi(4,"div",8),oC(5,2),Wl(),Zi(6,"div",8),oC(7,3),Wl()),t&2&&(vg("routerLink",XC(4,b)),bE(2),vg("routerLink",XC(5,x)),bE(2),vg("routerLink",XC(6,k)),bE(2),vg("routerLink",XC(7,J)));}function B(t,i){if(t&1&&(Zi(0,"div",7),oC(1,4),Wl(),Zi(2,"div",7),oC(3,5),Wl()),t&2){let e=aC(2);vg("routerLink",eb(2,X,e.backupId())),bE(2),vg("routerLink",eb(4,D,e.backupId()));}}function U(t,i){if(t&1&&(Zi(0,"sh-stepper",6),lT(1,z,8,8)(2,B,4,6),Wl()),t&2){let e=aC();bE(),uT(e.isFileRestore()?1:2);}}var P=class t{#e=T(W);#i=T(ee);#t=T(w);#n=L(this.#e.params);#o=L(this.#e.url);#s=L(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=Ge(false);isSelectFilesPage=Ge(false);paramsChanged=Qa(()=>{let i=this.#s(),e=this.#n()?.id,n=!!this.#o()?.find(r=>r.path==="restore-from-files"),c=!!i?.find(r=>r.path==="select-files"),R=!!i?.find(r=>r.path==="progress");this.isSelectFilesPage.set(c),this.isFullWidthPage.set(R||c),this.#t.init(e,n);});ngOnInit(){this.#i.events.subscribe(i=>{if(i instanceof k$1){let e=i.urlAfterRedirects;this.isSelectFilesPage.set(e.includes("select-files")),this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"));}});}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=gw({type:t,selectors:[["app-restore-flow"]],hostVars:4,hostBindings:function(e,n){e&2&&Kg("full-width",n.isFullWidthPage())("fill-height",n.isSelectFilesPage());},features:[JC([w,Ke])],decls:4,vars:1,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let n;n=$localize` Select files `;let c;c=$localize` Options `;let R;R=$localize` Select files `;let r;return r=$localize`Options`,[i,e,n,c,R,r,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,n){e&1&&(Ig(0,"app-status-bar"),lT(1,U,3,1,"sh-stepper",6),Zi(2,"section"),Ig(3,"router-outlet"),Wl()),e&2&&(bE(),uT(n.isFullWidthPage()?-1:1));},dependencies:[w$1,te,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}.fill-height[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.fill-height[_nghost-%COMP%] section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 0;overflow:hidden;width:100%}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as at}from'./chunk-BxBZMjtQ.js';import {v}from'./chunk-qUlwoHQn.js';import {R}from'./chunk-Dn7TWCfq.js';import {T as T$1,e as ee,G as Ge,Q as Qa,g as gw,v as v$1,a0 as de,a as N,Z as Zi,w as Hg,o as oC,W as Wl,a1 as pT,n as lm,H as HC,d as Ig,b as bE,a2 as hT,y as cm,z as vg,K as Kg,a3 as XC,a4 as fT,p as qC,J as im}from'./main-X6MUEPX4.js';import {U}from'./chunk-CUo9Jt8-.js';import'./chunk-DM-zhIVI.js';var D=()=>({maxWidth:"520px",width:"100%"});function z(r,i){if(r&1&&(Zi(0,"div",11)(1,"sh-icon",26),HC(2,"check-circle"),Wl(),Zi(3,"span"),HC(4),Wl()()),r&2){let o=i.$implicit;bE(4),im(o);}}function J(r,i){if(r&1&&(Zi(0,"div",11)(1,"sh-icon",26),HC(2,"check-circle"),Wl(),Zi(3,"span"),HC(4),Wl()()),r&2){let o=i.$implicit;bE(4),im(o);}}var T=class r{#n=T$1(R);#e=T$1(ee);#t=T$1(v);hoveringConnect=Ge(false);skipDialogOpen=Ge(false);hasConnectionLink=Ge(false);primaryBenefits=[$localize`Zero-configuration cloud storage`,$localize`Centralized backup reporting and monitoring`,$localize`Remote management from the dashboard`,$localize`Notifications 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=Qa(()=>{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=gw({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&&(Zi(0,"section",7)(1,"div",8)(2,"div",9),Hg("click",function(){return n.openSkipDialog()}),oC(3,0),Wl(),Zi(4,"div",10),pT(5,z,5,1,"div",11,fT),Wl(),Zi(7,"button",12),Hg("mouseenter",function(){return n.hoveringConnect.set(true)})("mouseleave",function(){return n.hoveringConnect.set(false)})("click",function(){return n.connect()}),Zi(8,"div",13)(9,"h2"),oC(10,1),Wl(),Zi(11,"p"),oC(12,2),Wl()()(),Zi(13,"div",14)(14,"sh-checkbox",15),lm("checkedChange",function(c){return qC(n.hasConnectionLink,c)||(n.hasConnectionLink=c),c}),Wl(),Zi(15,"span"),oC(16,3),Wl(),Zi(17,"sh-icon",16),HC(18," information "),Wl()()()(),Zi(19,"section",17),Ig(20,"img",18),Wl(),Zi(21,"sh-dialog",19),lm("isOpenChange",function(c){return qC(n.skipDialogOpen,c)||(n.skipDialogOpen=c),c}),Zi(22,"header",20)(23,"h3"),oC(24,4),Wl()(),Zi(25,"div",21)(26,"h4",22),HC(27," You can use Duplicati without a Console connection, but connecting to the Console will expand the capabilities of Duplicati. "),Wl(),Zi(28,"div",23),pT(29,J,5,1,"div",11,fT),Wl()(),Zi(31,"footer",24)(32,"button",25),Hg("click",function(){return n.skipDialogOpen.set(false)}),oC(33,5),Wl(),Zi(34,"button",25),Hg("click",function(){return n.setWelcomeShown()}),oC(35,6),Wl()()()),o&2&&(bE(5),hT(n.primaryBenefits),bE(9),cm("checked",n.hasConnectionLink),bE(3),vg("shTooltip","Connection links are used for Enterprise and large-scale installations"),bE(2),Kg("hovering",n.hoveringConnect()),bE(2),cm("isOpen",n.skipDialogOpen),vg("options",XC(6,D)),bE(8),hT(n.secondaryBenefits));},dependencies:[v$1,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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {K as Ke,m as mt,u as un,_ as _n,C as Ct,a as mn}from'./chunk-3iAIXnG6.js';import'./chunk-644SEuYO.js';import'./chunk-hTxREuXu.js';import {I}from'./chunk-OpdQrdKp.js';import'./chunk-Bz49u_nH.js';import'./chunk-1DRz_1dv.js';import {J}from'./chunk-BmOgPfpY.js';import'./chunk-Mj9aFt3b.js';import {G,f,A}from'./chunk-5q0UK__c.js';import {v as ve$1}from'./chunk-CaQaYVo7.js';import'./chunk-B5S2d_Pm.js';import'./chunk-CRhQXQUC.js';import {c}from'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,e as ee$1,ax as W,by as ve,c9 as T1,G as Ge,N as Nt,Q as Qa,g as gw,v,a as N,a0 as de$1,u as ue,al as dm,Z as Zi,w as Hg,d as Ig,W as Wl,l as lT,F as Fg,j as jg,am as GC,b as bE,c as uT,K as Kg,z as vg,O as qg,R as hC,a1 as pT,h as aC,ap as zC,a2 as hT,i as ET,P as Pd,L as Ld,H as HC,n as lm,p as qC,o as oC,t as bD,y as cm,a3 as XC,M as MD,aq as dT,aR as zl,aS as Ql,J as im}from'./main-X6MUEPX4.js';import {f as f$1}from'./chunk-8A93BNds.js';import {d}from'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-Bfg1Kjif.js';import'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import'./chunk-CUo9Jt8-.js';import'./chunk-DM-zhIVI.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"}),Vt=(o,e)=>e.uiKey;function Kt(o,e){if(o&1){let t=ET();Zi(0,"sh-card",30)(1,"div",32)(2,"h3"),oC(3,4),Wl(),Zi(4,"button",33),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.closeCustomList())}),HC(5," Cancel "),Zi(6,"sh-icon"),HC(7,"x-bold"),Wl()()(),Zi(8,"app-destination-list",34),Hg("setDestination",function(i){Pd(t);let _=aC(3);return Ld(_.setDestination(i))}),Wl()();}}function Jt(o,e){if(o&1){let t=ET();Zi(0,"div",40)(1,"sh-toggle",43),lm("checkedChange",function(i){Pd(t);let _=aC(2).$implicit;return qC(_.save,i)||(_.save=i),Ld(i)}),Zi(2,"span",44),oC(3,8),Wl()()();}if(o&2){let t=aC(2).$implicit;bE(),vg("color","primary")("variant","raised"),cm("checked",t.save);}}function Xt(o,e){if(o&1){let t=ET();Zi(0,"sh-toggle-card",31),zl(1,35),Zi(2,"app-destination-list-item",36)(3,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.changeDestination(i))}),HC(4,"Change"),Wl(),Zi(5,"sh-menu",37),Hg("click",function(i){return i.stopPropagation()}),Zi(6,"button",38)(7,"sh-icon"),HC(8,"dots-three-vertical"),Wl()(),zl(9,39),Zi(10,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.openTargetUrlDialog(i))}),Fg(11,5),Ig(12,"sh-icon"),jg(),Wl(),Zi(13,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.copyTargetUrl(i))}),Fg(14,6),Ig(15,"sh-icon"),jg(),Wl(),Zi(16,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.removeDestination(i))}),Fg(17,7),Ig(18,"sh-icon"),jg(),Wl(),Ql(),Wl()(),Ql(),lT(19,Jt,4,3,"div",40),Zi(20,"app-test-url",41,1),Hg("targetUrlChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTestState(_,i))}),Wl(),Zi(22,"app-single-destination",42),Hg("targetUrlChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTargetUrl(_,i))}),Wl()();}if(o&2){let t=aC(),n=t.$implicit,i=t.$index,_=aC(2);vg("disableToggle",true)("isActive",true),bE(2),vg("targetUrl",n.url)("connectionStringId",n.connectionStringId),bE(17),uT(n.connectionStringId?-1:19),bE(),vg("targetUrl",n.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",n.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),bE(2),vg("targetUrl",n.url)("useBackupState",true);}}function zt(o,e){if(o&1&&lT(0,Kt,9,0,"sh-card",30)(1,Xt,23,17,"sh-toggle-card",31),o&2){let t=e.$index,n=aC(2);uT(n.showCustomList()&&n.currentEditingIndex()===t?0:1);}}function Ht(o,e){if(o&1&&pT(0,zt,2,1,null,null,Vt),o&2){aC();let t=zC(0);hT(t);}}function Wt(o,e){o&1&&(Zi(0,"div",45),Ig(1,"sh-progress-bar",46),Zi(2,"div",47)(3,"h3"),oC(4,9),Wl()()());}function jt(o,e){o&1&&(Zi(0,"sh-divider"),oC(1,12),Wl());}function Qt(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit;bE(),im(t.Description);}}function qt(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit,n=aC(4);bE(),im(n.getSimplePath(t.BaseUrl));}}function Yt(o,e){if(o&1){let t=ET();Zi(0,"app-destination-list-item",50),Hg("click",function(){let i=Pd(t).$implicit,_=aC(4);return Ld(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Zi(1,"h3",51),HC(2),Wl(),lT(3,Qt,2,1,"p",52)(4,qt,2,1,"p",52),Wl();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),bE(2),im(t.Name||t.BaseUrl),bE(),uT(t.Description?3:4);}}function Zt(o,e){if(o&1){let t=ET();Zi(0,"sh-card",48),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Zi(1,"sh-icon"),HC(2,"plus-circle"),Wl(),Zi(3,"div",47)(4,"h3"),oC(5,10),Wl(),Zi(6,"p"),oC(7,11),Wl()()(),lT(8,jt,2,0,"sh-divider"),pT(9,Yt,5,3,"app-destination-list-item",49,dT);}if(o&2){let t=aC(3);bE(8),uT(t.destinations().length>0?8:-1),bE(),hT(t.destinations());}}function te(o,e){if(o&1&&lT(0,Wt,5,0,"div",45)(1,Zt,11,1),o&2){let t=aC(2);uT(t.isLoadingDestinations()?0:1);}}function ee(o,e){o&1&&(Zi(0,"sh-divider"),oC(1,15),Wl());}function ne(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit;bE(),im(t.Description);}}function ie(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit,n=aC(3);bE(),im(n.getSimplePath(t.BaseUrl));}}function oe(o,e){if(o&1){let t=ET();Zi(0,"app-destination-list-item",57),Hg("click",function(){let i=Pd(t).$implicit,_=aC(3);return Ld(_.selectSavedDestination(i))}),Zi(1,"h3",51),HC(2),Wl(),lT(3,ne,2,1,"p",52)(4,ie,2,1,"p",52),Wl();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),bE(2),im(t.Name||t.BaseUrl),bE(),uT(t.Description?3:4);}}function ae(o,e){if(o&1){let t=ET();Zi(0,"div",53)(1,"button",54),Hg("click",function(){Pd(t);let i=aC(2);return Ld(i.closeCustomList())}),Zi(2,"sh-icon"),HC(3,"arrow-left"),Wl(),HC(4," Back "),Wl()(),Zi(5,"sh-card",55),Hg("click",function(){Pd(t);let i=aC(2);return Ld(i.toggleCustomList())}),Zi(6,"sh-icon"),HC(7,"plus-circle"),Wl(),Zi(8,"div",47)(9,"h3"),oC(10,13),Wl(),Zi(11,"p"),oC(12,14),Wl()()(),lT(13,ee,2,0,"sh-divider"),pT(14,oe,5,3,"app-destination-list-item",56,dT);}if(o&2){let t=aC(2);bE(13),uT(t.destinations().length>0?13:-1),bE(),hT(t.destinations());}}function re(o,e){if(o&1){let t=ET();Zi(0,"div",53)(1,"button",54),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.closeCustomList())}),Zi(2,"sh-icon"),HC(3,"arrow-left"),Wl()(),Zi(4,"h3"),oC(5,16),Wl()();}}function se(o,e){if(o&1){let t=ET();lT(0,re,6,0,"div",53),Zi(1,"app-destination-list",34),Hg("setDestination",function(i){Pd(t);let _=aC(2);return Ld(_.setDestination(i))}),Wl();}if(o&2){let t=aC(2),n=zC(0);uT(t.destinations().length>0||n.length>0?0:-1);}}function _e(o,e){if(o&1&&lT(0,te,2,1)(1,ae,16,1)(2,se,2,1),o&2){let t=aC(),n=zC(1);uT(!t.showCustomList()&&!n&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function le(o,e){if(o&1){let t=ET();Zi(0,"div",25)(1,"button",58),Hg("click",function(){Pd(t);let i=aC();return Ld(i.startAddingNew())}),Zi(2,"sh-icon"),HC(3,"plus"),Wl(),HC(4," Add another destination "),Wl()();}}function ce(o,e){o&1&&(Zi(0,"h2"),oC(1,19),Wl());}function de(o,e){o&1&&(Zi(0,"h2"),oC(1,20),Wl());}function Ce(o,e){if(o&1){let t=ET();Zi(0,"sh-dialog",59),lm("isOpenChange",function(i){Pd(t);let _=aC();return qC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),Ld(i)}),Zi(1,"header",60)(2,"div",61),lT(3,ce,2,0,"h2")(4,de,2,0,"h2"),Zi(5,"sh-alert",62),oC(6,17),Wl()()(),Zi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),lm("ngModelChange",function(i){Pd(t);let _=aC();return qC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),Ld(i)}),Wl(),bD(),Wl()(),Zi(10,"footer",65)(11,"button",27),Hg("click",function(){Pd(t);let i=aC();return Ld(i.closeTargetUrlDialog(false))}),HC(12,"Cancel"),Wl(),Zi(13,"button",66),Hg("click",function(){Pd(t);let i=aC();return Ld(i.closeTargetUrlDialog(true))}),Fg(14,18),Ig(15,"sh-icon"),jg(),Wl()()();}if(o&2){let t=aC(),n=zC(1);cm("isOpen",t.targetUrlDialogOpen),vg("options",XC(4,Bt)),bE(3),uT(n?4:3),bE(6),cm("ngModel",t.targetUrlCtrl),MD();}}var $=new jn,Be=(o={destinations:[]})=>$.group({destinations:$.array(o.destinations)}),Ve=({key:o,customGroup:e,dynamicGroup:t,advancedGroup:n})=>$.group({destinationType:$.control(o),custom:e,dynamic:t,advanced:n}),B=class o{#n=T(ee$1);#i=T(W);#t=T(Ke);#e=T(mt);injector=T(ve);testUrlComponents=T1();testStates=Ge([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);currentEditingIndex=Ge(null);targetUrlDialogOpen=Ge(false);showCustomList=Ge(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let e=this.targetUrlModel();return e?G(e)??null:null});isLoadingDestinationEffect=Qa(()=>{let e=this.isLoadingDestinations(),t=this.destinations(),n=this.targetUrls();!e&&t.length==0&&n.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let e=this.selectedDestinationType();return e?{key:e.customKey??e.key,customKey:e.customKey??null,displayName:e.displayName,description:e.description,sourceDescription:e.sourceDescription??null,icon:e.icon}:null});getConnectionString(e){let t=this.#e.destinations().find(n=>n.ID===e);return console.log("connection",t),t}getSimplePath(e){return e?f(e):""}copyTargetUrl(e=0){let t=this.targetUrls()[e]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(e=0){let t=this.targetUrls()[e]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(e),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(e=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();if(!e||t===n||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(e){let t=A(e??"");if(!t)return;let n=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${e}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),n,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=Qa(()=>{let e=this.targetUrls();this.testStates.update(t=>{if(t.length===e.length)return t;let n=[...t];if(n.length<e.length)for(let i=n.length;i<e.length;i++)n.push(null);else n.length=e.length;return n});});selectSavedDestination(e){e.BaseUrl&&e.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(e.BaseUrl,true,e.ID,null):(this.#t.addTargetUrl(e.BaseUrl,e.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ge(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(e){this.currentEditingIndex.set(e),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(e){this.testStates.update(t=>t.filter((n,i)=>i!==e)),this.#t.removeTargetUrl(e);}updateTargetUrl(e,t){if(!t)return;let n=this.targetUrls()[e]?.connectionStringId??null,i=this.targetUrls()[e]?.urlKey??null;this.#t.updateTargetUrl(e,t,n,i),this.updateTestState(e,null);}updateTestState(e,t){this.testStates.update(n=>{let i=[...n];return i[e]=t,i});}toggleSave(e){this.#t.toggleSaveConnectionString(e);}goBack(){this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["schedule"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=gw({type:o,selectors:[["app-destination"]],viewQuery:function(t,n){t&1&&qg(n.testUrlComponents,kt,5),t&2&&hC();},decls:19,vars:9,consts:()=>{let e;e=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let b;b=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],e,t,n,i,_,T,b,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1&&(dm(0)(1),Zi(2,"form",21,0),Hg("submit",function(){return n.next()}),Zi(4,"div",22),Ig(5,"input",23)(6,"input",24),Wl(),Zi(7,"header"),lT(8,Ht,2,0),Wl(),lT(9,_e,3,1),lT(10,le,5,0,"div",25),Zi(11,"div",26)(12,"button",27),Hg("click",function(){return n.goBack()}),Fg(13,2),Ig(14,"sh-icon"),jg(),Wl(),Zi(15,"button",28),Fg(16,3),Ig(17,"sh-icon"),jg(),Wl()()(),lT(18,Ce,16,5,"sh-dialog",29)),t&2){let i=GC(n.targetUrls());bE();let _=GC(i.length>0);bE(7),uT(n.currentEditingIndex()!==null||!n.showCustomList()&&!n.isAddingNew()?8:-1),bE(),uT((!_||n.showCustomList()||n.isAddingNew())&&n.currentEditingIndex()===null?9:-1),bE(),uT(_&&!n.showCustomList()&&!n.isAddingNew()?10:-1),bE(5),Kg("loading",n.isNew()&&n.testStates().length>0&&n.testStates()[0]==="testing"),vg("disabled",!_),bE(3),uT(n.targetUrlDialogOpen()?18:-1);}},dependencies:[un,_n,Ct,mn,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve$1,N,de$1,ue,f$1,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
|
|
2
|
+
export{Be as createDestinationForm,Ve as createDestinationFormGroup,B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {t as te}from'./chunk-Ied7KwvV.js';import'./chunk-CNwmuSlJ.js';import'./chunk-B20GDhu-.js';import'./chunk-2QKZNH3T.js';import'./chunk-CaQaYVo7.js';import'./chunk-B5S2d_Pm.js';import'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,ax as W,a5 as m,ab as J,a6 as be,G as Ge,aI as pt,N as Nt,Q as Qa,ad as sy,aG as jo,C as Zu,au as h,g as gw,v,a as N,_ as _t,d as Ig,Z as Zi,F as Fg,j as jg,W as Wl,o as oC,w as Hg,n as lm,t as bD,l as lT,b as bE,av as Vg,aw as iC,K as Kg,z as vg,x as xC,y as cm,M as MD,c as uT,p as qC,aV as ay,aW as cy,H as HC}from'./main-X6MUEPX4.js';import'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-Bfg1Kjif.js';import {a as at}from'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import {L,F}from'./chunk-DM-zhIVI.js';import'./chunk-CUo9Jt8-.js';function pe(_,t){_&1&&(Zi(0,"sh-icon",20),HC(1,"spinner"),Wl());}function he(_,t){_&1&&(Zi(0,"sh-icon",21),HC(1,"check"),Wl());}function Te(_,t){_&1&&(Zi(0,"sh-icon",22),HC(1,"warning"),Wl()),_&2&&vg("shTooltip","File not found");}function Se(_,t){let a=F(_).pipe(ay(t),cy());return L(a,{initialValue:_()})}var f=class _{#o=T(W);#s=T(m);#e=T(J);#a=T(be);#t=Ge("");backupId=L(this.#o.params.pipe(pt(t=>t.id)));activeBackup=Nt(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=Ge("");lastValidatedPath=Ge("");isValidatedPath=Nt(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=Nt(()=>this.backupFilePath()!==this.#t());isValidatingPath=Ge(false);#i=Se(this.backupFilePath,500);#n=Ge(false);isWaitingForValidation=Nt(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=Qa(()=>{let t=this.#i();this.activeBackup();this.#n();t!==""&&(this.isValidatingPath.set(true),sy(()=>this.#e.postApiV1FilesystemValidate({body:{path:t}})).pipe(jo(1),Zu(()=>this.isValidatingPath.set(false))).subscribe(()=>this.lastValidatedPath.set(t)));});isRestoring=Ge(false);isRepairing=Ge(false);isDeleting=Ge(false);isSavingDbPath=Ge(false);isSavingAndRepairing=Ge(false);isMovingDb=Ge(false);isCreatingBugReport=Ge(false);createdReport=Ge(false);isCompacting=Ge(false);activeBackupEffect=Qa(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a);});repairDatabase(){this.isRepairing.set(true),sy(()=>this.#e.postApiV1BackupByIdRepair({path:{id:this.backupId()}})).pipe(jo(1),Zu(()=>this.isRepairing.set(false))).subscribe();}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t);}}):this.doDeleteDatabase(t);}doDeleteDatabase(t=null){this.isDeleting.set(true),sy(()=>this.#e.postApiV1BackupByIdDeletedb({path:{id:this.backupId()}})).pipe(jo(1),Zu(()=>this.isDeleting.set(false))).subscribe(()=>{this.lastValidatedPath.set(""),t?.();});}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase();}):this.doRepairDatabase();}doRepairDatabase(){this.isRestoring.set(true),sy(()=>this.#e.postApiV1BackupByIdRepair({path:{id:this.backupId()},body:{}})).pipe(jo(1),Zu(()=>this.isRestoring.set(false))).subscribe();}resetDatabasePath(){this.backupFilePath.set(this.#t());}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t);}}):this.doSaveDatabasePath(t);}doSaveDatabasePath(t=null){this.isSavingDbPath.set(true);let a=this.backupFilePath();sy(()=>this.#e.postApiV1BackupByIdUpdatedb({path:{id:this.backupId()},body:{path:a}})).pipe(Zu(()=>this.isSavingDbPath.set(false))).subscribe(()=>{this.#t.set(a),t?.();});}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(true),sy(()=>this.#e.postApiV1BackupByIdRepair({path:{id:this.backupId()}})).pipe(jo(1),Zu(()=>this.isSavingAndRepairing.set(false))).subscribe()));}moveDatabasePath(){this.isMovingDb.set(true);let t=this.backupFilePath();sy(()=>this.#e.postApiV1BackupByIdMovedb({path:{id:this.backupId()},body:{path:t}})).pipe(Zu(()=>this.isMovingDb.set(false))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t);});}createErrorReport(){this.isCreatingBugReport.set(true),sy(()=>this.#e.postApiV1BackupByIdCreatereport({path:{id:this.backupId()}})).pipe(Zu(()=>this.isCreatingBugReport.set(false))).subscribe({next:()=>{this.createdReport.set(true),window.setTimeout(()=>this.createdReport.set(false),3e3);}});}compactDatabase(){this.isCompacting.set(true),sy(()=>this.#e.postApiV1BackupByIdCompact({path:{id:this.backupId()}})).pipe(Zu(()=>this.isCompacting.set(false))).subscribe();}static \u0275fac=function(a){return new(a||_)};static \u0275cmp=gw({type:_,selectors:[["app-database"]],decls:53,vars:24,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let r;r=$localize`Maintenance`;let g;g=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let I;I=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let M;M=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let R;R=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Recreate (delete and repair) `;let B;B=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let O;O=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SH_ICON:file-archive${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SH_ICON: Compact `;let $;$=$localize`Placement`;let v;v=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let k;k=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let y;y=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let G;return G=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,r,g,I,M,R,B,O,$,v,k,y,G,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){a&1&&(Ig(0,"app-status-bar"),Zi(1,"section")(2,"div",15)(3,"button",16),Fg(4,0),Ig(5,"sh-icon"),jg(),Wl()(),Zi(6,"article")(7,"h1"),oC(8,1),Wl(),Zi(9,"p"),oC(10,2),Wl()(),Zi(11,"article")(12,"h2"),oC(13,3),Wl(),Zi(14,"p"),oC(15,4),Wl(),Zi(16,"div",17)(17,"button",18),Hg("click",function(){return e.repairDatabase()}),Fg(18,5),Ig(19,"sh-icon"),jg(),Wl(),Zi(20,"button",18),Hg("click",function(){return e.deleteDatabase()}),Fg(21,6),Ig(22,"sh-icon"),jg(),Wl(),Zi(23,"button",18),Hg("click",function(){return e.restoreDatabase()}),Fg(24,7),Ig(25,"sh-icon"),jg(),Wl(),Zi(26,"button",18),Hg("click",function(){return e.createErrorReport()}),Fg(27,8),Ig(28,"sh-icon"),jg(),Wl(),Zi(29,"button",18),Hg("click",function(){return e.compactDatabase()}),Fg(30,9),Ig(31,"sh-icon"),jg(),Wl()()(),Zi(32,"article")(33,"h2"),oC(34,10),Wl(),Zi(35,"sh-form-field")(36,"input",19),lm("ngModelChange",function(g){return qC(e.backupFilePath,g)||(e.backupFilePath=g),g}),Wl(),bD(),lT(37,pe,2,0,"sh-icon",20)(38,he,2,0,"sh-icon",21)(39,Te,2,1,"sh-icon",22),Wl(),Zi(40,"div",23)(41,"button",18),Hg("click",function(){return e.resetDatabasePath()}),Fg(42,11),Ig(43,"sh-icon"),jg(),Wl(),Zi(44,"button",18),Hg("click",function(){return e.saveDatabasePath()}),Fg(45,12),Ig(46,"sh-icon"),jg(),Wl(),Zi(47,"button",18),Hg("click",function(){return e.saveAndRepairDatabasePath()}),Fg(48,13),Ig(49,"sh-icon"),jg(),Wl(),Zi(50,"button",18),Hg("click",function(){return e.moveDatabasePath()}),Fg(51,14),Ig(52,"sh-icon"),jg(),Wl()()()()),a&2&&(bE(8),Vg(e.activeBackup()?.Backup?.Name),iC(8),bE(9),Kg("loading",e.isRepairing()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),bE(3),Kg("loading",e.isDeleting()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),bE(3),Kg("loading",e.isRestoring()),vg("disabled",e.pathHasChanged()),bE(3),Kg("loading",e.isCreatingBugReport()),vg("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),bE(3),Kg("loading",e.isCompacting()),vg("disabled",e.isCompacting()||!e.isValidatedPath()||e.pathHasChanged()),bE(6),xC(e.isValidatedPath()?"success":"error"),bE(),cm("ngModel",e.backupFilePath),MD(),bE(),uT(e.isWaitingForValidation()?37:e.isValidatedPath()?38:39),bE(4),vg("disabled",!e.pathHasChanged()),bE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),bE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),bE(3),vg("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation()));},dependencies:[Bn,Ze,Rn,Jt,te,v,Fe,N,at,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c}from'./chunk-9Pc-waxi.js';import {v as ve}from'./chunk-CaQaYVo7.js';import {x}from'./chunk-CRhQXQUC.js';import'./chunk-Be4WXTyA.js';import {T,e as ee,G as Ge,bb as k,g as gw,v,a as N,$ as lr,a8 as To,_ as _t,Z as Zi,F as Fg,d as Ig,j as jg,W as Wl,l as lT,b as bE,c as uT,i as ET,o as oC,aR as zl,w as Hg,P as Pd,h as aC,L as Ld,aS as Ql,z as vg,av as Vg,aw as iC}from'./main-X6MUEPX4.js';function W(u,S){if(u&1){let n=ET();Zi(0,"sh-menu",16)(1,"button",17),oC(2,2),Wl(),zl(3,18),Zi(4,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Disabled"))}),Fg(5,3),Ig(6,"sh-icon"),jg(),Wl(),Zi(7,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Verbose"))}),Fg(8,4),Ig(9,"sh-icon"),jg(),Wl(),Zi(10,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("ExplicitOnly"))}),Fg(11,5),Ig(12,"sh-icon"),jg(),Wl(),Zi(13,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Profiling"))}),Fg(14,6),Ig(15,"sh-icon"),jg(),Wl(),Zi(16,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Retry"))}),Fg(17,7),Ig(18,"sh-icon"),jg(),Wl(),Zi(19,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Information"))}),Fg(20,8),Ig(21,"sh-icon"),jg(),Wl(),Zi(22,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("DryRun"))}),Fg(23,9),Ig(24,"sh-icon"),jg(),Wl(),Zi(25,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Warning"))}),Fg(26,10),Ig(27,"sh-icon"),jg(),Wl(),Zi(28,"button",19),Hg("click",function(){Pd(n);let e=aC();return Ld(e.updateLogLevel("Error"))}),Fg(29,11),Ig(30,"sh-icon"),jg(),Wl(),Ql(),Wl();}if(u&2){let n=aC();vg("openIndicator",true),bE(2),Vg(n.logLevelByLabel()),iC(2);}}var O=class u{#n=T(ee);#e=T(c);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=Ge(this.#n.url);constructor(){this.#n.events.subscribe(S=>{S instanceof k&&this.currentUrl.set(S.urlAfterRedirects);});}updateLogLevel(S){this.#e.isPolling.set(true),this.#e.updateLogLevel(S);}static \u0275fac=function(n){return new(n||u)};static \u0275cmp=gw({type:u,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let S;S=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Disabled `;let E;E=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Explicit only `;let N;N=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Profiling `;let I;I=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Retry `;let d;d=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Information `;let h;h=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Dry run `;let G;G=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON: Warning `;let m;return m=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SH_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SH_ICON: Error `,[S,n,o,e,E,L,N,I,d,h,G,m,[1,"filters"],[1,"type-b"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["shButton","","type","button"],["menu",""],["shButton","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(Zi(0,"div",12)(1,"sh-button-group",13)(2,"button",14),Fg(3,0),Ig(4,"sh-icon"),jg(),Wl(),Zi(5,"button",15),Fg(6,1),Ig(7,"sh-icon"),jg(),Wl()(),lT(8,W,31,2,"sh-menu",16),Wl(),Ig(9,"router-outlet")),n&2&&(bE(8),uT(o.currentUrl().startsWith("/about/logs/live")?8:-1));},dependencies:[v,x,N,ve,lr,To,_t],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:0 2rem;margin-bottom:1.25rem}"]})};export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {L as L$1}from'./chunk-DM-zhIVI.js';import {T as T$1,ab as J,k,bk as B,f,G as Ge,N as Nt,Q as Qa,ad as sy,ak as l,b1 as Bs,a_ as ee}from'./main-X6MUEPX4.js';var m="shown-welcome-page-v1",A="hide-console-connection-status",C="use-out-of-process-controller",b="disable-console-control",T="disable-tray-icon-login",S="server-listen-interface",D="allowed-hostnames",N="server-passphrase",w="update-channel",y="startup-delay",P="usage-reporter-level",I="power-mode-provider",L="autogenerated-passphrase",O="has-asked-for-password-change",R=class a{#s=T$1(J);#r=T$1(k);#n=T$1(B);#i=T$1(f);#o=L$1(sy(()=>this.#s.getApiV1Serversettings()));#e=Ge(void 0);#t(e,t){if(!t)return false;let s=t[e];if((s??"").trim().length==0)return false;let r=s.trim().toLowerCase();return r==="true"||r==="1"||r==="yes"||r==="on"}serverSettings=Nt(()=>this.#e()||this.#o());askForInitialPasswordConfig=Nt(()=>{let e=(this.#i.systemInfo()?.StartedBy??"").trim().toLowerCase();if(e==="tray icon"||e=="trayicon")return false;let t=this.#e(),s=this.#t(L,t),r=this.#t(O,t);return s&&!r});showWelcomePage=Nt(()=>{let e=this.#e();if(!e)return false;let t=this.#t(O,e),s=this.#t(m,e);return !(t||s)});#c=Qa(()=>{let e=this.#r.serverSettings();e&&this.#e.set(e);});constructor(){this.#r.subscribe("serversettings");}isConsoleConnectionStatusHidden=Nt(()=>this.#t(A,this.serverSettings()));isControllerIpcEnabled=Nt(()=>this.#t(C,this.serverSettings()));refreshServerSettings(){this.#n.getConnectionMethod()!=="websocket"&&sy(()=>this.#s.getApiV1Serversettings()).subscribe({next:e=>{this.#e.set(e);}});}#a(e,t){var s=l({},e);for(let[r,g]of Object.entries(t))g===null?delete s[r]:s[r]=g;return s}patchServerSettings(e){let t=l({},this.serverSettings());return this.#e.set(this.#a(this.serverSettings()??{},e)),sy(()=>this.#s.patchApiV1Serversettings({body:e})).pipe(Bs(s=>{throw this.#e.set(t),s}))}patchServerSetting(e,t){let s={};return s[e]=t,this.patchServerSettings(s)}setShownWelcomePage(){return this.patchServerSetting(m,"true")}setHideConsoleConnectionStatus(e){return this.patchServerSetting(A,e?"True":"False")}setControllerIpcState(e){return this.patchServerSetting(C,e?"True":"False")}setDisableTrayIconLogin(e){return this.patchServerSetting(T,e?"True":"False")}setDisableConsoleControl(e){return this.patchServerSetting(b,e?"True":"False")}setRemoteAccessInterface(e){return this.patchServerSetting(S,e)}setRemoteAccessAllowedHostnames(e){var t={[D]:e};return this.serverSettings()?.[S]==="loopback"&&(t[S]="any"),this.patchServerSettings(t)}setRemoteAccessPassword(e){return this.patchServerSetting(N,e)}setUpdateChannel(e){return this.patchServerSetting(w,e)}setStartupDelay(e){return this.patchServerSetting(y,e)}setUsageReporterLevel(e){return this.patchServerSetting(P,e)}setPowerModeProvider(e){return this.patchServerSetting(I,e)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{R};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {L as L$1}from'./chunk-DM-zhIVI.js';import {T,ab as J,ad as sy,aI as pt,aj as m,ak as l,G as Ge,Q as Qa,g as gw,a as N,v,a0 as de,i as ET,Z as Zi,o as oC,W as Wl,a1 as pT,n as lm,H as HC,w as Hg,P as Pd,L as Ld,b as bE,a2 as hT,y as cm,z as vg,a3 as XC,J as im,aa as Yl,p as qC,l as lT,d as Ig,h as aC,F as Fg,j as jg,aD as sm,c as uT,as as Yp,a9 as QC,aq as dT}from'./main-X6MUEPX4.js';var H=()=>({maxWidth:"700px",width:"100%"});function K(s,i){if(s&1&&(Zi(0,"a",9)(1,"sh-icon"),HC(2,"link"),Wl()()),s&2){let e=aC().$implicit;vg("href",QC(e.Url),Yp);}}function Q(s,i){if(s&1){let e=ET();Zi(0,"div",2)(1,"h4"),HC(2),lT(3,K,3,2,"a",9),Wl(),Zi(4,"p"),HC(5),Ig(6,"br"),Zi(7,"i"),HC(8),Wl()(),Zi(9,"div",10)(10,"button",11),Hg("click",function(){let o=Pd(e).$implicit,p=aC();return Ld(p.openLicense(o))}),Fg(11,1),Ig(12,"sh-icon"),jg(),Wl()()();}if(s&2){let e=i.$implicit;bE(2),sm(" ",e.Title," - ",e.data?.license," "),bE(),uT(e.Url?3:-1),bE(2),Yl(" ",e.data?.description," "),bE(3),im(e.data?.notes);}}var L=class s{#e=T(J);licenses=L$1(sy(()=>this.#e.getApiV1Licenses()).pipe(pt(i=>i.map(e=>m(l({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=Ge(false);dialogLicense=Ge(null);#i=Qa(()=>{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=gw({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=ET();Zi(0,"h3"),oC(1,0),Wl(),pT(2,Q,13,5,"div",2,dT),Zi(4,"sh-dialog",3),lm("isOpenChange",function(_){return Pd(o),qC(n.dialogIsOpen,_)||(n.dialogIsOpen=_),Ld(_)}),Zi(5,"header",4)(6,"h3"),HC(7),Wl()(),Zi(8,"div",5)(9,"div",6),HC(10),Wl()(),Zi(11,"footer",7)(12,"button",8),Hg("click",function(){return Pd(o),n.dialogLicense.set(null),Ld(n.dialogIsOpen.set(false))}),HC(13,"Close"),Wl()()();}if(e&2){bE(2),hT(n.licenses()),bE(2),cm("isOpen",n.dialogIsOpen),vg("options",XC(4,H)),bE(3),im(n.dialogLicense()?.Title);let o=n.dialogLicense()?.License??"";bE(3),Yl(" ",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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w as w$1}from'./chunk-vtWJkNZ_.js';import {t as te}from'./chunk-Ied7KwvV.js';import'./chunk-CNwmuSlJ.js';import'./chunk-B20GDhu-.js';import'./chunk-2QKZNH3T.js';import {K as Ke}from'./chunk-3iAIXnG6.js';import'./chunk-644SEuYO.js';import'./chunk-hTxREuXu.js';import'./chunk-OpdQrdKp.js';import'./chunk-Bz49u_nH.js';import'./chunk-1DRz_1dv.js';import'./chunk-BmOgPfpY.js';import'./chunk-Mj9aFt3b.js';import'./chunk-5q0UK__c.js';import'./chunk-CaQaYVo7.js';import'./chunk-B5S2d_Pm.js';import'./chunk-CRhQXQUC.js';import'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,ax as W,a5 as m,ab as J$1,Q as Qa,ad as sy,aG as jo,g as gw,$ as lr,_ as _t,a8 as To,d as Ig,Z as Zi,l as lT,o as oC,W as Wl,b as bE,c as uT,z as vg,aH as tb,aF as JC,H as HC,h as aC,aa as Yl}from'./main-X6MUEPX4.js';import'./chunk-8A93BNds.js';import {d}from'./chunk-C8Zr0vl3.js';import'./chunk-Be4WXTyA.js';import'./chunk-Bfg1Kjif.js';import'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import {L}from'./chunk-DM-zhIVI.js';import'./chunk-CUo9Jt8-.js';var $=(i,e)=>[i,e,"general"],U=(i,e)=>[i,e,"source-data"],K=(i,e)=>[i,e,"destination"],F=(i,e)=>[i,e,"schedule"],w=(i,e)=>[i,e,"options"];function J(i,e){if(i&1&&(Zi(0,"p"),HC(1),Wl()),i&2){let t=aC();bE(),Yl("Editing: ",t.backupName());}}function X(i,e){i&1&&Ig(0,"sh-progress-bar",7);}function x(i,e){i&1&&(Zi(0,"section"),Ig(1,"router-outlet"),Wl());}var k=class i{#t=T(W);#e=T(Ke);#i=T(m);#n=T(J$1);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#a=L(this.#t.params);#o=L(this.#t.url);paramsChanged=Qa(()=>{let e=this.#a()?.id,t=!!this.#o()?.find(n=>n.path==="backup-draft");e!=this.#e.backupId()&&(this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults());});getDefaults(){sy(()=>this.#n.getApiV1Backupdefaults()).pipe(jo(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(true);}});}getBackup(e,t=false){let n=a=>{this.#e.mapScheduleToForm(a.Schedule??null),a.Backup&&(this.#e.mapGeneralToForm(a.Backup),this.#e.mapDestinationToForm(a.Backup),this.#e.mapSourceDataToForm(a.Backup),this.#e.mapOptionsToForms(a.Backup),this.#e.storeMetadata(a.Backup,t)),this.#e.finishedLoading.set(true);};if(t){this.isDraft.set(t);let a=this.#i.draftBackups().find(d=>d.id===e);if(!a){alert("Backup not found");return}n(a.data);}else sy(()=>this.#n.getApiV1BackupById({path:{id:e}})).subscribe({next:n});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=gw({type:i,selectors:[["app-backup"]],features:[JC([Ke])],decls:16,vars:22,consts:()=>{let e;e=$localize` General `;let t;t=$localize` Source Data `;let n;n=$localize` Destination `;let a;a=$localize` Schedule `;let d;return d=$localize` Options `,[e,t,n,a,d,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Zi(1,"header"),lT(2,J,2,1,"p"),Zi(3,"sh-stepper",5)(4,"div",6),oC(5,0),Wl(),Zi(6,"div",6),oC(7,1),Wl(),Zi(8,"div",6),oC(9,2),Wl(),Zi(10,"div",6),oC(11,3),Wl(),Zi(12,"div",6),oC(13,4),Wl()()(),lT(14,X,1,0,"sh-progress-bar",7)(15,x,2,0,"section")),t&2&&(bE(2),uT(n.isNew()?-1:2),bE(2),vg("routerLink",tb(7,$,n.isDraft()?"/backup-draft":"/backup",n.backupId())),bE(2),vg("routerLink",tb(10,U,n.isDraft()?"/backup-draft":"/backup",n.backupId())),bE(2),vg("routerLink",tb(13,K,n.isDraft()?"/backup-draft":"/backup",n.backupId())),bE(2),vg("routerLink",tb(16,F,n.isDraft()?"/backup-draft":"/backup",n.backupId())),bE(2),vg("routerLink",tb(19,w,n.isDraft()?"/backup-draft":"/backup",n.backupId())),bE(2),uT(n.finishedLoading()?15:14));},dependencies:[lr,_t,To,te,w$1,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"]})};export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-3iAIXnG6.js').then(function(n){return n.d})},{path:"source-data",loadComponent:()=>import('./chunk-3iAIXnG6.js').then(function(n){return n.e})},{path:"destination",loadComponent:()=>import('./chunk-Dgq3OqWW.js')},{path:"schedule",loadComponent:()=>import('./chunk-3iAIXnG6.js').then(function(n){return n.f})},{path:"options",loadComponent:()=>import('./chunk-DR-utttZ.js')}];export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {z}from'./chunk-CNwmuSlJ.js';import {m as m$4}from'./chunk-2QKZNH3T.js';import {m as m$1,N as Nt$1}from'./chunk-B5S2d_Pm.js';import {E as E1,T,aY as D,a5 as m,N as Nt,G as Ge$1,Q as Qa,g as gw,a as N,v,b3 as m$2,aL as ci,l as lT,c as uT,aF as JC,aJ as m$3,K as Kg,Z as Zi,W as Wl,h as aC,b as bE,H as HC,d as Ig,aa as Yl,z as vg,F as Fg,aO as sb,j as jg,av as Vg,aT as cb,aP as lb,aw as iC,o as oC,ah as Yg,b4 as cg,b_ as gC,i as ET,w as Hg,P as Pd,L as Ld,J as im,c0 as db,ab as J,a6 as be$1,bk as B,I,f,ad as sy,aR as zl,aS as Ql,s as sC,ac as I1,C as Zu,n as lm,p as qC,t as bD,y as cm,M as MD,_ as _t,a3 as XC}from'./main-X6MUEPX4.js';import {d}from'./chunk-C8Zr0vl3.js';import {a as at}from'./chunk-BxBZMjtQ.js';import {v as ve$1}from'./chunk-CaQaYVo7.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn,Z as Ze$1,e as en,R as Rn,J as Jt}from'./chunk-Bfg1Kjif.js';import {v as v$1}from'./chunk-qUlwoHQn.js';import {R}from'./chunk-Dn7TWCfq.js';function Y(t,n){if(t&1&&HC(0),t&2){let e=aC(3);Yl(" ",e.statusData().actionText," - ");}}function Z$1(t,n){t&1&&(Zi(0,"sh-icon"),HC(1,"check"),Wl());}function ee$1(t,n){t&1&&(Zi(0,"sh-icon"),HC(1,"copy"),Wl());}function te$1(t,n){if(t&1){let e=ET();Zi(0,"div",9)(1,"button",10),Hg("click",function(u){Pd(e);let F=aC(4);return Ld(F.copyToClipboard(u,F.tooltipText()))}),lT(2,Z$1,2,0,"sh-icon")(3,ee$1,2,0,"sh-icon"),HC(4," Copy "),Wl(),Zi(5,"p",11),HC(6),Wl()();}if(t&2){let e=aC(4);bE(),vg("color",e.copied()?"success":null),bE(),uT(e.copied()===true?2:3),bE(4),im(e.tooltipText());}}function ne(t,n){if(t&1&&(Zi(0,"div",8),HC(1),Wl(),cg(2,te$1,7,3,"ng-template",null,0,db)),t&2){let e=gC(3),s=aC(3);vg("shTooltip",e),bE(),Yl(" ",s.statusData().fileStatusText," ");}}function ie(t,n){if(t&1&&(Zi(0,"div"),lT(1,Y,1,1),HC(2),Wl(),lT(3,ne,4,2),Ig(4,"sh-progress-bar",7)),t&2){let e=aC(2);bE(),uT(e.backupId()===null?1:-1),bE(),Yl(" ",e.statusData().statusText," "),bE(),uT(e.statusData()?.BackendFileSize?3:-1),bE(),vg("value",e.statusData().progress*100);}}function oe(t,n){if(t&1&&(Zi(0,"div",5),Fg(1,1),Ig(2,"sh-icon"),sb(3,"relativeTime"),sb(4,"date"),jg(),Wl()),t&2){let e=aC(2);bE(4),Vg(e.nextBackup().backup?.Backup?.Name)(cb(3,3,e.nextBackup().time))(lb(4,5,e.nextBackup().time,"shortTime")),iC(1);}}function ae(t,n){t&1&&(Zi(0,"div",5),oC(1,2),Wl());}function se(t,n){t&1&&(Zi(0,"div",6),Fg(1,3),Ig(2,"sh-spinner"),jg(),Wl()),t&2&&(bE(2),Yg("--spinner-size","12px")("--spinner-thickness","2px"));}function re(t,n){if(t&1&&(Zi(0,"div",4),lT(1,ie,5,4)(2,oe,5,8,"div",5)(3,ae,2,0,"div",5)(4,se,3,4,"div",6),Wl()),t&2){let e=aC();bE(),uT(e.isActive()?1:!e.backupId()&&(e.nextBackup().backup||e.nextBackup().time)?2:!e.backupId()&&!e.serverState()?.ActiveTask?3:e.backupId()?-1:4);}}var W=class t{backupId=E1(null);#e=T(D);#t=T(m);statusData=this.#e.statusData;serverState=this.#e.serverState;isActive=Nt(()=>this.#e.runningBackupId()!==null);isTargetRunningTask=Nt(()=>{let n=this.backupId();return n?String(this.#e.runningBackupId())===String(n):true});isVisible=Nt(()=>this.backupId()?this.isActive()?this.isTargetRunningTask():false:true);nextBackup=Nt(()=>{this.#t.backups();return {backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});tooltipText=Nt(()=>{let n=this.statusData();return n?.CurrentFilename?`${n.CurrentFilename}`:""});copied=Ge$1(false);copiedTimeout;copyToClipboard(n,e){n.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(true),this.copiedTimeout=setTimeout(()=>{this.copied.set(false);},2e3);}tooltipTrigger=Ge$1(true);tooltipTriggerEffect=Qa(()=>{this.tooltipText(),this.tooltipTrigger.update(n=>!n),this.copiedTimeout&&(clearTimeout(this.copiedTimeout),this.copiedTimeout=void 0,this.copied.set(false));});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=gw({type:t,selectors:[["app-backup-progress"]],hostVars:2,hostBindings:function(e,s){e&2&&Kg("is-visible",s.isVisible());},inputs:{backupId:[1,"backupId"]},features:[JC([m$3])],decls:1,vars:1,consts:()=>{let n;n=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let e;e=$localize`No scheduled tasks`;let s;return s=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`,[["fileStatusTooltip",""],n,e,s,[1,"progress-section"],[1,"label"],[1,"label","label-loading"],[1,"raised","primary",3,"value"],[1,"file-status-text",3,"shTooltip"],[1,"tooltip-status-content"],["shButton","","size","small",3,"click","color"],[1,"tooltip-file-status-text"]]},template:function(e,s){e&1&&lT(0,re,5,1,"div",4),e&2&&uT(s.isVisible()?0:-1);},dependencies:[N,v,m$1,d,at,m$2,ci],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}[_nghost-%COMP%]:not(.is-visible){display:none}.file-status-text[_ngcontent-%COMP%]{color:var(--base-8)}.file-status-text[_ngcontent-%COMP%]:empty{display:none}.tooltip-file-status-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word;display:inline-block;margin-bottom:.25rem}.tooltip-status-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;min-width:18.75rem;flex:1 0}.progress-section[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-top:.25rem}app-status-bar[_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%], app-status-bar [_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;max-width:initial;margin-top:0}.label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"]})};function ye(o,t){o&1&&(Zi(0,"sh-icon",2),HC(1,"x-bold"),Wl());}function be(o,t){o&1&&(Zi(0,"sh-icon",3),HC(1,"list-bold"),Wl());}function ve(o,t){if(o&1){let n=ET();Zi(0,"button",1),Hg("click",function(){Pd(n);let i=aC();return Ld(i.toggleNav())}),lT(1,ye,2,0,"sh-icon",2)(2,be,2,0,"sh-icon",3),Wl();}if(o&2){let n=aC();bE(),uT(n.isNavOpen()?1:2);}}var V=class o{#e=T(m$4);isNavOpen=this.#e.isNavOpen;isMobile=this.#e.isMobile;toggleNav(){this.#e.toggleNav();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=gw({type:o,selectors:[["app-mobile-menu-toggle"]],decls:1,vars:1,consts:[["shButton","",1,"small","toggle-sidebar","ghost"],["shButton","",1,"small","toggle-sidebar","ghost",3,"click"],[1,"cross"],[1,"burger"]],template:function(n,e){n&1&&lT(0,ve,3,1,"button",0),n&2&&uT(e.isMobile()?0:-1);},dependencies:[v,N],styles:["[_nghost-%COMP%]{display:contents}.toggle-sidebar[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center}.toggle-sidebar[_ngcontent-%COMP%] .cross[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger[_ngcontent-%COMP%]{opacity:1;transition:opacity 124ms linear;margin:0}.toggle-sidebar[_ngcontent-%COMP%] .cross.hidden[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger.hidden[_ngcontent-%COMP%]{opacity:0}"]})};var Re=()=>["/connect/logon"];function Be(o,t){o&1&&(Fg(0,0,1),Ig(1,"div",9),jg());}function ke(o,t){o&1&&(Fg(0,0,2),Ig(1,"div",10),jg());}function Le(o,t){if(o&1){let n=ET();Zi(0,"div",8),Hg("click",function(){Pd(n);let i=aC();return Ld(i.resetAndRetry())}),Fg(1,0),lT(2,Be,2,0)(3,ke,2,0),jg(),Wl();}if(o&2){let n=aC();bE(2),uT(n.resetting()?2:3);}}function Ge(o,t){o&1&&(Zi(0,"div",6),Fg(1,1),Ig(2,"div",11),jg(),Wl()),o&2&&vg("routerLink",XC(1,Re));}function xe(o,t){o&1&&(Zi(0,"div",6),Fg(1,2),Ig(2,"div",10),jg(),Wl()),o&2&&vg("routerLink",XC(1,Re));}function $e(o,t){if(o&1){let n=ET();Zi(0,"div",7),Fg(1,3),Zi(2,"sh-icon",12),Hg("click",function(){Pd(n);let i=aC();return Ld(i.cancel())}),Wl(),Zi(3,"div",13),Hg("click",function(){Pd(n);let i=aC();return Ld(i.claim())}),Wl(),Ig(4,"div",14),jg(),Wl();}}function Ue(o,t){if(o&1){let n=ET();Zi(0,"div",8),Hg("click",function(){Pd(n);let i=aC();return Ld(i.openConsole())}),Fg(1,4),Ig(2,"div",15),jg(),Wl();}}var x=class o{#e=T(v$1);state=this.#e.state;resetting=Ge$1(false);stateEffect=Qa(()=>{let t=this.#e.state(),n=this.resetting();t==="registered"&&n&&(this.resetting.set(false),this.#e.beginRemoteRegistration());});ngOnInit(){this.#e.refreshRemoteControlStatus();}claim(){let t=this.#e.claimUrl();t&&window.open(t,"_blank");}cancel(){this.#e.cancelRemoteRegistration();}resetAndRetry(){this.resetting.set(true),this.#e.cancelRemoteRegistration();}openConsole(){this.#e.openConsole();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=gw({type:o,selectors:[["app-remote-connectivity-status"]],decls:5,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Resetting ${"\uFFFD#1:1\uFFFD"}:START_TAG_DIV:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Click to connect ${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=sC(t);let n;n=$localize` Connecting ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let e;e=$localize` Click to register ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let i;i=$localize`Cancel registration`;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:Click to claim${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:`,a=sC(a);let u;return u=$localize` Connected ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`,[t,n,e,a,u,[1,"connectivity-status"],[1,"connectivity-status",3,"routerLink"],[1,"connectivity-status","claim"],[1,"connectivity-status",3,"click"],[1,"status","blinking"],[1,"status"],[1,"status","warning","blinking"],["shTooltip",i,3,"click"],[1,"claim",3,"click"],[1,"status","success","blinking"],[1,"status","success"]]},template:function(n,e){if(n&1&&lT(0,Le,4,1,"div",5)(1,Ge,3,2,"div",6)(2,xe,3,2,"div",6)(3,$e,5,0,"div",7)(4,Ue,3,0,"div",5),n&2){let i=e.state()==="unknown"||e.state()==="inactive"||e.state()==="registeringfaulted",a=e.state()==="registeringfaulted",u=e.state()==="registering",r=e.state()==="registered",M=e.state()==="connected"||e.state()==="disabled"||e.state()==="connecting";uT(a?0:u?1:i?2:r?3:M?4:-1);}},dependencies:[_t,N,at],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 .75rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{padding:0}}.hide-text[_nghost-%COMP%]{font-size:0}.in-menu[_nghost-%COMP%]{padding:.75rem;border-bottom:1px solid var(--base-4)}.connectivity-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.connectivity-status[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%]{display:flex;gap:.5rem;cursor:pointer}.connectivity-status.claim[_ngcontent-%COMP%]:hover{color:inherit}.connectivity-status.claim[_ngcontent-%COMP%] .claim[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]:hover{color:var(--error-8)}.status[_ngcontent-%COMP%]{width:.625rem;height:.625rem;border-radius:50%;background-color:var(--base-4)}.status.success[_ngcontent-%COMP%]{background-color:var(--success-8)}.status.warning[_ngcontent-%COMP%]{background-color:var(--warn-8)}.status.blinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking 1s infinite}@keyframes _ngcontent-%COMP%_blinking{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}"]})};var Pe={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},we=["mbps","gbps"],Ae=8,q=1024,H=q*1024,Q=H*1024,ee=Q*1024,he=ee*1024,Ve={B:1,KB:q,MB:H,GB:Q,TB:ee,PB:he},He=1e3,Z=He*1e3,j=Z*1e3,Ye=[{threshold:he,unitPrefix:"PByte"},{threshold:ee,unitPrefix:"TByte"},{threshold:Q,unitPrefix:"GByte"},{threshold:H,unitPrefix:"MByte"},{threshold:q,unitPrefix:"KByte"},{threshold:1,unitPrefix:"Byte"}],$=class o{#e=T(J);closed=I1();isSubmitting=Ge$1(false);sizeOptions=Ge$1([...we]);maxUpload=Ge$1(0);maxDownload=Ge$1(0);maxUploadUnit=Ge$1("mbps");maxDownloadUnit=Ge$1("mbps");ngOnInit(){this.init();}convertToBitsPerSecondUnits(t,n){let i=t*(Ve[n.toUpperCase()]||H)*Ae;return i===0?{value:0,unit:"mbps"}:i>=j?{value:parseFloat((i/j).toFixed(2)),unit:"gbps"}:{value:parseFloat((i/Z).toFixed(2)),unit:"mbps"}}convertFromBitsPerSecondUnits(t,n){let e=0;switch(n){case "gbps":e=t*j;break;case "mbps":e=t*Z;break}let i=e/Ae;if(i===0)return {valueForApi:0,unitPrefixForApi:"Byte"};for(let{threshold:a,unitPrefix:u}of Ye)if(i>=a)return {valueForApi:Math.round(i/a),unitPrefixForApi:u};return {valueForApi:Math.round(i),unitPrefixForApi:"Byte"}}init(){sy(()=>this.#e.getApiV1Serversettings()).subscribe({next:t=>{let n=t?.["max-upload-speed"],e=t?.["max-download-speed"];if(n&&n!==""){let i=n.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxUpload.set(r.value),this.maxUploadUnit.set(r.unit);}else console.warn("Unexpected max-upload-speed format from API:",n),this.resetUpload();}else this.resetUpload();if(e&&e!==""){let i=e.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxDownload.set(r.value),this.maxDownloadUnit.set(r.unit);}else console.warn("Unexpected max-download-speed format from API:",e),this.resetDownload();}else this.resetDownload();},error:t=>{console.error("Failed to get server settings:",t),this.resetDownload(),this.resetUpload();}});}resetDownload(){this.maxDownload.set(0),this.maxDownloadUnit.set("mbps");}resetUpload(){this.maxUpload.set(0),this.maxUploadUnit.set("mbps");}blockDecimalKeys(t){if([".",","].includes(t.key))return t.preventDefault()}cleanupInputAfterPasting(t){t.preventDefault();let n=t.clipboardData?.getData("text/plain");if(!n)return;let e=n.replaceAll(/[\.,]/g,"");t.target.value=e;}submit(){this.isSubmitting.set(true);let t="",n="",e=this.maxUpload()??0,i=this.maxUploadUnit(),a=this.maxDownload()??0,u=this.maxDownloadUnit();if(e>0){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(e,i),y=Pe[M];y?t=`${r}${y}`:console.error(`Invalid unit prefix for API submission (upload): ${M}. Defaulting to empty string.`);}if(a){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(a,u),y=Pe[M];y?n=`${r}${y}`:console.error(`Invalid unit prefix for API submission (download): ${M}. Defaulting to empty string.`);}sy(()=>this.#e.patchApiV1Serversettings({body:{"max-upload-speed":t,"max-download-speed":n}})).pipe(Zu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.closed.emit(true);},error:r=>{console.error("Failed to submit throttle settings:",r);}});}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=gw({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:10,consts:()=>{let t;t=$localize`Throttle network speed`;let n;n=$localize`We will round bits to the nearest byte value.`;let e;e=$localize`Max upload speed`;let i;i=$localize`Max download speed`;let a;a=$localize`Cancel`;let u;return u=$localize` Update settings `,[t,n,e,i,a,u,["content",""],[1,"column"],[1,"field-row"],["type","number",3,"paste","keydown","ngModelChange","ngModel"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(n,e){n&1&&(Zi(0,"header")(1,"h3"),oC(2,0),Wl(),Zi(3,"p"),oC(4,1),Wl()(),Zi(5,"div",6)(6,"div",7)(7,"div",8)(8,"label"),oC(9,2),Wl(),Zi(10,"sh-form-field")(11,"input",9),Hg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),lm("ngModelChange",function(a){return qC(e.maxUpload,a)||(e.maxUpload=a),a}),Wl(),bD(),Wl(),Zi(12,"sh-select",10)(13,"input",11),lm("ngModelChange",function(a){return qC(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),Wl(),bD(),Wl()(),Zi(14,"div",8)(15,"label"),oC(16,3),Wl(),Zi(17,"sh-form-field")(18,"input",9),Hg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),lm("ngModelChange",function(a){return qC(e.maxDownload,a)||(e.maxDownload=a),a}),Wl(),bD(),Wl(),Zi(19,"sh-select",10)(20,"input",11),lm("ngModelChange",function(a){return qC(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),Wl(),bD(),Wl()()()(),Zi(21,"footer",12)(22,"button",13),Hg("click",function(){return e.closed.emit(false)}),oC(23,4),Wl(),Zi(24,"button",14),Hg("click",function(){return e.submit()}),oC(25,5),Wl()()),n&2&&(bE(11),cm("ngModel",e.maxUpload),MD(),bE(),vg("isClearable",false)("options",e.sizeOptions()),bE(),cm("ngModel",e.maxUploadUnit),MD(),bE(5),cm("ngModel",e.maxDownload),MD(),bE(),vg("isClearable",false)("options",e.sizeOptions()),bE(),cm("ngModel",e.maxDownloadUnit),MD(),bE(4),Kg("loading",e.isSubmitting()));},dependencies:[Bn,Ze$1,en,Rn,Jt,Fe,Nt$1,v],styles:['[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;gap:.5rem;margin-bottom:1rem}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-areas:"label label" "input select";grid-template-columns:1fr auto;align-items:center;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}.field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:select}']})};function ze(o,t){o&1&&Ig(0,"app-remote-connectivity-status");}function Je(o,t){if(o&1){let n=ET();Zi(0,"button",7),Hg("click",function(){Pd(n);let i=aC(2);return Ld(i.abort())}),Fg(1,1),Ig(2,"sh-icon"),jg(),Wl();}}function Xe(o,t){if(o&1){let n=ET();Zi(0,"button",7),Hg("click",function(){Pd(n);let i=aC(2);return Ld(i.stop())}),Fg(1,2),Ig(2,"sh-icon"),jg(),Wl();}}function Ke(o,t){if(o&1&&lT(0,Je,3,0,"button",14)(1,Xe,3,0,"button",14),o&2){let n=aC();uT(n.isStopping()?0:1);}}function We(o,t){o&1&&(Fg(0,0,1),Ig(1,"sh-icon"),jg());}function je(o,t){o&1&&(Fg(0,0,2),Ig(1,"sh-icon"),jg());}function Ze(o,t){o&1&&Ig(0,"app-remote-connectivity-status",10);}function qe(o,t){o&1&&Ig(0,"app-remote-connectivity-status",12);}function Qe(o,t){if(o&1){let n=ET();Zi(0,"button",13),Hg("click",function(){Pd(n);let i=aC();return Ld(i.isStopping()?i.abort():i.stop())}),Zi(1,"sh-icon"),HC(2),Wl(),HC(3),Wl();}if(o&2){let n=aC();bE(2),im(n.isStopping()?"skull":"stop"),bE(),Yl(" ",n.isStopping()?"Abort":"Stop"," ");}}var te=class o{#e=T(J);#t=T(D);#n=T(be$1);#a=T(B);#i=T(I);#s=T(f);#l=T(R);clientIsRunning=this.#t.clientIsRunning;isResuming=this.#t.isResuming;runningTask=Nt(()=>this.#a.serverState()?.ActiveTask?.Item1);isStopping=Nt(()=>this.runningTask()==this.#o());#o=Ge$1(-1);isUsingRelay=this.#i.relayIsEnabled;hideConsoleConnectionStatus=this.#l.isConsoleConnectionStatusHidden;openThrottleSettingsDialog(){this.#n.open($,{maxWidth:"550px",width:"100%"});}openPauseDialog(){this.#n.open(z,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#t.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),sy(()=>this.#e.postApiV1TaskByTaskidStop({path:{taskid:t}})).subscribe());}abort(){let t=this.runningTask();t&&sy(()=>this.#e.postApiV1TaskByTaskidAbort({path:{taskid:t}})).subscribe();}ngAfterViewInit(){let t=this.#i.relayIsEnabled()||!this.#s.hasWebSocket()?"longpoll":"websocket";this.#t.setConnectionMethod(t);}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=gw({type:o,selectors:[["app-status-bar"]],decls:31,vars:10,consts:()=>{let t;t=$localize`${"\uFFFD*9: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/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10: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/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=sC(t);let n;n=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let e;return e=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `,[t,n,e,[1,"current-backup"],[1,"global-progress"],[1,"current-backup-actions"],[1,"desktop-actions"],["shButton","",3,"click"],[1,"mobile-actions"],["shButton","",1,"small","menu-mobile-toggle"],[1,"hide-text"],["menu",""],[1,"in-menu"],[3,"click"],["shButton",""]]},template:function(n,e){n&1&&(Zi(0,"div",3),Ig(1,"app-mobile-menu-toggle")(2,"app-backup-progress",4),Zi(3,"div",5)(4,"div",6),lT(5,ze,1,0,"app-remote-connectivity-status"),lT(6,Ke,2,1),Zi(7,"button",7),Hg("click",function(){return e.pauseResume()}),Fg(8,0),lT(9,We,2,0)(10,je,2,0),jg(),Wl(),Zi(11,"button",7),Hg("click",function(){return e.openThrottleSettingsDialog()}),Zi(12,"sh-icon"),HC(13,"speedometer"),Wl()()(),Zi(14,"div",8)(15,"sh-menu")(16,"button",9),lT(17,Ze,1,0,"app-remote-connectivity-status",10),Zi(18,"sh-icon"),HC(19,"dots-three-vertical-bold"),Wl()(),zl(20,11),lT(21,qe,1,0,"app-remote-connectivity-status",12),lT(22,Qe,4,2,"button"),Zi(23,"button",13),Hg("click",function(){return e.pauseResume()}),Zi(24,"sh-icon"),HC(25),Wl(),HC(26),Wl(),Zi(27,"button",13),Hg("click",function(){return e.openThrottleSettingsDialog()}),Zi(28,"sh-icon"),HC(29,"speedometer"),Wl(),HC(30," Throttle Settings "),Wl(),Ql(),Wl()()()()),n&2&&(bE(5),uT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?5:-1),bE(),uT(e.runningTask()?6:-1),bE(),Kg("loading",e.isResuming()),bE(2),uT(e.clientIsRunning()?9:10),bE(8),uT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?17:-1),bE(4),uT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?21:-1),bE(),uT(e.runningTask()?22:-1),bE(3),im(e.clientIsRunning()?"pause":"play"),bE(),Yl(" ",e.clientIsRunning()?"Pause":"Resume"," "));},dependencies:[x,N,v,ve$1,V,W],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-4);position:sticky;top:0;z-index:2000;background:var(--base-1)}[_nghost-%COMP%]:has(sh-progress-bar){padding:1rem 1rem 1.5rem}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.global-progress[_ngcontent-%COMP%]{flex:1 0;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%], .current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:none}}.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:none}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:flex}}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%]{position:relative}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%] app-remote-connectivity-status[_ngcontent-%COMP%]{position:absolute;top:-.25rem;right:-.25rem}.menu-status-item[_ngcontent-%COMP%]{padding:.5rem 1rem;display:flex;flex-direction:column;gap:.25rem;border-bottom:1px solid var(--base-4);margin-bottom:.25rem}.menu-status-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.875rem}"]})};export{W,te as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {g as gw,S as lC,Y as uC}from'./main-X6MUEPX4.js';var o=["*"],c=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["sh-list"]],hostAttrs:["role","list"],ngContentSelectors:o,decls:1,vars:0,template:function(e,n){e&1&&(lC(),uC(0));},styles:[`.sh-sortable{position:relative}.sh-sortable.dragging [draggable],.sh-sortable.dragging .sortable-ghost{cursor:grabbing;transition:transform 40ms linear}.sh-sortable [draggable]{transform:translate(0);transition:none;z-index:2;-webkit-user-select:none;user-select:none}.sh-sortable:not(.sh-sortable-tree) [draggable]{background:var(--base-1)}.sh-sortable:not(.sh-sortable-tree) [draggable]:not(:has([sort-handle])){cursor:grab}.sh-sortable .sortable-ghost{opacity:.5;z-index:10}.sh-sortable.item-dragged-out .sortable-ghost{display:none}.sh-sortable [sort-handle]{cursor:grab}.sh-sortable.sh-sortable-tree [draggable]{transform:none!important;transition:none!important;z-index:auto}.sh-sortable.sh-sortable-tree .sortable-ghost{z-index:0!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-before:before,.sh-sortable.sh-sortable-tree .sortable-ghost.drop-after:after{display:none!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-inside{outline:none!important;background:inherit!important}.sh-sortable.sh-sortable-tree .drop-inside{background:var(--primary-3)!important;outline:2px solid var(--primary-8)!important;outline-offset:-.125rem;border-radius:var(--shape-1, 4px)}.sh-sortable.sh-sortable-tree .drop-inside .node-icon,.sh-sortable.sh-sortable-tree .drop-inside sh-tree-node .sh-tree-node-left sh-icon{color:var(--primary-8)!important}.sh-sortable.sh-sortable-tree .drop-before{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-before:before{content:"";position:absolute;top:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}.sh-sortable.sh-sortable-tree .drop-after{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-after:after{content:"";position:absolute;bottom:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}sh-list{--list-s: var(--shape-2);--list-active-bg: var(--base-1);--list-color: var(--base-9);--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid --list-active-bg;--list-p: 1.25rem 1rem;--list-item-p: .5rem .75rem;--list-item-gap: .5rem;width:100%;padding:var(--list-p);gap:.5rem;display:flex;flex-direction:column}sh-list.base-1{--list-active-bg: var(--base-1);--list-active-bs: var(--box-shadow-20)}sh-list.outlined{--list-active-bg: transparent;--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid var(--primary-8)}sh-list.type-b{--list-p: 0;--list-item-p: .625rem .75rem;--list-item-gap: .75rem;--list-s: var(--shape-2)}sh-list.type-b>[action],sh-list.type-b>[item]{color:var(--base-10)}sh-list.type-b>[action].active,sh-list.type-b>[action].selected,sh-list.type-b>[item].active,sh-list.type-b>[item].selected{background:rgb(from var(--base-3) r g b/90%);color:var(--base-12)}sh-list.type-b>[action].active sh-icon:first-child,sh-list.type-b>[action].selected sh-icon:first-child,sh-list.type-b>[item].active sh-icon:first-child,sh-list.type-b>[item].selected sh-icon:first-child{color:var(--primary-8)}sh-list.type-b>[action].active .description,sh-list.type-b>[action].selected .description,sh-list.type-b>[item].active .description,sh-list.type-b>[item].selected .description{color:var(--base-9)}sh-list.type-b>[action] sh-icon:first-child,sh-list.type-b>[item] sh-icon:first-child{font-size:1.125rem;color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .text-group,sh-list.type-b>[item] .text-group{display:flex;flex-direction:column;flex:1}sh-list.type-b>[action] .label,sh-list.type-b>[item] .label{font:var(--paragraph-30B)}sh-list.type-b>[action] .description,sh-list.type-b>[item] .description{font:var(--paragraph-40);color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .shortcut,sh-list.type-b>[item] .shortcut{display:flex;gap:.25rem}sh-list.type-b>[action] .shortcut kbd,sh-list.type-b>[item] .shortcut kbd{font-family:inherit;background:rgb(from var(--base-3) r g b/80%);border:1px solid rgb(from var(--base-4) r g b/60%);color:var(--base-8);border-radius:var(--shape-1);padding:.125rem .375rem;font-size:.6875rem;line-height:1;box-shadow:0 1px #0000001a}sh-list:empty{padding:0}sh-list>[title]{color:var(--base-8);margin:0 .75rem;font:var(--paragraph-30);line-height:1.5rem}sh-list[shsortable] [item]:active{transform:scale(1)}sh-list>[action],sh-list>[item]{border-radius:var(--list-s);padding:var(--list-item-p);font:var(--paragraph-30B);color:var(--list-color);border:var(--list-item-b);display:flex;align-items:center;gap:var(--list-item-gap);width:100%;-webkit-user-select:none;user-select:none;appearance:none;border:0;text-align:left;text-wrap:balance;background-color:transparent;text-decoration:none;transition:transform 125ms linear,box-shadow 125ms linear;transform:scale(1)}sh-list>[action]:active,sh-list>[item]:active{--list-active-bs: var(--box-shadow-10);transform:scale(.98)}sh-list>[action]:focus,sh-list>[item]:focus{outline:none}sh-list>[action]:focus-visible,sh-list>[item]:focus-visible{outline:2px solid var(--primary-8);outline-offset:2px}sh-list>[action] [suffix],sh-list>[item] [suffix]{margin-left:auto;color:var(--base-8)}sh-list :has(input),sh-list>[action]{cursor:pointer}sh-list>[item]:has(input:checked),sh-list>[action]:has(input:checked),sh-list>[action].active,sh-list>[action].selected{--list-color: var(--base-12);background-color:var(--list-active-bg);box-shadow:var(--list-active-bs);border:var(--list-item-active-b)}sh-list.primary>[item]:has(input:checked) sh-icon:first-child,sh-list.primary>[action]:has(input:checked) sh-icon:first-child,sh-list.primary>[action].active sh-icon:first-child,sh-list.primary>[action].selected sh-icon:first-child{color:var(--primary-8)}sh-list.accent>[item]:has(input:checked) sh-icon:first-child,sh-list.accent>[action]:has(input:checked) sh-icon:first-child,sh-list.accent>[action].active sh-icon:first-child,sh-list.accent>[action].selected sh-icon:first-child{color:var(--accent-8)}sh-list.warn>[item]:has(input:checked) sh-icon:first-child,sh-list.warn>[action]:has(input:checked) sh-icon:first-child,sh-list.warn>[action].active sh-icon:first-child,sh-list.warn>[action].selected sh-icon:first-child{color:var(--warn-8)}sh-list.error>[item]:has(input:checked) sh-icon:first-child,sh-list.error>[action]:has(input:checked) sh-icon:first-child,sh-list.error>[action].active sh-icon:first-child,sh-list.error>[action].selected sh-icon:first-child{color:var(--error-8)}sh-list.success>[item]:has(input:checked) sh-icon:first-child,sh-list.success>[action]:has(input:checked) sh-icon:first-child,sh-list.success>[action].active sh-icon:first-child,sh-list.success>[action].selected sh-icon:first-child{color:var(--success-8)}
|
|
2
2
|
`],encapsulation:2});}}return t})();export{c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {w}from'./chunk-CpY-WOcD.js';import'./chunk-BG8y51P2.js';import'./chunk-B20GDhu-.js';import {u as un,_ as _n,C as Ct,a as mn,K as Ke}from'./chunk-3iAIXnG6.js';import'./chunk-644SEuYO.js';import'./chunk-hTxREuXu.js';import'./chunk-OpdQrdKp.js';import'./chunk-Bz49u_nH.js';import'./chunk-1DRz_1dv.js';import'./chunk-BmOgPfpY.js';import'./chunk-Mj9aFt3b.js';import {G,A}from'./chunk-5q0UK__c.js';import {v as ve$1}from'./chunk-CaQaYVo7.js';import'./chunk-B5S2d_Pm.js';import'./chunk-CRhQXQUC.js';import'./chunk-CZu3210D.js';import'./chunk-DF2Ac802.js';import {T,e as ee,ax as W,a6 as be,by as ve,B as w1,G as Ge,N as Nt,au as h,g as gw,v,a as N,a0 as de,u as ue,i as ET,al as dm,Z as Zi,w as Hg,o as oC,W as Wl,l as lT,n as lm,P as Pd,p as qC,L as Ld,F as Fg,d as Ig,j as jg,am as GC,b as bE,c as uT,y as cm,z as vg,s as sC,aF as JC,O as qg,R as hC,h as aC,H as HC,aR as zl,aS as Ql,ap as zC,t as bD,a3 as XC,M as MD}from'./main-X6MUEPX4.js';import'./chunk-8A93BNds.js';import'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-Bfg1Kjif.js';import'./chunk-BxBZMjtQ.js';import'./chunk-qUlwoHQn.js';import'./chunk-Dn7TWCfq.js';import'./chunk-CUo9Jt8-.js';import'./chunk-DM-zhIVI.js';var Oe=["formRef"],Re=["testUrl"],Ne=()=>({maxWidth:"700px",width:"100%"});function De(o,i){if(o&1){let e=ET();Zi(0,"button",24),Hg("click",function(){Pd(e);let t=aC();return Ld(t.openTargetUrlDialog())}),Fg(1,5),Ig(2,"sh-icon"),jg(),Wl();}}function Ie(o,i){if(o&1){let e=ET();Zi(0,"button",24),Hg("click",function(){Pd(e);let t=aC(2);return Ld(t.copyTargetUrl())}),Fg(1,7),Ig(2,"sh-icon"),jg(),Wl();}}function fe(o,i){if(o&1){let e=ET();Zi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),HC(3,"dots-three-vertical"),Wl()(),zl(4,25),Zi(5,"button",24),Hg("click",function(){Pd(e);let t=aC();return Ld(t.openTargetUrlDialog())}),Fg(6,6),Ig(7,"sh-icon"),jg(),Wl(),lT(8,Ie,3,0,"button",15),Ql(),Wl();}if(o&2){aC();let e=zC(0);bE(8),uT(e?8:-1);}}function he(o,i){if(o&1){let e=ET();Zi(0,"app-destination-list-item",17)(1,"button",20),Hg("click",function(){Pd(e);let t=aC();return Ld(t.removeDestination())}),oC(2,8),Wl()();}if(o&2){aC();let e=zC(12);vg("destination",e);}}function ye(o,i){if(o&1){let e=ET();Zi(0,"app-destination-list",26),Hg("setDestination",function(t){Pd(e);let s=aC();return Ld(s.setDestination(t))}),Wl();}}function Me(o,i){if(o&1){let e=ET();Zi(0,"app-single-destination",27),lm("targetUrlChange",function(t){Pd(e);let s=aC();return qC(s.targetUrlModel,t)||(s.targetUrlModel=t),Ld(t)}),Wl();}if(o&2){let e=aC();cm("targetUrl",e.targetUrlModel);}}function Pe(o,i){o&1&&(Fg(0,4,1),Ig(1,"sh-icon",22),jg());}function Ae(o,i){o&1&&(Fg(0,4,2),Ig(1,"sh-icon"),jg());}function Le(o,i){if(o&1){let e=ET();Zi(0,"sh-dialog",28),lm("isOpenChange",function(t){Pd(e);let s=aC();return qC(s.targetUrlDialogOpen,t)||(s.targetUrlDialogOpen=t),Ld(t)}),Zi(1,"header",29)(2,"div",30)(3,"h2"),oC(4,9),Wl(),Zi(5,"sh-alert",31),oC(6,10),Wl()()(),Zi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),lm("ngModelChange",function(t){Pd(e);let s=aC();return qC(s.targetUrlCtrl,t)||(s.targetUrlCtrl=t),Ld(t)}),Wl(),bD(),Wl()(),Zi(10,"footer",34)(11,"button",20),Hg("click",function(){Pd(e);let t=aC();return Ld(t.closeTargetUrlDialog(false))}),HC(12,"Cancel"),Wl(),Zi(13,"button",35),Hg("click",function(){Pd(e);let t=aC();return Ld(t.closeTargetUrlDialog(true))}),Fg(14,11),Ig(15,"sh-icon"),jg(),Wl()()();}if(o&2){let e=aC();cm("isOpen",e.targetUrlDialogOpen),vg("options",XC(3,Ne)),bE(9),cm("ngModel",e.targetUrlCtrl),MD();}}var x=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(w);formRef=w1.required("formRef");testUrlComponent=w1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?G(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=A(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent});}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-restore-destination"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Oe,5)(n.testUrlComponent,Re,5),e&2&&hC(2);},features:[JC([Ke])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=sC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let s;s=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let U;U=$localize`Change`;let b;b=$localize`Edit target URL`;let G;G=$localize`Be careful, this will overwrite everything you have in your destination.`;let k;return k=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,s,g,U,b,G,k,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=ET();dm(0),Zi(1,"form",12,0),Hg("submit",function(){return n.next()}),Zi(3,"header")(4,"h3",13)(5,"span"),oC(6,2),Wl(),Zi(7,"div",14),lT(8,De,3,0,"button",15)(9,fe,9,1,"sh-menu"),Wl()(),Zi(10,"app-test-url",16,1),lm("targetUrlChange",function(g){return Pd(t),qC(n.targetUrlModel,g)||(n.targetUrlModel=g),Ld(g)})("testSignalChange",function(g){return Pd(t),qC(n.testSignal,g)||(n.testSignal=g),Ld(g)}),Wl(),dm(12),lT(13,he,3,1,"app-destination-list-item",17),Wl(),lT(14,ye,1,0,"app-destination-list"),lT(15,Me,1,1,"app-single-destination",18),Zi(16,"div",19)(17,"button",20),Hg("click",function(){return n.goBack()}),Fg(18,3),Ig(19,"sh-icon"),jg(),Wl(),Zi(20,"button",21),Fg(21,4),lT(22,Pe,2,0,"sh-icon",22)(23,Ae,2,0,"sh-icon"),jg(),Wl()()(),lT(24,Le,16,4,"sh-dialog",23);}if(e&2){let t=GC(!!n.targetUrlModel());bE(8),uT(t?9:8),bE(2),cm("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),vg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),bE(2);let s=GC(n.selectedDestinationTypeOption());bE(),uT(s?13:-1),bE(),uT(t?-1:14),bE(),uT(t?15:-1),bE(5),vg("disabled",n.testSignal()=="testing"||!t),bE(2),uT(n.testSignal()=="testing"?22:23),bE(2),uT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[un,_n,Ct,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe,ve$1,N,de,ue,mn],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
|
|
2
|
+
export{x as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {T,
|
|
1
|
+
import {T,bn as N,E as E1,ag as D1,Q as Qa,bd as ce,g as gw,a as N$1,S as lC,Z as Zi,w as Hg,Y as uC,l as lT,W as Wl,aE as yg,b as bE,c as uT,x as xC,K as Kg,H as HC}from'./main-X6MUEPX4.js';var k=[[["","title",""]],"*"],M=["[title]","*"];function j(t,S){t&1&&HC(0,"Title");}function E(t,S){t&1&&(Zi(0,"sh-icon",1),HC(1,"caret-down"),Wl());}var I=(()=>{class t{constructor(){this.#e=T(N),this.disableToggle=E1(false),this.isActive=D1(false),this.#t=Qa(()=>{this.disableToggle()&&this.isActive.set(true);}),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("card",{color:this.color,variant:this.variant});}#e;#t;toggle(){this.isActive.set(!this.isActive());}handleKeyDown(o){this.#e.matches(o,"toggle-card.toggle")&&(o.preventDefault(),this.toggle());}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["sh-toggle-card"]],hostVars:4,hostBindings:function(i,e){i&2&&(xC(e.hostClasses()),Kg("active",e.isActive()));},inputs:{disableToggle:[1,"disableToggle"],isActive:[1,"isActive"],color:[1,"color"],variant:[1,"variant"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:M,decls:7,vars:4,consts:[["role","button",3,"click","keydown"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(i,e){i&1&&(lC(k),Zi(0,"h3",0),Hg("click",function(){return e.disableToggle()?null:e.toggle()})("keydown",function(D){return e.disableToggle()?null:e.handleKeyDown(D)}),uC(1,0,null,j,1,0),lT(3,E,2,0,"sh-icon",1),Wl(),Zi(4,"div",2)(5,"div",3),uC(6,1),Wl()()),i&2&&(yg("tabindex",e.disableToggle()?null:"0")("aria-expanded",e.disableToggle()?null:e.isActive()?"true":"false")("aria-disabled",e.disableToggle()?"true":null),bE(3),uT(e.disableToggle()?-1:3));},dependencies:[N$1],styles:[`sh-toggle-card{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-2)}sh-toggle-card.type-a{background-color:transparent;border:var(--border-10)}sh-toggle-card.active .collapsable{grid-template-rows:1fr}sh-toggle-card.active .content{padding:0 1rem 1rem}sh-toggle-card.active .content:empty{padding:0 1rem}sh-toggle-card.active sh-icon.toggle-icon{transform:rotate(180deg)}sh-toggle-card h3{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);padding:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}sh-toggle-card sh-icon.toggle-icon{cursor:pointer;transform:rotate(0);transform-origin:center;transition:transform .2s ease}sh-toggle-card .collapsable{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s linear;overflow:hidden}sh-toggle-card .content{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;min-height:0;overflow:hidden}
|
|
2
2
|
`],encapsulation:2});}}return t})();export{I};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {c}from'./chunk-9Pc-waxi.js';import {ShipTable as ot}from'./chunk-BSCOyYHH.js';import {c as c$1}from'./chunk-Mj9aFt3b.js';import {T,E as E1,Q as Qa,G as Ge,g as gw,a as N,v as v$1,aL as ci,l as lT,c as uT,K as Kg,Z as Zi,o as oC,W as Wl,d as Ig,a1 as pT,h as aC,ah as Yg,z as vg,b as bE,a2 as hT,i as ET,w as Hg,P as Pd,L as Ld,H as HC,aO as sb,J as im,aP as lb,aa as Yl,aq as dT}from'./main-X6MUEPX4.js';import'./chunk-DF2Ac802.js';import'./chunk-C8Zr0vl3.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Zi(0,"div",4),oC(1,0),Wl());}function U(t,n){if(t&1&&(Zi(0,"li"),HC(1),Wl()),t&2){let e=n.$implicit;bE(),im(e);}}function X(t,n){if(t&1&&(Zi(0,"strong"),HC(1,"# Exception"),Wl(),Zi(2,"ol",15),pT(3,U,2,1,"li",null,dT),Wl()),t&2){let e=aC(3).$implicit,a=aC(2);bE(3),hT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Zi(0,"li"),HC(1),Wl()),t&2){let e=n.$implicit;bE(),im(e);}}function z(t,n){if(t&1&&(Zi(0,"strong"),HC(1,"# Message"),Wl(),Zi(2,"ol",15),pT(3,j,2,1,"li",null,dT),Wl()),t&2){let e=aC(3).$implicit,a=aC(2);bE(3),hT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Zi(0,"code"),lT(1,X,5,0),lT(2,z,5,0),Wl()),t&2){let e=aC(2).$implicit;bE(),uT(e.Exception?1:-1),bE(),uT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Zi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),HC(4),Wl(),Zi(5,"div",14),HC(6),Wl(),Zi(7,"div",14),HC(8),Wl(),Zi(9,"div",14),HC(10),Wl(),Zi(11,"div",14),HC(12),Wl()(),lT(13,W,3,2,"code"),Wl()()),t&2){let e=aC().$implicit;bE(4),Yl("ID: ",e.ID),bE(2),Yl("Type: ",e.Type),bE(2),Yl("Tag: ",e.Tag),bE(2),Yl("TaskID: ",e.TaskID),bE(2),Yl("MessageID: ",e.MessageID),bE(),uT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=ET();Zi(0,"tr",10),Hg("click",function(){let u=Pd(e).$implicit,g=aC(2);return Ld(g.toggleRow(u.ID))}),Zi(1,"td"),HC(2),sb(3,"date"),Wl(),Zi(4,"td"),HC(5),Wl(),Zi(6,"td",8)(7,"button",11)(8,"sh-icon"),HC(9,"caret-down"),Wl()()()(),lT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=aC(2);bE(2),im(lb(3,5,e.When,"medium")),bE(3),im(a.subStringMessage(e.Message)),bE(2),Kg("rotated-icon",e.ID===a.openRowId()),bE(3),uT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Zi(0,"sh-table",6)(1,"tr",7)(2,"th"),oC(3,1),Wl(),Zi(4,"th"),oC(5,2),Wl(),Ig(6,"th",8),Wl(),pT(7,q,11,8,null,null,B),Zi(9,"div",9),oC(10,3),Wl()()),t&2){let e=aC();Yg("grid-template-columns","auto 1fr auto"),Kg("type-b",true),vg("data",e.logs())("loading",e.logsLoading()),bE(7),hT(e.logs());}}var v=class t{#e=T(c);whenFilter=E1();backupIdFilter=E1();polling=E1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=Qa(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ge(null);whenEffect=Qa(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=Qa(()=>{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=gw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Kg("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&&lT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&uT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c$1,v$1,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {ShipTable as ot}from'./chunk-BSCOyYHH.js';import'./chunk-DF2Ac802.js';import {T,ab as J,a6 as be,a5 as m,e as ee,E as E1,N as Nt,G as Ge,Q as Qa,aj as m$1,ak as l,b5 as Ae$1,b6 as zu,C as Zu,au as h,g as gw,v,_ as _t,aJ as m$2,b3 as m$3,Z as Zi,o as oC,W as Wl,l as lT,w as Hg,b as bE,av as Vg,aw as iC,c as uT,z as vg,a3 as XC,K as Kg,s as sC,ad as sy,d as Ig,i as ET,n as lm,P as Pd,h as aC,p as qC,L as Ld,a1 as pT,y as cm,a2 as hT,H as HC,aO as sb,t as bD,J as im,aP as lb,aT as cb,M as MD}from'./main-X6MUEPX4.js';import {d}from'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-Bfg1Kjif.js';import {$}from'./chunk-DM-zhIVI.js';var Te=()=>["/"],Pe=(s,i)=>i.Version;function Oe(s,i){s&1&&(Zi(0,"div",11),Ig(1,"sh-progress-bar",17),Zi(2,"p"),oC(3,3),Wl()());}function Re(s,i){s&1&&(Zi(0,"div",12)(1,"p"),oC(2,4),Wl()());}function Ae(s,i){if(s&1){let e=ET();Zi(0,"tr")(1,"td"),HC(2),Wl(),Zi(3,"td"),HC(4),sb(5,"relativeTime"),Wl(),Zi(6,"td"),HC(7),sb(8,"relativeTime"),Wl(),Zi(9,"td"),HC(10),sb(11,"bytes"),Wl(),Zi(12,"td"),HC(13),Wl(),Zi(14,"td")(15,"sh-form-field")(16,"input",24),Hg("ngModelChange",function(_){let E=Pd(e).$implicit,m=aC(2);return Ld(m.updateLabel(E.Version,_))}),Wl(),bD(),Wl()()();}if(s&2){let e=i.$implicit,n=aC(2);bE(2),im(e.Version),bE(2),im(lb(5,7,e.Time,true)),bE(3),im(lb(8,10,e.Time,false)),bE(3),im(cb(11,13,e.FileSizes)),bE(3),im(e.FileCount),bE(3),vg("ngModel",e.EditedLabel)("disabled",n.isSaving()),MD();}}function Ie(s,i){if(s&1){let e=ET();Zi(0,"sh-table",18),lm("sortByColumnChange",function(_){Pd(e);let E=aC();return qC(E.sortByColumn,_)||(E.sortByColumn=_),Ld(_)}),Zi(1,"tr",19)(2,"th",20),oC(3,5),Wl(),Zi(4,"th",20),oC(5,6),Wl(),Zi(6,"th",20),oC(7,7),Wl(),Zi(8,"th",21),oC(9,8),Wl(),Zi(10,"th",22),oC(11,9),Wl(),Zi(12,"th",23),oC(13,10),Wl()(),pT(14,Ae,17,15,"tr",null,Pe),Wl();}if(s&2){let e=aC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),bE(14),hT(e.versions());}}var B=class s{#e=T(J);#i=T(be);#n=T(m);#t=T(ee);id=E1.required();backup=Nt(()=>{this.#n.backups();return this.#n.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:i})=>sy(()=>this.#e.postApiV2BackupListFilesets({body:{BackupId:i.id}}))});isLoading=Nt(()=>this.versionsResource.isLoading());isSaving=Ge(false);versions=Ge([]);constructor(){Qa(()=>{let i=this.versionsResource.value();if(i){let e=(i.Data??[]).slice().sort((n,_)=>n.Time<_.Time?1:n.Time>_.Time?-1:0);this.versions.set(e.map(n=>m$1(l({},n),{EditedLabel:n.Label??""})));}});}changedItems=Nt(()=>this.versions().filter(i=>(i.Label??"")!==i.EditedLabel.trim()));sortByColumn=Ge("version");updateLabel(i,e){this.versions.update(n=>n.map(_=>_.Version===i?m$1(l({},_),{EditedLabel:e}):_));}saveLabels(){let i=this.changedItems();i.length!==0&&(this.isSaving.set(true),Ae$1(i).pipe(zu(e=>this.#e.postApiV2BackupSetVersionLabel({body:{BackupId:this.id(),Version:e.Version,Label:e.EditedLabel.trim()===""?null:e.EditedLabel.trim()}})),Zu(()=>this.isSaving.set(false))).subscribe({complete:()=>{this.#t.navigate(["/"]);},error:e=>{this.#i.open(h,{data:{title:$localize`Failed to set version labels`,message:e.message??$localize`Unknown error`,confirmText:$localize`OK`,cancelText:void 0}});}}));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=gw({type:s,selectors:[["app-version-labels"]],inputs:{id:[1,"id"]},decls:10,vars:10,consts:()=>{let i;i=$localize`Set version labels for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let n;n=$localize`{VAR_PLURAL, plural, =1 {1 label} other {{INTERPOLATION} labels}}`,n=sC(n,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize` Save ${n}:ICU@@198601359091253570: `;let E;E=$localize`Fetching versions from destination...`;let m;m=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let V;V=$localize`Timestamp`;let h;h=$localize`When`;let y;y=$localize`Size`;let $;$=$localize`Files`;let v;v=$localize`Label`;let G;return G=$localize`Add label...`,[i,e,_,E,m,b,V,h,y,$,v,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","primary",3,"click","disabled"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],["type","text","placeholder",G,1,"label",3,"ngModelChange","ngModel","disabled"]]},template:function(e,n){e&1&&(Zi(0,"h3"),oC(1,0),Wl(),lT(2,Oe,4,0,"div",11)(3,Re,3,0,"div",12)(4,Ie,16,3,"sh-table",13),Zi(5,"div",14)(6,"button",15),oC(7,1),Wl(),Zi(8,"button",16),Hg("click",function(){return n.saveLabels()}),oC(9,2),Wl()()),e&2&&(bE(),Vg(n.backup()?.Backup?.Name),iC(1),bE(),uT(n.isLoading()?2:n.versions().length===0?3:4),bE(4),vg("routerLink",XC(9,Te))("disabled",n.isSaving()),bE(2),Kg("loading",n.isSaving()),vg("disabled",n.isSaving()||n.changedItems().length===0||n.isLoading()),bE(),Vg(n.changedItems().length)(n.changedItems().length),iC(9));},dependencies:[Bn,Ze,Rn,Jt,v,d,ot,_t,Fe,m$2,m$3],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.label[_ngcontent-%COMP%]{width:100%}.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}"]})};export{B as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {t as te}from'./chunk-Ied7KwvV.js';import'./chunk-CNwmuSlJ.js';import {O}from'./chunk-B20GDhu-.js';import {m}from'./chunk-2QKZNH3T.js';import {r}from'./chunk-1DRz_1dv.js';import {J}from'./chunk-BmOgPfpY.js';import'./chunk-CaQaYVo7.js';import {N as Nt$1}from'./chunk-B5S2d_Pm.js';import {c}from'./chunk-CZu3210D.js';import {D}from'./chunk-DF2Ac802.js';import {c1 as Ms,c2 as j,c3 as ft,c4 as go,T,a6 as be,f,I,c5 as f$1,G as Ge,N as Nt,Q as Qa,C as Zu,c6 as wt,au as h,g as gw,v as v$1,a as N,u as ue,d as Ig,Z as Zi,o as oC,W as Wl,l as lT,w as Hg,t as bD,F as Fg,j as jg,n as lm,b4 as cg,b as bE,c as uT,K as Kg,z as vg,a3 as XC,M as MD,av as Vg,aw as iC,y as cm,s as sC,p as qC,ab as J$1,B as w1,ad as sy,b7 as lg,b8 as sT,b9 as aT,O as qg,R as hC,af as eo,E as E1,ag as D1,bd as ce,S as lC,U as ql,Y as uC,X as Gl,H as HC,ao as Bg,V as Eg,aD as sm,ah as Yg,x as xC,h as aC,J as im,i as ET,P as Pd,L as Ld,as as Yp,a9 as QC,aa as Yl}from'./main-X6MUEPX4.js';import {d}from'./chunk-C8Zr0vl3.js';import {F as Fe}from'./chunk-Be4WXTyA.js';import {B as Bn$1,Z as Ze,o as on,R as Rn$1,J as Jt,G as Gn$1}from'./chunk-Bfg1Kjif.js';import {a as at}from'./chunk-BxBZMjtQ.js';import {v}from'./chunk-qUlwoHQn.js';import {R}from'./chunk-Dn7TWCfq.js';import'./chunk-CUo9Jt8-.js';import'./chunk-DM-zhIVI.js';var gn=[[["label"]],[["input","type","range"]]],Cn=["label","input[type=range]"],dn=(()=>{class i{constructor(){this.hasInput=Ge(false),this.#n=T(eo),this.#i=null,this.#e=null,this.#t=0,this.unit=E1(""),this.value=D1(this.#t),this.inputState=Ge({min:0,max:100,step:1}),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.sharp=E1(void 0),this.alwaysShow=E1(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(),a=this.value()??e;if(isNaN(a))return 0;let l=n-e;if(l===0)return 0;let m=(a-e)/l*100;return Math.max(0,Math.min(100,m))}),this.trackFilledPercentage=Nt(()=>this.valuePercentage()),this.thumbPositionPercentage=Nt(()=>this.valuePercentage()),this.syncModelToInputEffect=Qa(()=>{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.#s(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:a,max:l}=this.inputState();this.value.set(Math.max(a,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 a=e.currentTarget.getBoundingClientRect(),l=e.clientX-a.left,m=a.width,{min:u,max:E,step:f}=this.inputState(),W=E-u;if(m>0&&W!==0&&f>0){let Q=(l/m*W+u-u)/f,J=u+Math.round(Q)*f,V=this.#o(f);J=parseFloat(J.toFixed(V));let Y=Math.max(u,Math.min(E,J));this.value.set(Y);}}#s(e=false){if(!this.#e)return;let n=parseFloat(this.#e.min??"0")??0,a=parseFloat(this.#e.max??"100")??100,l=this.#e.step,m=1;if(l&&l.toLowerCase()!=="any"){let E=parseFloat(l);!isNaN(E)&&E>0&&(m=E);}this.inputState.set({min:n,max:a,step:m});let u=parseFloat(this.#e.value??String(n))??n;if(e&&this.value()!==this.#t){let E=this.value(),f=Math.max(n,Math.min(a,E));u!==f&&(this.#e.value=String(f)),E!==f&&this.value.set(f);}else {let E=Math.max(n,Math.min(a,u));this.value()!==E&&this.value.set(E);}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(n=>{let a=false;for(let l of n)if(l.type==="attributes"&&e.includes(l.attributeName??"")){a=true;break}a&&this.#s(false);}),this.#i.observe(this.#e,{attributes:true,attributeFilter:e});}#o(e){if(isNaN(e)||Math.floor(e)===e)return 0;let a=e.toString().split(".")[1];return a?a.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=gw({type:i,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(n,a){n&2&&(xC(a.hostClasses()),Kg("sh-range-slider",true)("has-input",a.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:Cn,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,a){n&1&&(lC(gn),ql(0,"div",0),uC(1),Gl(),ql(2,"div",1)(3,"div",2),HC(4),Gl(),ql(5,"div",3),Bg("click",function(m){return a.trackEvent(m)}),uC(6,1),ql(7,"div",4),Eg(8,"div",5),Gl(),ql(9,"div",6)(10,"div",7)(11,"div",8),HC(12),Gl()()()(),ql(13,"div",9),HC(14),Gl()()),n&2&&(bE(4),sm("",a.inputState().min,"",a.unit()),bE(4),Yg("width",a.trackFilledPercentage(),"%"),bE(),Yg("left",a.thumbPositionPercentage(),"%"),bE(3),sm("",a.value(),"",a.unit()),bE(2),sm("",a.inputState().max,"",a.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 pn=["formRef"],En=()=>[import('./chunk-BG8y51P2.js').then(i=>i.OptionsListComponent)];function mn(i,t){i&1&&(Zi(0,"sh-alert",3),oC(1,1),Wl());}function Nn(i,t){if(i&1){let e=ET();Zi(0,"app-options-list",5),lm("optionsChange",function(a){Pd(e);let l=aC();return qC(l.settings,a)||(l.settings=a),Ld(a)}),Wl();}if(i&2){let e=aC();cm("options",e.settings),vg("hasFreeTextSettings",true);}}var K=class i{#n=T(R);#i=T(J$1);formRef=w1.required("formRef");settings=Ge([]);isSubmitting=Ge(false);isLoadingOptions=Ge(true);saved=Ge(false);lastRecievedServerSettings=Ge({});serverSettingsEffect=Qa(()=>{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,a],l)=>{if(n.startsWith("--")){let m=n.substring(2);this.settings.update(u=>(u.some(E=>E.Name===m||E.Name===n)||u.push({Name:n,Value:a}),u));}l===e.length-1&&this.isLoadingOptions.set(false);});});submit(){this.isSubmitting.set(true);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(u=>u.Name?.startsWith("--")?u.Name:`--${u.Name}`),l=Object.keys(e).filter(u=>u.startsWith("--")).filter(u=>!n.includes(u)),m=t.reduce((u,E)=>{let f=E.Name?.startsWith("--")?E.Name:`--${E.Name}`;return u[f]=E.Value,u},{});l.forEach(u=>{m[u]=null;}),sy(()=>this.#i.patchApiV1Serversettings({body:m})).pipe(Zu(()=>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=gw({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&qg(n.formRef,pn,5),e&2&&hC();},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&&(Zi(0,"div",2),lT(1,mn,2,0,"sh-alert",3),Zi(2,"button",4),Hg("click",function(){return n.submit()}),Fg(3,0),Ig(4,"sh-icon"),jg(),Wl()(),lg(5,Nn,1,2),sT(6,5,En)),e&2&&(bE(),uT(n.saved()?1:-1),bE(),Kg("loading",n.isSubmitting()),bE(4),aT(!n.isLoadingOptions()));},dependencies:[Gn$1,v$1,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 fn(i,t){if(i&1){let e=ET();Zi(0,"sh-form-field",12)(1,"input",13),lm("ngModelChange",function(a){Pd(e);let l=aC(2);return qC(l.registerUrl,a)||(l.registerUrl=a),Ld(a)}),Wl(),bD(),Wl(),Zi(2,"button",14),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.register())}),oC(3,0),Wl();}if(i&2){let e=aC(2);bE(),cm("ngModel",e.registerUrl),MD();}}function In(i,t){if(i&1&&(Zi(0,"div",9)(1,"label"),oC(2,1),Wl(),Zi(3,"a",15),HC(4),Wl()()),i&2){let e=aC(2);bE(3),vg("href",QC(e.claimUrl()),Yp),bE(),im(e.claimUrl());}}function Mn(i,t){i&1&&(Zi(0,"div",9)(1,"label"),oC(2,2),Wl()());}function Pn(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.cancel())}),oC(1,3),Wl();}}function On(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.disable())}),oC(1,4),Wl();}}function bn(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.enable())}),oC(1,5),Wl(),Zi(2,"button",16),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.delete())}),oC(3,6),Wl();}}function Rn(i,t){i&1&&(Fg(0,7,1),Ig(1,"sh-icon"),jg());}function Gn(i,t){i&1&&(Fg(0,7,2),Ig(1,"sh-icon"),jg());}function vn(i,t){if(i&1){let e=ET();Zi(0,"sh-chip",17),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.copyReportingUrl())}),Fg(1,7),lT(2,Rn,2,0,"sh-icon")(3,Gn,2,0,"sh-icon"),jg(),Wl();}if(i&2){let e=aC(2);bE(2),uT(e.copiedReportingUrl()===true?2:3);}}function yn(i,t){if(i&1&&(Zi(0,"div",8),lT(1,fn,4,1),lT(2,In,5,3,"div",9),lT(3,Mn,3,0,"div",9),lT(4,Pn,2,0,"button",10),lT(5,On,2,0,"button",10),lT(6,bn,4,0),lT(7,vn,4,1,"sh-chip",11),Wl()),i&2){let e=aC();bE(),uT(e.state()==="inactive"?1:-1),bE(),uT(e.state()==="registered"?2:-1),bE(),uT(e.state()==="registering"?3:-1),bE(),uT(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),bE(),uT(e.state()==="connected"||e.state()==="connecting"?5:-1),bE(),uT(e.state()==="disabled"?6:-1),bE(),uT(e.additionalReportingUrl()!==""&&e.state()!=="registered"?7:-1);}}var Se=class i{#n=T(v);#i=T(R);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=Ge(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=gw({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 a;a=$localize`Cancel registration`;let l;l=$localize`Disable console connection`;let m;m=$localize`Enable console connection`;let u;u=$localize` Delete console connection setup `;let E;return E=$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:`,E=sC(E),[t,e,n,a,l,m,u,E,[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&&lT(0,yn,8,7,"div",8),e&2&&uT(n.state()!=="unknown"?0:-1);},dependencies:[Bn$1,Ze,Rn$1,Jt,Fe,v$1,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 fe=[{value:"default",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:"none",label:$localize`None / disabled`}],Fn=new Set(["information","warning","error","crash","none"]),Tn=i=>{let t=(i??"").trim().toLowerCase();return t==="disabled"?"none":Fn.has(t)?t:"default"},un=i=>i==="default"?"":i;var Te=()=>({standalone:true});function $n(i,t){i&1&&(Zi(0,"sh-chip",97),oC(1,35),Wl());}function An(i,t){if(i&1&&(Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,34),Wl(),Zi(4,"p"),HC(5),Wl()(),Zi(6,"div",74),lT(7,$n,2,0,"sh-chip",97),Wl()()),i&2){let e=aC();bE(5),im(e.remoteControlStatus()),bE(2),uT(e.additionalReportingUrl()!==""&&e.remoteControlState()!=="registered"?7:-1);}}function Ln(i,t){if(i&1&&(Zi(0,"label"),Fg(1,39),Ig(2,"sh-icon",98),jg(),Wl()),i&2){let e=aC(3);bE(2),vg("shTooltip",e.remoteControlTooltip());}}function wn(i,t){if(i&1&&(Zi(0,"label"),Fg(1,40),Ig(2,"sh-icon",98),jg(),Wl()),i&2){let e=aC(3);bE(2),vg("shTooltip",e.remoteControlTooltip());}}function Dn(i,t){if(i&1&&(Zi(0,"label"),Fg(1,41),Ig(2,"sh-icon",98),jg(),Wl()),i&2){let e=aC(3);bE(2),vg("shTooltip",e.connectionStatusIndicatorTooltip());}}function xn(i,t){if(i&1&&(Zi(0,"label"),Fg(1,42),Ig(2,"sh-icon",98),jg(),Wl()),i&2){let e=aC(3);bE(2),vg("shTooltip",e.connectionStatusIndicatorTooltip());}}function kn(i,t){if(i&1){let e=ET();Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,37),Wl(),Zi(4,"p"),oC(5,38),Wl()(),Zi(6,"div",82)(7,"sh-toggle",83),Hg("checkedChange",function(a){Pd(e);let l=aC(2);return Ld(l.toggleConsoleControl(a))}),lT(8,Ln,3,1,"label")(9,wn,3,1,"label"),Wl(),Zi(10,"sh-toggle",83),Hg("checkedChange",function(a){Pd(e);let l=aC(2);return Ld(l.saveHideConsoleConnectionStatus(a))}),lT(11,Dn,3,1,"label")(12,xn,3,1,"label"),Wl()()();}if(i&2){let e=aC(2);bE(7),vg("checked",!e.consoleControlDisabled()),bE(),uT(e.consoleControlDisabled()?8:9),bE(2),vg("checked",!e.hideConsoleConnectionStatus()),bE(),uT(e.hideConsoleConnectionStatus()?11:12);}}function Xn(i,t){i&1&&(Zi(0,"label"),oC(1,45),Wl());}function Jn(i,t){i&1&&(Zi(0,"label"),oC(1,46),Wl());}function Vn(i,t){if(i&1){let e=ET();Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,43),Wl(),Zi(4,"p"),oC(5,44),Wl()(),Zi(6,"div",74)(7,"sh-toggle",83),Hg("checkedChange",function(a){Pd(e);let l=aC(2);return Ld(l.saveHideConsoleConnectionStatus(a))}),lT(8,Xn,2,0,"label")(9,Jn,2,0,"label"),Wl()()();}if(i&2){let e=aC(2);bE(7),vg("checked",!e.hideConsoleConnectionStatus()),bE(),uT(e.hideConsoleConnectionStatus()?8:9);}}function zn(i,t){if(i&1&&(Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,36),Wl(),Zi(4,"p"),HC(5),Wl()(),Zi(6,"div",74),Ig(7,"app-remote-control"),Wl()(),lT(8,kn,13,4,"section")(9,Vn,10,2,"section")),i&2){let e=aC();bE(5),im(e.remoteControlStatus()),bE(3),uT(e.remoteControlState()!="inactive"?8:9);}}function Un(i,t){i&1&&(Zi(0,"sh-icon",103),HC(1,"check"),Wl());}function Bn(i,t){i&1&&(Zi(0,"sh-icon",104),HC(1,"prohibit"),Wl());}function Hn(i,t){if(i&1){let e=ET();Zi(0,"button",108),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.updatePassphrase())}),oC(1,50),Wl();}if(i&2){let e=aC(2);Kg("loading",e.isUpdating());}}function Wn(i,t){if(i&1){let e=ET();Zi(0,"button",109),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.updatePassphrase())}),oC(1,51),Wl();}if(i&2){let e=aC(2);Kg("loading",e.isUpdating()),vg("disabled",true);}}function jn(i,t){if(i&1){let e=ET();Zi(0,"sh-form-field")(1,"label",99),oC(2,47),Wl(),Zi(3,"input",100),lm("ngModelChange",function(a){Pd(e);let l=aC();return qC(l.passphrase,a)||(l.passphrase=a),Ld(a)}),Wl(),bD(),Wl(),Zi(4,"sh-form-field")(5,"label",101),oC(6,48),Wl(),Zi(7,"input",102),lm("ngModelChange",function(a){Pd(e);let l=aC();return qC(l.repeatPassphrase,a)||(l.repeatPassphrase=a),Ld(a)}),Wl(),bD(),lT(8,Un,2,0,"sh-icon",103)(9,Bn,2,0,"sh-icon",104),Wl(),Zi(10,"div",79)(11,"button",105),Hg("click",function(){Pd(e);let a=aC();return Ld(a.cancelPasswordChange())}),oC(12,49),Wl(),lT(13,Hn,2,2,"button",106)(14,Wn,2,3,"button",107),Wl();}if(i&2){let e=aC();bE(3),cm("ngModel",e.passphrase),MD(),bE(4),vg("disabled",e.passphrase().length===0),cm("ngModel",e.repeatPassphrase),MD(),bE(),uT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),bE(3),Kg("loading",e.isUpdating()),bE(2),uT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14);}}function qn(i,t){i&1&&(Zi(0,"sh-icon",110),HC(1,"check"),Wl());}function Kn(i,t){if(i&1){let e=ET();Zi(0,"div",79)(1,"button",105),Hg("click",function(){Pd(e);let a=aC();return Ld(a.openPassphraseForm())}),oC(2,52),Wl(),lT(3,qn,2,0,"sh-icon",110),Wl();}if(i&2){let e=aC();bE(3),uT(e.passwordUpdated()?3:-1);}}function Qn(i,t){i&1&&(Zi(0,"label"),oC(1,53),Wl());}function Yn(i,t){i&1&&(Zi(0,"label"),oC(1,54),Wl());}function Zn(i,t){i&1&&(Zi(0,"label"),oC(1,55),Wl());}function ei(i,t){i&1&&(Zi(0,"label"),oC(1,56),Wl());}function ti(i,t){i&1&&(Fg(0,13,1),Ig(1,"span"),jg());}function ni(i,t){i&1&&(Fg(0,13,2),Ig(1,"span"),jg());}function ii(i,t){if(i&1){let e=ET();Zi(0,"sh-form-field")(1,"label",111),oC(2,57),Wl(),Zi(3,"textarea",112),lm("ngModelChange",function(a){Pd(e);let l=aC();return qC(l.allowedHostnames,a)||(l.allowedHostnames=a),Ld(a)}),Wl(),bD(),Wl(),Zi(4,"sh-alert",113),oC(5,58),Wl(),Zi(6,"button",108),Hg("click",function(){Pd(e);let a=aC();return Ld(a.updateAllowedHostnames())}),oC(7,59),Wl();}if(i&2){let e=aC();bE(3),cm("ngModel",e.allowedHostnames),MD(),bE(3),Kg("loading",e.updatingAllowedHosts());}}function oi(i,t){if(i&1){let e=ET();Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,60),Wl(),Zi(4,"p"),oC(5,61),Wl()(),Zi(6,"div",74)(7,"sh-select",114)(8,"input",81),Hg("ngModelChange",function(a){Pd(e);let l=aC();return Ld(l.updatePowerMode(a))}),Wl(),bD(),Wl()()();}if(i&2){let e=aC();bE(7),vg("options",e.powerModeOptions())("isClearable",false),bE(),vg("ngModel",e.powerModeCtrl())("ngModelOptions",XC(4,Te)),MD();}}function si(i,t){if(i&1&&(Zi(0,"p"),oC(1,62),Wl()),i&2){let e=aC();bE(),Vg(e.sysinfo()?.ServerVersionName),iC(1);}}function ai(i,t){i&1&&Ig(0,"sh-progress-bar",87);}function ri(i,t){if(i&1&&HC(0),i&2){let e=t.$implicit;Yl(" ",e.label," ");}}function li(i,t){if(i&1&&HC(0),i&2){let e=t.$implicit;Yl(" ",e.label," ");}}function _i(i,t){if(i&1){let e=ET();Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,63),Wl(),Zi(4,"p")(5,"span"),oC(6,64),Wl(),Zi(7,"a",115),oC(8,65),Wl(),Ig(9,"br")(10,"br"),Zi(11,"span"),oC(12,66),Wl()()(),Zi(13,"div",74)(14,"sh-select",116)(15,"input",81),Hg("ngModelChange",function(a){Pd(e);let l=aC();return Ld(l.updateUsageStatistics(a))}),Wl(),bD(),cg(16,li,1,1,"ng-template"),Wl()()();}if(i&2){let e=aC();bE(14),vg("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),bE(),vg("ngModel",e.usageStatistics())("ngModelOptions",XC(4,Te)),MD();}}function ci(i,t){i&1&&(Zi(0,"label"),oC(1,69),Wl());}function di(i,t){i&1&&(Zi(0,"label"),oC(1,70),Wl());}function Si(i,t){if(i&1){let e=ET();Zi(0,"section")(1,"div",73)(2,"h3"),oC(3,67),Wl(),Zi(4,"p"),oC(5,68),Wl()(),Zi(6,"div",82)(7,"p"),HC(8,"Backup process isolation"),Wl(),Zi(9,"sh-toggle",83),Hg("checkedChange",function(a){Pd(e);let l=aC();return Ld(l.saveControllerIpcState(a))}),lT(10,ci,2,0,"label")(11,di,2,0,"label"),Wl()()();}if(i&2){let e=aC();bE(9),vg("checked",e.isControllerIpcEnabled()),bE(),uT(e.isControllerIpcEnabled()?10:11);}}function Ti(i,t,e){let[n]=Ms(i,e?.equal),a=n,l=n[j],m;return a.set=u=>{clearTimeout(m),m=setTimeout(()=>{ft(l,u);},t);},a.update=u=>{clearTimeout(m),m=setTimeout(()=>{go(l,u);},t);},a}var ui=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Ie=class i{#n=T(be);#i=T(m);#e=T(f);#t=T(R);#s=T(v);#r=T(I);#o=T(r);#a=T(f$1);#_=this.#a.getItem("locale")??"en-US";sysinfo=this.#e.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=Ge("list");previousLang=this.#_;langCtrl=Ge(this.#_);powerModeCtrl=Ge("");usageStatistics=Ge("default");updatingUsageStatistics=Ge(false);remoteControlStatus=this.#s.statusMessage;remoteControlState=this.#s.state;updatingChannel=Ge(false);updateChannel=Ge("");isUsingRelay=this.#r.relayIsEnabled;defaultClient=Ge(this.#S());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=Qa(()=>{let t=this.#e.systemInfo()?.DefaultUsageReportLevel??"",e=fe;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e);});remoteControlTooltip=Ge($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=Ge($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(Zu(()=>this.updatingChannel.set(false))).subscribe();}allowRemoteAccess=Ge(false);allowedHostnames=Ge("");loadedAllowedHostnames=Ge("");updatingRemoteAccess=Ge(false);updatingAllowedHosts=Ge(false);updatingConsoleControl=Ge(false);consoleControlDisabled=Ge(false);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;isControllerIpcEnabled=this.#t.isControllerIpcEnabled;fileTreeFoldersFirst=this.#o.foldersFirst;fileTreeCaseSensitiveSort=this.#o.caseSensitiveSort;setFileTreeFoldersFirst(t){this.#o.setFoldersFirst(t);}setFileTreeCaseSensitiveSort(t){this.#o.setCaseSensitiveSort(t);}updateRemoteAccess(t){this.allowRemoteAccess.set(t),this.#t.setRemoteAccessInterface(t?"any":"loopback").pipe(Zu(()=>this.updatingRemoteAccess.set(false))).subscribe();}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(true),this.#t.setRemoteAccessAllowedHostnames(t).pipe(Zu(()=>this.updatingAllowedHosts.set(false))).subscribe();}toggleConsoleControl(t){this.consoleControlDisabled.set(!t),this.#t.setDisableConsoleControl(!t).pipe(Zu(()=>this.updatingConsoleControl.set(false))).subscribe();}updatingDisableTrayIconLogin=Ge(false);disableTrayIconLogin=Ge(false);saveDisableTrayIconLogin(t){let e=t;this.updatingDisableTrayIconLogin.set(true),this.#t.setDisableTrayIconLogin(e).pipe(Zu(()=>this.updatingDisableTrayIconLogin.set(false))).subscribe();}updatingHideConsoleConnectionStatus=Ge(false);saveHideConsoleConnectionStatus(t){this.updatingHideConsoleConnectionStatus.set(true),this.#t.setHideConsoleConnectionStatus(!t).pipe(Zu(()=>this.updatingHideConsoleConnectionStatus.set(false))).subscribe();}updatingControllerIpcState=Ge(false);saveControllerIpcState(t){this.updatingControllerIpcState.set(true),this.#t.setControllerIpcState(!!t).pipe(Zu(()=>this.updatingControllerIpcState.set(false))).subscribe();}showPassphraseForm=Ge(false);isUpdating=Ge(false);passphrase=Ge("");repeatPassphrase=Ge("");passwordUpdated=Ge(false);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(Zu(()=>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=Ge([...wt].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=Ge(fe);timeTypeOptions=Ge(ui);timeType=Ge("none");timeValue=Ti(0,300);timeRange=Nt(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#a.setItem("locale",t),window.location.reload());}updateTimeValue(t){this.timeValue.set(t),this.#c();}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#c();}#l;#c(){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!==e&&(this.usageStatistics.set(t),this.updatingUsageStatistics.set(true),this.#t.setUsageReporterLevel(un(t)).subscribe());}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe());}serverSettingsEffect=Qa(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),a=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(Tn(t["usage-reporter-level"])),this.timeType.set(e==""?"none":l.includes(n)?n:"none"),this.timeValue.set(e==""?0:parseInt(a));let m=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(m);});setDarkMode(){this.#i.setDarkMode();}setLightMode(){this.#i.setLightMode();}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#n.open(h,{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.#d(t));}}):this.#d(t));}openLegacyUI(){this.#n.open(h,{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");}});}#d(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);}#S(){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=gw({type:i,selectors:[["app-settings"]],decls:143,vars:42,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Color theme`;let a;a=$localize`Customize your application theme`;let l;l=$localize`Passwords`;let m;m=$localize`Change server passphrase`;let u;u=$localize`Language`;let E;E=$localize`Select a language for the platform`;let f;f=$localize`File tree sorting`;let W;W=$localize`Configure how files and folders are sorted in the file tree.`;let ue;ue=$localize`Use legacy interface`;let Q;Q=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let J;J=$localize`${"\uFFFD#60\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#60\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let V;V=$localize`${"\uFFFD#63\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#63\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*64: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/*64:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*65: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/*65:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,V=sC(V);let Y;Y=$localize`Allow remote access (requires restart)`;let Me;Me=$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 Pe;Pe=$localize`Allow remote access`;let Oe;Oe=$localize`Prevent tray icon automatic log-in`;let be;be=$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 Re;Re=$localize`Prevent tray icon automatic log-in`;let Ge;Ge=$localize`Update channel`;let ve;ve=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ye;ye=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Fe;Fe=$localize`Stable`;let $e;$e=$localize`Official stable release.`;let Ae;Ae=$localize`Beta`;let Le;Le=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let we;we=$localize`Experimental`;let De;De=$localize`Early previews of new features. Not for use with important data.`;let xe;xe=$localize`Canary`;let ke;ke=$localize`Builds for developers and testers only. Not for use with important data.`;let Xe;Xe=$localize`Pause after startup or hibernation`;let Je;Je=$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 Ve;Ve=$localize`Advanced options`;let ze;ze=$localize`Console connection status`;let Ue;Ue=$localize`Reporting configured by server`;let Be;Be=$localize`Connect to console`;let He;He=$localize`Configure console control`;let We;We=$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 je;je=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let qe;qe=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ke;Ke=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Qe;Qe=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ye;Ye=$localize`Toggle console connection status`;let Ze;Ze=$localize`Toggle the visibility of the console connection status indicator.`;let et;et=$localize`Console connection status is hidden`;let tt;tt=$localize`Console connection status is visible`;let nt;nt=$localize`Enter new password`;let it;it=$localize`Repeat password`;let ge;ge=$localize`Password have to be filled and have to match`;let ot;ot=$localize`Passphrase`;let st;st=$localize`Repeat passphrase`;let at;at=$localize`Cancel`;let rt;rt=$localize` Update passphrase `;let lt;lt=$localize` Update passphrase `;let _t;_t=$localize`Change password`;let ct;ct=$localize`Folders are shown before files`;let dt;dt=$localize`Files and folders are mixed together`;let St;St=$localize`Sorting is case sensitive`;let Tt;Tt=$localize`Sorting is case insensitive`;let ut;ut=$localize`Allowed hostnames`;let gt;gt=$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 Ct;Ct=$localize` Update allowed hostnames `;let pt;pt=$localize`Power mode provider`;let Et;Et=$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 mt;mt=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Nt;Nt=$localize`Usage statistics`;let ht;ht=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate `;let ft;ft=$localize`public usage statistics.`;let It;It=$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 Mt;Mt=$localize`Experimental options`;let Pt;Pt=$localize`Toggle experimental options.`;let Ot;Ot=$localize`Operations run in an isolated process`;let bt;return bt=$localize`Operations run inside the server process`,[t,e,n,a,l,m,u,E,f,W,ue,Q,J,V,Y,Me,Pe,Oe,be,Re,Ge,ve,ye,Fe,$e,Ae,Le,we,De,xe,ke,Xe,Je,Ve,ze,Ue,Be,He,We,je,qe,Ke,Qe,Ye,Ze,et,tt,ot,st,at,rt,lt,_t,ct,dt,St,Tt,ut,gt,Ct,pt,Et,mt,Nt,ht,ft,It,Mt,Pt,Ot,bt,[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","multiple"],[1,"primary","raised",3,"checkedChange","checked"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[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"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","new-password","placeholder",nt,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","new-password","placeholder",it,"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&&(Ig(0,"app-status-bar"),Zi(1,"div",71)(2,"header")(3,"div",72)(4,"h2"),oC(5,0),Wl(),Zi(6,"p"),oC(7,1),Wl()()(),lT(8,An,8,2,"section")(9,zn,10,2),Zi(10,"section")(11,"div",73)(12,"h3"),oC(13,2),Wl(),Zi(14,"p"),oC(15,3),Wl()(),Zi(16,"div",74)(17,"div",75)(18,"img",76),Hg("click",function(){return n.setLightMode()}),Wl(),Zi(19,"img",77),Hg("click",function(){return n.setDarkMode()}),Wl()()()(),Zi(20,"section")(21,"div",73)(22,"h3"),oC(23,4),Wl(),Zi(24,"p"),oC(25,5),Wl()(),Zi(26,"div",78),lT(27,jn,15,7)(28,Kn,4,1,"div",79),Wl()(),Zi(29,"section")(30,"div",73)(31,"h3"),oC(32,6),Wl(),Zi(33,"p"),oC(34,7),Wl()(),Zi(35,"div",74)(36,"sh-select",80)(37,"input",81),Hg("ngModelChange",function(l){return n.updateLocale(l)}),Wl(),bD(),Wl()()(),Zi(38,"section")(39,"div",73)(40,"h3"),oC(41,8),Wl(),Zi(42,"p"),oC(43,9),Wl()(),Zi(44,"div",82)(45,"sh-toggle",83),Hg("checkedChange",function(l){return n.setFileTreeFoldersFirst(l)}),lT(46,Qn,2,0,"label")(47,Yn,2,0,"label"),Wl(),Zi(48,"sh-toggle",83),Hg("checkedChange",function(l){return n.setFileTreeCaseSensitiveSort(l)}),lT(49,Zn,2,0,"label")(50,ei,2,0,"label"),Wl()()(),Zi(51,"section")(52,"div",73)(53,"h3"),oC(54,10),Wl(),Zi(55,"p"),oC(56,11),Wl()(),Zi(57,"div",84)(58,"button",85),Hg("click",function(){return n.openLegacyUI()}),Fg(59,12),Ig(60,"sh-icon"),jg(),Wl(),Zi(61,"button",85),Hg("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),Fg(62,13),Ig(63,"sh-icon"),lT(64,ti,2,0,"span")(65,ni,2,0,"span"),jg(),Wl()()(),Zi(66,"section")(67,"div",73)(68,"h3"),oC(69,14),Wl(),Zi(70,"p"),oC(71,15),Wl()(),Zi(72,"div",86)(73,"sh-toggle",83),Hg("checkedChange",function(l){return n.updateRemoteAccess(l)}),Zi(74,"label"),oC(75,16),Wl()(),lT(76,ii,8,3),Wl()(),Zi(77,"section")(78,"div",73)(79,"h3"),oC(80,17),Wl(),Zi(81,"p"),oC(82,18),Wl()(),Zi(83,"div",74)(84,"sh-toggle",83),Hg("checkedChange",function(l){return n.saveDisableTrayIconLogin(l)}),Zi(85,"label"),oC(86,19),Wl()()()(),lT(87,oi,9,5,"section"),Zi(88,"section")(89,"div",73)(90,"h3"),oC(91,20),Wl(),lT(92,si,2,1,"p"),lT(93,ai,1,0,"sh-progress-bar",87),Wl(),Zi(94,"div",88)(95,"div",89),Hg("click",function(){return n.setNewChannel("")}),Zi(96,"sh-radio",90),oC(97,21),Wl(),Zi(98,"p"),oC(99,22),Wl()(),Zi(100,"div",89),Hg("click",function(){return n.setNewChannel("stable")}),Zi(101,"sh-radio",90),oC(102,23),Wl(),Zi(103,"p"),oC(104,24),Wl()(),Zi(105,"div",89),Hg("click",function(){return n.setNewChannel("beta")}),Zi(106,"sh-radio",90),oC(107,25),Wl(),Zi(108,"p"),oC(109,26),Wl()(),Zi(110,"div",89),Hg("click",function(){return n.setNewChannel("experimental")}),Zi(111,"sh-radio",90),oC(112,27),Wl(),Zi(113,"p"),oC(114,28),Wl()(),Zi(115,"div",89),Hg("click",function(){return n.setNewChannel("canary")}),Zi(116,"sh-radio",90),oC(117,29),Wl(),Zi(118,"p"),oC(119,30),Wl()()()(),Zi(120,"section")(121,"div",73)(122,"h3"),oC(123,31),Wl(),Zi(124,"p"),oC(125,32),Wl()(),Zi(126,"div",74)(127,"div",91)(128,"sh-range-slider",92)(129,"input",93),lm("ngModelChange",function(l){return qC(n.timeValue,l)||(n.timeValue=l),l}),Hg("ngModelChange",function(l){return n.updateTimeValue(l)}),Wl(),bD(),Wl(),Zi(130,"sh-select",94)(131,"input",95),Hg("ngModelChange",function(l){return n.updateTimeType(l)}),Wl(),bD(),cg(132,ri,1,1,"ng-template"),Wl()()()(),lT(133,_i,17,5,"section"),lT(134,Si,12,2,"section"),Wl(),Ig(135,"sh-divider"),Zi(136,"div",71)(137,"section")(138,"div",96)(139,"h3"),oC(140,33),Wl(),Ig(141,"app-advanced-options-settings"),Wl()()(),Ig(142,"sh-divider")),e&2&&(bE(8),uT(n.isUsingRelay()?8:9),bE(10),Kg("active",!n.isDarkMode()),bE(),Kg("active",n.isDarkMode()),bE(8),uT(n.showPassphraseForm()?27:28),bE(9),vg("options",n.languageOptions())("isClearable",false)("inlineSearch",true),bE(),vg("ngModel",n.langCtrl())("ngModelOptions",XC(40,Te)),MD(),bE(8),vg("checked",n.fileTreeFoldersFirst()),bE(),uT(n.fileTreeFoldersFirst()?46:47),bE(2),vg("checked",n.fileTreeCaseSensitiveSort()),bE(),uT(n.fileTreeCaseSensitiveSort()?49:50),bE(15),uT(n.defaultClient()==="ngax"?64:65),bE(9),vg("checked",n.allowRemoteAccess()),bE(3),uT(n.allowRemoteAccess()?76:-1),bE(8),vg("checked",n.disableTrayIconLogin()),bE(3),uT(n.powerModeOptions().length>0?87:-1),bE(5),uT(n.sysinfo()?.ServerVersion?92:-1),bE(),uT(n.updatingChannel()?93:-1),bE(3),vg("checked",n.updateChannel()===""),bE(),Vg(n.sysinfo()?.DefaultUpdateChannel),iC(97),bE(2),Vg(n.sysinfo()?.ServerVersionType),iC(99),bE(2),vg("checked",n.updateChannel()==="stable"),bE(5),vg("checked",n.updateChannel()==="beta"),bE(5),vg("checked",n.updateChannel()==="experimental"),bE(5),vg("checked",n.updateChannel()==="canary"),bE(12),vg("unit",n.timeType()==="none"?"s":n.timeType()),bE(),vg("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),cm("ngModel",n.timeValue),vg("ngModelOptions",XC(41,Te)),MD(),bE(),vg("options",n.timeTypeOptions())("isClearable",false),bE(),vg("ngModel",n.timeType()),MD(),bE(2),uT(n.usageStatisticsDisabled()?-1:133),bE(),uT(n.hasIpcController()?134:-1));},dependencies:[Bn$1,Ze,on,Rn$1,Jt,Gn$1,te,Se,K,v$1,O,dn,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{Ti as debounceSignal,Ie as default};
|