@duplicati/ngclient 0.0.233 → 0.0.234
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/{chunk-h6n5A491.js → chunk-0lYdrxte.js} +1 -1
- package/{chunk-bt6lhYfG.js → chunk-1-oPQ4n-.js} +1 -1
- package/{chunk-Dz5guW4b.js → chunk-5EFCeqK3.js} +1 -1
- package/{chunk-CS2J-6VZ.js → chunk-5kQsbzck.js} +1 -1
- package/{chunk-D2G7_0hG.js → chunk-AHhgJqe4.js} +1 -1
- package/{chunk-mA4J4_nC.js → chunk-B-T54LAJ.js} +1 -1
- package/{chunk-C9OqpwwE.js → chunk-B-c3Zv6R.js} +1 -1
- package/{chunk-C9ecLR93.js → chunk-B0ETfgeR.js} +1 -1
- package/{chunk-B_cIFQAl.js → chunk-B1dNb-QT.js} +1 -1
- package/{chunk-mflQLMHH.js → chunk-B8PnvglY.js} +1 -1
- package/{chunk-CgJAbgNN.js → chunk-BAmgFjXY.js} +1 -1
- package/{chunk-B6c2NXNy.js → chunk-BDhLEYas.js} +1 -1
- package/{chunk-L8hQtTzU.js → chunk-BFVhQEGw.js} +1 -1
- package/{chunk-BmmYJhOf.js → chunk-BFquKzMb.js} +1 -1
- package/{chunk-Dk-Wgx3e.js → chunk-BGcVKmjp.js} +1 -1
- package/{chunk-jy8x4GhV.js → chunk-BHrABvoK.js} +1 -1
- package/chunk-BNG7N21y.js +1 -0
- package/{chunk-CsIAXoYP.js → chunk-BQapkAzp.js} +1 -1
- package/chunk-BRqx-u9-.js +2 -0
- package/{chunk-lymL5FDY.js → chunk-BaNH2nfC.js} +1 -1
- package/{chunk-AuCOjHXM.js → chunk-BaR3Dslz.js} +1 -1
- package/{chunk-D1pDZLJ9.js → chunk-BaknLOqq.js} +1 -1
- package/{chunk-D3PhthfU.js → chunk-Bg98dUtr.js} +1 -1
- package/{chunk-BsNCg00z.js → chunk-BiSIt2zb.js} +1 -1
- package/chunk-BkLND74M.js +1 -0
- package/{chunk-DDWDcSq2.js → chunk-BnFO-7ok.js} +1 -1
- package/{chunk-DcdpG1YG.js → chunk-BqbJuWHd.js} +1 -1
- package/chunk-C4zj812G.js +1 -0
- package/{chunk-CIw_h8oP.js → chunk-C5G4RPpS.js} +1 -1
- package/{chunk-DM11Gu0H.js → chunk-CA-0mTsq.js} +1 -1
- package/chunk-CAEYxmzQ.js +1 -0
- package/chunk-CGnsbLNG.js +1 -0
- package/chunk-CPjYiawK.js +1 -0
- package/chunk-CQHKuUqk.js +2 -0
- package/{chunk-Bgw6E0Xu.js → chunk-CSYDDxaa.js} +1 -1
- package/{chunk-B1c7h-_w.js → chunk-CTH9uShX.js} +1 -1
- package/{chunk-DWiO0A6h.js → chunk-CUNe6D-d.js} +1 -1
- package/{chunk-CGsQCBkP.js → chunk-CUaDFQyH.js} +1 -1
- package/chunk-CnyuuWJ3.js +1 -0
- package/{chunk-CuJ_uEdr.js → chunk-CsgB8OpN.js} +1 -1
- package/chunk-CspKioFm.js +4 -0
- package/{chunk-DidJB9ig.js → chunk-Cv4o9u3S.js} +1 -1
- package/chunk-CxOam2tf.js +1 -0
- package/{chunk-DD_wKpGc.js → chunk-CxUx2RFx.js} +1 -1
- package/{chunk-Bj7EyCHb.js → chunk-D0qGkLVr.js} +1 -1
- package/{chunk-Z81HNfgo.js → chunk-D4S_1RMU.js} +1 -1
- package/{chunk-C3gUxHQM.js → chunk-D5zSyubd.js} +1 -1
- package/{chunk-nuwlP4Wz.js → chunk-D6WUhpxO.js} +5 -5
- package/{chunk-CvSsZZty.js → chunk-D7C8xyJI.js} +1 -1
- package/{chunk-Ca1aaA1h.js → chunk-D9dEfxn4.js} +1 -1
- package/{chunk-ByL8ndec.js → chunk-DB1KeglF.js} +1 -1
- package/{chunk-DGvC49aU.js → chunk-DCsYP4vf.js} +1 -1
- package/chunk-DGO0_pkA.js +2 -0
- package/chunk-DKOaWS_j.js +2 -0
- package/{chunk-FTZ5atHM.js → chunk-DP2sLJDC.js} +1 -1
- package/chunk-DXh9g32e.js +1 -0
- package/{chunk-CfxBiw7I.js → chunk-DYfv4gJW.js} +1 -1
- package/chunk-DZMTCfoN.js +1 -0
- package/chunk-DcU0yXkQ.js +1 -0
- package/chunk-Dg-uYwbp.js +2 -0
- package/{chunk-C7AeY2HY.js → chunk-DmwtL4h3.js} +1 -1
- package/chunk-DnTA-m4k.js +2 -0
- package/{chunk-DhiIZLrA.js → chunk-DqoYKCmi.js} +1 -1
- package/{chunk-CIe9Bupz.js → chunk-Du0Hd0t6.js} +1 -1
- package/{chunk-DXEgz1tV.js → chunk-Dyq6iPbF.js} +1 -1
- package/chunk-DzYR8wiz.js +2 -0
- package/{chunk-aCJqF9DH.js → chunk-FZcbbWYC.js} +1 -1
- package/{chunk-CyqqlRjO.js → chunk-GKdOPH_4.js} +1 -1
- package/{chunk-CX3Axjpk.js → chunk-KNmRQWOM.js} +1 -1
- package/{chunk-BxpXVeOr.js → chunk-OIDsf_Aq.js} +1 -1
- package/{chunk-aYCYzU5Q.js → chunk-S-sgDIKw.js} +1 -1
- package/{chunk-B5Y6lgE8.js → chunk-UCY_7-Of.js} +1 -1
- package/{chunk-MDqH8T3Z.js → chunk-UUMQmD5I.js} +1 -1
- package/{chunk-DGxk44Me.js → chunk-X3dwwJIr.js} +1 -1
- package/chunk-_J1lTnCH.js +1 -0
- package/{chunk-K2iai6rC.js → chunk-i6kMmbhY.js} +1 -1
- package/chunk-oobMnyEm.js +3 -0
- package/{chunk-BstaUtD_.js → chunk-pxcB56N0.js} +1 -1
- package/{chunk-CWgXi-7W.js → chunk-sgM_r5NM.js} +1 -1
- package/{chunk-eiyaQxBt.js → chunk-umUQn7LQ.js} +1 -1
- package/{chunk-8Y8ReLEn.js → chunk-xwdrpTfz.js} +1 -1
- package/index.html +1 -1
- package/{main-3NL5M6JB.js → main-XKLDSNLY.js} +1 -1
- package/package.json +1 -1
- package/chunk-B1wZ4poV.js +0 -1
- package/chunk-BZgAzrl9.js +0 -2
- package/chunk-BaSm1lsB.js +0 -2
- package/chunk-BrtdRb9j.js +0 -1
- package/chunk-BzJX1fKw.js +0 -1
- package/chunk-C7gG_Yh_.js +0 -2
- package/chunk-CP6xnjgo.js +0 -3
- package/chunk-ChUm8bnG.js +0 -1
- package/chunk-CkRbgemk.js +0 -2
- package/chunk-ClRItSzt.js +0 -1
- package/chunk-D55uWC7G.js +0 -1
- package/chunk-DV8bRznt.js +0 -2
- package/chunk-DbbyVAGl.js +0 -1
- package/chunk-DuYKanVS.js +0 -1
- package/chunk-DwmssGG9.js +0 -2
- package/chunk-DxFBzFom.js +0 -1
- package/chunk-I5dxaHZ4.js +0 -2
- package/chunk-Y-xXBGKy.js +0 -1
- package/chunk-ksSA-rDF.js +0 -1
- package/chunk-uGh0bVbu.js +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {w}from'./chunk-
|
|
1
|
+
import {w}from'./chunk-5kQsbzck.js';import {T,e as ee,A as v,B as A,G as Ge,D as w1,z as za,J as zu,h as hw,c as N,v as v$1,u as ue,Q as Qi,H as Hg,d as aT,i as Ig,$ as $l,F as Fg,j as jg,r as CD,s as jC,y as vg,C as CE,g as cT,x as _D,K as im,L as Kg,M as qg,R as fC,n as nC}from'./main-XKLDSNLY.js';import {F as Fe}from'./chunk-DqoYKCmi.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-BDhLEYas.js';import {U}from'./chunk-BaknLOqq.js';var Y=["passwordInput"];function Z(l,n){l&1&&(Qi(0,"sh-alert",6),nC(1,4),$l());}var h=new jn,C=class l{#e=T(ee);#n=T(v);rememberMe=A("rememberMe",false,true);failedLogin=Ge(false);successLogin=Ge(false);isLoading=Ge(false);loginForm=h.group({pass:h.control("",me.required),rememberMe:h.control(this.rememberMe())});showPassword=Ge(false);passwordInput=w1("passwordInput");passwordEffect=za(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??false)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??false),n&&(this.isLoading.set(true),this.#n.login(n,this.rememberMe()).pipe(zu(()=>{this.isLoading.set(false),this.failedLogin.set(true);})).subscribe({next:()=>{this.successLogin.set(true),this.#e.navigate(["/"]);}}));}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=hw({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&qg(e.passwordInput,Y,5),o&2&&fC();},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let N;return N=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,N,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/configuration-and-management/duplicati-access-password#access-from-the-trayicon","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(Qi(0,"form",5),Hg("submit",function(){return e.submit()}),aT(1,Z,2,0,"sh-alert",6),Qi(2,"div",7),Ig(3,"app-logo"),$l(),Qi(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),Fg(8,1),Qi(9,"a",11),Ig(10,"sh-icon"),$l(),jg(),$l(),Ig(11,"input",12,0),CD(),Qi(13,"sh-icon",13),Hg("click",function(){return e.showPassword.set(!e.showPassword())}),jC(14),$l()(),Qi(15,"button",14),Fg(16,2),Ig(17,"sh-icon"),jg(),$l()(),Qi(18,"sh-checkbox",15),Fg(19,3),Ig(20,"input",16),CD(),jg(),$l(),Qi(21,"div",17),Ig(22,"label",18),$l()()()),o&2&&(vg("formGroup",e.loginForm),CE(),cT(e.failedLogin()&&!e.successLogin()?1:-1),CE(10),vg("type",e.showPassword()?"text":"password"),_D(),CE(3),im(e.showPassword()?"eye":"eye-slash"),CE(),Kg("loading",e.isLoading()),CE(5),_D());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,w,Fe,N,v$1,ue,U],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"]})};
|
|
2
2
|
export{C as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {E as E1,bb as ce,h as hw,S as aC,Y as cC,f as NC}from'./main-
|
|
1
|
+
import {E as E1,bb as ce,h as hw,S as aC,Y as cC,f as NC}from'./main-XKLDSNLY.js';var p=["*"],f=(()=>{class a{constructor(){this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("card",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(r){return new(r||a)};}static{this.\u0275cmp=hw({type:a,selectors:[["sh-card"]],hostVars:2,hostBindings:function(r,s){r&2&&NC(s.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:p,decls:1,vars:0,template:function(r,s){r&1&&(aC(),cC(0));},styles:[`sh-card{--card-bg: var(--base-1);--card-ibg: var(--base-2);--card-bc: var(--base-4);--card-sh: var(--box-shadow-10);--card-p: 1.5rem;--card-shp: .5rem;display:block;padding:var(--card-p);position:relative;z-index:0;border:var(--border-10);border-color:var(--card-bc);box-shadow:var(--card-sh);border-radius:var(--shape-3);overflow:hidden}sh-card:before,sh-card:after{content:"";position:absolute}sh-card:before{background-color:var(--card-bg);inset:0;z-index:-2;border-radius:inherit}sh-card:after{background-color:var(--card-ibg);border-radius:var(--shape-2);inset:var(--card-shp);z-index:-1}sh-card.type-b{--card-bg: var(--base-2);--card-ibg: var(--base-1);--card-sh: none;--card-shp: .25rem}sh-card.type-c{--card-bg: transparent;--card-ibg: var(--card-bg);--card-p: 0}
|
|
2
2
|
`],encapsulation:2});}}return a})();export{f};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {J}from'./chunk-
|
|
1
|
+
import {J}from'./chunk-FZcbbWYC.js';import {T,ah as fe$1,a6 as be,ab as C,a5 as g,e as ee,G as Ge,J as zu,at as h,h as hw,_ as _t,c as N,v,Q as Qi,F as Fg,i as Ig,$ as $l,H as Hg,j as jg,d as aT,n as nC,r as CD,C as CE,y as vg,a3 as KC,L as Kg,g as cT,x as _D,o as oC,ae as eo,D as w1,E as E1,af as D1,N as Nt,z as za,S as aC,Y as cC,s as jC,f as NC,aC as yg,M as qg,R as fC,k as iC,K as im,aa as Ql}from'./main-XKLDSNLY.js';import {F as Fe$1}from'./chunk-DqoYKCmi.js';import {j as jn,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-BDhLEYas.js';var de=["input"],me=[[["label"]]],fe=["label"],Fe=["ngProjectAs","label",5,["label"]];function _e(n,o){if(n&1&&(Qi(0,"div",3),jC(1),$l()),n&2){let e=iC();CE(),im(e.files()[0].name);}}function ge(n,o){if(n&1&&(Qi(0,"div",3),jC(1),$l()),n&2){let e=iC();CE(),Ql("",e.files().length," files selected");}}function he(n,o){if(n&1&&(Qi(0,"div",4),jC(1),$l()),n&2){let e=iC();CE(),im(e.filesOver()?e.overlayText():e.placeholder());}}var ce=(()=>{class n{constructor(){this._el=T(eo),this.inputRef=w1.required("input"),this.filesOver=Ge(false),this.multiple=E1(),this.accept=E1(null),this.placeholder=D1("Click or drag files here"),this.overlayText=E1("Drop files here"),this.files=D1([]),this.fileUploadClasses=Nt(()=>this._el.nativeElement.classList.toString()),this.inputEffect=za(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(true);}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(false);}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(false);let i=t.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),e.files=i);}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files));}));});}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=hw({type:n,selectors:[["sh-file-upload"]],viewQuery:function(t,i){t&1&&qg(i.inputRef,de,5),t&2&&fC();},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:fe,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,i){t&1&&(aC(me),Qi(0,"sh-form-field"),cC(1,0,Fe),Qi(2,"div",2,0),aT(4,_e,2,1,"div",3)(5,ge,2,1,"div",3)(6,he,2,1,"div",4),Ig(7,"input",5,1)(9,"div",6),$l(),Qi(10,"sh-icon",7),jC(11,"upload-simple"),$l()()),t&2&&(NC(i.fileUploadClasses()),CE(4),cT(i.files().length===1?4:i.files().length>1?5:6),CE(3),yg("multiple",i.multiple())("accept",i.accept()),CE(2),Kg("files-over",i.filesOver()));},dependencies:[Fe$1,N],styles:[`sh-file-upload{--fu-bg-active: rgba(0, 0, 0, .1);display:flex;flex-direction:column;gap:.75rem;position:relative;width:100%}sh-file-upload sh-list{border-radius:var(--shape-3);background-color:var(--base-2)}sh-file-upload .files-text,sh-file-upload .placeholder{color:var(--base-8);font:var(--paragraph-30B)}sh-file-upload input{position:absolute;opacity:0;inset:0;cursor:pointer;z-index:100}sh-file-upload .bg-overlay{opacity:0;position:absolute;inset:.0625rem;background-color:var(--fu-bg-active);transition:opacity 125ms linear;z-index:0;border-radius:var(--ff-s)}sh-file-upload .bg-overlay.files-over{opacity:1}
|
|
2
2
|
`],encapsulation:2});}}return n})();var Te=()=>["/"];function Ce(n,o){n&1&&(Qi(0,"sh-form-field")(1,"label",14),nC(2,3),$l(),Ig(3,"input",15),CD(),$l()),n&2&&(CE(3),_D());}var d=new jn,M=class n{#t=T(fe$1);#i=T(be);#o=T(C);#n=T(g);#e=T(ee);isImporting=Ge(false);isSecureFile=Ge(false);isValid=Ge(false);importForm=d.group({config:d.control(""),cmdline:d.control(false),import_metadata:d.control(false),direct:d.control(false),passphrase:d.control("")});selectedFile=Ge([]);onFileDropped(o){let e=o[0];if(e){let t=new FileReader;this.isSecureFile.set(e.type!=="application/json"),t.onload=this.#a.bind(this),t.readAsArrayBuffer(e);}}#a(o){let e=o.target?.result;this.isSecureFile.set(this.#r(e)!=="json"),this.importForm.patchValue({config:this.#l(e)}),this.isValid.set(this.importForm.value.config!=="");}#r(o){let e=new Uint8Array(o);if(e.length>=5&&e[0]===65&&e[1]===69&&e[2]===83&&e[4]===0)return "aes";try{let t=new TextDecoder().decode(o),i=JSON.parse(t);if(typeof i=="object"&&i!==null)return "json"}catch{}return "unknown"}#l(o){let e=new Uint8Array(o),t=e.byteLength,i="";for(let s=0;s<t;s++)i+=String.fromCharCode(e[s]);return btoa(i)}submit(){this.isImporting.set(true);let o=this.importForm.value.direct??false;this.#o.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(zu(()=>this.isImporting.set(false))).subscribe({next:e=>{if(o){this.#t.success("Backup imported successfully."),this.#e.navigate(["/"]);return}let t=this.#n.addDraftBackup(e.data);this.#e.navigate(["/backup-draft",t]);},error:e=>{let t=e.message||$localize`Unknown error`;this.#i.open(h,{data:{title:$localize`Failed to import backup`,message:t,confirmText:$localize`OK`,cancelText:void 0}});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-import"]],decls:19,vars:8,consts:()=>{let o;o=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,o=oC(o);let e;e=$localize`Import Metadata`;let t;t=$localize`Save now`;let i;return i=$localize`Passphrase`,[o,e,t,i,[1,"actions"],["shButton","","type","button",1,"outlined",3,"routerLink"],["shButton","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["accept",".json,.aes",3,"filesChange","files"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","import_metadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","autocomplete","disabled","formControlName","passphrase"]]},template:function(e,t){e&1&&(Qi(0,"header")(1,"h3"),Fg(2,0),Qi(3,"div",4)(4,"button",5),Ig(5,"sh-icon"),$l(),Qi(6,"button",6),Hg("click",function(){return t.submit()}),Ig(7,"sh-icon"),$l()(),jg(),$l()(),Qi(8,"form",7)(9,"sh-file-upload",8),Hg("filesChange",function(s){return t.onFileDropped(s)}),$l(),aT(10,Ce,4,0,"sh-form-field"),Qi(11,"sh-toggle",9)(12,"label",10),nC(13,1),$l(),Ig(14,"input",11),CD(),$l(),Qi(15,"sh-toggle",9)(16,"label",12),nC(17,2),$l(),Ig(18,"input",13),CD(),$l()()),e&2&&(CE(4),vg("routerLink",KC(7,Te)),CE(2),Kg("loading",t.isImporting()),vg("disabled",t.isImporting()||!t.isValid()),CE(2),vg("formGroup",t.importForm),CE(),vg("files",t.selectedFile()),CE(),cT(t.isSecureFile()?10:-1),CE(4),_D(),CE(4),_D());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,Fe$1,N,v,J,ce],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}sh-file-upload[_ngcontent-%COMP%]{width:100%}"]})};export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ShipTable as ot}from'./chunk-
|
|
1
|
+
import {ShipTable as ot}from'./chunk-xwdrpTfz.js';import'./chunk-Cv4o9u3S.js';import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,z as za,ai as m,aj as l,b3 as Ae$1,b4 as qu,J as zu,at as h,h as hw,v,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,C as CE,au as Vg,av as rC,g as cT,y as vg,a3 as KC,L as Kg,o as oC,i as Ig,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,a1 as dT,w as cm,a2 as fT,s as jC,aM as ob,r as CD,K as im,aN as ab,aR as sb,x as _D}from'./main-XKLDSNLY.js';import {d}from'./chunk-BnFO-7ok.js';import {F as Fe}from'./chunk-DqoYKCmi.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-BDhLEYas.js';import {$}from'./chunk-DCsYP4vf.js';var ue=()=>["/"],Te=(s,i)=>i.Version;function Pe(s,i){s&1&&(Qi(0,"div",11),Ig(1,"sh-progress-bar",17),Qi(2,"p"),nC(3,3),$l()());}function Oe(s,i){s&1&&(Qi(0,"div",12)(1,"p"),nC(2,4),$l()());}function Re(s,i){if(s&1){let e=vT();Qi(0,"tr")(1,"td"),jC(2),$l(),Qi(3,"td"),jC(4),ob(5,"relativeTime"),$l(),Qi(6,"td"),jC(7),ob(8,"relativeTime"),$l(),Qi(9,"td"),jC(10),ob(11,"bytes"),$l(),Qi(12,"td"),jC(13),$l(),Qi(14,"td")(15,"sh-form-field")(16,"input",24),Hg("ngModelChange",function(_){let E=Od(e).$implicit,m=iC(2);return Pd(m.updateLabel(E.Version,_))}),$l(),CD(),$l()()();}if(s&2){let e=i.$implicit,n=iC(2);CE(2),im(e.Version),CE(2),im(ab(5,7,e.Time,true)),CE(3),im(ab(8,10,e.Time,false)),CE(3),im(sb(11,13,e.FileSizes)),CE(3),im(e.FileCount),CE(3),vg("ngModel",e.EditedLabel)("disabled",n.isSaving()),_D();}}function Ae(s,i){if(s&1){let e=vT();Qi(0,"sh-table",18),lm("sortByColumnChange",function(_){Od(e);let E=iC();return UC(E.sortByColumn,_)||(E.sortByColumn=_),Pd(_)}),Qi(1,"tr",19)(2,"th",20),nC(3,5),$l(),Qi(4,"th",20),nC(5,6),$l(),Qi(6,"th",20),nC(7,7),$l(),Qi(8,"th",21),nC(9,8),$l(),Qi(10,"th",22),nC(11,9),$l(),Qi(12,"th",23),nC(13,10),$l()(),dT(14,Re,17,15,"tr",null,Te),$l();}if(s&2){let e=iC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),CE(14),fT(e.versions());}}var B=class s{#e=T(C);#i=T(be);#n=T(g);#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})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:i.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isSaving=Ge(false);versions=Ge([]);constructor(){za(()=>{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(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(l({},_),{EditedLabel:e}):_));}saveLabels(){let i=this.changedItems();i.length!==0&&(this.isSaving.set(true),Ae$1(i).pipe(qu(e=>this.#e.postApiV2BackupSetVersionLabel({requestBody:{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=hw({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=oC(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&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,Pe,4,0,"div",11)(3,Oe,3,0,"div",12)(4,Ae,16,3,"sh-table",13),Qi(5,"div",14)(6,"button",15),nC(7,1),$l(),Qi(8,"button",16),Hg("click",function(){return n.saveLabels()}),nC(9,2),$l()()),e&2&&(CE(),Vg(n.backup()?.Backup?.Name),rC(1),CE(),cT(n.isLoading()?2:n.versions().length===0?3:4),CE(4),vg("routerLink",KC(9,ue))("disabled",n.isSaving()),CE(2),Kg("loading",n.isSaving()),vg("disabled",n.isSaving()||n.changedItems().length===0||n.isLoading()),CE(),Vg(n.changedItems().length)(n.changedItems().length),rC(9));},dependencies:[Bn,Ze,Rn,Jt,v,d,ot,_t,Fe,m$1,m$2],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 @@
|
|
|
1
|
+
import {OptionsListComponent as Oe}from'./chunk-DGO0_pkA.js';import {V as Ve}from'./chunk-D6WUhpxO.js';import'./chunk-1-oPQ4n-.js';import {M as Mt}from'./chunk-DzYR8wiz.js';import'./chunk-DXh9g32e.js';import'./chunk-0lYdrxte.js';import'./chunk-FZcbbWYC.js';import'./chunk-Dyq6iPbF.js';import'./chunk-5EFCeqK3.js';import {N as Nt}from'./chunk-GKdOPH_4.js';import'./chunk-KNmRQWOM.js';import'./chunk-B-T54LAJ.js';import'./chunk-D5zSyubd.js';import'./chunk-Cv4o9u3S.js';import {T,e as ee,aw as W,D as w1,G as Ge,h as hw,v,c as N,Q as Qi,n as nC,$ as $l,d as aT,p as lm,H as Hg,F as Fg,i as Ig,j as jg,C as CE,g as cT,w as cm,y as vg,a3 as KC,L as Kg,M as qg,R as fC,U as UC,l as vT,O as Od,k as iC,P as Pd,r as CD,x as _D}from'./main-XKLDSNLY.js';import'./chunk-CTH9uShX.js';import'./chunk-BnFO-7ok.js';import {F as Fe}from'./chunk-DqoYKCmi.js';import {B as Bn,Z as Ze,e as en,R as Rn,J as Jt}from'./chunk-BDhLEYas.js';import'./chunk-UUMQmD5I.js';import'./chunk-B8PnvglY.js';import'./chunk-CsgB8OpN.js';import'./chunk-BaknLOqq.js';import'./chunk-DCsYP4vf.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&&(Qi(0,"p"),nC(1,4),$l());}function _e(o,_){if(o&1){let e=vT();Qi(0,"p"),nC(1,5),$l(),Qi(2,"app-timespan",21),lm("ngModelChange",function(n){Od(e);let a=iC(2);return UC(a.optionsFields.backupRetentionTime,n)||(a.optionsFields.backupRetentionTime=n),Pd(n)}),Qi(3,"label",22),nC(4,6),$l()(),CD();}if(o&2){let e=iC(2);CE(2),vg("customId","backupRetentionTime"),cm("ngModel",e.optionsFields.backupRetentionTime),_D();}}function le(o,_){if(o&1){let e=vT();Qi(0,"p"),nC(1,7),$l(),Qi(2,"sh-form-field")(3,"label",23),nC(4,8),$l(),Qi(5,"input",24),lm("ngModelChange",function(n){Od(e);let a=iC(2);return UC(a.optionsFields.backupRetentionVersions,n)||(a.optionsFields.backupRetentionVersions=n),Pd(n)}),$l(),CD(),$l();}if(o&2){let e=iC(2);CE(5),cm("ngModel",e.optionsFields.backupRetentionVersions),_D();}}function re(o,_){o&1&&(Qi(0,"p"),nC(1,9),$l());}function ce(o,_){if(o&1){let e=vT();Qi(0,"p"),nC(1,10),$l(),Qi(2,"sh-form-field")(3,"p"),nC(4,11),$l(),Qi(5,"label",25),nC(6,12),$l(),Qi(7,"input",26),lm("ngModelChange",function(n){Od(e);let a=iC(2);return UC(a.optionsFields.backupRetentionCustom,n)||(a.optionsFields.backupRetentionCustom=n),Pd(n)}),$l(),CD(),$l();}if(o&2){let e=iC(2);CE(7),cm("ngModel",e.optionsFields.backupRetentionCustom),_D();}}function pe(o,_){if(o&1){let e=vT();Qi(0,"sh-select",18)(1,"label",19),nC(2,3),$l(),Qi(3,"input",20),lm("ngModelChange",function(n){Od(e);let a=iC();return UC(a.optionsFields.backupRetention,n)||(a.optionsFields.backupRetention=n),Pd(n)}),$l(),CD(),$l(),aT(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=iC();vg("options",e.retentionOptions())("inlineSearch",true)("isClearable",false),CE(3),cm("ngModel",e.optionsFields.backupRetention),_D(),CE(),cT(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(Ve);#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=hw({type:o,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,s){e&1&&qg(s.formRef,oe,5),e&2&&fC();},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&&(Qi(0,"section")(1,"h3",13),nC(2,0),$l(),aT(3,pe,9,5),Qi(4,"app-options-list",14),lm("optionsChange",function(a){return UC(s.settings,a)||(s.settings=a),a}),$l(),Qi(5,"div",15)(6,"button",16),Hg("click",function(){return s.goBack()}),Fg(7,1),Ig(8,"sh-icon"),jg(),$l(),Qi(9,"button",17),Hg("click",function(){return s.submit()}),Fg(10,2),Ig(11,"sh-icon"),jg(),$l()()()),e&2&&(CE(3),cT(s.isSyncMode()?-1:3),CE(),cm("options",s.settings),vg("applicationOptions",s.applicationOptions())("hasFreeTextSettings",true)("hiddenOptions",KC(7,ae)),CE(5),Kg("loading",s.isSubmitting()));},dependencies:[Bn,Ze,en,Rn,Jt,Oe,Mt,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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {L}from'./chunk-
|
|
1
|
+
import {L}from'./chunk-DCsYP4vf.js';import {T as T$1,ab as C$1,a as T$2,bj as Q,m as m$1,G as Ge,N as Nt,z as za,aj as l,b0 as Hs,aZ as ee}from'./main-XKLDSNLY.js';var _="shown-welcome-page-v1",m="hide-console-connection-status",A="use-out-of-process-controller",R="disable-console-control",b="disable-tray-icon-login",c="server-listen-interface",T="allowed-hostnames",D="server-passphrase",N="update-channel",w="startup-delay",y="usage-reporter-level",P="power-mode-provider",I="autogenerated-passphrase",C="has-asked-for-password-change",O=class o{#s=T$1(C$1);#r=T$1(T$2);#n=T$1(Q);#i=T$1(m$1);#o=L(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(I,t),r=this.#t(C,t);return s&&!r});showWelcomePage=Nt(()=>{let e=this.#e();if(!e)return false;let t=this.#t(C,e),s=this.#t(_,e);return !(t||s)});#c=za(()=>{let e=this.#r.serverSettings();e&&this.#e.set(e);});constructor(){this.#r.subscribe("serversettings");}isConsoleConnectionStatusHidden=Nt(()=>this.#t(m,this.serverSettings()));isControllerIpcEnabled=Nt(()=>this.#t(A,this.serverSettings()));refreshServerSettings(){this.#n.getConnectionMethod()!=="websocket"&&this.#s.getApiV1Serversettings().subscribe({next:e=>{this.#e.set(e);}});}#a(e,t){var s=l({},e);for(let[r,S]of Object.entries(t))S===null?delete s[r]:s[r]=S;return s}patchServerSettings(e){let t=l({},this.serverSettings());return this.#e.set(this.#a(this.serverSettings()??{},e)),this.#s.patchApiV1Serversettings({requestBody:e}).pipe(Hs(s=>{throw this.#e.set(t),s}))}patchServerSetting(e,t){let s={};return s[e]=t,this.patchServerSettings(s)}setShownWelcomePage(){return this.patchServerSetting(_,"true")}setHideConsoleConnectionStatus(e){return this.patchServerSetting(m,e?"True":"False")}setControllerIpcState(e){return this.patchServerSetting(A,e?"True":"False")}setDisableTrayIconLogin(e){return this.patchServerSetting(b,e?"True":"False")}setDisableConsoleControl(e){return this.patchServerSetting(R,e?"True":"False")}setRemoteAccessInterface(e){return this.patchServerSetting(c,e)}setRemoteAccessAllowedHostnames(e){var t={[T]:e};return this.serverSettings()?.[c]==="loopback"&&(t[c]="any"),this.patchServerSettings(t)}setRemoteAccessPassword(e){return this.patchServerSetting(D,e)}setUpdateChannel(e){return this.patchServerSetting(N,e)}setStartupDelay(e){return this.patchServerSetting(w,e)}setUsageReporterLevel(e){return this.patchServerSetting(y,e)}setPowerModeProvider(e){return this.patchServerSetting(P,e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=ee({token:o,factory:o.\u0275fac,providedIn:"root"})};export{O};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {e as ee}from'./chunk-i6kMmbhY.js';import'./chunk-Du0Hd0t6.js';import {O as O$1}from'./chunk-BFquKzMb.js';import {m}from'./chunk-D7C8xyJI.js';import {r}from'./chunk-DXh9g32e.js';import {J}from'./chunk-FZcbbWYC.js';import {N as Nt$1}from'./chunk-GKdOPH_4.js';import'./chunk-KNmRQWOM.js';import {c}from'./chunk-D5zSyubd.js';import {D}from'./chunk-Cv4o9u3S.js';import {bl as _s,bm as j,bn as ft,bo as go,T,a6 as be,m as m$1,I,bp as f,G as Ge,N as Nt,z as za,J as zu,bq as wt,at as h,h as hw,v,c as N,u as ue,i as Ig,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,r as CD,F as Fg,j as jg,p as lm,bi as cg,C as CE,g as cT,L as Kg,y as vg,a3 as KC,x as _D,au as Vg,av as rC,w as cm,o as oC,U as UC,ab as C$1,D as w1,b5 as lg,b6 as oT,b7 as iT,M as qg,R as fC,ae as eo,E as E1,af as D1,bb as ce,S as aC,V as Ul,Y as cC,X as Wl,s as jC,an as Bg,W as Eg,aB as sm,ag as Yg,f as NC,k as iC,K as im,l as vT,O as Od,P as Pd,ar as Zp,a9 as GC,aa as Ql}from'./main-XKLDSNLY.js';import {d}from'./chunk-BnFO-7ok.js';import {F as Fe}from'./chunk-DqoYKCmi.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-BDhLEYas.js';import {a as at}from'./chunk-UUMQmD5I.js';import {C}from'./chunk-B8PnvglY.js';import {O}from'./chunk-CsgB8OpN.js';import'./chunk-BaknLOqq.js';import'./chunk-DCsYP4vf.js';var un=[[["label"]],[["input","type","range"]]],gn=["label","input[type=range]"],cn=(()=>{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=za(()=>{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=hw({type:i,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(n,a){n&2&&(NC(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:gn,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&&(aC(un),Ul(0,"div",0),cC(1),Wl(),Ul(2,"div",1)(3,"div",2),jC(4),Wl(),Ul(5,"div",3),Bg("click",function(m){return a.trackEvent(m)}),cC(6,1),Ul(7,"div",4),Eg(8,"div",5),Wl(),Ul(9,"div",6)(10,"div",7)(11,"div",8),jC(12),Wl()()()(),Ul(13,"div",9),jC(14),Wl()()),n&2&&(CE(4),sm("",a.inputState().min,"",a.unit()),CE(4),Yg("width",a.trackFilledPercentage(),"%"),CE(),Yg("left",a.thumbPositionPercentage(),"%"),CE(3),sm("",a.value(),"",a.unit()),CE(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 Cn=["formRef"],pn=()=>[import('./chunk-DGO0_pkA.js').then(i=>i.OptionsListComponent)];function En(i,t){i&1&&(Qi(0,"sh-alert",3),nC(1,1),$l());}function mn(i,t){if(i&1){let e=vT();Qi(0,"app-options-list",5),lm("optionsChange",function(a){Od(e);let l=iC();return UC(l.settings,a)||(l.settings=a),Pd(a)}),$l();}if(i&2){let e=iC();cm("options",e.settings),vg("hasFreeTextSettings",true);}}var K=class i{#n=T(O);#i=T(C$1);formRef=w1.required("formRef");settings=Ge([]);isSubmitting=Ge(false);isLoadingOptions=Ge(true);saved=Ge(false);lastRecievedServerSettings=Ge({});serverSettingsEffect=za(()=>{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;}),this.#i.patchApiV1Serversettings({requestBody: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=hw({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Cn,5),e&2&&fC();},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,n){e&1&&(Qi(0,"div",2),aT(1,En,2,0,"sh-alert",3),Qi(2,"button",4),Hg("click",function(){return n.submit()}),Fg(3,0),Ig(4,"sh-icon"),jg(),$l()(),lg(5,mn,1,2),oT(6,5,pn)),e&2&&(CE(),cT(n.saved()?1:-1),CE(),Kg("loading",n.isSubmitting()),CE(4),iT(!n.isLoadingOptions()));},dependencies:[Gn$1,v,N,ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"]})};function hn(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field",12)(1,"input",13),lm("ngModelChange",function(a){Od(e);let l=iC(2);return UC(l.registerUrl,a)||(l.registerUrl=a),Pd(a)}),$l(),CD(),$l(),Qi(2,"button",14),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.register())}),nC(3,0),$l();}if(i&2){let e=iC(2);CE(),cm("ngModel",e.registerUrl),_D();}}function fn(i,t){if(i&1&&(Qi(0,"div",9)(1,"label"),nC(2,1),$l(),Qi(3,"a",15),jC(4),$l()()),i&2){let e=iC(2);CE(3),vg("href",GC(e.claimUrl()),Zp),CE(),im(e.claimUrl());}}function In(i,t){i&1&&(Qi(0,"div",9)(1,"label"),nC(2,2),$l()());}function Mn(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.cancel())}),nC(1,3),$l();}}function Pn(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.disable())}),nC(1,4),$l();}}function On(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.enable())}),nC(1,5),$l(),Qi(2,"button",16),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.delete())}),nC(3,6),$l();}}function bn(i,t){i&1&&(Fg(0,7,1),Ig(1,"sh-icon"),jg());}function Rn(i,t){i&1&&(Fg(0,7,2),Ig(1,"sh-icon"),jg());}function Gn(i,t){if(i&1){let e=vT();Qi(0,"sh-chip",17),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.copyReportingUrl())}),Fg(1,7),aT(2,bn,2,0,"sh-icon")(3,Rn,2,0,"sh-icon"),jg(),$l();}if(i&2){let e=iC(2);CE(2),cT(e.copiedReportingUrl()===true?2:3);}}function vn(i,t){if(i&1&&(Qi(0,"div",8),aT(1,hn,4,1),aT(2,fn,5,3,"div",9),aT(3,In,3,0,"div",9),aT(4,Mn,2,0,"button",10),aT(5,Pn,2,0,"button",10),aT(6,On,4,0),aT(7,Gn,4,1,"sh-chip",11),$l()),i&2){let e=iC();CE(),cT(e.state()==="inactive"?1:-1),CE(),cT(e.state()==="registered"?2:-1),CE(),cT(e.state()==="registering"?3:-1),CE(),cT(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),CE(),cT(e.state()==="connected"||e.state()==="connecting"?5:-1),CE(),cT(e.state()==="disabled"?6:-1),CE(),cT(e.additionalReportingUrl()!==""&&e.state()!=="registered"?7:-1);}}var Se=class i{#n=T(C);#i=T(O);state=this.#n.state;claimUrl=this.#n.claimUrl;registerUrl=this.#n.registerUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return t&&t["additional-report-url"]||""});copiedReportingUrl=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=hw({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=oC(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&&aT(0,vn,8,7,"div",8),e&2&&cT(n.state()!=="unknown"?0:-1);},dependencies:[Bn$1,Ze,Rn$1,Jt,Fe,v,D,N],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"]})};var 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`}],yn=new Set(["information","warning","error","crash","none"]),Sn=i=>{let t=(i??"").trim().toLowerCase();return t==="disabled"?"none":yn.has(t)?t:"default"},Tn=i=>i==="default"?"":i;var Te=()=>({standalone:true});function Fn(i,t){i&1&&(Qi(0,"sh-chip",97),nC(1,35),$l());}function $n(i,t){if(i&1&&(Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,34),$l(),Qi(4,"p"),jC(5),$l()(),Qi(6,"div",74),aT(7,Fn,2,0,"sh-chip",97),$l()()),i&2){let e=iC();CE(5),im(e.remoteControlStatus()),CE(2),cT(e.additionalReportingUrl()!==""&&e.remoteControlState()!=="registered"?7:-1);}}function An(i,t){if(i&1&&(Qi(0,"label"),Fg(1,39),Ig(2,"sh-icon",98),jg(),$l()),i&2){let e=iC(3);CE(2),vg("shTooltip",e.remoteControlTooltip());}}function Ln(i,t){if(i&1&&(Qi(0,"label"),Fg(1,40),Ig(2,"sh-icon",98),jg(),$l()),i&2){let e=iC(3);CE(2),vg("shTooltip",e.remoteControlTooltip());}}function wn(i,t){if(i&1&&(Qi(0,"label"),Fg(1,41),Ig(2,"sh-icon",98),jg(),$l()),i&2){let e=iC(3);CE(2),vg("shTooltip",e.connectionStatusIndicatorTooltip());}}function Dn(i,t){if(i&1&&(Qi(0,"label"),Fg(1,42),Ig(2,"sh-icon",98),jg(),$l()),i&2){let e=iC(3);CE(2),vg("shTooltip",e.connectionStatusIndicatorTooltip());}}function xn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,37),$l(),Qi(4,"p"),nC(5,38),$l()(),Qi(6,"div",82)(7,"sh-toggle",83),Hg("checkedChange",function(a){Od(e);let l=iC(2);return Pd(l.toggleConsoleControl(a))}),aT(8,An,3,1,"label")(9,Ln,3,1,"label"),$l(),Qi(10,"sh-toggle",83),Hg("checkedChange",function(a){Od(e);let l=iC(2);return Pd(l.saveHideConsoleConnectionStatus(a))}),aT(11,wn,3,1,"label")(12,Dn,3,1,"label"),$l()()();}if(i&2){let e=iC(2);CE(7),vg("checked",!e.consoleControlDisabled()),CE(),cT(e.consoleControlDisabled()?8:9),CE(2),vg("checked",!e.hideConsoleConnectionStatus()),CE(),cT(e.hideConsoleConnectionStatus()?11:12);}}function kn(i,t){i&1&&(Qi(0,"label"),nC(1,45),$l());}function Xn(i,t){i&1&&(Qi(0,"label"),nC(1,46),$l());}function Jn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,43),$l(),Qi(4,"p"),nC(5,44),$l()(),Qi(6,"div",74)(7,"sh-toggle",83),Hg("checkedChange",function(a){Od(e);let l=iC(2);return Pd(l.saveHideConsoleConnectionStatus(a))}),aT(8,kn,2,0,"label")(9,Xn,2,0,"label"),$l()()();}if(i&2){let e=iC(2);CE(7),vg("checked",!e.hideConsoleConnectionStatus()),CE(),cT(e.hideConsoleConnectionStatus()?8:9);}}function Vn(i,t){if(i&1&&(Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,36),$l(),Qi(4,"p"),jC(5),$l()(),Qi(6,"div",74),Ig(7,"app-remote-control"),$l()(),aT(8,xn,13,4,"section")(9,Jn,10,2,"section")),i&2){let e=iC();CE(5),im(e.remoteControlStatus()),CE(3),cT(e.remoteControlState()!="inactive"?8:9);}}function zn(i,t){i&1&&(Qi(0,"sh-icon",103),jC(1,"check"),$l());}function Un(i,t){i&1&&(Qi(0,"sh-icon",104),jC(1,"prohibit"),$l());}function Bn(i,t){if(i&1){let e=vT();Qi(0,"button",108),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.updatePassphrase())}),nC(1,50),$l();}if(i&2){let e=iC(2);Kg("loading",e.isUpdating());}}function Hn(i,t){if(i&1){let e=vT();Qi(0,"button",109),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.updatePassphrase())}),nC(1,51),$l();}if(i&2){let e=iC(2);Kg("loading",e.isUpdating()),vg("disabled",true);}}function Wn(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field")(1,"label",99),nC(2,47),$l(),Qi(3,"input",100),lm("ngModelChange",function(a){Od(e);let l=iC();return UC(l.passphrase,a)||(l.passphrase=a),Pd(a)}),$l(),CD(),$l(),Qi(4,"sh-form-field")(5,"label",101),nC(6,48),$l(),Qi(7,"input",102),lm("ngModelChange",function(a){Od(e);let l=iC();return UC(l.repeatPassphrase,a)||(l.repeatPassphrase=a),Pd(a)}),$l(),CD(),aT(8,zn,2,0,"sh-icon",103)(9,Un,2,0,"sh-icon",104),$l(),Qi(10,"div",79)(11,"button",105),Hg("click",function(){Od(e);let a=iC();return Pd(a.cancelPasswordChange())}),nC(12,49),$l(),aT(13,Bn,2,2,"button",106)(14,Hn,2,3,"button",107),$l();}if(i&2){let e=iC();CE(3),cm("ngModel",e.passphrase),_D(),CE(4),vg("disabled",e.passphrase().length===0),cm("ngModel",e.repeatPassphrase),_D(),CE(),cT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),CE(3),Kg("loading",e.isUpdating()),CE(2),cT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14);}}function jn(i,t){i&1&&(Qi(0,"sh-icon",110),jC(1,"check"),$l());}function qn(i,t){if(i&1){let e=vT();Qi(0,"div",79)(1,"button",105),Hg("click",function(){Od(e);let a=iC();return Pd(a.openPassphraseForm())}),nC(2,52),$l(),aT(3,jn,2,0,"sh-icon",110),$l();}if(i&2){let e=iC();CE(3),cT(e.passwordUpdated()?3:-1);}}function Kn(i,t){i&1&&(Qi(0,"label"),nC(1,53),$l());}function Qn(i,t){i&1&&(Qi(0,"label"),nC(1,54),$l());}function Yn(i,t){i&1&&(Qi(0,"label"),nC(1,55),$l());}function Zn(i,t){i&1&&(Qi(0,"label"),nC(1,56),$l());}function ei(i,t){i&1&&(Fg(0,13,1),Ig(1,"span"),jg());}function ti(i,t){i&1&&(Fg(0,13,2),Ig(1,"span"),jg());}function ni(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field")(1,"label",111),nC(2,57),$l(),Qi(3,"textarea",112),lm("ngModelChange",function(a){Od(e);let l=iC();return UC(l.allowedHostnames,a)||(l.allowedHostnames=a),Pd(a)}),$l(),CD(),$l(),Qi(4,"sh-alert",113),nC(5,58),$l(),Qi(6,"button",108),Hg("click",function(){Od(e);let a=iC();return Pd(a.updateAllowedHostnames())}),nC(7,59),$l();}if(i&2){let e=iC();CE(3),cm("ngModel",e.allowedHostnames),_D(),CE(3),Kg("loading",e.updatingAllowedHosts());}}function ii(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,60),$l(),Qi(4,"p"),nC(5,61),$l()(),Qi(6,"div",74)(7,"sh-select",114)(8,"input",81),Hg("ngModelChange",function(a){Od(e);let l=iC();return Pd(l.updatePowerMode(a))}),$l(),CD(),$l()()();}if(i&2){let e=iC();CE(7),vg("options",e.powerModeOptions())("isClearable",false),CE(),vg("ngModel",e.powerModeCtrl())("ngModelOptions",KC(4,Te)),_D();}}function oi(i,t){if(i&1&&(Qi(0,"p"),nC(1,62),$l()),i&2){let e=iC();CE(),Vg(e.sysinfo()?.ServerVersionName),rC(1);}}function si(i,t){i&1&&Ig(0,"sh-progress-bar",87);}function ai(i,t){if(i&1&&jC(0),i&2){let e=t.$implicit;Ql(" ",e.label," ");}}function ri(i,t){if(i&1&&jC(0),i&2){let e=t.$implicit;Ql(" ",e.label," ");}}function li(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,63),$l(),Qi(4,"p")(5,"span"),nC(6,64),$l(),Qi(7,"a",115),nC(8,65),$l(),Ig(9,"br")(10,"br"),Qi(11,"span"),nC(12,66),$l()()(),Qi(13,"div",74)(14,"sh-select",116)(15,"input",81),Hg("ngModelChange",function(a){Od(e);let l=iC();return Pd(l.updateUsageStatistics(a))}),$l(),CD(),cg(16,ri,1,1,"ng-template"),$l()()();}if(i&2){let e=iC();CE(14),vg("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),CE(),vg("ngModel",e.usageStatistics())("ngModelOptions",KC(4,Te)),_D();}}function _i(i,t){i&1&&(Qi(0,"label"),nC(1,69),$l());}function ci(i,t){i&1&&(Qi(0,"label"),nC(1,70),$l());}function di(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",73)(2,"h3"),nC(3,67),$l(),Qi(4,"p"),nC(5,68),$l()(),Qi(6,"div",82)(7,"p"),jC(8,"Backup process isolation"),$l(),Qi(9,"sh-toggle",83),Hg("checkedChange",function(a){Od(e);let l=iC();return Pd(l.saveControllerIpcState(a))}),aT(10,_i,2,0,"label")(11,ci,2,0,"label"),$l()()();}if(i&2){let e=iC();CE(9),vg("checked",e.isControllerIpcEnabled()),CE(),cT(e.isControllerIpcEnabled()?10:11);}}function Si(i,t,e){let[n]=_s(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 Ti=[{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(m$1);#t=T(O);#s=T(C);#r=T(I);#o=T(r);#a=T(f);#_=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=za(()=>{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(Ti);timeType=Ge("none");timeValue=Si(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(Tn(t)).subscribe());}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe());}serverSettingsEffect=za(()=>{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(Sn(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=hw({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=oC(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"),Qi(1,"div",71)(2,"header")(3,"div",72)(4,"h2"),nC(5,0),$l(),Qi(6,"p"),nC(7,1),$l()()(),aT(8,$n,8,2,"section")(9,Vn,10,2),Qi(10,"section")(11,"div",73)(12,"h3"),nC(13,2),$l(),Qi(14,"p"),nC(15,3),$l()(),Qi(16,"div",74)(17,"div",75)(18,"img",76),Hg("click",function(){return n.setLightMode()}),$l(),Qi(19,"img",77),Hg("click",function(){return n.setDarkMode()}),$l()()()(),Qi(20,"section")(21,"div",73)(22,"h3"),nC(23,4),$l(),Qi(24,"p"),nC(25,5),$l()(),Qi(26,"div",78),aT(27,Wn,15,7)(28,qn,4,1,"div",79),$l()(),Qi(29,"section")(30,"div",73)(31,"h3"),nC(32,6),$l(),Qi(33,"p"),nC(34,7),$l()(),Qi(35,"div",74)(36,"sh-select",80)(37,"input",81),Hg("ngModelChange",function(l){return n.updateLocale(l)}),$l(),CD(),$l()()(),Qi(38,"section")(39,"div",73)(40,"h3"),nC(41,8),$l(),Qi(42,"p"),nC(43,9),$l()(),Qi(44,"div",82)(45,"sh-toggle",83),Hg("checkedChange",function(l){return n.setFileTreeFoldersFirst(l)}),aT(46,Kn,2,0,"label")(47,Qn,2,0,"label"),$l(),Qi(48,"sh-toggle",83),Hg("checkedChange",function(l){return n.setFileTreeCaseSensitiveSort(l)}),aT(49,Yn,2,0,"label")(50,Zn,2,0,"label"),$l()()(),Qi(51,"section")(52,"div",73)(53,"h3"),nC(54,10),$l(),Qi(55,"p"),nC(56,11),$l()(),Qi(57,"div",84)(58,"button",85),Hg("click",function(){return n.openLegacyUI()}),Fg(59,12),Ig(60,"sh-icon"),jg(),$l(),Qi(61,"button",85),Hg("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),Fg(62,13),Ig(63,"sh-icon"),aT(64,ei,2,0,"span")(65,ti,2,0,"span"),jg(),$l()()(),Qi(66,"section")(67,"div",73)(68,"h3"),nC(69,14),$l(),Qi(70,"p"),nC(71,15),$l()(),Qi(72,"div",86)(73,"sh-toggle",83),Hg("checkedChange",function(l){return n.updateRemoteAccess(l)}),Qi(74,"label"),nC(75,16),$l()(),aT(76,ni,8,3),$l()(),Qi(77,"section")(78,"div",73)(79,"h3"),nC(80,17),$l(),Qi(81,"p"),nC(82,18),$l()(),Qi(83,"div",74)(84,"sh-toggle",83),Hg("checkedChange",function(l){return n.saveDisableTrayIconLogin(l)}),Qi(85,"label"),nC(86,19),$l()()()(),aT(87,ii,9,5,"section"),Qi(88,"section")(89,"div",73)(90,"h3"),nC(91,20),$l(),aT(92,oi,2,1,"p"),aT(93,si,1,0,"sh-progress-bar",87),$l(),Qi(94,"div",88)(95,"div",89),Hg("click",function(){return n.setNewChannel("")}),Qi(96,"sh-radio",90),nC(97,21),$l(),Qi(98,"p"),nC(99,22),$l()(),Qi(100,"div",89),Hg("click",function(){return n.setNewChannel("stable")}),Qi(101,"sh-radio",90),nC(102,23),$l(),Qi(103,"p"),nC(104,24),$l()(),Qi(105,"div",89),Hg("click",function(){return n.setNewChannel("beta")}),Qi(106,"sh-radio",90),nC(107,25),$l(),Qi(108,"p"),nC(109,26),$l()(),Qi(110,"div",89),Hg("click",function(){return n.setNewChannel("experimental")}),Qi(111,"sh-radio",90),nC(112,27),$l(),Qi(113,"p"),nC(114,28),$l()(),Qi(115,"div",89),Hg("click",function(){return n.setNewChannel("canary")}),Qi(116,"sh-radio",90),nC(117,29),$l(),Qi(118,"p"),nC(119,30),$l()()()(),Qi(120,"section")(121,"div",73)(122,"h3"),nC(123,31),$l(),Qi(124,"p"),nC(125,32),$l()(),Qi(126,"div",74)(127,"div",91)(128,"sh-range-slider",92)(129,"input",93),lm("ngModelChange",function(l){return UC(n.timeValue,l)||(n.timeValue=l),l}),Hg("ngModelChange",function(l){return n.updateTimeValue(l)}),$l(),CD(),$l(),Qi(130,"sh-select",94)(131,"input",95),Hg("ngModelChange",function(l){return n.updateTimeType(l)}),$l(),CD(),cg(132,ai,1,1,"ng-template"),$l()()()(),aT(133,li,17,5,"section"),aT(134,di,12,2,"section"),$l(),Ig(135,"sh-divider"),Qi(136,"div",71)(137,"section")(138,"div",96)(139,"h3"),nC(140,33),$l(),Ig(141,"app-advanced-options-settings"),$l()()(),Ig(142,"sh-divider")),e&2&&(CE(8),cT(n.isUsingRelay()?8:9),CE(10),Kg("active",!n.isDarkMode()),CE(),Kg("active",n.isDarkMode()),CE(8),cT(n.showPassphraseForm()?27:28),CE(9),vg("options",n.languageOptions())("isClearable",false)("inlineSearch",true),CE(),vg("ngModel",n.langCtrl())("ngModelOptions",KC(40,Te)),_D(),CE(8),vg("checked",n.fileTreeFoldersFirst()),CE(),cT(n.fileTreeFoldersFirst()?46:47),CE(2),vg("checked",n.fileTreeCaseSensitiveSort()),CE(),cT(n.fileTreeCaseSensitiveSort()?49:50),CE(15),cT(n.defaultClient()==="ngax"?64:65),CE(9),vg("checked",n.allowRemoteAccess()),CE(3),cT(n.allowRemoteAccess()?76:-1),CE(8),vg("checked",n.disableTrayIconLogin()),CE(3),cT(n.powerModeOptions().length>0?87:-1),CE(5),cT(n.sysinfo()?.ServerVersion?92:-1),CE(),cT(n.updatingChannel()?93:-1),CE(3),vg("checked",n.updateChannel()===""),CE(),Vg(n.sysinfo()?.DefaultUpdateChannel),rC(97),CE(2),Vg(n.sysinfo()?.ServerVersionType),rC(99),CE(2),vg("checked",n.updateChannel()==="stable"),CE(5),vg("checked",n.updateChannel()==="beta"),CE(5),vg("checked",n.updateChannel()==="experimental"),CE(5),vg("checked",n.updateChannel()==="canary"),CE(12),vg("unit",n.timeType()==="none"?"s":n.timeType()),CE(),vg("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),cm("ngModel",n.timeValue),vg("ngModelOptions",KC(41,Te)),_D(),CE(),vg("options",n.timeTypeOptions())("isClearable",false),CE(),vg("ngModel",n.timeType()),_D(),CE(2),cT(n.usageStatisticsDisabled()?-1:133),CE(),cT(n.hasIpcController()?134:-1));},dependencies:[Bn$1,Ze,on,Rn$1,Jt,Gn$1,ee,Se,K,v,O$1,cn,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{Si as debounceSignal,Ie as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {E as E1,bN as N1,bb as ce,h as hw,S as aC,V as Ul,Y as cC,X as Wl,f as NC,L as Kg}from'./main-
|
|
1
|
+
import {E as E1,bN as N1,bb as ce,h as hw,S as aC,V as Ul,Y as cC,X as Wl,f as NC,L as Kg}from'./main-XKLDSNLY.js';var g=["*"],D=(()=>{class s{constructor(){this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.sharp=E1(void 0),this.dynamic=E1(void 0),this.readonly=E1(false),this.noBg=E1(false,{transform:N1}),this.hostClasses=ce("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly});}static{this.\u0275fac=function(i){return new(i||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:4,hostBindings:function(i,h){i&2&&(NC(h.hostClasses()),Kg("no-bg",h.noBg()));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"],noBg:[1,"noBg"]},ngContentSelectors:g,decls:2,vars:0,template:function(i,h){i&1&&(aC(),Ul(0,"div"),cC(1),Wl());},styles:[`sh-chip{--chip-h: 2rem;--chip-s: calc(var(--chip-h) / 2)}sh-chip.sh-sheet{--sheet-c: var(--chip-c);--sheet-s: var(--chip-s)}sh-chip{--chip-bs: var(--ship-chip-shadow, none);display:inline-flex;align-items:center;justify-content:center;padding:0 .75rem;font:var(--paragraph-30B);height:var(--chip-h);box-shadow:var(--chip-bs);white-space:nowrap}sh-chip div{display:flex;align-items:center;gap:.5rem;color:var(--chip-c)}sh-chip.sharp{--chip-s: calc(var(--chip-h) / 4);padding:0 .5rem}sh-chip.sharp.small{padding:0 .375rem}sh-chip.sharp.xsmall{padding:0 .25rem}sh-chip sh-icon{color:var(--chip-ic);font-size:1rem;font-weight:inherit}sh-chip [avatar]{height:calc(var(--chip-h) - .75rem);width:calc(var(--chip-h) - .75rem);border-radius:50%}sh-chip.small{--chip-h: 1.5rem;font:var(--paragraph-40B);padding:0 .5rem}sh-chip.small div{gap:.25rem}sh-chip.small sh-icon{font-size:.75rem}sh-chip.xsmall{--chip-h: 1.25rem;font:var(--paragraph-40B);padding:0 .375rem}sh-chip.xsmall div{gap:.125rem}sh-chip.xsmall sh-icon{font-size:.625rem}sh-chip.no-bg{--sheet-bg: transparent;background:transparent}sh-chip.no-bg.simple,sh-chip.no-bg.simple.primary,sh-chip.no-bg.simple.accent,sh-chip.no-bg.simple.warn,sh-chip.no-bg.simple.error,sh-chip.no-bg.simple.success{--sheet-bc: transparent;border-color:transparent}sh-chip[disabled]{opacity:.5}sh-chip[readonly],sh-chip.readonly{pointer-events:none;-webkit-user-select:none;user-select:none}
|
|
2
2
|
`],encapsulation:2});}}return s})();export{D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=[{path:"",redirectTo:"destination",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-DKOaWS_j.js')},{path:"encryption",loadComponent:()=>import('./chunk-BNG7N21y.js').then(function(n){return n.c})},{path:"select-config",loadComponent:()=>import('./chunk-CGnsbLNG.js')}],o=t;export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-Dyq6iPbF.js';import {T,m,N as Nt,G as Ge,h as hw,c as N,bZ as ei,Q as Qi,n as nC,$ as $l,bi as cg,c3 as pC,C as CE,y as vg,a$ as JC,b_ as wg,a1 as dT,ag as Yg,a2 as fT,l as vT,H as Hg,O as Od,k as iC,P as Pd,d as aT,s as jC,L as Kg,g as cT,K as im,aF as XC,c5 as lb}from'./main-XKLDSNLY.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),jC(1,"caret-down"),$l()),e&2){let t=iC().$implicit;Kg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),jC(1,"dot"),$l());}function J(e,n){e&1&&wg(0);}function U(e,n){if(e&1&&cg(0,J,1,0,"ng-container",3),e&2){let t=iC().$implicit,o=iC().$implicit;iC();let i=pC(3);vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,L,XC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=vT();Qi(0,"div",4,1),Hg("click",function(){let i=Od(t).$implicit,G=iC(2);return Pd(i.children.length>0&&G.toggleNode(i))}),aT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),jC(5),$l()(),aT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Kg("cannot-toggle",t.children.length===0)("open",t.isOpen()),CE(2),cT(t.children.length>0?2:3),CE(3),im(t.text),CE(),cT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),dT(1,X,7,7,null,null,V),$l()),e&2){let t=n.$implicit;Yg("padding-left",t.level*.25,"rem"),CE(),fT(t.children);}}function H(e,n){e&1&&wg(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ge(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ge(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=hw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),nC(1,2),$l(),cg(2,q,3,2,"ng-template",null,0,lb)(4,H,1,0,"ng-container",3)),t&2){let i=pC(3);CE(4),vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(4,L,JC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {T,ab as C,G as Ge,N as Nt,z as za,J as zu,aZ as ee}from'./main-
|
|
1
|
+
import {T,ab as C,G as Ge,N as Nt,z as za,J as zu,aZ as ee}from'./main-XKLDSNLY.js';var u=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],v=class a{#l=T(C);#e=Ge([]);LOG_LEVELS=u;logLevel=Ge("Disabled");logLevelByLabel=Nt(()=>u.find(e=>e.value===this.logLevel())?.label);whenFilter=Ge(null);backupIdFilter=Ge(null);id=Ge(0);logs=Nt(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=Ge(false);isPolling=Ge(false);pagination=Ge({offset:0,pagesize:100});logLevelEffect=za(()=>{this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs();},3e3)):this.clearPolling();});setWhenFilter(e){this.whenFilter.set(e);}setBackupIdFilter(e){this.backupIdFilter.set(e);}loadLogs(){this.logsLoading.set(true),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(zu(()=>this.logsLoading.set(false))).subscribe({next:e=>{let i=e.reverse(),t=this.#i(i);t>0&&this.id.set(t),this.#e.set([...i,...this.#e()]);}});}updateLogLevel(e){this.logLevel.set(e),e==="Disabled"&&this.clearPolling();}#i(e){return e.reduce((i,t)=>Math.max(i,t.ID),0)}destroy(){this.logLevel.set("Disabled"),this.clearPolling();}clearPolling(){this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0;}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-CTH9uShX.js';import {d}from'./chunk-BnFO-7ok.js';import {F as Fe$1}from'./chunk-DqoYKCmi.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-BDhLEYas.js';import {T,e as ee,I,m,a as T$1,G as Ge,E as E1,N as Nt,q as qe,z as za,b as me$1,h as hw,_ as _t,v,u as ue$1,c as N,Q as Qi,d as aT,$ as $l,f as NC,t as tb,C as CE,g as cT,o as oC,F as Fg,j as jg,i as Ig,k as iC,l as vT,n as nC,p as lm,O as Od,U as UC,P as Pd,r as CD,s as jC,H as Hg,w as cm,x as _D,y as vg}from'./main-XKLDSNLY.js';import {S,C}from'./chunk-B8PnvglY.js';import {O}from'./chunk-CsgB8OpN.js';import'./chunk-DCsYP4vf.js';var re=(n,t,e,i,o)=>({"loading-state":n,"ready-to-add-link":t,"is-connected":e,"failed-to-connect":i,"is-registered":o});function ae(n,t){n&1&&nC(0,0,1);}function le(n,t){n&1&&nC(0,0,2);}function se(n,t){if(n&1){let e=vT();Qi(0,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.cancel())}),jC(1,"Cancel registration"),$l();}}function ce(n,t){if(n&1&&(Qi(0,"div",7)(1,"p"),Fg(2,0),aT(3,ae,1,0)(4,le,1,0),jg(),$l(),Ig(5,"sh-progress-bar",8),aT(6,se,2,0,"button",9),$l()),n&2){let e=iC();CE(3),cT(e.state()==="unknown"?3:4),CE(3),cT((e.registeringCounter()??0)>=5&&e.state()==="registering"?6:-1);}}function de(n,t){if(n&1){let e=vT();Qi(0,"sh-form-field")(1,"label",11),nC(2,1),$l(),Qi(3,"input",12),lm("ngModelChange",function(o){Od(e);let C=iC();return UC(C.customRegisterUrl,o)||(C.customRegisterUrl=o),Pd(o)}),$l(),CD(),$l(),Qi(4,"div",13)(5,"button",14),jC(6,"Go back"),$l(),Qi(7,"button",15),Hg("click",function(){Od(e);let o=iC();return Pd(o.registerViaCustomUrl())}),nC(8,2),$l()();}if(n&2){let e=iC();CE(3),cm("ngModel",e.customRegisterUrl),_D(),CE(4),vg("disabled",!e.customRegisterUrlValid());}}function _e(n,t){if(n&1){let e=vT();Qi(0,"p"),nC(1,3),$l(),Ig(2,"sh-progress-bar",8),Qi(3,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.retryWhenFaulted())}),jC(4,"Cancel"),$l();}}function ue(n,t){if(n&1){let e=vT();Qi(0,"p"),nC(1,4),$l(),Qi(2,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.retryWhenFaulted())}),jC(3,"Retry"),$l();}}function Ce(n,t){if(n&1&&aT(0,_e,5,0)(1,ue,4,0),n&2){let e=iC();cT(e.claimUrl()!==null?0:1);}}function ge(n,t){n&1&&(Fg(0,5,1),Ig(1,"p"),jg());}function me(n,t){n&1&&(Fg(0,5,2),Ig(1,"p"),jg());}function Fe(n,t){if(n&1){let e=vT();Qi(0,"sh-alert",16),Fg(1,5),aT(2,ge,2,0,"p")(3,me,2,0,"p"),jg(),$l(),Qi(4,"button",10),Hg("click",function(){Od(e);let o=iC();return Pd(o.retryWhenFaulted())}),jC(5," Retry "),Qi(6,"sh-icon"),jC(7,"arrow-arc-left"),$l()();}if(n&2){let e=iC();CE(2),cT(e.typeParam()==="link"?2:3);}}function fe(n,t){n&1&&(Qi(0,"h3"),jC(1,"Successfully connected"),$l(),Qi(2,"p"),jC(3,"We're going to redirect you to the home page"),$l());}var R=class n{#n=T(ee);#a=T(S);#e=T(C);#i=T(O);#l=T(I);#s=T(m);#c=T(T$1);isOldOpen=Ge(false);typeParam=E1.required();state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;customRegisterUrl=this.#e.customRegisterUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=Ge(false);customRegisterUrlValid=Nt(()=>{let t=this.customRegisterUrl(),e=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;return !(t.length===0||!e.test(t))});registeringCounter=Ge(null);didTry=false;triedFinishConnection=false;#t=null;#d=T(qe);constructor(){this.#d.onDestroy(()=>{this.#r();});}ngAfterViewInit(){(this.#l.relayIsEnabled()||!this.#s.hasWebSocket()?"longpoll":"websocket")==="websocket"&&this.#c.reconnectIfNeeded();}stateEffect=za(()=>{let t=this.#e.registerUrl(),e=this.state(),i=this.typeParam();e==="inactive"&&i==="logon"&&t!==""&&(this.didTry||(this.didTry=true,queueMicrotask(()=>this.#e.beginRemoteRegistration()))),e==="registered"&&(this.triedFinishConnection||me$1(()=>this.claimUrl())!==null&&(this.triedFinishConnection=true,this.#_())),e==="registering"?me$1(()=>{this.registeringCounter()===null&&this.registeringCounter.set(0),this.#o();}):(this.#r(),me$1(()=>this.registeringCounter.set(null))),(e==="connected"||e==="disabled"||e==="connecting")&&queueMicrotask(()=>{this.#i.setShownWelcomePage().subscribe(()=>{this.#n.navigate([""]);});});});#o(){this.#t!==null&&clearTimeout(this.#t),this.#t=setTimeout(()=>{this.#t=null;let t=this.registeringCounter()??0;this.registeringCounter.set(t+1),this.state()==="registering"&&this.#o();},1e3);}#r(){this.#t!==null&&(clearTimeout(this.#t),this.#t=null);}ngOnInit(){this.#e.refreshRemoteControlStatus();}#_(){let t=this.#e.claimUrl();this.#a.open(`${t}?closeAfterConnection=true`,"_blank");}registerViaCustomUrl(){this.#e.beginRemoteRegistration(true);}retryWhenFaulted(){this.#e.cancelRemoteRegistration(),this.customRegisterUrl.set(""),this.didTry=false,this.triedFinishConnection=false,this.typeParam()==="logon"&&this.#n.navigate(["/welcome/select"]);}cancel(){this.#e.cancelRemoteRegistration();}register(){this.#e.beginRemoteRegistration();}disable(){this.#e.disableRemoteControl();}enable(){this.#e.enableRemoteControl();}delete(){this.#e.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||n)};static \u0275cmp=hw({type:n,selectors:[["app-connect"]],inputs:{typeParam:[1,"typeParam"]},decls:6,vars:13,consts:()=>{let t;t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Loading... ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE: Connecting to console ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let e;e=$localize`Paste registration URL here`;let i;i=$localize` Connect machine to console `;let o;o=$localize`We're now connecting you to the console`;let C;C=$localize`Something failed during registration we're missing claimUrl, please try again`;let m;return m=$localize` Failed to register ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: Check if the connection link are correct, alternatively it could be your internet connection or the service might be down ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: There might be a problem with your internet connection or the service might be down, please try again later ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,m=oC(m),[t,e,i,o,C,m,[1,"main-card","type-b"],[1,"loader-content"],[1,"primary","indeterminate"],["shButton",""],["shButton","",3,"click"],["for","remoteControlRegisterUrl"],["type","text","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],[1,"nav-buttons"],["type","button","shButton","","routerLink","/welcome",1,"raised"],["type","button","shButton","",1,"raised","primary",3,"click","disabled"],[1,"error"]]},template:function(e,i){if(e&1&&(Qi(0,"sh-card",6),aT(1,ce,7,2,"div",7),aT(2,de,9,2),aT(3,Ce,2,1),aT(4,Fe,8,1),aT(5,fe,4,0),$l()),e&2){let o=i.state()==="unknown"||i.typeParam()!=="link"&&i.state()==="inactive"||i.state()==="registering",C=i.typeParam()==="link"&&i.state()==="inactive",m=i.state()==="connected"||i.state()==="disabled"||i.state()==="connecting",g=i.state()==="registeringfaulted";NC(tb(7,re,o,C,m,g,i.state()==="registered")),CE(),cT(o?1:-1),CE(),cT(C?2:-1),CE(),cT(i.state()==="registered"?3:-1),CE(),cT(g?4:-1),CE(),cT(m?5:-1);}},dependencies:[_t,Bn,Ze,Rn,Jt,Fe$1,v,d,f,ue$1,N],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:100%;width:100%;flex:1 0;overflow:hidden;padding:2rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{padding:1rem}}.main-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:31.25rem;max-height:min-content;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem;padding:2rem}.main-card.failed-to-connect[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}.main-card.failed-to-connect[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.main-card.is-registered[_ngcontent-%COMP%], .main-card.is-connected[_ngcontent-%COMP%]{align-items:center}.loader-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:100%}.loader-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{--pb-b: var(--base-3);border:1px solid var(--pb-b)}.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}.state[_ngcontent-%COMP%]{position:fixed;top:1rem;right:1rem;margin:0;color:var(--base-7);font-size:.75rem}.old[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;gap:.5rem;padding:1rem;border:1px solid var(--base-4);background:var(--base-1);position:fixed;top:0;right:0;bottom:0;width:35rem;transform:translate(100%)}.old.open[_ngcontent-%COMP%]{transform:translate(0)}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;position:absolute;background-color:var(--base-1);border:1px solid var(--base-4);border-width:.0625rem 0 .0625rem .0625rem;width:2rem;height:2.5rem;border-radius:var(--shape-2) 0 0 var(--shape-2);top:3.75rem;left:-2rem;-webkit-user-select:none;user-select:none}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.nav-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-direction:row}"]})};export{R as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h as hw,S as aC,Y as cC}from'./main-
|
|
1
|
+
import {h as hw,S as aC,Y as cC}from'./main-XKLDSNLY.js';var d=["*"],c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=hw({type:e,selectors:[["sh-divider"]],hostAttrs:["role","separator"],ngContentSelectors:d,decls:1,vars:0,template:function(i,a){i&1&&(aC(),cC(0));},styles:[`sh-divider{--divider-c: var(--base-4);--divider-h: .0625rem;display:flex;gap:.5rem;align-items:center;text-align:center}sh-divider:empty{gap:0}sh-divider:before,sh-divider:after{content:"";background:var(--divider-c);height:var(--divider-h);flex:1 0}
|
|
2
2
|
`],encapsulation:2});}}return e})();export{c};
|