@duplicati/ngclient 0.0.134 → 0.0.136

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.
Files changed (133) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/{chunk-FC45TEB6.js → chunk-2BX65XJQ.js} +1 -1
  3. package/{chunk-5MMV45NA.js → chunk-2G6TVFPZ.js} +1 -1
  4. package/chunk-2W6BEUGU.js +1 -0
  5. package/{chunk-U44OBOIE.js → chunk-32366MQR.js} +1 -1
  6. package/chunk-3B3CD5KI.js +1 -0
  7. package/{chunk-D3OE4S5N.js → chunk-42LUYQ5S.js} +1 -1
  8. package/{chunk-EQS67O4J.js → chunk-43A44MVC.js} +1 -1
  9. package/chunk-4NAIBN6Y.js +1 -0
  10. package/chunk-4WF2SEOM.js +1 -0
  11. package/chunk-6ABAW3RM.js +1 -0
  12. package/chunk-6JDDO2JR.js +1 -0
  13. package/chunk-6JQM2X3B.js +1 -0
  14. package/chunk-6NTCVCCY.js +1 -0
  15. package/{chunk-Y7OD7PZG.js → chunk-7HKUM56D.js} +1 -1
  16. package/{chunk-HMK6M2N7.js → chunk-7MV7VPDB.js} +1 -1
  17. package/chunk-7N3LIJV6.js +1 -0
  18. package/{chunk-EW3XN62R.js → chunk-AFLQOHXV.js} +1 -1
  19. package/{chunk-5RPDEEQ3.js → chunk-B26UYXA3.js} +1 -1
  20. package/{chunk-ZUXVEXBA.js → chunk-B5ABLFSQ.js} +1 -1
  21. package/{chunk-ZIJ7ZEHR.js → chunk-BCHZRC5K.js} +1 -1
  22. package/chunk-BTMXQPBB.js +7 -0
  23. package/chunk-CWLTHXVS.js +1 -0
  24. package/chunk-D7KAEUGB.js +1 -0
  25. package/{chunk-O4HSW7GI.js → chunk-DBD6FOQL.js} +1 -1
  26. package/{chunk-XD6MBGQY.js → chunk-DNJOKPEL.js} +1 -1
  27. package/{chunk-5CUMYXCI.js → chunk-EKP3ML6M.js} +1 -1
  28. package/{chunk-IVP5ZHDB.js → chunk-ELFZD53L.js} +1 -1
  29. package/chunk-FCCV5HAI.js +6 -0
  30. package/chunk-FHZLYBIT.js +1 -0
  31. package/chunk-FUEIZLWH.js +1 -0
  32. package/{chunk-B6DE3TTE.js → chunk-FUZLIOUQ.js} +1 -1
  33. package/{chunk-OQHMS5HM.js → chunk-FZG6OXT3.js} +1 -1
  34. package/{chunk-PSPK4OPB.js → chunk-HDV3QKLN.js} +1 -1
  35. package/chunk-HLYFP2CB.js +1 -0
  36. package/chunk-HU5PJ35D.js +1 -0
  37. package/chunk-IQHBPLHL.js +1 -0
  38. package/{chunk-VVJBMGZR.js → chunk-J6SAG7QN.js} +1 -1
  39. package/chunk-JFOXV66M.js +1 -0
  40. package/chunk-JM7VAPIC.js +1 -0
  41. package/{chunk-BKHSNMGE.js → chunk-JOUBVX7V.js} +1 -1
  42. package/chunk-K6ISVHYD.js +1 -0
  43. package/{chunk-PL2MNRTA.js → chunk-L5Y36SCW.js} +1 -1
  44. package/chunk-LDIHJZUP.js +1 -0
  45. package/chunk-LDIZ5E5Z.js +1 -0
  46. package/chunk-LFMC622O.js +1 -0
  47. package/{chunk-JDCGGJ7O.js → chunk-LKJ2SBQA.js} +1 -1
  48. package/chunk-M3URTEVE.js +2 -0
  49. package/chunk-MQTQESMQ.js +1 -0
  50. package/chunk-MVUGI7Y7.js +1 -0
  51. package/chunk-NSIELNIY.js +1 -0
  52. package/chunk-OHMTS3T7.js +1 -0
  53. package/chunk-P3AZ3DXZ.js +1 -0
  54. package/chunk-P4KFR7NY.js +1 -0
  55. package/chunk-P4KOC4NP.js +1 -0
  56. package/{chunk-TTFJPAWM.js → chunk-POGTGPHE.js} +1 -1
  57. package/chunk-PVLT4ZGI.js +1 -0
  58. package/{chunk-MDO4PWV6.js → chunk-QBJGIKPM.js} +1 -1
  59. package/chunk-QECYPB3W.js +1 -0
  60. package/{chunk-CRALFIWB.js → chunk-QVEGV6V6.js} +1 -1
  61. package/{chunk-NZD6UMYZ.js → chunk-ROOTIQEO.js} +1 -1
  62. package/{chunk-WBYTRHI7.js → chunk-SLJD5T2G.js} +1 -1
  63. package/chunk-SMQWGV7N.js +1 -0
  64. package/chunk-T5KDR4TA.js +1 -0
  65. package/{chunk-4VPA3END.js → chunk-UFP4XKZF.js} +1 -1
  66. package/{chunk-XZWXLEK2.js → chunk-UFQWL2QF.js} +1 -1
  67. package/{chunk-PEPDXQBY.js → chunk-VPTK3JCV.js} +1 -1
  68. package/{chunk-UZTRBMWL.js → chunk-VRE6C66C.js} +1 -1
  69. package/{chunk-QNWYJ7OR.js → chunk-WF6EAWTW.js} +1 -1
  70. package/{chunk-J64ETWKB.js → chunk-WRWIBPXL.js} +1 -1
  71. package/{chunk-3Q5JEF3K.js → chunk-WXARH2SG.js} +1 -1
  72. package/chunk-WXAZWUCA.js +1 -0
  73. package/chunk-X3RII7G2.js +1 -0
  74. package/{chunk-L6BZ6TEU.js → chunk-X7SFNRJF.js} +1 -1
  75. package/{chunk-TIPHYMRQ.js → chunk-XBJRRUMO.js} +1 -1
  76. package/chunk-XIIFTZ5G.js +1 -0
  77. package/{chunk-CFESUDFC.js → chunk-XLKQSWFD.js} +1 -1
  78. package/chunk-Y5IRBMLB.js +1 -0
  79. package/chunk-Y5UKX3VC.js +1 -0
  80. package/chunk-YZYJP5XH.js +1 -0
  81. package/{chunk-VG6LA5R3.js → chunk-ZFCSCXTC.js} +1 -1
  82. package/chunk-ZFONU33Q.js +1 -0
  83. package/index.html +2 -2
  84. package/locale/messages.de.json +1 -1
  85. package/locale/messages.it.json +2 -2
  86. package/locale/messages.nl_NL.json +2 -2
  87. package/{main-RQTAFLAT.js → main-HYB6MFRZ.js} +1 -1
  88. package/package.json +1 -1
  89. package/styles-IH5IS4WG.css +1 -0
  90. package/chunk-3UUTPGTW.js +0 -1
  91. package/chunk-4WUC2NLU.js +0 -1
  92. package/chunk-5XSYLFRW.js +0 -1
  93. package/chunk-62DY5NTG.js +0 -1
  94. package/chunk-67XQIEG5.js +0 -1
  95. package/chunk-67YRCRMI.js +0 -7
  96. package/chunk-6HFJTYBK.js +0 -1
  97. package/chunk-7J7GUBLS.js +0 -1
  98. package/chunk-BC3MLJH3.js +0 -1
  99. package/chunk-BHSG643V.js +0 -1
  100. package/chunk-BSRYIN2F.js +0 -1
  101. package/chunk-DE64A2ZS.js +0 -1
  102. package/chunk-DNBOZ26J.js +0 -1
  103. package/chunk-DQM3ATT4.js +0 -1
  104. package/chunk-EVINCUTE.js +0 -1
  105. package/chunk-EWZGGCZ7.js +0 -1
  106. package/chunk-FATQ7BT6.js +0 -1
  107. package/chunk-FZTQVXG4.js +0 -1
  108. package/chunk-G6LCHQJE.js +0 -1
  109. package/chunk-GORQL5YP.js +0 -1
  110. package/chunk-GP2W7XZF.js +0 -1
  111. package/chunk-HD37ILAE.js +0 -6
  112. package/chunk-HE5L47WR.js +0 -1
  113. package/chunk-HJQBTK5I.js +0 -1
  114. package/chunk-HLBBIEIQ.js +0 -1
  115. package/chunk-HWUEL5ZO.js +0 -1
  116. package/chunk-IDAED3OA.js +0 -1
  117. package/chunk-IPC6G72N.js +0 -1
  118. package/chunk-JHVU3HSL.js +0 -1
  119. package/chunk-O3JEFNCL.js +0 -1
  120. package/chunk-OHEFY2D6.js +0 -1
  121. package/chunk-OTM4ZTG4.js +0 -1
  122. package/chunk-SAISKISU.js +0 -1
  123. package/chunk-SMNWIGMY.js +0 -1
  124. package/chunk-SSMDFXE3.js +0 -1
  125. package/chunk-UWF5JLY2.js +0 -1
  126. package/chunk-V6WRFB7W.js +0 -1
  127. package/chunk-VFVXE2DC.js +0 -1
  128. package/chunk-WESN3ZUC.js +0 -1
  129. package/chunk-Y4IRFRVB.js +0 -1
  130. package/chunk-YW7YXFSC.js +0 -1
  131. package/chunk-ZCT7SRIM.js +0 -1
  132. package/chunk-ZQYPQTU3.js +0 -2
  133. package/styles-4QA7NM7N.css +0 -1
