@duplicati/ngclient 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/{chunk-CKPPU3GS.js → chunk-2AXNYUNT.js} +1 -1
  2. package/chunk-35H2LYPK.js +1 -0
  3. package/{chunk-RANWFSNY.js → chunk-5SGHSZAK.js} +1 -1
  4. package/{chunk-AC6VDRLC.js → chunk-5Y47Y3RB.js} +1 -1
  5. package/chunk-7I4KJB7N.js +1 -0
  6. package/{chunk-WLI4RZYL.js → chunk-A7NGO6XL.js} +1 -1
  7. package/chunk-AFUS3PYG.js +1 -0
  8. package/{chunk-4FK75Z4C.js → chunk-AV26WKVA.js} +1 -1
  9. package/chunk-C52YH32J.js +1 -0
  10. package/chunk-DIZGZ272.js +1 -0
  11. package/{chunk-4MMHXTNF.js → chunk-GI67D57P.js} +1 -1
  12. package/chunk-GYB3IDJ2.js +1 -0
  13. package/{chunk-3MTW6FJP.js → chunk-H2IAZHJK.js} +1 -1
  14. package/{chunk-UTPCUNNU.js → chunk-H7EA5XT6.js} +1 -1
  15. package/{chunk-L47VTK2X.js → chunk-IL52LC7Q.js} +1 -1
  16. package/{chunk-24PLBY6C.js → chunk-JDCFQ6PF.js} +1 -1
  17. package/{chunk-GMANGOGH.js → chunk-K3HFPUKT.js} +1 -1
  18. package/{chunk-XU7PNEZO.js → chunk-K4KGTWQK.js} +1 -1
  19. package/{chunk-IQSBPGVL.js → chunk-L44RMVJT.js} +1 -1
  20. package/{chunk-PY5HJ5U2.js → chunk-L4EVZZOM.js} +1 -1
  21. package/chunk-NCEFK5D4.js +1 -0
  22. package/{chunk-6XUWDRDE.js → chunk-NPPGT43I.js} +1 -1
  23. package/{chunk-X2NZ4CJ5.js → chunk-NSVRJR5X.js} +1 -1
  24. package/{chunk-ZD3JEKWI.js → chunk-P4AWKIXG.js} +1 -1
  25. package/{chunk-IOWSWUHM.js → chunk-QGZLYKKB.js} +1 -1
  26. package/{chunk-ORDBF5MR.js → chunk-RBNO3K72.js} +7 -7
  27. package/{chunk-S76TN27U.js → chunk-S7QBT7L2.js} +1 -1
  28. package/{chunk-PH6AAOK4.js → chunk-SYBUINNV.js} +1 -1
  29. package/chunk-SZ6B2QGN.js +1 -0
  30. package/chunk-T4LLO76D.js +1 -0
  31. package/{chunk-LVLU6MPQ.js → chunk-TIGGJ4KF.js} +1 -1
  32. package/chunk-TOQ4S3RM.js +1 -0
  33. package/chunk-V7LHB36E.js +1 -0
  34. package/{chunk-VPEVWKGB.js → chunk-VSPW7AWV.js} +1 -1
  35. package/chunk-WONBUEO3.js +1 -0
  36. package/{chunk-A66Z6362.js → chunk-WU4K3UNC.js} +1 -1
  37. package/{chunk-57M4MADC.js → chunk-XT6S3PN3.js} +1 -1
  38. package/{chunk-77NTMJCT.js → chunk-ZG7T5UHX.js} +1 -1
  39. package/chunk-ZI6WOAJG.js +1 -0
  40. package/{chunk-I6QIKK6M.js → chunk-ZYCMR5VM.js} +1 -1
  41. package/index.html +5 -5
  42. package/main-L3LC53O6.js +1 -0
  43. package/package.json +1 -1
  44. package/{styles-6W7ZCKNM.css → styles-LBHWJUQR.css} +1 -1
  45. package/chunk-22HCWJS5.js +0 -1
  46. package/chunk-3MM4GLBS.js +0 -1
  47. package/chunk-7X6SBNMU.js +0 -1
  48. package/chunk-BNNZKRIC.js +0 -1
  49. package/chunk-DYANEO5K.js +0 -1
  50. package/chunk-GJTW7UUU.js +0 -1
  51. package/chunk-N5US3SKW.js +0 -1
  52. package/chunk-NIMPOFJV.js +0 -1
  53. package/chunk-QQDSFTZV.js +0 -1
  54. package/chunk-RLJJFBQ2.js +0 -1
  55. package/chunk-VVUYO7E4.js +0 -1
  56. package/chunk-XYJYUMYL.js +0 -1
  57. package/chunk-YRXI477O.js +0 -1
  58. package/main-5KJRELCN.js +0 -1
