@duplicati/ngclient 0.0.72 → 0.0.73
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-UXWUA3GY.js → chunk-3BW5OEST.js} +1 -1
- package/{chunk-KTPNIKXO.js → chunk-3IX6IFMC.js} +1 -1
- package/{chunk-KIR7XCMT.js → chunk-4KMNVH5V.js} +1 -1
- package/{chunk-Q3GNE2V2.js → chunk-52DF5DLH.js} +1 -1
- package/{chunk-76TXW7BV.js → chunk-5KGMNBD7.js} +1 -1
- package/{chunk-SPPLR4O6.js → chunk-5RREYMYL.js} +1 -1
- package/{chunk-NIP3HERY.js → chunk-6JYRURGN.js} +1 -1
- package/{chunk-YAE3TU4E.js → chunk-7DFG7XLB.js} +1 -1
- package/{chunk-HDCC66NC.js → chunk-7DXV4HCW.js} +1 -1
- package/{chunk-64ENL5GH.js → chunk-BEBLA2OU.js} +1 -1
- package/{chunk-AGCYH6MA.js → chunk-BY56DZ7Y.js} +1 -1
- package/{chunk-ARE7IWR6.js → chunk-BZKHWYFG.js} +1 -1
- package/{chunk-YMOY5EMW.js → chunk-C6ELLTE3.js} +1 -1
- package/{chunk-Q5EMYWV3.js → chunk-CAGBL2MP.js} +1 -1
- package/{chunk-PQKOLCEE.js → chunk-D6FCW3QQ.js} +1 -1
- package/{chunk-3FZUYC7D.js → chunk-DDV6526X.js} +1 -1
- package/{chunk-EDK7X7O7.js → chunk-F2G22QDO.js} +1 -1
- package/{chunk-REA5KDFD.js → chunk-GGE2QVTB.js} +1 -1
- package/{chunk-2BHHXTPG.js → chunk-GQLC6TYK.js} +1 -1
- package/{chunk-7I3L3TYU.js → chunk-IGKAD6UF.js} +1 -1
- package/{chunk-CZCBXB2D.js → chunk-JZCJ723Q.js} +1 -1
- package/{chunk-6DHAM3ZG.js → chunk-KYQC46J2.js} +1 -1
- package/{chunk-7UYVE2SG.js → chunk-L5ZZZJEY.js} +1 -1
- package/chunk-LINJJMSY.js +1 -0
- package/{chunk-4BB6E7IE.js → chunk-ME6FB7HY.js} +1 -1
- package/{chunk-C4F4MUPA.js → chunk-NESEFSQ3.js} +1 -1
- package/{chunk-TQX52V4E.js → chunk-NONIM5EZ.js} +1 -1
- package/{chunk-Z35537MB.js → chunk-NPTPCXGL.js} +1 -1
- package/chunk-NQVULKI2.js +1 -0
- package/{chunk-WDEJO2DY.js → chunk-QHSLOG7W.js} +1 -1
- package/{chunk-TY6F5J2H.js → chunk-RSKHLT37.js} +1 -1
- package/{chunk-PO2RDC4E.js → chunk-TLE3RBQZ.js} +1 -1
- package/chunk-UOIY2QTL.js +1 -0
- package/{chunk-YQGJVNGF.js → chunk-UWXUWL6K.js} +1 -1
- package/{chunk-AMEYNNK2.js → chunk-VJQDP23H.js} +1 -1
- package/{chunk-SIIP4YWD.js → chunk-VKMKZKNR.js} +1 -1
- package/{chunk-DNWGFNME.js → chunk-W3KOTZHW.js} +1 -1
- package/{chunk-F542ZCQR.js → chunk-ZDKGDOMK.js} +1 -1
- package/index.html +1 -1
- package/{main-KN334FZC.js → main-PHZR6ITE.js} +1 -1
- package/package.json +1 -1
- package/chunk-GDWXEPO2.js +0 -1
- package/chunk-SVRIHRMT.js +0 -1
- package/chunk-TLVMA6DU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as we}from"./chunk-7I3L3TYU.js";import{a as Wt}from"./chunk-6DHAM3ZG.js";import{a as Kt}from"./chunk-Q5EMYWV3.js";import"./chunk-DNHLTHLR.js";import{a as Ae,b as te}from"./chunk-6CRYB4HA.js";import{a as Ie}from"./chunk-ANP5WEOJ.js";import{a as pe}from"./chunk-22GS6UCG.js";import{a as jt}from"./chunk-FCPUMFVG.js";import"./chunk-Z5NZYMJN.js";import{a as bt}from"./chunk-4RXB65JX.js";import{a as Ht}from"./chunk-PO2RDC4E.js";import"./chunk-I24WOYYC.js";import"./chunk-ASPLJ6GL.js";import"./chunk-CP2S6DC4.js";import"./chunk-6TZWRTRA.js";import{a as Dt,b as j,d as H,e as ce,g as de,h as me,i as Vt,l as ue,m as Se,o as ge,p as Te,q as fe,r as Ce}from"./chunk-UJWW7PS7.js";import"./chunk-2P3GS5BJ.js";import{b}from"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as Ee,b as Lt,g as Ne,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,q as Oe,r as Me,w as he,x as Pe}from"./chunk-TLVMA6DU.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-GK7T43YY.js";import{Ab as w,Ac as $t,Bb as G,Cb as r,Db as o,E as Re,Eb as f,F as x,Fb as ae,Gb as le,Hb as yt,Ib as M,M as D,Mc as k,Nc as kt,Ob as B,Oc as q,Pb as U,Qa as Mt,Qb as _,Rb as Y,Sa as s,Sb as ee,T as se,Tb as _e,Ub as S,Vb as l,Yb as R,Z as N,Za as ht,_b as O,b as ut,ba as Ct,c as St,ca as Et,ea as C,eb as z,ec as Ft,fa as E,fc as vt,gc as Rt,hc as c,ic as $,ja as Nt,jc as P,k as gt,kb as T,l as Z,mc as V,n as Tt,nc as L,oc as X,q as ft,qb as Pt,r as ve,rb as It,sc as At,tb as m,tc as wt,ua as Ot,uc as Gt,va as g,vb as I,vc as xt,yb as u,z as J,zb as A}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";function Qt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function Ge(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=tn(i),p=Qt(Ge,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:p}):te(ve(n).pipe(t),{injector:p,requireSync:!0})}function tn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,ut);let[e,t,a]=i,p=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((y,[h,F])=>{if(Ot(F))y[h]=Ae(F,{injector:a?.injector}).pipe(D(kt(F)));else if(Tt(F))y[h]=F.pipe(Re());else if(typeof F=="function"){let oe=k(F);y[h]=Ae(oe,{injector:a?.injector}).pipe(D(F()))}else y[h]=gt(F).pipe(Re());return y},Array.isArray(e)?[]:{}),operator:t,hasInitValue:p,options:a}}var K=class i{#e=N(b);#i=te(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=se({token:i,factory:i.\u0275fac,providedIn:"root"})};var nn=["formRef"],on=()=>[import("./chunk-MYVJZFYR.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),sn=i=>({$implicit:i});function an(i,n){if(i&1){let e=M();B(0,3,1),r(1,"button",13,2),S("click",function(){let a=C(e).$implicit,p=l();return E(p.addNewOption(a))}),o(),U()}if(i&2){let e=n.$implicit;s(),Y(e.name),ee(0)}}function ln(i,n){i&1&&yt(0)}function _n(i,n){if(i&1&&T(0,ln,1,0,"ng-container",14),i&2){let e=n.$implicit,t=n.$index;l(2);let a=Rt(15);m("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,sn,xt(2,rn,t,e)))}}function pn(i,n){if(i&1&&w(0,_n,1,7,"ng-container",null,A),i&2){let e=l();G(e.selectedOptions())}}function cn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(r(0,"app-file-tree",17)(1,"label",23),c(2),T(3,cn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function mn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function un(i,n){if(i&1&&(r(0,"app-file-tree",18)(1,"label",23),c(2),T(3,mn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function Sn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function gn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"link"),o())}function Tn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"textbox"),o())}function fn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Sn,3,1,"spk-tooltip",24),o(),f(4,"input",25),T(5,gn,2,0,"spk-icon",26)(6,Tn,2,0,"spk-icon",26),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),s(),u(t.formView.type==="Path"?5:6)}}function Cn(i,n){if(i&1){let e=M();r(0,"span",30),S("click",function(){C(e);let a=l(2).$implicit,p=l();return E(p.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function En(i,n){i&1&&(r(0,"spk-icon",26),c(1,"password"),o())}function Nn(i,n){if(i&1){let e=M();r(0,"spk-icon",31),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function On(i,n){if(i&1){let e=M();r(0,"spk-icon",31),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function Mn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),o(),f(3,"input",27),T(4,Cn,2,0,"span",28)(5,En,2,0,"spk-icon",26)(6,Nn,2,0,"spk-icon",29)(7,On,2,0,"spk-icon",29),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),m("type",t.formView.showPassword?"text":"password"),s(),u(t.oauthField===t.formView.name?4:5),s(2),u(t.formView.showPassword?6:7)}}function hn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Pn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function In(i,n){if(i&1&&(r(0,"spk-select")(1,"label",23),c(2),T(3,hn,3,1,"spk-tooltip",24),o(),f(4,"input",32),w(5,Pn,2,2,"spk-option",33,A),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),s(),G(t.formView.options)}}function yn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Fn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function vn(i,n){if(i&1&&(r(0,"div",19)(1,"label",23),c(2),T(3,yn,3,1,"spk-tooltip",24),o(),r(4,"div",34)(5,"spk-form-field"),f(6,"input",35),r(7,"spk-icon",26),c(8,"resize"),o()(),r(9,"spk-select"),f(10,"label")(11,"input",36),w(12,Fn,2,2,"spk-option",33,A),o()()()),i&2){let e,t=l().$implicit,a=l();m("formGroupName",t.formView.name),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(3),O("id","destination-",t.formGroupName,"-",t.index,""),s(6),G(a.sizeOptions())}}function Rn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function An(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Rn,3,1,"spk-tooltip",24),o(),f(4,"input",37),r(5,"spk-icon",26),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function wn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Gn(i,n){if(i&1&&(r(0,"spk-toggle",20)(1,"label",23),c(2),T(3,wn,3,1,"spk-tooltip",24),o(),f(4,"input",38),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function xn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function $n(i,n){i&1&&(r(0,"spk-option",40),c(1,"None"),o()),i&2&&m("value","None")}function kn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),f(2,"spk-checkbox",41),o()),i&2){let e=l().$implicit;m("value",e),s(),P(" ",e," ")}}function bn(i,n){if(i&1&&T(0,$n,2,1,"spk-option",40)(1,kn,3,2,"spk-option",33),i&2){let e=n.$implicit;u(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(r(0,"spk-select",21)(1,"label",23),c(2),T(3,xn,3,1,"spk-tooltip",24),o(),f(4,"input",39),w(5,bn,2,1,null,null,A),o()),i&2){let e,t=l().$implicit;m("selectMultiple",!0),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),R("formControlName",t.formView.name),s(),G(t.formView.options)}}function Vn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Ln(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Vn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function Xn(i,n){if(i&1){let e=M();r(0,"div",15),ae(1,16),T(2,dn,5,14,"app-file-tree",17)(3,un,5,10,"app-file-tree",18)(4,fn,7,10,"spk-form-field")(5,Mn,8,11,"spk-form-field")(6,In,7,9,"spk-select")(7,vn,14,9,"div",19)(8,An,7,9,"spk-form-field")(9,Gn,5,9,"spk-toggle",20)(10,Dn,7,7,"spk-select",21)(11,Ln,5,9,"spk-form-field"),le(),r(12,"button",22),S("click",function(){let a=C(e).$implicit,p=l();return E(p.removeFormView(a.formView))}),r(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;s(),m("formGroupName",e.formGroupName),s(),u(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var ki=new Te,zn=["Bytes","KB","MB","GB","TB","PB"],bi=[{value:"",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`}],Di=1024*1024*1024*2,Vi=1024*1024*5;var ne=class i{#e=N(we);#i=N(K);#t=N(b);formRef=ht.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(zn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,p],v)=>{if(a.startsWith("--")){let y=a.replace("--",""),h=e.find(F=>F.name===y);h!==void 0?this.addNewOption(h,p):this.addFreeTextOption(y,p)}v===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(x(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Ft(t.formRef,nn,5),e&2&&vt()},features:[At([we])],decls:20,vars:5,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=_e(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){if(e&1){let a=M();r(0,"form",5,0),S("submit",function(){return C(a),E(t.submit())}),r(2,"app-toggle-card",6),ae(3,7),B(4,3),r(5,"spk-menu")(6,"button",8),f(7,"spk-icon"),o(),ae(8,9),w(9,an,3,1,"button",10,A),le(),o(),U(),le(),T(11,pn,2,0),Pt(12,11,on),o(),T(14,Xn,15,2,"ng-template",null,1,$t),r(16,"div",11)(17,"button",12),B(18,4),f(19,"spk-icon"),U(),o()()()}e&2&&(m("formGroup",t.optionsForm),s(2),m("disallowToggle",!0),s(7),G(t.nonSelectedOptions()),s(3),It(!t.isLoadingOptions()),s(5),I("loader",t.isSubmitting()))},dependencies:[Ce,me,j,Vt,Dt,H,ce,ue,ge,Se,Bt,Me,Ne,Ee,W,he,Xt,Oe,Pe,Wt,Kt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.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 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Q=class i{#e=N(b);#i=N(pe);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=k(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=se({token:i,factory:i.\u0275fac,providedIn:"root"})};function Bn(i,n){if(i&1){let e=M();r(0,"spk-form-field",10)(1,"input",11),X("ngModelChange",function(a){C(e);let p=l(2);return L(p.registerUrl,a)||(p.registerUrl=a),E(a)}),o()(),r(2,"button",12),S("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);s(),V("ngModel",e.registerUrl)}}function Un(i,n){if(i&1&&(r(0,"div",8)(1,"label"),_(2,1),o(),r(3,"a",13),c(4),o()()),i&2){let e=l(2);s(3),R("href",e.claimUrl(),Mt),s(),$(e.claimUrl())}}function qn(i,n){i&1&&(r(0,"div",8)(1,"label"),_(2,2),o()())}function jn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Hn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function Wn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),r(2,"button",14),S("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function Kn(i,n){if(i&1&&(r(0,"div",7),T(1,Bn,4,1)(2,Un,5,2,"div",8)(3,qn,3,0,"div",8)(4,jn,2,0,"button",9)(5,Hn,2,0,"button",9)(6,Wn,4,0),o()),i&2){let e=l();s(),u(e.state()==="inactive"?1:-1),s(),u(e.state()==="registered"?2:-1),s(),u(e.state()==="registering"?3:-1),s(),u(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),s(),u(e.state()==="connected"||e.state()==="enabled"?5:-1),s(),u(e.state()==="disabled"?6:-1)}}var Fe=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let p;p=$localize`Disable remote control`;let v;v=$localize`Enable remote control`;let y;return y=$localize`Delete remote control setup`,[n,e,t,a,p,v,y,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(e,t){e&1&&T(0,Kn,7,6,"div",7),e&2&&u(t.state()!=="unknown"?0:-1)},dependencies:[fe,j,H,de,W],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%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Qn=()=>({standalone:!0});function Zn(i,n){i&1&&(r(0,"spk-icon",73),c(1,"check"),o())}function Jn(i,n){i&1&&(r(0,"spk-icon",74),c(1,"prohibit"),o())}function Yn(i,n){if(i&1){let e=M();r(0,"button",78),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);I("loader",e.isUpdating())}}function ei(i,n){if(i&1){let e=M();r(0,"spk-tooltip",77)(1,"button",79),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);s(),I("loader",e.isUpdating()),m("disabled",!0)}}function ti(i,n){if(i&1){let e=M();r(0,"spk-form-field")(1,"label",69),_(2,32),o(),r(3,"input",70),X("ngModelChange",function(a){C(e);let p=l();return L(p.passphrase,a)||(p.passphrase=a),E(a)}),o()(),r(4,"spk-form-field")(5,"label",71),_(6,33),o(),r(7,"input",72),X("ngModelChange",function(a){C(e);let p=l();return L(p.repeatPassphrase,a)||(p.repeatPassphrase=a),E(a)}),o(),T(8,Zn,2,0,"spk-icon",73)(9,Jn,2,0,"spk-icon",74),o(),r(10,"div",50)(11,"button",75),S("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),T(13,Yn,2,2,"button",76)(14,ei,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();s(3),V("ngModel",e.passphrase),s(4),m("disabled",e.passphrase().length===0),V("ngModel",e.repeatPassphrase),s(),u(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),s(3),I("loader",e.isUpdating()),s(2),u(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ni(i,n){i&1&&(r(0,"spk-icon",80),c(1,"check"),o())}function ii(i,n){if(i&1){let e=M();r(0,"div",50)(1,"button",75),S("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),T(3,ni,2,0,"spk-icon",80),o()}if(i&2){let e=l();s(3),u(e.passwordUpdated()?3:-1)}}function oi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function ri(i,n){if(i&1){let e=M();r(0,"spk-form-field")(1,"label",81),_(2,38),o(),r(3,"textarea",82),X("ngModelChange",function(a){C(e);let p=l();return L(p.allowedHostnames,a)||(p.allowedHostnames=a),E(a)}),o()(),r(4,"spk-alert",83),_(5,39),o(),r(6,"button",78),S("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();s(3),V("ngModel",e.allowedHostnames),s(3),I("loader",e.updatingAllowedHosts())}}function si(i,n){if(i&1&&c(0),i&2){let e,t=l();P(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&f(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function _i(i,n){if(i&1){let e=M();r(0,"spk-option",84),S("click",function(){let a=C(e).$implicit,p=l();return E(p.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function pi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}var ie=new Te,Yt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],en=[{value:"",label:$localize`System default (information)`},{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`}],xe=class i{#e=N(jt);#i=N(pe);#t=N(b);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");langCtrl=g(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(x(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(x(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(x(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(x(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(x(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=k(()=>{let n=this.langCtrl();return n?Ie.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())):Ie});usageStatisticsOptions=g(en);timeTypeOptions=g(Yt);timeOptions=Ge([this.pauseSettings.controls.timeType.valueChanges.pipe(D("s")),this.pauseSettings.controls.time.valueChanges.pipe(D(null))],St(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),D([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}saveLocale(n){this.#o.setItem("locale",n),window.location.reload()}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),p=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:p.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Ie.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Yt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:en.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-settings"]],decls:140,vars:36,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let p;p=$localize`Color theme`;let v;v=$localize`Customize your application theme`;let y;y=$localize`Passwords`;let h;h=$localize`Change server passphrase`;let F;F=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let $e;$e=$localize`Allow remote access (requires restart)`;let ke;ke=$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 be;be=$localize`Allow remote access`;let De;De=$localize`Prevent tray icon automatic log-in`;let Ve;Ve=$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 Le;Le=$localize`Prevent tray icon automatic log-in`;let Xe;Xe=$localize`Update channel`;let ze;ze=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Be;Be=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ue;Ue=$localize`Stable`;let qe;qe=$localize`Official releases`;let je;je=$localize`Beta`;let He;He=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let We;We=$localize` Experimental `;let Ke;Ke=$localize`Specific builds for developers only. Not for use with important data.`;let Qe;Qe=$localize`Canary`;let Ze;Ze=$localize`Individual builds for developers only. Not for use with important data.`;let Je;Je=$localize`Pause after startup or hibernation`;let Ye;Ye=$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 et;et=$localize`Usage statistics`;let re;re=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#126\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#126\uFFFD"}:CLOSE_LINK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK: 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. `,re=_e(re);let tt;tt=$localize`Advanced options`;let nt;nt=$localize`Enter new password`;let it;it=$localize`Repeat password`;let ot;ot=$localize`Password have to be filled and have to match`;let rt;rt=$localize`Passphrase`;let st;st=$localize`Repeat passphrase`;let at;at=$localize`Cancel`;let lt;lt=$localize` Update passphrase `;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize`Change password`;let ct;ct=$localize`Allowed hostnames`;let dt;dt=$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 mt;return mt=$localize` Update allowed hostnames `,[n,e,t,a,p,v,y,h,F,oe,$e,ke,be,De,Ve,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,re,tt,rt,st,at,lt,_t,pt,ct,dt,mt,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[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"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",nt,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",it,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",ot,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),r(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),r(6,"p"),_(7,1),o()(),r(8,"button",43),_(9,2),o()(),r(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),r(14,"p"),c(15),o()(),r(16,"div",45),f(17,"app-remote-control"),o()(),r(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),r(22,"p"),_(23,5),o()(),r(24,"div",45)(25,"div",46)(26,"img",47),S("click",function(){return t.setLightMode()}),o(),r(27,"img",48),S("click",function(){return t.setDarkMode()}),o()()()(),r(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),r(32,"p"),_(33,7),o()(),r(34,"div",49),T(35,ti,15,7)(36,ii,4,1,"div",50),o()(),r(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),r(41,"p"),_(42,9),o()(),r(43,"div",45)(44,"spk-select",51),S("change",function(p){return t.saveLocale(p)}),r(45,"input",52),X("ngModelChange",function(p){return L(t.langCtrl,p)||(t.langCtrl=p),p}),o(),w(46,oi,2,2,"spk-option",53,A),o()()(),r(48,"section")(49,"div",44)(50,"h3"),_(51,10),o(),r(52,"p"),_(53,11),o()(),r(54,"div",54)(55,"spk-toggle",55),S("click",function(){return t.updateRemoteAccess()}),r(56,"label"),_(57,12),o()(),T(58,ri,8,3),o()(),r(59,"section")(60,"div",44)(61,"h3"),_(62,13),o(),r(63,"p"),_(64,14),o()(),r(65,"div",45)(66,"spk-toggle",55),S("click",function(){return t.saveDisableTrayIconLogin()}),r(67,"label"),_(68,15),o()()()(),r(69,"section")(70,"div",44)(71,"h3"),_(72,16),o(),r(73,"p"),T(74,si,1,1),o(),T(75,ai,1,0,"spk-progress-bar",56),o(),r(76,"div",57)(77,"div",58),S("click",function(){return t.setNewChannel("")}),r(78,"spk-radio",59),_(79,17),o(),r(80,"p"),_(81,18),o()(),r(82,"div",58),S("click",function(){return t.setNewChannel("stable")}),r(83,"spk-radio",59),_(84,19),o(),r(85,"p"),_(86,20),o()(),r(87,"div",58),S("click",function(){return t.setNewChannel("beta")}),r(88,"spk-radio",59),_(89,21),o(),r(90,"p"),_(91,22),o()(),r(92,"div",58),S("click",function(){return t.setNewChannel("experimental")}),r(93,"spk-radio",59),_(94,23),o(),r(95,"p"),_(96,24),o()(),r(97,"div",58),S("click",function(){return t.setNewChannel("canary")}),r(98,"spk-radio",59),_(99,25),o(),r(100,"p"),_(101,26),o()()()()(),f(102,"spk-divider"),r(103,"form",60),S("submit",function(){return t.submit()}),r(104,"section")(105,"div",44)(106,"h3"),_(107,27),o(),r(108,"p"),_(109,28),o()(),r(110,"div",45)(111,"div",61)(112,"spk-select",62),f(113,"input",63),w(114,li,2,2,"spk-option",53,A),o(),r(116,"spk-select",64),f(117,"input",65),w(118,_i,2,2,"spk-option",53,A),o()()()(),r(120,"section")(121,"div",44)(122,"h3"),_(123,29),o(),r(124,"p"),B(125,30),f(126,"a",66)(127,"br")(128,"br"),U(),o()(),r(129,"div",45)(130,"spk-select",67),f(131,"input",68),w(132,pi,2,2,"spk-option",53,A),o()()(),r(134,"section")(135,"div",44)(136,"h3"),_(137,31),o()(),r(138,"div",45),f(139,"app-advanced-options-settings"),o()()()),e&2){let a,p,v;s(8),m("disabled",t.settingsForm.untouched),s(7),$(t.remoteControlStatus()),s(11),I("active",!t.isDarkMode()),s(),I("active",t.isDarkMode()),s(8),u(t.showPassphraseForm()?35:36),s(9),m("displayFn",t.languageDisplay())("hideClearButton",!0),s(),V("ngModel",t.langCtrl),m("ngModelOptions",wt(35,Qn)),s(),G(t.languageOptions()),s(9),I("active",t.allowRemoteAccess()),s(3),u(t.allowRemoteAccess()?58:-1),s(8),I("active",t.disableTrayIconLogin()),s(8),u(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?74:-1),s(),u(t.updatingChannel()?75:-1),s(3),I("active",t.updateChannel()===""),s(),Y((p=t.sysinfo())==null?null:p.DefaultUpdateChannel),ee(79),s(2),Y((v=t.sysinfo())==null?null:v.ServerVersionType),ee(81),s(2),I("active",t.updateChannel()==="stable"),s(5),I("active",t.updateChannel()==="beta"),s(5),I("active",t.updateChannel()==="experimental"),s(5),I("active",t.updateChannel()==="canary"),s(5),m("formGroup",t.settingsForm),s(9),m("hideClearButton",!0),s(2),G(t.timeOptions()),s(2),m("displayFn",t.typeDisplay())("hideClearButton",!0),s(2),G(t.timeTypeOptions()),s(12),m("displayFn",t.usageDisplay()),s(2),G(t.usageStatisticsOptions())}},dependencies:[fe,me,j,H,ce,de,Ce,ue,ge,Se,Ht,Fe,ne,Oe,Ne,qt,Me,Ut,he,Pe,W,Ee,zt,Lt],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;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}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-level-40)}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%] spk-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:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.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%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{xe as default};
|
|
1
|
+
import{o as we}from"./chunk-IGKAD6UF.js";import{a as Wt}from"./chunk-KYQC46J2.js";import{a as Kt}from"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import{a as Ae,b as te}from"./chunk-6CRYB4HA.js";import{a as Ie}from"./chunk-ANP5WEOJ.js";import{a as pe}from"./chunk-22GS6UCG.js";import{a as jt}from"./chunk-FCPUMFVG.js";import"./chunk-Z5NZYMJN.js";import{a as bt}from"./chunk-4RXB65JX.js";import{a as Ht}from"./chunk-TLE3RBQZ.js";import"./chunk-I24WOYYC.js";import"./chunk-ASPLJ6GL.js";import"./chunk-CP2S6DC4.js";import"./chunk-6TZWRTRA.js";import{a as Dt,b as j,d as H,e as ce,g as de,h as me,i as Vt,l as ue,m as Se,o as ge,p as Te,q as fe,r as Ce}from"./chunk-UJWW7PS7.js";import"./chunk-2P3GS5BJ.js";import{b}from"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as Ee,b as Lt,g as Ne,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,q as Oe,r as Me,w as he,x as Pe}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-GK7T43YY.js";import{Ab as w,Ac as $t,Bb as G,Cb as r,Db as o,E as Re,Eb as f,F as x,Fb as ae,Gb as le,Hb as yt,Ib as M,M as D,Mc as k,Nc as kt,Ob as B,Oc as q,Pb as U,Qa as Mt,Qb as _,Rb as Y,Sa as s,Sb as ee,T as se,Tb as _e,Ub as S,Vb as l,Yb as R,Z as N,Za as ht,_b as O,b as ut,ba as Ct,c as St,ca as Et,ea as C,eb as z,ec as Ft,fa as E,fc as vt,gc as Rt,hc as c,ic as $,ja as Nt,jc as P,k as gt,kb as T,l as Z,mc as V,n as Tt,nc as L,oc as X,q as ft,qb as Pt,r as ve,rb as It,sc as At,tb as m,tc as wt,ua as Ot,uc as Gt,va as g,vb as I,vc as xt,yb as u,z as J,zb as A}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";function Qt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function Ge(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=tn(i),p=Qt(Ge,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:p}):te(ve(n).pipe(t),{injector:p,requireSync:!0})}function tn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,ut);let[e,t,a]=i,p=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((y,[h,F])=>{if(Ot(F))y[h]=Ae(F,{injector:a?.injector}).pipe(D(kt(F)));else if(Tt(F))y[h]=F.pipe(Re());else if(typeof F=="function"){let oe=k(F);y[h]=Ae(oe,{injector:a?.injector}).pipe(D(F()))}else y[h]=gt(F).pipe(Re());return y},Array.isArray(e)?[]:{}),operator:t,hasInitValue:p,options:a}}var K=class i{#e=N(b);#i=te(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=se({token:i,factory:i.\u0275fac,providedIn:"root"})};var nn=["formRef"],on=()=>[import("./chunk-MYVJZFYR.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),sn=i=>({$implicit:i});function an(i,n){if(i&1){let e=M();B(0,3,1),r(1,"button",13,2),S("click",function(){let a=C(e).$implicit,p=l();return E(p.addNewOption(a))}),o(),U()}if(i&2){let e=n.$implicit;s(),Y(e.name),ee(0)}}function ln(i,n){i&1&&yt(0)}function _n(i,n){if(i&1&&T(0,ln,1,0,"ng-container",14),i&2){let e=n.$implicit,t=n.$index;l(2);let a=Rt(15);m("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,sn,xt(2,rn,t,e)))}}function pn(i,n){if(i&1&&w(0,_n,1,7,"ng-container",null,A),i&2){let e=l();G(e.selectedOptions())}}function cn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(r(0,"app-file-tree",17)(1,"label",23),c(2),T(3,cn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function mn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function un(i,n){if(i&1&&(r(0,"app-file-tree",18)(1,"label",23),c(2),T(3,mn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function Sn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function gn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"link"),o())}function Tn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"textbox"),o())}function fn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Sn,3,1,"spk-tooltip",24),o(),f(4,"input",25),T(5,gn,2,0,"spk-icon",26)(6,Tn,2,0,"spk-icon",26),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),s(),u(t.formView.type==="Path"?5:6)}}function Cn(i,n){if(i&1){let e=M();r(0,"span",30),S("click",function(){C(e);let a=l(2).$implicit,p=l();return E(p.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function En(i,n){i&1&&(r(0,"spk-icon",26),c(1,"password"),o())}function Nn(i,n){if(i&1){let e=M();r(0,"spk-icon",31),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function On(i,n){if(i&1){let e=M();r(0,"spk-icon",31),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function Mn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),o(),f(3,"input",27),T(4,Cn,2,0,"span",28)(5,En,2,0,"spk-icon",26)(6,Nn,2,0,"spk-icon",29)(7,On,2,0,"spk-icon",29),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),m("type",t.formView.showPassword?"text":"password"),s(),u(t.oauthField===t.formView.name?4:5),s(2),u(t.formView.showPassword?6:7)}}function hn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Pn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function In(i,n){if(i&1&&(r(0,"spk-select")(1,"label",23),c(2),T(3,hn,3,1,"spk-tooltip",24),o(),f(4,"input",32),w(5,Pn,2,2,"spk-option",33,A),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name),s(),G(t.formView.options)}}function yn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Fn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function vn(i,n){if(i&1&&(r(0,"div",19)(1,"label",23),c(2),T(3,yn,3,1,"spk-tooltip",24),o(),r(4,"div",34)(5,"spk-form-field"),f(6,"input",35),r(7,"spk-icon",26),c(8,"resize"),o()(),r(9,"spk-select"),f(10,"label")(11,"input",36),w(12,Fn,2,2,"spk-option",33,A),o()()()),i&2){let e,t=l().$implicit,a=l();m("formGroupName",t.formView.name),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(3),O("id","destination-",t.formGroupName,"-",t.index,""),s(6),G(a.sizeOptions())}}function Rn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function An(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Rn,3,1,"spk-tooltip",24),o(),f(4,"input",37),r(5,"spk-icon",26),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function wn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Gn(i,n){if(i&1&&(r(0,"spk-toggle",20)(1,"label",23),c(2),T(3,wn,3,1,"spk-tooltip",24),o(),f(4,"input",38),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function xn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function $n(i,n){i&1&&(r(0,"spk-option",40),c(1,"None"),o()),i&2&&m("value","None")}function kn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),f(2,"spk-checkbox",41),o()),i&2){let e=l().$implicit;m("value",e),s(),P(" ",e," ")}}function bn(i,n){if(i&1&&T(0,$n,2,1,"spk-option",40)(1,kn,3,2,"spk-option",33),i&2){let e=n.$implicit;u(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(r(0,"spk-select",21)(1,"label",23),c(2),T(3,xn,3,1,"spk-tooltip",24),o(),f(4,"input",39),w(5,bn,2,1,null,null,A),o()),i&2){let e,t=l().$implicit;m("selectMultiple",!0),s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),R("formControlName",t.formView.name),s(),G(t.formView.options)}}function Vn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Ln(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Vn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit;s(),O("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),u(t.formView.longDescription?3:-1),s(),O("id","destination-",t.formGroupName,"-",t.index,""),R("formControlName",t.formView.name)}}function Xn(i,n){if(i&1){let e=M();r(0,"div",15),ae(1,16),T(2,dn,5,14,"app-file-tree",17)(3,un,5,10,"app-file-tree",18)(4,fn,7,10,"spk-form-field")(5,Mn,8,11,"spk-form-field")(6,In,7,9,"spk-select")(7,vn,14,9,"div",19)(8,An,7,9,"spk-form-field")(9,Gn,5,9,"spk-toggle",20)(10,Dn,7,7,"spk-select",21)(11,Ln,5,9,"spk-form-field"),le(),r(12,"button",22),S("click",function(){let a=C(e).$implicit,p=l();return E(p.removeFormView(a.formView))}),r(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;s(),m("formGroupName",e.formGroupName),s(),u(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var ki=new Te,zn=["Bytes","KB","MB","GB","TB","PB"],bi=[{value:"",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`}],Di=1024*1024*1024*2,Vi=1024*1024*5;var ne=class i{#e=N(we);#i=N(K);#t=N(b);formRef=ht.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(zn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,p],v)=>{if(a.startsWith("--")){let y=a.replace("--",""),h=e.find(F=>F.name===y);h!==void 0?this.addNewOption(h,p):this.addFreeTextOption(y,p)}v===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(x(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Ft(t.formRef,nn,5),e&2&&vt()},features:[At([we])],decls:20,vars:5,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=_e(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){if(e&1){let a=M();r(0,"form",5,0),S("submit",function(){return C(a),E(t.submit())}),r(2,"app-toggle-card",6),ae(3,7),B(4,3),r(5,"spk-menu")(6,"button",8),f(7,"spk-icon"),o(),ae(8,9),w(9,an,3,1,"button",10,A),le(),o(),U(),le(),T(11,pn,2,0),Pt(12,11,on),o(),T(14,Xn,15,2,"ng-template",null,1,$t),r(16,"div",11)(17,"button",12),B(18,4),f(19,"spk-icon"),U(),o()()()}e&2&&(m("formGroup",t.optionsForm),s(2),m("disallowToggle",!0),s(7),G(t.nonSelectedOptions()),s(3),It(!t.isLoadingOptions()),s(5),I("loader",t.isSubmitting()))},dependencies:[Ce,me,j,Vt,Dt,H,ce,ue,ge,Se,Bt,Me,Ne,Ee,W,he,Xt,Oe,Pe,Wt,Kt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.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 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Q=class i{#e=N(b);#i=N(pe);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=k(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=se({token:i,factory:i.\u0275fac,providedIn:"root"})};function Bn(i,n){if(i&1){let e=M();r(0,"spk-form-field",10)(1,"input",11),X("ngModelChange",function(a){C(e);let p=l(2);return L(p.registerUrl,a)||(p.registerUrl=a),E(a)}),o()(),r(2,"button",12),S("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);s(),V("ngModel",e.registerUrl)}}function Un(i,n){if(i&1&&(r(0,"div",8)(1,"label"),_(2,1),o(),r(3,"a",13),c(4),o()()),i&2){let e=l(2);s(3),R("href",e.claimUrl(),Mt),s(),$(e.claimUrl())}}function qn(i,n){i&1&&(r(0,"div",8)(1,"label"),_(2,2),o()())}function jn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Hn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function Wn(i,n){if(i&1){let e=M();r(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),r(2,"button",14),S("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function Kn(i,n){if(i&1&&(r(0,"div",7),T(1,Bn,4,1)(2,Un,5,2,"div",8)(3,qn,3,0,"div",8)(4,jn,2,0,"button",9)(5,Hn,2,0,"button",9)(6,Wn,4,0),o()),i&2){let e=l();s(),u(e.state()==="inactive"?1:-1),s(),u(e.state()==="registered"?2:-1),s(),u(e.state()==="registering"?3:-1),s(),u(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),s(),u(e.state()==="connected"||e.state()==="enabled"?5:-1),s(),u(e.state()==="disabled"?6:-1)}}var Fe=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let p;p=$localize`Disable remote control`;let v;v=$localize`Enable remote control`;let y;return y=$localize`Delete remote control setup`,[n,e,t,a,p,v,y,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(e,t){e&1&&T(0,Kn,7,6,"div",7),e&2&&u(t.state()!=="unknown"?0:-1)},dependencies:[fe,j,H,de,W],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%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Qn=()=>({standalone:!0});function Zn(i,n){i&1&&(r(0,"spk-icon",73),c(1,"check"),o())}function Jn(i,n){i&1&&(r(0,"spk-icon",74),c(1,"prohibit"),o())}function Yn(i,n){if(i&1){let e=M();r(0,"button",78),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);I("loader",e.isUpdating())}}function ei(i,n){if(i&1){let e=M();r(0,"spk-tooltip",77)(1,"button",79),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);s(),I("loader",e.isUpdating()),m("disabled",!0)}}function ti(i,n){if(i&1){let e=M();r(0,"spk-form-field")(1,"label",69),_(2,32),o(),r(3,"input",70),X("ngModelChange",function(a){C(e);let p=l();return L(p.passphrase,a)||(p.passphrase=a),E(a)}),o()(),r(4,"spk-form-field")(5,"label",71),_(6,33),o(),r(7,"input",72),X("ngModelChange",function(a){C(e);let p=l();return L(p.repeatPassphrase,a)||(p.repeatPassphrase=a),E(a)}),o(),T(8,Zn,2,0,"spk-icon",73)(9,Jn,2,0,"spk-icon",74),o(),r(10,"div",50)(11,"button",75),S("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),T(13,Yn,2,2,"button",76)(14,ei,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();s(3),V("ngModel",e.passphrase),s(4),m("disabled",e.passphrase().length===0),V("ngModel",e.repeatPassphrase),s(),u(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),s(3),I("loader",e.isUpdating()),s(2),u(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ni(i,n){i&1&&(r(0,"spk-icon",80),c(1,"check"),o())}function ii(i,n){if(i&1){let e=M();r(0,"div",50)(1,"button",75),S("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),T(3,ni,2,0,"spk-icon",80),o()}if(i&2){let e=l();s(3),u(e.passwordUpdated()?3:-1)}}function oi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function ri(i,n){if(i&1){let e=M();r(0,"spk-form-field")(1,"label",81),_(2,38),o(),r(3,"textarea",82),X("ngModelChange",function(a){C(e);let p=l();return L(p.allowedHostnames,a)||(p.allowedHostnames=a),E(a)}),o()(),r(4,"spk-alert",83),_(5,39),o(),r(6,"button",78),S("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();s(3),V("ngModel",e.allowedHostnames),s(3),I("loader",e.updatingAllowedHosts())}}function si(i,n){if(i&1&&c(0),i&2){let e,t=l();P(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&f(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function _i(i,n){if(i&1){let e=M();r(0,"spk-option",84),S("click",function(){let a=C(e).$implicit,p=l();return E(p.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function pi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}var ie=new Te,Yt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],en=[{value:"",label:$localize`System default (information)`},{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`}],xe=class i{#e=N(jt);#i=N(pe);#t=N(b);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");langCtrl=g(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(x(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(x(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(x(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(x(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(x(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=k(()=>{let n=this.langCtrl();return n?Ie.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())):Ie});usageStatisticsOptions=g(en);timeTypeOptions=g(Yt);timeOptions=Ge([this.pauseSettings.controls.timeType.valueChanges.pipe(D("s")),this.pauseSettings.controls.time.valueChanges.pipe(D(null))],St(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),D([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}saveLocale(n){this.#o.setItem("locale",n),window.location.reload()}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),p=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:p.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Ie.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Yt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:en.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-settings"]],decls:140,vars:36,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let p;p=$localize`Color theme`;let v;v=$localize`Customize your application theme`;let y;y=$localize`Passwords`;let h;h=$localize`Change server passphrase`;let F;F=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let $e;$e=$localize`Allow remote access (requires restart)`;let ke;ke=$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 be;be=$localize`Allow remote access`;let De;De=$localize`Prevent tray icon automatic log-in`;let Ve;Ve=$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 Le;Le=$localize`Prevent tray icon automatic log-in`;let Xe;Xe=$localize`Update channel`;let ze;ze=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Be;Be=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ue;Ue=$localize`Stable`;let qe;qe=$localize`Official releases`;let je;je=$localize`Beta`;let He;He=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let We;We=$localize` Experimental `;let Ke;Ke=$localize`Specific builds for developers only. Not for use with important data.`;let Qe;Qe=$localize`Canary`;let Ze;Ze=$localize`Individual builds for developers only. Not for use with important data.`;let Je;Je=$localize`Pause after startup or hibernation`;let Ye;Ye=$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 et;et=$localize`Usage statistics`;let re;re=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#126\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#126\uFFFD"}:CLOSE_LINK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK: 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. `,re=_e(re);let tt;tt=$localize`Advanced options`;let nt;nt=$localize`Enter new password`;let it;it=$localize`Repeat password`;let ot;ot=$localize`Password have to be filled and have to match`;let rt;rt=$localize`Passphrase`;let st;st=$localize`Repeat passphrase`;let at;at=$localize`Cancel`;let lt;lt=$localize` Update passphrase `;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize`Change password`;let ct;ct=$localize`Allowed hostnames`;let dt;dt=$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 mt;return mt=$localize` Update allowed hostnames `,[n,e,t,a,p,v,y,h,F,oe,$e,ke,be,De,Ve,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,re,tt,rt,st,at,lt,_t,pt,ct,dt,mt,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[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"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",nt,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",it,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",ot,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),r(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),r(6,"p"),_(7,1),o()(),r(8,"button",43),_(9,2),o()(),r(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),r(14,"p"),c(15),o()(),r(16,"div",45),f(17,"app-remote-control"),o()(),r(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),r(22,"p"),_(23,5),o()(),r(24,"div",45)(25,"div",46)(26,"img",47),S("click",function(){return t.setLightMode()}),o(),r(27,"img",48),S("click",function(){return t.setDarkMode()}),o()()()(),r(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),r(32,"p"),_(33,7),o()(),r(34,"div",49),T(35,ti,15,7)(36,ii,4,1,"div",50),o()(),r(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),r(41,"p"),_(42,9),o()(),r(43,"div",45)(44,"spk-select",51),S("change",function(p){return t.saveLocale(p)}),r(45,"input",52),X("ngModelChange",function(p){return L(t.langCtrl,p)||(t.langCtrl=p),p}),o(),w(46,oi,2,2,"spk-option",53,A),o()()(),r(48,"section")(49,"div",44)(50,"h3"),_(51,10),o(),r(52,"p"),_(53,11),o()(),r(54,"div",54)(55,"spk-toggle",55),S("click",function(){return t.updateRemoteAccess()}),r(56,"label"),_(57,12),o()(),T(58,ri,8,3),o()(),r(59,"section")(60,"div",44)(61,"h3"),_(62,13),o(),r(63,"p"),_(64,14),o()(),r(65,"div",45)(66,"spk-toggle",55),S("click",function(){return t.saveDisableTrayIconLogin()}),r(67,"label"),_(68,15),o()()()(),r(69,"section")(70,"div",44)(71,"h3"),_(72,16),o(),r(73,"p"),T(74,si,1,1),o(),T(75,ai,1,0,"spk-progress-bar",56),o(),r(76,"div",57)(77,"div",58),S("click",function(){return t.setNewChannel("")}),r(78,"spk-radio",59),_(79,17),o(),r(80,"p"),_(81,18),o()(),r(82,"div",58),S("click",function(){return t.setNewChannel("stable")}),r(83,"spk-radio",59),_(84,19),o(),r(85,"p"),_(86,20),o()(),r(87,"div",58),S("click",function(){return t.setNewChannel("beta")}),r(88,"spk-radio",59),_(89,21),o(),r(90,"p"),_(91,22),o()(),r(92,"div",58),S("click",function(){return t.setNewChannel("experimental")}),r(93,"spk-radio",59),_(94,23),o(),r(95,"p"),_(96,24),o()(),r(97,"div",58),S("click",function(){return t.setNewChannel("canary")}),r(98,"spk-radio",59),_(99,25),o(),r(100,"p"),_(101,26),o()()()()(),f(102,"spk-divider"),r(103,"form",60),S("submit",function(){return t.submit()}),r(104,"section")(105,"div",44)(106,"h3"),_(107,27),o(),r(108,"p"),_(109,28),o()(),r(110,"div",45)(111,"div",61)(112,"spk-select",62),f(113,"input",63),w(114,li,2,2,"spk-option",53,A),o(),r(116,"spk-select",64),f(117,"input",65),w(118,_i,2,2,"spk-option",53,A),o()()()(),r(120,"section")(121,"div",44)(122,"h3"),_(123,29),o(),r(124,"p"),B(125,30),f(126,"a",66)(127,"br")(128,"br"),U(),o()(),r(129,"div",45)(130,"spk-select",67),f(131,"input",68),w(132,pi,2,2,"spk-option",53,A),o()()(),r(134,"section")(135,"div",44)(136,"h3"),_(137,31),o()(),r(138,"div",45),f(139,"app-advanced-options-settings"),o()()()),e&2){let a,p,v;s(8),m("disabled",t.settingsForm.untouched),s(7),$(t.remoteControlStatus()),s(11),I("active",!t.isDarkMode()),s(),I("active",t.isDarkMode()),s(8),u(t.showPassphraseForm()?35:36),s(9),m("displayFn",t.languageDisplay())("hideClearButton",!0),s(),V("ngModel",t.langCtrl),m("ngModelOptions",wt(35,Qn)),s(),G(t.languageOptions()),s(9),I("active",t.allowRemoteAccess()),s(3),u(t.allowRemoteAccess()?58:-1),s(8),I("active",t.disableTrayIconLogin()),s(8),u(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?74:-1),s(),u(t.updatingChannel()?75:-1),s(3),I("active",t.updateChannel()===""),s(),Y((p=t.sysinfo())==null?null:p.DefaultUpdateChannel),ee(79),s(2),Y((v=t.sysinfo())==null?null:v.ServerVersionType),ee(81),s(2),I("active",t.updateChannel()==="stable"),s(5),I("active",t.updateChannel()==="beta"),s(5),I("active",t.updateChannel()==="experimental"),s(5),I("active",t.updateChannel()==="canary"),s(5),m("formGroup",t.settingsForm),s(9),m("hideClearButton",!0),s(2),G(t.timeOptions()),s(2),m("displayFn",t.typeDisplay())("hideClearButton",!0),s(2),G(t.timeTypeOptions()),s(12),m("displayFn",t.usageDisplay()),s(2),G(t.usageStatisticsOptions())}},dependencies:[fe,me,j,H,ce,de,Ce,ue,ge,Se,Ht,Fe,ne,Oe,Ne,qt,Me,Ut,he,Pe,W,Ee,zt,Lt],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;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}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-level-40)}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%] spk-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:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.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%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{xe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as a,l as b}from"./chunk-
|
|
1
|
+
import{k as a,l as b}from"./chunk-IGKAD6UF.js";import"./chunk-KYQC46J2.js";import"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import"./chunk-Z5NZYMJN.js";import"./chunk-UJWW7PS7.js";import"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-
|
|
1
|
+
import{e as a,f as b}from"./chunk-D6FCW3QQ.js";import"./chunk-KYQC46J2.js";import"./chunk-CAGBL2MP.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import"./chunk-UJWW7PS7.js";import"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-TLE3RBQZ.js";import"./chunk-I24WOYYC.js";import"./chunk-ASPLJ6GL.js";import"./chunk-CP2S6DC4.js";import"./chunk-6TZWRTRA.js";import"./chunk-UJWW7PS7.js";import"./chunk-2P3GS5BJ.js";import"./chunk-KJ4O6F3R.js";import{d as S}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as T,g as M,h as f}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-GK7T43YY.js";import{Cb as e,Db as n,Eb as _,Ob as s,Pb as l,Qb as i,Sa as c,eb as D,tb as r,tc as d}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b,d as $,e as h,h as G,l as P,o as B,p as v,r as L}from"./chunk-UJWW7PS7.js";import{b as A}from"./chunk-KJ4O6F3R.js";import{c as I,d as y}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as w,c as V,g as x,l as X,y as U}from"./chunk-
|
|
1
|
+
import{b,d as $,e as h,h as G,l as P,o as B,p as v,r as L}from"./chunk-UJWW7PS7.js";import{b as A}from"./chunk-KJ4O6F3R.js";import{c as I,d as y}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as w,c as V,g as x,l as X,y as U}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import{Cb as i,Db as r,Eb as _,F as g,N as T,Ob as C,Pb as O,Qb as f,Sa as F,Tb as N,Ub as m,Z as u,eb as R,hc as M,kb as S,tb as c,tc as k,va as p,vb as D,yb as E}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var j=()=>["/"];function z(l,e){l&1&&(i(0,"spk-form-field")(1,"label",11),f(2,2),r(),_(3,"input",12),r())}var a=new v,d=class l{#t=u(V);#e=u(A);#o=u(I);isRestoring=p(!1);isSecureFile=p(!1);importForm=a.group({config:a.control(""),cmdline:a.control(!1),importMetadata:a.control(!1),direct:a.control(!1),passphrase:a.control("")});selectedFile=p(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let n=new FileReader;this.isSecureFile.set(t.type!=="application/json"),n.onload=this.#n.bind(this),n.readAsArrayBuffer(t)}}#n(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,n="";for(let s=0;s<t;s++)n+=String.fromCharCode(o[s]);return btoa(n)}submit(){this.isRestoring.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(T(e=>this.#e.postApiV1Backups({requestBody:e.data,temporary:!0})),g(()=>this.isRestoring.set(!1))).subscribe({next:e=>{console.log("/restore-draft",e.ID),this.#o.navigate(["/restore-draft",e.ID])},error:e=>{this.#t.error(e.message)}})}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=R({type:l,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let e;e=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_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_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=N(e);let o;o=$localize`Select a configuration file`;let t;return t=$localize`Passphrase`,[e,o,t,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(i(0,"header")(1,"h3"),C(2,0),i(3,"div",3)(4,"button",4),_(5,"spk-icon"),r(),i(6,"button",5),m("click",function(){return t.submit()}),_(7,"spk-icon"),r()(),O(),r()(),i(8,"form",6)(9,"spk-form-field",7),m("fileDropped",function(s){return t.onFileDropped(s)}),i(10,"label",8),f(11,1),r(),i(12,"input",9),m("change",function(s){return t.onFileDropped(s)}),r(),i(13,"spk-icon",10),M(14,"upload"),r()(),S(15,z,4,0,"spk-form-field"),r()),o&2&&(F(4),c("routerLink",k(6,j)),F(2),D("loader",t.isRestoring()),c("disabled",t.isRestoring()),F(2),c("formGroup",t.importForm),F(7),E(t.isSecureFile()?15:-1))},dependencies:[L,G,b,$,h,P,B,y,U,X,w,x],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}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a,j as b}from"./chunk-
|
|
1
|
+
import{i as a,j as b}from"./chunk-IGKAD6UF.js";import"./chunk-KYQC46J2.js";import"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import"./chunk-Z5NZYMJN.js";import"./chunk-UJWW7PS7.js";import"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-D6FCW3QQ.js";import"./chunk-KYQC46J2.js";import"./chunk-CAGBL2MP.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import"./chunk-UJWW7PS7.js";import"./chunk-KJ4O6F3R.js";import"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Xt}from"./chunk-PQKOLCEE.js";import{a as Wt,b as zt,o as Z}from"./chunk-7I3L3TYU.js";import{a as Ht}from"./chunk-6DHAM3ZG.js";import{a as Kt}from"./chunk-Q5EMYWV3.js";import"./chunk-DNHLTHLR.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import{a as U}from"./chunk-Z5NZYMJN.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-UJWW7PS7.js";import{b as Ct}from"./chunk-KJ4O6F3R.js";import{a as ut,c as Tt}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,q as Gt,r as Bt,w as Lt,x as Ut}from"./chunk-TLVMA6DU.js";import{c as dt}from"./chunk-6LUM2XU4.js";import{ia as Ft}from"./chunk-3WKDD2IN.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,Eb as u,F as tt,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Rb as q,Sa as o,Sb as j,Tb as H,Ub as g,Vb as s,Yb as y,Z as w,Za as nt,ea as C,eb as it,ec as ot,fa as f,fc as at,gc as G,hc as p,ic as V,ja as et,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,uc as B,va as h,vb as X,wc as L,yb as d,zb as D}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
1
|
+
import{g as Xt}from"./chunk-D6FCW3QQ.js";import{a as Wt,b as zt,o as Z}from"./chunk-IGKAD6UF.js";import{a as Ht}from"./chunk-KYQC46J2.js";import{a as Kt}from"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import{a as U}from"./chunk-Z5NZYMJN.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-UJWW7PS7.js";import{b as Ct}from"./chunk-KJ4O6F3R.js";import{a as ut,c as Tt}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,q as Gt,r as Bt,w as Lt,x as Ut}from"./chunk-NQVULKI2.js";import{c as dt}from"./chunk-6LUM2XU4.js";import{ia as Ft}from"./chunk-3WKDD2IN.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,Eb as u,F as tt,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Rb as q,Sa as o,Sb as j,Tb as H,Ub as g,Vb as s,Yb as y,Z as w,Za as nt,ea as C,eb as it,ec as ot,fa as f,fc as at,gc as G,hc as p,ic as V,ja as et,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,uc as B,va as h,vb as X,wc as L,yb as d,zb as D}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
2
|
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
3
|
The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(_.startsWith("incorrect-host-key:")){let m=_.split('incorrect-host-key:"')[1].split('",')[0],k=_.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
4
|
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as g}from"./chunk-
|
|
1
|
+
import{o as g}from"./chunk-IGKAD6UF.js";import"./chunk-KYQC46J2.js";import"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import"./chunk-Z5NZYMJN.js";import{a as I}from"./chunk-TLE3RBQZ.js";import"./chunk-I24WOYYC.js";import"./chunk-ASPLJ6GL.js";import"./chunk-CP2S6DC4.js";import{a as $}from"./chunk-6TZWRTRA.js";import"./chunk-UJWW7PS7.js";import"./chunk-2P3GS5BJ.js";import{b as O}from"./chunk-KJ4O6F3R.js";import{a as P,b as h,d as E,e as B}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{o as M,p as b,t as N}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-GK7T43YY.js";import{Cb as s,D as m,Db as p,Eb as n,Ob as d,Oc as A,Pb as c,Sa as r,Z as F,eb as f,kb as C,sc as R,tb as u,vc as _,yb as D}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=F(P);#e=F(g);#a=F($);#i=F(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(l=>l.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let l;return l=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,l,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,b,N,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow:hidden}"],changeDetection:0})};export{T as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as B}from"./chunk-KJ4O6F3R.js";import{a as D,u as U}from"./chunk-
|
|
1
|
+
import{b as B}from"./chunk-KJ4O6F3R.js";import{a as D,u as U}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import{pa as R}from"./chunk-3WKDD2IN.js";import{Ab as x,Bb as I,Cb as o,Db as a,Eb as u,F as S,Ib as v,Pa as T,Qb as p,Sa as l,Ub as A,Vb as c,Z as O,ea as M,eb as f,fa as L,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ub as P,va as d,vb as h,xc as G,yb as b,zb as N,zc as w}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
|
|
2
2
|
`),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-22GS6UCG.js";import"./chunk-KJ4O6F3R.js";import{a as w,m as D}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-22GS6UCG.js";import"./chunk-KJ4O6F3R.js";import{a as w,m as D}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import{ia as A}from"./chunk-3WKDD2IN.js";import{Ab as I,Ac as F,Bb as M,Cb as c,Db as r,Hb as u,Ib as v,Mc as $,Qb as P,Sa as l,Ub as k,Vb as s,Z as y,ea as O,eb as T,fa as x,gc as C,hc as p,ic as E,kb as a,tb as d,ub as h,uc as _,va as m,vb as f,vc as N,yb as g}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var L=(e,t)=>t.id,V=e=>({children:e,level:0}),R=e=>({$implicit:e}),j=(e,t)=>({children:e,level:t});function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,j,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,L),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,V,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as oe}from"./chunk-6CRYB4HA.js";import{a as G}from"./chunk-6TZWRTRA.js";import{a as L,b as K,c as S,d as U,e as z,h as j,l as V,o as q,p as H,r as Q}from"./chunk-UJWW7PS7.js";import{b as v}from"./chunk-KJ4O6F3R.js";import{a as b,c as w,d as B}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as W,f as J,g as Y,l as Z,w as ee}from"./chunk-
|
|
1
|
+
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as oe}from"./chunk-6CRYB4HA.js";import{a as G}from"./chunk-6TZWRTRA.js";import{a as L,b as K,c as S,d as U,e as z,h as j,l as V,o as q,p as H,r as Q}from"./chunk-UJWW7PS7.js";import{b as v}from"./chunk-KJ4O6F3R.js";import{a as b,c as w,d as B}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as W,f as J,g as Y,l as Z,w as ee}from"./chunk-NQVULKI2.js";import{c as h}from"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import{Cb as r,Db as n,Eb as a,F as E,Mc as O,N as M,Ob as l,Pb as c,Qb as f,Sa as s,Ub as P,Z as _,eb as I,hc as k,kb as x,kc as y,tb as C,tc as X,va as g,vb as T,yb as D}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var ne=()=>["/"];function ie(d,e){d&1&&(r(0,"spk-form-field")(1,"label",17),f(2,6),n(),a(3,"input",18),n(),r(4,"spk-form-field")(5,"label",19),f(6,7),n(),a(7,"input",20),n())}var u=new H,N=class d{#o=_(v);#e=_(b);#t=_(w);#n=_(h);#i=_(G);isExporting=g(!1);exportType=g("file");exportedCmd=g(null);exportForm=u.group({exportPasswords:u.control(!0),encryption:u.control(!1,[S.required,te()]),password:u.control("",[R(e=>e?.value.encryption,[S.required])]),repeatPassword:u.control("",[R(e=>e?.value.encryption,[S.required])])});exportFormSignal=oe(this.exportForm.valueChanges);encryptionFieldSignal=O(()=>this.exportFormSignal()?.encryption??!1);activeBackup=O(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#o.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(M(e=>{let i=t=>{let o=Object.entries(t);return o?"?"+o.map(([F,m])=>`${F}=${m}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${i({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),E(()=>this.isExporting.set(!1))).subscribe({next:e=>{let t=this.activeBackup()?.Backup?.Name??"Backup",o=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${t}.${o}`),this.#t.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#o.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(E(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,i){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.href=t,o.download=i,o.click(),window.URL.revokeObjectURL(t)}static \u0275fac=function(i){return new(i||d)};static \u0275cmp=I({type:d,selectors:[["app-export"]],decls:27,vars:12,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;i=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let o;o=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let F;F=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let m;m=$localize` Encrypt file ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let A;A=$localize`Password`;let $;return $=$localize`Repeat password`,[e,i,t,o,F,m,A,$,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]]},template:function(i,t){if(i&1&&(r(0,"header")(1,"h3"),k(2," Export backup configuration "),r(3,"div",8)(4,"button",9),l(5,0),a(6,"spk-icon"),c(),n(),r(7,"button",10),P("click",function(){return t.submit()}),l(8,1),a(9,"spk-icon"),c(),n()()(),r(10,"p"),k(11),n()(),r(12,"form",11)(13,"spk-button-group")(14,"button",12),P("click",function(){return t.exportType.set("cmd")}),l(15,2),a(16,"spk-icon"),c(),n(),r(17,"button",12),P("click",function(){return t.exportType.set("file")}),l(18,3),a(19,"spk-icon"),c(),n()(),r(20,"spk-toggle",13),l(21,4),a(22,"input",14),c(),n(),r(23,"spk-toggle",15),l(24,5),a(25,"input",16),c(),n(),x(26,ie,8,0),n()),i&2){let o;s(4),C("routerLink",X(11,ne)),s(3),T("loading",t.isExporting()),s(4),y("#",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.ID,": ",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.Name,""),s(),C("formGroup",t.exportForm),s(2),T("active",t.exportType()==="cmd"),s(3),T("active",t.exportType()==="file"),s(9),D(t.encryptionFieldSignal()?26:-1)}},dependencies:[Q,j,K,L,U,z,V,q,B,J,ee,W,Z,Y],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}"],changeDetection:0})};export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c,d as A,e as d}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{v as O}from"./chunk-
|
|
1
|
+
import{b as c,d as A,e as d}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{v as O}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import{Cb as e,Db as t,Eb as T,Qb as o,eb as g}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var l=class a{static \u0275fac=function(n){return new(n||a)};static \u0275cmp=g({type:a,selectors:[["app-about"]],decls:13,vars:0,consts:()=>{let i;i=$localize`General`;let n;n=$localize`Changelog`;let r;r=$localize`Libraries`;let s;s=$localize`System info`;let u;return u=$localize`Logs`,[i,n,r,s,u,[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"]]},template:function(n,r){n&1&&(e(0,"spk-tabs",5)(1,"button",6),o(2,0),t(),e(3,"button",7),o(4,1),t(),e(5,"button",8),o(6,2),t(),e(7,"button",9),o(8,3),t(),e(9,"button",10),o(10,4),t()(),e(11,"section"),T(12,"router-outlet"),t())},dependencies:[O,c,A,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-NQVULKI2.js";import{$a as d,Cb as o,Db as n,Sa as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,ra as r,vb as f,yb as C}from"./chunk-Q3JJWGXW.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
|