package/chunk-GORQL5YP.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-PEPDXQBY.js";import"./chunk-U44OBOIE.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as default};
package/chunk-GP2W7XZF.js DELETED
@@ -1 +0,0 @@
1
- import{$a as rt,Aa as Qe,Bc as x,Cb as at,Cc as lt,Db as F,Eb as ut,Ec as _e,Fb as ct,Gb as l,Pa as et,Pc as ft,Q as y,Qa as V,Qc as oe,Rc as ht,S,Sa as Y,Sc as be,T as Ye,Ta as u,Ua as k,Uc as K,V as P,Va as tt,Vc as ve,W as T,Wa as nt,X as _,Ya as it,Zb as dt,ab as b,bb as v,fa as Ke,ga as j,i as We,ib as st,ja as Xe,jb as ot,oa as Z,qa as qe,ra as W,xa as Je,ya as Se}from"./chunk-67YRCRMI.js";import{a as re,b as se}from"./chunk-EUDKD2JW.js";var pt=null;function ae(){return pt}function on(e){pt??=e}var Ie=class{},X=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:()=>_(mt),providedIn:"platform"})}return e})(),an=new P(""),mt=(()=>{class e extends X{_location;_history;_doc=_(j);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ae().getBaseHref(this._doc)}onPopState(t){let n=ae().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=ae().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ue(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function gt(e){let i=e.search(/#|\?|$/);return e[i-1]==="/"?e.slice(0,i-1)+e.slice(i):e}function R(e){return e&&e[0]!=="?"?`?${e}`:e}var G=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:()=>_(Ct),providedIn:"root"})}return e})(),ce=new P(""),Ct=(()=>{class e extends G{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??_(j).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ue(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+R(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+R(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+R(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(X),T(ce,8))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ft=(()=>{class e{_subject=new We;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=dn(gt(Dt(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+R(n))}normalize(t){return e.stripTrailingSlash(cn(this._basePath,Dt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+R(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+R(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=R;static joinWithSlash=ue;static stripTrailingSlash=gt;static \u0275fac=function(n){return new(n||e)(T(G))};static \u0275prov=S({token:e,factory:()=>un(),providedIn:"root"})}return e})();function un(){return new Ft(T(G))}function cn(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function Dt(e){return e.replace(/\/index.html$/,"")}function dn(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var fn=(()=>{class e extends G{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ue(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+R(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+R(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(X),T(ce,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),It={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ne=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(ne||{}),U=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}(U||{}),w=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(w||{}),d=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(d||{}),I=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(I||{}),m={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13},Lt=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(Lt||{});function Mt(e){return F(e)[l.LocaleId]}function Tt(e,i,t){let n=F(e),r=[n[l.DayPeriodsFormat],n[l.DayPeriodsStandalone]],s=M(r,i);return M(s,t)}function Rt(e,i,t){let n=F(e),r=[n[l.DaysFormat],n[l.DaysStandalone]],s=M(r,i);return M(s,t)}function Ot(e,i,t){let n=F(e),r=[n[l.MonthsFormat],n[l.MonthsStandalone]],s=M(r,i);return M(s,t)}function Bt(e,i){let n=F(e)[l.Eras];return M(n,i)}function hn(e){return F(e)[l.FirstDayOfWeek]}function gn(e){return F(e)[l.WeekendRange]}function q(e,i){let t=F(e);return M(t[l.DateFormat],i)}function J(e,i){let t=F(e);return M(t[l.TimeFormat],i)}function Q(e,i){let n=F(e)[l.DateTimeFormat];return M(n,i)}function L(e,i){let t=F(e),n=t[l.NumberSymbols][i];if(typeof n>"u"){if(i===m.CurrencyDecimal)return t[l.NumberSymbols][m.Decimal];if(i===m.CurrencyGroup)return t[l.NumberSymbols][m.Group]}return n}function Fe(e,i){return F(e)[l.NumberFormats][i]}function Dn(e){return F(e)[l.CurrencySymbol]||null}function pn(e){return F(e)[l.CurrencyName]||null}function mn(e){return ut(e)}function Cn(e){return F(e)[l.Currencies]}var Pt=ct;function Nt(e){if(!e[l.ExtraData])throw new y(2303,!1)}function kt(e){let i=F(e);return Nt(i),(i[l.ExtraData][2]||[]).map(n=>typeof n=="string"?Me(n):[Me(n[0]),Me(n[1])])}function $t(e,i,t){let n=F(e);Nt(n);let r=[n[l.ExtraData][0],n[l.ExtraData][1]],s=M(r,i)||[];return M(s,t)||[]}function Fn(e){return F(e)[l.Directionality]}function M(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new y(2304,!1)}function Me(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}function xt(e,i,t="en"){let n=Cn(t)[e]||It[e]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||e}var yn=2;function Ut(e){let i,t=It[e];return t&&(i=t[2]),typeof i=="number"?i:yn}var En=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,de={},wn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function zt(e,i,t,n){let r=Tn(e);i=N(t,i)||i;let o=[],a;for(;i;)if(a=wn.exec(i),a){o=o.concat(a.slice(1));let g=o.pop();if(!g)break;i=g}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=Vt(n,D),r=Mn(r,n));let h="";return o.forEach(g=>{let c=In(g);h+=c?c(r,t,D):g==="''"?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function De(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function N(e,i){let t=Mt(e);if(de[t]??={},de[t][i])return de[t][i];let n="";switch(i){case"shortDate":n=q(e,I.Short);break;case"mediumDate":n=q(e,I.Medium);break;case"longDate":n=q(e,I.Long);break;case"fullDate":n=q(e,I.Full);break;case"shortTime":n=J(e,I.Short);break;case"mediumTime":n=J(e,I.Medium);break;case"longTime":n=J(e,I.Long);break;case"fullTime":n=J(e,I.Full);break;case"short":let r=N(e,"shortTime"),s=N(e,"shortDate");n=le(Q(e,I.Short),[r,s]);break;case"medium":let o=N(e,"mediumTime"),a=N(e,"mediumDate");n=le(Q(e,I.Medium),[o,a]);break;case"long":let D=N(e,"longTime"),h=N(e,"longDate");n=le(Q(e,I.Long),[D,h]);break;case"full":let g=N(e,"fullTime"),c=N(e,"fullDate");n=le(Q(e,I.Full),[g,c]);break}return n&&(de[t][i]=n),n}function le(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function O(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function An(e,i){return O(e,3).substring(0,i)}function C(e,i,t=0,n=!1,r=!1){return function(s,o){let a=Sn(e,s);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return An(a,i);let D=L(o,m.MinusSign);return O(a,i,D,n,r)}}function Sn(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new y(2301,!1)}}function f(e,i,t=w.Format,n=!1){return function(r,s){return _n(r,s,e,i,t,n)}}function _n(e,i,t,n,r,s){switch(t){case 2:return Ot(i,r,n)[e.getMonth()];case 1:return Rt(i,r,n)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let h=kt(i),g=$t(i,r,n),c=h.findIndex(E=>{if(Array.isArray(E)){let[p,A]=E,H=o>=p.hours&&a>=p.minutes,$=o<A.hours||o===A.hours&&a<A.minutes;if(p.hours<A.hours){if(H&&$)return!0}else if(H||$)return!0}else if(E.hours===o&&E.minutes===a)return!0;return!1});if(c!==-1)return g[c]}return Tt(i,r,n)[o<12?0:1];case 3:return Bt(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new y(2302,!1)}}function fe(e){return function(i,t,n){let r=-1*n,s=L(t,m.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+O(o,2,s)+O(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+O(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+O(o,2,s)+":"+O(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+O(o,2,s)+":"+O(Math.abs(r%60),2,s);default:throw new y(2302,!1)}}}var bn=0,ge=4;function vn(e){let i=De(e,bn,1).getDay();return De(e,0,1+(i<=ge?ge:ge+7)-i)}function jt(e){let i=e.getDay(),t=i===0?-3:ge-i;return De(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Te(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=jt(t),o=vn(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return O(r,e,L(n,m.MinusSign))}}function he(e,i=!1){return function(t,n){let s=jt(t).getFullYear();return O(s,e,L(n,m.MinusSign),i)}}var Re={};function In(e){if(Re[e])return Re[e];let i;switch(e){case"G":case"GG":case"GGG":i=f(3,d.Abbreviated);break;case"GGGG":i=f(3,d.Wide);break;case"GGGGG":i=f(3,d.Narrow);break;case"y":i=C(0,1,0,!1,!0);break;case"yy":i=C(0,2,0,!0,!0);break;case"yyy":i=C(0,3,0,!1,!0);break;case"yyyy":i=C(0,4,0,!1,!0);break;case"Y":i=he(1);break;case"YY":i=he(2,!0);break;case"YYY":i=he(3);break;case"YYYY":i=he(4);break;case"M":case"L":i=C(1,1,1);break;case"MM":case"LL":i=C(1,2,1);break;case"MMM":i=f(2,d.Abbreviated);break;case"MMMM":i=f(2,d.Wide);break;case"MMMMM":i=f(2,d.Narrow);break;case"LLL":i=f(2,d.Abbreviated,w.Standalone);break;case"LLLL":i=f(2,d.Wide,w.Standalone);break;case"LLLLL":i=f(2,d.Narrow,w.Standalone);break;case"w":i=Te(1);break;case"ww":i=Te(2);break;case"W":i=Te(1,!0);break;case"d":i=C(2,1);break;case"dd":i=C(2,2);break;case"c":case"cc":i=C(7,1);break;case"ccc":i=f(1,d.Abbreviated,w.Standalone);break;case"cccc":i=f(1,d.Wide,w.Standalone);break;case"ccccc":i=f(1,d.Narrow,w.Standalone);break;case"cccccc":i=f(1,d.Short,w.Standalone);break;case"E":case"EE":case"EEE":i=f(1,d.Abbreviated);break;case"EEEE":i=f(1,d.Wide);break;case"EEEEE":i=f(1,d.Narrow);break;case"EEEEEE":i=f(1,d.Short);break;case"a":case"aa":case"aaa":i=f(0,d.Abbreviated);break;case"aaaa":i=f(0,d.Wide);break;case"aaaaa":i=f(0,d.Narrow);break;case"b":case"bb":case"bbb":i=f(0,d.Abbreviated,w.Standalone,!0);break;case"bbbb":i=f(0,d.Wide,w.Standalone,!0);break;case"bbbbb":i=f(0,d.Narrow,w.Standalone,!0);break;case"B":case"BB":case"BBB":i=f(0,d.Abbreviated,w.Format,!0);break;case"BBBB":i=f(0,d.Wide,w.Format,!0);break;case"BBBBB":i=f(0,d.Narrow,w.Format,!0);break;case"h":i=C(3,1,-12);break;case"hh":i=C(3,2,-12);break;case"H":i=C(3,1);break;case"HH":i=C(3,2);break;case"m":i=C(4,1);break;case"mm":i=C(4,2);break;case"s":i=C(5,1);break;case"ss":i=C(5,2);break;case"S":i=C(6,1);break;case"SS":i=C(6,2);break;case"SSS":i=C(6,3);break;case"Z":case"ZZ":case"ZZZ":i=fe(0);break;case"ZZZZZ":i=fe(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=fe(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=fe(2);break;default:return null}return Re[e]=i,i}function Vt(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Ln(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function Mn(e,i,t){let r=e.getTimezoneOffset(),s=Vt(i,r);return Ln(e,-1*(s-r))}function Tn(e){if(yt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(a=>+a);return De(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(En))return Rn(n)}let i=new Date(e);if(!yt(i))throw new y(2302,!1);return i}function Rn(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,a=Number(e[5]||0)-n,D=Number(e[6]||0),h=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,a,D,h),i}function yt(e){return e instanceof Date&&!isNaN(e.valueOf())}var On=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Et=22,pe=".",ee="0",Bn=";",Pn=",",Oe="#",wt="\xA4",Nn="%";function $e(e,i,t,n,r,s,o=!1){let a="",D=!1;if(!isFinite(e))a=L(t,m.Infinity);else{let h=$n(e);o&&(h=kn(h));let g=i.minInt,c=i.minFrac,E=i.maxFrac;if(s){let z=s.match(On);if(z===null)throw new y(2306,!1);let He=z[1],Ae=z[3],Ze=z[5];He!=null&&(g=Be(He)),Ae!=null&&(c=Be(Ae)),Ze!=null?E=Be(Ze):Ae!=null&&c>E&&(E=c)}xn(h,c,E);let p=h.digits,A=h.integerLen,H=h.exponent,$=[];for(D=p.every(z=>!z);A<g;A++)p.unshift(0);for(;A<0;A++)p.unshift(0);A>0?$=p.splice(A,p.length):($=p,p=[0]);let ie=[];for(p.length>=i.lgSize&&ie.unshift(p.splice(-i.lgSize,p.length).join(""));p.length>i.gSize;)ie.unshift(p.splice(-i.gSize,p.length).join(""));p.length&&ie.unshift(p.join("")),a=ie.join(L(t,n)),$.length&&(a+=L(t,r)+$.join("")),H&&(a+=L(t,m.Exponential)+"+"+H)}return e<0&&!D?a=i.negPre+a+i.negSuf:a=i.posPre+a+i.posSuf,a}function Gt(e,i,t,n,r){let s=Fe(i,ne.Currency),o=xe(s,L(i,m.MinusSign));return o.minFrac=Ut(n),o.maxFrac=o.minFrac,$e(e,o,i,m.CurrencyGroup,m.CurrencyDecimal,r).replace(wt,t).replace(wt,"").trim()}function Ht(e,i,t){let n=Fe(i,ne.Percent),r=xe(n,L(i,m.MinusSign));return $e(e,r,i,m.Group,m.Decimal,t,!0).replace(new RegExp(Nn,"g"),L(i,m.PercentSign))}function Zt(e,i,t){let n=Fe(i,ne.Decimal),r=xe(n,L(i,m.MinusSign));return $e(e,r,i,m.Group,m.Decimal,t)}function xe(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(Bn),r=n[0],s=n[1],o=r.indexOf(pe)!==-1?r.split(pe):[r.substring(0,r.lastIndexOf(ee)+1),r.substring(r.lastIndexOf(ee)+1)],a=o[0],D=o[1]||"";t.posPre=a.substring(0,a.indexOf(Oe));for(let g=0;g<D.length;g++){let c=D.charAt(g);c===ee?t.minFrac=t.maxFrac=g+1:c===Oe?t.maxFrac=g+1:t.posSuf+=c}let h=a.split(Pn);if(t.gSize=h[1]?h[1].length:0,t.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,s){let g=r.length-t.posPre.length-t.posSuf.length,c=s.indexOf(Oe);t.negPre=s.substring(0,c).replace(/'/g,""),t.negSuf=s.slice(c+g).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function kn(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function $n(e){let i=Math.abs(e)+"",t=0,n,r,s,o,a;for((r=i.indexOf(pe))>-1&&(i=i.replace(pe,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===ee;s++);if(s===(a=i.length))n=[0],r=1;else{for(a--;i.charAt(a)===ee;)a--;for(r-=s,n=[],o=0;s<=a;s++,o++)n[o]=Number(i.charAt(s))}return r>Et&&(n=n.splice(0,Et-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function xn(e,i,t){if(i>t)throw new y(2307,!1);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,a=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let c=o;c<n.length;c++)n[c]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let c=1;c<o;c++)n[c]=0}if(a>=5)if(o-1<0){for(let c=0;c>o;c--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,h=i+e.integerLen,g=n.reduceRight(function(c,E,p,A){return E=E+c,A[p]=E<10?E:E-10,D&&(A[p]===0&&p>=h?A.pop():D=!1),E>=10?1:0},0);g&&(n.unshift(g),e.integerLen++)}function Be(e){let i=parseInt(e);if(isNaN(i))throw new y(2305,!1);return i}var ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:function(n){let r=null;return n?r=new n:r=(s=>new Yt(s))(T(x)),r},providedIn:"root"})}return e})();function Wt(e,i,t,n){let r=`=${e}`;if(i.indexOf(r)>-1||(r=t.getPluralCategory(e,n),i.indexOf(r)>-1))return r;if(i.indexOf("other")>-1)return"other";throw new y(2308,!1)}var Yt=(()=>{class e extends ye{locale;constructor(t){super(),this.locale=t}getPluralCategory(t,n){switch(Pt(n||this.locale)(t)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}}static \u0275fac=function(n){return new(n||e)(T(x))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Pe=/\s+/,At=[],Un=(()=>{class e{_ngEl;_renderer;initialClasses=At;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(Pe):At}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Pe):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Pe).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(u(W),u(Y))};static \u0275dir=b({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),zn=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=it(this.ngComponentOutletNgModule,St(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(St(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(u(k))};static \u0275dir=b({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[Z]})}return e})();function St(e){return e.get(nt).injector}var me=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Kt=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new me(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let a=n.get(s);n.move(a,o),_t(a,r)}});for(let r=0,s=n.length;r<s;r++){let a=n.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);_t(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(u(k),u(V),u(ht))};static \u0275dir=b({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function _t(e,i){e.context.$implicit=i.item}var jn=(()=>{class e{_viewContainer;_context=new Ce;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){bt(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){bt(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(u(k),u(V))};static \u0275dir=b({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ce=class{$implicit=null;ngIf=null};function bt(e,i){if(e&&!e.createEmbeddedView)throw new y(2020,!1)}var te=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,t){this._viewContainerRef=i,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},Ue=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=b({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),Vn=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new te(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(u(k),u(V),u(Ue,9))};static \u0275dir=b({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),Gn=(()=>{class e{constructor(t,n,r){r._addDefault(new te(t,n))}static \u0275fac=function(n){return new(n||e)(u(k),u(V),u(Ue,9))};static \u0275dir=b({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})();var Xt=(()=>{class e{_localization;_activeView;_caseViews={};constructor(t){this._localization=t}set ngPlural(t){this._updateView(t)}addCase(t,n){this._caseViews[t]=n}_updateView(t){this._clearViews();let n=Object.keys(this._caseViews),r=Wt(t,n,this._localization);this._activateView(this._caseViews[r])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}static \u0275fac=function(n){return new(n||e)(u(ye))};static \u0275dir=b({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}})}return e})(),Hn=(()=>{class e{value;constructor(t,n,r,s){this.value=t;let o=!isNaN(Number(t));s.addCase(o?`=${t}`:t,new te(r,n))}static \u0275fac=function(n){return new(n||e)(qe("ngPluralCase"),u(V),u(k),u(Xt,1))};static \u0275dir=b({type:e,selectors:[["","ngPluralCase",""]]})}return e})(),Zn=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:et.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(u(W),u(be),u(Y))};static \u0275dir=b({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Wn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(u(k))};static \u0275dir=b({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Z]})}return e})();function B(e,i){return new y(2100,!1)}var Ne=class{createSubscription(i,t,n){return _e(()=>i.subscribe({next:t,error:n}))}dispose(i){_e(()=>i.unsubscribe())}},ke=class{createSubscription(i,t,n){return i.then(r=>t?.(r),r=>n?.(r)),{unsubscribe:()=>{t=null,n=null}}}dispose(i){i.unsubscribe()}},Yn=new ke,Kn=new Ne,Xn=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=_(Xe);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n))}_selectStrategy(t){if(st(t))return Yn;if(ot(t))return Kn;throw B(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(u(oe,16))};static \u0275pipe=v({name:"async",type:e,pure:!1})}return e})(),qn=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw B(e,t);return t.toLowerCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"lowercase",type:e,pure:!0})}return e})(),Jn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Qn=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw B(e,t);return t.replace(Jn,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"titlecase",type:e,pure:!0})}return e})(),ei=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw B(e,t);return t.toUpperCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"uppercase",type:e,pure:!0})}return e})(),ti="mediumDate",qt=new P(""),Jt=new P(""),ni=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??ti,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return zt(t,o,s||this.locale,a)}catch(o){throw B(e,o.message)}}static \u0275fac=function(n){return new(n||e)(u(x,16),u(qt,24),u(Jt,24))};static \u0275pipe=v({name:"date",type:e,pure:!0})}return e})(),ii=/#/g,ri=(()=>{class e{_localization;constructor(t){this._localization=t}transform(t,n,r){if(t==null)return"";if(typeof n!="object"||n===null)throw B(e,n);let s=Wt(t,Object.keys(n),this._localization,r);return n[s].replace(ii,t.toString())}static \u0275fac=function(n){return new(n||e)(u(ye,16))};static \u0275pipe=v({name:"i18nPlural",type:e,pure:!0})}return e})(),si=(()=>{class e{transform(t,n){if(t==null)return"";if(typeof n!="object"||typeof t!="string")throw B(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"i18nSelect",type:e,pure:!0})}return e})(),oi=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"json",type:e,pure:!1})}return e})();function ai(e,i){return{key:e,value:i}}var ui=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=vt;transform(t,n=vt){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let r=this.differ.diff(t),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(ai(o.key,o.currentValue))})),(r||s)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||e)(u(be,16))};static \u0275pipe=v({name:"keyvalue",type:e,pure:!1})}return e})();function vt(e,i){let t=e.key,n=i.key;if(t===n)return 0;if(t==null)return 1;if(n==null)return-1;if(typeof t=="string"&&typeof n=="string")return t<n?-1:1;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="boolean"&&typeof n=="boolean")return t<n?-1:1;let r=String(t),s=String(n);return r==s?0:r<s?-1:1}var ci=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!ze(t))return null;r||=this._locale;try{let s=je(t);return Zt(s,r,n)}catch(s){throw B(e,s.message)}}static \u0275fac=function(n){return new(n||e)(u(x,16))};static \u0275pipe=v({name:"number",type:e,pure:!0})}return e})(),di=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!ze(t))return null;r||=this._locale;try{let s=je(t);return Ht(s,r,n)}catch(s){throw B(e,s.message)}}static \u0275fac=function(n){return new(n||e)(u(x,16))};static \u0275pipe=v({name:"percent",type:e,pure:!0})}return e})(),li=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n}transform(t,n=this._defaultCurrencyCode,r="symbol",s,o){if(!ze(t))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?a=xt(a,r==="symbol"?"wide":"narrow",o):a=r);try{let D=je(t);return Gt(D,o,a,n,s)}catch(D){throw B(e,D.message)}}static \u0275fac=function(n){return new(n||e)(u(x,16),u(lt,16))};static \u0275pipe=v({name:"currency",type:e,pure:!0})}return e})();function ze(e){return!(e==null||e===""||e!==e)}function je(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y(2309,!1);return e}var fi=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw B(e,t);return t.slice(n,r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"slice",type:e,pure:!1})}return e})();var hi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=rt({type:e});static \u0275inj=Ye({})}return e})();var gi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:()=>window.navigation,providedIn:"platform"})}return e})();function fr(e,i,t){return at(e,i,t)}var hr=new ft("20.0.0"),gr=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new Ve(_(j),window)})}return e})(),Ve=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,t){this.window.scrollTo(se(re({},t),{left:i[0],top:i[1]}))}scrollToAnchor(i,t){let n=Di(this.document,i);n&&(this.scrollToElement(n,t),n.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i,t){let n=i.getBoundingClientRect(),r=n.left+this.window.pageXOffset,s=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(se(re({},t),{left:r-o[0],top:s-o[1]}))}};function Di(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var Qt=class{setOffset(i){}getScrollPosition(){return[0,0]}scrollToPosition(i){}scrollToAnchor(i){}setHistoryScrollRestoration(i){}},Ee="20";function nn(e){return/^https?:\/\//.test(e)}function rn(e){if(!(typeof e=="string")||e.trim()==="")return!1;try{let t=new URL(e);return!0}catch{return!1}}function pi(e){return e.endsWith("/")?e.slice(0,-1):e}function mi(e){return e.startsWith("/")?e.slice(1):e}var sn=e=>e.src,Ge=new P("",{providedIn:"root",factory:()=>sn});function we(e,i){return function(n){return rn(n)||Ci(n,i||[]),n=pi(n),[{provide:Ge,useValue:o=>(nn(o.src)&&Fi(n,o.src),e(n,se(re({},o),{src:mi(o.src)})))}]}}function Ci(e,i){throw new y(2959,!1)}function Fi(e,i){throw new y(2959,!1)}var Dr=we(yi,void 0);function yi(e,i){let t="format=auto";return i.width&&(t+=`,width=${i.width}`),i.isPlaceholder&&(t+=`,quality=${Ee}`),`${e}/cdn-cgi/image/${t}/${i.src}`}var pr=we(Ei,void 0);function Ei(e,i){let n=`f_auto,${i.isPlaceholder?"q_auto:low":"q_auto"}`;return i.width&&(n+=`,w_${i.width}`),i.loaderParams?.rounded&&(n+=",r_max"),`${e}/image/upload/${n}/${i.src}`}var mr=we(wi,void 0);function wi(e,i){let{src:t,width:n}=i,r=[];n&&r.push(`w-${n}`),i.isPlaceholder&&r.push(`q-${Ee}`);let s=r.length?[e,`tr:${r.join(",")}`,t]:[e,t];return new URL(s.join("/")).href}var Cr=we(Ai,void 0);function Ai(e,i){let t=new URL(`${e}/${i.src}`);return t.searchParams.set("auto","format"),i.width&&t.searchParams.set("w",i.width.toString()),i.isPlaceholder&&t.searchParams.set("q",Ee),t.href}function Fr(e){if(e&&!rn(e))throw new y(2959,!1);return e&&(e=new URL(e).origin),[{provide:Ge,useValue:n=>Si(n,e)}]}var en=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);function Si(e,i){let t=new URL(i??"https://a/");t.pathname="/.netlify/images",!nn(e.src)&&!e.src.startsWith("/")&&(e.src="/"+e.src),t.searchParams.set("url",e.src),e.width&&t.searchParams.set("w",e.width.toString());let n=e.loaderParams?.quality??e.loaderParams?.q;e.isPlaceholder&&!n&&t.searchParams.set("q",Ee);for(let[r,s]of Object.entries(e.loaderParams??{}))en.has(r)&&t.searchParams.set(en.get(r),s.toString());return t.hostname==="a"?t.href.replace(t.origin,""):t.href}var yr=new P("");var tn=/^((\s*\d+w\s*(,|$)){1,})$/;var _i=[1,2],bi=640;var vi=1920,Ii=1080;var Er=(()=>{class e{imageLoader=_(Ge);config=Li(_(Se));renderer=_(Y);imgElement=_(W).nativeElement;injector=_(Ke);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){tt("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&tn.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let n=t;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=tn.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=bi)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return _i.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>vi||this.height>Ii),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==sn&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(oe);r(),s(),this.placeholder=!1,o.markForCheck()},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);Mi(t,n)}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=b({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&&dt("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Ti],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",ve],height:[2,"height","height",ve],loading:"loading",priority:[2,"priority","priority",K],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",K],fill:[2,"fill","fill",K],placeholder:[2,"placeholder","placeholder",Ri],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Z]})}return e})();function Li(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},Je,e,i)}function Mi(e,i){e.complete&&e.naturalWidth&&i()}function Ti(e){return typeof e=="string"?e:Qe(e)}function Ri(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:K(e)}export{ae as a,on as b,Ie as c,X as d,an as e,mt as f,R as g,G as h,ce as i,Ct as j,Ft as k,fn as l,ne as m,U as n,w as o,d as p,I as q,m as r,Lt as s,Mt as t,Tt as u,Rt as v,Ot as w,Bt as x,hn as y,gn as z,q as A,J as B,Q as C,L as D,Fe as E,Dn as F,pn as G,mn as H,Pt as I,kt as J,$t as K,Fn as L,xt as M,Ut as N,zt as O,Gt as P,Ht as Q,Zt as R,ye as S,Yt as T,Un as U,zn as V,me as W,Kt as X,jn as Y,Ce as Z,Ue as _,Vn as $,Gn as aa,Xt as ba,Hn as ca,Zn as da,Wn as ea,Xn as fa,qn as ga,Qn as ha,ei as ia,qt as ja,Jt as ka,ni as la,ri as ma,si as na,oi as oa,ui as pa,ci as qa,di as ra,li as sa,fi as ta,hi as ua,gi as va,fr as wa,hr as xa,gr as ya,Qt as za,Ge as Aa,Dr as Ba,pr as Ca,mr as Da,Cr as Ea,Fr as Fa,yr as Ga,Er as Ha};
package/chunk-HD37ILAE.js DELETED
@@ -1,6 +0,0 @@
1
- import{a as tt}from"./chunk-L6BZ6TEU.js";import{a as Ze,b as et}from"./chunk-5MMV45NA.js";import{a as J,b as Xe,c as Qe}from"./chunk-JHVU3HSL.js";import{h as Ye}from"./chunk-DE64A2ZS.js";import{a as Je}from"./chunk-HWUEL5ZO.js";import{a as O}from"./chunk-FC45TEB6.js";import{a as G}from"./chunk-BHSG643V.js";import{a as He,c as ce,e as pe,i as de,k as We,s as me,t as Ue}from"./chunk-ZCT7SRIM.js";import{A as Ke,C as qe,a as le,e as Ne,g as se,l as Pe,o as Re,p as Ge,t as Be,z as ze}from"./chunk-DNBOZ26J.js";import{h as je}from"./chunk-XD6MBGQY.js";import{ea as Le}from"./chunk-GP2W7XZF.js";import{Ab as ie,Bb as T,Fc as M,Gc as R,Hb as W,Ib as U,Kb as Se,Lb as De,Lc as Q,Mb as we,Nb as F,Oa as s,Ob as l,Oc as Ie,Pb as ye,Qb as Ve,S as te,Sb as ke,Tb as ve,Ub as be,X as V,Yb as N,_a as ne,_b as oe,ba as f,bc as _,ca as g,db as $,dc as y,ec as xe,f as ee,fa as he,gc as Ee,hc as $e,ic as Me,jc as P,kc as k,la as L,lc as d,oc as Oe,pb as C,pc as Ae,qb as x,rb as K,rc as ae,sb as q,tb as j,tc as re,ub as m,vb as c,wb as p,xb as H,yb as ge,yc as X,zb as Ce}from"./chunk-67YRCRMI.js";import{a as w}from"./chunk-EUDKD2JW.js";var nt=class n{#t=V(je);#e=V(Ne);#n=V(G);testDestination(t,e,o){return this.#n.hasV2TestOperations()?this.testDestinationv2(t,e,o):this.testDestinationv1(t,e,o)}testDestinationv2(t,e,o){return new ee(i=>{this.#t.postApiV2DestinationTest({requestBody:{DestinationUrl:t,AutoCreate:!1,Options:null}}).subscribe({next:a=>{if(a.Success){this.emitSuccessV2(i,t,e,a);return}this.handleGenericError(i,t,e,a.Error??"Unknown error")},error:a=>{let r=a?.error?.body;if(r?.Data?.FolderExists===!1||r?.StatusCode==="missing-folder"){o?this.handleMissingFolder(i,t,e):this.handleGenericError(i,t,e,$localize`The remote destination folder does not exist.`);return}if(r?.Data?.HostCertificate){this.handleMissingCertificate(i,t,e,r.Data?.HostCertificate);return}if(r?.Data?.ReportedHostKey){this.handleIncorrectKey(i,t,e,r.Data.ReportedHostKey,r.Data.AcceptedHostKey??null);return}this.handleGenericError(i,t,e,a?.message??"Unknown error")}})})}testDestinationv1(t,e,o){return new ee(i=>{this.#t.postApiV1RemoteoperationTest({requestBody:{path:t}}).subscribe({next:a=>{i.next({action:"success",targetUrl:t,testAgain:!1,destinationIndex:e}),i.complete()},error:a=>{this.handleDestinationErrorv1(a.message,t,e,o).subscribe(r=>{i.next(r)})}})})}handleMissingFolder(t,e,o){this.#e.open(O,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`,confirmText:$localize`Create folder`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.#n.hasV2TestOperations()?this.#t.postApiV2DestinationTest({requestBody:{DestinationUrl:e,AutoCreate:!0,Options:null}}).subscribe({next:a=>{if(a.Success){this.emitSuccessV2(t,e,o,a);return}else this.handleFolderCreateFailure(t,e,o,a.Error??$localize`Unknown error`)},error:a=>{this.handleFolderCreateFailure(t,e,o,a.message??$localize`Unknown error`)}}):this.#t.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe({next:()=>{this.handleFolderCreated(t,e,o)},error:a=>{this.handleFolderCreateFailure(t,e,o,a.message??$localize`Unknown error`)}}))}})}handleFolderCreateFailure(t,e,o,i){this.#e.open(O,{data:{title:$localize`Error creating folder`,message:$localize`The remote destination folder could not be created. ${i}`,confirmText:$localize`OK`,cancelText:null},closed:()=>{t.next({action:"generic-error",targetUrl:e,testAgain:!1,destinationIndex:o}),t.complete()}})}emitSuccessV2(t,e,o,i){t.next({action:"success",targetUrl:e,testAgain:!1,destinationIndex:o,anyFilesFound:!i.Data?.FolderIsEmpty,containsBackup:i.Data?.FolderContainsBackupFiles??void 0,containsEncryptedBackupFiles:i.Data?.FolderContainsEncryptedBackupFiles??void 0}),t.complete()}handleFolderCreated(t,e,o){this.#e.open(O,{data:{title:$localize`Folder created`,message:$localize`The remote destination folder was created successfully.`,confirmText:$localize`OK`,cancelText:null},closed:()=>{t.next({action:"test-again",targetUrl:e,testAgain:!0,destinationIndex:o}),t.complete()}})}reportNoAction(t,e,o){t.next({action:"generic-error",targetUrl:e,testAgain:!1,destinationIndex:o}),t.complete()}handleMissingCertificate(t,e,o,i){this.#e.open(O,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
- If this is a self-signed certificate, you can choose to trust this certificate.
3
- The server reported the certificate hash: ${i}`,confirmText:$localize`Trust the certificate`,cancelText:$localize`Cancel`},closed:a=>{if(!a){this.reportNoAction(t,e,o);return}t.next({action:"trust-cert",targetUrl:e,testAgain:!0,certData:i,destinationIndex:o}),t.complete()}})}handleIncorrectKey(t,e,o,i,a){a?this.#e.open(O,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
- otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
- Do you want to REPLACE your CURRENT host key ${a}
6
- with the REPORTED host key: ${i}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:r=>{if(!r){this.reportNoAction(t,e,o);return}t.next({action:"approve-host-key",targetUrl:e,testAgain:!0,reportedHostKey:i,destinationIndex:o}),t.complete()}}):this.#e.open(O,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${i}`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:r=>{if(!r){this.reportNoAction(t,e,o);return}t.next({action:"approve-host-key",targetUrl:e,testAgain:!0,reportedHostKey:i,destinationIndex:o}),t.complete()}})}handleGenericError(t,e,o,i){this.#e.open(O,{maxWidth:"500px",data:{title:$localize`Test connection failed`,message:i,cancelText:$localize`OK`},closed:a=>{t.next({action:"generic-error",targetUrl:e,testAgain:!1,destinationIndex:o}),t.complete()}})}handleDestinationErrorv1(t,e,o,i){return new ee(a=>{if(t==="missing-folder"){i?this.handleMissingFolder(a,e,o):this.handleGenericError(a,e,o,$localize`The remote destination folder does not exist.`);return}if(t.startsWith("incorrect-cert:")){let r=t.split("incorrect-cert:")[1];this.handleMissingCertificate(a,e,o,r);return}if(t.startsWith("incorrect-host-key:")){let r=t.split('incorrect-host-key:"')[1].split('",')[0],S=t.split('accepted-host-key:"')[1].split('",')[0];this.handleIncorrectKey(a,e,o,r,S);return}this.handleGenericError(a,e,o,t)})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"})};var _e=class n{#t=V(G);supportedDestinationTypes=M(()=>this.#t.backendModules().map(t=>t.Key).filter(t=>t).map(t=>J(t)));destinationTypeOptions=M(()=>this.supportedDestinationTypes().map(t=>({key:t.customKey??t.key,customKey:t.customKey??null,displayName:t.displayName,description:t.description})));backendModules=M(()=>this.#t.backendModules()??[]);static \u0275fac=function(e){return new(e||n)};static \u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"})};var rt=["fileInput"],lt=[[["label"]]],st=["label"],ue=class n{customId=Q();content=L("");readonly=L(!1);placeholder=Q("Drop a file here or use the browse button");fileInputRef;onFileSelected(t){let e=t.target;e.files&&e.files.length>0&&this.readFile(e.files[0])}onFileDrop(t){t.preventDefault(),t.dataTransfer?.files&&t.dataTransfer.files.length>0&&this.readFile(t.dataTransfer.files[0])}onDragOver(t){t.preventDefault()}readFile(t){let e=new FileReader;e.onload=()=>{this.content.set(e.result)},e.readAsText(t)}triggerBrowse(){return this.fileInputRef.nativeElement.click(),!1}onChange=()=>{};onTouched=()=>{};onChangeEffect=R(()=>{this.onChange(this.content())});writeValue(t){this.content.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=ne({type:n,selectors:[["app-file-drop-textarea"]],viewQuery:function(e,o){if(e&1&&ke(rt,5),e&2){let i;ve(i=be())&&(o.fileInputRef=i.first)}},inputs:{customId:[1,"customId"],placeholder:[1,"placeholder"]},features:[Ae([{provide:He,useExisting:n,multi:!0}])],ngContentSelectors:st,decls:9,vars:3,consts:()=>{let t;return t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:upload${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["fileInput",""],t,[1,"browse-btn"],["spk-button","","type","button",1,"small","outlined",3,"click"],[1,"textarea-container","textarea-wrap",3,"drop","dragover"],["rows","10",3,"ngModelChange","placeholder","ngModel","disabled"],["type","file",1,"hidden",3,"change"]]},template:function(e,o){if(e&1){let i=T();ye(lt),Ve(0,0,["ngProjectAs","label",5,["label"]]),c(1,"div",2)(2,"button",3),F("click",function(){return f(i),g(o.triggerBrowse())}),W(3,1),H(4,"spk-icon"),U(),p()(),c(5,"div",4),F("drop",function(r){return f(i),g(o.onFileDrop(r))})("dragover",function(r){return f(i),g(o.onDragOver(r))}),c(6,"textarea",5),Me("ngModelChange",function(r){return f(i),$e(o.content,r)||(o.content=r),g(r)}),p()(),c(7,"input",6,0),F("change",function(r){return f(i),g(o.onFileSelected(r))}),p()}e&2&&(s(6),m("placeholder",o.placeholder()),Ee("ngModel",o.content),m("disabled",o.readonly()))},dependencies:[me,ce,pe,de,le,se],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label browsebtn" "input input";grid-template-columns:8fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{grid-area:browsebtn}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%]{grid-area:input;width:100%;border:none;font:var(--code-20)}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;color:var(--base-8);background-color:var(--base-1);border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;resize:vertical;box-shadow:var(--box-shadow-10)}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{background-color:var(--base-2)}[_nghost-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var ct=(n,t,e,o)=>({index:n,fieldGroup:"custom",formView:t,destinationType:e,oauthField:o}),Te=n=>({$implicit:n}),pt=(n,t,e,o)=>({index:n,fieldGroup:"dynamic",formView:t,destinationType:e,oauthField:o}),dt=(n,t,e,o)=>({index:n,formView:t,fieldGroup:"advanced",destinationType:e,oauthField:o});function mt(n,t){n&1&&ie(0)}function _t(n,t){if(n&1&&$(0,mt,1,0,"ng-container",11),n&2){let e=t.$implicit,o=t.$index;l();let i=N(17);l();let a=d(0),r=d(1);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ae(7,Te,re(2,ct,o,e,a,r.oauthField)))}}function ut(n,t){n&1&&ie(0)}function ft(n,t){if(n&1&&$(0,ut,1,0,"ng-container",11),n&2){let e=t.$implicit,o=t.$index;l();let i=N(17);l();let a=d(0),r=d(1);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ae(7,Te,re(2,pt,o,e,a,r.oauthField)))}}function gt(n,t){if(n&1){let e=T();W(0,4,1),c(1,"button",12,1),F("click",function(){let i=f(e).$implicit,a=l(2);return g(a.addAdvancedOption(i))}),p(),U()}if(n&2){let e=t.$implicit;s(),Se(e.name),De(0)}}function Ct(n,t){n&1&&ie(0)}function xt(n,t){if(n&1&&$(0,Ct,1,0,"ng-container",11),n&2){let e=t.$implicit,o=t.$index;l();let i=N(17),a=l(),r=d(0),S=d(1),A=a.getFormView("advanced",e)??a.getDefaultFormView(e);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ae(7,Te,re(2,dt,o,A,r,S.oauthField)))}}function Ft(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function Tt(n,t){if(n&1){let e=T();c(0,"app-file-tree",14)(1,"label",20),_(2),C(3,Ft,2,1,"spk-icon",21),p(),c(4,"input",22),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(3),r=d(4);m("startingPath",a)("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),m("for",r),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1),s(),m("id",r)("ngModel",i)}}function ht(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function St(n,t){if(n&1){let e=T();c(0,"app-file-tree",15)(1,"label",20),_(2),C(3,ht,2,1,"spk-icon",21),p(),c(4,"input",22),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(3),r=d(4);m("hideShortcuts",!0)("startingPath",a),s(),m("for",r),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1),s(),m("id",r)("ngModel",i)}}function Dt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function wt(n,t){if(n&1&&(c(0,"spk-icon",26),_(1," link "),p()),n&2){l();let e=d(5),o=d(6);oe("error",e&&o==="error")("warn",e&&o==="warning"),m("spkTooltip",e)}}function yt(n,t){n&1&&(c(0,"spk-icon",25),_(1,"envelope"),p())}function Vt(n,t){n&1&&(c(0,"spk-icon",25),_(1,"textbox"),p())}function kt(n,t){if(n&1){let e=T();c(0,"spk-form-field")(1,"label",20),_(2),C(3,Dt,2,1,"spk-icon",21),p(),c(4,"input",23),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p(),P(5)(6),C(7,wt,2,5,"spk-icon",24)(8,yt,2,0,"spk-icon",25)(9,Vt,2,0,"spk-icon",25),p()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(3),r=d(4);s(),m("for",r),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1),s(),m("type",e.formView.type==="Email"?"email":"text")("id",r)("ngModel",i);let S=a,A=l(2).hasDoubleLeadingSlashes(S??"");s(),k(A&&(e.formView.doubleSlash==null?null:e.formView.doubleSlash.message)),s(),k(e.formView.doubleSlash==null?null:e.formView.doubleSlash.type),s(),x(e.formView.type==="Path"?7:e.formView.type==="Email"?8:9)}}function vt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function bt(n,t){if(n&1){let e=T();c(0,"span",30),F("click",function(){f(e);let i=l(2).$implicit,a=l(2);return g(a.oauthStartTokenCreation(i.destinationType,i.fieldGroup,i.formView.name,i.formView.oauthVersion))}),_(1," AuthID "),p()}}function Et(n,t){n&1&&(c(0,"spk-icon",25),_(1,"password"),p())}function $t(n,t){if(n&1){let e=T();c(0,"spk-icon",31),F("click",function(){f(e);let i=l(2).$implicit;return g(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye "),p()}}function Mt(n,t){if(n&1){let e=T();c(0,"spk-icon",31),F("click",function(){f(e);let i=l(2).$implicit;return g(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye-slash "),p()}}function Ot(n,t){if(n&1){let e=T();c(0,"spk-form-field")(1,"label",20),_(2),C(3,vt,2,1,"spk-icon",21),p(),c(4,"input",27),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p(),C(5,bt,2,0,"span",28)(6,Et,2,0,"spk-icon",25),C(7,$t,2,0,"spk-icon",29)(8,Mt,2,0,"spk-icon",29),p()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(4);s(),m("for",a),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1),s(),m("type",e.formView.showPassword?"text":"password")("id",a)("ngModel",i),s(),x(e.oauthField===e.formView.name?5:6),s(2),x(e.formView.showPassword?7:8)}}function At(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(3).$implicit;m("spkTooltip",e.formView.longDescription)}}function It(n,t){if(n&1&&_(0),n&2){let e=l().$implicit;xe(" ",e==null?null:e.key," (",e==null?null:e.value,") ")}}function Lt(n,t){if(n&1&&_(0),n&2){let e=l().$implicit;y(" ",e," ")}}function Nt(n,t){if(n&1&&C(0,It,1,2)(1,Lt,1,1),n&2){let e=l(3).$implicit;x(e.formView.loadOptions?0:1)}}function Pt(n,t){if(n&1){let e=T();c(0,"spk-select",32)(1,"label",20),_(2),C(3,At,2,1,"spk-icon",21),p(),c(4,"input",22),F("ngModelChange",function(i){f(e);let a=l(2).$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p()(),$(5,Nt,2,1,"ng-template",null,2,X)}if(n&2){let e=N(6);l();let o=d(0),i=l().$implicit,a=d(1),r=d(2),S=d(4);m("options",o)("isClearable",!1)("optionTemplate",e),s(),m("for",S),s(),y(" ",a," "),s(),x(i.formView.longDescription?3:-1),s(),m("id",S)("ngModel",r)}}function Rt(n,t){if(n&1&&(P(0),C(1,Pt,7,8)),n&2){let e=l().$implicit,o=k(e.formView.loadOptions?e.formView.loadOptions(l(2).injector)():e.formView.options);s(),x(o?1:-1)}}function Gt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(3).$implicit;m("spkTooltip",e.formView.longDescription)}}function Bt(n,t){if(n&1&&_(0),n&2){let e=t.$implicit;xe(" ",e.key," ",e.value?"("+e.value+")":""," ")}}function zt(n,t){if(n&1){let e=T();c(0,"spk-select",34)(1,"label",20),_(2),C(3,Gt,2,1,"spk-icon",21),p(),c(4,"input",22),F("ngModelChange",function(i){f(e);let a=l(2).$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p()(),$(5,Bt,1,2,"ng-template",null,3,X)}if(n&2){let e=N(6);l();let o=d(0),i=l().$implicit,a=d(1),r=d(2),S=d(4);m("options",o)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),s(),m("for",S),s(),y(" ",a," "),s(),x(i.formView.longDescription?3:-1),s(),m("id",S)("ngModel",r)}}function Kt(n,t){n&1&&H(0,"spk-progress-bar",33)}function qt(n,t){if(n&1&&(P(0),C(1,zt,7,9)(2,Kt,1,0,"spk-progress-bar",33)),n&2){let e=l().$implicit,o=k(e.formView.loadOptions?e.formView.loadOptions(l(2).injector)():e.formView.options);s(),x(o?1:2)}}function jt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function Ht(n,t){if(n&1){let e=T();c(0,"app-size",35),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),c(1,"label",20),_(2),C(3,jt,2,1,"spk-icon",21),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(4);m("inputType",e.Name)("ngModel",i)("customId",a),s(),m("for",a),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1)}}function Wt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function Ut(n,t){if(n&1){let e=T();c(0,"spk-form-field")(1,"label",20),_(2),C(3,Wt,2,1,"spk-icon",21),p(),c(4,"input",36),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p(),c(5,"spk-icon",25),_(6,"numpad"),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(4);s(),m("for",a),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1),s(),m("id",a)("ngModel",i)}}function Xt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function Qt(n,t){if(n&1){let e=T();c(0,"spk-toggle",37),F("click",function(){f(e);let i=l().$implicit,a=d(2),r=l(2);return g(r.updateFieldValue(i.fieldGroup,i.formView.name,a==="true"?"false":"true"))}),c(1,"label",20),_(2),C(3,Xt,2,1,"spk-icon",21),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(4);oe("active",i==="true"),s(),m("for",a),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1)}}function Jt(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function Yt(n,t){if(n&1&&_(0),n&2){let e=t.$implicit;y(" ",e," ")}}function Zt(n,t){if(n&1){let e=T();c(0,"spk-select",38)(1,"label",20),_(2),C(3,Jt,2,1,"spk-icon",21),p(),c(4,"input",39),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),p()(),$(5,Yt,1,1,"ng-template",null,3,X)}if(n&2){let e=N(6),o=l().$implicit,i=d(1),a=d(2);m("options",o.formView.options)("selectMultiple",!0)("optionTemplate",e),s(),m("for",Oe("destination-",o.fieldGroup,"-",o.index)),s(),y(" ",i," "),s(),x(o.formView.longDescription?3:-1),s(),m("ngModel",a)}}function en(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function tn(n,t){if(n&1){let e=T();c(0,"app-timespan",35),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),c(1,"label",20),_(2),C(3,en,2,1,"spk-icon",21),p()()}if(n&2){let e=l().$implicit,o=d(1),i=d(2),a=d(4);m("inputType",e.formView.name)("ngModel",i)("customId",a),s(),m("for",a),s(),y(" ",o," "),s(),x(e.formView.longDescription?3:-1)}}function nn(n,t){if(n&1&&(c(0,"spk-icon",21),_(1,"question"),p()),n&2){let e=l(2).$implicit;m("spkTooltip",e.formView.longDescription)}}function on(n,t){if(n&1){let e=T();c(0,"app-file-drop-textarea",40),F("ngModelChange",function(i){f(e);let a=l().$implicit,r=l(2);return g(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),c(1,"label"),_(2),C(3,nn,2,1,"spk-icon",21),p()()}if(n&2){let e=l().$implicit,o=d(2),i=d(4);m("ngModel",o)("customId",i)("placeholder",e.formView.longDescription),s(2),y(" ",e.formView.shortDescription??e.formView.name," "),s(),x(e.formView.longDescription?3:-1)}}function an(n,t){if(n&1){let e=T();c(0,"button",41),F("click",function(){f(e);let i=l().$implicit,a=l(2);return g(a.removeAdvancedOption(i.formView.name))}),c(1,"spk-icon"),_(2,"x-circle"),p()()}}function rn(n,t){if(n&1&&(c(0,"div",13),P(1)(2)(3)(4),C(5,Tt,5,11,"app-file-tree",14)(6,St,5,7,"app-file-tree",15)(7,kt,10,9,"spk-form-field")(8,Ot,9,8,"spk-form-field")(9,Rt,2,2)(10,qt,3,2)(11,Ht,4,6,"app-size",16)(12,Ut,7,5,"spk-form-field")(13,Qt,4,5,"spk-toggle",17)(14,Zt,7,9)(15,tn,4,6,"app-timespan",16)(16,on,4,5,"app-file-drop-textarea",18),C(17,an,3,0,"button",19),p()),n&2){let e=t.$implicit;l();let o=d(0),i=l();oe("single-field",e.fieldGroup!=="advanced"),s(),k(e.formView.shortDescription??e.formView.name),s(),k(i.getFieldGroup(o,e.fieldGroup)[e.formView.name]),s(),k(i.getFieldValue(e.fieldGroup,e.formView.name)),s(),k("destination-"+e.fieldGroup+"-"+e.index+"-"+(e.asHttpOptions?"http":"other")),s(),x(e.formView.type==="FileTree"?5:e.formView.type==="FolderTree"?6:e.formView.type==="String"||e.formView.type==="Path"||e.formView.type==="Email"?7:e.formView.type==="Password"?8:e.formView.type==="Enumeration"?9:e.formView.type==="NonValidatedSelectableString"?10:e.formView.type==="Size"?11:e.formView.type==="Integer"?12:e.formView.type==="Boolean"?13:e.formView.type==="Flags"?14:e.formView.type==="Timespan"||e.formView.type==="DateTime"?15:e.formView.type==="FreeText"?16:-1),s(12),x(e.fieldGroup==="advanced"?17:-1)}}function ln(n,t){if(n&1&&(P(0),q(1,_t,1,9,"ng-container",null,K),q(3,ft,1,9,"ng-container",null,K),c(5,"spk-toggle-card",5),ge(6,6),W(7,4),c(8,"spk-menu",7)(9,"button",8),H(10,"spk-icon"),p(),ge(11,9),q(12,gt,3,1,"button",10,K),Ce(),p(),U(),Ce(),q(14,xt,1,9,"ng-container",null,K),p(),$(16,rn,18,8,"ng-template",null,0,X)),n&2){let e=l(),o=d(1);k(e.destinationForm()),s(),j(o.custom),s(2),j(o.dynamic),s(2),m("disallowToggle",!0);let i=e.nonSelectedAdvancedFormViews();s(3),m("searchable",!0),s(),m("disabled",i.length===0),s(3),j(i),s(2),j(e.advancedFormFieldNames())}}var it=class n{#t=V(Ye);#e=V(G);#n=V(tt);#a=V(_e);injector=V(he);targetUrl=Ie.required();useBackupState=Q(!1);#i=null;destinationType=M(()=>{let t=this.targetUrl();if(!t)return null;let e=t.split("://")[0];return this.#i=e,e});destinationForm=L({custom:{},dynamic:{},advanced:{}});advancedFormFieldNames=M(()=>Object.keys(this.destinationForm().advanced));destinationFormConfig=L(null);nonSelectedAdvancedFormViews=M(()=>{let t=this.destinationFormConfig();if(!t)return[];let e=this.advancedFormFieldNames();return t.advanced.filter(o=>e.findIndex(i=>i===o.name)===-1)});destinationTypeEffect=R(()=>{let t=this.destinationType()??"",e=J(t),o=e?.key,i=this.#a.backendModules().find(D=>D.Key===o)??{Key:t,DisplayName:t,Description:J(t).description,Options:[]};if(!i||!i.Options||!t)return;let a=e&&e.oauthField?e.oauthField:null,r=e&&e.customFields?e.customFields:{},S=e&&e.dynamicFields?e.dynamicFields:[],A=e&&e.advancedFields?e.advancedFields:[],Y=e&&e.ignoredAdvancedFields?e.ignoredAdvancedFields:[],v={destinationType:t,oauthField:a,custom:[],dynamic:[],advanced:[]};r&&Object.entries(r).forEach(([D,u],b)=>{v.custom.push(w({order:900+b},u))});for(let D=0;D<i.Options.length;D++){let u=i.Options[D];if(u.Deprecated)continue;let b=S.find(h=>h===u.Name||u.Aliases?.includes(h.name)||h.name===u.Name);if(b){let h=u.Aliases?.indexOf(b.name)??-1,I=u.Aliases&&h>-1?u.Aliases[h]:u.Name,E=b&&typeof b!="string",B=E?b?.defaultValue??u.DefaultValue:u.DefaultValue,z={name:I,type:u.Type,shortDescription:u.ShortDescription??void 0,longDescription:u.LongDescription??void 0,options:u.ValidValues,order:900+D},fe=E?w(w({},z),b):z;v.dynamic.push(fe)}else{let h=u.Name;if(Y.find(Z=>Z===h))continue;let E=A.find(Z=>Z===h||Z.name===h),B=E&&typeof E!="string",z={name:h,type:u.Type,shortDescription:u.ShortDescription??void 0,longDescription:u.LongDescription??void 0,options:u.ValidValues,defaultValue:u.DefaultValue,order:900+D},fe=B?w(w({},z),E):z;v.advanced.push(fe)}}v.custom.sort((D,u)=>D.order-u.order),v.dynamic.sort((D,u)=>D.order-u.order),v.advanced.sort((D,u)=>D.order-u.order),this.destinationFormConfig.set(v)});targetUrlEffect=R(()=>{if(!this.destinationFormConfig())return;let e=this.targetUrl();if(!e)return;let o=Qe(e);if(!o)return;let i={custom:o.custom,dynamic:o.dynamic,advanced:o.advanced};this.destinationForm.update(a=>(a.custom=w(w({},a.custom),i.custom),a.dynamic=w(w({},a.dynamic),i.dynamic),a.advanced=w(w({},a.advanced),i.advanced),a))});destinationFormEffect=R(()=>{let t=this.#i,e=this.destinationForm();if(!e||!t)return;let o=Xe({destinationType:t,custom:e.custom,dynamic:e.dynamic,advanced:e.advanced});o&&this.targetUrl.set(o)});getFieldValue(t,e){let i=this.destinationForm()[t][e];return i||null}getFormView(t,e){let i=this.destinationFormConfig()?.[t].find(a=>a.name===e);return i||null}getDefaultFormView(t){return{name:t,type:"String",shortDescription:t,longDescription:$localize`This is an undocumented option.`}}getFieldGroup(t,e){return t[e]}hasDoubleLeadingSlashes(t){return t.startsWith("//")}addAdvancedOption(t){let e=this.destinationForm();e.advanced[t.name]=t.defaultValue,this.destinationForm.set(w({},e))}updateFieldValue(t,e,o){let i=this.destinationForm();i[t][e]=o,this.destinationForm.set(w({},i))}removeAdvancedOption(t){let e=this.destinationForm();delete e.advanced[t],this.destinationForm.set(w({},e))}#o=L(!1);oauthStartTokenCreation(t,e,o,i){this.#o.set(!0);let a=(i??1)==2?this.#e.defaultOAuthUrlV2():this.#e.defaultOAuthUrl(),r=this.#n.serverSettings()?.["--oauth-url"];if(r&&r.length>0&&(a=r),this.useBackupState()){let h=this.#t.mapFormsToSettings().find(I=>I.Name==="--oauth-url")?.Value;h&&h.length>0&&(a=h)}let S=this.destinationForm().advanced["oauth-url"];S&&S.length>0&&(a=S);let A=`${a}?type=${t}`,Y=450,v=600,D=screen.width/2-Y/2,u=screen.height/2-v/2,b=window.open(A,"_blank","height="+v+",width="+Y+",menubar=0,status=0,titlebar=0,toolbar=0,left="+D+",top="+u);return window.addEventListener("message",h=>{let I=h.data.startsWith("authid:"),E=I?h.data.replace("authid:",""):null;I&&(this.destinationForm.update(B=>(B[e][o]=E,B)),this.#o.set(!1),b?.close())}),!1}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=ne({type:n,selectors:[["app-single-destination"]],inputs:{targetUrl:[1,"targetUrl"],useBackupState:[1,"useBackupState"]},outputs:{targetUrl:"targetUrlChange"},decls:3,vars:3,consts:()=>{let t;return t=$localize` Advanced options ${"\uFFFD#8\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#9\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#10\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#9\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#11\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*13:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#9\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*13:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_MENU:`,t=we(t),[["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],t,[1,"advanced-options",3,"disallowToggle"],["title",""],[3,"searchable"],["spk-button","","type","button",1,"outlined","small",3,"disabled"],["menu",""],["type","button"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"click"],[1,"field-row"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised",3,"active"],[3,"ngModel","customId","placeholder"],["spk-button","","type","button",1,"outlined"],[3,"for"],[1,"primary",3,"spkTooltip"],["type","text",3,"ngModelChange","id","ngModel"],[3,"ngModelChange","type","id","ngModel"],["prefix","",3,"error","warn","spkTooltip"],["prefix",""],["prefix","",3,"spkTooltip"],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"click"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel","customId","placeholder"],["spk-button","","type","button",1,"outlined",3,"click"]]},template:function(e,o){if(e&1&&(P(0)(1),C(2,ln,18,4)),e&2){let i=k(o.destinationType());s();let a=k(o.destinationFormConfig());s(),x(i&&a?2:-1)}},dependencies:[Ue,ce,We,pe,me,de,Le,Je,Ze,et,ue,Pe,se,le,ze,Re,Be,qe,Ke,Ge],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.advanced-options[_ngcontent-%COMP%]{position:relative;z-index:1}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}label[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};export{nt as a,_e as b,it as c};
package/chunk-HE5L47WR.js DELETED
@@ -1 +0,0 @@
1
- import{a,b,c}from"./chunk-DE64A2ZS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-5RPDEEQ3.js";import"./chunk-67XQIEG5.js";import"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
package/chunk-HJQBTK5I.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-3Q5JEF3K.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as BytesPipe};
package/chunk-HLBBIEIQ.js DELETED
@@ -1 +0,0 @@
1
- import{a as H}from"./chunk-PEPDXQBY.js";import"./chunk-U44OBOIE.js";import{g as K}from"./chunk-7J7GUBLS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-67XQIEG5.js";import{b as j}from"./chunk-ZUXVEXBA.js";import"./chunk-EQS67O4J.js";import{a as B}from"./chunk-NZD6UMYZ.js";import"./chunk-B6DE3TTE.js";import"./chunk-VFVXE2DC.js";import"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import{a as z}from"./chunk-3Q5JEF3K.js";import"./chunk-ZCT7SRIM.js";import"./chunk-OQHMS5HM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import{a as b,h as w,p as W,s as X}from"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import{qa as v}from"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import{Fc as M,Gc as x,Hb as L,Ib as A,Jb as _,Kb as D,Lb as I,Oa as l,Ob as C,X as T,_a as y,bc as u,da as $,ea as G,ec as f,la as h,pb as g,qb as O,ub as d,uc as R,vb as i,vc as E,wb as s,xb as p,yb as m,zb as P}from"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";function V(n,e){n&1&&(i(0,"spk-card",8),m(1,14),_(2,2),P(),i(3,"div",15),$(),i(4,"svg",16),p(5,"circle",17),s(),G(),i(6,"spk-icon"),u(7,"check-bold"),s()()())}function Z(n,e){if(n&1&&(u(0),R(1,"number"),R(2,"number")),n&2){let t,o=C(2);f(" ",E(1,2,(t=o.statusData())==null?null:t.ProcessedFileCount)," of ",E(2,4,(t=o.statusData())==null?null:t.TotalFileCount)," ")}}function q(n,e){n&1&&(m(0),_(1,6),P())}function J(n,e){if(n&1&&(u(0),R(1,"bytes"),R(2,"bytes")),n&2){let t,o=C(2);f(" ",E(1,2,(t=o.statusData())==null?null:t.ProcessedFileSize)," of ",E(2,4,(t=o.statusData())==null?null:t.TotalFileSize)," ")}}function Q(n,e){n&1&&(m(0),_(1,7),P())}function U(n,e){if(n&1&&(i(0,"spk-card",8)(1,"h3"),L(2,3),p(3,"spk-spinner",18),A(),s(),i(4,"div",19),p(5,"spk-progress-bar",20),i(6,"p")(7,"span"),_(8,4),s(),g(9,Z,3,6)(10,q,2,0,"ng-container"),s(),i(11,"p")(12,"span"),_(13,5),s(),g(14,J,3,6)(15,Q,2,0,"ng-container"),s()()()),n&2){let t,o,r,a,c=C();l(3),D((t=c.statusData())==null?null:t.statusText),I(2),l(2),d("value",(o=c.statusData())==null?null:o.OverallProgress),l(4),O((r=c.statusData())!=null&&r.ProcessedFileCount?9:10),l(5),O((a=c.statusData())!=null&&a.ProcessedFileSize?14:15)}}var F=class n{#e=T(B);#t=T(K);statusData=this.#e.statusData;backupId=this.#t.backupId;isPolling=h(!0);taskId=M(()=>this.#e.statusData()?.TaskID?.toString()??void 0);lastRestoreStarted=M(()=>{let e=this.#e.statusData()?.backup?.Backup?.Metadata?.LastRestoreStarted??null;return e?this.fixDate(e):null});completedEffect=x(()=>{this.statusData()?.task?.Status==="Completed"&&this.isPolling.set(!1)});notificationFilterPredicate=()=>{let e=this.lastRestoreStarted();return{predicate:t=>(t.BackupID===this.#t.backupId()&&e&&e.getTime()<=new Date(t.Timestamp).getTime())??!1}};ngOnInit(){this.#e.fetchProgressState(),this.#e.startPollingProgress()}fixDate(e){return new Date(`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}T${e.slice(9,11)}:${e.slice(11,13)}:${e.slice(13,15)}Z`)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["app-restore-progress"]],decls:12,vars:6,consts:()=>{let e;e=$localize`Notifications`;let t;t=$localize`Logs`;let o;o=$localize`Restore completed`;let r;r=$localize` Restore progress: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_SPK_SPINNER:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPK_SPINNER:`;let a;a=$localize`Files processed:`;let c;c=$localize`Size processed:`;let N;N=$localize`N/A`;let k;return k=$localize`N/A`,[e,t,o,r,a,c,N,k,[1,"progress","type-a"],[1,"notifications","type-a"],[1,"notification-list"],[3,"notificationFilterPredicate"],[1,"logs","type-a"],[3,"asSimpleList","polling","whenFilter","backupIdFilter"],["title",""],[1,"complete-check"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"primary"],[1,"progress-content"],[3,"value"]]},template:function(t,o){if(t&1&&(i(0,"section"),g(1,V,8,0,"spk-card",8)(2,U,16,4,"spk-card",8),i(3,"spk-card",9)(4,"h3"),_(5,0),s(),i(6,"div",10),p(7,"app-notifications",11),s()(),i(8,"spk-card",12)(9,"h3"),_(10,1),s(),p(11,"app-logs-live",13),s()()),t&2){let r,a;l(),O(((r=o.statusData())==null||r.task==null?null:r.task.Status)==="Completed"?1:2),l(6),d("notificationFilterPredicate",o.notificationFilterPredicate()),l(4),d("asSimpleList",!0)("polling",o.isPolling())("whenFilter",(a=o.lastRestoreStarted())==null?null:a.getTime())("backupIdFilter",o.backupId())}},dependencies:[H,W,X,b,w,j,z,v],styles:['[_nghost-%COMP%]{display:block;padding:0 1.25rem}section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;grid-template-columns:2fr 1fr;grid-template-areas:"progress notifications" "logs logs"}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{grid-area:progress}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]:has(.complete-check){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] spk-spinner[_ngcontent-%COMP%]{--spinner-size: 1.25rem;--spinner-thickness: .1875rem}section[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%]{grid-area:notifications}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%]{grid-area:logs}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{max-height:50rem;overflow:auto}.notification-list[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.complete-check[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--success-8)}.complete-check[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--success-8);stroke-width:.3125rem;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-content[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{margin-bottom:.75rem}.progress-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.25rem}'],changeDetection:0})};export{F as default};
package/chunk-HWUEL5ZO.js DELETED
@@ -1 +0,0 @@
1
- import{a as xe}from"./chunk-BHSG643V.js";import{s as Me}from"./chunk-ZCT7SRIM.js";import{A as ve,a as me,f as Ce,l as Pe,n as Ee,p as Te}from"./chunk-DNBOZ26J.js";import{h as be}from"./chunk-XD6MBGQY.js";import{ea as ge}from"./chunk-GP2W7XZF.js";import{Ab as U,B as ie,Bb as B,F as q,Fc as W,Gc as A,Jb as $,Kb as ae,Kc as Y,Lb as ce,Lc as T,Mc as Z,Nb as R,Oa as g,Ob as p,Pb as de,Qb as D,Wb as z,X,Xb as pe,Yb as J,Zb as ue,_a as se,_b as b,ba as N,bc as S,ca as k,db as Q,dc as he,la as M,n as te,pb as O,qb as F,r as L,rc as V,sb as re,sc as _e,tb as oe,ub as K,vb as u,wb as _,x as ne,xb as le,yc as fe}from"./chunk-67YRCRMI.js";import{a as j,b as G}from"./chunk-EUDKD2JW.js";var we=["treeContainer"],Ne=["formRef"],ke=[[["label"]],[["label"]],[["input"]]],Re=["label","label","input"],Ie=r=>({children:r,level:0}),Oe=r=>({$implicit:r}),We=(r,t)=>({children:r,level:t}),Ae=(r,t)=>t.id;function Le(r,t){if(r&1){let e=B();u(0,"spk-button-group")(1,"button",13),R("click",function(){N(e);let i=p();return k(i.pathDiscoveryMethod.set("browse"))}),$(2,4),_(),u(3,"button",13),R("click",function(){N(e);let i=p();return k(i.pathDiscoveryMethod.set("path"))}),$(4,5),_()()}if(r&2){let e=p();g(),b("active",e.pathDiscoveryMethod()==="browse"),g(2),b("active",e.pathDiscoveryMethod()==="path")}}function Be(r,t){r&1&&le(0,"spk-progress-bar",9)}function $e(r,t){r&1&&(u(0,"spk-icon",18),S(1,"caret-down"),_(),u(2,"spk-icon",16),S(3,"folder-open"),_())}function De(r,t){r&1&&(u(0,"spk-icon"),S(1,"file"),_())}function Ve(r,t){r&1&&(u(0,"spk-icon",18),S(1,"caret-right"),_(),u(2,"spk-icon",16),S(3,"folder"),_())}function He(r,t){if(r&1&&O(0,$e,4,0)(1,De,2,0,"spk-icon")(2,Ve,4,0),r&2){let e=p(2).$implicit;F(e.children.length?0:e.cls==="file"?1:2)}}function je(r,t){r&1&&(u(0,"spk-icon",16),S(1,"desktop-tower"),_())}function Ge(r,t){r&1&&U(0)}function qe(r,t){if(r&1&&Q(0,Ge,1,0,"ng-container",10),r&2){let e=p(2).$implicit,n=p().$implicit;p();let i=J(7);K("ngTemplateOutlet",i)("ngTemplateOutletContext",V(5,Oe,_e(2,We,e.children,n.level+1)))}}function Xe(r,t){if(r&1){let e=B();u(0,"div",14,3),R("click",function(){N(e);let i=p().$implicit,o=p(2);return k(o.toggleNode(i.id,i))}),u(2,"div",15),O(3,He,3,1)(4,je,2,0,"spk-icon",16),_(),u(5,"div",17),R("click",function(i){N(e);let o=p().$implicit,c=p(2);return k(c.toggleSelectedNode(i,o))}),S(6),_()(),O(7,qe,1,7,"ng-container")}if(r&2){let e=p().$implicit,n=p().$implicit,i=p();b("accepted",e.accepted===!0)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0),g(2),b("file",e.cls==="file"),g(),F(e.id!=="/"?3:4),g(3),he(" ",e.text," "),g(),F(e.children.length>0?7:-1)}}function Qe(r,t){if(r&1&&O(0,Xe,8,17),r&2){let e=t.$implicit,n=p(2);F(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Ke(r,t){if(r&1&&(u(0,"spk-list"),re(1,Qe,1,1,null,null,Ae),_()),r&2){let e=t.$implicit;ue("padding-left",e.level*.25,"rem"),g(),oe(e.children)}}function Ue(r,t){r&1&&U(0)}function ze(r,t){if(r&1){let e=B();u(0,"spk-toggle",19),R("click",function(){N(e);let i=p();return k(i._showHiddenNodes.set(!i._showHiddenNodes()))}),$(1,6),_()}if(r&2){let e=p();b("active",e._showHiddenNodes()),g(),ae(e.showFiles()?"files":"folders"),ce(1)}}var Fe=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(Fe||{}),ee=class r{#e=X(be);#t=X(xe);multiSelect=T(!1);disabled=T(!1);showFiles=T(!1);selectFiles=T(!1);accepts=T(null);startingPath=T(null);rootPaths=T([]);backupSettings=T(null);pathRefreshTrigger=T(!1);showHiddenNodes=T(!1);hideShortcuts=T(!1);includes=Y();excludes=Y();_showHiddenNodes=M(!1);treeContainerRef=Z("treeContainer");formRef=Z("formRef");pathDiscoveryMethod=M("browse");isLoading=M(!1);currentPath=M("/");#n=M(null);treeSearchQuery=M("");treeNodes=M([]);isWindows=W(()=>this.#t.systemInfo()?.OSType==="Windows");filterGroups=this.#t.filterGroups();isByBackupSettings=W(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Fe;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(s=>s!==""&&s!=="/"),n=structuredClone(e);for(let s=0;s<n.length;s++){let a=n[s].slice(1);if(a.startsWith("{")&&a.endsWith("}")){let C=a.slice(1,-1),d=this.filterGroups?.FilterGroups[C];if(d&&d.length){let v=d.map(P=>`-${P}`);n.splice(s,1,...v)}}}let i=this.searchableTreeNodes(),o=this.rootPaths(),c=this.accepts(),m=this.isWindows(),l=[];return o.length>0?l=o.map(s=>({id:s,resolvedpath:s,text:s,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"})):l=[{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}],l.map(s=>{let f=new Map,a=s?.id;c&&(s.accepted=!0),f.set(s.id,s);let C=o.length>0?i.filter(d=>d.parentPath===s.id):i;for(let d of C){let v=o.length>0?d.id.replace(a??"",""):d.id,P=m?"\\":"/",h=v.split(P).filter(Boolean),E="",x=s;for(let H of h){if(E+=H+P,!f.has(E)){let I=d.hidden===!0&&t?0:this.#o(n,d.id,d.cls,x,m),y={id:d.id,isIndeterminate:this.isIndeterminate(n,d.id),evalState:I,parentPath:E,resolvedpath:d.id?.startsWith("%")?d.resolvedpath+P:E,hidden:d.hidden,text:d.text,cls:d.cls,children:[]};c&&(y.accepted=this.matchAccepts(c,y)),f.set(E,y),x.children.push(y)}x=f.get(E)}}return s}),l});#o(t,e,n,i,o){if(i.evalState===-1)return-2;let c=0,m=t.filter(s=>!s.startsWith("-")&&!s.startsWith("+")),l=t.filter(s=>s.startsWith("-")||s.startsWith("+"));if(m.length===0)return c;for(let s=0;s<m.length;s++){let f=m[s];if(e?.startsWith(f)){c=1;break}}if(l.length===0)return c;for(let s=0;s<l.length;s++){let f=l[s],a=f.slice(1),C=f.startsWith("-")?"exclude":"include",d=o?"\\":"/";if((o?a.slice(2):a).startsWith(d)&&a.endsWith(d)){if(n!=="folder")continue;if(e===a){c=C==="include"?1:-1;break}}if(a.startsWith("*")&&a.endsWith(`*${d}`)){if(n!=="folder")continue;let h=a.slice(1,-2);if(h==="")break;if(e?.includes(h+d)){c=C==="include"?1:-1;break}}if(a.startsWith("[.*")&&a.endsWith(`[^\\${d}]*]`)){if(n!=="file")continue;let h=a.slice(3,-7);if(new RegExp(h).test(e)){c=C==="include"?1:-1;break}}if(a.startsWith("[")&&a.endsWith("]")){let h=a.slice(1,-1),E=this.translateCSharpRegex(h);if(new RegExp(`${E}`).test(e)){c=C==="include"?1:-1;break}}if(a.startsWith("*.")){if(n!=="file"||a.replace("*.","").length===0)continue;if(this.#s(e,a,!0)){c=C==="include"?1:-1;break}}if(a==="")continue;if(a===e){c=C==="include"?1:-1;break}if(this.#s(e,a,!0)){c=C==="include"?1:-1;break}}return c}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,o,c)=>`(${c})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#s(t,e,n=!1){let i=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${i}${n?"$":""}`).test(t)}showHiddenNodesEffect=A(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=A(()=>{let t=this.pathDiscoveryMethod(),e=this.#n();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):!1}currentPathEffect=A(()=>{let t=this.#n();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=A(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#n.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#p(t);else{let e=this.rootPaths();e&&e.length>0?this.#i(null,e[0]):this.#i(null,"/")}}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let i=this.currentPath().split("\0").filter(c=>c!==""&&c!=="/"),o=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?i.includes(e.id)?this.currentPath.set(i.filter(c=>c!==e.id).join("\0")):i.some(c=>c.startsWith(o))?this.currentPath.set(i.filter(c=>c!==o).join("\0")):this.currentPath.set([...i,o].join("\0")):i.includes(e.id)?this.currentPath.set(i.filter(c=>c!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(i=>!i.id?.startsWith(e.id)||i.id===e.id)):this.#i(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#e.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0}}).pipe(L(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(L(i=>i.Files??[]))}}#r(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=this.isWindows(),n=t.split("\0").filter(l=>l.startsWith("-")).map(l=>l.slice(1,-1)),i=t.split("\0").filter(l=>!l.startsWith("-")).filter(Boolean),o=i.map(l=>{let s=l.split(e?"\\":"/");return s.at(-1)!==""&&s.pop(),s}),c=["/"];o.forEach(l=>{l.forEach((s,f)=>{let a=l.slice(0,f+1).join(e?"\\":"/");a!==""&&(c.includes(a)||c.push(a))})}),this.isLoading.set(!0);let m=c.map(l=>this.#r(l).pipe(L(s=>({status:"success",value:s,url:l})),ie(s=>te({status:"error",value:s,url:l}))));ne(m).pipe(q(()=>this.isLoading.set(!1))).subscribe({next:l=>{let s=l.filter(a=>a.status==="success"),f=l.filter(a=>a.status==="error");this.treeNodes.update(a=>{let C=s.flatMap(v=>v.value.map(P=>{let h=P.id,E=P.id.startsWith("%")&&P.id.endsWith("%")?P.resolvedpath+"/":P.id,x=h&&h.split("/").filter(Boolean).slice(0,-1).join("/"),I="/"+(h&&h.split("/").filter(Boolean).join("/")),y=i.findIndex(w=>this.multiSelect()?I.startsWith(w):I===w)>-1,Se=i.findIndex(w=>w===h)>-1,ye=n.findIndex(w=>w===I)>-1;return G(j({},P),{cls:E.endsWith("/")||E.endsWith("\\")?"folder":"file",parentPath:x.startsWith("%")?x:"/"+x,isSelected:y&&!ye||Se})})),d=[...new Map([...a,...C].map(v=>[v.id,v])).values()];return this.#l(),this.hideShortcuts()?d.filter(v=>!v.id.startsWith("%")):d})}})}#i(t=null,e="/"){this.isLoading.set(!0),this.#r(e).pipe(q(()=>this.isLoading.set(!1))).subscribe({next:n=>{let i=this.isByBackupSettings()?n.map(o=>{let m=o.Path.includes("\\")?"\\":"/";return{text:o.Path.split(m).filter(l=>l!=="").pop(),id:o.Path,cls:o.Path.endsWith(m)?"folder":"file",leaf:t!==null,resolvedpath:o.Path,hidden:!1}}):n;this.treeNodes.update(o=>{let c=i.map(l=>{let f=l.id.includes("\\")?"\\":"/",a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith(f)?"folder":"file";return G(j({},l),{cls:a,parentPath:e})}),m=[...new Map([...o,...c].map(l=>[l.id,l])).values()];return this.hideShortcuts()?m.filter(l=>!l.id.startsWith("%")):m})}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=se({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(z(n.treeContainerRef,we,5),z(n.formRef,Ne,5)),e&2&&pe(2)},hostVars:2,hostBindings:function(e,n){e&2&&b("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:Re,decls:15,vars:15,consts:()=>{let t;t=$localize` Browse path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(de(ke),O(0,Le,5,4,"spk-button-group"),u(1,"div",7),D(2,0,["ngProjectAs","label",5,["label"]]),u(3,"div",8,0),O(5,Be,1,0,"spk-progress-bar",9),Q(6,Ke,3,2,"ng-template",null,1,fe)(8,Ue,1,0,"ng-container",10),_(),O(9,ze,2,3,"spk-toggle",11),_(),u(10,"div",12,2)(12,"spk-form-field"),D(13,1,["ngProjectAs","label",5,["label"]]),D(14,2,["ngProjectAs","input",5,["input"]]),_()()),e&2){let i=J(7);F(n.multiSelect()?-1:0),g(),b("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),b("visualize-accepted",n.accepts()),g(2),F(n.isLoading()?5:-1),g(3),K("ngTemplateOutlet",i)("ngTemplateOutletContext",V(13,Oe,V(11,Ie,n.treeStructure()))),g(),F(!n.accepts()&&!n.isByBackupSettings()?9:-1),g(),b("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[Ce,ve,me,Pe,Ee,Te,ge,Me],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(spk-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{ee as a};
package/chunk-IDAED3OA.js DELETED
@@ -1 +0,0 @@
1
- import{f as a,g as b}from"./chunk-DE64A2ZS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-5RPDEEQ3.js";import"./chunk-67XQIEG5.js";import"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as createSourceDataForm,b as default};
package/chunk-IPC6G72N.js DELETED
@@ -1 +0,0 @@
1
- import{a as h}from"./chunk-B6DE3TTE.js";import"./chunk-VFVXE2DC.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import{b as v,c as G,e as L,f as w,j as U,o as K,q as X,r as x,t as V}from"./chunk-ZCT7SRIM.js";import"./chunk-OQHMS5HM.js";import{d as O,e as A}from"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import{A as y,a as b,c as R,g as N,l as E,m as $}from"./chunk-DNBOZ26J.js";import{h as B}from"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import{F as g,Hb as D,Ib as P,Jb as _,Mb as I,Nb as d,Oa as s,X as F,_a as T,_b as M,la as m,pb as C,qb as S,qc as k,ub as u,vb as r,wb as n,xb as l}from"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";var z=()=>["/"];function j(c,t){c&1&&(r(0,"spk-form-field")(1,"label",14),_(2,3),n(),l(3,"input",15),n())}var p=new x,f=class c{#e=F(R);#t=F(B);#o=F(h);#n=F(O);isImporting=m(!1);isSecureFile=m(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=m([]);onFileDropped(t){let e=t[0];if(e){let o=new FileReader;this.isSecureFile.set(e.type!=="application/json"),o.onload=this.#i.bind(this),o.readAsArrayBuffer(e)}}#i(t){let e=t.target?.result;this.importForm.patchValue({config:this.#r(e)})}#r(t){let e=new Uint8Array(t),o=e.byteLength,a="";for(let i=0;i<o;i++)a+=String.fromCharCode(e[i]);return btoa(a)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:t=>{let e=this.#o.addDraftBackup(t.data);this.#n.navigate(["/backup-draft",e])},error:t=>{this.#e.error(t.message)}})}static \u0275fac=function(e){return new(e||c)};static \u0275cmp=T({type:c,selectors:[["app-import"]],decls:19,vars:8,consts:()=>{let t;t=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,t=I(t);let e;e=$localize`Import Metadata`;let o;o=$localize`Save now`;let a;return a=$localize`Passphrase`,[t,e,o,a,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["accept",".json,.aes",3,"filesChange","files"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(e,o){e&1&&(r(0,"header")(1,"h3"),D(2,0),r(3,"div",4)(4,"button",5),l(5,"spk-icon"),n(),r(6,"button",6),d("click",function(){return o.submit()}),l(7,"spk-icon"),n()(),P(),n()(),r(8,"form",7)(9,"spk-file-upload",8),d("filesChange",function(i){return o.onFileDropped(i)}),n(),C(10,j,4,0,"spk-form-field"),r(11,"spk-toggle",9)(12,"label",10),_(13,1),n(),l(14,"input",11),n(),r(15,"spk-toggle",9)(16,"label",12),_(17,2),n(),l(18,"input",13),n()()),e&2&&(s(4),u("routerLink",k(7,z)),s(2),M("loader",o.isImporting()),u("disabled",o.isImporting()),s(2),u("formGroup",o.importForm),s(),u("files",o.selectedFile()),s(),S(o.isSecureFile()?10:-1))},dependencies:[V,U,G,v,L,w,K,X,A,E,b,N,y,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}spk-file-upload[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})};export{f as default};
package/chunk-JHVU3HSL.js DELETED
@@ -1 +0,0 @@
1
- import{a as h}from"./chunk-67XQIEG5.js";import{d as z,r as C}from"./chunk-ZCT7SRIM.js";import{h as v}from"./chunk-XD6MBGQY.js";import{S as P,X as k,la as b,r as S}from"./chunk-67YRCRMI.js";import{a as i}from"./chunk-EUDKD2JW.js";var g=class e{#e=k(v);s3Providers=h(this.getS3Config("Providers"));s3Regions=h(this.getS3Config("Regions"));s3RegionHosts=h(this.getS3Config("RegionHosts"));s3StorageClasses=h(this.getS3Config("StorageClasses"));storjSatellites=h(this.getStorjConfig("Satellites"));storjAuthenticationMethods=h(this.getStorjConfig("AuthenticationMethods"));openstackProviders=h(this.getOpenstackConfig("Providers"));openstackVersions=h(this.getOpenstackConfig("Versions"));gcsLocations=h(this.getGcsConfig("Locations"));gcsStorageClasses=h(this.getGcsConfig("StorageClasses"));getS3Config(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":t}}).pipe(S(o=>this.#t(o)))}createS3IamUser(t,o){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":t,"s3-password":o}})}createS3PolicyIAM(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:t}})}getStorjConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":t}}).pipe(S(o=>this.#t(o)))}getOpenstackConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":t}}).pipe(S(o=>this.#t(o)))}getGcsConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":t}}).pipe(S(o=>this.#t(o)))}#t(t){return(t.Result&&typeof t.Result=="object"&&Object.entries(t.Result).map(([o,r])=>({key:o,value:r})))??[]}static \u0275fac=function(o){return new(o||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})};var n=new C,l={type:"error",message:$localize`Using double leading slashes is most likely wrong, and will result in objects being created with a leading slash in the name.`},O={description:$localize`Unknown destination type`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path`,formElement:e=>n.control(e??"")}},mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path??""}${t}`},from:(e,t,o)=>{let a=o.startsWith(`${e}:///`)?o.split(`${e}:///`)[1]:o.split(`${e}://`)[1];return i({destinationType:e,custom:{path:a.split("?")[0]}},s(e,t))}}},V=[{key:"file",displayName:$localize`File system`,description:$localize`Store backups on your local file system.`,customFields:{path:{type:"FolderTree",name:"path",doubleSlash:l,shortDescription:$localize`File path`,longDescription:$localize`The path to store the backup`,formElement:e=>n.control(e??"")}},mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path??""}${t}`},from:(e,t,o)=>{let a=o.startsWith("file:///")?o.split("file:///")[1]:o.split("file://")[1],p=a.startsWith("%"),d=a.slice(1).startsWith(":\\")||p?a:"/"+a;return i({destinationType:e,custom:{path:d.split("?")[0]}},s(e,t))}}},{key:"ssh",displayName:$localize`SSH`,description:$localize`Store backups in SSH.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`The server to connect to`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`The port to connect to`,formElement:e=>n.control(e??"",[z.required,z.max(65535)])},path:{type:"Path",name:"path",shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,doubleSlash:{type:"warning",message:$localize`Using double leading slashes makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>n.control(e??"")}},dynamicFields:["auth-username"],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:$localize`This is a path to a private key file locally on the machine`,longDescription:$localize`This is a path to a private key file locally on the machine`}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:o,server:r,path:a}=e.custom;return`${e.destinationType}://${r+$(o)+u(a)+t}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"s3",displayName:$localize`S3 Compatible`,description:$localize`Store backups in any S3 compatible bucket.`,customFields:{bucket:{type:"String",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:l,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:$localize`Server`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(g).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(g).s3StorageClasses}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t+u(o)+r}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.pathname,bucket:t.hostname}},s(e,t))}},{key:"gcs",displayName:$localize`Google Cloud Storage`,description:$localize`Store backups in Google Cloud Storage.`,oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:l,shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(g).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(g).gcsStorageClasses},"authid"],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path??""}${t}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"googledrive",displayName:$localize`Google Drive`,description:$localize`Store backups in Google Drive.`,oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:l,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",type:"Password"}],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"pcloud",displayName:$localize`pCloud`,description:$localize`Store backups in pCloud.`,oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>b([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:l,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",type:"Password",oauthVersion:2}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{server:o,path:r}=e.custom;return`${e.destinationType}://${o+u(r)+t}`},from:(e,t,o)=>{let r=t.pathname.replace(/^\//,"");return i({destinationType:e,custom:{server:t.hostname,path:r}},s(e,t))}}},{key:"azure",displayName:$localize`Azure Blob Storage`,description:$localize`Store backups in Azure Blob Storage.`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Container name`,longDescription:$localize`Container name`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`},{name:"auth-password",shortDescription:$localize`Access key`}],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"onedrivev2",displayName:$localize`OneDrive`,description:$localize`Store backups in OneDrive.`,oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"od4b",displayName:$localize`OneDrive Business`,description:$localize`Store backups in OneDrive Business.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`},{name:"auth-password",shortDescription:$localize`Access key`}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:o,server:r,path:a}=e.custom;return`${e.destinationType}://${r+$(o)+u(a)+t}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"mssp",displayName:$localize`Microsoft SharePoint`,description:$localize`Store backups in Microsoft SharePoint.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`},{name:"auth-password",shortDescription:$localize`Access key`}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:o,server:r,path:a}=e.custom;return`${e.destinationType}://${r+$(o)+u(a)+t}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"sharepoint",displayName:$localize`Microsoft SharePoint v2`,description:$localize`Store backups in Microsoft SharePoint.`,oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["site-id","authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"dropbox",displayName:$localize`Dropbox`,description:$localize`Store backups in Dropbox.`,oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"box",displayName:$localize`Box.com`,description:$localize`Store backups in Box.com.`,oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"jottacloud",displayName:$localize`Jottacloud`,description:$localize`Store backups in Jottacloud.`,oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"b2",displayName:$localize`B2 Cloud Storage`,description:$localize`Store backups in B2 Cloud Storage.`,customFields:{bucket:{type:"String",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Application ID`},{name:"auth-password",shortDescription:$localize`Application Key`}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t+u(o)+r}`},from:(e,t,o)=>i({destinationType:e,custom:{bucket:t.hostname,path:decodeURIComponent(t.pathname)}},s(e,t))}},{key:"e2",displayName:$localize`IDrive e2`,description:$localize`Store backups in IDrive e2.`,customFields:{bucket:{type:"String",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Access ID`},{name:"auth-password",shortDescription:$localize`Access Secret`}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t+u(o)+r}`},from:(e,t,o)=>i({destinationType:e,custom:{bucket:t.hostname,path:t.pathname}},s(e,t))}},{key:"mega",displayName:$localize`Mega.nz`,description:$localize`Store backups in Mega.nz.`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`},{name:"auth-password",shortDescription:$localize`Password`}],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"msgroup",displayName:$localize`Microsoft Office 365 Group`,description:$localize`Store backups in Microsoft Office 365 Group.`,oauthField:"authid",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:$localize`Group email`,longDescription:$localize`Group email`,formElement:e=>n.control(e??"",[z.email])},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${t}${o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.hostname+t.pathname}},s(e,t))}},{key:"cloudfiles",displayName:$localize`Rackspace CloudFiles`,description:$localize`Store backups in Rackspace CloudFiles.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`},{name:"auth-password",shortDescription:$localize`Password`}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:o,server:r,path:a}=e.custom;return`${e.destinationType}://${r+$(o)+u(a)+t}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"rclone",displayName:$localize`Rclone`,description:$localize`Store backups in Rclone.`,dynamicFields:[{name:"rclone-local-repository",shortDescription:$localize`Local repository`,defaultValue:""},{name:"rclone-remote-repository",shortDescription:$localize`Remote repository`,defaultValue:""},{name:"rclone-remote-path",shortDescription:$localize`Path on remote repository`,defaultValue:""}],mapper:{to:e=>{let t=e.dynamic["rclone-remote-repository"],o=e.dynamic["rclone-remote-path"],r=Object.entries(e.dynamic).filter(([p])=>!["rclone-remote-repository","rclone-remote-path"].includes(p)),a=c([...Object.entries(e.advanced),...r]);return`${e.destinationType}://${t}/${o+a}`},from:(e,t,o)=>{let{advanced:r,dynamic:a}=s(e,t);return i({destinationType:e,dynamic:i({"rclone-remote-repository":t.hostname,"rclone-remote-path":t.pathname},a)},r)}}},{key:"openstack",displayName:$localize`OpenStack Object Storage`,description:$localize`Store backups in OpenStack Object Storage.`,customFields:{bucket:{type:"String",name:"bucket",shortDescription:$localize`Bucket`,longDescription:$localize`Bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"openstack-authuri",shortDescription:$localize`Auth URI`,type:"Enumeration",loadOptions:e=>e.get(g).openstackProviders},{name:"openstack-version",shortDescription:$localize`Version`,type:"Enumeration",loadOptions:e=>e.get(g).openstackVersions},{name:"openstack-domain-name",shortDescription:$localize`Domain name`},{name:"openstack-tenant-name",shortDescription:$localize`Tenant name`},{name:"openstack-region",shortDescription:$localize`Region`}],mapper:{to:e=>{let t=c([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{bucket:o}=e.custom;return`${e.destinationType}://${o+t}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.pathname,bucket:t.hostname}},s(e,t))}},{key:"webdav",displayName:$localize`WebDAV`,description:$localize`Store backups in WebDAV.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`},{name:"auth-username",shortDescription:$localize`Username`},{name:"auth-password",shortDescription:$localize`Password`}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom,a=e.dynamic["use-ssl"],p=c([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([m])=>m!=="use-ssl")]);return`${e.destinationType}${a?"s":""}://${o+$(t)+u(r)+p}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"aftp",displayName:$localize`FTP`,description:$localize`Store backups in FTP.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,doubleSlash:{type:"warning",message:$localize`Using double leading slashes makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`},{name:"auth-password",shortDescription:$localize`Password`}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom,a=c([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([p])=>p!=="use-ssl")]);return`${e.destinationType}://${o+$(t)+u(r)+a}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"sia",displayName:$localize`Sia Decentrilized Cloud`,description:$localize`Store backups in Sia Decentrilized Cloud.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let t=e.custom.server,o=e.dynamic["sia-targetpath"],r=c([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([a])=>a!=="sia-targetpath")]);return`${e.destinationType}://${t+u(o)+r}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.pathname}},s(e,t))}},{key:"cos",displayName:$localize`Tencent COS`,description:$localize`Store backups in Tencent COS.`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"cos-bucket",shortDescription:$localize`Bucket`,order:1},{name:"cos-region",shortDescription:$localize`Region`,order:2},{name:"cos-app-id",shortDescription:$localize`COS App Id`,order:3},{name:"cos-secret-id",shortDescription:$localize`COS Secret Id`,order:4},{name:"cos-secret-key",shortDescription:$localize`COS Secret Key`,order:5}],mapper:{to:e=>{let t=e.custom.path??"",o=c([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([r])=>r!=="cos-targetpath")]);return`${e.destinationType}://${t+o}`},from:(e,t,o)=>i({destinationType:e,custom:{path:t.pathname}},s(e,t))}},{key:"tahoe",displayName:$localize`Tahoe LAFS`,description:$localize`Store backups in Tahoe LAFS.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`}],mapper:{to:e=>{let{port:t,server:o,path:r,username:a,password:p}=e.custom,m={"auth-username":a,"auth-password":p},d=e.dynamic["use-ssl"],y=c([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([F])=>F!=="use-ssl"),...Object.entries(m)]);return`${e.destinationType}${d?"s":""}://${o+$(t)+u(r)+y}`},from:(e,t,o)=>i({destinationType:e,custom:{server:t.hostname,port:t.port,path:t.pathname}},s(e,t))}},{key:"cifs",displayName:$localize`CIFS`,description:$localize`Store backups in CIFS.`,customFields:{server:{type:"String",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??"")},share:{type:"String",name:"share",shortDescription:$localize`Share Name`,longDescription:$localize`Share Name`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["transport","auth-username","auth-password","auth-domain"],mapper:{to:e=>{let{share:t,server:o,path:r,username:a,password:p}=e.custom,m={"auth-username":a,"auth-password":p},d=new Map([...Object.entries(m),...Object.entries(e.advanced),...Object.entries(e.dynamic)]),y=c(Array.from(d));return`${e.destinationType}://${o+u(t)+u(r)+y}`},from:(e,t,o)=>{let r=t.pathname.split("/")[1],a=t.pathname.split("/").slice(2).join("/");return i({destinationType:e,custom:{server:t.hostname,share:r,path:a}},s(e,t))}}},{key:"filen",displayName:$localize`Filen.io`,description:$localize`Store backups in Filen.io.`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on Filen`,longDescription:$localize`Path on Filen`,formElement:e=>n.control(e??"")}},dynamicFields:["auth-username","auth-password"],mapper:{to:e=>{let{path:t,username:o,password:r}=e.custom,a={"auth-username":o,"auth-password":r},p=new Map([...Object.entries(a),...Object.entries(e.advanced),...Object.entries(e.dynamic)]),m=c(Array.from(p));return`${e.destinationType}://${t+m}`},from:(e,t,o)=>{let r=t.hostname??"";return t.pathname&&r!==""&&t.pathname[0]!="/"&&(r+="/"),r+=t.pathname,i({destinationType:e,custom:{path:r}},s(e,t))}}},{key:"filejump",displayName:$localize`Filejump`,description:$localize`Store backups in Filejump.`,customFields:{path:{type:"String",name:"path",doubleSlash:l,shortDescription:$localize`Path on Filejump`,longDescription:$localize`Path on Filejump`,formElement:e=>n.control(e??"")}},dynamicFields:[{type:"Password",name:"api-token",shortDescription:$localize`API Token`,longDescription:$localize`Filejump API Token`,formElement:e=>n.control(e??"")}],mapper:{to:e=>{let{path:t,username:o,password:r,apitoken:a}=e.custom,p=(a||"").trim()===""?{"auth-username":o,"auth-password":r}:{"api-token":a},m=new Map([...Object.entries(p),...Object.entries(e.advanced),...Object.entries(e.dynamic)]),d=c(Array.from(m));return`${e.destinationType}://${t+d}`},from:(e,t,o)=>{let r=t.hostname??"";return t.pathname&&r!==""&&t.pathname[0]!="/"&&(r+="/"),r+=t.pathname,i({destinationType:e,custom:{path:r}},s(e,t))}}},{key:"storj",customKey:"storjAccessGrant",displayName:$localize`Storj Access Grant`,description:$localize`Store backups in Storj Access Grant.`,dynamicFields:[{name:"storj-shared-access",shortDescription:$localize`Access Grant`},{name:"storj-bucket",shortDescription:$localize`Bucket`},{name:"storj-folder",shortDescription:$localize`Path on server`,doubleSlash:l}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=Access%20grant&storj-satellite=us1.storj.io%3A7777&storj-api-key&storj-secret&${c([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,t,o)=>i({destinationType:e},s(e,t))}},{key:"storj",customKey:"storjApiKey",displayName:$localize`Storj API Key`,description:$localize`Store backups in Storj API Key.`,dynamicFields:[{name:"storj-satellite",shortDescription:$localize`Satellite`,type:"Enumeration",loadOptions:e=>e.get(g).storjSatellites},{name:"storj-api-key",shortDescription:$localize`API Key`},{name:"storj-secret",shortDescription:$localize`Secret`},{name:"storj-bucket",shortDescription:$localize`Bucket`},{name:"storj-folder",shortDescription:$localize`Path on server`,doubleSlash:l}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=API%20key&${c([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,t,o)=>i({destinationType:e},s(e,t))}}],q={".amazonaws.com":"Amazon S3",".mycloudyplace.com":"MyCloudyPlace S3",".impossibleapi.net":"Impossible Cloud S3",".scw.cloud":"Scaleway S3",".hosteurope.de":"Hosteurope S3",".dunkel.de":"Dunkel S3",".dreamhost.com":"DreamHost S3",".dincloud.com":"dinCloud S3",".polisystems.ch":"Poli Systems S3",".softlayer.net":"IBM COS (S3)",".storadera.com":"Storadera S3",".wasabisys.com":"Wasabi S3",".infomaniak.com":"Infomaniak S3",".infomaniak.cloud":"Infomaniak S3",".sakurastorage.jp":"\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9 S3",".lyvecloud.seagate.com":"Seagate Lyve S3",".digitaloceanspaces.com":"DigitalOcean S3",".backblazeb2.com":"Backblaze B2 S3",".cloudian.com":"Cloudian S3",".min.io":"MinIO S3",".linodeobjects.com":"Linode S3",".bunnycdn.com":"BunnyCDN S3",".azure.com":"Microsoft Azure S3",".googleapis.com":"Google Cloud Storage S3",".ibm.com":"IBM Cloud S3",".oracle.com":"Oracle Cloud S3",".cloudflare.com":"Cloudflare S3",".alibaba.com":"Alibaba Cloud S3",".huawei.com":"Huawei Cloud S3",".tencent.com":"Tencent Cloud S3",".baidu.com":"Baidu Cloud S3",".jd.com":"JD Cloud S3",".ucloud.cn":"UCloud S3",".qiniu.com":"Qiniu Cloud S3",".aliyuncs.com":"Aliyun S3",".tcloud.com":"TCloud S3",".tencentcloudapi.com":"Tencent Cloud S3"};function $(e){return e==null||e===""?"":":"+e.toString()}function u(e){return e==null?"":e.startsWith("/")?e:"/"+e}function f(e){return V.find(o=>o.key===e||o.customKey===e)??i({key:e,displayName:e},O)}function s(e,t){let o={},r={},a=f(e);return t.searchParams.forEach((p,m)=>{a?.dynamicFields?.some(y=>y===m||y?.name===m)?r[m]=decodeURIComponent(p):o[m]=decodeURIComponent(p)}),{advanced:o,dynamic:r}}function c(e,t=!1){let o=e.map(([a,p])=>`${a}=${p?encodeURIComponent(p.toString()):""}`).join("&");return o?(t?"":"?")+o:""}function J(e){let t=e.destinationType??"";return f(t)?.mapper.to(e)??""}function Q(e){let t=URL.canParse(e),o=e.split("://")[0],r=e.split("://")[1],a="http://"+r;if(!r)return null;if(r.startsWith("%")&&o==="file")return f(o).mapper.from(o,new URL("http://localhost"),e);try{let p=new URL(a);if(p.host==="undefined")return null;let m=r.split("?")[0].split("/")[0],d=!isNaN(Number(p.host.replaceAll(".",""))),y=m.split("."),F=y.length===4&&y.every(D=>D.length&&D.length<=3&&!isNaN(Number(D))&&parseInt(D)<=255);return d&&!F?null:f(o).mapper.from(o,p,e)}catch{return null}}export{f as a,J as b,Q as c,q as d};
package/chunk-O3JEFNCL.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-Y7OD7PZG.js";import"./chunk-5MMV45NA.js";import"./chunk-HWUEL5ZO.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as OptionsListComponent};
package/chunk-OHEFY2D6.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-HE5L47WR.js")},{path:"destination",loadComponent:()=>import("./chunk-4WUC2NLU.js")},{path:"source-data",loadComponent:()=>import("./chunk-IDAED3OA.js")},{path:"schedule",loadComponent:()=>import("./chunk-V6WRFB7W.js")},{path:"options",loadComponent:()=>import("./chunk-Y4IRFRVB.js")}];export{o as default};
package/chunk-OTM4ZTG4.js DELETED
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-CFESUDFC.js";import{h as T}from"./chunk-DE64A2ZS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-5RPDEEQ3.js";import{a as m}from"./chunk-67XQIEG5.js";import"./chunk-NZD6UMYZ.js";import{a as L}from"./chunk-B6DE3TTE.js";import"./chunk-VFVXE2DC.js";import"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import"./chunk-3Q5JEF3K.js";import"./chunk-ZCT7SRIM.js";import"./chunk-OQHMS5HM.js";import{b as E,c as B,e as b,f as $}from"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import{p as M,q as N,v as I}from"./chunk-DNBOZ26J.js";import{h as K}from"./chunk-XD6MBGQY.js";import"./chunk-4VPA3END.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-JDCGGJ7O.js";import{E as C,Gc as O,Hb as d,Ib as c,Oa as n,Ob as R,X as l,_a as D,bc as A,dc as P,pb as k,pc as h,qb as g,sc as _,ub as u,vb as p,wb as s,xb as r}from"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";var G=(i,e)=>[i,e,"general"],y=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],w=(i,e)=>[i,e,"schedule"],X=(i,e)=>[i,e,"options"];function x(i,e){if(i&1&&(p(0,"p"),A(1),s()),i&2){let a=R();n(),P("Editing: ",a.backupName())}}function z(i,e){i&1&&r(0,"spk-progress-bar",6)}function j(i,e){i&1&&(p(0,"section"),r(1,"router-outlet"),s())}var f=class i{#t=l(E);#e=l(T);#a=l(L);#i=l(K);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=O(()=>{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(C(1)).subscribe({next:e=>{let a=e.Backup;a.Settings=[...a.Settings],this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(a),this.#e.applicationOptions.set(e.ApplicationOptions),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=D({type:i,selectors:[["app-backup"]],features:[h([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#18\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&&(r(0,"app-status-bar"),p(1,"header"),k(2,x,2,1,"p"),p(3,"spk-stepper")(4,"div",5),d(5,0),r(6,"spk-radio"),c(),s(),p(7,"div",5),d(8,1),r(9,"spk-radio"),c(),s(),p(10,"div",5),d(11,2),r(12,"spk-radio"),c(),s(),p(13,"div",5),d(14,3),r(15,"spk-radio"),c(),s(),p(16,"div",5),d(17,4),r(18,"spk-radio"),c(),s()()(),k(19,z,1,0,"spk-progress-bar",6)(20,j,2,0,"section")),a&2&&(n(2),g(t.isNew()?-1:2),n(2),u("routerLink",_(7,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",_(10,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",_(13,U,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",_(16,w,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",_(19,X,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),g(t.finishedLoading()?20:19))},dependencies:[B,b,$,v,N,I,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}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{f as default};
package/chunk-SAISKISU.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-7J7GUBLS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-67XQIEG5.js";import"./chunk-FC45TEB6.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
package/chunk-SMNWIGMY.js DELETED
@@ -1 +0,0 @@
1
- import{a as ke,c as $e,d as L}from"./chunk-5RPDEEQ3.js";import{a as Re}from"./chunk-67XQIEG5.js";import{a as ue}from"./chunk-B6DE3TTE.js";import"./chunk-VFVXE2DC.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import{b as Te,c as Pe,d as S,e as Ce,f as Ee,j as me,o as Se,q as ge,r as fe,t as Oe}from"./chunk-ZCT7SRIM.js";import"./chunk-OQHMS5HM.js";import{b as te,d as ne,e as ie}from"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import{A as ce,C as Fe,a as re,b as se,f as ae,g as le,l as _e,p as pe}from"./chunk-DNBOZ26J.js";import{c as oe,h as de}from"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import{Bb as I,F as M,Fc as N,Gc as B,Hb as p,Ib as c,Jb as E,Kb as y,Lb as h,Mb as X,N as J,Nb as m,Oa as s,Ob as u,X as T,_a as W,_b as f,ba as A,bc as D,ca as w,cc as Y,ec as Z,la as P,pb as F,qb as d,qc as ee,ub as C,vb as a,wb as r,xb as _}from"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";var xe=()=>["/"];function Ae(t,o){t&1&&(a(0,"spk-toggle",23),p(1,5),_(2,"input",26),c(),r())}function we(t,o){t&1&&(a(0,"span",29),E(1,9),r())}function De(t,o){if(t&1&&(a(0,"span",29),E(1,10),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.password.errors==null?null:e.exportForm.controls.password.errors.minlength.requiredLength),h(1)}}function Ne(t,o){if(t&1&&_(0,"spk-progress-bar",36),t&2){let e=u(2);f("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),C("value",e.calculatePasswordStrength()*(100/5))}}function Me(t,o){t&1&&(a(0,"span",29),E(1,11),r())}function Ie(t,o){t&1&&(a(0,"span",29),E(1,12),r())}function ye(t,o){if(t&1&&(a(0,"span",29),E(1,13),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.repeatPassword.errors==null?null:e.exportForm.controls.repeatPassword.errors.minlength.requiredLength),h(1)}}function he(t,o){t&1&&(p(0,7,1),_(1,"spk-icon"),c())}function Xe(t,o){t&1&&(p(0,7,2),_(1,"spk-icon"),c())}function Be(t,o){t&1&&(p(0,14,1),_(1,"spk-icon",38),c())}function Le(t,o){t&1&&(p(0,14,2),_(1,"spk-icon"),c())}function be(t,o){if(t&1){let e=I();a(0,"button",37),m("click",function(){A(e);let i=u(2);return w(i.copyPassword())}),p(1,14),F(2,Be,2,0)(3,Le,2,0),c(),r()}if(t&2){let e=u(2);s(2),d(e.copiedPassword()?2:3)}}function ve(t,o){t&1&&(a(0,"spk-alert",35),E(1,15),r())}function Ge(t,o){if(t&1){let e=I();a(0,"div",24)(1,"spk-form-field")(2,"label",27),p(3,6),_(4,"sup"),c(),r(),_(5,"input",28),F(6,we,2,0,"span",29)(7,De,2,1,"span",29),r(),F(8,Ne,1,9,"spk-progress-bar",30),a(9,"spk-form-field"),_(10,"input",31),F(11,Me,2,0,"span",29)(12,Ie,2,0,"span",29)(13,ye,2,1,"span",29),r(),a(14,"div",32)(15,"button",33),m("click",function(){A(e);let i=u();return w(i.showPassword.set(!i.showPassword()))}),p(16,7),F(17,he,2,0)(18,Xe,2,0),c(),r(),a(19,"button",33),m("click",function(){A(e);let i=u();return w(i.generatePassword())}),p(20,8),_(21,"spk-icon"),c(),r(),F(22,be,4,1,"button",34),r(),F(23,ve,2,0,"spk-alert",35),r()}if(t&2){let e=u();s(5),C("type",e.showPassword()?"text":"password"),s(),d(e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.required?6:e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.minlength?7:-1),s(2),d(e.exportForm.value.password?8:-1),s(2),C("type",e.showPassword()?"text":"password"),s(),d(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.required?12:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.minlength?13:-1),s(6),d(e.showPassword()?17:18),s(5),d(e.showCopyPassword()?22:-1),s(),d(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1)}}function Ke(t,o){if(t&1&&(a(0,"div",25)(1,"code"),D(2),r()()),t&2){let e=u();s(2),Y(e.exportedCmd())}}var O=new fe,b=class t{#o=T(ke);#t=T(de);#e=T(te);#n=T(ne);#i=T(oe);#r=T(ue);isExporting=P(!1);exportType=P("file");exportedCmd=P(null);exportForm=O.group({exportPasswords:O.control(!0),encryption:O.control(!1,[S.required,$e()]),password:O.control("",[L("encryption",!0,[S.required,S.minLength(3)])]),repeatPassword:O.control("",[L("encryption",!0,[S.required,S.minLength(3)])])});exportFormSignal=Re(this.exportForm.valueChanges);encryptionFieldSignal=N(()=>(this.exportFormSignal()?.encryption??!1)&&this.exportType()==="file");activeBackup=N(()=>this.#r.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=P(!1);copiedPassword=P(!1);showCopyPassword=P(!1);calculatePasswordStrength=N(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=B(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity()});disablePasswordForCommandLine=B(()=>{this.exportType()==="cmd"&&this.exportForm.controls.encryption.setValue(!1)});submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(J(o=>{let e=i=>{let g=Object.entries(i);return g?"?"+g.map(([R,k])=>`${R}=${k}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0;return this.#i.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob"})}),M(()=>this.isExporting.set(!1))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",i=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${i}`),this.#n.navigate(["/"])},error:o=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(M(()=>this.isExporting.set(!1))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null)},error:o=>{}})}downloadFile(o,e){let n=window.URL.createObjectURL(o),i=document.createElement("a");i.href=n,i.download=e,i.click(),window.URL.revokeObjectURL(n)}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#s(o??""),this.copiedPassword.set(!0)}async#s(o){try{await navigator.clipboard.writeText(o)}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}generatePassword(){this.copiedPassword.set(!1);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=W({type:t,selectors:[["app-export"]],decls:26,vars:15,consts:()=>{let o;o=$localize`Remember to copy the password`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let i;i=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let g;g=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let R;R=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let v;v=$localize`Password`;let G;G=$localize`Repeat password`;let K;K=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let $;$=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,$=X($);let U;U=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let z;z=$localize`Passwords are required`;let V;V=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let q;q=$localize`Passwords do not match`;let j;j=$localize`Passwords are required`;let H;H=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let x;x=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,x=X(x);let Q;return Q=$localize` Tip: Be sure to save your password. If you lose it, you will lose access to your backups. `,[e,n,i,g,R,k,K,$,U,z,V,q,j,H,x,Q,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","","spkTooltip",o,1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",v,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",G,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]]},template:function(e,n){if(e&1&&(a(0,"header")(1,"h3"),D(2," Export backup configuration "),a(3,"div",16)(4,"button",17),p(5,0),_(6,"spk-icon"),c(),r(),a(7,"button",18),m("click",function(){return n.submit()}),p(8,1),_(9,"spk-icon"),c(),r()()(),a(10,"p"),D(11),r()(),a(12,"form",19)(13,"spk-button-group")(14,"button",20),m("click",function(){return n.exportType.set("cmd")}),p(15,2),_(16,"spk-icon"),c(),r(),a(17,"button",20),m("click",function(){return n.exportType.set("file")}),p(18,3),_(19,"spk-icon"),c(),r()(),a(20,"spk-toggle",21),p(21,4),_(22,"input",22),c(),r(),F(23,Ae,3,0,"spk-toggle",23),F(24,Ge,24,8,"div",24),F(25,Ke,3,1,"div",25),r()),e&2){let i;s(4),C("routerLink",ee(14,xe)),s(3),f("loading",n.isExporting()),C("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()),s(4),Z("#",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.ID,": ",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.Name),s(),C("formGroup",n.exportForm),s(2),f("active",n.exportType()==="cmd"),s(3),f("active",n.exportType()==="file"),s(6),d(n.exportType()==="file"?23:-1),s(),d(n.encryptionFieldSignal()?24:-1),s(),d(n.exportedCmd()?25:-1)}},dependencies:[Oe,me,Pe,Te,Ce,Ee,Se,ge,ie,ae,ce,re,_e,le,se,pe,Fe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-8)}.hide[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{b as default};
package/chunk-SSMDFXE3.js DELETED
@@ -1 +0,0 @@
1
- import{g as mt}from"./chunk-7J7GUBLS.js";import{a as dt,b as Dt,c as St}from"./chunk-HD37ILAE.js";import"./chunk-L6BZ6TEU.js";import"./chunk-5MMV45NA.js";import"./chunk-JHVU3HSL.js";import{h as L}from"./chunk-DE64A2ZS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-5RPDEEQ3.js";import"./chunk-67XQIEG5.js";import{a as b}from"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import{c as lt,e as ct,f as _t,g as ut,i as Tt,j as pt,s as gt}from"./chunk-ZCT7SRIM.js";import{b as et,d as nt}from"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import{a as it,b as ot,d as at,e as rt,l as st,o as Ft}from"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import{Bb as d,F as G,Fc as k,Gc as Z,Hb as D,Ib as S,Jb as O,Kb as K,Lb as z,Mb as X,Mc as tt,Nb as u,Oa as F,Ob as l,Wb as j,X as T,Xb as H,_a as W,_b as Q,ba as c,bc as f,ca as _,cc as x,dc as q,fa as V,gc as R,hc as N,ic as I,la as p,pb as E,pc as Y,qb as C,qc as J,rb as A,sb as $,tb as M,ub as y,vb as a,wb as r,xb as g,yb as h,zb as P}from"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";var Et=["formRef"],Ct=()=>({maxWidth:"700px",width:"100%"});function Ot(o,i){o&1&&(D(0,2,2),g(1,"spk-icon"),S())}function ft(o,i){o&1&&O(0,2,3)}function Rt(o,i){if(o&1){let t=d();D(0,2,1),a(1,"button",16),u("click",function(){c(t);let e=l();return _(e.testDestination())}),E(2,Ot,2,0)(3,ft,1,0),r(),S()}if(o&2){let t=l();F(),Q("loader",t.testLoading())("success",t.successfulTest()),F(),C(t.successfulTest()?2:3)}}function Nt(o,i){if(o&1){let t=d();a(0,"p",22),u("click",function(){c(t);let e=l();return _(e.removeDestination())}),D(1,5),g(2,"strong")(3,"br")(4,"span",23),S(),r()}if(o&2){let t,n=l();F(4),K((t=n.selectedDestinationType())==null?null:t.displayName),z(1)}}function It(o,i){if(o&1){let t=d();a(0,"div",29),u("click",function(){let e=c(t).$implicit,s=l(2);return _(s.setDestination(e.key))}),a(1,"h3"),f(2),r(),a(3,"p"),f(4),r()()}if(o&2){let t=i.$implicit;F(2),x(t.displayName),F(2),x(t.description)}}function kt(o,i){if(o&1){let t=d();a(0,"button",30,1),u("click",function(){let e=c(t).$implicit,s=l(2);return _(s.setDestination(e.key))}),f(2),r()}if(o&2){let t=i.$implicit;F(2),q(" ",t.displayName," ")}}function At(o,i){if(o&1&&(a(0,"div",24),$(1,It,5,2,"div",25,A),r(),a(3,"spk-menu",26)(4,"button",27),O(5,6),r(),h(6,15),$(7,kt,3,1,"button",28,A),P(),r()),o&2){let t=l();F(),M(t.destinationTypeOptionsFocused()),F(2),y("searchable",!0),F(4),M(t.destinationTypeOptionsNotFocused())}}function $t(o,i){if(o&1){let t=d();a(0,"app-single-destination",31),I("targetUrlChange",function(e){c(t);let s=l();return N(s.targetUrlModel,e)||(s.targetUrlModel=e),_(e)}),r()}if(o&2){let t=l();R("targetUrl",t.targetUrlModel)}}function Mt(o,i){if(o&1){let t=d();a(0,"spk-dialog",32),I("isOpenChange",function(e){c(t);let s=l();return N(s.targetUrlDialogOpen,e)||(s.targetUrlDialogOpen=e),_(e)}),a(1,"header",33)(2,"h2"),O(3,7),r(),a(4,"spk-alert",34),O(5,8),r()(),a(6,"div",35)(7,"spk-form-field")(8,"textarea",36),I("ngModelChange",function(e){c(t);let s=l();return N(s.targetUrlCtrl,e)||(s.targetUrlCtrl=e),_(e)}),r()()(),a(9,"footer",37)(10,"button",19),u("click",function(){c(t);let e=l();return _(e.closeTargetUrlDialog(!1))}),f(11,"Cancel"),r(),a(12,"button",38),u("click",function(){c(t);let e=l();return _(e.closeTargetUrlDialog(!0))}),D(13,9),g(14,"spk-icon"),S(),r()()()}if(o&2){let t=l();R("isOpen",t.targetUrlDialogOpen),y("options",J(3,Ct)),F(8),R("ngModel",t.targetUrlCtrl)}}var w=class o{#e=T(nt);#n=T(et);#t=T(L);#i=T(rt);#o=T(dt);injector=T(V);#a=T(mt);#r=T(Dt);formRef=tt.required("formRef");targetUrlModel=this.#t.targetUrlModel;targetUrlCtrl=p(null);targetUrlInitial=p(null);targetUrlDialogOpen=p(!1);toggleNewDestination=p(!0);targetUrlEffect=Z(()=>{let i=this.#t.targetUrlModel();this.#a.updateTargetUrl(i??null)});successfulTest=p(!1);testLoading=p(!1);destinationTypeOptionsInFocus=p(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=this.#r.destinationTypeOptions;destinationTypeOptionsFocused=k(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(n=>t.find(e=>e.key===n))});selectedDestinationType=k(()=>{let i=this.#t.targetUrlModel();if(!i)return null;let t=i.split("://")[0];return this.destinationTypeOptions().find(e=>t===e.key)});destinationTypeOptionsNotFocused=k(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(n=>!i.includes(n.key))});openTargetUrlDialog(){let i=this.#t.targetUrlModel();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||t===n||!t||this.#t.setTargetUrl(t)}testDestination(i=0){let t=this.#t.targetUrlModel();t&&(this.testLoading.set(!0),this.#o.testDestination(t,i,!0).pipe(G(()=>this.testLoading.set(!1))).subscribe({next:n=>{if(n.action==="success"){this.#t.isNew()&&(n.containsBackup===!0?this.#i.open(b,{data:{title:$localize`Folder contains backup`,message:$localize`The remote destination already contains a backup. You must use a different folder for each backup.`,confirmText:$localize`OK`,cancelText:void 0}}):n.anyFilesFound===!0&&this.#i.open(b,{data:{title:$localize`Folder is not empty`,message:$localize`The remote destination is not empty. It is recommended to use an empty folder for the backup.`,confirmText:$localize`OK`,cancelText:void 0}})),this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3);return}if(n.action==="generic-error"){this.successfulTest.set(!1);return}let e=t.includes("?");n.action==="trust-cert"&&this.#t.setTargetUrl(t+`${e?"&":"?"}accept-specified-ssl-hash=${n.certData}`),n.action==="approve-host-key"&&this.#t.setTargetUrl(t+`${e?"&":"?"}ssh-fingerprint=${n.reportedHostKey}`),n.testAgain&&this.testDestination(n.destinationIndex)}}))}setDestination(i){this.#t.setTargetUrl(`${i}://`)}removeDestination(){this.#t.setTargetUrl(null)}goBack(){this.#e.navigate(["general"],{relativeTo:this.#n.parent})}next(){this.#t.isNew()||this.#t.submit(!0),this.#e.navigate(["encryption"],{relativeTo:this.#n.parent})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=W({type:o,selectors:[["app-restore-destination"]],viewQuery:function(t,n){t&1&&j(n.formRef,Et,5),t&2&&H()},features:[Y([L])],decls:24,vars:5,consts:()=>{let i;i=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=X(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let n;n=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let e;e=$localize` Current destination type ${"\uFFFD#2\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:.${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#3\uFFFD\uFFFD/#3\uFFFD"}:LINE_BREAK: Want to select another? ${"\uFFFD#4\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPAN:`;let s;s=$localize`Other destinations`;let U;U=$localize`Edit target URL`;let v;v=$localize` Be careful, this will overwrite everything you have in your destination. `;let B;return B=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],i,t,n,e,s,U,v,B,[3,"submit"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"loader","success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],[3,"targetUrl"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1){let e=d();a(0,"form",10,0),u("submit",function(){return c(e),_(n.next())}),a(2,"header")(3,"h3",11),D(4,2),a(5,"div",12),E(6,Rt,4,5,"button",13),a(7,"spk-menu")(8,"button",14),g(9,"spk-icon"),r(),h(10,15),a(11,"button",16),u("click",function(){return c(e),_(n.openTargetUrlDialog())}),g(12,"spk-icon"),r(),P(),r()(),S(),r(),E(13,Nt,5,1,"p"),r(),E(14,At,9,1),E(15,$t,1,1,"app-single-destination",17),a(16,"div",18)(17,"button",19),u("click",function(){return c(e),_(n.goBack())}),D(18,3),g(19,"spk-icon"),S(),r(),a(20,"button",20),D(21,4),g(22,"spk-icon"),S(),r()()(),E(23,Mt,15,4,"spk-dialog",21)}if(t&2){let e=!!n.targetUrlModel();F(6),C(e?-1:6),F(7),C(e?13:-1),F(),C(e?-1:14),F(),C(e?15:-1),F(8),C(n.targetUrlDialogOpen()?23:-1)}},dependencies:[St,gt,pt,lt,ct,_t,Tt,ut,st,Ft,it,at,ot],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{w as default};
package/chunk-UWF5JLY2.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-7J7GUBLS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-67XQIEG5.js";import"./chunk-FC45TEB6.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-V6WRFB7W.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,e as b}from"./chunk-DE64A2ZS.js";import"./chunk-HWUEL5ZO.js";import"./chunk-ZIJ7ZEHR.js";import"./chunk-5RPDEEQ3.js";import"./chunk-67XQIEG5.js";import"./chunk-FC45TEB6.js";import"./chunk-RHW5QVAY.js";import"./chunk-BHSG643V.js";import"./chunk-ZCT7SRIM.js";import"./chunk-DQM3ATT4.js";import"./chunk-BSRYIN2F.js";import"./chunk-DNBOZ26J.js";import"./chunk-XD6MBGQY.js";import"./chunk-GP2W7XZF.js";import"./chunk-WIDMAJIO.js";import"./chunk-67YRCRMI.js";import"./chunk-EUDKD2JW.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
package/chunk-VFVXE2DC.js DELETED
@@ -1 +0,0 @@
1
- import{a as G}from"./chunk-BHSG643V.js";import{b as P,d as $}from"./chunk-OQHMS5HM.js";import{e as g}from"./chunk-DNBOZ26J.js";import{h as W}from"./chunk-XD6MBGQY.js";import{qa as M}from"./chunk-GP2W7XZF.js";import{Fc as h,Gc as w,Hb as O,Ib as R,Jb as N,Kb as _,Lb as I,O as k,Oa as T,S as d,X as r,_a as C,i as m,la as n,uc as A,vb as D,wb as v,wc as F,xb as E}from"./chunk-67YRCRMI.js";var S=class s{reconnectTimer=n(15e3);countdown=n(0);connectTimerEffect=w(()=>{let e=this.reconnectTimer();this.countdown.set(e/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=C({type:s,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let e;e=$localize`Reconnecting...`;let t;return t=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[e,t,["header",""],["content",""]]},template:function(t,o){t&1&&(D(0,"header",2)(1,"h3"),N(2,0),v()(),D(3,"div",3)(4,"p"),O(5,1),E(6,"strong"),A(7,"number"),R(),v()()),t&2&&(T(7),_(F(7,1,o.countdown(),"2.0-0")),I(5))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var f=class s{dialog=r(g);#n=r(W);#o=n("disconnected");#e=n(null);#t=n(-1);#a=n(0);#c=n(!1);#r=new m;connectionStatus=this.#o.asReadonly();serverState=this.#e.asReadonly();#l=void 0;duration=r(P).relayIsEnabled()?"94s":"299s";start(){this.#c.set(!0),this.#r=new m,this.#s()}stop(){this.#r.next(),this.#r.complete(),this.#c.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){this.#c()||this.reconnect()}#s(){this.#o.set("connecting"),this.#n.getApiV1Serverstate({lastEventId:this.#t(),longpoll:this.#t()>=0,duration:this.duration}).pipe(k(this.#r)).subscribe({next:e=>{e&&this.#i(e),this.#u()},error:e=>{let o=this.#a()+1,a=Math.min(5e3*o,3e4);this.#a.set(o),o>3&&this.#o.set("disconnected"),this.#l||(this.#l=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#l.component.reconnectTimer.set(a),setTimeout(()=>{this.#s()},a)}})}#i(e){this.#o.set("connected"),this.#e.set(e),this.#t.set(e.LastEventID??-1),this.#a.set(0)}#u(){this.#c()&&this.#s()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var u=!1,b=class s{#n=r($);#o=r(G);dialog=r(g);#e=null;#t=n("disconnected");#a=n(null);#c=n(null);#r=n(null);#l=n(null);#s=void 0;#i=n({legacystatus:!0});shouldConnect=n(!0);connectionStatus=this.#t.asReadonly();serverState=this.#a.asReadonly();serverProgress=this.#c.asReadonly();subscriptions=this.#i.asReadonly();serverTaskQueue=this.#r.asReadonly();backupListState=this.#l.asReadonly();#u=0;start(){this.#p(),this.shouldConnect.set(!0)}#p(){let e=this.#n.token();if(!e){console.error("No access token available");return}let t=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(o=":8200");let a=window.location.hostname,j=this.#o.hasWebSocketAuth()?`${t}//${a}${o}/notifications`:`${t}//${a}${o}/notifications?token=${e}`;this.#t.set("connecting"),this.#e=new WebSocket(j),this.#e.onopen=()=>{u&&console.log("WebSocket connection established"),this.#o.hasWebSocketAuth()?(this.#t.set("authenticating"),this.#e?.send(JSON.stringify({Version:1,Token:e}))):this.#d()},this.#e.onmessage=p=>{if(this.#t()==="authenticating")try{let i=JSON.parse(p.data);i.Success?(u&&console.log("WebSocket authentication successful"),this.#d()):(console.error("WebSocket authentication failed:",i.Message),this.#t.set("disconnected"));return}catch(i){console.error("Error parsing WebSocket authentication reply",i),this.#t.set("disconnected");return}try{let i=JSON.parse(p.data),l=i?.Type;if(l==="legacystatus"||l==null)u&&console.log("Received legacy status update:",i),this.#a.set(i);else if(l==="reply"){let c=i;c.Success||console.error("WebSocket reply error:",c.Message)}else if(l==="progress"){let c=i;u&&console.log("Received progress update:",c.Data),this.#c.set(c.Data)}else if(l==="taskqueue"){let c=i;u&&console.log("Received task update:",c.Data),this.#r.set(c.Data)}else if(l==="backuplist"){let c=i;u&&console.log("Received backup list update:",c.Data),this.#l.set(c.Data)}else console.warn("Unknown WebSocket message type:",l)}catch(i){console.error("Error parsing WebSocket message",i)}},this.#e.onclose=p=>{u&&console.log("WebSocket connection closed",p),this.#t.set("disconnected"),this.shouldConnect()&&(this.#s||(this.#s=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#s.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#p(),5e3))},this.#e.onerror=p=>{console.error("WebSocket error",p),this.#t.set("disconnected")}}#d(){this.#t.set("connected");let e=this.#i();Object.keys(e).length>0&&Object.entries(e).forEach(([t,o])=>{o!=null&&this.sendSubscribeRequest(t,o)}),this.#s&&this.#s.close()}stop(){this.shouldConnect.set(!1),this.#e?.close()}reconnect(){this.#e?.close(),this.start()}reconnectIfNeeded(){this.#e?.readyState!==WebSocket.OPEN&&this.reconnect()}sendSubscribeRequest(e,t){this.#e?.send(JSON.stringify({Version:1,Id:`req-${++this.#u}`,Action:"sub",Service:e,Data:t||null}))}subscribe(e,t=void 0){let o=this.#i(),a=o[e];(!a||JSON.stringify(a)!==JSON.stringify(t))&&(o[e]=t||!0,this.#i.set(o),this.#t()=="connected"&&this.sendSubscribeRequest(e,t))}unsubscribe(e){let t=this.#i();t[e]&&(delete t[e],this.#i.set(t),this.#t()=="connected"&&this.#e?.send(JSON.stringify({Version:1,Id:`req-${++this.#u}`,Action:"unsub",Service:e})))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var L=class s{#n=r(b);#o=r(f);#e=n("longpoll");#t=n(!1);connectionStatus=h(()=>this.#e()==="websocket"?this.#n.connectionStatus():this.#o.connectionStatus());isConnectionMethodSet=this.#t.asReadonly();serverState=h(()=>this.#e()==="websocket"?this.#n.serverState():this.#o.serverState());progressState=h(()=>this.#n.serverProgress());taskQueueState=h(()=>this.#n.serverTaskQueue());backupListState=h(()=>this.#n.backupListState());setConnectionMethod(e){e==="websocket"?(this.#n.reconnectIfNeeded(),this.#o.stop()):(this.#o.reconnectIfNeeded(),this.#n.stop()),this.#e.set(e),this.#t.set(!0)}getConnectionMethod(){return this.#e()}subscribe(e,t=null){this.#n.subscribe(e,t)}unsubscribe(e){this.#n.unsubscribe(e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};export{L as a};