@duplicati/ngclient 0.0.92 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-2ZYPGUOW.js +6 -0
- package/chunk-47XDI5B5.js +1 -0
- package/{chunk-5K5OVVFG.js → chunk-4MLA2ZG7.js} +1 -1
- package/{chunk-D5FLTSFX.js → chunk-6XMTMDI4.js} +1 -1
- package/{chunk-FQFWBJUG.js → chunk-7B4DII5K.js} +1 -1
- package/chunk-7LD5V64E.js +1 -0
- package/{chunk-H5MRRHWD.js → chunk-7NYCYOKS.js} +1 -1
- package/{chunk-T7OI3WCX.js → chunk-7XMYLRVX.js} +1 -1
- package/{chunk-SXG7ELTX.js → chunk-CMNODR42.js} +1 -1
- package/chunk-ECH6I3YN.js +1 -0
- package/chunk-FF6XUK27.js +1 -0
- package/chunk-FYSTW7IN.js +1 -0
- package/{chunk-K5CDXUNJ.js → chunk-G2H5UWAV.js} +1 -1
- package/{chunk-S2HUIFXX.js → chunk-HAZC7QF4.js} +1 -1
- package/chunk-IY2EGNYQ.js +1 -0
- package/{chunk-LTLQ72IT.js → chunk-KJ3CPTGU.js} +1 -1
- package/{chunk-W6H5Q4WY.js → chunk-L667SCU5.js} +1 -1
- package/{chunk-WTDHHP4P.js → chunk-L7FLOT6V.js} +1 -1
- package/{chunk-BTUWHZ4Y.js → chunk-LGGACMIA.js} +1 -1
- package/{chunk-HSX4KVKU.js → chunk-NWVBCPMZ.js} +1 -1
- package/{chunk-KSYIZI2Y.js → chunk-OVA6G4AJ.js} +2 -2
- package/{chunk-YTANHV3N.js → chunk-P5DXOHSO.js} +1 -1
- package/chunk-PQWBOXD7.js +1 -0
- package/{chunk-G7PFETH3.js → chunk-PVBMNMGK.js} +1 -1
- package/{chunk-56KHHHDE.js → chunk-PWQHMEDY.js} +1 -1
- package/{chunk-T4C5WIW2.js → chunk-PZSY4DRF.js} +1 -1
- package/{chunk-VQ73M67Z.js → chunk-Q67EYU7V.js} +1 -1
- package/{chunk-TGSA7TZP.js → chunk-QJWNFRD3.js} +1 -1
- package/{chunk-FQCR6FN2.js → chunk-QPRM4V75.js} +1 -1
- package/{chunk-QSTOMEKL.js → chunk-RKQDFV7W.js} +1 -1
- package/{chunk-PB47CMLR.js → chunk-SK4EP46J.js} +1 -1
- package/{chunk-M65ENIIN.js → chunk-T3IB73UA.js} +1 -1
- package/{chunk-L2RC357S.js → chunk-UENFWA7U.js} +2 -2
- package/{chunk-ZR2DCXJI.js → chunk-VKM32I64.js} +1 -1
- package/{chunk-UFLMIMYM.js → chunk-VTG6KYFA.js} +1 -1
- package/{chunk-HDHK74DC.js → chunk-WAE42BEK.js} +1 -1
- package/{chunk-TDMCIOHL.js → chunk-WVLWUQUO.js} +1 -1
- package/chunk-WZQNMWLT.js +1 -0
- package/chunk-XR74M6VT.js +1 -0
- package/{chunk-ALVXVMTO.js → chunk-YKV265HA.js} +1 -1
- package/{chunk-YTTGU3HX.js → chunk-Z5XE4ZV2.js} +1 -1
- package/{chunk-HYROAHLG.js → chunk-ZA4X5BZG.js} +1 -1
- package/index.html +2 -2
- package/{main-A6WCVNIG.js → main-XIRMJMWZ.js} +1 -1
- package/package.json +1 -1
- package/styles-XDXFMHQT.css +1 -0
- package/chunk-72574KO2.js +0 -1
- package/chunk-BRBZMNCZ.js +0 -1
- package/chunk-CRREGVJC.js +0 -1
- package/chunk-GBNJJFEH.js +0 -1
- package/chunk-GFSY2TNF.js +0 -1
- package/chunk-H5K6VMSB.js +0 -1
- package/chunk-LZVTWC4S.js +0 -6
- package/chunk-S75BU6NQ.js +0 -1
- package/chunk-SRIKTKDW.js +0 -1
- package/chunk-UNTTIERD.js +0 -1
- package/styles-PH7LRMW2.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{g as Zt}from"./chunk-HSX4KVKU.js";import{a as jt,b as Qt,o as tt}from"./chunk-LZVTWC4S.js";import{a as Xt}from"./chunk-WTDHHP4P.js";import{a as qt}from"./chunk-VQ73M67Z.js";import"./chunk-DNHLTHLR.js";import"./chunk-N5K6ODRA.js";import"./chunk-CRREGVJC.js";import{a as U}from"./chunk-CK5N2PPF.js";import"./chunk-QSTOMEKL.js";import"./chunk-GEEPH37P.js";import"./chunk-72574KO2.js";import"./chunk-WZG34QS3.js";import{a as Ot,b as xt,d as Rt,e as kt,f as Nt,h as ht,i as It,l as yt,m as $t,n as At,o as wt,p as vt,q as Pt,s as Vt}from"./chunk-4IJQ7AAQ.js";import"./chunk-OQEGPSC6.js";import{b as Et}from"./chunk-KLIPTMVG.js";import{a as Dt,c as St}from"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import{a as Mt,b as bt,d as Gt,e as Bt,l as Lt,n as Ut,o as Ht,r as Kt,w as Wt,x as zt}from"./chunk-GBNJJFEH.js";import{c as ft}from"./chunk-V5GVLIPJ.js";import{ia as gt}from"./chunk-2HS3CYRN.js";import{Ab as l,Bb as r,Cb as d,D as ot,Db as w,Eb as v,Fb as M,Gb as S,Lc as K,Mb as O,Mc as Ct,Nb as x,Ob as b,Pb as q,Qa as o,Qb as j,Rb as H,Sb as f,Tb as p,Wb as k,X as I,Xa as rt,Yb as st,Zb as T,ca as C,cc as pt,da as g,db as lt,dc as _t,ec as P,fc as _,gc as Q,ha as at,hc as D,ib as m,ic as ct,kc as mt,lc as Ft,mc as ut,nc as Z,oc as J,pc as Y,qc as dt,rb as c,rc as Tt,sa as R,sc as G,tb as X,uc as B,wb as u,xb as y,yb as $,yc as L,zb as A}from"./chunk-DTPZU6NP.js";import"./chunk-C6Q5SG76.js";var Jt=["formRef"],Yt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),te=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),ee=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),ne=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),ie=()=>({maxWidth:"700px",width:"100%"});function oe(n,i){n&1&&(O(0,5,2),d(1,"spk-icon"),x())}function ae(n,i){n&1&&b(0,5,3)}function re(n,i){if(n&1){let t=S();O(0,5,1),l(1,"button",21),f("click",function(){C(t);let a=p();return g(a.testDestination())}),m(2,oe,2,0)(3,ae,1,0),r(),x()}if(n&2){let t=p();o(),X("success",t.successfulTest()),o(),u(t.successfulTest()?2:3)}}function le(n,i){if(n&1){let t=S();l(0,"p",27),f("click",function(){C(t);let a=p();return g(a.removeDestinationFormGroup(a.destinationCount()-1))}),O(1,8),d(2,"span",28),x(),r()}}function se(n,i){if(n&1){let t=S();l(0,"div",34),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),l(1,"h3"),_(2),r(),l(3,"p"),_(4),r()()}if(n&2){let t=i.$implicit;o(2),Q(t.displayName),o(2),Q(t.description)}}function pe(n,i){if(n&1){let t=S();l(0,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),_(2),r()}if(n&2){let t=i.$implicit;o(2),D(" ",t.displayName," ")}}function _e(n,i){if(n&1&&(l(0,"div",29),$(1,se,5,2,"div",30,y),r(),l(3,"spk-menu",31)(4,"button",32),b(5,9),r(),w(6,20),$(7,pe,3,1,"button",33,y),v(),r()),n&2){let t=p();o(),A(t.destinationTypeOptionsFocused()),o(2),c("searchable",!0),o(4),A(t.destinationTypeOptionsNotFocused())}}function ce(n,i){n&1&&M(0)}function me(n,i){if(n&1&&m(0,ce,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,Yt,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Fe(n,i){n&1&&M(0)}function ue(n,i){if(n&1&&m(0,Fe,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,te,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=S();O(0,10,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addAdvancedFormPair(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function Te(n,i){n&1&&M(0)}function Ce(n,i){if(n&1&&m(0,Te,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ee,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function ge(n,i){if(n&1){let t=S();O(0,11,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addHttpOption(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function fe(n,i){n&1&&M(0)}function De(n,i){if(n&1&&m(0,fe,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ne,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Se(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){if(n&1&&(l(0,"app-file-tree",43)(1,"label",47),_(2),m(3,Se,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("startingPath",a.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(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Oe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function xe(n,i){if(n&1&&(l(0,"app-file-tree",44)(1,"label",47),_(2),m(3,Oe,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("hideShortcuts",!0)("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Re(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ke(n,i){n&1&&(l(0,"spk-icon",51),_(1,"link"),r())}function Ne(n,i){n&1&&(l(0,"spk-icon",51),_(1,"envelope"),r())}function he(n,i){n&1&&(l(0,"spk-icon",51),_(1,"textbox"),r())}function Ie(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,Re,3,1,"spk-tooltip",48),r(),d(4,"input",50),m(5,ke,2,0,"spk-icon",51)(6,Ne,2,0,"spk-icon",51)(7,he,2,0,"spk-icon",51),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),u(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function ye(n,i){if(n&1){let t=S();l(0,"span",55),f("click",function(){C(t);let a=p(2).$implicit,s=p(2);return g(s.oauthStartTokenCreation(a.destinationType))}),_(1,"AuthID"),r()}}function $e(n,i){n&1&&(l(0,"spk-icon",51),_(1,"password"),r())}function Ae(n,i){if(n&1){let t=S();l(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye "),r()}}function we(n,i){if(n&1){let t=S();l(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye-slash "),r()}}function ve(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),r(),d(3,"input",52),m(4,ye,2,0,"span",53)(5,$e,2,0,"spk-icon",51)(6,Ae,2,0,"spk-icon",54)(7,we,2,0,"spk-icon",54),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),u(e.oauthField===e.formView.name?4:5),o(2),u(e.formView.showPassword?6:7)}}function Pe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Ve(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Me(n,i){if(n&1&&(l(0,"spk-select",57)(1,"label",47),_(2),m(3,Pe,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,Ve,1,1,"ng-template",null,3,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("isClearable",!1)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),k("formControlName",s.formView.name)}}function be(n,i){if(n&1&&(Z(0),m(1,Me,7,14)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:-1)}}function Ge(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Be(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;ct(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Le(n,i){if(n&1&&(l(0,"spk-select",59)(1,"label",47),_(2),m(3,Ge,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,Be,1,2,"ng-template",null,4,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),k("formControlName",s.formView.name)}}function Ue(n,i){n&1&&d(0,"spk-progress-bar",58)}function He(n,i){if(n&1&&(Z(0),m(1,Le,7,15)(2,Ue,1,0,"spk-progress-bar",58)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:2)}}function Ke(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"div",45)(1,"label",47),_(2),m(3,Ke,3,1,"spk-tooltip",48),r(),l(4,"div",60)(5,"spk-form-field"),d(6,"input",61),l(7,"spk-icon",51),_(8,"resize"),r()(),l(9,"spk-select",62),d(10,"input",63),r()()()),n&2){let t,e=p().$implicit,a=p(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(3),c("options",a.sizeOptions())("inlineSearch",!0)}}function ze(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,ze,3,1,"spk-tooltip",48),r(),d(4,"input",64),l(5,"spk-icon",51),_(6,"numpad"),r()()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(l(0,"spk-toggle",46)(1,"label",47),_(2),m(3,qe,3,1,"spk-tooltip",48),r(),d(4,"input",65),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Je(n,i){if(n&1&&(l(0,"spk-select",66)(1,"label",47),_(2),m(3,Qe,3,1,"spk-tooltip",48),r(),d(4,"input",67),r(),m(5,Ze,1,1,"ng-template",null,4,L)),n&2){let t,e=P(6),a=p().$implicit;c("options",a.formView.options)("selectMultiple",!0)("optionTemplate",e),o(),st("for","destination-",a.formGroupName,"-",a.index,""),o(),D(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),o(),u(a.formView.longDescription?3:-1),o(),k("formControlName",a.formView.name)}}function Ye(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function tn(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,Ye,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function en(n,i){if(n&1){let t=S();l(0,"button",68),f("click",function(){C(t);let a=p().$implicit,s=p(2);return g(s.removeFormView(a.formView,0))}),l(1,"spk-icon"),_(2,"x-circle"),r()()}}function nn(n,i){if(n&1&&(l(0,"div",41),w(1,42),m(2,Ee,5,17,"app-file-tree",43)(3,xe,5,13,"app-file-tree",44)(4,Ie,8,13,"spk-form-field")(5,ve,8,13,"spk-form-field")(6,be,2,2)(7,He,3,2)(8,We,11,13,"div",45)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",46)(11,Je,7,9)(12,tn,5,11,"spk-form-field"),v(),m(13,en,3,0,"button",32),r()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),u(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),u(t.formGroupName==="advanced"?13:-1)}}function on(n,i){if(n&1&&(w(0,22)(1,36),$(2,me,1,9,"ng-container",null,y),$(4,ue,1,9,"ng-container",null,y),l(6,"app-toggle-card",37),w(7,38),O(8,10),l(9,"spk-menu",31)(10,"button",39),d(11,"spk-icon"),r(),w(12,20),$(13,de,3,1,"button",33,y),v(),r(),x(),v(),$(15,Ce,1,9,"ng-container",null,y),r(),l(17,"app-toggle-card",37),w(18,38),O(19,11),l(20,"spk-menu",31)(21,"button",39),d(22,"spk-icon"),r(),w(23,20),$(24,ge,3,1,"button",33,y),v(),r(),x(),v(),$(26,De,1,9,"ng-container",null,y),r(),m(28,nn,14,5,"ng-template",null,2,L),v()()),n&2){let t=p();o(2),A(t.destinationFormPair().custom),o(2),A(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),A(t.notSelectedAdvancedFormPair()),o(2),A(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedHttpOptions().length===0),o(3),A(t.notSelectedHttpOptions()),o(2),A(t.selectedHttpOptions())}}function an(n,i){if(n&1){let t=S();l(0,"spk-dialog",69),ut("isOpenChange",function(a){C(t);let s=p();return Ft(s.targetUrlDialogOpen,a)||(s.targetUrlDialogOpen=a),g(a)}),l(1,"header",70)(2,"h2"),b(3,12),r(),l(4,"spk-alert",71),b(5,13),r()(),l(6,"div",72)(7,"spk-form-field"),d(8,"textarea",73),r()(),l(9,"footer",74)(10,"button",24),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!1))}),_(11,"Cancel"),r(),l(12,"button",75),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!0))}),O(13,14),d(14,"spk-icon"),x(),r()()()}if(n&2){let t=p();mt("isOpen",t.targetUrlDialogOpen),c("options",Tt(3,ie)),o(8),c("formControl",t.targetUrlCtrl)}}var rn=["Bytes","KB","MB","GB","TB","PB"],W=new Pt,$n=(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}),et=class n{#l=I(St);#s=I(Dt);#p=I(ft);#t=I(tt);#i=I(Et);#e=I(Bt);#n=I(Zt);injector=I(at);formRef=rt.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=R(rn);successfulTest=R(!1);destinationTypeOptionsInFocus=R(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=R(Qt.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(a=>a.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=Ct(()=>{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 Nt;targetUrlInitial=R(null);targetUrlDialogOpen=R(!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:a=>{let s=a.error.error.Error;if(s==="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:F=>{F&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),s.startsWith("incorrect-cert:")){let F=s.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
1
|
+
import{g as Zt}from"./chunk-NWVBCPMZ.js";import{a as jt,b as Qt,o as tt}from"./chunk-2ZYPGUOW.js";import{a as Xt}from"./chunk-L7FLOT6V.js";import{a as qt}from"./chunk-Q67EYU7V.js";import"./chunk-DNHLTHLR.js";import"./chunk-N5K6ODRA.js";import"./chunk-47XDI5B5.js";import{a as U}from"./chunk-CK5N2PPF.js";import"./chunk-RKQDFV7W.js";import"./chunk-GEEPH37P.js";import"./chunk-7LD5V64E.js";import"./chunk-WZG34QS3.js";import{a as wt,b as vt,d as Pt,e as Vt,f as Mt,h as bt,i as Gt,l as Bt,m as Lt,n as Ut,o as Ht,p as Kt,q as Wt,s as zt}from"./chunk-4IJQ7AAQ.js";import"./chunk-OQEGPSC6.js";import{b as Et}from"./chunk-KLIPTMVG.js";import{a as Dt,c as St}from"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import{a as Ot,b as xt,d as Rt,e as kt,l as Nt,n as ht,o as It,r as yt,x as $t,y as At}from"./chunk-ECH6I3YN.js";import{c as ft}from"./chunk-V5GVLIPJ.js";import{ia as gt}from"./chunk-2HS3CYRN.js";import{Ab as l,Bb as r,Cb as d,D as ot,Db as w,Eb as v,Fb as M,Gb as S,Lc as K,Mb as O,Mc as Ct,Nb as x,Ob as b,Pb as q,Qa as o,Qb as j,Rb as H,Sb as f,Tb as p,Wb as k,X as I,Xa as rt,Yb as st,Zb as T,ca as C,cc as pt,da as g,db as lt,dc as _t,ec as P,fc as _,gc as Q,ha as at,hc as D,ib as m,ic as ct,kc as mt,lc as Ft,mc as ut,nc as Z,oc as J,pc as Y,qc as dt,rb as c,rc as Tt,sa as R,sc as G,tb as X,uc as B,wb as u,xb as y,yb as $,yc as L,zb as A}from"./chunk-DTPZU6NP.js";import"./chunk-C6Q5SG76.js";var Jt=["formRef"],Yt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),te=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),ee=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),ne=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),ie=()=>({maxWidth:"700px",width:"100%"});function oe(n,i){n&1&&(O(0,5,2),d(1,"spk-icon"),x())}function ae(n,i){n&1&&b(0,5,3)}function re(n,i){if(n&1){let t=S();O(0,5,1),l(1,"button",21),f("click",function(){C(t);let a=p();return g(a.testDestination())}),m(2,oe,2,0)(3,ae,1,0),r(),x()}if(n&2){let t=p();o(),X("success",t.successfulTest()),o(),u(t.successfulTest()?2:3)}}function le(n,i){if(n&1){let t=S();l(0,"p",27),f("click",function(){C(t);let a=p();return g(a.removeDestinationFormGroup(a.destinationCount()-1))}),O(1,8),d(2,"span",28),x(),r()}}function se(n,i){if(n&1){let t=S();l(0,"div",34),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),l(1,"h3"),_(2),r(),l(3,"p"),_(4),r()()}if(n&2){let t=i.$implicit;o(2),Q(t.displayName),o(2),Q(t.description)}}function pe(n,i){if(n&1){let t=S();l(0,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),_(2),r()}if(n&2){let t=i.$implicit;o(2),D(" ",t.displayName," ")}}function _e(n,i){if(n&1&&(l(0,"div",29),$(1,se,5,2,"div",30,y),r(),l(3,"spk-menu",31)(4,"button",32),b(5,9),r(),w(6,20),$(7,pe,3,1,"button",33,y),v(),r()),n&2){let t=p();o(),A(t.destinationTypeOptionsFocused()),o(2),c("searchable",!0),o(4),A(t.destinationTypeOptionsNotFocused())}}function ce(n,i){n&1&&M(0)}function me(n,i){if(n&1&&m(0,ce,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,Yt,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Fe(n,i){n&1&&M(0)}function ue(n,i){if(n&1&&m(0,Fe,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,te,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=S();O(0,10,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addAdvancedFormPair(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function Te(n,i){n&1&&M(0)}function Ce(n,i){if(n&1&&m(0,Te,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ee,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function ge(n,i){if(n&1){let t=S();O(0,11,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addHttpOption(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function fe(n,i){n&1&&M(0)}function De(n,i){if(n&1&&m(0,fe,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ne,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Se(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){if(n&1&&(l(0,"app-file-tree",43)(1,"label",47),_(2),m(3,Se,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("startingPath",a.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(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Oe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function xe(n,i){if(n&1&&(l(0,"app-file-tree",44)(1,"label",47),_(2),m(3,Oe,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("hideShortcuts",!0)("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Re(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ke(n,i){n&1&&(l(0,"spk-icon",51),_(1,"link"),r())}function Ne(n,i){n&1&&(l(0,"spk-icon",51),_(1,"envelope"),r())}function he(n,i){n&1&&(l(0,"spk-icon",51),_(1,"textbox"),r())}function Ie(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,Re,3,1,"spk-tooltip",48),r(),d(4,"input",50),m(5,ke,2,0,"spk-icon",51)(6,Ne,2,0,"spk-icon",51)(7,he,2,0,"spk-icon",51),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),u(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function ye(n,i){if(n&1){let t=S();l(0,"span",55),f("click",function(){C(t);let a=p(2).$implicit,s=p(2);return g(s.oauthStartTokenCreation(a.destinationType))}),_(1,"AuthID"),r()}}function $e(n,i){n&1&&(l(0,"spk-icon",51),_(1,"password"),r())}function Ae(n,i){if(n&1){let t=S();l(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye "),r()}}function we(n,i){if(n&1){let t=S();l(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye-slash "),r()}}function ve(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),r(),d(3,"input",52),m(4,ye,2,0,"span",53)(5,$e,2,0,"spk-icon",51)(6,Ae,2,0,"spk-icon",54)(7,we,2,0,"spk-icon",54),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),u(e.oauthField===e.formView.name?4:5),o(2),u(e.formView.showPassword?6:7)}}function Pe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Ve(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Me(n,i){if(n&1&&(l(0,"spk-select",57)(1,"label",47),_(2),m(3,Pe,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,Ve,1,1,"ng-template",null,3,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("isClearable",!1)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),k("formControlName",s.formView.name)}}function be(n,i){if(n&1&&(Z(0),m(1,Me,7,14)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:-1)}}function Ge(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Be(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;ct(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Le(n,i){if(n&1&&(l(0,"spk-select",59)(1,"label",47),_(2),m(3,Ge,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,Be,1,2,"ng-template",null,4,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),k("formControlName",s.formView.name)}}function Ue(n,i){n&1&&d(0,"spk-progress-bar",58)}function He(n,i){if(n&1&&(Z(0),m(1,Le,7,15)(2,Ue,1,0,"spk-progress-bar",58)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:2)}}function Ke(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"div",45)(1,"label",47),_(2),m(3,Ke,3,1,"spk-tooltip",48),r(),l(4,"div",60)(5,"spk-form-field"),d(6,"input",61),l(7,"spk-icon",51),_(8,"resize"),r()(),l(9,"spk-select",62),d(10,"input",63),r()()()),n&2){let t,e=p().$implicit,a=p(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(3),c("options",a.sizeOptions())("inlineSearch",!0)}}function ze(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,ze,3,1,"spk-tooltip",48),r(),d(4,"input",64),l(5,"spk-icon",51),_(6,"numpad"),r()()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(l(0,"spk-toggle",46)(1,"label",47),_(2),m(3,qe,3,1,"spk-tooltip",48),r(),d(4,"input",65),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Je(n,i){if(n&1&&(l(0,"spk-select",66)(1,"label",47),_(2),m(3,Qe,3,1,"spk-tooltip",48),r(),d(4,"input",67),r(),m(5,Ze,1,1,"ng-template",null,4,L)),n&2){let t,e=P(6),a=p().$implicit;c("options",a.formView.options)("selectMultiple",!0)("optionTemplate",e),o(),st("for","destination-",a.formGroupName,"-",a.index,""),o(),D(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),o(),u(a.formView.longDescription?3:-1),o(),k("formControlName",a.formView.name)}}function Ye(n,i){if(n&1&&(l(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function tn(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",47),_(2),m(3,Ye,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),k("formControlName",e.formView.name)}}function en(n,i){if(n&1){let t=S();l(0,"button",68),f("click",function(){C(t);let a=p().$implicit,s=p(2);return g(s.removeFormView(a.formView,0))}),l(1,"spk-icon"),_(2,"x-circle"),r()()}}function nn(n,i){if(n&1&&(l(0,"div",41),w(1,42),m(2,Ee,5,17,"app-file-tree",43)(3,xe,5,13,"app-file-tree",44)(4,Ie,8,13,"spk-form-field")(5,ve,8,13,"spk-form-field")(6,be,2,2)(7,He,3,2)(8,We,11,13,"div",45)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",46)(11,Je,7,9)(12,tn,5,11,"spk-form-field"),v(),m(13,en,3,0,"button",32),r()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),u(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),u(t.formGroupName==="advanced"?13:-1)}}function on(n,i){if(n&1&&(w(0,22)(1,36),$(2,me,1,9,"ng-container",null,y),$(4,ue,1,9,"ng-container",null,y),l(6,"app-toggle-card",37),w(7,38),O(8,10),l(9,"spk-menu",31)(10,"button",39),d(11,"spk-icon"),r(),w(12,20),$(13,de,3,1,"button",33,y),v(),r(),x(),v(),$(15,Ce,1,9,"ng-container",null,y),r(),l(17,"app-toggle-card",37),w(18,38),O(19,11),l(20,"spk-menu",31)(21,"button",39),d(22,"spk-icon"),r(),w(23,20),$(24,ge,3,1,"button",33,y),v(),r(),x(),v(),$(26,De,1,9,"ng-container",null,y),r(),m(28,nn,14,5,"ng-template",null,2,L),v()()),n&2){let t=p();o(2),A(t.destinationFormPair().custom),o(2),A(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),A(t.notSelectedAdvancedFormPair()),o(2),A(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedHttpOptions().length===0),o(3),A(t.notSelectedHttpOptions()),o(2),A(t.selectedHttpOptions())}}function an(n,i){if(n&1){let t=S();l(0,"spk-dialog",69),ut("isOpenChange",function(a){C(t);let s=p();return Ft(s.targetUrlDialogOpen,a)||(s.targetUrlDialogOpen=a),g(a)}),l(1,"header",70)(2,"h2"),b(3,12),r(),l(4,"spk-alert",71),b(5,13),r()(),l(6,"div",72)(7,"spk-form-field"),d(8,"textarea",73),r()(),l(9,"footer",74)(10,"button",24),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!1))}),_(11,"Cancel"),r(),l(12,"button",75),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!0))}),O(13,14),d(14,"spk-icon"),x(),r()()()}if(n&2){let t=p();mt("isOpen",t.targetUrlDialogOpen),c("options",Tt(3,ie)),o(8),c("formControl",t.targetUrlCtrl)}}var rn=["Bytes","KB","MB","GB","TB","PB"],W=new Wt,$n=(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}),et=class n{#l=I(St);#s=I(Dt);#p=I(ft);#t=I(tt);#i=I(Et);#e=I(kt);#n=I(Zt);injector=I(at);formRef=rt.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=R(rn);successfulTest=R(!1);destinationTypeOptionsInFocus=R(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=R(Qt.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(a=>a.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=Ct(()=>{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 Mt;targetUrlInitial=R(null);targetUrlDialogOpen=R(!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:a=>{let s=a.error.error.Error;if(s==="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:F=>{F&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),s.startsWith("incorrect-cert:")){let F=s.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
2
|
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
3
|
The server reported the certificate hash: ${F}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:E=>{E&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",F)}})}if(s.startsWith("incorrect-host-key:")){let F=s.split('incorrect-host-key:"')[1].split('",')[0],E=s.split('accepted-host-key:"')[1].split('",')[0];E?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
4
|
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
5
|
Do you want to REPLACE your CURRENT host key ${E}
|
|
6
|
-
with the REPORTED host key: ${F}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}}):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: ${F}`,confirmText:"Approve",cancelText:"Cancel"},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}})}}})}mapToTargetUrl(i){return jt(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=R("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=R(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=R(!1);#_=R(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,a=this.#o()+"?type="+i+"&token="+this.#a(),s=screen.width/2-t/2,F=screen.height/2-e/2,E=window.open(a,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+s+",top="+F);E?.addEventListener("blur",N=>{console.log("event blur",N)}),E?.addEventListener("beforeunload",N=>{console.log("event beforeunload",N),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(ot(()=>this.#r.set(!1))).subscribe({next:V=>{console.log("res",V),V?.authid&&this.#_.set(V.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=lt({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&pt(e.formRef,Jt,5),t&2&&_t()},features:[dt([tt])],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 a;a=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let s;s=$localize`Other destinations`;let F;F=$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:`,F=H(F);let E;E=$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:`,E=H(E);let N;N=$localize`Select an option...`;let V;V=$localize`Edit target URL`;let nt;nt=$localize` Be careful, this will overwrite everything you have in your destination. `;let it;return it=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,e,a,s,F,E,V,nt,it,[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"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["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"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[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,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",N,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["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 a=S();l(0,"form",15,0),f("submit",function(){return C(a),g(e.next())}),l(2,"header")(3,"h3",16),O(4,5),l(5,"div",17),m(6,re,4,3,"button",18),l(7,"spk-menu")(8,"button",19),d(9,"spk-icon"),r(),w(10,20),l(11,"button",21),f("click",function(){return C(a),g(e.openTargetUrlDialog())}),d(12,"spk-icon"),r(),v(),r()(),x(),r(),m(13,le,3,0,"p"),r(),m(14,_e,9,1)(15,on,30,6,"ng-container",22),l(16,"div",23)(17,"button",24),f("click",function(){return C(a),g(e.goBack())}),O(18,6),d(19,"spk-icon"),x(),r(),l(20,"button",25),O(21,7),d(22,"spk-icon"),x(),r()()(),m(23,an,15,4,"spk-dialog",26)}if(t&2){let a;c("formGroup",e.destinationForm),o(6),u(e.destinationCount()>0?6:-1),o(7),u(e.destinationCount()>0?13:-1),o(),u(e.destinationCount()===0?14:-1),o(),u(!((a=e.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?15:-1),o(8),u(e.targetUrlDialogOpen()?23:-1)}},dependencies:[Vt,ht,xt,It,Ot,Rt,kt,yt,$t,vt,At,wt,gt,Lt,Ut,Mt,Wt,zt,Gt,bt,Kt,Ht,qt,Xt],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{$n as createDestinationForm,An as createDestinationFormGroup,et as default};
|
|
6
|
+
with the REPORTED host key: ${F}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}}):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: ${F}`,confirmText:"Approve",cancelText:"Cancel"},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}})}}})}mapToTargetUrl(i){return jt(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=R("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=R(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=R(!1);#_=R(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,a=this.#o()+"?type="+i+"&token="+this.#a(),s=screen.width/2-t/2,F=screen.height/2-e/2,E=window.open(a,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+s+",top="+F);E?.addEventListener("blur",N=>{console.log("event blur",N)}),E?.addEventListener("beforeunload",N=>{console.log("event beforeunload",N),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(ot(()=>this.#r.set(!1))).subscribe({next:V=>{console.log("res",V),V?.authid&&this.#_.set(V.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=lt({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&pt(e.formRef,Jt,5),t&2&&_t()},features:[dt([tt])],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 a;a=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let s;s=$localize`Other destinations`;let F;F=$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:`,F=H(F);let E;E=$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:`,E=H(E);let N;N=$localize`Select an option...`;let V;V=$localize`Edit target URL`;let nt;nt=$localize` Be careful, this will overwrite everything you have in your destination. `;let it;return it=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,e,a,s,F,E,V,nt,it,[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"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["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"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[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,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",N,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["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 a=S();l(0,"form",15,0),f("submit",function(){return C(a),g(e.next())}),l(2,"header")(3,"h3",16),O(4,5),l(5,"div",17),m(6,re,4,3,"button",18),l(7,"spk-menu")(8,"button",19),d(9,"spk-icon"),r(),w(10,20),l(11,"button",21),f("click",function(){return C(a),g(e.openTargetUrlDialog())}),d(12,"spk-icon"),r(),v(),r()(),x(),r(),m(13,le,3,0,"p"),r(),m(14,_e,9,1)(15,on,30,6,"ng-container",22),l(16,"div",23)(17,"button",24),f("click",function(){return C(a),g(e.goBack())}),O(18,6),d(19,"spk-icon"),x(),r(),l(20,"button",25),O(21,7),d(22,"spk-icon"),x(),r()()(),m(23,an,15,4,"spk-dialog",26)}if(t&2){let a;c("formGroup",e.destinationForm),o(6),u(e.destinationCount()>0?6:-1),o(7),u(e.destinationCount()>0?13:-1),o(),u(e.destinationCount()===0?14:-1),o(),u(!((a=e.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?15:-1),o(8),u(e.targetUrlDialogOpen()?23:-1)}},dependencies:[zt,bt,vt,Gt,wt,Pt,Vt,Bt,Lt,Kt,Ut,Ht,gt,Nt,ht,Ot,$t,At,Rt,xt,yt,It,qt,Xt],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{$n as createDestinationForm,An as createDestinationFormGroup,et as default};
|