@@ -1 +1 @@
1
- import{Aa as o,T as l,Z as a,rc as s,sc as r}from"./chunk-ORDBF5MR.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{R as l,X as a,pc as s,qc as r,ya as o}from"./chunk-RBNO3K72.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-24PLBY6C.js";import{T as s,Wa as e,Z as i,dc as r}from"./chunk-ORDBF5MR.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
1
+ import{a}from"./chunk-JDCFQ6PF.js";import{R as s,Ua as e,X as i,bc as r}from"./chunk-RBNO3K72.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-24PLBY6C.js";import{c as h}from"./chunk-N5US3SKW.js";import{a as u}from"./chunk-PH6AAOK4.js";import{F as t,Q as i,T as l,Wa as n,Z as s,dc as a}from"./chunk-ORDBF5MR.js";var m=class r{#t=s(c);#i=s(h);#s=s(u);#e=n(this.#t.getItemParsed("token")??null);#r=n(this.#t.getItemParsed("tokenSetTime")??null);tokenSetTime=this.#r.asReadonly();token=this.#e.asReadonly();#o=a(()=>{if(!this.#e()){this.#t.clearAll(),this.#i.navigate(["/login"]);return}let e=Date.now();this.#t.setItemParsed("tokenSetTime",e),this.#t.setItemParsed("token",this.#e()),this.#r.set(this.#e()?e:null)},{allowSignalWrites:!0});login(e="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(t(1),i(o=>this.#e.set(o.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(t(1),i(e=>this.#e.set(e.AccessToken??null)))}logout(){this.#s.postApiV1AuthRefreshLogout().pipe(t(1),i(e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(o){return new(o||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{m as a};
1
+ import{a as c}from"./chunk-JDCFQ6PF.js";import{c as h}from"./chunk-AFUS3PYG.js";import{a as u}from"./chunk-SYBUINNV.js";import{D as t,O as i,R as l,Ua as n,X as s,bc as a}from"./chunk-RBNO3K72.js";var m=class r{#t=s(c);#i=s(h);#s=s(u);#e=n(this.#t.getItemParsed("token")??null);#r=n(this.#t.getItemParsed("tokenSetTime")??null);tokenSetTime=this.#r.asReadonly();token=this.#e.asReadonly();#o=a(()=>{if(!this.#e()){this.#t.clearAll(),this.#i.navigate(["/login"]);return}let e=Date.now();this.#t.setItemParsed("tokenSetTime",e),this.#t.setItemParsed("token",this.#e()),this.#r.set(this.#e()?e:null)},{allowSignalWrites:!0});login(e="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(t(1),i(o=>this.#e.set(o.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(t(1),i(e=>this.#e.set(e.AccessToken??null)))}logout(){this.#s.postApiV1AuthRefreshLogout().pipe(t(1),i(e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(o){return new(o||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{m as a};
@@ -1 +1 @@
1
- import{a as N}from"./chunk-XU7PNEZO.js";import"./chunk-24PLBY6C.js";import{b as f,c as d,d as C,e as h,f as b,i as y,l as v,o as F,q as S}from"./chunk-7X6SBNMU.js";import{a as _,d as w,h as x}from"./chunk-S76TN27U.js";import{c as g}from"./chunk-N5US3SKW.js";import"./chunk-PY5HJ5U2.js";import"./chunk-PH6AAOK4.js";import{$ as s,Fb as i,Lb as c,Z as o,db as l,lb as e,mb as n,nb as p,sb as u}from"./chunk-ORDBF5MR.js";var k=new F,r=class a{#e=o(g);#t=o(N);loginForm=k.group({pass:k.control("",d.required)});submit(){this.loginForm.value.pass&&this.#t.login(this.loginForm.value.pass).subscribe({next:()=>this.#e.navigate(["/"])})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=s({type:a,selectors:[["app-login"]],standalone:!0,features:[c],decls:8,vars:1,consts:[[3,"submit","formGroup"],[1,"login-row"],["placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(t,m){t&1&&(e(0,"form",0),u("submit",function(){return m.submit()}),e(1,"div",1)(2,"spk-form-field"),p(3,"input",2),n(),e(4,"button",3),i(5," Login "),e(6,"spk-icon"),i(7,"arrow-right"),n()()()()),t&2&&l("formGroup",m.loginForm)},dependencies:[S,b,f,C,h,y,v,x,_,w],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}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{r as default};
1
+ import{a as N}from"./chunk-K4KGTWQK.js";import"./chunk-JDCFQ6PF.js";import{b as f,c as d,d as C,e as h,f as b,i as y,l as v,o as F,q as S}from"./chunk-C52YH32J.js";import{a as _,d as w,h as x}from"./chunk-S7QBT7L2.js";import{c as g}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import{Db as i,Jb as c,X as o,Z as s,bb as l,jb as e,kb as n,lb as p,qb as u}from"./chunk-RBNO3K72.js";var k=new F,r=class a{#e=o(g);#t=o(N);loginForm=k.group({pass:k.control("",d.required)});submit(){this.loginForm.value.pass&&this.#t.login(this.loginForm.value.pass).subscribe({next:()=>this.#e.navigate(["/"])})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=s({type:a,selectors:[["app-login"]],standalone:!0,features:[c],decls:8,vars:1,consts:[[3,"submit","formGroup"],[1,"login-row"],["placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(t,m){t&1&&(e(0,"form",0),u("submit",function(){return m.submit()}),e(1,"div",1)(2,"spk-form-field"),p(3,"input",2),n(),e(4,"button",3),i(5," Login "),e(6,"spk-icon"),i(7,"arrow-right"),n()()()()),t&2&&l("formGroup",m.loginForm)},dependencies:[S,b,f,C,h,y,v,x,_,w],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}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{r as default};
@@ -1 +1 @@
1
- import{$b as ee,Aa as w,Ba as _,Ca as g,Da as v,Ea as G,Fa as Y,Ga as K,Ha as q,Ia as W,Ja as X,Ka as J,La as m,Pa as M,R as y,Sa as Q,T as l,W as O,Y as a,_ as E,a as b,b as V,ea as $,fc as L,gc as te,hc as ne,ic as f,lc as re,qc as oe,sa as S,sc as P,ta as I,tc as se,xa as Z,ya as N,za as z}from"./chunk-ORDBF5MR.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
1
+ import{Aa as g,Ba as v,Ca as G,Da as Y,Ea as K,Fa as q,Ga as W,Ha as X,Ia as J,Ja as m,Na as M,P as y,Qa as Q,R as l,U as O,W as a,Y as E,Zb as ee,a as b,b as V,ca as $,dc as L,ec as te,fc as ne,gc as f,jc as re,oc as oe,qa as S,qc as P,ra as I,rc as se,va as Z,wa as N,xa as z,ya as w,za as _}from"./chunk-RBNO3K72.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
@@ -0,0 +1 @@
1
+ import{j as a,k as b}from"./chunk-A7NGO6XL.js";import"./chunk-XT6S3PN3.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-TIGGJ4KF.js";import"./chunk-S7QBT7L2.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{a as createScheduleForm,b as default};
@@ -1 +1 @@
1
- import{a as y}from"./chunk-XYJYUMYL.js";import"./chunk-22HCWJS5.js";import"./chunk-A66Z6362.js";import{n as d}from"./chunk-WLI4RZYL.js";import"./chunk-57M4MADC.js";import"./chunk-ZD3JEKWI.js";import"./chunk-7X6SBNMU.js";import"./chunk-LVLU6MPQ.js";import{l as g,p as h}from"./chunk-S76TN27U.js";import{a as v,b as C,d as f,e as S}from"./chunk-N5US3SKW.js";import"./chunk-PY5HJ5U2.js";import"./chunk-PH6AAOK4.js";import{$ as l,Fb as r,Kb as k,Lb as b,Nb as p,Qa as a,Z as s,db as o,lb as n,mb as i,nb as t}from"./chunk-ORDBF5MR.js";var I=e=>["/backup",e,"general"],L=e=>["/backup",e,"destination"],F=e=>["/backup",e,"source-data"],_=e=>["/backup",e,"schedule"],D=e=>["/backup",e,"options"],m=class e{#t=s(v);#e=s(d);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(u){return new(u||e)};static \u0275cmp=l({type:e,selectors:[["app-create-edit-backup"]],standalone:!0,features:[k([d]),b],decls:19,vars:15,consts:[["spk-step","","routerLinkActive","active",3,"routerLink"]],template:function(u,c){u&1&&(t(0,"app-status-bar"),n(1,"spk-stepper")(2,"div",0),t(3,"spk-radio"),r(4," General "),i(),n(5,"div",0),t(6,"spk-radio"),r(7," Destination "),i(),n(8,"div",0),t(9,"spk-radio"),r(10," Source Data "),i(),n(11,"div",0),t(12,"spk-radio"),r(13," Schedule "),i(),n(14,"div",0),t(15,"spk-radio"),r(16," Options "),i()(),n(17,"section"),t(18,"router-outlet"),i()),u&2&&(a(2),o("routerLink",p(5,I,c.backupId())),a(3),o("routerLink",p(7,L,c.backupId())),a(3),o("routerLink",p(9,F,c.backupId())),a(3),o("routerLink",p(11,_,c.backupId())),a(3),o("routerLink",p(13,D,c.backupId())))},dependencies:[C,f,S,y,g,h],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
1
+ import{a as y}from"./chunk-35H2LYPK.js";import"./chunk-V7LHB36E.js";import"./chunk-WU4K3UNC.js";import{n as d}from"./chunk-A7NGO6XL.js";import"./chunk-XT6S3PN3.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-TIGGJ4KF.js";import{l as g,p as h}from"./chunk-S7QBT7L2.js";import{a as v,b as C,d as f,e as S}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import{Db as r,Ib as k,Jb as b,Lb as p,Oa as a,X as s,Z as l,bb as o,jb as n,kb as i,lb as t}from"./chunk-RBNO3K72.js";var I=e=>["/backup",e,"general"],L=e=>["/backup",e,"destination"],F=e=>["/backup",e,"source-data"],_=e=>["/backup",e,"schedule"],D=e=>["/backup",e,"options"],m=class e{#t=s(v);#e=s(d);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(u){return new(u||e)};static \u0275cmp=l({type:e,selectors:[["app-create-edit-backup"]],standalone:!0,features:[k([d]),b],decls:19,vars:15,consts:[["spk-step","","routerLinkActive","active",3,"routerLink"]],template:function(u,c){u&1&&(t(0,"app-status-bar"),n(1,"spk-stepper")(2,"div",0),t(3,"spk-radio"),r(4," General "),i(),n(5,"div",0),t(6,"spk-radio"),r(7," Destination "),i(),n(8,"div",0),t(9,"spk-radio"),r(10," Source Data "),i(),n(11,"div",0),t(12,"spk-radio"),r(13," Schedule "),i(),n(14,"div",0),t(15,"spk-radio"),r(16," Options "),i()(),n(17,"section"),t(18,"router-outlet"),i()),u&2&&(a(2),o("routerLink",p(5,I,c.backupId())),a(3),o("routerLink",p(7,L,c.backupId())),a(3),o("routerLink",p(9,F,c.backupId())),a(3),o("routerLink",p(11,_,c.backupId())),a(3),o("routerLink",p(13,D,c.backupId())))},dependencies:[C,f,S,y,g,h],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
@@ -1,2 +1,2 @@
1
- import{b as M}from"./chunk-ZD3JEKWI.js";import{k as b}from"./chunk-S76TN27U.js";import{c as S}from"./chunk-PY5HJ5U2.js";import{a as k}from"./chunk-PH6AAOK4.js";import{$ as m,Fb as h,I as p,Lb as v,Ma as c,Qa as g,Wa as f,Z as i,bb as d,db as u,hb as C,lb as y,mb as o,nb as r,u as l}from"./chunk-ORDBF5MR.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(k);isLoading=f(!0);generalInfo=M(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
1
+ import{b as M}from"./chunk-P4AWKIXG.js";import{k as b}from"./chunk-S7QBT7L2.js";import{c as S}from"./chunk-L4EVZZOM.js";import{a as k}from"./chunk-SYBUINNV.js";import{$a as d,Db as h,G as p,Jb as v,Ka as c,Oa as g,Ua as f,X as i,Z as m,bb as u,fb as C,jb as y,kb as o,lb as r,s as l}from"./chunk-RBNO3K72.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(k);isLoading=f(!0);generalInfo=M(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
2
2
  `)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[b],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
@@ -1 +1 @@
1
- import{R as a,Wa as b,Z as d,bc as g,cc as y,dc as h,ha as l,n as f,oa as v,pa as c}from"./chunk-ORDBF5MR.js";function p(s,e){!e?.injector&&l(p);let n=e?.injector??d(v),o=new f(1),i=h(()=>{let t;try{t=s()}catch(u){y(()=>o.error(u));return}y(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(c).onDestroy(()=>{i.destroy(),o.complete()}),o.asObservable()}function m(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&l(m);let o=n?e?.injector?.get(c)??d(c):null,i=w(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(u.unsubscribe.bind(u)),g(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function w(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{p as a,m as b};
1
+ import{$b as g,P as a,Ua as b,X as d,ac as y,bc as h,fa as l,l as f,ma as v,na as c}from"./chunk-RBNO3K72.js";function p(s,e){!e?.injector&&l(p);let n=e?.injector??d(v),o=new f(1),i=h(()=>{let t;try{t=s()}catch(u){y(()=>o.error(u));return}y(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(c).onDestroy(()=>{i.destroy(),o.complete()}),o.asObservable()}function m(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&l(m);let o=n?e?.injector?.get(c)??d(c):null,i=w(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(u.unsubscribe.bind(u)),g(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function w(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{p as a,m as b};
@@ -1 +1 @@
1
- import{a as j}from"./chunk-XYJYUMYL.js";import{a as A}from"./chunk-22HCWJS5.js";import{a as z}from"./chunk-A66Z6362.js";import{a as L,d as N,e as $,g as V}from"./chunk-S76TN27U.js";import{d as I}from"./chunk-N5US3SKW.js";import"./chunk-PY5HJ5U2.js";import"./chunk-PH6AAOK4.js";import{$ as h,Fb as n,Hb as u,Lb as F,Mb as b,Nb as T,Qa as p,Qb as M,Rb as w,Sb as D,Z as _,bb as s,ca as v,db as k,hb as m,ib as P,ja as f,jb as y,ka as g,kb as O,lb as a,mb as o,nb as x,oc as H,rb as E,sb as B,tb as c}from"./chunk-ORDBF5MR.js";var C=class t{#t=_(A);transform(l,...e){if(!l)return"";let i=l.split(".")[0],r=parseInt(i.split(":")[0])??0,d=parseInt(i.split(":")[1])??0,R=parseInt(i.split(":")[2])??0;return this.#t.duration({hours:r,minutes:d,seconds:R}).humanize()}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=v({name:"durationFormat",type:t,pure:!0,standalone:!0})};var Y=()=>["/add-backup"],q=()=>["/restore"],G=t=>["/backup",t];function K(t,l){if(t&1&&(n(0),M(1,"durationFormat")),t&2){let e=c().$implicit;u(" - (took ",w(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration),") ")}}function Q(t,l){t&1&&n(0," N/A ")}function U(t,l){if(t&1&&n(0),t&2){let e=c().$implicit;u(" ",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceSizeString," ")}}function W(t,l){t&1&&n(0," N/A ")}function X(t,l){if(t&1&&n(0),t&2){let e=c().$implicit;u(" ",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetSizeString," ")}}function Z(t,l){t&1&&n(0," N/A ")}function tt(t,l){if(t&1&&(a(0,"spk-chip",8),n(1),o()),t&2){let e=c().$implicit;p(),u("",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount," Version")}}function et(t,l){t&1&&(a(0,"spk-chip",9),n(1,"No version yet"),o())}function nt(t,l){if(t&1){let e=E();a(0,"div",7)(1,"div",2)(2,"h3"),n(3),a(4,"spk-icon"),n(5,"database"),o()(),a(6,"p")(7,"span"),n(8,"Last successful backup:"),o(),n(9),M(10,"date"),s(11,K,2,3)(12,Q,1,0),o(),a(13,"p")(14,"span"),n(15,"Source:"),o(),s(16,U,1,1)(17,W,1,0),o(),a(18,"p")(19,"span"),n(20,"Destination:"),o(),s(21,X,1,1)(22,Z,1,0),o()(),s(23,tt,2,1,"spk-chip",8)(24,et,2,0,"spk-chip",9),a(25,"div",10)(26,"button",11),B("click",function(){let r=f(e).$implicit,d=c(2);return g(d.startBackup(r.Backup==null?null:r.Backup.ID))}),a(27,"spk-icon"),n(28,"play-circle"),o(),n(29," Start "),o(),a(30,"button",12)(31,"spk-icon"),n(32,"pencil-circle"),o(),n(33," Edit "),o(),a(34,"button",11),B("click",function(){let r=f(e).$implicit,d=c(2);return g(d.deleteBackup(r.Backup==null?null:r.Backup.ID))}),a(35,"spk-icon"),n(36,"x-circle"),o(),n(37," Delete "),o()()()}if(t&2){let e,i=l.$implicit;p(3),u(" ",(e=i.Backup==null?null:i.Backup.Name)!==null&&e!==void 0?e:"Backup name missing"," "),p(6),u(" ",D(10,7,i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.LastBackupDate,"short")," "),p(2),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.LastBackupDuration?11:12),p(5),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.SourceSizeString?16:17),p(5),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.TargetSizeString?21:22),p(2),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.BackupListCount?23:24),p(7),k("routerLink",T(10,G,i.Backup==null?null:i.Backup.ID))}}function it(t,l){if(t&1&&y(0,nt,38,12,"div",7,P),t&2){let e=c();O(e.backups())}}function at(t,l){t&1&&n(0," No backups founds ")}var S=class t{#t=_(z);backups=this.#t.backups;backupsLoading=this.#t.backupsLoading;ngOnInit(){this.#t.getBackups(!0)}startBackup(l){this.#t.startBackup(l)}deleteBackup(l){l&&this.#t.deleteBackup(l)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["app-home"]],standalone:!0,features:[F],decls:31,vars:5,consts:[[1,"type-a",3,"routerLink"],["src","/assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","/assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"]],template:function(e,i){e&1&&(x(0,"app-status-bar"),a(1,"section")(2,"header")(3,"spk-card",0),x(4,"img",1),a(5,"div",2)(6,"h3"),n(7,"Backups"),o(),a(8,"p"),n(9,"Backups are stored in the cloud and can be restored at any time."),o()(),a(10,"button",3),n(11," Add "),a(12,"spk-icon"),n(13,"plus"),o()()(),a(14,"spk-card",0),x(15,"img",4),a(16,"div",2)(17,"h3"),n(18,"Restores"),o(),a(19,"p"),n(20,"Restores are stored in the cloud and can be restored at any time."),o()(),a(21,"button",3),n(22," Start "),a(23,"spk-icon"),n(24,"arrow-right"),o()()()(),a(25,"div",5)(26,"h2"),n(27,"My backups"),o(),a(28,"div",6),s(29,it,2,0)(30,at,1,0),o()()()),e&2&&(p(3),k("routerLink",b(3,Y)),p(11),k("routerLink",b(4,q)),p(15),m(i.backups().length?29:30))},dependencies:[I,j,$,N,L,V,H,C],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{S as default};
1
+ import{a as j}from"./chunk-35H2LYPK.js";import{a as A}from"./chunk-V7LHB36E.js";import{a as z}from"./chunk-WU4K3UNC.js";import{a as L,d as N,e as $,g as V}from"./chunk-S7QBT7L2.js";import{d as I}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import{$a as s,Db as n,Fb as u,Jb as F,Kb as b,Lb as T,Oa as p,Ob as M,Pb as w,Qb as D,X as _,Z as h,aa as v,bb as k,fb as m,gb as P,ha as f,hb as y,ia as g,ib as O,jb as a,kb as o,lb as x,mc as H,pb as E,qb as B,rb as c}from"./chunk-RBNO3K72.js";var C=class t{#t=_(A);transform(l,...e){if(!l)return"";let i=l.split(".")[0],r=parseInt(i.split(":")[0])??0,d=parseInt(i.split(":")[1])??0,R=parseInt(i.split(":")[2])??0;return this.#t.duration({hours:r,minutes:d,seconds:R}).humanize()}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=v({name:"durationFormat",type:t,pure:!0,standalone:!0})};var Y=()=>["/add-backup"],q=()=>["/restore"],G=t=>["/backup",t];function K(t,l){if(t&1&&(n(0),M(1,"durationFormat")),t&2){let e=c().$implicit;u(" - (took ",w(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration),") ")}}function Q(t,l){t&1&&n(0," N/A ")}function U(t,l){if(t&1&&n(0),t&2){let e=c().$implicit;u(" ",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceSizeString," ")}}function W(t,l){t&1&&n(0," N/A ")}function X(t,l){if(t&1&&n(0),t&2){let e=c().$implicit;u(" ",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetSizeString," ")}}function Z(t,l){t&1&&n(0," N/A ")}function tt(t,l){if(t&1&&(a(0,"spk-chip",8),n(1),o()),t&2){let e=c().$implicit;p(),u("",e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount," Version")}}function et(t,l){t&1&&(a(0,"spk-chip",9),n(1,"No version yet"),o())}function nt(t,l){if(t&1){let e=E();a(0,"div",7)(1,"div",2)(2,"h3"),n(3),a(4,"spk-icon"),n(5,"database"),o()(),a(6,"p")(7,"span"),n(8,"Last successful backup:"),o(),n(9),M(10,"date"),s(11,K,2,3)(12,Q,1,0),o(),a(13,"p")(14,"span"),n(15,"Source:"),o(),s(16,U,1,1)(17,W,1,0),o(),a(18,"p")(19,"span"),n(20,"Destination:"),o(),s(21,X,1,1)(22,Z,1,0),o()(),s(23,tt,2,1,"spk-chip",8)(24,et,2,0,"spk-chip",9),a(25,"div",10)(26,"button",11),B("click",function(){let r=f(e).$implicit,d=c(2);return g(d.startBackup(r.Backup==null?null:r.Backup.ID))}),a(27,"spk-icon"),n(28,"play-circle"),o(),n(29," Start "),o(),a(30,"button",12)(31,"spk-icon"),n(32,"pencil-circle"),o(),n(33," Edit "),o(),a(34,"button",11),B("click",function(){let r=f(e).$implicit,d=c(2);return g(d.deleteBackup(r.Backup==null?null:r.Backup.ID))}),a(35,"spk-icon"),n(36,"x-circle"),o(),n(37," Delete "),o()()()}if(t&2){let e,i=l.$implicit;p(3),u(" ",(e=i.Backup==null?null:i.Backup.Name)!==null&&e!==void 0?e:"Backup name missing"," "),p(6),u(" ",D(10,7,i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.LastBackupDate,"short")," "),p(2),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.LastBackupDuration?11:12),p(5),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.SourceSizeString?16:17),p(5),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.TargetSizeString?21:22),p(2),m(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.BackupListCount?23:24),p(7),k("routerLink",T(10,G,i.Backup==null?null:i.Backup.ID))}}function it(t,l){if(t&1&&y(0,nt,38,12,"div",7,P),t&2){let e=c();O(e.backups())}}function at(t,l){t&1&&n(0," No backups founds ")}var S=class t{#t=_(z);backups=this.#t.backups;backupsLoading=this.#t.backupsLoading;ngOnInit(){this.#t.getBackups(!0)}startBackup(l){this.#t.startBackup(l)}deleteBackup(l){l&&this.#t.deleteBackup(l)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["app-home"]],standalone:!0,features:[F],decls:31,vars:5,consts:[[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"]],template:function(e,i){e&1&&(x(0,"app-status-bar"),a(1,"section")(2,"header")(3,"spk-card",0),x(4,"img",1),a(5,"div",2)(6,"h3"),n(7,"Backups"),o(),a(8,"p"),n(9,"Backups are stored in the cloud and can be restored at any time."),o()(),a(10,"button",3),n(11," Add "),a(12,"spk-icon"),n(13,"plus"),o()()(),a(14,"spk-card",0),x(15,"img",4),a(16,"div",2)(17,"h3"),n(18,"Restores"),o(),a(19,"p"),n(20,"Restores are stored in the cloud and can be restored at any time."),o()(),a(21,"button",3),n(22," Start "),a(23,"spk-icon"),n(24,"arrow-right"),o()()()(),a(25,"div",5)(26,"h2"),n(27,"My backups"),o(),a(28,"div",6),s(29,it,2,0)(30,at,1,0),o()()()),e&2&&(p(3),k("routerLink",b(3,Y)),p(11),k("routerLink",b(4,q)),p(15),m(i.backups().length?29:30))},dependencies:[I,j,$,N,L,V,H,C],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{S as default};