@duplicati/ngclient 0.0.98 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/spk.woff2 +0 -0
- package/chunk-2SGDSXNW.js +1 -0
- package/chunk-2VHTET54.js +1 -0
- package/chunk-36ZZ3COU.js +1 -0
- package/{chunk-L7XUXGTC.js → chunk-3IZBE2NA.js} +1 -1
- package/chunk-3NDOYD25.js +1 -0
- package/chunk-3UJUWE5B.js +1 -0
- package/chunk-3V622MYY.js +1 -0
- package/chunk-436ZVGPO.js +1 -0
- package/{chunk-VGNOUHVL.js → chunk-4FF7PF7J.js} +1 -1
- package/chunk-54SNAQYD.js +1 -0
- package/chunk-643UNOPE.js +1 -0
- package/chunk-6TNJS5KT.js +1 -0
- package/chunk-7QUJNAXH.js +1 -0
- package/chunk-ACN637D7.js +1 -0
- package/chunk-AHX7BWQR.js +1 -0
- package/chunk-AN4FSLGT.js +1 -0
- package/chunk-ASEBN4DE.js +1 -0
- package/chunk-B4U66F2Q.js +1 -0
- package/chunk-BA7NYTFR.js +1 -0
- package/chunk-BKWTKAB4.js +1 -0
- package/{chunk-QZEFXB74.js → chunk-BWYJMRKB.js} +1 -1
- package/chunk-CEOO3F5U.js +1 -0
- package/chunk-D5WIWFNP.js +1 -0
- package/{chunk-FXYF7V3T.js → chunk-DJWNLIDJ.js} +1 -1
- package/chunk-DRBDCRHV.js +1 -0
- package/{chunk-PQ6MLKHT.js → chunk-E2LHQGCK.js} +1 -1
- package/chunk-EKIFJPZJ.js +1 -0
- package/{chunk-RIM5NXPM.js → chunk-EO2PLY2Q.js} +1 -1
- package/{chunk-PZY4BMZL.js → chunk-FDMBNUIK.js} +1 -1
- package/{chunk-I5VNBLZK.js → chunk-FKTH6XCB.js} +1 -1
- package/chunk-FQPH5MIV.js +2 -0
- package/chunk-FRXAEGHW.js +1 -0
- package/chunk-FXLWWVAS.js +1 -0
- package/chunk-HFRBCV47.js +8 -0
- package/chunk-I3TLRILF.js +1 -0
- package/{chunk-SBHSCERN.js → chunk-I457VUEG.js} +1 -1
- package/{chunk-J242X4NN.js → chunk-ISRMJKPG.js} +1 -1
- package/chunk-J6XKFGF5.js +2 -0
- package/{chunk-BSJ6OMWB.js → chunk-JJQARMUD.js} +1 -1
- package/{chunk-VDB64BFB.js → chunk-K3CYM6ID.js} +1 -1
- package/{chunk-H5SFF5D7.js → chunk-KABJYPCP.js} +1 -1
- package/chunk-LBZ753XE.js +1 -0
- package/chunk-LVHLXMSY.js +1 -0
- package/chunk-M7VDIUGU.js +1 -0
- package/{chunk-46YKZZQG.js → chunk-MEQPT4C3.js} +1 -1
- package/chunk-MIASAENR.js +3 -0
- package/chunk-MYK7A3PZ.js +1 -0
- package/{chunk-Z5KSF3LW.js → chunk-NFME267J.js} +1 -1
- package/chunk-O6GWHO26.js +1 -0
- package/chunk-OH33D663.js +1 -0
- package/{chunk-3UY6NFJH.js → chunk-PFAU4FFV.js} +1 -1
- package/chunk-PGUALKQ6.js +1 -0
- package/chunk-PPKU3R4J.js +1 -0
- package/{chunk-UNV7VK4Z.js → chunk-PX6A6XCQ.js} +1 -1
- package/chunk-QFKEUN2J.js +1 -0
- package/chunk-RHW5QVAY.js +1 -0
- package/chunk-RQSCZC6C.js +1 -0
- package/chunk-SFWQDWHT.js +1 -0
- package/chunk-SYZYJSXM.js +8 -0
- package/chunk-TLY4PQBT.js +1 -0
- package/chunk-UJZB6UQE.js +1 -0
- package/chunk-UXWTPWS6.js +1 -0
- package/{chunk-FYKL2LOY.js → chunk-VRGLHRK2.js} +1 -1
- package/{chunk-BCSA6WFY.js → chunk-WCLOWI5G.js} +1 -1
- package/chunk-WSLU6K4D.js +1 -0
- package/chunk-XGARKXE4.js +7 -0
- package/chunk-XH2A67YP.js +1 -0
- package/chunk-XQKR67WI.js +1 -0
- package/chunk-YPSSTA3J.js +1 -0
- package/chunk-YTJB3DGU.js +1 -0
- package/chunk-ZHAXIU33.js +1 -0
- package/chunk-ZP273LXY.js +1 -0
- package/index.html +2 -2
- package/main-ZJBIDZ3R.js +1 -0
- package/package.json +1 -1
- package/{styles-GQ3J35VN.css → styles-2KPDWK5U.css} +1 -1
- package/chunk-25TWFWOC.js +0 -1
- package/chunk-2X7AJBJY.js +0 -1
- package/chunk-3CRLUTKZ.js +0 -6
- package/chunk-3WHFK5U5.js +0 -1
- package/chunk-5CB3EQEQ.js +0 -1
- package/chunk-5WXAGJAM.js +0 -3
- package/chunk-64CRTZO6.js +0 -1
- package/chunk-6LVF5Q7U.js +0 -1
- package/chunk-7I2OB6KM.js +0 -1
- package/chunk-AKURWKKM.js +0 -1
- package/chunk-BGEONYDG.js +0 -1
- package/chunk-BUHABQCR.js +0 -1
- package/chunk-C36EIFZ5.js +0 -1
- package/chunk-C4WJIBJ4.js +0 -1
- package/chunk-E5PZ2WTR.js +0 -1
- package/chunk-ERQAUCCL.js +0 -1
- package/chunk-F2L6ATMF.js +0 -1
- package/chunk-FXQBVRVU.js +0 -1
- package/chunk-GY445E4I.js +0 -1
- package/chunk-HJXCC47N.js +0 -6
- package/chunk-I6XPZQ7N.js +0 -1
- package/chunk-IN4ROBMK.js +0 -1
- package/chunk-KA2H467C.js +0 -1
- package/chunk-KCEYQGRU.js +0 -1
- package/chunk-KW2XPLTZ.js +0 -1
- package/chunk-LDGR7NUE.js +0 -1
- package/chunk-LLNGOQQI.js +0 -1
- package/chunk-NQYRWS7A.js +0 -1
- package/chunk-OL234C52.js +0 -1
- package/chunk-OLIPUVMA.js +0 -1
- package/chunk-ORIEYVVO.js +0 -1
- package/chunk-QQKVF4B4.js +0 -1
- package/chunk-R2D3CVSD.js +0 -1
- package/chunk-RKFABCKT.js +0 -2
- package/chunk-RNQH6BGW.js +0 -1
- package/chunk-RY7J7BHG.js +0 -7
- package/chunk-SHATBKDA.js +0 -1
- package/chunk-TDXJNPMY.js +0 -1
- package/chunk-TGK3F3XP.js +0 -1
- package/chunk-U7C24GJ2.js +0 -1
- package/chunk-W4U2FPZX.js +0 -1
- package/chunk-W6TPRQIT.js +0 -1
- package/chunk-XA4UOPDI.js +0 -1
- package/chunk-XQCRX6RA.js +0 -2
- package/chunk-YQ7U7A2N.js +0 -1
- package/chunk-Z2LU6ASK.js +0 -1
- package/chunk-ZDCJ72UD.js +0 -1
- package/chunk-ZDMCLDW7.js +0 -1
- package/chunk-ZUX7IMN4.js +0 -1
- package/chunk-ZV72G3X3.js +0 -1
- package/main-F254FFHF.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as de,Ab as le,Bb as y,Cb as g,O as ue,Q as I,Sa as B,T as O,Ta as ce,V as T,W as P,aa as ae,ab as $,g as oe,sc as X}from"./chunk-XGARKXE4.js";var Ce=null;function q(){return Ce}function ln(e){Ce??=e}var fe=class{};var Fe=new O(""),ye=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=I({token:e,factory:()=>P(Me),providedIn:"platform"})}return e})();var Me=(()=>{class e extends ye{_location;_history;_doc=P(Fe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return q().getBaseHref(this._doc)}onPopState(n){let i=q().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=q().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,i,r){this._history.pushState(n,i,r)}replaceState(n,i,r){this._history.replaceState(n,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||e)};static \u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ee(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function he(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function L(e){return e&&e[0]!=="?"?`?${e}`:e}var ie=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=I({token:e,factory:()=>P(Be),providedIn:"root"})}return e})(),Te=new O(""),Be=(()=>{class e extends ie{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,i){super(),this._platformLocation=n,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??P(Fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ee(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+L(this._platformLocation.search),r=this._platformLocation.hash;return r&&n?`${i}${r}`:i}pushState(n,i,r,s){let o=this.prepareExternalUrl(r+L(s));this._platformLocation.pushState(n,i,o)}replaceState(n,i,r,s){let o=this.prepareExternalUrl(r+L(s));this._platformLocation.replaceState(n,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(i){return new(i||e)(T(ye),T(Te,8))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Re=(()=>{class e{_subject=new oe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Ne(he(ge(i))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+L(i))}normalize(n){return e.stripTrailingSlash(Pe(this._basePath,ge(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",r=null){this._locationStrategy.pushState(r,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+L(i)),r)}replaceState(n,i="",r=null){this._locationStrategy.replaceState(r,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+L(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(r=>r(n,i))}subscribe(n,i,r){return this._subject.subscribe({next:n,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=L;static joinWithSlash=Ee;static stripTrailingSlash=he;static \u0275fac=function(i){return new(i||e)(T(ie))};static \u0275prov=I({token:e,factory:()=>Oe(),providedIn:"root"})}return e})();function Oe(){return new Re(T(ie))}function Pe(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function ge(e){return e.replace(/\/index.html$/,"")}function Ne(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var we=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(we||{});var F=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(F||{}),c=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(c||{}),E=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(E||{}),w={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};function ke(e){return y(e)[g.LocaleId]}function $e(e,t,n){let i=y(e),r=[i[g.DayPeriodsFormat],i[g.DayPeriodsStandalone]],s=A(r,t);return A(s,n)}function xe(e,t,n){let i=y(e),r=[i[g.DaysFormat],i[g.DaysStandalone]],s=A(r,t);return A(s,n)}function Ue(e,t,n){let i=y(e),r=[i[g.MonthsFormat],i[g.MonthsStandalone]],s=A(r,t);return A(s,n)}function ze(e,t){let i=y(e)[g.Eras];return A(i,t)}function x(e,t){let n=y(e);return A(n[g.DateFormat],t)}function U(e,t){let n=y(e);return A(n[g.TimeFormat],t)}function z(e,t){let i=y(e)[g.DateTimeFormat];return A(i,t)}function b(e,t){let n=y(e),i=n[g.NumberSymbols][t];if(typeof i>"u"){if(t===w.CurrencyDecimal)return n[g.NumberSymbols][w.Decimal];if(t===w.CurrencyGroup)return n[g.NumberSymbols][w.Group]}return i}function Ve(e,t){return y(e)[g.NumberFormats][t]}function Ae(e){if(!e[g.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[g.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function je(e){let t=y(e);return Ae(t),(t[g.ExtraData][2]||[]).map(i=>typeof i=="string"?J(i):[J(i[0]),J(i[1])])}function Ge(e,t,n){let i=y(e);Ae(i);let r=[i[g.ExtraData][0],i[g.ExtraData][1]],s=A(r,t)||[];return A(s,n)||[]}function A(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function J(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var He=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},Ze=/((?:[^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 Ye(e,t,n,i){let r=nt(e);t=_(n,t)||t;let o=[],u;for(;t;)if(u=Ze.exec(t),u){o=o.concat(u.slice(1));let f=o.pop();if(!f)break;t=f}else{o.push(t);break}let D=r.getTimezoneOffset();i&&(D=_e(i,D),r=tt(r,i,!0));let l="";return o.forEach(f=>{let a=Qe(f);l+=a?a(r,n,D):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Y(e,t,n){let i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function _(e,t){let n=ke(e);if(V[n]??={},V[n][t])return V[n][t];let i="";switch(t){case"shortDate":i=x(e,E.Short);break;case"mediumDate":i=x(e,E.Medium);break;case"longDate":i=x(e,E.Long);break;case"fullDate":i=x(e,E.Full);break;case"shortTime":i=U(e,E.Short);break;case"mediumTime":i=U(e,E.Medium);break;case"longTime":i=U(e,E.Long);break;case"fullTime":i=U(e,E.Full);break;case"short":let r=_(e,"shortTime"),s=_(e,"shortDate");i=j(z(e,E.Short),[r,s]);break;case"medium":let o=_(e,"mediumTime"),u=_(e,"mediumDate");i=j(z(e,E.Medium),[o,u]);break;case"long":let D=_(e,"longTime"),l=_(e,"longDate");i=j(z(e,E.Long),[D,l]);break;case"full":let f=_(e,"fullTime"),a=_(e,"fullDate");i=j(z(e,E.Full),[f,a]);break}return i&&(V[n][t]=i),i}function j(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,i){return t!=null&&i in t?t[i]:n})),e}function S(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.slice(o.length-t)),s+o}function We(e,t){return S(e,3).substring(0,t)}function p(e,t,n=0,i=!1,r=!1){return function(s,o){let u=Ke(e,s);if((n>0||u>-n)&&(u+=n),e===3)u===0&&n===-12&&(u=12);else if(e===6)return We(u,t);let D=b(o,w.MinusSign);return S(u,t,D,i,r)}}function Ke(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function d(e,t,n=F.Format,i=!1){return function(r,s){return Xe(r,s,e,t,n,i)}}function Xe(e,t,n,i,r,s){switch(n){case 2:return Ue(t,r,i)[e.getMonth()];case 1:return xe(t,r,i)[e.getDay()];case 0:let o=e.getHours(),u=e.getMinutes();if(s){let l=je(t),f=Ge(t,r,i),a=l.findIndex(m=>{if(Array.isArray(m)){let[h,C]=m,R=o>=h.hours&&u>=h.minutes,v=o<C.hours||o===C.hours&&u<C.minutes;if(h.hours<C.hours){if(R&&v)return!0}else if(R||v)return!0}else if(m.hours===o&&m.minutes===u)return!0;return!1});if(a!==-1)return f[a]}return $e(t,r,i)[o<12?0:1];case 3:return ze(t,i)[e.getFullYear()<=0?0:1];default:let D=n;throw new Error(`unexpected translation type ${D}`)}}function G(e){return function(t,n,i){let r=-1*i,s=b(n,w.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+S(o,2,s)+S(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+S(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+S(o,2,s)+":"+S(Math.abs(r%60),2,s);case 3:return i===0?"Z":(r>=0?"+":"")+S(o,2,s)+":"+S(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var qe=0,Z=4;function Je(e){let t=Y(e,qe,1).getDay();return Y(e,0,1+(t<=Z?Z:Z+7)-t)}function Se(e){let t=e.getDay(),n=t===0?-3:Z-t;return Y(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Q(e,t=!1){return function(n,i){let r;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+s)/7)}else{let s=Se(n),o=Je(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return S(r,e,b(i,w.MinusSign))}}function H(e,t=!1){return function(n,i){let s=Se(n).getFullYear();return S(s,e,b(i,w.MinusSign),t)}}var ee={};function Qe(e){if(ee[e])return ee[e];let t;switch(e){case"G":case"GG":case"GGG":t=d(3,c.Abbreviated);break;case"GGGG":t=d(3,c.Wide);break;case"GGGGG":t=d(3,c.Narrow);break;case"y":t=p(0,1,0,!1,!0);break;case"yy":t=p(0,2,0,!0,!0);break;case"yyy":t=p(0,3,0,!1,!0);break;case"yyyy":t=p(0,4,0,!1,!0);break;case"Y":t=H(1);break;case"YY":t=H(2,!0);break;case"YYY":t=H(3);break;case"YYYY":t=H(4);break;case"M":case"L":t=p(1,1,1);break;case"MM":case"LL":t=p(1,2,1);break;case"MMM":t=d(2,c.Abbreviated);break;case"MMMM":t=d(2,c.Wide);break;case"MMMMM":t=d(2,c.Narrow);break;case"LLL":t=d(2,c.Abbreviated,F.Standalone);break;case"LLLL":t=d(2,c.Wide,F.Standalone);break;case"LLLLL":t=d(2,c.Narrow,F.Standalone);break;case"w":t=Q(1);break;case"ww":t=Q(2);break;case"W":t=Q(1,!0);break;case"d":t=p(2,1);break;case"dd":t=p(2,2);break;case"c":case"cc":t=p(7,1);break;case"ccc":t=d(1,c.Abbreviated,F.Standalone);break;case"cccc":t=d(1,c.Wide,F.Standalone);break;case"ccccc":t=d(1,c.Narrow,F.Standalone);break;case"cccccc":t=d(1,c.Short,F.Standalone);break;case"E":case"EE":case"EEE":t=d(1,c.Abbreviated);break;case"EEEE":t=d(1,c.Wide);break;case"EEEEE":t=d(1,c.Narrow);break;case"EEEEEE":t=d(1,c.Short);break;case"a":case"aa":case"aaa":t=d(0,c.Abbreviated);break;case"aaaa":t=d(0,c.Wide);break;case"aaaaa":t=d(0,c.Narrow);break;case"b":case"bb":case"bbb":t=d(0,c.Abbreviated,F.Standalone,!0);break;case"bbbb":t=d(0,c.Wide,F.Standalone,!0);break;case"bbbbb":t=d(0,c.Narrow,F.Standalone,!0);break;case"B":case"BB":case"BBB":t=d(0,c.Abbreviated,F.Format,!0);break;case"BBBB":t=d(0,c.Wide,F.Format,!0);break;case"BBBBB":t=d(0,c.Narrow,F.Format,!0);break;case"h":t=p(3,1,-12);break;case"hh":t=p(3,2,-12);break;case"H":t=p(3,1);break;case"HH":t=p(3,2);break;case"m":t=p(4,1);break;case"mm":t=p(4,2);break;case"s":t=p(5,1);break;case"ss":t=p(5,2);break;case"S":t=p(6,1);break;case"SS":t=p(6,2);break;case"SSS":t=p(6,3);break;case"Z":case"ZZ":case"ZZZ":t=G(0);break;case"ZZZZZ":t=G(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=G(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=G(2);break;default:return null}return ee[e]=t,t}function _e(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function et(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function tt(e,t,n){let i=n?-1:1,r=e.getTimezoneOffset(),s=_e(t,r);return et(e,i*(s-r))}function nt(e){if(De(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(u=>+u);return Y(r,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let i;if(i=e.match(He))return it(i)}let t=new Date(e);if(!De(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function it(e){let t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,u=Number(e[5]||0)-i,D=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,u,D,l),t}function De(e){return e instanceof Date&&!isNaN(e.valueOf())}var rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,pe=22,W=".",N="0",st=";",ot=",",te="#";function ut(e,t,n,i,r,s,o=!1){let u="",D=!1;if(!isFinite(e))u=b(n,w.Infinity);else{let l=lt(e);o&&(l=dt(l));let f=t.minInt,a=t.minFrac,m=t.maxFrac;if(s){let M=s.match(rt);if(M===null)throw new Error(`${s} is not a valid digit info`);let re=M[1],K=M[3],se=M[5];re!=null&&(f=ne(re)),K!=null&&(a=ne(K)),se!=null?m=ne(se):K!=null&&a>m&&(m=a)}ft(l,a,m);let h=l.digits,C=l.integerLen,R=l.exponent,v=[];for(D=h.every(M=>!M);C<f;C++)h.unshift(0);for(;C<0;C++)h.unshift(0);C>0?v=h.splice(C,h.length):(v=h,h=[0]);let k=[];for(h.length>=t.lgSize&&k.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)k.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&k.unshift(h.join("")),u=k.join(b(n,i)),v.length&&(u+=b(n,r)+v.join("")),R&&(u+=b(n,w.Exponential)+"+"+R)}return e<0&&!D?u=t.negPre+u+t.negSuf:u=t.posPre+u+t.posSuf,u}function at(e,t,n){let i=Ve(t,we.Decimal),r=ct(i,b(t,w.MinusSign));return ut(e,r,t,w.Group,w.Decimal,n)}function ct(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(st),r=i[0],s=i[1],o=r.indexOf(W)!==-1?r.split(W):[r.substring(0,r.lastIndexOf(N)+1),r.substring(r.lastIndexOf(N)+1)],u=o[0],D=o[1]||"";n.posPre=u.substring(0,u.indexOf(te));for(let f=0;f<D.length;f++){let a=D.charAt(f);a===N?n.minFrac=n.maxFrac=f+1:a===te?n.maxFrac=f+1:n.posSuf+=a}let l=u.split(ot);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){let f=r.length-n.posPre.length-n.posSuf.length,a=s.indexOf(te);n.negPre=s.substring(0,a).replace(/'/g,""),n.negSuf=s.slice(a+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function dt(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function lt(e){let t=Math.abs(e)+"",n=0,i,r,s,o,u;for((r=t.indexOf(W))>-1&&(t=t.replace(W,"")),(s=t.search(/e/i))>0?(r<0&&(r=s),r+=+t.slice(s+1),t=t.substring(0,s)):r<0&&(r=t.length),s=0;t.charAt(s)===N;s++);if(s===(u=t.length))i=[0],r=1;else{for(u--;t.charAt(u)===N;)u--;for(r-=s,i=[],o=0;s<=u;s++,o++)i[o]=Number(t.charAt(s))}return r>pe&&(i=i.splice(0,pe-1),n=r-1,r=1),{digits:i,exponent:n,integerLen:r}}function ft(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let i=e.digits,r=i.length-e.integerLen,s=Math.min(Math.max(t,r),n),o=s+e.integerLen,u=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(let a=o;a<i.length;a++)i[a]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let a=1;a<o;a++)i[a]=0}if(u>=5)if(o-1<0){for(let a=0;a>o;a--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let D=s!==0,l=t+e.integerLen,f=i.reduceRight(function(a,m,h,C){return m=m+a,C[h]=m<10?m:m-10,D&&(C[h]===0&&h>=l?C.pop():D=!1),m>=10?1:0},0);f&&(i.unshift(f),e.integerLen++)}function ne(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function fn(e,t,n){return le(e,t,n)}function hn(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let i=n.indexOf("="),[r,s]=i==-1?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}var gn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(n,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||e)(B(ce))};static \u0275dir=de({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ae]})}return e})();function be(e,t){return new ue(2100,!1)}var ht="mediumDate",gt=new O(""),Dt=new O(""),Dn=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,i,r){this.locale=n,this.defaultTimezone=i,this.defaultOptions=r}transform(n,i,r,s){if(n==null||n===""||n!==n)return null;try{let o=i??this.defaultOptions?.dateFormat??ht,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Ye(n,o,s||this.locale,u)}catch(o){throw be(e,o.message)}}static \u0275fac=function(i){return new(i||e)(B(X,16),B(gt,24),B(Dt,24))};static \u0275pipe=$({name:"date",type:e,pure:!0})}return e})();var pn=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(i){return new(i||e)};static \u0275pipe=$({name:"json",type:e,pure:!1})}return e})();var mn=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,i,r){if(!pt(n))return null;r||=this._locale;try{let s=mt(n);return at(s,r,i)}catch(s){throw be(e,s.message)}}static \u0275fac=function(i){return new(i||e)(B(X,16))};static \u0275pipe=$({name:"number",type:e,pure:!0})}return e})();function pt(e){return!(e==null||e===""||e!==e)}function mt(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var Ct="browser",Ft="server";function Cn(e){return e===Ct}function Fn(e){return e===Ft}var me=class{};export{q as a,ln as b,fe as c,Fe as d,ie as e,Re as f,fn as g,hn as h,gn as i,Dn as j,pn as k,mn as l,Ct as m,Cn as n,Fn as o,me as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-I457VUEG.js";import{a as x,c as w,d as B,e as U,f as X}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as K,f as V,o as h}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{Db as l,Eb as s,Fb as b,Gb as y,Hb as v,Jb as u,Kb as c,Na as p,W as T,Za as D,ba as a,ca as S,cb as P,kb as N,pb as G,ra as $,tb as i,ub as t,vb as _,wb as M,xb as f,zb as R}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";function W(g,F){if(g&1){let n=R();i(0,"spk-menu",15)(1,"button",16),b(2,2),t(),M(3,17),i(4,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Disabled"))}),l(5,3),_(6,"spk-icon"),s(),t(),i(7,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Verbose"))}),l(8,4),_(9,"spk-icon"),s(),t(),i(10,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("ExplicitOnly"))}),l(11,5),_(12,"spk-icon"),s(),t(),i(13,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Profiling"))}),l(14,6),_(15,"spk-icon"),s(),t(),i(16,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Retry"))}),l(17,7),_(18,"spk-icon"),s(),t(),i(19,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Information"))}),l(20,8),_(21,"spk-icon"),s(),t(),i(22,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("DryRun"))}),l(23,9),_(24,"spk-icon"),s(),t(),i(25,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Warning"))}),l(26,10),_(27,"spk-icon"),s(),t(),i(28,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Error"))}),l(29,11),_(30,"spk-icon"),s(),t(),f(),t()}if(g&2){let n=c();N("openIndicator",!0),p(2),y(n.logLevelByLabel()),v(2)}}var O=class g{#n=T(B);#e=T(z);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=$(this.#n.url);constructor(){this.#n.events.subscribe(F=>{F instanceof x&&this.currentUrl.set(F.urlAfterRedirects)})}updateLogLevel(F){this.#e.updateLogLevel(F)}static \u0275fac=function(n){return new(n||g)};static \u0275cmp=D({type:g,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let F;F=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Disabled `;let C;C=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Explicit only `;let d;d=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Profiling `;let k;k=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_ICON: Retry `;let I;I=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Information `;let E;E=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SPK_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SPK_ICON: Dry run `;let A;A=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SPK_ICON: Warning `;let m;return m=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SPK_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SPK_ICON: Error `,[F,n,o,e,C,L,d,k,I,E,A,m,[1,"filters"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["spk-button","","type","button"],["menu",""],["spk-button","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(i(0,"div",12)(1,"spk-button-group")(2,"button",13),l(3,0),_(4,"spk-icon"),s(),t(),i(5,"button",14),l(6,1),_(7,"spk-icon"),s(),t()(),P(8,W,31,2,"spk-menu",15),t(),_(9,"router-outlet")),n&2&&(p(8),G(o.currentUrl().startsWith("/about/logs/live")?8:-1))},dependencies:[V,K,h,w,X,U],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem}"],changeDetection:0})};export{O as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as Fe}from"./chunk-TLY4PQBT.js";import{m as L}from"./chunk-SYZYJSXM.js";import{a as Se}from"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import{a as Ee}from"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import{a as D}from"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-PX6A6XCQ.js";import{a as fe}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{c as le,e as se,f as me,h as de,i as _e,m as pe,n as ce,o as ue,q as Ce,r as ge,s as Me,t as Ne}from"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as Z,d as J,e as Q}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as te,g as ne,k as oe,l as ie,p as ae,t as re}from"./chunk-XQKR67WI.js";import{a as Y,b as ee}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{Db as S,Eb as E,Fb as c,Gb as X,Hb as V,Jb as W,Kb as g,Na as s,Ob as j,W as C,Za as B,ba as N,bc as P,ca as f,cb as v,cc as T,dc as I,hc as H,ic as k,kb as u,mb as x,pb as G,qb as w,ra as F,rb as U,sb as K,tb as r,ub as o,vb as l,wb as A,xb as O,yc as q,zb as z}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var Ae=()=>[],Oe=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function Pe(m,t){m&1&&l(0,"spk-progress-bar",13)}function Te(m,t){if(m&1&&(r(0,"spk-form-field"),l(1,"input",36),o()),m&2){let e=t.$implicit,n=t.$index;s(),j("id","filter-",n,""),u("formControl",e)}}function Ie(m,t){if(m&1){let e=z();r(0,"form",14)(1,"spk-select",15)(2,"label",16),c(3,1),o(),l(4,"input",17),o(),r(5,"spk-form-field")(6,"label",18),c(7,2),o(),l(8,"textarea",19),o(),r(9,"spk-form-field")(10,"label",20),c(11,3),o(),l(12,"textarea",21),o()(),r(13,"spk-divider"),c(14,4),o(),r(15,"form",14)(16,"spk-form-field")(17,"label",22),c(18,5),o(),l(19,"input",23),o(),r(20,"spk-form-field")(21,"label",24),c(22,6),o(),l(23,"input",25),o(),r(24,"app-toggle-card",26),A(25,27),c(26,7),O(),A(27,28),U(28,Te,2,3,"spk-form-field",null,w),O(),o()(),r(30,"div",29)(31,"app-size",30),I("ngModelChange",function(i){N(e);let d=g();return T(d.optionsFields.remoteVolumeSize,i)||(d.optionsFields.remoteVolumeSize=i),f(i)}),r(32,"label",31),c(33,8),o()()(),r(34,"p"),S(35,9),l(36,"a",32),E(),o(),r(37,"app-options-list",33),I("optionsChange",function(i){N(e);let d=g();return T(d.settings,i)||(d.settings=i),f(i)}),o(),r(38,"div",34)(39,"button",35),W("click",function(){N(e);let i=g();return f(i.submit())}),S(40,10),l(41,"spk-icon"),E(),o()()}if(m&2){let e,n=g();u("formGroup",n.baseCmdForm),s(),u("options",(e=n.commandOptions())!==null&&e!==void 0?e:k(13,Ae))("inlineSearch",!0),s(14),u("formGroup",n.standardFields),s(9),u("disallowToggle",!0),s(4),K(n.standardFields.controls.filters.controls),s(3),u("customId","size"),P("ngModel",n.optionsFields.remoteVolumeSize),s(6),P("options",n.settings),u("hasFreeTextSettings",!0)("hiddenOptions",k(14,Oe)),s(2),x("loader",n.isSubmitting()),s(2),X(n.baseCmdForm.value.command),V(40)}}var p=new ge,ke=["Bytes","KB","MB","GB","TB","PB"],$=class m{#e=C(L);#t=C(ee);#n=C(J);#o=C(Z);#i=C(Y);#a=D(this.#o.params);commandOptions=D(this.#i.getApiV1Commandline());sizeOptions=F(ke);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=p.group({"backup-id":p.control(""),"backup-name":p.control(""),dbpath:p.control(""),filters:p.array([])});baseCmdForm=p.group({command:p.control("backup"),targetUrl:p.control(""),arguments:p.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=q(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(p.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",n=t.arguments?.split(`
|
|
2
|
+
`)??[],i=this.standardFields.value,d=i.filters??[],M=[t.command,e,...n,`--backup-name=${i["backup-name"]}`,`--dbpath=${i.dbpath}`,`--backup-id=${i["backup-id"]}`,...d.filter(a=>a).map(a=>a.startsWith("-")?`--exclude=${a?.slice(1)}`:`--include=${a}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(a=>a.Name.startsWith("--")?`${a.Name}=${a.Value}`:`--${a.Name}=${a.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:M}).subscribe(a=>{a.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",a.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
|
|
3
|
+
`)??""})}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=B({type:m,selectors:[["app-commandline"]],features:[H([L])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Command`;let n;n=$localize`TargetUrl`;let i;i=$localize`Commandline Arguments`;let d;d=$localize`Advanced options`;let M;M=$localize`Backup ID`;let a;a=$localize`Backup Name`;let h;h=$localize`Filters`;let b;b=$localize`Remote volume size`;let R;R=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#36\uFFFD"}:START_LINK:Read more${"\uFFFD/#36\uFFFD"}:CLOSE_LINK:`;let y;return y=$localize`${"\uFFFD#41\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,n,i,d,M,a,h,b,R,y,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],[3,"ngModelChange","customId","ngModel"],["for","size"],["href","#",1,"spk-primary"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,n){e&1&&(l(0,"app-status-bar"),r(1,"section")(2,"div",11)(3,"button",12),S(4,0),l(5,"spk-icon"),E(),o()(),v(6,Pe,1,0,"spk-progress-bar",13)(7,Ie,42,15),o()),e&2&&(s(6),G(n.finishedLoading()?7:6))},dependencies:[Me,_e,le,se,me,de,fe,Fe,Ee,Ne,pe,ce,Ce,ue,Q,ie,ne,oe,re,ae,te,Se],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{$ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{b as v,c as G,e as L,f as w,i as U,n as K,q as X,r as x,t as V}from"./chunk-JJQARMUD.js";import{d as O,e as A}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as R,c as N,g as E,l as $,m as y,z as B}from"./chunk-XQKR67WI.js";import{b}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{D as g,Db as P,Eb as I,Fb as _,Ib as M,Jb as d,Na as s,W as F,Za as T,cb as S,ic as k,kb as u,mb as C,pb as D,ra as m,tb as r,ub as n,vb as l}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.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(N);#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=M(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"),P(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()(),I(),n()(),r(8,"form",7)(9,"spk-file-upload",8),d("filesChange",function(i){return o.onFileDropped(i)}),n(),S(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),C("loader",o.isImporting()),u("disabled",o.isImporting()),s(2),u("formGroup",o.importForm),s(),u("files",o.selectedFile()),s(),D(o.isSecureFile()?10:-1))},dependencies:[V,U,G,v,L,w,K,X,A,$,R,E,B,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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as M}from"./chunk-
|
|
1
|
+
import{d as M}from"./chunk-3UJUWE5B.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{g as h}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{Fb as l,Lb as C,Mb as c,Na as u,W as m,Yb as O,Za as s,cb as _,pb as f,tb as t,ub as i,vb as g}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./chunk-M7VDIUGU.js";import{a as m}from"./chunk-BWYJMRKB.js";import{W as t,ab as n}from"./chunk-XGARKXE4.js";var s=class i{#r=t(m);#e=t(o);transform(r,e=!1,...a){return r?e?this.#e.transform(r,"short"):(this.#r.locale(),this.#r(r).fromNow()):""}static \u0275fac=function(e){return new(e||i)};static \u0275pipe=n({name:"relativeTime",type:i,pure:!0})};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{e as S}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as T,g as M,h as f}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{Db as s,Eb as l,Fb as i,Na as c,Za as D,ic as d,kb as r,tb as e,ub as n,vb as _}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,d as v,e as P,f as O,i as x,n as E,q as F,r as G,t as T}from"./chunk-
|
|
1
|
+
import{c as k,d as v,e as P,f as O,i as x,n as E,q as F,r as G,t as T}from"./chunk-JJQARMUD.js";import{d as M}from"./chunk-3UJUWE5B.js";import{d as y}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as S,b,g as L,l as N}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{D as c,Jb as w,Na as m,W as s,Yb as n,Za as g,cb as f,kb as h,mb as _,pb as C,ra as l,tb as t,ub as i,vb as p}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";function A(r,e){r&1&&(t(0,"spk-alert",1),n(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new G,d=class r{#e=s(y);#t=s(M);failedLogin=l(!1);isLoading=l(!1);loginForm=u.group({user:u.control(""),pass:u.control("",v.required)});submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=g({type:r,selectors:[["app-login"]],decls:15,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],["type","warning"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,a){o&1&&(t(0,"form",0),w("submit",function(){return a.submit()}),f(1,A,2,0,"spk-alert",1),t(2,"div",2),p(3,"input",3),t(4,"spk-form-field")(5,"label",4),n(6," Password "),t(7,"a",5)(8,"spk-icon"),n(9,"question"),i()()(),p(10,"input",6),i(),t(11,"button",7),n(12," Login "),t(13,"spk-icon"),n(14,"arrow-right"),i()()()()),o&2&&(h("formGroup",a.loginForm),m(),C(a.failedLogin()?1:-1),m(10),_("loader",a.isLoading()))},dependencies:[T,x,k,P,O,E,F,N,S,L,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as RelativeTimePipe};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as _e}from"./chunk-SYZYJSXM.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import{a as oe}from"./chunk-3V622MYY.js";import{a as Mt}from"./chunk-DJWNLIDJ.js";import{a as J}from"./chunk-WCLOWI5G.js";import{a as ft}from"./chunk-FKTH6XCB.js";import"./chunk-PX6A6XCQ.js";import{a as Nt}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{c as Y,e as ee,f as St,h as te,i as gt,l as Tt,n as ut,o as mt,q as Ct,r as Et,s as ne,t as ie}from"./chunk-JJQARMUD.js";import{a as st}from"./chunk-3UJUWE5B.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{A as pt,a as j,b as K,g as Q,k as at,l as Z,p as rt,q as lt,r as _t,t as ct,z as dt}from"./chunk-XQKR67WI.js";import{b as A}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{A as je,D as R,Db as B,Eb as H,Fb as r,Gb as re,Hb as le,Ib as et,Jb as S,Ka as Qe,Kb as p,N as Ke,Na as l,Nb as tt,Q as U,Ua as Ze,Vb as nt,W as u,Wb as it,Yb as I,Za as w,Zb as q,_b as W,ba as m,bc as y,c as We,ca as C,cb as E,cc as G,dc as v,hb as Je,hc as ot,ib as Ye,ic as D,kb as P,l as $,mb as f,pb as T,ra as c,tb as i,ub as o,vb as N,xc as k,y as b,yc as L,zb as O}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var F=class s{#e=u(A);#i=oe(this.#e.getApiV1Serversettings());#t=c(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:t=>{this.#t.set(t)}})}withRefresh(){return We(R(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};var Ot=["formRef"],Rt=()=>[import("./chunk-QFKEUN2J.js").then(s=>s.OptionsListComponent)],It=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function yt(s,t){s&1&&(i(0,"spk-alert",3),r(1,1),o())}function Gt(s,t){if(s&1){let e=O();i(0,"app-options-list",5),v("optionsChange",function(a){m(e);let d=p();return G(d.settings,a)||(d.settings=a),C(a)}),o()}if(s&2){let e=p();y("options",e.settings),P("hasFreeTextSettings",!0)("hiddenOptions",D(3,It))}}var vt=["Bytes","KB","MB","GB","TB","PB"],X=class s{#e=u(_e);#i=u(F);#t=u(A);formRef=Ze.required("formRef");settings=this.#e.settings;isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);sizeOptions=c(vt);lastRecievedServerSettings=c({});serverSettingsEffect=L(()=>{let t=this.#i.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([n,a],d)=>{if(n.startsWith("--")){let M=n.replace("--","");this.settings.update(g=>(g.some(h=>h.Name===M)||g.push({Name:M,Value:a}),g))}d===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(g=>g.Name),d=Object.keys(e).filter(g=>!n.includes(g.replace("--",""))),M=t.reduce((g,h)=>(g[`--${h.Name}`]=h.Value,g),{});d.forEach(g=>{M[g]=null}),this.#t.patchApiV1Serversettings({requestBody:M}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#i.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&nt(n.formRef,Ot,5),e&2&&it()},features:[ot([_e])],decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["spk-button","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"]]},template:function(e,n){e&1&&(i(0,"div",2),E(1,yt,2,0,"spk-alert",3),i(2,"button",4),S("click",function(){return n.submit()}),B(3,0),N(4,"spk-icon"),H(),o()(),E(5,Gt,1,4),Je(6,5,Rt)),e&2&&(l(),T(n.saved()?1:-1),l(),f("loader",n.isSubmitting()),l(4),Ye(!n.isLoadingOptions()))},dependencies:[ie,Q,j,K],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var x=class s{#e=u(A);#i=u(J);repeatRegisterTimer=null;state=c("unknown");claimUrl=c(null);registerUrl=c("");status=k(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=L(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};function $t(s,t){if(s&1){let e=O();i(0,"spk-form-field",10)(1,"input",11),v("ngModelChange",function(a){m(e);let d=p(2);return G(d.registerUrl,a)||(d.registerUrl=a),C(a)}),o()(),i(2,"button",12),S("click",function(){m(e);let a=p(2);return C(a.register())}),r(3,0),o()}if(s&2){let e=p(2);l(),y("ngModel",e.registerUrl)}}function bt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",13),I(4),o()()),s&2){let e=p(2);l(3),tt("href",e.claimUrl(),Qe),l(),q(e.claimUrl())}}function wt(s,t){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function kt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.cancel())}),r(1,3),o()}}function Lt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.disable())}),r(1,4),o()}}function Ft(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.enable())}),r(1,5),o(),i(2,"button",14),S("click",function(){m(e);let a=p(2);return C(a.delete())}),r(3,6),o()}}function xt(s,t){if(s&1&&(i(0,"div",7),E(1,$t,4,1)(2,bt,5,2,"div",8)(3,wt,3,0,"div",8)(4,kt,2,0,"button",9)(5,Lt,2,0,"button",9)(6,Ft,4,0),o()),s&2){let e=p();l(),T(e.state()==="inactive"?1:-1),l(),T(e.state()==="registered"?2:-1),l(),T(e.state()==="registering"?3:-1),l(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),T(e.state()==="disabled"?6:-1)}}var ae=class s{#e=u(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let d;d=$localize`Disable remote control`;let M;M=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[t,e,n,a,d,M,g,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,n){e&1&&E(0,xt,7,6,"div",7),e&2&&T(n.state()!=="unknown"?0:-1)},dependencies:[ne,Y,ee,te,Z],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Pt=()=>({standalone:!0});function Dt(s,t){s&1&&(i(0,"spk-icon",73),I(1,"check"),o())}function Xt(s,t){s&1&&(i(0,"spk-icon",74),I(1,"prohibit"),o())}function zt(s,t){if(s&1){let e=O();i(0,"button",78),S("click",function(){m(e);let a=p(2);return C(a.updatePassphrase())}),r(1,36),o()}if(s&2){let e=p(2);f("loader",e.isUpdating())}}function Vt(s,t){if(s&1){let e=O();i(0,"spk-tooltip",77)(1,"button",79),S("click",function(){m(e);let a=p(2);return C(a.updatePassphrase())}),r(2,37),o()()}if(s&2){let e=p(2);l(),f("loader",e.isUpdating()),P("disabled",!0)}}function Ut(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",69),r(2,33),o(),i(3,"input",70),v("ngModelChange",function(a){m(e);let d=p();return G(d.passphrase,a)||(d.passphrase=a),C(a)}),o()(),i(4,"spk-form-field")(5,"label",71),r(6,34),o(),i(7,"input",72),v("ngModelChange",function(a){m(e);let d=p();return G(d.repeatPassphrase,a)||(d.repeatPassphrase=a),C(a)}),o(),E(8,Dt,2,0,"spk-icon",73)(9,Xt,2,0,"spk-icon",74),o(),i(10,"div",50)(11,"button",75),S("click",function(){m(e);let a=p();return C(a.cancelPasswordChange())}),r(12,35),o(),E(13,zt,2,2,"button",76)(14,Vt,3,3,"spk-tooltip",77),o()}if(s&2){let e=p();l(3),y("ngModel",e.passphrase),l(4),P("disabled",e.passphrase().length===0),y("ngModel",e.repeatPassphrase),l(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),f("loader",e.isUpdating()),l(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Bt(s,t){s&1&&(i(0,"spk-icon",80),I(1,"check"),o())}function Ht(s,t){if(s&1){let e=O();i(0,"div",50)(1,"button",75),S("click",function(){m(e);let a=p();return C(a.openPassphraseForm())}),r(2,38),o(),E(3,Bt,2,0,"spk-icon",80),o()}if(s&2){let e=p();l(3),T(e.passwordUpdated()?3:-1)}}function qt(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",81),r(2,39),o(),i(3,"textarea",82),v("ngModelChange",function(a){m(e);let d=p();return G(d.allowedHostnames,a)||(d.allowedHostnames=a),C(a)}),o()(),i(4,"spk-alert",83),r(5,40),o(),i(6,"button",78),S("click",function(){m(e);let a=p();return C(a.updateAllowedHostnames())}),r(7,41),o()}if(s&2){let e=p();l(3),y("ngModel",e.allowedHostnames),l(3),f("loader",e.updatingAllowedHosts())}}function Wt(s,t){s&1&&N(0,"spk-progress-bar",55)}function jt(s,t){if(s&1&&I(0),s&2){let e,n=p();W(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Kt(s,t){s&1&&N(0,"spk-progress-bar",55)}function Qt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}function Zt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}var z=new Et,Jt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Yt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],en=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (decending)`},{value:"-name",label:$localize`Backup name (decending)`},{value:"-lastrun",label:$localize`Last run time (decending)`},{value:"-nextrun",label:$localize`Next run time (decending)`},{value:"-schedule",label:$localize`Is scheduled (decending)`},{value:"-backend",label:$localize`Destination type (decending)`},{value:"-sourcesize",label:$localize`Source size (decending)`},{value:"-destinationsize",label:$localize`Destination size (decending)`},{value:"-duration",label:$localize`Duration (decending)`}],ce=class s{#e=u(ft);#i=u(J);#t=u(A);#n=u(F);#a=u(x);#o=u(st);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=c("list");previousLang=this.#s;langCtrl=c(this.#s);sortOrderCtrl=c("");remoteControlStatus=this.#a.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});ngOnInit(){this.settingsForm.controls.pauseSettings.valueChanges.pipe(je(300),Ke(()=>this.updateStartupDelay())).subscribe()}updatingChannel=c(!1);updateChannel=c("");prevSortOrder=c("");updatingSortOrder=c(!1);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(this.#n.withRefresh(),R(()=>this.updatingChannel.set(!1)),b(()=>(this.updateChannel.set(e),$(null)))).subscribe()}allowRemoteAccess=c(!1);allowedHostnames=c("");loadedAllowedHostnames=c("");updatingRemoteAccess=c(!1);updatingAllowedHosts=c(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingRemoteAccess.set(!1)),b(()=>(this.allowRemoteAccess.set(t),$(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),R(()=>this.updatingAllowedHosts.set(!1)),b(()=>(this.allowedHostnames.set(t),$(null)))).subscribe()}updateSortOrder(t){let n=t[0]?.value??"";if(!n||n===""||n===this.prevSortOrder())return;let a=this.prevSortOrder();this.updatingSortOrder.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"backup-list-sort-order":n}}).pipe(this.#n.withRefresh(),R(()=>this.updatingSortOrder.set(!1)),b(()=>(this.sortOrderCtrl.set(a),$(null)))).subscribe()}updatingDisableTrayIconLogin=c(!1);disableTrayIconLogin=c(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingDisableTrayIconLogin.set(!1)),b(()=>(this.disableTrayIconLogin.set(t),$(null)))).subscribe()}showPassphraseForm=c(!1);isUpdating=c(!1);passphrase=c("");repeatPassphrase=c("");passwordUpdated=c(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),R(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}sortOptions=c(en);languageOptions=c(Mt);usageStatisticsOptions=c(Yt);timeTypeOptions=c(Jt);timeTypeSignal=oe(this.pauseSettings.controls.timeType.valueChanges);timeRange=k(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);updateLocale(t){let n=t[0]?.value??"";!n||n===""||n===this.previousLang||(this.#o.setItem("locale",n),window.location.reload())}updateStartupDelay(){let t=this.pauseSettings.value,e=`${t.time}${t.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}updateUsageStatistics(){this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let t=this.#n.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),d=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.prevSortOrder.set(t["backup-list-sort-order"]),this.sortOrderCtrl.set(this.prevSortOrder()),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:d.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]??""})})});setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-settings"]],decls:142,vars:45,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Remote access control`;let a;a=$localize`Color theme`;let d;d=$localize`Customize your application theme`;let M;M=$localize`Passwords`;let g;g=$localize`Change server passphrase`;let h;h=$localize`Language`;let de;de=$localize`Select a language for the platform`;let pe;pe=$localize`Allow remote access (requires restart)`;let Se;Se=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let ge;ge=$localize`Allow remote access`;let Te;Te=$localize`Prevent tray icon automatic log-in`;let ue;ue=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let me;me=$localize`Prevent tray icon automatic log-in`;let Ce;Ce=$localize`Backup list sort order`;let Ee;Ee=$localize`Choose the order to display backups on the starting page in`;let fe;fe=$localize`Update channel`;let Ne;Ne=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Me;Me=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Stable`;let Pe;Pe=$localize`Official releases`;let Oe;Oe=$localize`Beta`;let Re;Re=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Ie;Ie=$localize` Experimental `;let ye;ye=$localize`Specific builds for developers only. Not for use with important data.`;let Ge;Ge=$localize`Canary`;let ve;ve=$localize`Individual builds for developers only. Not for use with important data.`;let Ae;Ae=$localize`Pause after startup or hibernation`;let $e;$e=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let be;be=$localize`Usage statistics`;let V;V=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#129\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#129\uFFFD"}:CLOSE_LINK:${"[\uFFFD#130\uFFFD\uFFFD/#130\uFFFD|\uFFFD#131\uFFFD\uFFFD/#131\uFFFD]"}:LINE_BREAK:${"[\uFFFD#130\uFFFD\uFFFD/#130\uFFFD|\uFFFD#131\uFFFD\uFFFD/#131\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,V=et(V);let we;we=$localize`Advanced options`;let ke;ke=$localize`Enter new password`;let Le;Le=$localize`Repeat password`;let Fe;Fe=$localize`Password have to be filled and have to match`;let xe;xe=$localize`Passphrase`;let De;De=$localize`Repeat passphrase`;let Xe;Xe=$localize`Cancel`;let ze;ze=$localize` Update passphrase `;let Ve;Ve=$localize` Update passphrase `;let Ue;Ue=$localize`Change password`;let Be;Be=$localize`Allowed hostnames`;let He;He=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let qe;return qe=$localize` Update allowed hostnames `,[t,e,n,a,d,M,g,h,de,pe,Se,ge,Te,ue,me,Ce,Ee,fe,Ne,Me,he,Pe,Oe,Re,Ie,ye,Ge,ve,Ae,$e,be,V,we,xe,De,Xe,ze,Ve,Ue,Be,He,qe,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"formGroup"],["formGroupName","pauseSettings",1,"field-row"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"selectedOptionsChange","options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",ke,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Le,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",Fe,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"]]},template:function(e,n){if(e&1&&(N(0,"app-status-bar"),i(1,"div",42)(2,"header")(3,"div",43)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()()(),i(8,"section")(9,"div",44)(10,"h3"),r(11,2),o(),i(12,"p"),I(13),o()(),i(14,"div",45),N(15,"app-remote-control"),o()(),i(16,"section")(17,"div",44)(18,"h3"),r(19,3),o(),i(20,"p"),r(21,4),o()(),i(22,"div",45)(23,"div",46)(24,"img",47),S("click",function(){return n.setLightMode()}),o(),i(25,"img",48),S("click",function(){return n.setDarkMode()}),o()()()(),i(26,"section")(27,"div",44)(28,"h3"),r(29,5),o(),i(30,"p"),r(31,6),o()(),i(32,"div",49),E(33,Ut,15,7)(34,Ht,4,1,"div",50),o()(),i(35,"section")(36,"div",44)(37,"h3"),r(38,7),o(),i(39,"p"),r(40,8),o()(),i(41,"div",45)(42,"spk-select",51),S("selectedOptionsChange",function(d){return n.updateLocale(d)}),N(43,"input",52),o()()(),i(44,"section")(45,"div",44)(46,"h3"),r(47,9),o(),i(48,"p"),r(49,10),o()(),i(50,"div",53)(51,"spk-toggle",54),S("click",function(){return n.updateRemoteAccess()}),i(52,"label"),r(53,11),o()(),E(54,qt,8,3),o()(),i(55,"section")(56,"div",44)(57,"h3"),r(58,12),o(),i(59,"p"),r(60,13),o()(),i(61,"div",45)(62,"spk-toggle",54),S("click",function(){return n.saveDisableTrayIconLogin()}),i(63,"label"),r(64,14),o()()()(),i(65,"section")(66,"div",44)(67,"h3"),r(68,15),o(),i(69,"p"),r(70,16),o(),E(71,Wt,1,0,"spk-progress-bar",55),o(),i(72,"div",45)(73,"spk-select",51),S("selectedOptionsChange",function(d){return n.updateSortOrder(d)}),N(74,"input",52),o()()(),i(75,"section")(76,"div",44)(77,"h3"),r(78,17),o(),i(79,"p"),E(80,jt,1,1),o(),E(81,Kt,1,0,"spk-progress-bar",55),o(),i(82,"div",56)(83,"div",57),S("click",function(){return n.setNewChannel("")}),i(84,"spk-radio",58),r(85,18),o(),i(86,"p"),r(87,19),o()(),i(88,"div",57),S("click",function(){return n.setNewChannel("stable")}),i(89,"spk-radio",58),r(90,20),o(),i(91,"p"),r(92,21),o()(),i(93,"div",57),S("click",function(){return n.setNewChannel("beta")}),i(94,"spk-radio",58),r(95,22),o(),i(96,"p"),r(97,23),o()(),i(98,"div",57),S("click",function(){return n.setNewChannel("experimental")}),i(99,"spk-radio",58),r(100,24),o(),i(101,"p"),r(102,25),o()(),i(103,"div",57),S("click",function(){return n.setNewChannel("canary")}),i(104,"spk-radio",58),r(105,26),o(),i(106,"p"),r(107,27),o()()()()(),N(108,"spk-divider"),i(109,"form",59)(110,"section")(111,"div",44)(112,"h3"),r(113,28),o(),i(114,"p"),r(115,29),o()(),i(116,"div",45)(117,"div",60)(118,"spk-range-slider",61),N(119,"input",62),o(),i(120,"spk-select",63),N(121,"input",64),E(122,Qt,1,1,"ng-template"),o()()()(),i(123,"section")(124,"div",44)(125,"h3"),r(126,30),o(),i(127,"p"),B(128,31),N(129,"a",65)(130,"br")(131,"br"),H(),o()(),i(132,"div",45)(133,"spk-select",66),S("selectedOptionsChange",function(){return n.updateUsageStatistics()}),N(134,"input",67),E(135,Zt,1,1,"ng-template"),o()()()(),i(136,"div",42)(137,"section")(138,"div",68)(139,"h3"),r(140,32),o(),N(141,"app-advanced-options-settings"),o()()()),e&2){let a,d,M,g;l(13),q(n.remoteControlStatus()),l(11),f("active",!n.isDarkMode()),l(),f("active",n.isDarkMode()),l(8),T(n.showPassphraseForm()?33:34),l(9),P("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),P("ngModel",n.langCtrl())("ngModelOptions",D(43,Pt)),l(8),f("active",n.allowRemoteAccess()),l(3),T(n.allowRemoteAccess()?54:-1),l(8),f("active",n.disableTrayIconLogin()),l(9),T(n.updatingSortOrder()?71:-1),l(2),P("options",n.sortOptions())("isClearable",!1)("inlineSearch",!0),l(),P("ngModel",n.sortOrderCtrl())("ngModelOptions",D(44,Pt)),l(6),T(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?80:-1),l(),T(n.updatingChannel()?81:-1),l(3),f("active",n.updateChannel()===""),l(),re((d=n.sysinfo())==null?null:d.DefaultUpdateChannel),le(85),l(2),re((M=n.sysinfo())==null?null:M.ServerVersionType),le(87),l(2),f("active",n.updateChannel()==="stable"),l(5),f("active",n.updateChannel()==="beta"),l(5),f("active",n.updateChannel()==="experimental"),l(5),f("active",n.updateChannel()==="canary"),l(5),P("formGroup",n.settingsForm),l(9),P("unit",(g=n.timeTypeSignal())!==null&&g!==void 0?g:""),l(),P("min",n.timeRange()[0])("max",n.timeRange()[1]),l(),P("options",n.timeTypeOptions())("isClearable",!1),l(13),P("options",n.usageStatisticsOptions())}},dependencies:[ne,gt,Y,Tt,ee,St,te,ie,ut,Ct,mt,Nt,ae,X,Q,lt,_t,rt,dt,pt,Z,j,at,K,ct],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Jb as x,Kb as l,Na as n,Yb as r,Za as T,Zb as m,ba as f,ca as _,cb as C,na as g,oa as D,pb as s,tb as i,ub as o,xc as b,zb as u}from"./chunk-XGARKXE4.js";import{a as p}from"./chunk-7CGTOI24.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-TLY4PQBT.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import"./chunk-JJQARMUD.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function x(){return window.crypto&&typeof window.crypto.randomUUID=="function"?window.crypto.randomUUID():t()}function e(){if(window.crypto&&window.crypto.getRandomValues){let n=new Uint8Array(1);return window.crypto.getRandomValues(n),n[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let n=new Uint8Array(1);return window.msCrypto.getRandomValues(n),n[0]}else return Math.floor(Math.random()*256)}function t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){let o=Math.random()*16|0;return(n==="x"?o:o&3|8).toString(16)})}export{x as a,e as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as W}from"./chunk-BA7NYTFR.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import{a as E}from"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import{a as G}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as $,c as P,e as L,f as M}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{q as N,v as I}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{Db as F,Eb as r,Kb as u,Na as R,W as T,Za as m,cb as f,ic as p,jc as l,kb as _,pb as C,tb as o,ub as i,vb as n,yc as A}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as re}from"./chunk-ZP273LXY.js";import{c as pe,e as ue,h as Se,j as ce,s as h}from"./chunk-JJQARMUD.js";import{b as Y}from"./chunk-3UJUWE5B.js";import{a as ee,b as te,e as ne,g as ie,i as I,l as oe,p as ae,q as se,s as le,t as _e}from"./chunk-XQKR67WI.js";import{b as A}from"./chunk-CEOO3F5U.js";import{a as de}from"./chunk-O6GWHO26.js";import{j as Q}from"./chunk-M7VDIUGU.js";import{$b as j,D as g,Db as P,Eb as N,Fb as p,Ib as W,Jb as u,Kb as C,Na as _,W as d,Yb as O,Za as E,_b as V,ac as q,ba as $,bc as M,ca as x,cb as b,cc as D,dc as R,kb as m,lb as w,mb as S,mc as v,na as k,nc as Z,oc as J,pb as L,qb as z,ra as r,rb as X,sb as H,tb as s,ub as l,vb as f,xc as B,zb as K}from"./chunk-XGARKXE4.js";function Ae(a,n){if(a&1){let t=K();s(0,"spk-radio",10),u("click",function(){let i=$(t).$implicit,o=C();return x(o.pauseOption.set(i.value))}),O(1),l()}if(a&2){let t=n.$implicit,e=C();S("active",e.pauseOption()===t.value),_(),V(" ",t.label," ")}}var fe=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],y=class a{#e=d(A);pauseOptions=r(fe);closed=k();isSubmitting=r(!1);pauseTransfers=r(!1);pauseOption=r(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let o;return o=$localize` Update settings `,[n,t,e,i,o,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",5)(1,"h3"),p(2,0),l()(),s(3,"div",6)(4,"div",7),X(5,Ae,2,3,"spk-radio",8,z),l(),s(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),l(),s(10,"spk-alert",11),p(11,2),l()()(),s(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),l(),s(15,"button",14),u("click",function(){return e.submit()}),p(16,4),l()()),t&2&&(_(5),H(e.pauseOptions()),_(3),S("active",e.pauseTransfers()),_(7),S("loader",e.isSubmitting()))},dependencies:[h,se,I,te],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var Pe=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],G={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},ge=Object.entries(G).reduce((a,[n,t])=>(a[t]=n,a),{}),F=class a{#e=d(A);closed=k();isSubmitting=r(!1);sizeOptions=r(Pe);maxUploadActive=r(!1);maxDownloadActive=r(!1);maxUpload=r(0);maxDownload=r(0);maxUploadUnit=r("MByte/s");maxDownloadUnit=r("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",o=e[1]??"",c=t[2]??"MB",T=e[2]??"MB",Ce=i===""?10:parseInt(i),Oe=o===""?10:parseInt(o);this.maxUploadUnit.set(ge[c]+"/s"),this.maxDownloadUnit.set(ge[T]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(o!==""),this.maxUpload.set(Ce),this.maxDownload.set(Oe)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${G[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${G[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:16,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let o;o=$localize`Cancel`;let c;return c=$localize` Update settings `,[n,t,e,i,o,c,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",6)(1,"h3"),p(2,0),l()(),s(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),l(),s(8,"spk-form-field")(9,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),R("ngModelChange",function(o){return D(e.maxUpload,o)||(e.maxUpload=o),o}),l()(),s(10,"spk-select",12)(11,"input",13),R("ngModelChange",function(o){return D(e.maxUploadUnit,o)||(e.maxUploadUnit=o),o}),l()()(),s(12,"div",9)(13,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(14,2),l(),s(15,"spk-form-field")(16,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),R("ngModelChange",function(o){return D(e.maxDownload,o)||(e.maxDownload=o),o}),l()(),s(17,"spk-select",12)(18,"input",13),R("ngModelChange",function(o){return D(e.maxDownloadUnit,o)||(e.maxDownloadUnit=o),o}),l()()(),s(19,"p"),p(20,3),l()()(),s(21,"footer",14)(22,"button",15),u("click",function(){return e.closed.emit(!1)}),p(23,4),l(),s(24,"button",16),u("click",function(){return e.submit()}),p(25,5),l()()),t&2&&(_(6),S("active",e.maxUploadActive()),_(3),M("ngModel",e.maxUpload),m("disabled",!e.maxUploadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),M("ngModel",e.maxUploadUnit),_(2),S("active",e.maxDownloadActive()),_(3),M("ngModel",e.maxDownload),m("disabled",!e.maxDownloadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),M("ngModel",e.maxDownloadUnit),_(6),S("loader",e.isSubmitting()))},dependencies:[h,pe,ce,ue,Se,oe,I,_e],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ne(a,n){if(a&1&&(s(0,"div"),O(1),l(),f(2,"spk-progress-bar",9)),a&2){let t=C();_(),j("",t.statusData().actionText," - ",t.statusData().statusText,""),_(),m("value",t.statusData().progress*100)}}function Me(a,n){if(a&1&&(s(0,"div",5),O(1),v(2,"relativeTime"),v(3,"date"),l()),a&2){let t,e=C();_(),q(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Z(2,3,e.nextBackup().time)," at ",J(3,5,e.nextBackup().time,"shortTime")," ")}}function De(a,n){a&1&&(s(0,"div",5),p(1,1),l())}function Re(a,n){a&1&&(s(0,"div",6),P(1,2),f(2,"spk-spinner"),N(),l()),a&2&&(_(2),w("--spinner-size","12px")("--spinner-thickness","2px"))}function Fe(a,n){a&1&&(P(0,0,1),f(1,"spk-icon"),N())}function ke(a,n){a&1&&(P(0,0,2),f(1,"spk-icon"),N())}var Ee=new Date,U=class a{#e=d(A);#t=d(re);#n=d(ne);#i=d(Y);minsAgo=Ee.setMinutes(Ee.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=B(()=>this.serverState()?.ProgramState==="Running");isResuming=r(!1);nextBackup=B(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(F,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(y,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(g(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-status-bar"]],decls:14,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=W(n);let t;t=$localize`No scheduled tasks`;let e;return e=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_SPINNER:`,[n,t,e,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"label","label-loading"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(s(0,"div",3)(1,"div",4),b(2,Ne,3,3)(3,Me,4,8,"div",5)(4,De,2,0,"div",5)(5,Re,3,4,"div",6),l(),s(6,"div",7)(7,"button",8),u("click",function(){return e.pauseResume()}),P(8,0),b(9,Fe,2,0)(10,ke,2,0),N(),l(),s(11,"button",8),u("click",function(){return e.openThrottleSettingsDialog()}),s(12,"spk-icon"),O(13,"speedometer"),l()()()()),t&2){let i;_(2),L((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),_(5),S("loader",e.isResuming()),_(2),L(e.isRunning()?9:10)}},dependencies:[ae,de,Q,ee,ie,le],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"],changeDetection:0})};export{U as a};
|