@duplicati/ngclient 0.0.67 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/spk.woff2 +0 -0
- package/chunk-3ENWJFPQ.js +1 -0
- package/chunk-3LFQ2CMA.js +6 -0
- package/{chunk-J6XRJHJ3.js → chunk-76QDT3DT.js} +1 -1
- package/chunk-B6F7BTCY.js +1 -0
- package/chunk-BA7KFJXF.js +1 -0
- package/chunk-CLWDOASW.js +1 -0
- package/chunk-CM2VLNFJ.js +1 -0
- package/chunk-CO7Y3BIG.js +6 -0
- package/chunk-DOUFB6IZ.js +1 -0
- package/chunk-F7726SNN.js +1 -0
- package/{chunk-34N3NDDX.js → chunk-FC7IHW5V.js} +1 -1
- package/chunk-GZNEVVHC.js +1 -0
- package/chunk-H4ZYUOCD.js +1 -0
- package/{chunk-GROK2C3O.js → chunk-HVNIDQ3I.js} +1 -1
- package/chunk-ICAVTIBO.js +1 -0
- package/chunk-IZGVBNDM.js +1 -0
- package/chunk-K6NJFA6G.js +1 -0
- package/chunk-KMQU3ZBK.js +1 -0
- package/chunk-KYCK75MH.js +1 -0
- package/chunk-L5E5U6M6.js +1 -0
- package/chunk-LULH26OZ.js +1 -0
- package/{chunk-WCXAIVYX.js → chunk-M3TDZOXH.js} +1 -1
- package/chunk-ME7OGY7M.js +3 -0
- package/chunk-N7TLL5YI.js +1 -0
- package/chunk-OIRMDOOF.js +1 -0
- package/chunk-OTS7WJON.js +1 -0
- package/chunk-PU2Q3GL6.js +1 -0
- package/chunk-VRLSXAI3.js +1 -0
- package/{chunk-55N3Z4WC.js → chunk-VTEOBYNY.js} +1 -1
- package/chunk-VX3YYMRB.js +1 -0
- package/chunk-XA2AVFI2.js +1 -0
- package/chunk-YJYS7OZI.js +1 -0
- package/index.html +1 -1
- package/main-ZA53CUZQ.js +1 -0
- package/package.json +1 -1
- package/chunk-47KLTONZ.js +0 -1
- package/chunk-4C3R2PTH.js +0 -1
- package/chunk-4LKWOYIM.js +0 -1
- package/chunk-4N2WKEQR.js +0 -1
- package/chunk-4OETIYIQ.js +0 -1
- package/chunk-737NFYPO.js +0 -1
- package/chunk-CP57LBQ6.js +0 -1
- package/chunk-EXAIEGUA.js +0 -1
- package/chunk-FDU72LLR.js +0 -1
- package/chunk-HLEETTI2.js +0 -1
- package/chunk-HWBFYM4U.js +0 -1
- package/chunk-I3KS7JEN.js +0 -1
- package/chunk-IDRVDCZF.js +0 -1
- package/chunk-IJZSE545.js +0 -1
- package/chunk-JWZZL2QQ.js +0 -6
- package/chunk-KWC4F7OI.js +0 -1
- package/chunk-PCWXZ2CU.js +0 -1
- package/chunk-PMCSEYJK.js +0 -6
- package/chunk-QPLDE6B2.js +0 -1
- package/chunk-QZ4DM36I.js +0 -3
- package/chunk-RUBPUVDQ.js +0 -1
- package/chunk-VFTH7UVW.js +0 -1
- package/chunk-WCTVFZUZ.js +0 -1
- package/chunk-ZNI74FWA.js +0 -1
- package/main-UAJKIVXK.js +0 -1
package/chunk-PMCSEYJK.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{g as Xt}from"./chunk-WCXAIVYX.js";import{a as U,b as Wt,c as zt,q as Z}from"./chunk-JWZZL2QQ.js";import{a as Ht}from"./chunk-5NMYYKKU.js";import{a as Kt}from"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.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-OROSSCXB.js";import{b as Ct}from"./chunk-O2MZ5CAQ.js";import{a as ut,c as Tt}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.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-ZTSITRHY.js";import{c as dt}from"./chunk-NJSJNACP.js";import{ia as Ft}from"./chunk-BUARZS4A.js";import{$b as T,Ab as S,Bb as E,Cb as r,Db as a,Eb as u,Fb as v,G as tt,Gb as A,Hb as M,Ib as x,Kc as K,Mc as mt,Ob as N,Pb as R,Qb as b,Ra as o,Rb as q,Sb as j,Tb as H,Ub as g,Vb as s,Ya as h,Yb as y,Za as nt,_ as w,eb as it,ec as ot,fa as C,fc as at,ga as f,gc as G,hc as p,ic as V,jc as O,ka as et,kb as F,kc as Q,mc as rt,nc as lt,oc as st,qc as pt,rc as _t,sc as B,tb as c,uc as L,vb as X,yb as d,yc as ct,zb as D}from"./chunk-VGQ6X3AL.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
|
-
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
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
|
-
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
|
-
Do you want to REPLACE your CURRENT host key ${k}
|
|
6
|
-
with the REPORTED host key: ${m}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${m}`,confirmText:"Approve",cancelText:"Cancel"},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}})}}})}mapToTargetUrl(i){return Wt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=h("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=h(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=h(!1);#_=h(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,l=this.#o()+"?type="+i+"&token="+this.#a(),_=screen.width/2-t/2,m=screen.height/2-e/2,k=window.open(l,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+_+",top="+m);k?.addEventListener("blur",I=>{console.log("event blur",I)}),k?.addEventListener("beforeunload",I=>{console.log("event beforeunload",I),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(tt(()=>this.#r.set(!1))).subscribe({next:P=>{console.log("res",P),P?.authid&&this.#_.set(P.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=it({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&ot(e.formRef,qt,5),t&2&&at()},features:[pt([Z])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let l;l=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let _;_=$localize`Other destinations`;let m;m=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=H(m);let k;k=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,k=H(k);let I;I=$localize`Edit target URL`;let P;P=$localize` Be careful, this will overwrite everything you have in your destination. `;let Y;return Y=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["fieldTemplate",""],i,t,e,l,_,m,k,I,P,Y,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],["spk-button","","type","button",1,"outlined"],["item","","type","button"],[1,"tile",3,"click"],["item","","type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","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"],[3,"value"],["type","search",3,"id","formControlName"],[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"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let l=x();r(0,"form",12,0),g("submit",function(){return C(l),f(e.next())}),r(2,"header")(3,"h3",13),N(4,2),r(5,"div",14),F(6,ne,4,3,"button",15),r(7,"spk-menu")(8,"button",16),u(9,"spk-icon"),a(),v(10,17),r(11,"button",18),g("click",function(){return C(l),f(e.openTargetUrlDialog())}),u(12,"spk-icon"),a(),A(),a()(),R(),a(),F(13,ie,3,0,"p"),a(),F(14,re,9,0)(15,rn,30,4,"ng-container",19),r(16,"div",20)(17,"button",21),g("click",function(){return C(l),f(e.goBack())}),N(18,3),u(19,"spk-icon"),R(),a(),r(20,"button",22),N(21,4),u(22,"spk-icon"),R(),a()()(),F(23,ln,15,4,"spk-dialog",23)}if(t&2){let l;c("formGroup",e.destinationForm),o(6),d(e.destinationCount()>0?6:-1),o(7),d(e.destinationCount()>0?13:-1),o(),d(e.destinationCount()===0?14:-1),o(),d(!((l=e.destinationFormSignal())==null||l.destinations==null)&&l.destinations.length?15:-1),o(8),d(e.targetUrlDialogOpen()?23:-1)}},dependencies:[$t,Ot,gt,xt,ft,Dt,St,kt,Nt,yt,Rt,ht,Ft,Mt,Bt,bt,Vt,Gt,wt,Lt,Ut,At,vt,Kt,Ht],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.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}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{vn as createDestinationForm,An as createDestinationFormGroup,J as default};
|
package/chunk-QPLDE6B2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as a,p as b}from"./chunk-JWZZL2QQ.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
|
package/chunk-QZ4DM36I.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{q as U}from"./chunk-JWZZL2QQ.js";import{a as Ve}from"./chunk-5NMYYKKU.js";import{a as Le}from"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as R}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as ve}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,k as Fe,l as ge,m as Ne,o as Te,p as Se,r as ke}from"./chunk-OROSSCXB.js";import{a as pe,b as _e}from"./chunk-O2MZ5CAQ.js";import{a as le,c as re,d as me}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as Ee,g as Me,i as xe,k as De,l as Ie,n as Oe,o as Ae,q as $e,r as Pe,w as ye,x as we}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import{ia as ae}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as k,Bb as E,Cb as l,Db as o,Eb as s,Fb as $,Gb as P,Hb as Z,Ib as I,Mc as oe,Ob as y,Pb as w,Qb as M,Ra as a,Rb as B,Sb as G,Tb as J,Ub as O,Vb as m,Ya as h,Yb as N,Zb as Q,_ as A,_b as d,eb as j,fa as x,ga as D,gc as Y,hc as r,ic as v,jc as g,kb as u,qc as ee,sc as te,tb as p,tc as ne,vb as W,yb as C,yc as ie,zb as S}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var be=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),he=n=>({$implicit:n});function Be(n,i){n&1&&s(0,"spk-progress-bar",16)}function Ge(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Re(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",43),o()),n&2){let e=i.$implicit,t=i.$index;a(),Q("id","filter-",t,""),p("formControl",e)}}function Ue(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Ke(n,i){if(n&1){let e=I();y(0,12,1),l(1,"button",44,1),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.addNewOption(_))}),o(),w()}if(n&2){let e=i.$implicit;a(),B(e.name),G(0)}}function ze(n,i){n&1&&Z(0)}function Xe(n,i){if(n&1&&u(0,ze,1,0,"ng-container",45),n&2){let e=i.$implicit,t=i.$index;m();let _=Y(58);p("ngTemplateOutlet",_)("ngTemplateOutletContext",te(5,he,ne(2,be,t,e)))}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function He(n,i){if(n&1&&(l(0,"app-file-tree",48)(1,"label",54),r(2),u(3,qe,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function je(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"app-file-tree",49)(1,"label",54),r(2),u(3,je,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ze(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function Je(n,i){n&1&&(l(0,"spk-icon",57),r(1,"link"),o())}function Qe(n,i){n&1&&(l(0,"spk-icon",57),r(1,"textbox"),o())}function Ye(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Ze,3,1,"spk-tooltip",55),o(),s(4,"input",56),u(5,Je,2,0,"spk-icon",57)(6,Qe,2,0,"spk-icon",57),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function et(n,i){if(n&1){let e=I();l(0,"span",61),O("click",function(){x(e);let _=m(2).$implicit,f=m(2);return D(f.oauthStartTokenCreation(_.formViewType))}),r(1,"AuthID"),o()}}function tt(n,i){n&1&&(l(0,"spk-icon",57),r(1,"password"),o())}function nt(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye "),o()}}function it(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye-slash "),o()}}function ot(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),o(),s(3,"input",58),u(4,et,2,0,"span",59)(5,tt,2,0,"spk-icon",57)(6,nt,2,0,"spk-icon",60)(7,it,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),p("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function rt(n,i){if(n&1&&(l(0,"spk-select")(1,"label",54),r(2),u(3,at,3,1,"spk-tooltip",55),o(),s(4,"input",63),k(5,lt,2,2,"spk-option",20,S),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function mt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function pt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function _t(n,i){if(n&1&&(l(0,"div",50)(1,"label",54),r(2),u(3,mt,3,1,"spk-tooltip",55),o(),l(4,"div",64)(5,"spk-form-field"),s(6,"input",65),l(7,"spk-icon",57),r(8,"resize"),o()(),l(9,"spk-select"),s(10,"label")(11,"input",66),k(12,pt,2,2,"spk-option",20,S),o()()()),n&2){let e,t=m().$implicit,_=m(2);p("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(6),E(_.sizeOptions())}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,st,3,1,"spk-tooltip",55),o(),s(4,"input",67),l(5,"spk-icon",57),r(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ut(n,i){if(n&1&&(l(0,"spk-toggle",51)(1,"label",54),r(2),u(3,ct,3,1,"spk-tooltip",55),o(),s(4,"input",68),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ft(n,i){n&1&&(l(0,"spk-option",70),r(1,"None"),o()),n&2&&p("value","None")}function Ft(n,i){if(n&1&&(l(0,"spk-option",20),r(1),s(2,"spk-checkbox",71),o()),n&2){let e=m().$implicit;p("value",e),a(),g(" ",e," ")}}function gt(n,i){if(n&1&&u(0,ft,2,1,"spk-option",70)(1,Ft,3,2,"spk-option",20),n&2){let e=i.$implicit;C(e==="None"?0:1)}}function Nt(n,i){if(n&1&&(l(0,"spk-select",52)(1,"label",54),r(2),u(3,Ct,3,1,"spk-tooltip",55),o(),s(4,"input",69),k(5,gt,2,1,null,null,S),o()),n&2){let e,t=m().$implicit;p("selectMultiple",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function Tt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function St(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Tt,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function kt(n,i){if(n&1){let e=I();l(0,"div",46),$(1,47),u(2,He,5,14,"app-file-tree",48)(3,We,5,10,"app-file-tree",49)(4,Ye,7,10,"spk-form-field")(5,ot,8,11,"spk-form-field")(6,rt,7,9,"spk-select")(7,_t,14,9,"div",50)(8,dt,7,9,"spk-form-field")(9,ut,5,9,"spk-toggle",51)(10,Nt,7,7,"spk-select",52)(11,St,5,9,"spk-form-field"),P(),l(12,"button",53),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.removeFormView(_.formView,0))}),l(13,"spk-icon"),r(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),p("formGroupName",e.formGroupName),a(),C(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)}}function Et(n,i){if(n&1){let e=I();l(0,"form",17)(1,"spk-select")(2,"label",18),M(3,3),o(),s(4,"input",19),k(5,Ge,2,2,"spk-option",20,S),o(),l(7,"spk-form-field")(8,"label",21),M(9,4),o(),s(10,"textarea",22),o(),l(11,"spk-form-field")(12,"label",23),M(13,5),o(),s(14,"textarea",24),o()(),l(15,"spk-divider"),M(16,6),o(),l(17,"form",17)(18,"spk-form-field")(19,"label",25),M(20,7),o(),s(21,"input",26),o(),l(22,"spk-form-field")(23,"label",27),M(24,8),o(),s(25,"input",28),o(),l(26,"app-toggle-card",29),$(27,30),M(28,9),P(),$(29,31),k(30,Re,2,3,"spk-form-field",null,S),P(),o()(),l(32,"form",17)(33,"div",32)(34,"div",33)(35,"spk-form-field")(36,"label",34),M(37,10),o(),s(38,"input",35),o(),l(39,"spk-select"),s(40,"input",36),k(41,Ue,2,2,"spk-option",20,S),o()(),l(43,"p"),y(44,11),s(45,"a",37),w(),o()(),l(46,"app-toggle-card",29),$(47,30),y(48,12),l(49,"spk-menu")(50,"button",38),s(51,"spk-icon"),o(),$(52,39),k(53,Ke,3,1,"button",40,S),P(),o(),w(),P(),k(55,Xe,1,7,"ng-container",null,S),o(),u(57,kt,15,2,"ng-template",null,0,ie),l(59,"div",41)(60,"button",42),O("click",function(){x(e);let _=m();return D(_.submit())}),y(61,13),s(62,"spk-icon"),w(),o()()()}if(n&2){let e=m();p("formGroup",e.baseCmdForm),a(5),E(e.commandOptions()),a(12),p("formGroup",e.standardFields),a(9),p("disallowToggle",!0),a(4),E(e.standardFields.controls.filters.controls),a(2),p("formGroup",e.optionsForm),a(9),E(e.sizeOptions()),a(5),p("disallowToggle",!0),a(7),E(e.nonSelectedOptions()),a(2),E(e.selectedOptions()),a(5),W("loader",e.isSubmitting()),a(2),B(e.baseCmdForm.value.command),G(61)}}var T=new Se,Mt=["Bytes","KB","MB","GB","TB","PB"],K=class n{#e=A(U);#t=A(_e);#n=A(re);#i=A(le);#o=A(pe);#a=R(this.#i.params);commandOptions=R(this.#o.getApiV1Commandline());sizeOptions=h(Mt);isSubmitting=h(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",_=i.arguments?.split(`
|
|
2
|
-
`)??[],f=this.standardFields.value,V=f.filters??[],L=[i.command,t,..._,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...V.filter(c=>c).map(c=>c.startsWith("-")?`--exclude=${c?.slice(1)}`:`--include=${c}`),...this.#e.mapFormsToSettings().map(c=>c.Name.startsWith("--")?`${c.Name}=${c.Value}`:`--${c.Name}=${c.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:L}).subscribe(c=>{c.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",c.ID])})}mapBaseCmdToForm(i){let e=i.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:i.Sources?.join(`
|
|
3
|
-
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){console.log("option",i),this.#e.addOptionToFormGroup(i)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=j({type:n,selectors:[["app-commandline"]],features:[ee([U])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let t;t=$localize`Command`;let _;_=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let V;V=$localize`Advanced options`;let L;L=$localize`Backup ID`;let c;c=$localize`Backup Name`;let z;z=$localize`Filters`;let X;X=$localize`Remote volume size`;let q;q=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#45\uFFFD"}:START_LINK:Read more${"\uFFFD/#45\uFFFD"}:CLOSE_LINK:`;let b;b=$localize` Advanced options ${"\uFFFD#49\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#50\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#51\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#51\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#52\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*54:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*54:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SPK_MENU:`,b=J(b);let H;return H=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],i,t,_,f,V,L,c,z,X,q,b,H,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["for","command"],["type","text","id","command","formControlName","command"],[3,"value"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder",e,"formControlName","unit"],["href","#",1,"spk-primary"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["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"],[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){e&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",14)(3,"button",15),y(4,2),s(5,"spk-icon"),w(),o()(),u(6,Be,1,0,"spk-progress-bar",16)(7,Et,63,8),o()),e&2&&(a(6),C(t.finishedLoading()?7:6))},dependencies:[ve,Ve,Le,ke,Ce,de,fe,se,ce,ue,Fe,ge,Te,Ne,ae,me,Ie,Oe,Me,Pe,ye,$e,De,we,Ae,xe,Ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.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}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.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}"],changeDetection:0})};export{K as default};
|
package/chunk-RUBPUVDQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as se,b as ae}from"./chunk-N3GBABZB.js";import{a as Z}from"./chunk-M27H5SJL.js";import{a as W}from"./chunk-PD4M6YP7.js";import{a as ht}from"./chunk-IHYJHBCC.js";import{a as st}from"./chunk-PIVMNQL6.js";import{a as Pt}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import{b as q,d as K,e as at,g as J,h as lt,l as rt,m as _t,o as ct,p as dt,q as Q,r as pt}from"./chunk-OROSSCXB.js";import{b as j}from"./chunk-O2MZ5CAQ.js";import{a as St,b as Tt,g as ut,k as gt,l as Y,o as mt,p as Ct,q as Et,r as Nt,w as ft,x as Mt}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as x,Bb as X,Cb as i,Db as o,Eb as O,F as ne,G as b,Ib as M,Kc as w,Lc as it,Mc as ot,N as y,Oa as Je,Ob as Ye,Pb as Ze,Qb as r,Ra as l,Rb as ie,Sb as oe,Tb as et,U as je,Ub as p,Vb as d,Xa as Qe,Ya as S,Yb as tt,_ as N,b as Ve,c as ze,ca as We,da as qe,eb as H,fa as T,ga as u,hc as h,ic as D,jc as V,k as Ue,ka as Ke,kb as R,l as k,mc as G,n as Be,nc as A,oc as $,q as He,r as te,rc as nt,tb as C,vb as E,yb as g,z as L,zb as F}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function Rt(s,t,e){!t&&qe(s);let n=t??N(Ke);return e?We(n,e):n}function le(...s){let{normalizedSources:t,hasInitValue:e,operator:n,options:a}=Gt(s),c=Rt(le,a?.injector);return e?ae(te(t).pipe(n),{initialValue:a.initialValue,injector:c}):ae(te(t).pipe(n),{injector:c,requireSync:!0})}function Gt(s){if(!s||!s.length||typeof s[0]!="object")throw new TypeError("derivedFrom needs sources");let t=typeof s[1]=="function";if(s.length==3&&!t)throw new TypeError("derivedFrom needs pipeable operator as a second argument");t||s.splice(1,0,Ve);let[e,n,a]=s,c=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((P,[m,f])=>{if(Qe(f))P[m]=se(f,{injector:a?.injector}).pipe(y(it(f)));else if(Be(f))P[m]=f.pipe(ne());else if(typeof f=="function"){let U=w(f);P[m]=se(U,{injector:a?.injector}).pipe(y(f()))}else P[m]=Ue(f).pipe(ne());return P},Array.isArray(e)?[]:{}),operator:n,hasInitValue:c,options:a}}var v=class s{#e=N(j);#i=N(W);repeatRegisterTimer=null;state=S("unknown");claimUrl=S(null);registerUrl=S("");status=w(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=ot(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.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:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=je({token:s,factory:s.\u0275fac,providedIn:"root"})};function bt(s,t){if(s&1){let e=M();i(0,"spk-form-field",10)(1,"input",11),$("ngModelChange",function(a){T(e);let c=d(2);return A(c.registerUrl,a)||(c.registerUrl=a),u(a)}),o()(),i(2,"button",12),p("click",function(){T(e);let a=d(2);return u(a.register())}),r(3,0),o()}if(s&2){let e=d(2);l(),G("ngModel",e.registerUrl)}}function wt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",13),h(4),o()()),s&2){let e=d(2);l(3),tt("href",e.claimUrl(),Je),l(),D(e.claimUrl())}}function vt(s,t){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function kt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.cancel())}),r(1,3),o()}}function Lt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.disable())}),r(1,4),o()}}function Ft(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.enable())}),r(1,5),o(),i(2,"button",14),p("click",function(){T(e);let a=d(2);return u(a.delete())}),r(3,6),o()}}function xt(s,t){if(s&1&&(i(0,"div",7),R(1,bt,4,1)(2,wt,5,2,"div",8)(3,vt,3,0,"div",8)(4,kt,2,0,"button",9)(5,Lt,2,0,"button",9)(6,Ft,4,0),o()),s&2){let e=d();l(),g(e.state()==="inactive"?1:-1),l(),g(e.state()==="registered"?2:-1),l(),g(e.state()==="registering"?3:-1),l(),g(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),g(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),g(e.state()==="disabled"?6:-1)}}var ee=class s{#e=N(v);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||s)};static \u0275cmp=H({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let I;I=$localize`Enable remote control`;let P;return P=$localize`Delete remote control setup`,[t,e,n,a,c,I,P,[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,n){e&1&&R(0,xt,7,6,"div",7),e&2&&g(n.state()!=="unknown"?0:-1)},dependencies:[Q,q,K,J,Y],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 Xt=()=>({standalone:!0});function Dt(s,t){s&1&&(i(0,"spk-icon",72),h(1,"check"),o())}function Vt(s,t){s&1&&(i(0,"spk-icon",73),h(1,"prohibit"),o())}function zt(s,t){if(s&1){let e=M();i(0,"button",77),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(1,34),o()}if(s&2){let e=d(2);E("loader",e.isUpdating())}}function Ut(s,t){if(s&1){let e=M();i(0,"spk-tooltip",76)(1,"button",78),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(2,35),o()()}if(s&2){let e=d(2);l(),E("loader",e.isUpdating()),C("disabled",!0)}}function Bt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",68),r(2,31),o(),i(3,"input",69),$("ngModelChange",function(a){T(e);let c=d();return A(c.passphrase,a)||(c.passphrase=a),u(a)}),o()(),i(4,"spk-form-field")(5,"label",70),r(6,32),o(),i(7,"input",71),$("ngModelChange",function(a){T(e);let c=d();return A(c.repeatPassphrase,a)||(c.repeatPassphrase=a),u(a)}),o(),R(8,Dt,2,0,"spk-icon",72)(9,Vt,2,0,"spk-icon",73),o(),i(10,"div",49)(11,"button",74),p("click",function(){T(e);let a=d();return u(a.cancelPasswordChange())}),r(12,33),o(),R(13,zt,2,2,"button",75)(14,Ut,3,3,"spk-tooltip",76),o()}if(s&2){let e=d();l(3),G("ngModel",e.passphrase),l(4),C("disabled",e.passphrase().length===0),G("ngModel",e.repeatPassphrase),l(),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),E("loader",e.isUpdating()),l(2),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Ht(s,t){s&1&&(i(0,"spk-icon",79),h(1,"check"),o())}function jt(s,t){if(s&1){let e=M();i(0,"div",49)(1,"button",74),p("click",function(){T(e);let a=d();return u(a.openPassphraseForm())}),r(2,36),o(),R(3,Ht,2,0,"spk-icon",79),o()}if(s&2){let e=d();l(3),g(e.passwordUpdated()?3:-1)}}function Wt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function qt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",80),r(2,37),o(),i(3,"textarea",81),$("ngModelChange",function(a){T(e);let c=d();return A(c.allowedHostnames,a)||(c.allowedHostnames=a),u(a)}),o()(),i(4,"spk-alert",82),r(5,38),o(),i(6,"button",77),p("click",function(){T(e);let a=d();return u(a.updateAllowedHostnames())}),r(7,39),o()}if(s&2){let e=d();l(3),G("ngModel",e.allowedHostnames),l(3),E("loader",e.updatingAllowedHosts())}}function Kt(s,t){if(s&1&&h(0),s&2){let e,n=d();V(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Jt(s,t){s&1&&O(0,"spk-progress-bar",55)}function Qt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e),l(),D(e)}}function Yt(s,t){if(s&1){let e=M();i(0,"spk-option",83),p("click",function(){let a=T(e).$implicit,c=d();return u(c.pauseSettings.controls.timeType.setValue(a.value))}),h(1),o()}if(s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function Zt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}var z=new dt,Ot=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],yt=[{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`}],re=class s{#e=N(ht);#i=N(W);#t=N(j);#n=N(v);#o=N(st);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=S("list");langCtrl=S(this.#s);remoteControlStatus=this.#n.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});updatingChannel=S(!1);updateChannel=S("");setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(b(()=>this.updatingChannel.set(!1)),L(()=>(this.updateChannel.set(e),k(null)))).subscribe()}allowRemoteAccess=S(!1);allowedHostnames=S("");loadedAllowedHostnames=S("");updatingRemoteAccess=S(!1);updatingAllowedHosts=S(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(b(()=>this.updatingRemoteAccess.set(!1)),L(()=>(this.allowRemoteAccess.set(t),k(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(b(()=>this.updatingAllowedHosts.set(!1)),L(()=>(this.allowedHostnames.set(t),k(null)))).subscribe()}updatingDisableTrayIconLogin=S(!1);disableTrayIconLogin=S(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(b(()=>this.updatingDisableTrayIconLogin.set(!1)),L(()=>(this.disableTrayIconLogin.set(t),k(null)))).subscribe()}showPassphraseForm=S(!1);isUpdating=S(!1);passphrase=S("");repeatPassphrase=S("");passwordUpdated=S(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(b(()=>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=w(()=>{let t=this.langCtrl();return t?Z.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())):Z});usageStatisticsOptions=S(yt);timeTypeOptions=S(Ot);timeOptions=le([this.pauseSettings.controls.timeType.valueChanges.pipe(y("s")),this.pauseSettings.controls.time.valueChanges.pipe(y(null))],ze(He(([t,e])=>{let n=this.#a(t);return e!==null?n.filter(a=>a.toString().includes(e.toString())):n}),y([])));#a(t){let e=t==="h"?25:61;return new Array(e).fill(0).map((n,a)=>a)}ngOnInit(){this.getServerSettings()}saveLocale(t){this.#o.setItem("locale",t),window.location.reload()}submit(){let t=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":t==="0s"?"":t}}).subscribe()}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:t=>{let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),c=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:c.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]}),this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"])}})}languageDisplay(){let t=this;return()=>{let e=t.langCtrl();return e?Z.find(n=>n.value===e)?.label??null:null}}typeDisplay(){let t=this;return()=>{let e=t.settingsForm.value.pauseSettings?.timeType;return e==null?null:Ot.find(n=>n.value===e)?.label??null}}usageDisplay(){let t=this;return()=>{let e=t.settingsForm.value.usageStatistics;return e==null?null:yt.find(n=>n.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=H({type:s,selectors:[["app-settings"]],decls:134,vars:36,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let a;a=$localize`Remote access control`;let c;c=$localize`Color theme`;let I;I=$localize`Customize your application theme`;let P;P=$localize`Passwords`;let m;m=$localize`Change server passphrase`;let f;f=$localize`Language`;let U;U=$localize`Select a language for the platform`;let _e;_e=$localize`Allow remote access (requires restart)`;let ce;ce=$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 de;de=$localize`Allow remote access`;let pe;pe=$localize`Prevent tray icon automatic log-in`;let Se;Se=$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 Te;Te=$localize`Prevent tray icon automatic log-in`;let ue;ue=$localize`Update channel`;let ge;ge=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let me;me=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Stable`;let Ee;Ee=$localize`Official releases`;let Ne;Ne=$localize`Beta`;let fe;fe=$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 Me;Me=$localize` Experimental `;let he;he=$localize`Specific builds for developers only. Not for use with important data.`;let Pe;Pe=$localize`Canary`;let Re;Re=$localize`Individual builds for developers only. Not for use with important data.`;let Ie;Ie=$localize`Pause after startup or hibernation`;let Oe;Oe=$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 ye;ye=$localize`Usage statistics`;let B;B=$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. `,B=et(B);let Ge;Ge=$localize`Enter new password`;let Ae;Ae=$localize`Repeat password`;let $e;$e=$localize`Password have to be filled and have to match`;let be;be=$localize`Passphrase`;let we;we=$localize`Repeat passphrase`;let ve;ve=$localize`Cancel`;let ke;ke=$localize` Update passphrase `;let Le;Le=$localize` Update passphrase `;let Fe;Fe=$localize`Change password`;let xe;xe=$localize`Allowed hostnames`;let Xe;Xe=$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 De;return De=$localize` Update allowed hostnames `,[t,e,n,a,c,I,P,m,f,U,_e,ce,de,pe,Se,Te,ue,ge,me,Ce,Ee,Ne,fe,Me,he,Pe,Re,Ie,Oe,ye,B,be,we,ve,ke,Le,Fe,xe,Xe,De,[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",Ge,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Ae,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",$e,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,n){if(e&1&&(O(0,"app-status-bar"),i(1,"div",40)(2,"header")(3,"div",41)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()(),i(8,"button",42),r(9,2),o()(),i(10,"section")(11,"div",43)(12,"h3"),r(13,3),o(),i(14,"p"),h(15),o()(),i(16,"div",44),O(17,"app-remote-control"),o()(),i(18,"section")(19,"div",43)(20,"h3"),r(21,4),o(),i(22,"p"),r(23,5),o()(),i(24,"div",44)(25,"div",45)(26,"img",46),p("click",function(){return n.setLightMode()}),o(),i(27,"img",47),p("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",43)(30,"h3"),r(31,6),o(),i(32,"p"),r(33,7),o()(),i(34,"div",48),R(35,Bt,15,7)(36,jt,4,1,"div",49),o()(),i(37,"section")(38,"div",43)(39,"h3"),r(40,8),o(),i(41,"p"),r(42,9),o()(),i(43,"div",44)(44,"spk-select",50),p("change",function(c){return n.saveLocale(c)}),i(45,"input",51),$("ngModelChange",function(c){return A(n.langCtrl,c)||(n.langCtrl=c),c}),o(),x(46,Wt,2,2,"spk-option",52,F),o()()(),i(48,"section")(49,"div",43)(50,"h3"),r(51,10),o(),i(52,"p"),r(53,11),o()(),i(54,"div",53)(55,"spk-toggle",54),p("click",function(){return n.updateRemoteAccess()}),i(56,"label"),r(57,12),o()(),R(58,qt,8,3),o()(),i(59,"section")(60,"div",43)(61,"h3"),r(62,13),o(),i(63,"p"),r(64,14),o()(),i(65,"div",44)(66,"spk-toggle",54),p("click",function(){return n.saveDisableTrayIconLogin()}),i(67,"label"),r(68,15),o()()()(),i(69,"section")(70,"div",43)(71,"h3"),r(72,16),o(),i(73,"p"),R(74,Kt,1,1),o(),R(75,Jt,1,0,"spk-progress-bar",55),o(),i(76,"div",56)(77,"div",57),p("click",function(){return n.setNewChannel("")}),i(78,"spk-radio",58),r(79,17),o(),i(80,"p"),r(81,18),o()(),i(82,"div",57),p("click",function(){return n.setNewChannel("stable")}),i(83,"spk-radio",58),r(84,19),o(),i(85,"p"),r(86,20),o()(),i(87,"div",57),p("click",function(){return n.setNewChannel("beta")}),i(88,"spk-radio",58),r(89,21),o(),i(90,"p"),r(91,22),o()(),i(92,"div",57),p("click",function(){return n.setNewChannel("experimental")}),i(93,"spk-radio",58),r(94,23),o(),i(95,"p"),r(96,24),o()(),i(97,"div",57),p("click",function(){return n.setNewChannel("canary")}),i(98,"spk-radio",58),r(99,25),o(),i(100,"p"),r(101,26),o()()()()(),O(102,"spk-divider"),i(103,"form",59),p("submit",function(){return n.submit()}),i(104,"section")(105,"div",43)(106,"h3"),r(107,27),o(),i(108,"p"),r(109,28),o()(),i(110,"div",44)(111,"div",60)(112,"spk-select",61),O(113,"input",62),x(114,Qt,2,2,"spk-option",52,F),o(),i(116,"spk-select",63),O(117,"input",64),x(118,Yt,2,2,"spk-option",52,F),o()()()(),i(120,"section")(121,"div",43)(122,"h3"),r(123,29),o(),i(124,"p"),Ye(125,30),O(126,"a",65)(127,"br")(128,"br"),Ze(),o()(),i(129,"div",44)(130,"spk-select",66),O(131,"input",67),x(132,Zt,2,2,"spk-option",52,F),o()()()()),e&2){let a,c,I;l(8),C("disabled",n.settingsForm.untouched),l(7),D(n.remoteControlStatus()),l(11),E("active",!n.isDarkMode()),l(),E("active",n.isDarkMode()),l(8),g(n.showPassphraseForm()?35:36),l(9),C("displayFn",n.languageDisplay())("hideClearButton",!0),l(),G("ngModel",n.langCtrl),C("ngModelOptions",nt(35,Xt)),l(),X(n.languageOptions()),l(9),E("active",n.allowRemoteAccess()),l(3),g(n.allowRemoteAccess()?58:-1),l(8),E("active",n.disableTrayIconLogin()),l(8),g(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?74:-1),l(),g(n.updatingChannel()?75:-1),l(3),E("active",n.updateChannel()===""),l(),ie((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),oe(79),l(2),ie((I=n.sysinfo())==null?null:I.ServerVersionType),oe(81),l(2),E("active",n.updateChannel()==="stable"),l(5),E("active",n.updateChannel()==="beta"),l(5),E("active",n.updateChannel()==="experimental"),l(5),E("active",n.updateChannel()==="canary"),l(5),C("formGroup",n.settingsForm),l(9),C("hideClearButton",!0),l(2),X(n.timeOptions()),l(2),C("displayFn",n.typeDisplay())("hideClearButton",!0),l(2),X(n.timeTypeOptions()),l(12),C("displayFn",n.usageDisplay()),l(2),X(n.usageStatisticsOptions())}},dependencies:[Q,lt,q,K,at,J,pt,rt,ct,_t,Pt,ee,Et,ut,Ct,Nt,mt,ft,Mt,Y,St,gt,Tt],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{re as default};
|
package/chunk-VFTH7UVW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-4OETIYIQ.js";import{a as X}from"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as L}from"./chunk-O2MZ5CAQ.js";import{d as E}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as R,g as f,h as k,k as G,o as w}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,_ as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,rc as g,sc as v,tb as u,yb as F,zb as N}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(X);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,G,R,w,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
|
package/chunk-WCTVFZUZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as W}from"./chunk-WCXAIVYX.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import{b as E}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as G}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import{a as $,b as P,d as L,e as M}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{p as N,t as I}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Cb as o,Db as i,Eb as n,Mc as A,Ob as F,Pb as r,Ra as R,Vb as u,_ as T,eb as m,kb as f,rc as p,sc as l,tb as _,yb as C}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
package/chunk-ZNI74FWA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,k as b,l as c}from"./chunk-JWZZL2QQ.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
|
package/main-UAJKIVXK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as se,c as ie}from"./chunk-M27H5SJL.js";import{a as N}from"./chunk-PD4M6YP7.js";import{a as w}from"./chunk-T5I4AY74.js";import{a as b}from"./chunk-EXAIEGUA.js";import{a as y}from"./chunk-PIVMNQL6.js";import{d as te}from"./chunk-O2MZ5CAQ.js";import{b as Z,c as Q,f as Y,g as ee}from"./chunk-J76HBC5J.js";import{a as X}from"./chunk-MSK2MH2K.js";import{c as oe}from"./chunk-ZTSITRHY.js";import{a as $,b as z,d as B,e as _,f as q}from"./chunk-NJSJNACP.js";import{a as re}from"./chunk-BSZZLSIX.js";import{ua as K}from"./chunk-BUARZS4A.js";import{b as ne}from"./chunk-O53NVQ2A.js";import{Bc as D,Cc as G,Eb as F,G as C,M as j,Mc as J,O as S,Q as P,U as R,X as H,Ya as d,_ as n,d as L,eb as W,ka as U,m as k,q as V,y as E,z as O}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var T=class e{#o=n(y);#s=n(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=W({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){t&1&&F(0,"router-outlet")},dependencies:[Z],encapsulation:2})};var pe={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var u=new H("ENVIRONMENT");var I=class e{#o=n(te);isLoaded=d(!1);webmodules=d(null);preload(o=!1){let t=this.#o.getApiV1Webmodules().pipe(P(r=>this.webmodules.set(r)),C(()=>this.isLoaded.set(!0)));if(o)return t;t.subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var he=()=>{let e=n(w);return e.token()?!0:e.refreshToken().pipe(V(()=>!0))},fe=()=>{let e=n(b),o=n(U),t=[o.get(N).preload(!0),o.get(N).preloadFilterGroups(!0),o.get(I).preload(!0)];return e.configLoaded===null?E(t):e.configLoaded?.pipe(S(()=>E(t)))},ce=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-34N3NDDX.js")},{path:"logout",loadComponent:()=>import("./chunk-HARDXXQK.js")},{path:"",canActivate:[he],children:[{path:"",canActivate:[fe],loadComponent:()=>import("./chunk-4N2WKEQR.js"),children:[{path:"",loadComponent:()=>import("./chunk-CP57LBQ6.js")},{path:"add-backup",loadComponent:()=>import("./chunk-737NFYPO.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-KWC4F7OI.js")},{path:"backup/import",loadComponent:()=>import("./chunk-HWBFYM4U.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-IDRVDCZF.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-IDRVDCZF.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-IJZSE545.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-FDU72LLR.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-QZ4DM36I.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-4LKWOYIM.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-VFTH7UVW.js")},{path:"from-config",loadComponent:()=>import("./chunk-KBC4N47O.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"settings",loadComponent:()=>import("./chunk-RUBPUVDQ.js")},{path:"about",loadComponent:()=>import("./chunk-U2NGUTAO.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-TSQCXGD7.js")},{path:"changelog",loadComponent:()=>import("./chunk-7YT4Y7C3.js")},{path:"libraries",loadComponent:()=>import("./chunk-GRR3LTVK.js")},{path:"system-info",loadComponent:()=>import("./chunk-3CXGKNYN.js")},{path:"logs",loadComponent:()=>import("./chunk-2HC23GJF.js")}]}]}]}]}];var M=null,le=(e,o)=>{let t=n(w),r=n(Q),c=n(y),i=n(u),m=c.getItem("locale"),s=n(oe),p=se(m),f=e.url==="/api/v1/auth/login",l=e;if(t.token()&&e.url.startsWith(i.baseUrl)){let a=e.headers.set("Authorization",`Bearer ${t.token()}`);m&&m!=="en-US"&&(a=a.set("X-Ui-Language",p)),l=e.clone({headers:a})}return o(l).pipe(O(a=>{if(s.error(a.message),!f&&a.status===401&&!M&&(M=t.refreshToken().pipe(j())),!f&&a.status===401)return M.pipe(S(()=>o(e.clone({headers:e.headers.set("Authorization",`Bearer ${t.token()}`)}))),O(g=>(r.navigate(["/logout"]),k(()=>g))),C(()=>M=null));let h=`Error Code: ${a.status}, Message: ${a.message}`;return k(()=>({error:a,message:h}))}))};var ge="1.0.0",me="portal-proxy-client",ye=1,A=class e{#o=1e3;#s=n(u);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=J(()=>{let o=this.#i(),t=this.#l(),r=this.#a();if(!r||!o||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(r)},t)});utf8Atob(o){let t=Uint8Array.from(atob(o),c=>c.charCodeAt(0)),r=this.#m.decode(t);return r?JSON.parse(r):null}connectToMachineServer(o,t){let r=t?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!r||(this.#e&&this.wsState()!=="authenticated"&&this.#e.close(),this.#e=new WebSocket(this.#s.machineServerUrl),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(o),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let i=JSON.parse(c.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let s={token:o,publicKey:"",clientVersion:ge,protocolVersion:ye},p=this.createResponse(i,"authportal",s);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var m=JSON.parse(i.payload??"");if(m.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let s=this.#p.pop();s&&this.#r[s.messageId]&&this.activateCommand(s)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let s=this.#r[i.messageId];if(s){if(i.errorMessage){s.reject(i.errorMessage);return}else{let p=JSON.parse(i.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),s.resolve(p)}delete this.#r[i.messageId],window.clearTimeout(s.timer)}}})}disconnectFromMachineServer(o=null){o&&console.error(o),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(o,t,r){let c={from:me,to:o.from,type:t,messageId:o.messageId,payload:JSON.stringify(r)};return JSON.stringify(c)}sendCommand(o,t,r,c,i,m,s=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(o),new Promise((p,f)=>{let l=crypto.randomUUID(),h={from:me,to:t,type:"command",messageId:l,payload:JSON.stringify({method:r,path:c,body:i,headers:m})},g={resolve:p,reject:f,timer:window.setTimeout(()=>{let v=this.#r[l];v&&(delete this.#r[l],v.reject("Timeout"))},s)};this.#r[l]=g,this.#n()?this.activateCommand(h):this.#p.push(h)})}activateCommand(o){this.#e?.send(JSON.stringify(o))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};function be(e){if(typeof e!="string")return null;let t=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...t))}var de=(e,o)=>{let r=n(b).config(),c=n(u);if(r===null)return o(e);let i=n(A),m=be(e.body),s={};e.headers.keys().forEach(a=>{s[a]=e.headers.get(a)??""});let p=e.headers.get("timeout"),f=p!==null?parseInt(p):c.defaultTimeout,l=i.sendCommand(r.accessToken,r.clientId,e.method,e.url,m,s,f);return new L(a=>{l.then(h=>{let g=new $;s!=null&&Object.keys(s).forEach(x=>{g.set(x,s[x])});let v=new z({body:h.body,status:h.code,statusText:"OK",headers:g});a.next(v),a.complete()})})};var ue={providers:[D(),Y(ce,ee()),B(q(),_([de,le])),y,{provide:u,useValue:pe},{provide:G,useValue:ie()},ne,K,re]};X(T,ue);
|