@duplicati/ngclient 0.0.97 → 0.0.99
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-22CSSCKZ.js +1 -0
- package/chunk-23KHTRDM.js +1 -0
- package/chunk-2SGDSXNW.js +1 -0
- package/chunk-2ZK7AAG4.js +1 -0
- package/chunk-36ZZ3COU.js +1 -0
- package/{chunk-QPO2N2OR.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-47OESBLR.js +1 -0
- package/{chunk-LO4MUZS2.js → chunk-4FF7PF7J.js} +1 -1
- package/chunk-54SNAQYD.js +1 -0
- package/chunk-7NPADQLG.js +1 -0
- package/chunk-AKXOFDEQ.js +8 -0
- package/chunk-AMJ2CM2Q.js +1 -0
- package/chunk-ASEBN4DE.js +1 -0
- package/chunk-BKWTKAB4.js +1 -0
- package/{chunk-CHZ7TMI7.js → chunk-BWYJMRKB.js} +1 -1
- package/chunk-CEOO3F5U.js +1 -0
- package/chunk-D5WIWFNP.js +1 -0
- package/{chunk-W5YK2JJZ.js → chunk-DJWNLIDJ.js} +1 -1
- package/chunk-DRBDCRHV.js +1 -0
- package/{chunk-MJUYFS7O.js → chunk-E2LHQGCK.js} +1 -1
- package/chunk-EKIFJPZJ.js +1 -0
- package/chunk-EO2PLY2Q.js +1 -0
- package/chunk-EQCQL7A4.js +1 -0
- package/{chunk-6LVGSIUU.js → chunk-FDMBNUIK.js} +1 -1
- package/{chunk-7NEOVOUN.js → chunk-FKTH6XCB.js} +1 -1
- package/chunk-FQPH5MIV.js +2 -0
- package/chunk-FRXAEGHW.js +1 -0
- package/chunk-GNTO7EKM.js +1 -0
- package/chunk-H6IX2D2G.js +1 -0
- package/chunk-I3TLRILF.js +1 -0
- package/chunk-I457VUEG.js +1 -0
- package/{chunk-XC6KYSRC.js → chunk-ISRMJKPG.js} +1 -1
- package/chunk-J6XKFGF5.js +2 -0
- package/chunk-JIPY2BNJ.js +1 -0
- package/{chunk-LHSJLKCF.js → chunk-JJQARMUD.js} +1 -1
- package/{chunk-4XPN5ZGE.js → chunk-K3CYM6ID.js} +1 -1
- package/{chunk-Q6U2NFPI.js → chunk-KABJYPCP.js} +1 -1
- package/chunk-LU4LP7JL.js +3 -0
- package/chunk-M7VDIUGU.js +1 -0
- package/chunk-MEQPT4C3.js +1 -0
- package/chunk-MYK7A3PZ.js +1 -0
- package/{chunk-S5VSZG5H.js → chunk-NFME267J.js} +1 -1
- package/chunk-O6GWHO26.js +1 -0
- package/chunk-OH33D663.js +1 -0
- package/{chunk-FWWMGA32.js → chunk-PFAU4FFV.js} +1 -1
- package/chunk-PGUALKQ6.js +1 -0
- package/{chunk-OS4AAJLB.js → chunk-PX6A6XCQ.js} +1 -1
- package/chunk-QMMXH5TN.js +1 -0
- package/chunk-QRVYPTC6.js +8 -0
- package/chunk-RHW5QVAY.js +1 -0
- package/chunk-SFWQDWHT.js +1 -0
- package/chunk-UJZB6UQE.js +1 -0
- package/chunk-UXWTPWS6.js +1 -0
- package/chunk-VP44CSPI.js +1 -0
- package/chunk-VRGLHRK2.js +2 -0
- package/{chunk-CMXSHXAU.js → chunk-WCLOWI5G.js} +1 -1
- package/chunk-WSLU6K4D.js +1 -0
- package/chunk-WVVXCHHS.js +1 -0
- package/chunk-X4FOF7ZO.js +1 -0
- package/chunk-XGARKXE4.js +7 -0
- package/chunk-XH2A67YP.js +1 -0
- package/chunk-XITZBHPE.js +1 -0
- package/chunk-XQKR67WI.js +1 -0
- package/chunk-YPSSTA3J.js +1 -0
- package/chunk-ZDBNCA7O.js +1 -0
- package/chunk-ZHAXIU33.js +1 -0
- package/chunk-ZP273LXY.js +1 -0
- package/index.html +2 -2
- package/main-73DNRGWN.js +1 -0
- package/package.json +1 -1
- package/styles-2KPDWK5U.css +1 -0
- package/chunk-2SYN2ATG.js +0 -1
- package/chunk-3GK4TNUH.js +0 -1
- package/chunk-3WEATDBM.js +0 -1
- package/chunk-3WKC2CFC.js +0 -1
- package/chunk-3YOT5OAB.js +0 -1
- package/chunk-4ERW7ITN.js +0 -1
- package/chunk-4SOUVJR6.js +0 -1
- package/chunk-5COOM7FC.js +0 -6
- package/chunk-5UL3RRQI.js +0 -2
- package/chunk-7EPQLKGD.js +0 -1
- package/chunk-7JZ5LA6R.js +0 -1
- package/chunk-7XGYQRKR.js +0 -1
- package/chunk-BYMCE7VW.js +0 -1
- package/chunk-C2PMOZWR.js +0 -1
- package/chunk-CPOAOTIS.js +0 -1
- package/chunk-CR2UB7UZ.js +0 -1
- package/chunk-G3YJXHRY.js +0 -1
- package/chunk-GI6WORKU.js +0 -1
- package/chunk-HE6PHO5B.js +0 -1
- package/chunk-HGERKLOF.js +0 -1
- package/chunk-HLLAB5VQ.js +0 -3
- package/chunk-HYBV36HG.js +0 -1
- package/chunk-IAVOZTCR.js +0 -1
- package/chunk-IHYIT4I3.js +0 -1
- package/chunk-ILQK4A72.js +0 -1
- package/chunk-INK3KQF2.js +0 -1
- package/chunk-L3T52MCL.js +0 -1
- package/chunk-MJI6X5KH.js +0 -1
- package/chunk-N7UCCMLS.js +0 -1
- package/chunk-NL7QPU6R.js +0 -1
- package/chunk-NV2YMSSM.js +0 -1
- package/chunk-OL4IJVKD.js +0 -1
- package/chunk-PTC4N7TU.js +0 -7
- package/chunk-PUSUA4U7.js +0 -1
- package/chunk-Q3FF4WG3.js +0 -1
- package/chunk-QX5XWUM2.js +0 -1
- package/chunk-RIGBDLYY.js +0 -1
- package/chunk-UMUPSIIL.js +0 -1
- package/chunk-USGQSK2Z.js +0 -1
- package/chunk-V6OHLKTK.js +0 -1
- package/chunk-VYKAGJXY.js +0 -1
- package/chunk-WBNOGAKJ.js +0 -1
- package/chunk-WNWGY2FM.js +0 -1
- package/chunk-XBZX6CUW.js +0 -1
- package/chunk-YIWL3QAP.js +0 -1
- package/chunk-ZFE5M6M3.js +0 -6
- package/chunk-ZOUY24KQ.js +0 -1
- package/chunk-ZRXUUC26.js +0 -1
- package/chunk-ZTJALQGT.js +0 -1
- package/main-GMFQCDBZ.js +0 -1
- package/styles-IOWRSZHV.css +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};
|
|
@@ -0,0 +1 @@
|
|
|
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 @@
|
|
|
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{
|
|
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};
|
|
@@ -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{c as a}from"./chunk-23KHTRDM.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,8 @@
|
|
|
1
|
+
import{g as Yt}from"./chunk-22CSSCKZ.js";import{a as Qt,b as Jt,o as tt}from"./chunk-AKXOFDEQ.js";import{a as jt}from"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import{a as Xt,b as qt}from"./chunk-23KHTRDM.js";import{a as zt}from"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import{a as U}from"./chunk-PX6A6XCQ.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{b as wt,c as At,e as vt,f as Pt,g as Vt,i as bt,j as Mt,m as Gt,n as Bt,o as Lt,p as Ut,q as Ht,r as Kt,t as Wt}from"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as ft,d as Dt}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{A as $t,a as Et,b as Ot,d as xt,e as kt,l as Rt,o as Nt,p as ht,t as yt,z as It}from"./chunk-XQKR67WI.js";import{b as St}from"./chunk-CEOO3F5U.js";import{c as gt}from"./chunk-K3CYM6ID.js";import{i as Ct}from"./chunk-M7VDIUGU.js";import{$b as _t,D as it,Db as O,Eb as x,Fb as M,Gb as q,Hb as j,Ib as H,Jb as f,Kb as p,Na as o,Nb as N,Pb as lt,Qb as T,Ua as at,Vb as st,W as y,Wb as pt,Xb as P,Yb as _,Za as rt,Zb as Q,_b as D,ba as C,bc as ct,ca as g,cb as m,cc as mt,dc as Ft,ec as J,fc as Y,ga as ot,gc as Z,hc as ut,ic as dt,jc as G,kb as c,lc as B,mb as X,pb as u,pc as L,qb as I,ra as R,rb as $,sb as w,tb as s,ub as r,vb as d,wb as A,xb as v,xc as K,yb as b,yc as Tt,zb as S}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var Zt=["formRef"],te=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),ee=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),ne=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),ie=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),oe=()=>({maxWidth:"700px",width:"100%"});function ae(n,i){n&1&&(O(0,5,2),d(1,"spk-icon"),x())}function re(n,i){n&1&&M(0,5,3)}function le(n,i){if(n&1){let t=S();O(0,5,1),s(1,"button",21),f("click",function(){C(t);let a=p();return g(a.testDestination())}),m(2,ae,2,0)(3,re,1,0),r(),x()}if(n&2){let t=p();o(),X("success",t.successfulTest()),o(),u(t.successfulTest()?2:3)}}function se(n,i){if(n&1){let t=S();s(0,"p",27),f("click",function(){C(t);let a=p();return g(a.removeDestinationFormGroup(a.destinationCount()-1))}),O(1,8),d(2,"span",28),x(),r()}}function pe(n,i){if(n&1){let t=S();s(0,"div",34),f("click",function(){let a=C(t).$implicit,l=p(2);return g(l.addDestinationFormGroup(a.key))}),s(1,"h3"),_(2),r(),s(3,"p"),_(4),r()()}if(n&2){let t=i.$implicit;o(2),Q(t.displayName),o(2),Q(t.description)}}function _e(n,i){if(n&1){let t=S();s(0,"button",35,1),f("click",function(){let a=C(t).$implicit,l=p(2);return g(l.addDestinationFormGroup(a.key))}),_(2),r()}if(n&2){let t=i.$implicit;o(2),D(" ",t.displayName," ")}}function ce(n,i){if(n&1&&(s(0,"div",29),$(1,pe,5,2,"div",30,I),r(),s(3,"spk-menu",31)(4,"button",32),M(5,9),r(),A(6,20),$(7,_e,3,1,"button",33,I),v(),r()),n&2){let t=p();o(),w(t.destinationTypeOptionsFocused()),o(2),c("searchable",!0),o(4),w(t.destinationTypeOptionsNotFocused())}}function me(n,i){n&1&&b(0)}function Fe(n,i){if(n&1&&m(0,me,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let l=P(29),F=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",G(7,z,B(2,te,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function ue(n,i){n&1&&b(0)}function de(n,i){if(n&1&&m(0,ue,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let l=P(29),F=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",G(7,z,B(2,ee,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Te(n,i){if(n&1){let t=S();O(0,10,1),s(1,"button",35,1),f("click",function(){let a=C(t).$implicit,l=p(2);return g(l.addAdvancedFormPair(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function Ce(n,i){n&1&&b(0)}function ge(n,i){if(n&1&&m(0,Ce,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let l=P(29),F=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",G(7,z,B(2,ne,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function fe(n,i){if(n&1){let t=S();O(0,11,1),s(1,"button",35,1),f("click",function(){let a=C(t).$implicit,l=p(2);return g(l.addHttpOption(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function De(n,i){n&1&&b(0)}function Se(n,i){if(n&1&&m(0,De,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let l=P(29),F=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",G(7,z,B(2,ie,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Ee(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Oe(n,i){if(n&1&&(s(0,"app-file-tree",43)(1,"label",47),_(2),m(3,Ee,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name)}}function xe(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ke(n,i){if(n&1&&(s(0,"app-file-tree",44)(1,"label",47),_(2),m(3,xe,3,1,"spk-tooltip",48),r(),d(4,"input",49),r()),n&2){let t,e=p().$implicit,a=p(2);c("hideShortcuts",!0)("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name)}}function Re(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ne(n,i){n&1&&(s(0,"spk-icon",51),_(1,"link"),r())}function he(n,i){n&1&&(s(0,"spk-icon",51),_(1,"envelope"),r())}function ye(n,i){n&1&&(s(0,"spk-icon",51),_(1,"textbox"),r())}function Ie(n,i){if(n&1&&(s(0,"spk-form-field")(1,"label",47),_(2),m(3,Re,3,1,"spk-tooltip",48),r(),d(4,"input",50),m(5,Ne,2,0,"spk-icon",51)(6,he,2,0,"spk-icon",51)(7,ye,2,0,"spk-icon",51),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),u(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function $e(n,i){if(n&1){let t=S();s(0,"span",55),f("click",function(){C(t);let a=p(2).$implicit,l=p(2);return g(l.oauthStartTokenCreation(a.destinationType))}),_(1,"AuthID"),r()}}function we(n,i){n&1&&(s(0,"spk-icon",51),_(1,"password"),r())}function Ae(n,i){if(n&1){let t=S();s(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye "),r()}}function ve(n,i){if(n&1){let t=S();s(0,"spk-icon",56),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye-slash "),r()}}function Pe(n,i){if(n&1&&(s(0,"spk-form-field")(1,"label",47),_(2),r(),d(3,"input",52),m(4,$e,2,0,"span",53)(5,we,2,0,"spk-icon",51)(6,Ae,2,0,"spk-icon",54)(7,ve,2,0,"spk-icon",54),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),u(e.oauthField===e.formView.name?4:5),o(2),u(e.formView.showPassword?6:7)}}function Ve(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Me(n,i){if(n&1&&(s(0,"spk-select",57)(1,"label",47),_(2),m(3,Ve,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,be,1,1,"ng-template",null,3,L)),n&2){let t,e=P(6);p();let a=Z(0),l=p().$implicit;c("options",a)("isClearable",!1)("optionTemplate",e),o(),T("for","destination-",l.formGroupName,"-",l.index,"-",l.asHttpOptions?"http":"other",""),o(),D(" ",(t=l.formView.shortDescription)!==null&&t!==void 0?t:l.formView.name," "),o(),u(l.formView.longDescription?3:-1),o(),T("id","destination-",l.formGroupName,"-",l.index,"-",l.asHttpOptions?"http":"other",""),N("formControlName",l.formView.name)}}function Ge(n,i){if(n&1&&(J(0),m(1,Me,7,14)),n&2){let t=p().$implicit,e=Y(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:-1)}}function Be(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Le(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;_t(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ue(n,i){if(n&1&&(s(0,"spk-select",59)(1,"label",47),_(2),m(3,Be,3,1,"spk-tooltip",48),r(),d(4,"input",49),r(),m(5,Le,1,2,"ng-template",null,4,L)),n&2){let t,e=P(6);p();let a=Z(0),l=p().$implicit;c("options",a)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),o(),T("for","destination-",l.formGroupName,"-",l.index,"-",l.asHttpOptions?"http":"other",""),o(),D(" ",(t=l.formView.shortDescription)!==null&&t!==void 0?t:l.formView.name," "),o(),u(l.formView.longDescription?3:-1),o(),T("id","destination-",l.formGroupName,"-",l.index,"-",l.asHttpOptions?"http":"other",""),N("formControlName",l.formView.name)}}function He(n,i){n&1&&d(0,"spk-progress-bar",58)}function Ke(n,i){if(n&1&&(J(0),m(1,Ue,7,15)(2,He,1,0,"spk-progress-bar",58)),n&2){let t=p().$implicit,e=Y(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:2)}}function We(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ze(n,i){if(n&1&&(s(0,"app-size",45)(1,"label",47),_(2),m(3,We,3,1,"spk-tooltip",48),r()()),n&2){let t,e=p().$implicit;c("inputType",e.Name)("formControlName",e.formView.name)("customId",`destination-{{ item.formGroupName }}-{{ item.index }}-{{
|
|
2
|
+
item.asHttpOptions ? 'http' : 'other'
|
|
3
|
+
}}`),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1)}}function Xe(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function qe(n,i){if(n&1&&(s(0,"spk-form-field")(1,"label",47),_(2),m(3,Xe,3,1,"spk-tooltip",48),r(),d(4,"input",60),s(5,"spk-icon",51),_(6,"numpad"),r()()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name)}}function je(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Qe(n,i){if(n&1&&(s(0,"spk-toggle",46)(1,"label",47),_(2),m(3,je,3,1,"spk-tooltip",48),r(),d(4,"input",61),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),N("formControlName",e.formView.name)}}function Je(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ye(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Ze(n,i){if(n&1&&(s(0,"spk-select",62)(1,"label",47),_(2),m(3,Je,3,1,"spk-tooltip",48),r(),d(4,"input",63),r(),m(5,Ye,1,1,"ng-template",null,4,L)),n&2){let t,e=P(6),a=p().$implicit;c("options",a.formView.options)("selectMultiple",!0)("optionTemplate",e),o(),lt("for","destination-",a.formGroupName,"-",a.index,""),o(),D(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),o(),u(a.formView.longDescription?3:-1),o(),N("formControlName",a.formView.name)}}function tn(n,i){if(n&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function en(n,i){if(n&1&&(s(0,"app-timespan",45)(1,"label",47),_(2),m(3,tn,3,1,"spk-tooltip",48),r()()),n&2){let t,e=p().$implicit;c("inputType",e.formView.name)("formControlName",e.formView.name)("customId","destination-"+e.formGroupName+"-"+e.index+"-"+(e.asHttpOptions?"http":"other")),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1)}}function nn(n,i){if(n&1){let t=S();s(0,"button",64),f("click",function(){C(t);let a=p().$implicit,l=p(2);return g(l.removeFormView(a.formView,0))}),s(1,"spk-icon"),_(2,"x-circle"),r()()}}function on(n,i){if(n&1&&(s(0,"div",41),A(1,42),m(2,Oe,5,17,"app-file-tree",43)(3,ke,5,13,"app-file-tree",44)(4,Ie,8,13,"spk-form-field")(5,Pe,8,13,"spk-form-field")(6,Ge,2,2)(7,Ke,3,2)(8,ze,4,9,"app-size",45)(9,qe,7,11,"spk-form-field")(10,Qe,5,11,"spk-toggle",46)(11,Ze,7,9)(12,en,4,9,"app-timespan",45),v(),m(13,nn,3,0,"button",32),r()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),u(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"||t.formView.type==="DateTime"?12:-1),o(11),u(t.formGroupName==="advanced"?13:-1)}}function an(n,i){if(n&1&&(A(0,22)(1,36),$(2,Fe,1,9,"ng-container",null,I),$(4,de,1,9,"ng-container",null,I),s(6,"app-toggle-card",37),A(7,38),O(8,10),s(9,"spk-menu",31)(10,"button",39),d(11,"spk-icon"),r(),A(12,20),$(13,Te,3,1,"button",33,I),v(),r(),x(),v(),$(15,ge,1,9,"ng-container",null,I),r(),s(17,"app-toggle-card",37),A(18,38),O(19,11),s(20,"spk-menu",31)(21,"button",39),d(22,"spk-icon"),r(),A(23,20),$(24,fe,3,1,"button",33,I),v(),r(),x(),v(),$(26,Se,1,9,"ng-container",null,I),r(),m(28,on,14,5,"ng-template",null,2,L),v()()),n&2){let t=p();o(2),w(t.destinationFormPair().custom),o(2),w(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),w(t.notSelectedAdvancedFormPair()),o(2),w(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedHttpOptions().length===0),o(3),w(t.notSelectedHttpOptions()),o(2),w(t.selectedHttpOptions())}}function rn(n,i){if(n&1){let t=S();s(0,"spk-dialog",65),Ft("isOpenChange",function(a){C(t);let l=p();return mt(l.targetUrlDialogOpen,a)||(l.targetUrlDialogOpen=a),g(a)}),s(1,"header",66)(2,"h2"),M(3,12),r(),s(4,"spk-alert",67),M(5,13),r()(),s(6,"div",68)(7,"spk-form-field"),d(8,"textarea",69),r()(),s(9,"footer",70)(10,"button",24),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!1))}),_(11,"Cancel"),r(),s(12,"button",71),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!0))}),O(13,14),d(14,"spk-icon"),x(),r()()()}if(n&2){let t=p();ct("isOpen",t.targetUrlDialogOpen),c("options",dt(3,oe)),o(8),c("formControl",t.targetUrlCtrl)}}var W=new Kt,An=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),vn=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),et=class n{#l=y(Dt);#s=y(ft);#p=y(gt);#t=y(tt);#i=y(St);#e=y(kt);#n=y(Yt);injector=y(ot);formRef=at.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);successfulTest=R(!1);destinationTypeOptionsInFocus=R(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=R(Jt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(a=>a.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=Tt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Vt;targetUrlInitial=R(null);targetUrlDialogOpen=R(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:a=>{let l=a.error.error.Error;if(l==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:F=>{F&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),l.startsWith("incorrect-cert:")){let F=l.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
4
|
+
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
5
|
+
The server reported the certificate hash: ${F}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:E=>{E&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",F)}})}if(l.startsWith("incorrect-host-key:")){let F=l.split('incorrect-host-key:"')[1].split('",')[0],E=l.split('accepted-host-key:"')[1].split('",')[0];E?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
6
|
+
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
7
|
+
Do you want to REPLACE your CURRENT host key ${E}
|
|
8
|
+
with the REPORTED host key: ${F}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:k=>{k&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${F}`,confirmText:"Approve",cancelText:"Cancel"},closed:k=>{k&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}})}}})}mapToTargetUrl(i){return Qt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=R("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=R(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=R(!1);#_=R(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,a=this.#o()+"?type="+i+"&token="+this.#a(),l=screen.width/2-t/2,F=screen.height/2-e/2,E=window.open(a,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+l+",top="+F);E?.addEventListener("blur",k=>{console.log("event blur",k)}),E?.addEventListener("beforeunload",k=>{console.log("event beforeunload",k),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(it(()=>this.#r.set(!1))).subscribe({next:V=>{console.log("res",V),V?.authid&&this.#_.set(V.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=rt({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&st(e.formRef,Zt,5),t&2&&pt()},features:[ut([tt])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let a;a=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let l;l=$localize`Other destinations`;let F;F=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,F=H(F);let E;E=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,E=H(E);let k;k=$localize`Edit target URL`;let V;V=$localize` Be careful, this will overwrite everything you have in your destination. `;let nt;return nt=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,e,a,l,F,E,k,V,nt,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"inputType","formControlName","customId"],[1,"primary","raised"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let a=S();s(0,"form",15,0),f("submit",function(){return C(a),g(e.next())}),s(2,"header")(3,"h3",16),O(4,5),s(5,"div",17),m(6,le,4,3,"button",18),s(7,"spk-menu")(8,"button",19),d(9,"spk-icon"),r(),A(10,20),s(11,"button",21),f("click",function(){return C(a),g(e.openTargetUrlDialog())}),d(12,"spk-icon"),r(),v(),r()(),x(),r(),m(13,se,3,0,"p"),r(),m(14,ce,9,1)(15,an,30,6,"ng-container",22),s(16,"div",23)(17,"button",24),f("click",function(){return C(a),g(e.goBack())}),O(18,6),d(19,"spk-icon"),x(),r(),s(20,"button",25),O(21,7),d(22,"spk-icon"),x(),r()()(),m(23,rn,15,4,"spk-dialog",26)}if(t&2){let a;c("formGroup",e.destinationForm),o(6),u(e.destinationCount()>0?6:-1),o(7),u(e.destinationCount()>0?13:-1),o(),u(e.destinationCount()===0?14:-1),o(),u(!((a=e.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?15:-1),o(8),u(e.targetUrlDialogOpen()?23:-1)}},dependencies:[Wt,bt,At,Mt,wt,vt,Pt,Gt,Bt,Ht,Lt,Ut,Ct,Rt,Nt,Et,It,$t,xt,Ot,yt,ht,qt,Xt,jt,zt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{An as createDestinationForm,vn as createDestinationFormGroup,et as default};
|
|
@@ -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{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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-RHW5QVAY.js";import{b as o}from"./chunk-CEOO3F5U.js";import{C as a,D as r,N as p,Q as c,W as n,ra as s}from"./chunk-XGARKXE4.js";var B=class i{#s=n(o);#u=null;#t=s([]);#e=s([]);#a=s(!1);#r=s(!1);#i=s(null);#p=s("id");orderBy=this.#p.asReadonly();backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#r.asReadonly();deletingBackup=this.#i.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=d();return this.#t.set([...this.#t(),{id:e,data:t}]),e}setOrderBy(t){this.#p.set(t),this.getBackups(!0)}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#u,u=Date.now(),l=e&&u-e<15*60*1e3;!1||!t&&l&&this.#e().length||(this.#u=u,this.#a.set(!0),this.#s.getApiV1Backups({orderBy:this.#p()}).pipe(a(1),p(k=>this.#e.set(k)),r(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#r.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),p(()=>this.getBackups(!0)),r(()=>this.#r.set(!1))).subscribe()}deleteBackup(t){this.#i.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.#i.set(null))).subscribe({next:()=>this.getBackups(!0)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"})};export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-BWYJMRKB.js";import{W as p,ab as a}from"./chunk-XGARKXE4.js";var u=class e{#t=p(m);transform(t,n=!1,...f){if(!t)return"";let r=t.split(".")[0],s=parseInt(r.split(":")[0])??0,i=parseInt(r.split(":")[1])??0,o=parseInt(r.split(":")[2])??0;return n?`${s}h ${i}m ${o}s`:this.#t.duration({hours:s,minutes:i,seconds:o}).humanize()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=a({name:"durationFormat",type:e,pure:!0})};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as a,j as b}from"./chunk-AKXOFDEQ.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-23KHTRDM.js";import"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import"./chunk-PX6A6XCQ.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.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 createOptionsForm,b as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as P}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{D as m,Kb as x,Na as s,Q as h,W as r,Yb as a,Za as u,Zb as y,cb as f,lb as C,pb as _,qb as v,ra as d,rb as L,sb as b,tb as o,ub as i,xc as M}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var l=class e{#e=r(P);isLoaded=d(!1);crashLog=d(null);load(){this.isLoaded()||this.#e.getApiV1LogdataCrashlog().pipe(m(()=>this.isLoaded.set(!0))).subscribe({next:t=>{this.crashLog.set(t.Logdata??null)}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})};function S(e,t){e&1&&(o(0,"div",0),a(1,"Loading ..."),i())}function k(e,t){e&1&&(o(0,"div",0),a(1,"No crash log found"),i())}function w(e,t){if(e&1&&(o(0,"li"),a(1),i()),e&2){let n=t.$implicit;s(),y(n)}}function I(e,t){if(e&1&&(o(0,"div",2)(1,"code")(2,"ol",3),L(3,w,2,1,"li",null,v),i()()()),e&2){let n=x();C("grid-column","1 / -1")("height","auto"),s(3),b(n.breakIntoLines(n.crashLog()))}}var p=class e{#e=r(l);logsLoading=M(()=>!this.#e.isLoaded());crashLog=this.#e.crashLog;ngOnInit(){this.#e.load()}breakIntoLines(t){return t?t.split(`
|
|
2
|
+
`):[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=u({type:e,selectors:[["app-crashlogs"]],decls:5,vars:1,consts:[[1,"loading"],[2,"white-space","pre-wrap",3,"grid-column","height"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]],template:function(n,c){if(n&1&&(o(0,"h3"),a(1,"Crash log"),i(),f(2,S,2,0,"div",0)(3,k,2,0,"div",0)(4,I,5,4,"div",1)),n&2){let g;s(2),_(c.logsLoading()?2:c.crashLog()==null||((g=c.crashLog())==null?null:g.length)===0?3:4)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-CEOO3F5U.js";import{D as p,N as a,Q as l,W as m,ra as i,xc as r}from"./chunk-XGARKXE4.js";var d=class n{#s=m(u);isLoaded=i(!1);systemInfo=i(null);filterGroups=i(null);backendModules=r(()=>this.systemInfo()?.BackendModules??[]);allOptionsGrouped=r(()=>{let e={displayName:"Default",options:this.systemInfo()?.Options?.map(this.#e)??[]},s=this.systemInfo()?.GenericModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[],o=this.systemInfo()?.CompressionModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[];return[e,...s,...o]});allOptions=r(()=>this.allOptionsGrouped().reduce((e,s)=>[...e,...s.options],[]));preload(e=!1){let s=this.#s.getApiV1Systeminfo().pipe(a(o=>{this.systemInfo.set(o)}),p(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}preloadFilterGroups(e=!1){let s=this.#s.getApiV1SysteminfoFiltergroups().pipe(a(o=>{this.filterGroups.set(o)}),p(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}#e(e){return{name:e.Name,type:e.Type,shortDescription:e.ShortDescription??void 0,longDescription:e.LongDescription??void 0,options:e.ValidValues}}static \u0275fac=function(s){return new(s||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as P,d as A}from"./chunk-3UJUWE5B.js";import{e as d}from"./chunk-XQKR67WI.js";import{b as k}from"./chunk-CEOO3F5U.js";import{l as M}from"./chunk-M7VDIUGU.js";import{Db as v,Eb as E,Fb as N,Gb as I,Hb as F,M as C,Na as T,Q as c,W as s,Za as O,g as S,mc as w,oc as y,ra as n,tb as m,ub as f,vb as _,xc as g,yc as b}from"./chunk-XGARKXE4.js";var r=class o{reconnectTimer=n(15e3);countdown=n(0);connectTimerEffect=b(()=>{let t=this.reconnectTimer();this.countdown.set(t/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let t;t=$localize`Reconnecting...`;let e;return e=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[t,e,["header",""],["content",""]]},template:function(e,i){e&1&&(m(0,"header",2)(1,"h3"),N(2,0),f()(),m(3,"div",3)(4,"p"),v(5,1),_(6,"strong"),w(7,"number"),E(),f()()),e&2&&(T(7),I(y(7,1,i.countdown(),"2.0-0")),F(5))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var h=class o{dialog=s(d);#o=s(k);#t=n("disconnected");#e=n(null);#s=n(-1);#n=n(0);#i=n(!1);#c=new S;connectionStatus=this.#t.asReadonly();serverState=this.#e.asReadonly();#r=void 0;duration=s(P).relayIsEnabled()?"94s":"299s";start(){this.#i.set(!0),this.#c=new S,this.#a()}stop(){this.#c.next(),this.#c.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#a(){this.#t.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#s(),longpoll:this.#s()>0,duration:this.duration}).pipe(C(this.#c)).subscribe({next:t=>{t&&this.#l(t),this.#d()},error:t=>{let i=this.#n()+1,l=Math.min(5e3*i,3e4);this.#n.set(i),i>3&&this.#t.set("disconnected"),this.#r||(this.#r=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#r.component.reconnectTimer.set(l),setTimeout(()=>{this.#a()},l)}})}#l(t){this.#t.set("connected"),this.#e.set(t),this.#s.set(t.LastEventID||-1),this.#n.set(0)}#d(){this.#i()&&this.#a()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var p=class o{#o=s(A);dialog=s(d);#t=null;#e=n("disconnected");#s=n(null);#n=void 0;shouldConnect=n(!0);connectionStatus=this.#e.asReadonly();serverState=this.#s.asReadonly();start(){this.#i(),this.shouldConnect.set(!0)}#i(){let t=this.#o.token();if(!t){console.error("No access token available");return}let e=window.location.protocol==="https:"?"wss:":"ws:",i=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(i=":8200");let l=window.location.hostname,$=`${e}//${l}${i}/notifications?token=${t}`;this.#e.set("connecting"),this.#t=new WebSocket($),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#e.set("connected"),this.#n&&this.#n.close()},this.#t.onmessage=a=>{try{let u=JSON.parse(a.data);this.#s.set(u)}catch(u){console.error("Error parsing WebSocket message",u)}},this.#t.onclose=a=>{console.log("WebSocket connection closed",a),this.#e.set("disconnected"),this.shouldConnect()&&(this.#n||(this.#n=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#n.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#i(),5e3))},this.#t.onerror=a=>{console.error("WebSocket error",a),this.#e.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var R=class o{#o=s(p);#t=s(h);#e=n("longpoll");connectionStatus=g(()=>this.#e()==="websocket"?this.#o.connectionStatus():this.#t.connectionStatus());serverState=g(()=>this.#e()==="websocket"?this.#o.serverState():this.#t.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#t.stop()):(this.#t.reconnectIfNeeded(),this.#o.stop()),this.#e.set(t)}getConnectionMethod(){return this.#e()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};export{R as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as a,n as b}from"./chunk-AKXOFDEQ.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-23KHTRDM.js";import"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import"./chunk-PX6A6XCQ.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.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 createSourceDataForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as a,g as b,h as c}from"./chunk-AKXOFDEQ.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-23KHTRDM.js";import"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import"./chunk-PX6A6XCQ.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.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{b as NONE_OPTION,a as createGeneralForm,c as default};
|