@duplicati/ngclient 0.0.95 → 0.0.96
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-ICOF6OY2.js → chunk-27RULQ7Y.js} +1 -1
- package/{chunk-2HS3CYRN.js → chunk-3GK4TNUH.js} +1 -1
- package/chunk-3WEATDBM.js +1 -0
- package/chunk-3WKC2CFC.js +1 -0
- package/{chunk-25IC7WV6.js → chunk-3XY4ZNIY.js} +1 -1
- package/{chunk-3HJFVNAL.js → chunk-3YOT5OAB.js} +1 -1
- package/chunk-4ERW7ITN.js +1 -0
- package/{chunk-V5GVLIPJ.js → chunk-4XPN5ZGE.js} +1 -1
- package/{chunk-3ZLHMSKS.js → chunk-57MYGQMW.js} +1 -1
- package/{chunk-M5YHW43W.js → chunk-5COOM7FC.js} +1 -1
- package/{chunk-ORA656R6.js → chunk-5UL3RRQI.js} +1 -1
- package/{chunk-AVNZ3OXK.js → chunk-6EQS5NZL.js} +1 -1
- package/{chunk-ZHWVTLKA.js → chunk-6LVGSIUU.js} +1 -1
- package/{chunk-VFLEQIHL.js → chunk-76MUKWQP.js} +1 -1
- package/chunk-7CGTOI24.js +1 -0
- package/chunk-7EPQLKGD.js +1 -0
- package/chunk-7JZ5LA6R.js +1 -0
- package/{chunk-R6R4GFBX.js → chunk-A6XFGG4U.js} +1 -1
- package/chunk-ASQFBDFK.js +1 -0
- package/chunk-C2PMOZWR.js +1 -0
- package/chunk-CHZ7TMI7.js +1 -0
- package/{chunk-LFPZBC5Y.js → chunk-CMXSHXAU.js} +1 -1
- package/{chunk-DUPZCVLU.js → chunk-CNWIFYHZ.js} +1 -1
- package/{chunk-RCP6EKCC.js → chunk-CR2UB7UZ.js} +1 -1
- package/{chunk-RDRLCN5M.js → chunk-F5S33WHR.js} +1 -1
- package/{chunk-TYO44G6M.js → chunk-FHW4WHNO.js} +1 -1
- package/{chunk-ETPUKEDV.js → chunk-FJKXCOAH.js} +1 -1
- package/{chunk-THUAAYGA.js → chunk-G3YJXHRY.js} +1 -1
- package/{chunk-IR7OYLKR.js → chunk-GI6WORKU.js} +1 -1
- package/{chunk-GEEPH37P.js → chunk-HGERKLOF.js} +1 -1
- package/{chunk-VS2WUXLN.js → chunk-IAVOZTCR.js} +1 -1
- package/{chunk-OB2RR7QV.js → chunk-IHYIT4I3.js} +1 -1
- package/{chunk-TLNQL27Q.js → chunk-IZOZII2D.js} +1 -1
- package/{chunk-KLIPTMVG.js → chunk-L3T52MCL.js} +1 -1
- package/{chunk-4IJQ7AAQ.js → chunk-LHSJLKCF.js} +1 -1
- package/{chunk-2FWU7B4D.js → chunk-LO4MUZS2.js} +1 -1
- package/chunk-LXEGFP53.js +1 -0
- package/chunk-MJI6X5KH.js +1 -0
- package/{chunk-YKB6KLXM.js → chunk-MJUYFS7O.js} +1 -1
- package/{chunk-QXYKZKGV.js → chunk-MURCWMUG.js} +1 -1
- package/{chunk-DTR7JZFL.js → chunk-NB32XJ7B.js} +1 -1
- package/{chunk-N5K6ODRA.js → chunk-NV2YMSSM.js} +1 -1
- package/{chunk-CK5N2PPF.js → chunk-OS4AAJLB.js} +1 -1
- package/{chunk-DTPZU6NP.js → chunk-PTC4N7TU.js} +1 -1
- package/chunk-PUSUA4U7.js +1 -0
- package/chunk-Q3FF4WG3.js +1 -0
- package/{chunk-S5JZJBJS.js → chunk-QPO2N2OR.js} +1 -1
- package/{chunk-WZG34QS3.js → chunk-QX5XWUM2.js} +1 -1
- package/chunk-RUWWC6BD.js +1 -0
- package/{chunk-UDBZI5KJ.js → chunk-T2KQRNAJ.js} +1 -1
- package/chunk-TNK2MVSP.js +1 -0
- package/{chunk-5RLVPRCW.js → chunk-UBZDIRFY.js} +1 -1
- package/{chunk-XL5J65PI.js → chunk-UT45C7WK.js} +1 -1
- package/{chunk-WNQBKJ3M.js → chunk-V6OHLKTK.js} +1 -1
- package/{chunk-RHPHTHFC.js → chunk-VFJL5JPI.js} +1 -1
- package/{chunk-RBRHRXAU.js → chunk-W5YK2JJZ.js} +1 -1
- package/{chunk-AIOUSVMR.js → chunk-WBNOGAKJ.js} +1 -1
- package/{chunk-SNZ7FE6B.js → chunk-WGIELPP6.js} +1 -1
- package/{chunk-KJ3CPTGU.js → chunk-WNWGY2FM.js} +1 -1
- package/{chunk-TBPNAHEA.js → chunk-WVKWOGDQ.js} +1 -1
- package/{chunk-Q67EYU7V.js → chunk-XC6KYSRC.js} +1 -1
- package/{chunk-FAZH6E7O.js → chunk-YDN2L342.js} +1 -1
- package/{chunk-SSKK33BY.js → chunk-YIWL3QAP.js} +1 -1
- package/{chunk-WYXI4BXE.js → chunk-YPQUTPBQ.js} +1 -1
- package/{chunk-L4B5RE7R.js → chunk-ZCB4RYTS.js} +1 -1
- package/chunk-ZTJALQGT.js +1 -0
- package/index.html +1 -1
- package/locale/dayjs/da.js +40 -1
- package/locale/dayjs/de.js +64 -1
- package/locale/dayjs/en-gb.js +42 -1
- package/locale/dayjs/en.js +12 -1
- package/locale/dayjs/fr.js +41 -1
- package/{main-ZZ5NOUMD.js → main-JSU2T7AW.js} +1 -1
- package/package.json +1 -1
- package/chunk-3TZIEZUP.js +0 -1
- package/chunk-APEDZMBI.js +0 -1
- package/chunk-C6Q5SG76.js +0 -1
- package/chunk-ECH6I3YN.js +0 -1
- package/chunk-F4AVB6VB.js +0 -1
- package/chunk-HWVDZXYD.js +0 -1
- package/chunk-IYKSYF2U.js +0 -1
- package/chunk-LVHYWUFN.js +0 -1
- package/chunk-MLJFOQOI.js +0 -1
- package/chunk-NU46HB6T.js +0 -1
- package/chunk-P5GYPUJD.js +0 -1
- package/chunk-QUDKB5S3.js +0 -1
- package/chunk-SSXZ4GVY.js +0 -1
- package/chunk-TX5R4CFB.js +0 -1
- package/chunk-UQH5ZQG7.js +0 -1
- package/chunk-XQXYPXR7.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-PUSUA4U7.js";import{Ab as o,Bb as n,Qa as g,Sb as h,Ub as _,Vb as a,_a as d,db as p,fc as s,ib as m,pa as r,tb as f,wb as C}from"./chunk-PTC4N7TU.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Zt}from"./chunk-L4B5RE7R.js";import{a as jt,b as Qt,o as tt}from"./chunk-M5YHW43W.js";import{a as qt}from"./chunk-Q67EYU7V.js";import"./chunk-DNHLTHLR.js";import"./chunk-N5K6ODRA.js";import"./chunk-RCP6EKCC.js";import{a as Xt}from"./chunk-3HJFVNAL.js";import"./chunk-LFPZBC5Y.js";import{a as U}from"./chunk-CK5N2PPF.js";import"./chunk-RDRLCN5M.js";import"./chunk-GEEPH37P.js";import"./chunk-XL5J65PI.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-TYO44G6M.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{b as Et}from"./chunk-KLIPTMVG.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.
|
|
1
|
+
import{g as Zt}from"./chunk-ZCB4RYTS.js";import{a as jt,b as Qt,o as tt}from"./chunk-5COOM7FC.js";import{a as qt}from"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import"./chunk-NV2YMSSM.js";import"./chunk-CR2UB7UZ.js";import{a as Xt}from"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import{a as U}from"./chunk-OS4AAJLB.js";import"./chunk-F5S33WHR.js";import"./chunk-HGERKLOF.js";import"./chunk-UT45C7WK.js";import"./chunk-QX5XWUM2.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-LHSJLKCF.js";import"./chunk-FHW4WHNO.js";import{a as Dt,c as St}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.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-PUSUA4U7.js";import{b as Et}from"./chunk-L3T52MCL.js";import{c as ft}from"./chunk-4XPN5ZGE.js";import{ia as gt}from"./chunk-3GK4TNUH.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-PTC4N7TU.js";import"./chunk-7CGTOI24.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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-
|
|
1
|
+
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-3GK4TNUH.js";import{za as a}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as g}from"./chunk-
|
|
1
|
+
import{o as g}from"./chunk-5COOM7FC.js";import"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import{a as k}from"./chunk-NV2YMSSM.js";import"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-OS4AAJLB.js";import{a as I}from"./chunk-76MUKWQP.js";import"./chunk-F5S33WHR.js";import"./chunk-HGERKLOF.js";import"./chunk-UT45C7WK.js";import{a as N}from"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-FHW4WHNO.js";import{a as P,b as h,d as E,e as B}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{o as $,p as M,t as b}from"./chunk-PUSUA4U7.js";import{b as O}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as s,Bb as p,C as m,Cb as n,Mb as d,Mc as A,Nb as c,Qa as r,X as l,db as f,ib as C,qc as R,rb as u,tc as _,wb as D}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l(N);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,M,b,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as he}from"./chunk-Q67EYU7V.js";import{a as H}from"./chunk-N5K6ODRA.js";import{a as J}from"./chunk-3HJFVNAL.js";import{a as Re}from"./chunk-RDRLCN5M.js";import{a as Ne,b as M,d as L,e as $,h as D,j as Pe,m as y,p as A,q as b,r as Ie,s as v}from"./chunk-4IJQ7AAQ.js";import{a as P,c as d}from"./chunk-AIOUSVMR.js";import{a as h,g as k,l as Ee,o as de,p as Oe,r as fe,x as Ce}from"./chunk-ECH6I3YN.js";import{b as I}from"./chunk-KLIPTMVG.js";import{pa as q}from"./chunk-2HS3CYRN.js";import{Ab as s,Bb as a,C as ae,Cb as l,D as f,Db as Y,Eb as U,Gb as x,H as le,M as pe,Mb as u,Mc as j,Nb as F,Ob as T,Pb as ue,Qa as S,Qb as Fe,R as _e,Sb as E,Tb as B,X as p,ca as C,da as R,db as N,fc as K,g as re,ib as w,ic as Se,qc as me,rb as m,sa as _,tb as ce,v as se,vc as ge,wb as G,xc as Te}from"./chunk-DTPZU6NP.js";var ke=new b,$e=()=>ke.group({passphrase:ke.control("")}),Z=class n{#t=p(I);#e=p(O);#o=p(d);#i=p(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=_(!1);next(){let o=this.#e.destinationTargetUrl();if(!o)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,t=[{Name:"--no-encryption",Value:"true"}];e&&(t=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:o,Settings:t}},temporary:!0}).pipe(f(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let r=i.ID;this.#e.getBackup(r),this.#o.navigate([`/restore-draft/${r}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let o;o=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let t;t=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,t,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",o,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){e&1&&(s(0,"form",3),E("submit",function(){return t.next()}),s(1,"spk-form-field")(2,"label",4),T(3,0),a(),l(4,"input",5),a(),s(5,"div",6)(6,"button",7),E("click",function(){return t.back()}),u(7,1),l(8,"spk-icon"),F(),a(),s(9,"button",8),u(10,2),l(11,"spk-icon"),F(),a()()()),e&2&&m("formGroup",t.encryptionForm)},dependencies:[v,D,M,L,$,y,A,Ee,h,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,o){n&1&&l(0,"spk-progress-bar",7)}function be(n,o){if(n&1&&(s(0,"div",13),K(1),ge(2,"date"),a()),n&2){let e=o.$implicit;S(),Se("",e.Version,": ",Te(2,2,e.Time,"medium"),"")}}function ve(n,o){n&1&&l(0,"spk-progress-bar",7)}function we(n,o){if(n&1&&(s(0,"app-file-tree",14)(1,"label",15),T(2,4),a(),l(3,"input",16),a()),n&2){let e=B(3);m("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,o){if(n&1&&w(0,we,4,4,"app-file-tree",14),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,o){if(n&1){let e=x();s(0,"spk-select",11),E("cleared",function(){C(e);let i=B();return R(i.abortLoading())}),l(1,"input",12),w(2,be,3,5,"ng-template"),a(),w(3,ve,1,0,"spk-progress-bar",7)(4,Ge,1,1)}if(n&2){let e=B();m("options",e.versionOptions())("isClearable",!0),S(3),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),S(),G(e.showFileTree()?4:-1)}}var Q=new b,De=()=>Q.group({filesToRestore:Q.control(""),selectedOption:Q.control(null),passphrase:Q.control(null)}),te=class n{#t=p(I);#e=p(O);#o=p(d);#i=p(P);#n=p(q);#r=p(Re);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=_(!1);backupSettings=_(null);rootPath=_(void 0);loadingRootPath=_(!1);isRepairing=_(!1);loadingEffect=j(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let t=e[0].Version;Number.isInteger(t)&&this.selectFilesForm.controls.selectedOption.setValue(t)}});backupSettingsEffect=j(()=>{let o=this.backupId(),e=this.isRepairing(),t=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof t!="number"||!o)return;let r=this.versionOptions()?.find(c=>c.Version===t)?.Time??null;!r||e||(this.showFileTree.set(!1),queueMicrotask(()=>{let c={id:o+"",time:r};this.backupSettings.set(c),this.getRootPath(c)}))});repairEffect=j(()=>{let o=this.#e.isDraft(),e=this.selectOptionSignal(),t=this.versionOptions();if(o&&e){let i=t.find(c=>c.Version===parseInt(e));if(i===void 0)return;let r=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:r,requestBody:{only_paths:!0,time:i.Time}}).subscribe(c=>{let W=c.ID;var X=window.setInterval(()=>{this.#t.getApiV1TaskByTaskid({taskid:W}).subscribe(z=>{z.Status==="Completed"&&(clearInterval(X),this.isRepairing.set(!1))})},1e3)})}});getRootPath(o){let e={id:o.id+"",time:o.time,prefixOnly:!0,folderContents:!1};this.isRepairing()||(this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(pe(this.abortLoading$),f(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:t=>{let i=t.Files[0].Path;this.rootPath.set(i)}}))}abortLoading$=new re;abortLoading(){this.showFileTree.set(!1),this.loadingRootPath.set(!1),this.abortLoading$.next(!0)}displayFn(){let o=this.versionOptions();return e=>{if(!e)return"";let t=o?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return t?`${t.Version}: ${this.#n.transform(t.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[me([q])],decls:13,vars:3,consts:()=>{let o;o=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let r;return r=$localize`Path`,[["formRef",""],o,e,t,r,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",i,"formControlName","selectedOption"],[1,"custom-option"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,t){if(e&1){let i=x();s(0,"form",5,0),E("submit",function(){return C(i),R(t.next())}),s(2,"h3",6),T(3,1),a(),w(4,Ae,1,0,"spk-progress-bar",7)(5,xe,5,4),s(6,"div",8)(7,"button",9),E("click",function(){return C(i),R(t.back())}),u(8,2),l(9,"spk-icon"),F(),a(),s(10,"button",10),u(11,3),l(12,"spk-icon"),F(),a()()()}e&2&&(m("formGroup",t.selectFilesForm),S(4),G(t.versionOptionsLoading()?4:5),S(5),ue(t.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[Ie,D,M,L,$,v,y,A,q,J,k,h,fe,de],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var O=class n{#t=p(d);#e=p(I);backupId=_(null);backup=_(null);destinationTargetUrl=_(null);selectFilesForm=De();optionsForm=ye();encryptionForm=$e();optionsFormSignal=H(this.optionsForm.valueChanges);selectFilesFormSignal=H(this.selectFilesForm.valueChanges);selectOptionSignal=H(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=_(!1);versionOptions=_([]);isSubmitting=_(!1);isDraft=_(!1);isFileRestore=_(!1);init(o,e=!1,t=!1){this.backupId.set(o),this.isFileRestore.set(e),this.isDraft.set(t),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(o,!0)}updateTargetUrl(o){this.destinationTargetUrl.set(o)}submit(){this.isSubmitting.set(!0);let o=this.backupId(),e=this.optionsForm.value,t=this.selectFilesForm.value,i=this.versionOptions()?.find(r=>r.Version===t.selectedOption);this.#e.postApiV1BackupByIdRestore({id:o??"",requestBody:{paths:t.filesToRestore?.split("\0").map(r=>`${r}*`)??[],passphrase:t.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(f(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:r=>{console.error("restore error",r)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(o,e=!1){this.versionOptionsLoading.set(!0),se([this.#e.getApiV1BackupById({id:o}),this.#e.getApiV1BackupByIdFilesets({id:o}).pipe(le(3))]).pipe(ae(1),f(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([t,i])=>{this.versionOptions.set(i),this.backup.set(t)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=_e({token:n,factory:n.\u0275fac,providedIn:"root"})};var V=new b,ye=()=>V.group({restoreFrom:V.control("orignal"),restoreFromPath:V.control(""),handleExisting:V.control("overwrite"),permissions:V.control(!1)}),oe=class n{#t=p(O);#e=p(d);#o=p(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let o;o=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let t;t=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let r;r=$localize`How do you want to handle existing files?`;let c;c=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let W;W=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let X;X=$localize`Permissions`;let z;z=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],o,e,t,i,r,c,W,X,z,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){if(e&1){let i=x();s(0,"form",12,0),E("submit",function(){return C(i),R(t.submit())}),s(2,"h3",13),T(3,1),a(),s(4,"app-toggle-card",14),Y(5,15),T(6,2),U(),s(7,"spk-radio",16),u(8,3),l(9,"input",17),F(),a(),s(10,"spk-radio",16),u(11,4),l(12,"input",18),F(),a(),s(13,"app-file-tree",19)(14,"label",20),K(15,"Path"),a(),l(16,"input",21),a()(),s(17,"app-toggle-card",14),Y(18,15),T(19,5),U(),s(20,"spk-radio",16),u(21,6),l(22,"input",22),F(),a(),s(23,"spk-radio",16),u(24,7),l(25,"input",23),F(),a()(),s(26,"app-toggle-card"),Y(27,15),T(28,8),U(),s(29,"spk-toggle",24),u(30,9),l(31,"input",25),F(),a()(),s(32,"div",26)(33,"button",27),E("click",function(){return C(i),R(t.goBack())}),u(34,10),l(35,"spk-icon"),F(),a(),s(36,"button",28),u(37,11),l(38,"spk-icon"),F(),a()()()}if(e&2){let i;m("formGroup",t.optionsForm),S(4),m("disallowToggle",!0),S(9),m("disabled",((i=t.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),m("disallowToggle",!0),S(19),ce("loader",t.isSubmitting())}},dependencies:[v,D,M,Ne,Pe,L,$,y,A,he,J,Ce,Oe,k,h],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,oe as b,$e as c,Z as d,De as e,te as f,O as g};
|
|
1
|
+
import{a as he}from"./chunk-XC6KYSRC.js";import{a as H}from"./chunk-NV2YMSSM.js";import{a as J}from"./chunk-3YOT5OAB.js";import{a as Re}from"./chunk-F5S33WHR.js";import{a as Ne,b as M,d as L,e as $,h as D,j as Pe,m as y,p as A,q as b,r as Ie,s as v}from"./chunk-LHSJLKCF.js";import{a as P,c as d}from"./chunk-WBNOGAKJ.js";import{a as h,g as k,l as Ee,o as de,p as Oe,r as fe,x as Ce}from"./chunk-PUSUA4U7.js";import{b as I}from"./chunk-L3T52MCL.js";import{pa as q}from"./chunk-3GK4TNUH.js";import{Ab as s,Bb as a,C as ae,Cb as l,D as f,Db as Y,Eb as U,Gb as x,H as le,M as pe,Mb as u,Mc as j,Nb as F,Ob as T,Pb as ue,Qa as S,Qb as Fe,R as _e,Sb as E,Tb as B,X as p,ca as C,da as R,db as N,fc as K,g as re,ib as w,ic as Se,qc as me,rb as m,sa as _,tb as ce,v as se,vc as ge,wb as G,xc as Te}from"./chunk-PTC4N7TU.js";var ke=new b,$e=()=>ke.group({passphrase:ke.control("")}),Z=class n{#t=p(I);#e=p(O);#o=p(d);#i=p(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=_(!1);next(){let o=this.#e.destinationTargetUrl();if(!o)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,t=[{Name:"--no-encryption",Value:"true"}];e&&(t=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:o,Settings:t}},temporary:!0}).pipe(f(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let r=i.ID;this.#e.getBackup(r),this.#o.navigate([`/restore-draft/${r}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let o;o=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let t;t=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,t,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",o,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){e&1&&(s(0,"form",3),E("submit",function(){return t.next()}),s(1,"spk-form-field")(2,"label",4),T(3,0),a(),l(4,"input",5),a(),s(5,"div",6)(6,"button",7),E("click",function(){return t.back()}),u(7,1),l(8,"spk-icon"),F(),a(),s(9,"button",8),u(10,2),l(11,"spk-icon"),F(),a()()()),e&2&&m("formGroup",t.encryptionForm)},dependencies:[v,D,M,L,$,y,A,Ee,h,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,o){n&1&&l(0,"spk-progress-bar",7)}function be(n,o){if(n&1&&(s(0,"div",13),K(1),ge(2,"date"),a()),n&2){let e=o.$implicit;S(),Se("",e.Version,": ",Te(2,2,e.Time,"medium"),"")}}function ve(n,o){n&1&&l(0,"spk-progress-bar",7)}function we(n,o){if(n&1&&(s(0,"app-file-tree",14)(1,"label",15),T(2,4),a(),l(3,"input",16),a()),n&2){let e=B(3);m("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,o){if(n&1&&w(0,we,4,4,"app-file-tree",14),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,o){if(n&1){let e=x();s(0,"spk-select",11),E("cleared",function(){C(e);let i=B();return R(i.abortLoading())}),l(1,"input",12),w(2,be,3,5,"ng-template"),a(),w(3,ve,1,0,"spk-progress-bar",7)(4,Ge,1,1)}if(n&2){let e=B();m("options",e.versionOptions())("isClearable",!0),S(3),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),S(),G(e.showFileTree()?4:-1)}}var Q=new b,De=()=>Q.group({filesToRestore:Q.control(""),selectedOption:Q.control(null),passphrase:Q.control(null)}),te=class n{#t=p(I);#e=p(O);#o=p(d);#i=p(P);#n=p(q);#r=p(Re);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=_(!1);backupSettings=_(null);rootPath=_(void 0);loadingRootPath=_(!1);isRepairing=_(!1);loadingEffect=j(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let t=e[0].Version;Number.isInteger(t)&&this.selectFilesForm.controls.selectedOption.setValue(t)}});backupSettingsEffect=j(()=>{let o=this.backupId(),e=this.isRepairing(),t=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof t!="number"||!o)return;let r=this.versionOptions()?.find(c=>c.Version===t)?.Time??null;!r||e||(this.showFileTree.set(!1),queueMicrotask(()=>{let c={id:o+"",time:r};this.backupSettings.set(c),this.getRootPath(c)}))});repairEffect=j(()=>{let o=this.#e.isDraft(),e=this.selectOptionSignal(),t=this.versionOptions();if(o&&e){let i=t.find(c=>c.Version===parseInt(e));if(i===void 0)return;let r=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:r,requestBody:{only_paths:!0,time:i.Time}}).subscribe(c=>{let W=c.ID;var X=window.setInterval(()=>{this.#t.getApiV1TaskByTaskid({taskid:W}).subscribe(z=>{z.Status==="Completed"&&(clearInterval(X),this.isRepairing.set(!1))})},1e3)})}});getRootPath(o){let e={id:o.id+"",time:o.time,prefixOnly:!0,folderContents:!1};this.isRepairing()||(this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(pe(this.abortLoading$),f(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:t=>{let i=t.Files[0].Path;this.rootPath.set(i)}}))}abortLoading$=new re;abortLoading(){this.showFileTree.set(!1),this.loadingRootPath.set(!1),this.abortLoading$.next(!0)}displayFn(){let o=this.versionOptions();return e=>{if(!e)return"";let t=o?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return t?`${t.Version}: ${this.#n.transform(t.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[me([q])],decls:13,vars:3,consts:()=>{let o;o=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let r;return r=$localize`Path`,[["formRef",""],o,e,t,r,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",i,"formControlName","selectedOption"],[1,"custom-option"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,t){if(e&1){let i=x();s(0,"form",5,0),E("submit",function(){return C(i),R(t.next())}),s(2,"h3",6),T(3,1),a(),w(4,Ae,1,0,"spk-progress-bar",7)(5,xe,5,4),s(6,"div",8)(7,"button",9),E("click",function(){return C(i),R(t.back())}),u(8,2),l(9,"spk-icon"),F(),a(),s(10,"button",10),u(11,3),l(12,"spk-icon"),F(),a()()()}e&2&&(m("formGroup",t.selectFilesForm),S(4),G(t.versionOptionsLoading()?4:5),S(5),ue(t.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[Ie,D,M,L,$,v,y,A,q,J,k,h,fe,de],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var O=class n{#t=p(d);#e=p(I);backupId=_(null);backup=_(null);destinationTargetUrl=_(null);selectFilesForm=De();optionsForm=ye();encryptionForm=$e();optionsFormSignal=H(this.optionsForm.valueChanges);selectFilesFormSignal=H(this.selectFilesForm.valueChanges);selectOptionSignal=H(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=_(!1);versionOptions=_([]);isSubmitting=_(!1);isDraft=_(!1);isFileRestore=_(!1);init(o,e=!1,t=!1){this.backupId.set(o),this.isFileRestore.set(e),this.isDraft.set(t),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(o,!0)}updateTargetUrl(o){this.destinationTargetUrl.set(o)}submit(){this.isSubmitting.set(!0);let o=this.backupId(),e=this.optionsForm.value,t=this.selectFilesForm.value,i=this.versionOptions()?.find(r=>r.Version===t.selectedOption);this.#e.postApiV1BackupByIdRestore({id:o??"",requestBody:{paths:t.filesToRestore?.split("\0").map(r=>`${r}*`)??[],passphrase:t.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(f(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:r=>{console.error("restore error",r)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(o,e=!1){this.versionOptionsLoading.set(!0),se([this.#e.getApiV1BackupById({id:o}),this.#e.getApiV1BackupByIdFilesets({id:o}).pipe(le(3))]).pipe(ae(1),f(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([t,i])=>{this.versionOptions.set(i),this.backup.set(t)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=_e({token:n,factory:n.\u0275fac,providedIn:"root"})};var V=new b,ye=()=>V.group({restoreFrom:V.control("orignal"),restoreFromPath:V.control(""),handleExisting:V.control("overwrite"),permissions:V.control(!1)}),oe=class n{#t=p(O);#e=p(d);#o=p(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let o;o=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let t;t=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let r;r=$localize`How do you want to handle existing files?`;let c;c=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let W;W=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let X;X=$localize`Permissions`;let z;z=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],o,e,t,i,r,c,W,X,z,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){if(e&1){let i=x();s(0,"form",12,0),E("submit",function(){return C(i),R(t.submit())}),s(2,"h3",13),T(3,1),a(),s(4,"app-toggle-card",14),Y(5,15),T(6,2),U(),s(7,"spk-radio",16),u(8,3),l(9,"input",17),F(),a(),s(10,"spk-radio",16),u(11,4),l(12,"input",18),F(),a(),s(13,"app-file-tree",19)(14,"label",20),K(15,"Path"),a(),l(16,"input",21),a()(),s(17,"app-toggle-card",14),Y(18,15),T(19,5),U(),s(20,"spk-radio",16),u(21,6),l(22,"input",22),F(),a(),s(23,"spk-radio",16),u(24,7),l(25,"input",23),F(),a()(),s(26,"app-toggle-card"),Y(27,15),T(28,8),U(),s(29,"spk-toggle",24),u(30,9),l(31,"input",25),F(),a()(),s(32,"div",26)(33,"button",27),E("click",function(){return C(i),R(t.goBack())}),u(34,10),l(35,"spk-icon"),F(),a(),s(36,"button",28),u(37,11),l(38,"spk-icon"),F(),a()()()}if(e&2){let i;m("formGroup",t.optionsForm),S(4),m("disallowToggle",!0),S(9),m("disabled",((i=t.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),m("disallowToggle",!0),S(19),ce("loader",t.isSubmitting())}},dependencies:[v,D,M,Ne,Pe,L,$,y,A,he,J,Ce,Oe,k,h],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,oe as b,$e as c,Z as d,De as e,te as f,O as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-IHYIT4I3.js";import"./chunk-CHZ7TMI7.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{a as DurationFormatPipe};
|
package/index.html
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
<style>:root{--font-size:16px;font-size:var(--font-size)}html body{--sparkle-light:initial;--sparkle-dark: ;color-scheme:light dark;--primary-50:#eff6ff;--primary-contrast-50:var(--dark-primary-text);--primary-100:#dbeafe;--primary-contrast-100:var(--dark-primary-text);--primary-200:#bfdbfe;--primary-contrast-200:var(--dark-primary-text);--primary-300:#93c5fd;--primary-contrast-300:var(--dark-primary-text);--primary-400:#60a5fa;--primary-contrast-400:var(--dark-primary-text);--primary-500:#3b82f6;--primary-contrast-500:var(--light-primary-text);--primary-600:#2563eb;--primary-contrast-600:var(--light-primary-text);--primary-700:#1d4ed8;--primary-contrast-700:var(--light-primary-text);--primary-800:#1e40af;--primary-contrast-800:var(--light-primary-text);--primary-900:#1e3a8a;--primary-contrast-900:var(--light-primary-text);--primary-950:#172554;--primary-contrast-950:var(--light-primary-text);--accent-50:#f5f3ff;--accent-contrast-50:var(--dark-primary-text);--accent-100:#ede9fe;--accent-contrast-100:var(--dark-primary-text);--accent-200:#ddd6fe;--accent-contrast-200:var(--dark-primary-text);--accent-300:#c4b5fd;--accent-contrast-300:var(--dark-primary-text);--accent-400:#a78bfa;--accent-contrast-400:var(--dark-primary-text);--accent-500:#8b5cf6;--accent-contrast-500:var(--light-primary-text);--accent-600:#7c3aed;--accent-contrast-600:var(--light-primary-text);--accent-700:#6d28d9;--accent-contrast-700:var(--light-primary-text);--accent-800:#5b21b6;--accent-contrast-800:var(--light-primary-text);--accent-900:#4c1d95;--accent-contrast-900:var(--light-primary-text);--accent-950:#2e1065;--accent-contrast-950:var(--light-primary-text);--warn-50:#fffbeb;--warn-contrast-50:var(--dark-primary-text);--warn-100:#fef3c7;--warn-contrast-100:var(--dark-primary-text);--warn-200:#fde68a;--warn-contrast-200:var(--dark-primary-text);--warn-300:#fcd34d;--warn-contrast-300:var(--dark-primary-text);--warn-400:#fbbf24;--warn-contrast-400:var(--light-primary-text);--warn-500:#f59e0b;--warn-contrast-500:var(--light-primary-text);--warn-600:#d97706;--warn-contrast-600:var(--light-primary-text);--warn-700:#b45309;--warn-contrast-700:var(--light-primary-text);--warn-800:#92400e;--warn-contrast-800:var(--light-primary-text);--warn-900:#78350f;--warn-contrast-900:var(--light-primary-text);--warn-950:#451a03;--warn-contrast-950:var(--light-primary-text);--error-50:#fef2f2;--error-contrast-50:var(--dark-primary-text);--error-100:#fee2e2;--error-contrast-100:var(--dark-primary-text);--error-200:#fecaca;--error-contrast-200:var(--dark-primary-text);--error-300:#fca5a5;--error-contrast-300:var(--dark-primary-text);--error-400:#f87171;--error-contrast-400:var(--light-primary-text);--error-500:#ef4444;--error-contrast-500:var(--light-primary-text);--error-600:#dc2626;--error-contrast-600:var(--light-primary-text);--error-700:#b91c1c;--error-contrast-700:var(--light-primary-text);--error-800:#991b1b;--error-contrast-800:var(--light-primary-text);--error-900:#7f1d1d;--error-contrast-900:var(--light-primary-text);--error-950:#450a0a;--error-contrast-950:var(--light-primary-text);--success-50:#ecfdf5;--success-contrast-50:var(--dark-primary-text);--success-100:#d1fae5;--success-contrast-100:var(--dark-primary-text);--success-200:#a7f3d0;--success-contrast-200:var(--dark-primary-text);--success-300:#6ee7b7;--success-contrast-300:var(--dark-primary-text);--success-400:#34d399;--success-contrast-400:var(--light-primary-text);--success-500:#10b981;--success-contrast-500:var(--light-primary-text);--success-600:#059669;--success-contrast-600:var(--light-primary-text);--success-700:#047857;--success-contrast-700:var(--light-primary-text);--success-800:#065f46;--success-contrast-800:var(--light-primary-text);--success-900:#064e3b;--success-contrast-900:var(--light-primary-text);--success-950:#022c22;--success-contrast-950:var(--light-primary-text);--grey-50:#fafafa;--grey-contrast-50:var(--dark-primary-text);--grey-100:#f4f4f5;--grey-contrast-100:var(--dark-primary-text);--grey-200:#e4e4e7;--grey-contrast-200:var(--dark-primary-text);--grey-300:#d4d4d8;--grey-contrast-300:var(--dark-primary-text);--grey-400:#a1a1aa;--grey-contrast-400:var(--dark-primary-text);--grey-500:#71717a;--grey-contrast-500:var(--light-primary-text);--grey-600:#52525b;--grey-contrast-600:var(--light-primary-text);--grey-700:#3f3f46;--grey-contrast-700:var(--light-primary-text);--grey-750:#2f2f31;--grey-contrast-750:var(--light-primary-text);--grey-800:#27272a;--grey-contrast-800:var(--light-primary-text);--grey-900:#18181b;--grey-contrast-900:var(--light-primary-text);--grey-950:#09090b;--grey-contrast-950:var(--light-primary-text);--display-10:600 5rem / normal Inter Tight, sans-serif;--display-20:600 4.5rem / normal Inter Tight, sans-serif;--display-30:600 4rem / normal Inter Tight, sans-serif;--display-40:600 3.5rem / normal Inter Tight, sans-serif;--display-50:600 3rem / normal Inter Tight, sans-serif;--title-10:500 2.5rem / normal Inter Tight, sans-serif;--title-20:500 2rem / normal Inter Tight, sans-serif;--title-30:500 1.5rem / normal Inter Tight, sans-serif;--title-10B:600 2.5rem / normal Inter Tight, sans-serif;--title-20B:600 2rem / normal Inter Tight, sans-serif;--title-30B:600 1.5rem / normal Inter Tight, sans-serif;--paragraph-10:500 1.125rem / normal Inter Tight, sans-serif;--paragraph-20:500 1rem / normal Inter Tight, sans-serif;--paragraph-30:500 .875rem / normal Inter Tight, sans-serif;--paragraph-40:500 .75rem / normal Inter Tight, sans-serif;--paragraph-10B:600 1.125rem / normal Inter Tight, sans-serif;--paragraph-20B:600 1rem / normal Inter Tight, sans-serif;--paragraph-30B:600 .875rem / normal Inter Tight, sans-serif;--paragraph-40B:600 .75rem / normal Inter Tight, sans-serif;--shape-1:.25rem;--shape-2:.5rem;--shape-3:.75rem;--shape-4:1rem;--shape-5:1.25rem;--box-shadow-10:0 1px 2px 0 rgba(18, 18, 23, .07);--box-shadow-20:0 1px 3px 0 rgba(18, 18, 23, .1);--box-shadow-30:0 1px 4px -1px rgba(18, 18, 23, .08);--box-shadow-35:0 4px 6px -1px rgba(18, 18, 23, .08);--box-shadow-40:0 10px 15px -3px rgba(18, 18, 23, .08);--box-shadow-50:0 20px 25px -5px rgba(18, 18, 23, .1);--box-shadow-60:0 25px 50px -12px rgba(18, 18, 23, .25);--base-level-10:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-950));--base-level-20:var(--sparkle-light, var(--grey-50)) var(--sparkle-dark, var(--grey-900));--base-level-30:var(--sparkle-light, var(--grey-100)) var(--sparkle-dark, var(--grey-900));--base-level-30R:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, var(--grey-100));--base-level-40:var(--sparkle-light, var(--grey-200)) var(--sparkle-dark, var(--grey-700));--base-level-50:var(--sparkle-light, var(--grey-300)) var(--sparkle-dark, var(--grey-800));--base-level-60:var(--sparkle-light, var(--grey-500)) var(--sparkle-dark, var(--grey-400));--base-level-60R:var(--sparkle-light, var(--grey-400)) var(--sparkle-dark, var(--grey-500));--base-level-70:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, #fff);--base-level-70R:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-900));--base-gradient-20:linear-gradient(180deg, var(--grey-400) 0%, var(--grey-500) 50%);--base-gradient-30:linear-gradient(180deg, var(--grey-300) 0%, var(--grey-500) 50%);--base-gradient-60:linear-gradient(180deg, var(--grey-700) 0%, var(--grey-900) 50%);--base-gradient-70:linear-gradient(180deg, var(--grey-600) 0%, var(--grey-900) 50%);--primary-level-20:var(--sparkle-light, var(--primary-50)) var(--sparkle-dark, var(--primary-950));--primary-level-30:var(--sparkle-light, var(--primary-100)) var(--sparkle-dark, var(--primary-900));--primary-level-40:var(--sparkle-light, var(--primary-200)) var(--sparkle-dark, var(--primary-800));--primary-level-50:var(--sparkle-light, var(--primary-300)) var(--sparkle-dark, var(--primary-800));--primary-level-50R:var(--sparkle-light, var(--primary-800)) var(--sparkle-dark, var(--primary-300));--primary-level-80:var(--sparkle-light, var(--primary-900)) var(--sparkle-dark, var(--primary-300));--primary-gradient-20:linear-gradient(180deg, var(--primary-400) 0%, var(--primary-500) 50%);--primary-gradient-30:linear-gradient(180deg, var(--primary-300) 0%, var(--primary-500) 50%);--accent-level-20:var(--sparkle-light, var(--accent-50)) var(--sparkle-dark, var(--accent-950));--accent-level-30:var(--sparkle-light, var(--accent-100)) var(--sparkle-dark, var(--accent-900));--accent-level-40:var(--sparkle-light, var(--accent-200)) var(--sparkle-dark, var(--accent-800));--accent-level-50:var(--sparkle-light, var(--accent-300)) var(--sparkle-dark, var(--accent-800));--accent-level-50R:var(--sparkle-light, var(--accent-800)) var(--sparkle-dark, var(--accent-300));--accent-level-80:var(--sparkle-light, var(--accent-900)) var(--sparkle-dark, var(--accent-300));--accent-gradient-20:linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 50%);--accent-gradient-30:linear-gradient(180deg, var(--accent-300) 0%, var(--accent-500) 50%);--warn-level-20:var(--sparkle-light, var(--warn-50)) var(--sparkle-dark, var(--warn-950));--warn-level-30:var(--sparkle-light, var(--warn-100)) var(--sparkle-dark, var(--warn-900));--warn-level-40:var(--sparkle-light, var(--warn-200)) var(--sparkle-dark, var(--warn-800));--warn-level-50:var(--sparkle-light, var(--warn-300)) var(--sparkle-dark, var(--warn-800));--warn-level-50R:var(--sparkle-light, var(--warn-800)) var(--sparkle-dark, var(--warn-300));--warn-level-80:var(--sparkle-light, var(--warn-900)) var(--sparkle-dark, var(--warn-300));--warn-gradient-20:linear-gradient(180deg, var(--warn-400) 0%, var(--warn-500) 50%);--warn-gradient-30:linear-gradient(180deg, var(--warn-300) 0%, var(--warn-500) 50%);--error-level-20:var(--sparkle-light, var(--error-50)) var(--sparkle-dark, var(--error-950));--error-level-30:var(--sparkle-light, var(--error-100)) var(--sparkle-dark, var(--error-900));--error-level-40:var(--sparkle-light, var(--error-200)) var(--sparkle-dark, var(--error-800));--error-level-50:var(--sparkle-light, var(--error-300)) var(--sparkle-dark, var(--error-800));--error-level-50R:var(--sparkle-light, var(--error-800)) var(--sparkle-dark, var(--error-300));--error-level-80:var(--sparkle-light, var(--error-900)) var(--sparkle-dark, var(--error-300));--error-gradient-20:linear-gradient(180deg, var(--error-400) 0%, var(--error-500) 50%);--error-gradient-30:linear-gradient(180deg, var(--error-300) 0%, var(--error-500) 50%);--success-level-20:var(--sparkle-light, var(--success-50)) var(--sparkle-dark, var(--success-950));--success-level-30:var(--sparkle-light, var(--success-100)) var(--sparkle-dark, var(--success-900));--success-level-40:var(--sparkle-light, var(--success-200)) var(--sparkle-dark, var(--success-800));--success-level-50:var(--sparkle-light, var(--success-300)) var(--sparkle-dark, var(--success-800));--success-level-50R:var(--sparkle-light, var(--success-800)) var(--sparkle-dark, var(--success-300));--success-level-80:var(--sparkle-light, var(--success-900)) var(--sparkle-dark, var(--success-300));--success-gradient-20:linear-gradient(180deg, var(--success-400) 0%, var(--success-500) 50%);--success-gradient-30:linear-gradient(180deg, var(--success-300) 0%, var(--success-500) 50%);--dark-primary-text:var(--grey-900);--light-primary-text:#fff}*{box-sizing:border-box}html,body,app-root{width:100vw;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--base-level-20)}body{margin:0;font:var(--paragraph-30);color:var(--base-level-70)}</style><link rel="stylesheet" href="styles-IOWRSZHV.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-IOWRSZHV.css"></noscript></head>
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<link rel="modulepreload" href="chunk-
|
|
23
|
+
<link rel="modulepreload" href="chunk-W5YK2JJZ.js"><link rel="modulepreload" href="chunk-CMXSHXAU.js"><link rel="modulepreload" href="chunk-A6XFGG4U.js"><link rel="modulepreload" href="chunk-3XY4ZNIY.js"><link rel="modulepreload" href="chunk-F5S33WHR.js"><link rel="modulepreload" href="chunk-HGERKLOF.js"><link rel="modulepreload" href="chunk-UT45C7WK.js"><link rel="modulepreload" href="chunk-QX5XWUM2.js"><link rel="modulepreload" href="chunk-FHW4WHNO.js"><link rel="modulepreload" href="chunk-WBNOGAKJ.js"><script src="polyfills-BZ5XXHZK.js" type="module"></script><script src="main-JSU2T7AW.js" type="module"></script></body>
|
|
24
24
|
</html>
|
package/locale/dayjs/da.js
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
// Danish [da]
|
|
2
|
+
import dayjs from '../index';
|
|
3
|
+
var locale = {
|
|
4
|
+
name: 'da',
|
|
5
|
+
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
6
|
+
weekdaysShort: 'søn._man._tirs._ons._tors._fre._lør.'.split('_'),
|
|
7
|
+
weekdaysMin: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
8
|
+
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
|
|
9
|
+
monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'),
|
|
10
|
+
weekStart: 1,
|
|
11
|
+
yearStart: 4,
|
|
12
|
+
ordinal: function ordinal(n) {
|
|
13
|
+
return n + ".";
|
|
14
|
+
},
|
|
15
|
+
formats: {
|
|
16
|
+
LT: 'HH:mm',
|
|
17
|
+
LTS: 'HH:mm:ss',
|
|
18
|
+
L: 'DD.MM.YYYY',
|
|
19
|
+
LL: 'D. MMMM YYYY',
|
|
20
|
+
LLL: 'D. MMMM YYYY HH:mm',
|
|
21
|
+
LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
|
|
22
|
+
},
|
|
23
|
+
relativeTime: {
|
|
24
|
+
future: 'om %s',
|
|
25
|
+
past: '%s siden',
|
|
26
|
+
s: 'få sekunder',
|
|
27
|
+
m: 'et minut',
|
|
28
|
+
mm: '%d minutter',
|
|
29
|
+
h: 'en time',
|
|
30
|
+
hh: '%d timer',
|
|
31
|
+
d: 'en dag',
|
|
32
|
+
dd: '%d dage',
|
|
33
|
+
M: 'en måned',
|
|
34
|
+
MM: '%d måneder',
|
|
35
|
+
y: 'et år',
|
|
36
|
+
yy: '%d år'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
dayjs.locale(locale, null, true);
|
|
40
|
+
export default locale;
|
package/locale/dayjs/de.js
CHANGED
|
@@ -1 +1,64 @@
|
|
|
1
|
-
|
|
1
|
+
// German [de]
|
|
2
|
+
import dayjs from '../index';
|
|
3
|
+
var texts = {
|
|
4
|
+
s: 'ein paar Sekunden',
|
|
5
|
+
m: ['eine Minute', 'einer Minute'],
|
|
6
|
+
mm: '%d Minuten',
|
|
7
|
+
h: ['eine Stunde', 'einer Stunde'],
|
|
8
|
+
hh: '%d Stunden',
|
|
9
|
+
d: ['ein Tag', 'einem Tag'],
|
|
10
|
+
dd: ['%d Tage', '%d Tagen'],
|
|
11
|
+
M: ['ein Monat', 'einem Monat'],
|
|
12
|
+
MM: ['%d Monate', '%d Monaten'],
|
|
13
|
+
y: ['ein Jahr', 'einem Jahr'],
|
|
14
|
+
yy: ['%d Jahre', '%d Jahren']
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
function relativeTimeFormatter(number, withoutSuffix, key) {
|
|
18
|
+
var l = texts[key];
|
|
19
|
+
|
|
20
|
+
if (Array.isArray(l)) {
|
|
21
|
+
l = l[withoutSuffix ? 0 : 1];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return l.replace('%d', number);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var locale = {
|
|
28
|
+
name: 'de',
|
|
29
|
+
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
|
30
|
+
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
|
31
|
+
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
|
32
|
+
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
|
33
|
+
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
|
34
|
+
ordinal: function ordinal(n) {
|
|
35
|
+
return n + ".";
|
|
36
|
+
},
|
|
37
|
+
weekStart: 1,
|
|
38
|
+
yearStart: 4,
|
|
39
|
+
formats: {
|
|
40
|
+
LTS: 'HH:mm:ss',
|
|
41
|
+
LT: 'HH:mm',
|
|
42
|
+
L: 'DD.MM.YYYY',
|
|
43
|
+
LL: 'D. MMMM YYYY',
|
|
44
|
+
LLL: 'D. MMMM YYYY HH:mm',
|
|
45
|
+
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
|
46
|
+
},
|
|
47
|
+
relativeTime: {
|
|
48
|
+
future: 'in %s',
|
|
49
|
+
past: 'vor %s',
|
|
50
|
+
s: relativeTimeFormatter,
|
|
51
|
+
m: relativeTimeFormatter,
|
|
52
|
+
mm: relativeTimeFormatter,
|
|
53
|
+
h: relativeTimeFormatter,
|
|
54
|
+
hh: relativeTimeFormatter,
|
|
55
|
+
d: relativeTimeFormatter,
|
|
56
|
+
dd: relativeTimeFormatter,
|
|
57
|
+
M: relativeTimeFormatter,
|
|
58
|
+
MM: relativeTimeFormatter,
|
|
59
|
+
y: relativeTimeFormatter,
|
|
60
|
+
yy: relativeTimeFormatter
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
dayjs.locale(locale, null, true);
|
|
64
|
+
export default locale;
|
package/locale/dayjs/en-gb.js
CHANGED
|
@@ -1 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
// English (United Kingdom) [en-gb]
|
|
2
|
+
import dayjs from '../index';
|
|
3
|
+
var locale = {
|
|
4
|
+
name: 'en-gb',
|
|
5
|
+
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
6
|
+
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
|
7
|
+
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
|
8
|
+
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
|
9
|
+
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
|
10
|
+
weekStart: 1,
|
|
11
|
+
yearStart: 4,
|
|
12
|
+
relativeTime: {
|
|
13
|
+
future: 'in %s',
|
|
14
|
+
past: '%s ago',
|
|
15
|
+
s: 'a few seconds',
|
|
16
|
+
m: 'a minute',
|
|
17
|
+
mm: '%d minutes',
|
|
18
|
+
h: 'an hour',
|
|
19
|
+
hh: '%d hours',
|
|
20
|
+
d: 'a day',
|
|
21
|
+
dd: '%d days',
|
|
22
|
+
M: 'a month',
|
|
23
|
+
MM: '%d months',
|
|
24
|
+
y: 'a year',
|
|
25
|
+
yy: '%d years'
|
|
26
|
+
},
|
|
27
|
+
formats: {
|
|
28
|
+
LT: 'HH:mm',
|
|
29
|
+
LTS: 'HH:mm:ss',
|
|
30
|
+
L: 'DD/MM/YYYY',
|
|
31
|
+
LL: 'D MMMM YYYY',
|
|
32
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
33
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
|
34
|
+
},
|
|
35
|
+
ordinal: function ordinal(n) {
|
|
36
|
+
var s = ['th', 'st', 'nd', 'rd'];
|
|
37
|
+
var v = n % 100;
|
|
38
|
+
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
dayjs.locale(locale, null, true);
|
|
42
|
+
export default locale;
|
package/locale/dayjs/en.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
// English [en]
|
|
2
|
+
// We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
|
|
3
|
+
export default {
|
|
4
|
+
name: 'en',
|
|
5
|
+
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
6
|
+
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
|
7
|
+
ordinal: function ordinal(n) {
|
|
8
|
+
var s = ['th', 'st', 'nd', 'rd'];
|
|
9
|
+
var v = n % 100;
|
|
10
|
+
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
|
11
|
+
}
|
|
12
|
+
};
|
package/locale/dayjs/fr.js
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
// French [fr]
|
|
2
|
+
import dayjs from '../index';
|
|
3
|
+
var locale = {
|
|
4
|
+
name: 'fr',
|
|
5
|
+
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
|
6
|
+
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
|
7
|
+
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
|
8
|
+
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
|
9
|
+
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
|
10
|
+
weekStart: 1,
|
|
11
|
+
yearStart: 4,
|
|
12
|
+
formats: {
|
|
13
|
+
LT: 'HH:mm',
|
|
14
|
+
LTS: 'HH:mm:ss',
|
|
15
|
+
L: 'DD/MM/YYYY',
|
|
16
|
+
LL: 'D MMMM YYYY',
|
|
17
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
18
|
+
LLLL: 'dddd D MMMM YYYY HH:mm'
|
|
19
|
+
},
|
|
20
|
+
relativeTime: {
|
|
21
|
+
future: 'dans %s',
|
|
22
|
+
past: 'il y a %s',
|
|
23
|
+
s: 'quelques secondes',
|
|
24
|
+
m: 'une minute',
|
|
25
|
+
mm: '%d minutes',
|
|
26
|
+
h: 'une heure',
|
|
27
|
+
hh: '%d heures',
|
|
28
|
+
d: 'un jour',
|
|
29
|
+
dd: '%d jours',
|
|
30
|
+
M: 'un mois',
|
|
31
|
+
MM: '%d mois',
|
|
32
|
+
y: 'un an',
|
|
33
|
+
yy: '%d ans'
|
|
34
|
+
},
|
|
35
|
+
ordinal: function ordinal(n) {
|
|
36
|
+
var o = n === 1 ? 'er' : '';
|
|
37
|
+
return "" + n + o;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
dayjs.locale(locale, null, true);
|
|
41
|
+
export default locale;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as me,c as de}from"./chunk-
|
|
1
|
+
import{b as me,c as de}from"./chunk-W5YK2JJZ.js";import{a as N}from"./chunk-CMXSHXAU.js";import{a as ce}from"./chunk-A6XFGG4U.js";import{a as y}from"./chunk-3XY4ZNIY.js";import{a as w}from"./chunk-F5S33WHR.js";import{a as ie}from"./chunk-HGERKLOF.js";import"./chunk-UT45C7WK.js";import"./chunk-QX5XWUM2.js";import{a as b,b as pe,c as T}from"./chunk-FHW4WHNO.js";import{b as te,c as oe,f as ne,g as re}from"./chunk-WBNOGAKJ.js";import{a as ee}from"./chunk-G3YJXHRY.js";import{c as ae}from"./chunk-PUSUA4U7.js";import{d as se}from"./chunk-L3T52MCL.js";import{a as q,b as X,d as Q,e as Y,f as Z}from"./chunk-4XPN5ZGE.js";import{ua as z}from"./chunk-3GK4TNUH.js";import{b as le}from"./chunk-CHZ7TMI7.js";import{Bc as $,Cb as B,Cc as K,D as S,J as U,L as C,Mc as _,N as F,R,U as D,X as s,d as H,db as J,g as P,ha as G,l as V,m as j,p as A,sa as d,x as O,y as W}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var I=class o{#o=s(y);#s=s(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=J({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&B(0,"router-outlet")},dependencies:[te],encapsulation:2})};var he={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new D("ENVIRONMENT");var k=class o{#o=s(se);isLoaded=d(!1);webmodules=d(null);preload(e=!1){let t=this.#o.getApiV1Webmodules().pipe(F(n=>this.webmodules.set(n)),S(()=>this.isLoaded.set(!0)));if(e)return t;t.subscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};var Re=()=>{let o=s(T);return o.token()?!0:o.checkProxyAuthed().pipe(C(e=>e?V(!0):o.refreshToken().pipe(A(()=>!0))))},Te=()=>{let o=s(b),e=s(w),t=s(G),n=o.relayIsEnabled()?"longpoll":"websocket",i=[t.get(N).preload(!0),t.get(N).preloadFilterGroups(!0),t.get(k).preload(!0)];return o.configLoaded===null?O(i).pipe(A(()=>n)):o.configLoaded?.pipe(C(()=>O(i)))},fe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-WGIELPP6.js")},{path:"logout",loadComponent:()=>import("./chunk-MURCWMUG.js")},{path:"",canActivate:[Re],children:[{path:"",canActivate:[Te],loadComponent:()=>import("./chunk-57MYGQMW.js"),children:[{path:"",loadComponent:()=>import("./chunk-27RULQ7Y.js")},{path:"add-backup",loadComponent:()=>import("./chunk-6EQS5NZL.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-GI6WORKU.js")},{path:"backup/import",loadComponent:()=>import("./chunk-V6OHLKTK.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-YPQUTPBQ.js"),loadChildren:()=>import("./chunk-7EPQLKGD.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-YPQUTPBQ.js"),loadChildren:()=>import("./chunk-7EPQLKGD.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-VFJL5JPI.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-WVKWOGDQ.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-CNWIFYHZ.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-NB32XJ7B.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-IZOZII2D.js")},{path:"from-config",loadComponent:()=>import("./chunk-MJUYFS7O.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-UBZDIRFY.js"),loadChildren:()=>import("./chunk-LXEGFP53.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-UBZDIRFY.js"),loadChildren:()=>import("./chunk-LXEGFP53.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-UBZDIRFY.js"),loadChildren:()=>import("./chunk-LXEGFP53.js")},{path:"settings",loadComponent:()=>import("./chunk-FJKXCOAH.js")},{path:"about",loadComponent:()=>import("./chunk-WNWGY2FM.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-6LVGSIUU.js")},{path:"changelog",loadComponent:()=>import("./chunk-LO4MUZS2.js")},{path:"libraries",loadComponent:()=>import("./chunk-QPO2N2OR.js")},{path:"system-info",loadComponent:()=>import("./chunk-IAVOZTCR.js")},{path:"logs",loadComponent:()=>import("./chunk-5UL3RRQI.js")}]}]}]}]}];var x=null,ge=(o,e)=>{let t=s(T),n=s(oe),i=s(y),c=s(f),r=i.getItem("locale"),u=s(ae),a=me(r),p=o.url==="/api/v1/auth/login",m=o.url==="/api/v1/auth/refresh",v=o.url==="/api/v1/progressstate",h=t.token(),g=o,L=o.headers.has("custom-proxy-check")||h===pe;if(h&&o.url.startsWith(c.baseUrl)&&!L){let l=o.headers.set("Authorization",`Bearer ${h}`);r&&r!=="en-US"&&(l=l.set("X-Ui-Language",a)),g=o.clone({headers:l})}return e(g).pipe(W(l=>{if(!L&&(v&&l.status===404||u.error(l.message),m&&l.status===401&&(t.logout(),n.navigate(["/logout"])),!p&&!m&&l.status===401))return x??=t.refreshToken().pipe(U()),x.pipe(C(()=>e(o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)}))),S(()=>x=null));let Se=`Error Code: ${l.status}, Message: ${l.message}`;return j(()=>({error:l,message:Se}))}))};var we="1.0.0",ye=`portal-proxy-client-${crypto.randomUUID()}`,Ie=1,M=class o{#o=1e3;#s=s(f);#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=_(()=>{let e=this.#i(),t=this.#l(),n=this.#a();if(!n||!e||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(e){let t=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(e,t){let n=t?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),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(e),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let r=JSON.parse(c.data);if(this.wsState()==="connect"){if(r.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${r.type}'`);return}let a={token:e,publicKey:"",clientVersion:we,protocolVersion:Ie},p=this.createResponse(r,"authportal",a);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(r.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${r.type}'`);return}var u=JSON.parse(r.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let a=this.#p.pop();a&&this.#r[a.messageId]&&this.activateCommand(a)}}else if(this.wsState()==="authenticated"){if(r.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${r.type}'`);return}let a=this.#r[r.messageId];if(a){if(r.errorMessage){a.reject(r.errorMessage);return}else{let p=JSON.parse(r.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),a.resolve(p)}delete this.#r[r.messageId],window.clearTimeout(a.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(e,t,n){let i={from:ye,to:e.from,type:t,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,t,n,i,c,r,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,p)=>{let m=crypto.randomUUID(),h={from:ye,to:t,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:c,headers:r})},g={resolve:a,reject:p,timer:window.setTimeout(()=>{let E=this.#r[m];E&&(delete this.#r[m],E.reject("Timeout"))},u)};this.#r[m]=g,this.#n()?this.activateCommand(h):this.#p.push(h)})}activateCommand(e){this.#e?.send(JSON.stringify(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};function ke(o){if(typeof o!="string")return null;let t=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...t))}function be(o,e,t){let n=o.relayconfigState.config();if(n===null)return t(e);let i=ke(e.body),c={};e.headers.keys().forEach(p=>{c[p]=e.headers.get(p)??""});let r=e.headers.get("timeout"),u=r!==null?parseInt(r):o.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(u=1e3*99);let a=o.relayWebsocket.sendCommand(n.accessToken,n.clientId,e.method,e.url,i,c,u);return new H(p=>{a.then(m=>{let v=new q;c!=null&&Object.keys(c).forEach(g=>{v.set(g,c[g])});let h=new X({body:m.body,status:m.code,statusText:"OK",headers:v});p.next(h),p.complete()})})}var ve=(o,e)=>{let t={relayconfigState:s(b),defaultTimeout:s(f).defaultTimeout,relayWebsocket:s(M)},n=t.relayconfigState.config();if(t.relayconfigState.configLoaded!==null&&n===null){let i=new P;return t.relayconfigState.configLoaded.subscribe(c=>{c&&be(t,o,e).subscribe(i)}),i}return be(t,o,e)};var Ce={providers:[$(),ne(fe,re()),Q(Z(),Y([ve,ge])),y,{provide:f,useValue:he},{provide:K,useValue:de()},ce,w,le,z,ie]};ee(I,Ce);
|
package/package.json
CHANGED
package/chunk-3TZIEZUP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-L4B5RE7R.js";import"./chunk-Q67EYU7V.js";import"./chunk-N5K6ODRA.js";import"./chunk-3HJFVNAL.js";import"./chunk-LFPZBC5Y.js";import"./chunk-RDRLCN5M.js";import"./chunk-GEEPH37P.js";import"./chunk-XL5J65PI.js";import"./chunk-WZG34QS3.js";import"./chunk-4IJQ7AAQ.js";import"./chunk-TYO44G6M.js";import"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import"./chunk-ECH6I3YN.js";import"./chunk-KLIPTMVG.js";import"./chunk-V5GVLIPJ.js";import"./chunk-2HS3CYRN.js";import"./chunk-DTPZU6NP.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-APEDZMBI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-NU46HB6T.js")},{path:"destination",loadComponent:()=>import("./chunk-LVHYWUFN.js")},{path:"source-data",loadComponent:()=>import("./chunk-TX5R4CFB.js")},{path:"schedule",loadComponent:()=>import("./chunk-HWVDZXYD.js")},{path:"options",loadComponent:()=>import("./chunk-P5GYPUJD.js")}];export{o as default};
|