@duplicati/ngclient 0.0.112 → 0.0.114

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 (67) hide show
  1. package/{chunk-RTXTOPSU.js → chunk-37GXHTIP.js} +1 -1
  2. package/{chunk-MHO7INGX.js → chunk-3IIFLG6J.js} +1 -1
  3. package/{chunk-7JUYF3HW.js → chunk-554T66WI.js} +1 -1
  4. package/{chunk-BVTZNGGE.js → chunk-5G5PH7FG.js} +1 -1
  5. package/{chunk-7NFVFBIE.js → chunk-66Q4TXVX.js} +1 -1
  6. package/{chunk-ORDORLQT.js → chunk-6FFPXENZ.js} +1 -1
  7. package/{chunk-KIUU6RPZ.js → chunk-7LU4D3GR.js} +1 -1
  8. package/{chunk-EP7S6KOG.js → chunk-7WFWZORV.js} +1 -1
  9. package/{chunk-J7PTPA7J.js → chunk-CFVPLY5R.js} +1 -1
  10. package/{chunk-AX5RFEOL.js → chunk-CPPV6EJP.js} +1 -1
  11. package/{chunk-6OAGVTHV.js → chunk-CTGMG44P.js} +1 -1
  12. package/chunk-DDMQ6BLY.js +1 -0
  13. package/{chunk-SQQMYNOF.js → chunk-E2UB3K6K.js} +1 -1
  14. package/{chunk-TK4BPZWA.js → chunk-EKIPEIC4.js} +1 -1
  15. package/{chunk-NQNRR7VE.js → chunk-EXJKKQZX.js} +1 -1
  16. package/chunk-F7HHSM2V.js +1 -0
  17. package/chunk-FKJJQJD5.js +1 -0
  18. package/chunk-HVT5TILQ.js +1 -0
  19. package/{chunk-KHC3VCF4.js → chunk-HXP5ZXIT.js} +1 -1
  20. package/{chunk-KXLXF2JD.js → chunk-IEH3LYA4.js} +1 -1
  21. package/{chunk-VINJGSIH.js → chunk-JES5INM4.js} +1 -1
  22. package/{chunk-H632X43F.js → chunk-JLDOA36R.js} +1 -1
  23. package/{chunk-IPRTKJDE.js → chunk-KIGBGT77.js} +1 -1
  24. package/chunk-L76NC2T6.js +1 -0
  25. package/chunk-LVUQRMAC.js +1 -0
  26. package/{chunk-WLIE4IB5.js → chunk-N3L3HC4J.js} +1 -1
  27. package/{chunk-RRBU7RBN.js → chunk-NDU4DSOM.js} +1 -1
  28. package/{chunk-DMZ5CRRQ.js → chunk-NE2V7X4C.js} +1 -1
  29. package/chunk-NMXJMVL5.js +1 -0
  30. package/{chunk-OHQK4UOI.js → chunk-PAS4EMZF.js} +1 -1
  31. package/{chunk-IDOYGPGZ.js → chunk-PFWSXI4B.js} +1 -1
  32. package/{chunk-VZBHJ6AU.js → chunk-PPP3I2ZR.js} +1 -1
  33. package/{chunk-N5ASXZEE.js → chunk-Q2HZC6ZI.js} +1 -1
  34. package/{chunk-7RTXH4CB.js → chunk-QBFBFWG2.js} +1 -1
  35. package/{chunk-3AU26GAL.js → chunk-QDH6LNFG.js} +1 -1
  36. package/{chunk-JPF4Y3PP.js → chunk-R6GGQ2GT.js} +1 -1
  37. package/chunk-R7CDA4HX.js +1 -0
  38. package/chunk-RCU74ULS.js +1 -0
  39. package/{chunk-THDYLLMU.js → chunk-RGVPD4PJ.js} +1 -1
  40. package/{chunk-Q6GENX6C.js → chunk-RJ4U6XAH.js} +1 -1
  41. package/{chunk-DMDYUREZ.js → chunk-RN7NMYKV.js} +1 -1
  42. package/chunk-RZN7GZTZ.js +1 -0
  43. package/{chunk-7ROGJAJZ.js → chunk-S3S677ZR.js} +1 -1
  44. package/{chunk-YDR42CNA.js → chunk-S47LQILW.js} +1 -1
  45. package/{chunk-VN7JM6M3.js → chunk-SPHWZHBB.js} +1 -1
  46. package/{chunk-6JLZLD5D.js → chunk-TZUFH3TN.js} +1 -1
  47. package/{chunk-CIGZ6WGG.js → chunk-UTVV2FB5.js} +1 -1
  48. package/{chunk-2N2WJIUS.js → chunk-V3LXB3BU.js} +1 -1
  49. package/{chunk-ZYGT7OII.js → chunk-VSSZRSCG.js} +1 -1
  50. package/{chunk-2LP4DYGQ.js → chunk-W6OH3HBG.js} +1 -1
  51. package/{chunk-6DH6O5YE.js → chunk-Z2NFEFOH.js} +1 -1
  52. package/{chunk-TSIPKXNX.js → chunk-ZCC3C2X4.js} +1 -1
  53. package/index.html +2 -2
  54. package/{main-3OUIM37D.js → main-EVBG63XG.js} +1 -1
  55. package/package.json +1 -1
  56. package/styles-UL5PH77J.css +1 -0
  57. package/chunk-2JKJCHMV.js +0 -1
  58. package/chunk-DDIVZTRS.js +0 -1
  59. package/chunk-JP7GZSDH.js +0 -1
  60. package/chunk-JV6DGJII.js +0 -1
  61. package/chunk-OWDXYX4N.js +0 -1
  62. package/chunk-T5X5KX6A.js +0 -1
  63. package/chunk-TMD3MDHS.js +0 -1
  64. package/chunk-WX7L7V6J.js +0 -1
  65. package/chunk-XL2NKFYE.js +0 -1
  66. package/chunk-ZXWA7BUQ.js +0 -1
  67. package/styles-V3SS5M3J.css +0 -1
@@ -1,2 +1,2 @@
1
- import{a as K}from"./chunk-HTNYQE2B.js";import{a as z,d as J,g as q}from"./chunk-WX7L7V6J.js";import{h as X}from"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as c,Bc as W,Cb as u,Gb as A,Hb as D,Ib as y,Mb as f,Na as E,Nb as S,Qa as l,Qb as w,Y as v,ab as h,ac as C,bc as I,cc as N,da as d,ea as _,ec as $,fb as k,fc as B,gc as V,hc as U,lc as G,nb as F,r as T,sb as M,tb as P,ua as m,ub as R,vb as x,wb as i,xb as a,yb as g}from"./chunk-W2F756OF.js";import{a as b,b as O}from"./chunk-7CGTOI24.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=S().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),f("click",function(){let o=d(e).$implicit,r=S();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),M(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
1
+ import{a as K}from"./chunk-HTNYQE2B.js";import{a as z,d as J,g as q}from"./chunk-NMXJMVL5.js";import{h as X}from"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as c,Bc as W,Cb as u,Gb as A,Hb as D,Ib as y,Mb as f,Na as E,Nb as S,Qa as l,Qb as w,Y as v,ab as h,ac as C,bc as I,cc as N,da as d,ea as _,ec as $,fb as k,fc as B,gc as V,hc as U,lc as G,nb as F,r as T,sb as M,tb as P,ua as m,ub as R,vb as x,wb as i,xb as a,yb as g}from"./chunk-W2F756OF.js";import{a as b,b as O}from"./chunk-7CGTOI24.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=S().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),f("click",function(){let o=d(e).$implicit,r=S();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),M(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
2
2
  `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),R(2,Q,13,5,"div",2,P),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),f("click",function(){return d(o),n.dialogLicense.set(null),_(n.dialogIsOpen.set(!1))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),x(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
@@ -1 +1 @@
1
- import{a as P,c as A}from"./chunk-F4EEOSGJ.js";import{e as d}from"./chunk-WX7L7V6J.js";import{h as k}from"./chunk-JSGFZ2GA.js";import{l as M}from"./chunk-CKPICCFH.js";import{Ac as g,Bc as b,Gb as v,Hb as E,Ib as N,Jb as I,Kb as F,O as C,Qa as T,S as c,Y as s,ab as O,i as S,pc as w,rc as y,ua as n,wb as m,xb as f,yb as _}from"./chunk-W2F756OF.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};
1
+ import{a as P,c as A}from"./chunk-F4EEOSGJ.js";import{e as d}from"./chunk-NMXJMVL5.js";import{h as k}from"./chunk-JSGFZ2GA.js";import{l as M}from"./chunk-CKPICCFH.js";import{Ac as g,Bc as b,Gb as v,Hb as E,Ib as N,Jb as I,Kb as F,O as C,Qa as T,S as c,Y as s,ab as O,i as S,pc as w,rc as y,ua as n,wb as m,xb as f,yb as _}from"./chunk-W2F756OF.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"./chunk-7CGTOI24.js";var o=[{path:"",loadComponent:()=>import("./chunk-JLDOA36R.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-VSSZRSCG.js")},{path:"live",loadComponent:()=>import("./chunk-HVT5TILQ.js")}]}],t=o;export{t as default};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import"./chunk-7L42EO7J.js";import"./chunk-RHW5QVAY.js";import"./chunk-T2OUHRUV.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-NE2V7X4C.js";import"./chunk-CD3DB23J.js";import"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as default};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-KIUU6RPZ.js";import{h as u}from"./chunk-JSGFZ2GA.js";import{B as h,Bc as N,E as s,F as p,P as d,S as l,Y as r,n as c,ua as o,x as f}from"./chunk-W2F756OF.js";var b=class a{#e=r(u);#s=r(m);serverState=this.#s.serverState;serverStateEffect=N(()=>{let t=this.#s.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID)});#o=-1;#a=o(!1);#t=o([]);#i=o([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o!==t&&(this.#o=t,this.getNotifications())}getNotifications(){this.#a.set(!0),this.#e.getApiV1Notifications().pipe(s(1),d(t=>this.#t.set(t)),p(()=>this.#a.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(s(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(s(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(h(()=>c(e))));f(i).pipe(s(1)).subscribe({next:e=>{let v=e.filter(n=>n!=null&&"ID"in n);this.#t.set(v),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=l({token:a,factory:a.\u0275fac,providedIn:"root"})};export{b as a};
1
+ import{a as m}from"./chunk-7LU4D3GR.js";import{h as u}from"./chunk-JSGFZ2GA.js";import{B as h,Bc as N,E as s,F as p,P as d,S as l,Y as r,n as c,ua as o,x as f}from"./chunk-W2F756OF.js";var b=class a{#e=r(u);#s=r(m);serverState=this.#s.serverState;serverStateEffect=N(()=>{let t=this.#s.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID)});#o=-1;#a=o(!1);#t=o([]);#i=o([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o!==t&&(this.#o=t,this.getNotifications())}getNotifications(){this.#a.set(!0),this.#e.getApiV1Notifications().pipe(s(1),d(t=>this.#t.set(t)),p(()=>this.#a.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(s(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(s(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(h(()=>c(e))));f(i).pipe(s(1)).subscribe({next:e=>{let v=e.filter(n=>n!=null&&"ID"in n);this.#t.set(v),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=l({token:a,factory:a.\u0275fac,providedIn:"root"})};export{b as a};
@@ -1,3 +1,3 @@
1
- import{a as fe}from"./chunk-BVTZNGGE.js";import{n as P}from"./chunk-DMDYUREZ.js";import"./chunk-6DH6O5YE.js";import"./chunk-ORDORLQT.js";import{a as Ne}from"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import{a as T}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as Me}from"./chunk-7JUYF3HW.js";import"./chunk-7L42EO7J.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as re,e as le,f as se,i as me,m as de,n as pe,o as _e,q as ce,r as ue,s as Ce,t as ge}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as q,d as Z,e as J}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as ee,g as te,k as ne,l as oe,p as ie,t as ae}from"./chunk-WX7L7V6J.js";import{g as Q,h as Y}from"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Ab as O,Bc as H,Cb as G,Gb as M,Hb as N,Ib as _,Jb as x,Kb as U,Mb as K,Nb as f,Qa as m,Rb as w,Y as C,ab as $,da as S,ea as E,ec as X,fb as h,fc as z,gc as V,kc as W,lc as j,nb as u,pb as b,sb as B,tb as R,ua as F,ub as y,vb as v,wb as r,xb as o,yb as l,zb as A}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Se=()=>[];function Ee(s,t){s&1&&l(0,"spk-progress-bar",12)}function Fe(s,t){if(s&1&&(r(0,"spk-form-field"),l(1,"input",32),o()),s&2){let e=t.$implicit,i=t.$index;m(),w("id","filter-",i,""),u("formControl",e)}}function Ae(s,t){if(s&1){let e=G();r(0,"form",13)(1,"spk-select",14)(2,"label",15),_(3,1),o(),l(4,"input",16),o(),r(5,"spk-form-field")(6,"label",17),_(7,2),o(),l(8,"textarea",18),o(),r(9,"spk-form-field")(10,"label",19),_(11,3),o(),l(12,"textarea",20),o()(),r(13,"spk-divider"),_(14,4),o(),r(15,"form",13)(16,"spk-form-field")(17,"label",21),_(18,5),o(),l(19,"input",22),o(),r(20,"spk-form-field")(21,"label",23),_(22,6),o(),l(23,"input",24),o(),r(24,"app-toggle-card",25),A(25,26),_(26,7),O(),A(27,27),y(28,Fe,2,3,"spk-form-field",null,R),O(),o()(),r(30,"p"),M(31,8),l(32,"a",28),N(),o(),r(33,"app-options-list",29),V("optionsChange",function(a){S(e);let c=f();return z(c.settings,a)||(c.settings=a),E(a)}),o(),r(34,"div",30)(35,"button",31),K("click",function(){S(e);let a=f();return E(a.submit())}),M(36,9),l(37,"spk-icon"),N(),o()()}if(s&2){let e,i=f();u("formGroup",i.baseCmdForm),m(),u("options",(e=i.commandOptions())!==null&&e!==void 0?e:j(10,Se))("inlineSearch",!0),m(14),u("formGroup",i.standardFields),m(9),u("disallowToggle",!0),m(4),v(i.standardFields.controls.filters.controls),m(5),X("options",i.settings),u("hasFreeTextSettings",!0),m(2),b("loader",i.isSubmitting()),m(2),x(i.baseCmdForm.value.command),U(36)}}var d=new ue,Oe=["Bytes","KB","MB","GB","TB","PB"],I=class s{#e=C(P);#t=C(Y);#n=C(Z);#o=C(q);#i=C(Q);#a=T(this.#o.params);commandOptions=T(this.#i.getApiV1Commandline());sizeOptions=F(Oe);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=H(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",i=t.arguments?.split(`
1
+ import{a as fe}from"./chunk-5G5PH7FG.js";import{n as P}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import{a as Ne}from"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import{a as T}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as Me}from"./chunk-554T66WI.js";import"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as re,e as le,f as se,i as me,m as de,n as pe,o as _e,q as ce,r as ue,s as Ce,t as ge}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as q,d as Z,e as J}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as ee,g as te,k as ne,l as oe,p as ie,t as ae}from"./chunk-NMXJMVL5.js";import{g as Q,h as Y}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Ab as O,Bc as H,Cb as G,Gb as M,Hb as N,Ib as _,Jb as x,Kb as U,Mb as K,Nb as f,Qa as m,Rb as w,Y as C,ab as $,da as S,ea as E,ec as X,fb as h,fc as z,gc as V,kc as W,lc as j,nb as u,pb as b,sb as B,tb as R,ua as F,ub as y,vb as v,wb as r,xb as o,yb as l,zb as A}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Se=()=>[];function Ee(s,t){s&1&&l(0,"spk-progress-bar",12)}function Fe(s,t){if(s&1&&(r(0,"spk-form-field"),l(1,"input",32),o()),s&2){let e=t.$implicit,i=t.$index;m(),w("id","filter-",i,""),u("formControl",e)}}function Ae(s,t){if(s&1){let e=G();r(0,"form",13)(1,"spk-select",14)(2,"label",15),_(3,1),o(),l(4,"input",16),o(),r(5,"spk-form-field")(6,"label",17),_(7,2),o(),l(8,"textarea",18),o(),r(9,"spk-form-field")(10,"label",19),_(11,3),o(),l(12,"textarea",20),o()(),r(13,"spk-divider"),_(14,4),o(),r(15,"form",13)(16,"spk-form-field")(17,"label",21),_(18,5),o(),l(19,"input",22),o(),r(20,"spk-form-field")(21,"label",23),_(22,6),o(),l(23,"input",24),o(),r(24,"app-toggle-card",25),A(25,26),_(26,7),O(),A(27,27),y(28,Fe,2,3,"spk-form-field",null,R),O(),o()(),r(30,"p"),M(31,8),l(32,"a",28),N(),o(),r(33,"app-options-list",29),V("optionsChange",function(a){S(e);let c=f();return z(c.settings,a)||(c.settings=a),E(a)}),o(),r(34,"div",30)(35,"button",31),K("click",function(){S(e);let a=f();return E(a.submit())}),M(36,9),l(37,"spk-icon"),N(),o()()}if(s&2){let e,i=f();u("formGroup",i.baseCmdForm),m(),u("options",(e=i.commandOptions())!==null&&e!==void 0?e:j(10,Se))("inlineSearch",!0),m(14),u("formGroup",i.standardFields),m(9),u("disallowToggle",!0),m(4),v(i.standardFields.controls.filters.controls),m(5),X("options",i.settings),u("hasFreeTextSettings",!0),m(2),b("loader",i.isSubmitting()),m(2),x(i.baseCmdForm.value.command),U(36)}}var d=new ue,Oe=["Bytes","KB","MB","GB","TB","PB"],I=class s{#e=C(P);#t=C(Y);#n=C(Z);#o=C(q);#i=C(Q);#a=T(this.#o.params);commandOptions=T(this.#i.getApiV1Commandline());sizeOptions=F(Oe);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=H(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",i=t.arguments?.split(`
2
2
  `).filter(n=>n.length>0)??[],a=this.standardFields.value,c=a.filters??[],g=[t.command,e,...i,`--backup-name=${a["backup-name"]}`,`--dbpath=${a.dbpath}`,`--backup-id=${a["backup-id"]}`,...c.filter(n=>n).map(n=>n.startsWith("-")?`--exclude=${n?.slice(1)}`:`--include=${n}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(n=>n.Name.startsWith("--")?`${n.Name}=${n.Value}`:`--${n.Name}=${n.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:g}).subscribe(n=>{n.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",n.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
3
3
  `)??""})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=$({type:s,selectors:[["app-commandline"]],features:[W([P])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Command`;let i;i=$localize`TargetUrl`;let a;a=$localize`Commandline Arguments`;let c;c=$localize`Advanced options`;let g;g=$localize`Backup ID`;let n;n=$localize`Backup Name`;let k;k=$localize`Filters`;let D;D=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#32\uFFFD"}:START_LINK:Read more${"\uFFFD/#32\uFFFD"}:CLOSE_LINK:`;let L;return L=$localize`${"\uFFFD#37\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#37\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,i,a,c,g,n,k,D,L,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],["href","#",1,"spk-primary"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,i){e&1&&(l(0,"app-status-bar"),r(1,"section")(2,"div",10)(3,"button",11),M(4,0),l(5,"spk-icon"),N(),o()(),h(6,Ee,1,0,"spk-progress-bar",12)(7,Ae,38,11),o()),e&2&&(m(6),B(i.finishedLoading()?7:6))},dependencies:[Ce,me,re,le,se,Me,fe,Ne,ge,de,pe,ce,_e,J,oe,te,ne,ae,ie,ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{I as default};
@@ -1 +1 @@
1
- import{a as De}from"./chunk-7JUYF3HW.js";import{a as Ae}from"./chunk-7L42EO7J.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import{a as fe}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{e as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as X,e as ke,g as z,h as Pe,j as Ne,k as $e,o as w,p as Ie}from"./chunk-WX7L7V6J.js";import{h as me}from"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as S,Ab as T,Cb as x,F as D,Gb as p,Hb as d,Ib as s,Jb as I,Kb as f,Mb as M,Nb as u,Qa as c,Y as R,ab as Me,bc as N,da as O,ea as m,fb as C,kb as Ce,lb as Oe,lc as L,mc as P,nb as g,pb as $,pc as A,qc as G,rc as h,sb as k,tb as y,ua as H,ub as B,vb as b,wb as _,xb as t,yb as r,zb as E}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Re=()=>[v,z,X,Ne,$e,w,import("./chunk-SEA4YEEO.js").then(e=>e.DurationFormatPipe),import("./chunk-CETM57LL.js").then(e=>e.BytesPipe),import("./chunk-MHO7INGX.js").then(e=>e.RelativeTimePipe)],He=()=>["/add-backup"],ye=()=>["/restore"],Be=e=>["/backup",e],be=e=>["/restore",e],xe=e=>["/backup",e,"export"],Le=e=>["/backup",e,"database"],Ge=e=>["/backup",e,"commandline"],he=e=>["/backup",e,"log"];function ve(e,i){if(e&1){let o=x();_(0,"button",42),M("click",function(){let l=O(o).$implicit,F=u();return m(F.setOrderBy(l.value))}),s(1,11),t()}if(e&2){let o=i.$implicit,n=u();$("active",n.orderBy()===o.value),c(),I(o.label),f(1)}}function Xe(e,i){if(e&1&&(S(0),A(1,"durationFormat")),e&2){let o=u().$implicit,n=u(3);N(" ",h(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.LastBackupDuration,n.timeType()==="actual")," ")}}function ze(e,i){e&1&&(E(0),s(1,26),T())}function we(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceFilesSize)," ")}}function Ke(e,i){e&1&&(E(0),s(1,27),T())}function Ve(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.TargetFilesSize)," ")}}function je(e,i){e&1&&(E(0),s(1,28),T())}function qe(e,i){if(e&1&&(_(0,"spk-chip",46),s(1,29),t()),e&2){let o=u().$implicit;c(),I(o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount),f(1)}}function Ue(e,i){e&1&&(_(0,"spk-chip",47),s(1,30),t())}function We(e,i){e&1&&(_(0,"spk-icon"),S(1,"check"),t())}function Je(e,i){e&1&&(_(0,"spk-icon"),S(1,"dots-three-vertical"),t())}function Qe(e,i){if(e&1){let o=x();_(0,"div",45)(1,"div",35)(2,"h3"),S(3),_(4,"spk-icon"),S(5,"database"),t()(),_(6,"p")(7,"span"),s(8,12),t(),S(9),A(10,"relativeTime"),t(),_(11,"p")(12,"span"),s(13,13),t(),C(14,Xe,2,4)(15,ze,2,0,"ng-container"),t(),_(16,"p")(17,"span"),s(18,14),t(),C(19,we,2,3)(20,Ke,2,0,"ng-container"),t(),_(21,"p")(22,"span"),s(23,15),t(),C(24,Ve,2,3)(25,je,2,0,"ng-container"),t()(),C(26,qe,2,1,"spk-chip",46)(27,Ue,2,0,"spk-chip",47),_(28,"div",39)(29,"button",48),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.startBackup(l.Backup==null?null:l.Backup.ID))}),p(30,16),r(31,"spk-icon"),d(),t(),_(32,"button",49)(33,"spk-icon"),S(34,"pencil-simple"),t()(),_(35,"spk-menu",50)(36,"button",36),C(37,We,2,0,"spk-icon")(38,Je,2,0,"spk-icon"),t(),E(39,41),_(40,"h3",51),S(41,"Operations"),t(),_(42,"button",52),p(43,17),r(44,"spk-icon"),d(),t(),_(45,"button",52),p(46,18),r(47,"spk-icon"),d(),t(),_(48,"button",53),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.deleteBackup(l.Backup==null?null:l.Backup.ID))}),p(49,19),r(50,"spk-icon"),d(),t(),r(51,"spk-divider"),_(52,"h3",51),S(53,"Advanced"),t(),_(54,"button",52),p(55,20),r(56,"spk-icon"),d(),t(),_(57,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.verifyFiles(l.Backup==null?null:l.Backup.ID))}),p(58,21),r(59,"spk-icon"),d(),t(),_(60,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.compressBackup(l.Backup==null?null:l.Backup.ID))}),p(61,22),r(62,"spk-icon"),d(),t(),_(63,"button",52),p(64,23),r(65,"spk-icon"),d(),t(),r(66,"spk-divider"),_(67,"h3",51),S(68,"Reporting"),t(),_(69,"button",52),p(70,24),r(71,"spk-icon"),d(),t(),_(72,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.createErrorReport(l.Backup==null?null:l.Backup.ID))}),p(73,25),r(74,"spk-icon"),d(),t(),T(),t()()()}if(e&2){let o,n=i.$implicit,l=u(3);c(3),N(" ",(o=n.Backup==null?null:n.Backup.Name)!==null&&o!==void 0?o:l.MISSING_BACKUP_NAME," "),c(6),N(" ",h(10,22,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,l.timeType()==="actual")," "),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?14:15),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?19:20),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?24:25),c(2),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?26:27),c(3),$("loader",l.startingBackup()===(n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(25,Be,n.Backup==null?null:n.Backup.ID)),c(3),g("right",!0),c(),$("loader",l.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",l.successId()===(n.Backup==null?null:n.Backup.ID)),c(),k(l.successId()===(n.Backup==null?null:n.Backup.ID)?37:38),c(5),g("routerLink",P(27,be,n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(29,xe,n.Backup==null?null:n.Backup.ID)),c(3),$("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(31,Le,n.Backup==null?null:n.Backup.ID)),c(9),g("routerLink",P(33,Ge,n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(35,he,n.Backup==null?null:n.Backup.ID))}}function Ye(e,i){if(e&1&&B(0,Qe,75,37,"div",45,y),e&2){let o=u(2);b(o.backups())}}function Ze(e,i){e&1&&(E(0),s(1,31),T())}function en(e,i){if(e&1&&C(0,Ye,2,0)(1,Ze,2,0,"ng-container"),e&2){let o=u();k(o.backups().length?0:1)}}function nn(e,i){e&1&&(_(0,"div",54),r(1,"spk-progress-bar",55),_(2,"div",35)(3,"h3"),s(4,32),t()()())}var K=class e{#e=R(fe);#t=R(ke);#n=R(me);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;loadingId=H(null);successId=H(null);ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#e.startBackup(i)}deleteBackup(i){this.loadingId.set(i),this.#t.open(Ae,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.deleteBackup(i)}})}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Me({type:e,selectors:[["app-home"]],decls:51,vars:7,consts:()=>{let i;i=$localize`Backups`;let o;o=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let F;F=$localize`Restores allow you to restore your data from the cloud.`;let V;V=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let j;j=$localize`My backups`;let q;q=$localize` Time: ${"\uFFFD#31\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#32\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let U;U=$localize`Relative time`;let W;W=$localize`Actual time`;let J;J=$localize` Order by: ${"\uFFFD#41\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let Q;Q=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let Y;Y=$localize`Last successful backup:`;let Z;Z=$localize`Duration:`;let ee;ee=$localize`Source:`;let ne;ne=$localize`Destination:`;let te;te=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let oe;oe=$localize`${"\uFFFD#44\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#44\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let ie;ie=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let _e;_e=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let ae;ae=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#56\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let le;le=$localize`${"\uFFFD#59\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#59\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let ce;ce=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let re;re=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let se;se=$localize`${"\uFFFD#71\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#71\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let ue;ue=$localize`${"\uFFFD#74\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#74\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let pe;pe=$localize`N/A`;let de;de=$localize`N/A`;let Fe;Fe=$localize`N/A`;let Se;Se=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ge;ge=$localize`No version yet`;let Ee;Ee=$localize`No backups founds`;let Te;return Te=$localize`Loading backups...`,[i,o,n,l,F,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,ie,_e,ae,le,ce,re,se,ue,pe,de,Fe,Se,ge,Ee,Te,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(o,n){o&1&&(r(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",33),r(4,"img",34),_(5,"div",35)(6,"h3"),s(7,0),t(),_(8,"p"),s(9,1),t()(),_(10,"button",36),p(11,2),r(12,"spk-icon"),d(),t()(),_(13,"spk-card",33),r(14,"img",37),_(15,"div",35)(16,"h3"),s(17,3),t(),_(18,"p"),s(19,4),t()(),_(20,"button",36),p(21,5),r(22,"spk-icon"),d(),t()()(),_(23,"div",38)(24,"h2"),E(25),s(26,6),T(),_(27,"div",39)(28,"spk-menu")(29,"button",40),p(30,7),r(31,"strong")(32,"spk-icon"),d(),t(),E(33,41),_(34,"button",42),M("click",function(){return n.setTimeType("relative")}),s(35,8),t(),_(36,"button",42),M("click",function(){return n.setTimeType("actual")}),s(37,9),t(),T(),t(),_(38,"spk-menu")(39,"button",40),p(40,10),r(41,"strong")(42,"spk-icon"),d(),t(),E(43,41),B(44,ve,2,3,"button",43,y),T(),t()()(),_(46,"div",44),C(47,en,2,1)(48,nn,5,0),Ce(49,47,Re,null,48),t()()()),o&2&&(c(3),g("routerLink",L(5,He)),c(10),g("routerLink",L(6,ye)),c(19),I(n.timeType()),f(30),c(10),I(n.orderBy()),f(40),c(2),b(n.sortOrderOptions()),c(5),Oe(!n.backupsLoading()))},dependencies:[v,De,Pe,z,X,w,Ie],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}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{K as default};
1
+ import{a as De}from"./chunk-554T66WI.js";import{a as Ae}from"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as fe}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{e as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as X,e as ke,g as z,h as Pe,j as Ne,k as $e,o as w,p as Ie}from"./chunk-NMXJMVL5.js";import{h as me}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as S,Ab as T,Cb as x,F as D,Gb as p,Hb as d,Ib as s,Jb as I,Kb as f,Mb as M,Nb as u,Qa as c,Y as R,ab as Me,bc as N,da as O,ea as m,fb as C,kb as Ce,lb as Oe,lc as L,mc as P,nb as g,pb as $,pc as A,qc as G,rc as h,sb as k,tb as y,ua as H,ub as B,vb as b,wb as _,xb as t,yb as r,zb as E}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Re=()=>[v,z,X,Ne,$e,w,import("./chunk-SEA4YEEO.js").then(e=>e.DurationFormatPipe),import("./chunk-CETM57LL.js").then(e=>e.BytesPipe),import("./chunk-3IIFLG6J.js").then(e=>e.RelativeTimePipe)],He=()=>["/add-backup"],ye=()=>["/restore"],Be=e=>["/backup",e],be=e=>["/restore",e],xe=e=>["/backup",e,"export"],Le=e=>["/backup",e,"database"],Ge=e=>["/backup",e,"commandline"],he=e=>["/backup",e,"log"];function ve(e,i){if(e&1){let o=x();_(0,"button",42),M("click",function(){let l=O(o).$implicit,F=u();return m(F.setOrderBy(l.value))}),s(1,11),t()}if(e&2){let o=i.$implicit,n=u();$("active",n.orderBy()===o.value),c(),I(o.label),f(1)}}function Xe(e,i){if(e&1&&(S(0),A(1,"durationFormat")),e&2){let o=u().$implicit,n=u(3);N(" ",h(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.LastBackupDuration,n.timeType()==="actual")," ")}}function ze(e,i){e&1&&(E(0),s(1,26),T())}function we(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceFilesSize)," ")}}function Ke(e,i){e&1&&(E(0),s(1,27),T())}function Ve(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.TargetFilesSize)," ")}}function je(e,i){e&1&&(E(0),s(1,28),T())}function qe(e,i){if(e&1&&(_(0,"spk-chip",46),s(1,29),t()),e&2){let o=u().$implicit;c(),I(o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount),f(1)}}function Ue(e,i){e&1&&(_(0,"spk-chip",47),s(1,30),t())}function We(e,i){e&1&&(_(0,"spk-icon"),S(1,"check"),t())}function Je(e,i){e&1&&(_(0,"spk-icon"),S(1,"dots-three-vertical"),t())}function Qe(e,i){if(e&1){let o=x();_(0,"div",45)(1,"div",35)(2,"h3"),S(3),_(4,"spk-icon"),S(5,"database"),t()(),_(6,"p")(7,"span"),s(8,12),t(),S(9),A(10,"relativeTime"),t(),_(11,"p")(12,"span"),s(13,13),t(),C(14,Xe,2,4)(15,ze,2,0,"ng-container"),t(),_(16,"p")(17,"span"),s(18,14),t(),C(19,we,2,3)(20,Ke,2,0,"ng-container"),t(),_(21,"p")(22,"span"),s(23,15),t(),C(24,Ve,2,3)(25,je,2,0,"ng-container"),t()(),C(26,qe,2,1,"spk-chip",46)(27,Ue,2,0,"spk-chip",47),_(28,"div",39)(29,"button",48),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.startBackup(l.Backup==null?null:l.Backup.ID))}),p(30,16),r(31,"spk-icon"),d(),t(),_(32,"button",49)(33,"spk-icon"),S(34,"pencil-simple"),t()(),_(35,"spk-menu",50)(36,"button",36),C(37,We,2,0,"spk-icon")(38,Je,2,0,"spk-icon"),t(),E(39,41),_(40,"h3",51),S(41,"Operations"),t(),_(42,"button",52),p(43,17),r(44,"spk-icon"),d(),t(),_(45,"button",52),p(46,18),r(47,"spk-icon"),d(),t(),_(48,"button",53),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.deleteBackup(l.Backup==null?null:l.Backup.ID))}),p(49,19),r(50,"spk-icon"),d(),t(),r(51,"spk-divider"),_(52,"h3",51),S(53,"Advanced"),t(),_(54,"button",52),p(55,20),r(56,"spk-icon"),d(),t(),_(57,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.verifyFiles(l.Backup==null?null:l.Backup.ID))}),p(58,21),r(59,"spk-icon"),d(),t(),_(60,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.compressBackup(l.Backup==null?null:l.Backup.ID))}),p(61,22),r(62,"spk-icon"),d(),t(),_(63,"button",52),p(64,23),r(65,"spk-icon"),d(),t(),r(66,"spk-divider"),_(67,"h3",51),S(68,"Reporting"),t(),_(69,"button",52),p(70,24),r(71,"spk-icon"),d(),t(),_(72,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.createErrorReport(l.Backup==null?null:l.Backup.ID))}),p(73,25),r(74,"spk-icon"),d(),t(),T(),t()()()}if(e&2){let o,n=i.$implicit,l=u(3);c(3),N(" ",(o=n.Backup==null?null:n.Backup.Name)!==null&&o!==void 0?o:l.MISSING_BACKUP_NAME," "),c(6),N(" ",h(10,22,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,l.timeType()==="actual")," "),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?14:15),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?19:20),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?24:25),c(2),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?26:27),c(3),$("loader",l.startingBackup()===(n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(25,Be,n.Backup==null?null:n.Backup.ID)),c(3),g("right",!0),c(),$("loader",l.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",l.successId()===(n.Backup==null?null:n.Backup.ID)),c(),k(l.successId()===(n.Backup==null?null:n.Backup.ID)?37:38),c(5),g("routerLink",P(27,be,n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(29,xe,n.Backup==null?null:n.Backup.ID)),c(3),$("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(31,Le,n.Backup==null?null:n.Backup.ID)),c(9),g("routerLink",P(33,Ge,n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(35,he,n.Backup==null?null:n.Backup.ID))}}function Ye(e,i){if(e&1&&B(0,Qe,75,37,"div",45,y),e&2){let o=u(2);b(o.backups())}}function Ze(e,i){e&1&&(E(0),s(1,31),T())}function en(e,i){if(e&1&&C(0,Ye,2,0)(1,Ze,2,0,"ng-container"),e&2){let o=u();k(o.backups().length?0:1)}}function nn(e,i){e&1&&(_(0,"div",54),r(1,"spk-progress-bar",55),_(2,"div",35)(3,"h3"),s(4,32),t()()())}var K=class e{#e=R(fe);#t=R(ke);#n=R(me);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;loadingId=H(null);successId=H(null);ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#e.startBackup(i)}deleteBackup(i){this.loadingId.set(i),this.#t.open(Ae,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.deleteBackup(i)}})}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Me({type:e,selectors:[["app-home"]],decls:51,vars:7,consts:()=>{let i;i=$localize`Backups`;let o;o=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let F;F=$localize`Restores allow you to restore your data from the cloud.`;let V;V=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let j;j=$localize`My backups`;let q;q=$localize` Time: ${"\uFFFD#31\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#32\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let U;U=$localize`Relative time`;let W;W=$localize`Actual time`;let J;J=$localize` Order by: ${"\uFFFD#41\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let Q;Q=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let Y;Y=$localize`Last successful backup:`;let Z;Z=$localize`Duration:`;let ee;ee=$localize`Source:`;let ne;ne=$localize`Destination:`;let te;te=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let oe;oe=$localize`${"\uFFFD#44\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#44\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let ie;ie=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let _e;_e=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let ae;ae=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#56\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let le;le=$localize`${"\uFFFD#59\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#59\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let ce;ce=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let re;re=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let se;se=$localize`${"\uFFFD#71\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#71\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let ue;ue=$localize`${"\uFFFD#74\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#74\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let pe;pe=$localize`N/A`;let de;de=$localize`N/A`;let Fe;Fe=$localize`N/A`;let Se;Se=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ge;ge=$localize`No version yet`;let Ee;Ee=$localize`No backups founds`;let Te;return Te=$localize`Loading backups...`,[i,o,n,l,F,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,ie,_e,ae,le,ce,re,se,ue,pe,de,Fe,Se,ge,Ee,Te,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(o,n){o&1&&(r(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",33),r(4,"img",34),_(5,"div",35)(6,"h3"),s(7,0),t(),_(8,"p"),s(9,1),t()(),_(10,"button",36),p(11,2),r(12,"spk-icon"),d(),t()(),_(13,"spk-card",33),r(14,"img",37),_(15,"div",35)(16,"h3"),s(17,3),t(),_(18,"p"),s(19,4),t()(),_(20,"button",36),p(21,5),r(22,"spk-icon"),d(),t()()(),_(23,"div",38)(24,"h2"),E(25),s(26,6),T(),_(27,"div",39)(28,"spk-menu")(29,"button",40),p(30,7),r(31,"strong")(32,"spk-icon"),d(),t(),E(33,41),_(34,"button",42),M("click",function(){return n.setTimeType("relative")}),s(35,8),t(),_(36,"button",42),M("click",function(){return n.setTimeType("actual")}),s(37,9),t(),T(),t(),_(38,"spk-menu")(39,"button",40),p(40,10),r(41,"strong")(42,"spk-icon"),d(),t(),E(43,41),B(44,ve,2,3,"button",43,y),T(),t()()(),_(46,"div",44),C(47,en,2,1)(48,nn,5,0),Ce(49,47,Re,null,48),t()()()),o&2&&(c(3),g("routerLink",L(5,He)),c(10),g("routerLink",L(6,ye)),c(19),I(n.timeType()),f(30),c(10),I(n.orderBy()),f(40),c(2),b(n.sortOrderOptions()),c(5),Oe(!n.backupsLoading()))},dependencies:[v,De,Pe,z,X,w,Ie],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}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{K as default};
@@ -1 +1 @@
1
- import{a as z}from"./chunk-CD3DB23J.js";import{a as x,c as w,d as B,e as U,f as X}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as K,f as V,o as h}from"./chunk-WX7L7V6J.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{Ab as f,Cb as R,Gb as l,Hb as s,Ib as b,Jb as y,Kb as v,Mb as u,Nb as c,Qa as p,Y as T,ab as D,da as a,ea as S,fb as P,nb as N,sb as G,ua as $,wb as i,xb as t,yb as _,zb as M}from"./chunk-W2F756OF.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.isPolling.set(!0),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};
1
+ import{a as z}from"./chunk-CD3DB23J.js";import{a as x,c as w,d as B,e as U,f as X}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as K,f as V,o as h}from"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{Ab as f,Cb as R,Gb as l,Hb as s,Ib as b,Jb as y,Kb as v,Mb as u,Nb as c,Qa as p,Y as T,ab as D,da as a,ea as S,fb as P,nb as N,sb as G,ua as $,wb as i,xb as t,yb as _,zb as M}from"./chunk-W2F756OF.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.isPolling.set(!0),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};
@@ -1 +1 @@
1
- import{a as Q}from"./chunk-ULHQZGHN.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-T2OUHRUV.js";import{c as x}from"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{d as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as I,b as k,g as O,l as P}from"./chunk-WX7L7V6J.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as r,Bc as M,Cb as S,F as c,Mb as v,Qa as m,Xa as h,Y as l,Yb as b,Zb as E,ab as _,da as g,ea as f,fb as w,nb as C,pb as y,sb as L,ua as p,wb as o,xb as i,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(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 V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}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(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[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(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],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}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
1
+ import{a as Q}from"./chunk-ULHQZGHN.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-T2OUHRUV.js";import{c as x}from"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{d as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as I,b as k,g as O,l as P}from"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as r,Bc as M,Cb as S,F as c,Mb as v,Qa as m,Xa as h,Y as l,Yb as b,Zb as E,ab as _,da as g,ea as f,fb as w,nb as C,pb as y,sb as L,ua as p,wb as o,xb as i,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(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 V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}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(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[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(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],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}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
@@ -0,0 +1 @@
1
+ import{j as o}from"./chunk-CKPICCFH.js";import{a as s}from"./chunk-EF7JWRDC.js";import{Y as e,db as n}from"./chunk-W2F756OF.js";var m=class i{#t=e(s);#r=e(o);convertTimestamp(t){let r=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/.exec(t);if(r){let[a,p,f,c,d,u,h]=r;return`${p}-${f}-${c}T${d}:${u}:${h}Z`}return t}transform(t,r=!1,...a){return t?r?this.#r.transform(t,"short"):(this.#t.locale(),typeof t=="string"&&(t=this.convertTimestamp(t)),this.#t(t).fromNow()):"N/A"}static \u0275fac=function(r){return new(r||i)};static \u0275pipe=n({name:"relativeTime",type:i,pure:!0})};export{m as a};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-UTVV2FB5.js")},{path:"encryption",loadComponent:()=>import("./chunk-CFVPLY5R.js")},{path:"select-files",loadComponent:()=>import("./chunk-V3LXB3BU.js")},{path:"options",loadComponent:()=>import("./chunk-S3S677ZR.js")},{path:"progress",loadComponent:()=>import("./chunk-CTGMG44P.js")}],t=o;export{t as default};
@@ -1 +1 @@
1
- import{n as T}from"./chunk-DMDYUREZ.js";import"./chunk-6DH6O5YE.js";import"./chunk-ORDORLQT.js";import"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import{a as m}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as L}from"./chunk-7JUYF3HW.js";import"./chunk-7L42EO7J.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import{a as v}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as O,c as B,e as b,f as $}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{p as N,q as I,v as K}from"./chunk-WX7L7V6J.js";import{h as M}from"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as A,Bc as E,E as C,Gb as d,Hb as c,Nb as R,Qa as n,Y as _,ab as D,bc as P,fb as k,kc as h,nb as u,nc as l,sb as g,wb as p,xb as s,yb as r}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var G=(i,e)=>[i,e,"general"],y=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],w=(i,e)=>[i,e,"schedule"],X=(i,e)=>[i,e,"options"];function x(i,e){if(i&1&&(p(0,"p"),A(1),s()),i&2){let a=R();n(),P("Editing: ",a.backupName(),"")}}function z(i,e){i&1&&r(0,"spk-progress-bar",6)}function V(i,e){i&1&&(p(0,"section"),r(1,"router-outlet"),s())}var f=class i{#t=_(O);#e=_(T);#a=_(v);#i=_(M);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=E(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(C(1)).subscribe({next:e=>{let a=e.Backup;a.Settings=[...a.Settings,...e.ApplicationOptions.map(t=>({Name:t.Name,Value:t.Value}))],this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(a),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=D({type:i,selectors:[["app-backup"]],features:[h([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(r(0,"app-status-bar"),p(1,"header"),k(2,x,2,1,"p"),p(3,"spk-stepper")(4,"div",5),d(5,0),r(6,"spk-radio"),c(),s(),p(7,"div",5),d(8,1),r(9,"spk-radio"),c(),s(),p(10,"div",5),d(11,2),r(12,"spk-radio"),c(),s(),p(13,"div",5),d(14,3),r(15,"spk-radio"),c(),s(),p(16,"div",5),d(17,4),r(18,"spk-radio"),c(),s()()(),k(19,z,1,0,"spk-progress-bar",6)(20,V,2,0,"section")),a&2&&(n(2),g(t.isNew()?-1:2),n(2),u("routerLink",l(7,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(10,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(13,U,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(16,w,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(19,X,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),g(t.finishedLoading()?20:19))},dependencies:[B,b,$,L,I,K,N],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{f as default};
1
+ import{n as T}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import{a as m}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as L}from"./chunk-554T66WI.js";import"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as v}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as O,c as B,e as b,f as $}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{p as N,q as I,v as K}from"./chunk-NMXJMVL5.js";import{h as M}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as A,Bc as E,E as C,Gb as d,Hb as c,Nb as R,Qa as n,Y as _,ab as D,bc as P,fb as k,kc as h,nb as u,nc as l,sb as g,wb as p,xb as s,yb as r}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var G=(i,e)=>[i,e,"general"],y=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],w=(i,e)=>[i,e,"schedule"],X=(i,e)=>[i,e,"options"];function x(i,e){if(i&1&&(p(0,"p"),A(1),s()),i&2){let a=R();n(),P("Editing: ",a.backupName(),"")}}function z(i,e){i&1&&r(0,"spk-progress-bar",6)}function V(i,e){i&1&&(p(0,"section"),r(1,"router-outlet"),s())}var f=class i{#t=_(O);#e=_(T);#a=_(v);#i=_(M);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=E(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(C(1)).subscribe({next:e=>{let a=e.Backup;a.Settings=[...a.Settings,...e.ApplicationOptions.map(t=>({Name:t.Name,Value:t.Value}))],this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(a),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=D({type:i,selectors:[["app-backup"]],features:[h([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(r(0,"app-status-bar"),p(1,"header"),k(2,x,2,1,"p"),p(3,"spk-stepper")(4,"div",5),d(5,0),r(6,"spk-radio"),c(),s(),p(7,"div",5),d(8,1),r(9,"spk-radio"),c(),s(),p(10,"div",5),d(11,2),r(12,"spk-radio"),c(),s(),p(13,"div",5),d(14,3),r(15,"spk-radio"),c(),s(),p(16,"div",5),d(17,4),r(18,"spk-radio"),c(),s()()(),k(19,z,1,0,"spk-progress-bar",6)(20,V,2,0,"section")),a&2&&(n(2),g(t.isNew()?-1:2),n(2),u("routerLink",l(7,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(10,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(13,U,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(16,w,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(19,X,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),g(t.finishedLoading()?20:19))},dependencies:[B,b,$,L,I,K,N],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{f as default};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-HTNYQE2B.js";import{a as te}from"./chunk-7JUYF3HW.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import{a as Q}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as z,e as q}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as W,g as j,l as J}from"./chunk-WX7L7V6J.js";import{h as H}from"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as C,Ac as k,Bc as h,E as g,F as d,Gb as p,Hb as r,Ib as F,Jb as L,Kb as U,Mb as u,N as E,Qa as s,Y as D,ab as y,ec as w,fb as v,fc as X,gc as V,nb as A,pb as P,r as O,rb as G,sb as K,ua as c,wb as i,xb as a,yb as l}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),C(1,"warning"),a())}var m=class S{#a=D(z);#i=D(Q);#e=D(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),d(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),d(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:18,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),u("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),u("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",16),u("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",16),u("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),u("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),u("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),u("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isDeleting()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isRestoring()),A("disabled",e.pathHasChanged()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged())}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
1
+ import{a as ae}from"./chunk-HTNYQE2B.js";import{a as te}from"./chunk-554T66WI.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as Q}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as z,e as q}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as W,g as j,l as J}from"./chunk-NMXJMVL5.js";import{h as H}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as C,Ac as k,Bc as h,E as g,F as d,Gb as p,Hb as r,Ib as F,Jb as L,Kb as U,Mb as u,N as E,Qa as s,Y as D,ab as y,ec as w,fb as v,fc as X,gc as V,nb as A,pb as P,r as O,rb as G,sb as K,ua as c,wb as i,xb as a,yb as l}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),C(1,"warning"),a())}var m=class S{#a=D(z);#i=D(Q);#e=D(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),d(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),d(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:18,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),u("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),u("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",16),u("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",16),u("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),u("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),u("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),u("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isDeleting()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isRestoring()),A("disabled",e.pathHasChanged()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged())}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
@@ -1,2 +1,2 @@
1
- import{a as V}from"./chunk-CD3DB23J.js";import{a as A,n as R,w as F}from"./chunk-WX7L7V6J.js";import{j as N}from"./chunk-CKPICCFH.js";import{$b as s,Bc as x,Cb as w,Ib as m,Mb as y,Nb as r,Qa as l,Y as O,ab as h,ac as L,bc as d,da as b,ea as I,fb as u,nb as T,ob as P,pb as C,pc as G,ra as p,rc as $,sb as g,tb as S,ua as M,ub as v,vb as f,wb as o,xb as i,yb as k}from"./chunk-W2F756OF.js";function B(n,t){n&1&&(o(0,"div",4),m(1,0),i())}function D(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function U(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,D,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Exception))}}function X(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function z(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,X,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),s(4),i(),o(5,"div",14),s(6),i(),o(7,"div",14),s(8),i(),o(9,"div",14),s(10),i(),o(11,"div",14),s(12),i()(),u(13,U,4,0,"code")(14,z,4,0,"code"),i()()),n&2){let e=r().$implicit;l(4),d("ID: ",e.ID,""),l(2),d("Type: ",e.Type,""),l(2),d("Tag: ",e.Tag,""),l(2),d("TaskID: ",e.TaskID,""),l(2),d("MessageID: ",e.MessageID,""),l(),g(e.Exception?13:-1),l(),g(e.Message?14:-1)}}function j(n,t){if(n&1){let e=w();o(0,"tr",10),y("click",function(){let _=b(e).$index,c=r(2);return I(c.toggleRow(_))}),o(1,"td"),s(2),G(3,"date"),i(),o(4,"td"),s(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),s(9,"caret-down"),i()()()(),u(10,W,15,7,"tr")}if(n&2){let e=t.$implicit,a=t.$index,_=r(2);l(2),L($(3,5,e.When,"MMM dd. hh:mm")),l(3),L(_.subStringMessage(e.Message)),l(2),C("rotated-icon",a===_.openRowIndex()),l(3),g(a===_.openRowIndex()?10:-1)}}function H(n,t){if(n&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),m(3,1),i(),o(4,"th"),m(5,2),i(),k(6,"th",8),i(),v(7,j,11,8,null,null,S),o(9,"div",9),m(10,3),i()()),n&2){let e=r();P("grid-template-columns","auto 1fr auto"),C("type-b",e.asSimpleList()),T("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var E=class n{#e=O(V);whenFilter=p();backupIdFilter=p();asSimpleList=p();polling=p();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=x(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowIndex=M(null);whenEffect=x(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=x(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){this.openRowIndex.set(t===this.openRowIndex()?null:t)}breakIntoLines(t){return t?t.split(`
1
+ import{a as V}from"./chunk-CD3DB23J.js";import{a as A,n as R,w as F}from"./chunk-NMXJMVL5.js";import{j as N}from"./chunk-CKPICCFH.js";import{$b as s,Bc as x,Cb as w,Ib as m,Mb as y,Nb as r,Qa as l,Y as O,ab as h,ac as L,bc as d,da as b,ea as I,fb as u,nb as T,ob as P,pb as C,pc as G,ra as p,rc as $,sb as g,tb as S,ua as M,ub as v,vb as f,wb as o,xb as i,yb as k}from"./chunk-W2F756OF.js";function B(n,t){n&1&&(o(0,"div",4),m(1,0),i())}function D(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function U(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,D,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Exception))}}function X(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function z(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,X,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),s(4),i(),o(5,"div",14),s(6),i(),o(7,"div",14),s(8),i(),o(9,"div",14),s(10),i(),o(11,"div",14),s(12),i()(),u(13,U,4,0,"code")(14,z,4,0,"code"),i()()),n&2){let e=r().$implicit;l(4),d("ID: ",e.ID,""),l(2),d("Type: ",e.Type,""),l(2),d("Tag: ",e.Tag,""),l(2),d("TaskID: ",e.TaskID,""),l(2),d("MessageID: ",e.MessageID,""),l(),g(e.Exception?13:-1),l(),g(e.Message?14:-1)}}function j(n,t){if(n&1){let e=w();o(0,"tr",10),y("click",function(){let _=b(e).$index,c=r(2);return I(c.toggleRow(_))}),o(1,"td"),s(2),G(3,"date"),i(),o(4,"td"),s(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),s(9,"caret-down"),i()()()(),u(10,W,15,7,"tr")}if(n&2){let e=t.$implicit,a=t.$index,_=r(2);l(2),L($(3,5,e.When,"MMM dd. hh:mm")),l(3),L(_.subStringMessage(e.Message)),l(2),C("rotated-icon",a===_.openRowIndex()),l(3),g(a===_.openRowIndex()?10:-1)}}function H(n,t){if(n&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),m(3,1),i(),o(4,"th"),m(5,2),i(),k(6,"th",8),i(),v(7,j,11,8,null,null,S),o(9,"div",9),m(10,3),i()()),n&2){let e=r();P("grid-template-columns","auto 1fr auto"),C("type-b",e.asSimpleList()),T("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var E=class n{#e=O(V);whenFilter=p();backupIdFilter=p();asSimpleList=p();polling=p();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=x(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowIndex=M(null);whenEffect=x(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=x(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){this.openRowIndex.set(t===this.openRowIndex()?null:t)}breakIntoLines(t){return t?t.split(`
2
2
  `):[]}subStringMessage(t){return t?t.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=h({type:n,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&C("simple-list",a.asSimpleList())},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],asSimpleList:[1,"asSimpleList"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let t;t=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let _;return _=$localize`No data available`,[t,e,a,_,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["table-header",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["spk-button","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&u(0,B,2,0,"div",4)(1,H,11,6,"spk-table",5),e&2&&g(a.logLevel()==="Disabled"?0:1)},dependencies:[F,A,R,N],styles:["[_nghost-%COMP%]{display:block}.simple-list[_nghost-%COMP%] spk-table[_ngcontent-%COMP%]{--table-td-bg: var(--base-level-20);height:100%}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-level-20);border:1px solid var(--base-level-30);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column}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;max-width:100%}"],changeDetection:0})};export{E as a};
@@ -0,0 +1 @@
1
+ import{i as We}from"./chunk-CKPICCFH.js";import{$b as _,Ac as x,Bb as ie,Bc as V,Cb as W,Dc as De,Mb as O,Nb as m,Ob as D,Pa as Ve,Pb as f,Qa as h,S as le,Sa as he,Ua as Re,V as Me,Xa as j,Xb as Le,Y as I,Ya as Pe,Yb as q,Za as F,Zb as Q,_b as je,a as Te,ab as y,ac as Ce,ba as Ie,bc as G,cb as Fe,cc as se,da as S,ea as k,ec as _e,fb as b,fc as Se,gc as ke,hc as oe,ic as J,ja as ce,jb as Ae,jc as z,ka as pe,lc as ye,mb as He,mc as re,nb as K,ob as B,pa as de,pb as M,qa as X,qb as fe,ra as g,rb as Y,sa as L,sb as E,ta as ue,tb as me,ua as v,ub as ge,vb as ve,wb as a,wc as Be,xb as p,yb as $}from"./chunk-W2F756OF.js";import{a as N,b as Z,c as Ee}from"./chunk-7CGTOI24.js";var H=["*"],Ge=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ke=["[icon]","[title]","*","[content]"];function Je(n,u){n&1&&(a(0,"spk-icon",3),_(1,"info"),p())}function Ze(n,u){n&1&&(a(0,"spk-icon",3),_(1,"info"),p())}function et(n,u){n&1&&(a(0,"spk-icon",3),_(1,"warning"),p())}function tt(n,u){n&1&&(a(0,"spk-icon",3),_(1,"warning-octagon"),p())}function it(n,u){n&1&&(a(0,"spk-icon",3),_(1,"check-circle"),p())}function nt(n,u){n&1&&(a(0,"spk-icon",3),_(1,"question"),p())}function st(n,u){if(n&1){let t=W();a(0,"spk-icon",7),O("click",function(){S(t);let i=m();return k(i.removeAlert())}),_(1,"plus"),p()}}var ot=["dialogRef"];function rt(n,u){if(n&1){let t=W();a(0,"div",4),O("click",function(){S(t);let i=m();return k(i.isOpen.set(!1))}),p()}}var at=["spk-button",""];var qe=["triggerRef"],lt=["popoverRef"],ct=[[["","trigger",""]],"*"],pt=["[trigger]","*"];var dt=()=>({closeOnButton:!1,closeOnEsc:!0});var ut=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],ht=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],ze=["input"],ft=[[["label"]]],mt=["label"];function gt(n,u){if(n&1&&(a(0,"div",3),_(1),p()),n&2){let t=m();h(),Ce(t.files()[0].name)}}function vt(n,u){if(n&1&&(a(0,"div",3),_(1),p()),n&2){let t=m();h(),G("",t.files().length," files selected")}}function Ct(n,u){if(n&1&&(a(0,"div",4),_(1),p()),n&2){let t=m();h(),Ce(t.filesOver()?t.overlayText():t.placeholder())}}var _t=["optionsRef"],St=["*",[["","menu",""]]],kt=["*","[menu]"];function yt(n,u){n&1&&(a(0,"spk-icon",5),_(1,"caret-down"),p())}var Dt=[[["label"]],[["input","type","range"]]],xt=["label","input[type=range]"],wt=["optionsWrap"],bt=[[["label"]],[["input"]],[["textarea"]]],Ot=["label","input","textarea"],Et=()=>({closeOnButton:!1,closeOnEsc:!1}),we=n=>({$implicit:n});function Tt(n,u){if(n&1&&_(0),n&2){let t=m();G(" ",t.inputValue()," ")}}function Mt(n,u){n&1&&ie(0)}function It(n,u){if(n&1&&b(0,Mt,1,0,"ng-container",13),n&2){let t=m(3).$implicit;m(2);let e=z(6);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,we,t))}}function Vt(n,u){if(n&1&&_(0),n&2){let t=m(3).$implicit,e=m(2);G(" ",e.getLabel(t)," ")}}function Rt(n,u){if(n&1){let t=W();a(0,"spk-chip",11),b(1,It,1,4,"ng-container")(2,Vt,1,1),a(3,"spk-icon",12),O("click",function(i){S(t);let s=m(2).$index,o=m(2);return k(o.removeSelectedOptionByIndex(i,s))}),_(4,"x-bold"),p()()}if(n&2){let t=m(4),e=z(6);Y(t.selectClasses()),h(),E(e?1:2)}}function Pt(n,u){n&1&&ie(0)}function Ft(n,u){if(n&1&&b(0,Pt,1,0,"ng-container",13),n&2){let t=m(4).$implicit;m(2);let e=z(6);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,we,t))}}function At(n,u){if(n&1&&_(0),n&2){let t=m(4).$implicit,e=m(2);G(" ",e.getLabel(t)," ")}}function Ht(n,u){if(n&1&&b(0,Ft,1,4,"ng-container")(1,At,1,1),n&2){m(5);let t=z(6);E(t?0:1)}}function Lt(n,u){if(n&1&&b(0,Ht,2,1),n&2){m(4);let t=z(9);E(t?-1:0)}}function jt(n,u){if(n&1&&b(0,Rt,5,3,"spk-chip",10)(1,Lt,1,1),n&2){m(3);let t=z(8);E(t?0:1)}}function Bt(n,u){if(n&1&&b(0,jt,2,1),n&2){let t=u.$implicit;E(t?0:-1)}}function Wt(n,u){if(n&1&&ge(0,Bt,1,1,null,null,me),n&2){m();let t=z(4);ve(t)}}function qt(n,u){n&1&&ie(0)}function zt(n,u){if(n&1&&b(0,qt,1,0,"ng-container",14),n&2){m(2);let t=z(0);K("ngTemplateOutlet",t)}}function Ut(n,u){if(n&1&&_(0),n&2){let t,e=m(2);G(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function $t(n,u){if(n&1&&b(0,zt,1,1,"ng-container")(1,Ut,1,1),n&2){m();let t=z(0);E(t?0:1)}}function Qt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),p())}function Nt(n,u){n&1&&$(0,"spk-spinner",7)}function Yt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"list-magnifying-glass"),p())}function Xt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"magnifying-glass"),p())}function Gt(n,u){if(n&1){let t=W();a(0,"spk-icon",15),O("click",function(i){S(t);let s=m();return k(s.clear(i))}),_(1,"x-bold"),p()}}function Kt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),p())}function Jt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-up"),p())}function Zt(n,u){if(n&1&&$(0,"spk-checkbox"),n&2){let t=m().$index,e=m();Y(e.selectClasses()),M("active",e.isSelected(t))}}function ei(n,u){n&1&&ie(0)}function ti(n,u){if(n&1&&b(0,ei,1,0,"ng-container",13),n&2){let t=m().$implicit;m();let e=z(7);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,we,t))}}function ii(n,u){if(n&1&&_(0),n&2){let t=m().$implicit,e=m();G(" ",e.getLabel(t)," ")}}function ni(n,u){if(n&1){let t=W();a(0,"li",16),O("click",function(){let i=S(t).$index,s=m();return k(s.toggleOptionByIndex(i))}),b(1,Zt,1,4,"spk-checkbox",17)(2,ti,1,4,"ng-container")(3,ii,1,1),p()}if(n&2){let t=u.$index,e=m(),i=z(7);M("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),h(),E(e.selectMultiple()?1:-1),h(),E(i?2:3)}}var si=["dragImageElement"],oi=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ri=["[sidenav]","[sidenav-closed-topbar]","*"];function ai(n,u){n&1&&$(0,"div",1,0)}function li(n,u){if(n&1){let t=W();a(0,"div",7),O("drop",function(i){S(t);let s=m();return k(s.drop(i))})("dragover",function(i){S(t);let s=m();return k(s.dragOver(i))})("dragenter",function(){S(t);let i=m();return k(i.dragEnter())})("dragleave",function(){S(t);let i=m();return k(i.dragLeave())}),p()}}function ci(n,u){if(n&1){let t=W();a(0,"div",8),O("dragstart",function(i){S(t);let s=m();return k(s.dragStart(i))})("dragend",function(i){S(t);let s=m();return k(s.dragEnd(i))})("drag",function(i){S(t);let s=m();return k(s.drag(i))})("touchstart",function(i){S(t);let s=m();return k(s.touchStart(i))})("touchmove",function(i){S(t);let s=m();return k(s.touchMove(i))})("touchend",function(i){S(t);let s=m();return k(s.touchEnd(i))})("touchcancel",function(i){S(t);let s=m();return k(s.touchCancel(i))}),p()}}var pi=["thead"],di=[[["","table-header",""]],"*",[["","table-no-rows",""]]],ui=["[table-header]","*","[table-no-rows]"];function hi(n,u){n&1&&$(0,"spk-progress-bar",1)}function fi(n,u){n&1&&(a(0,"div",2),f(1,2),p())}var mi=[[["","title",""]],"*"],gi=["[title]","*"];function vi(n,u){n&1&&_(0,"Title")}function Ci(n,u){n&1&&(a(0,"spk-icon",1),_(1,"caret-down"),p())}var _i=["tooltipRef"];var xe=["bold","thin","light","fill"],te=(()=>{class n{#e=I(L);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<xe.length;e++)if(t.endsWith(xe[e]))return xe[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&Y(i.currentClass)},ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Xi=(()=>{class n{constructor(){this._el=I(L),this.alertService=g(null),this.id=g(null),this.alertClasses=x(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ke,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(D(Ge),a(0,"div",1)(1,"div",2,0),f(3),p(),a(4,"div",2),oe(5),b(6,Je,2,0,"spk-icon",3)(7,Ze,2,0,"spk-icon",3)(8,et,2,0,"spk-icon",3)(9,tt,2,0,"spk-icon",3)(10,it,2,0,"spk-icon",3)(11,nt,2,0,"spk-icon",3),p(),a(12,"div",4),f(13,1),f(14,2),p(),b(15,st,2,0,"spk-icon",5),a(16,"div",6),f(17,3),p()()),e&2){let s=je(2);h(),B("display",s.children.length?"block":"none");let o=i.alertClasses();h(5),E(o.includes("primary")?6:o.includes("accent")?7:o.includes("warn")?8:o.includes("error")?9:o.includes("success")?10:11),h(9),E(i.id()?15:-1)}},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})();function be(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Gi=(()=>{class n{constructor(){this.alertHistory=v([]),this.alertHistoryIsOpen=v(!1),this.alertHistoryIsHidden=v(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=be();this.alertHistory.update(i=>[Z(N({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(s=>Z(N({},s),{animateIn:s.id===e?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ae=new Me("Sparkle UI Config"),Si={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ki=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.dialogRef=j("dialogRef"),this.isOpen=F(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=x(()=>N(Z(N({},Si),{class:this.#e?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=V(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}#e;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&q(i.dialogRef,ot,5),e&2&&Q()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:H,decls:6,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(D(),oe(0),a(1,"dialog",1,0)(3,"div",2),f(4),p(),b(5,rt,1,0,"div",3),p()),e&2){let s,o,r,c,l=i.defaultOptionMerge();h(),Y(l.class),B("width",(s=l.width)!==null&&s!==void 0?s:"")("max-width",(o=l.maxWidth)!==null&&o!==void 0?o:"")("max-height",(r=l.maxHeight)!==null&&r!==void 0?r:"")("height",(c=l.height)!==null&&c!==void 0?c:""),h(4),E(i.defaultOptionMerge().closeOnOutsideClick?5:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Ki=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(Ae),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(t,e){let i=this.#i.injector,s=this.#t(),P=e||{},{data:o,closed:r}=P,c=Ee(P,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=De(t,{environmentInjector:i}),this.compRef=De(ki,{hostElement:s,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let l=this.insertedCompRef.instance?.data,d=this.insertedCompRef.instance?.closed;if(o){if(ue(l))this.insertedCompRef.setInput("data",o);else if(!ue(l))throw new Error("data is not an input signal on the passed component")}d instanceof de&&(this.closedFieldSub=d.subscribe((...A)=>{r?.(...A),this.#n()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",c),this.compRef.instance.closed.subscribe(()=>R());let w=this;function R(){d&&d instanceof de?d.emit(!1):r?.(void 0),w.#n()}return{component:this.insertedCompRef.instance,close:R}}#t(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ji=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-button-group"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),yi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["","spk-button",""]],attrs:at,ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Zi=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.class=v(this.#e?.cardType??"default")}#e;static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-card"]],hostVars:2,hostBindings:function(e,i){e&2&&Y(i.class())},ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Di=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:H,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(D(),a(0,"div",0)(1,"spk-icon",1),_(2,"check"),p(),a(3,"spk-icon",2),_(4,"minus"),p()(),f(5))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),xi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-chip"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})();var wi=["scroll","auto"],bi={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ue=(()=>{class n{constructor(){this.#e=I(Be),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=g(!1),this.right=g(!1),this.markForCheck=g(null),this._above=v(this.above()),this._right=v(this.right()),this.disableOpenByClick=g(!1),this.isOpen=F(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=x(()=>N(N({},bi),this.options())),this.triggerRef=j.required("triggerRef"),this.popoverRef=j.required("popoverRef"),this.id=v("--"+be()),this.menuStyle=v(null),this.openAbort=null,this.openEffect=V(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=V(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#t(t){let e=t.parentElement;for(;e;){if(wi.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,s=t.bottom,o=i,r=s+this.#i,c=o+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(c);else{if(o=i,r=s+this.#i,l){let w=t.top-e.height-this.#i;w<0||(r=w)}c&&(o=t.right-e.width,o<0&&(o=0));let d={left:o+"px",top:r+"px"};this.menuStyle.set(d)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&(q(i.triggerRef,qe,5),q(i.popoverRef,lt,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&M("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:pt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let s=W();D(ct),a(0,"div",2,0),O("click",function(r){return S(s),k(i.toggleIsOpen(r))}),a(2,"div",3),f(3),p(),a(4,"button",4),_(5,"Open popover"),p()(),a(6,"div",5,1)(8,"div",6),O("click",function(r){return S(s),k(i.isOpen()&&i.eventClose(r))}),p(),f(9,1),p()}e&2&&(B("anchor-name",i.id()),h(6),fe(i.menuStyle()),B("position-anchor",i.id()))},dependencies:[yi],encapsulation:2,changeDetection:0})}}return n})();var en=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-divider"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Oe=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let o=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(o,0)};var i=o,s=r;e.addEventListener("change",o),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),o()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:ht,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(D(ut),f(0),a(1,"div",0)(2,"div",1),f(3,1),f(4,2),p(),f(5,3),f(6,4),a(7,"div",2),f(8,5),f(9,6),p()(),a(10,"div",3)(11,"div",4),f(12,7),p(),a(13,"div",5),f(14,8),p()())},encapsulation:2,changeDetection:0})}}return n})(),tn=(()=>{class n{constructor(){this._el=I(L),this.inputRef=j.required("input"),this.filesOver=v(!1),this.multiple=g(),this.accept=g(null),this.placeholder=F("Click or drag files here"),this.overlayText=g("Drop files here"),this.files=F([]),this.fileUploadClasses=x(()=>this._el.nativeElement.classList.toString()),this.inputEffect=V(()=>{let t=this.inputRef().nativeElement;t&&(t.placeholder&&this.placeholder.set(t.placeholder),t.addEventListener("dragover",e=>{e.preventDefault(),this.filesOver.set(!0)}),t.addEventListener("dragleave",e=>{e.preventDefault(),this.filesOver.set(!1)}),t.addEventListener("drop",e=>{e.preventDefault(),this.filesOver.set(!1);let i=e.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),t.files=i)}),t.addEventListener("change",e=>{e.preventDefault(),this.handleFileUpload(Array.from(e.target.files))}))})}handleFileUpload(t){this.multiple()?this.files.update(e=>[...e,...t]):this.files.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-file-upload"]],viewQuery:function(e,i){e&1&&q(i.inputRef,ze,5),e&2&&Q()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:mt,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(e,i){e&1&&(D(ft),a(0,"spk-form-field"),f(1,0,["ngProjectAs","label",5,["label"]]),a(2,"div",2,0),b(4,gt,2,1,"div",3)(5,vt,2,1,"div",3)(6,Ct,2,1,"div",4),$(7,"input",5,1)(9,"div",6),p(),a(10,"spk-icon",7),_(11,"upload-simple"),p()()),e&2&&(Y(i.fileUploadClasses()),h(4),E(i.files().length===1?4:i.files().length>1?5:6),h(3),He("multiple",i.multiple())("accept",i.accept()),h(2),M("files-over",i.filesOver()))},dependencies:[Oe,te],encapsulation:2,changeDetection:0})}}return n})(),nn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-list"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})();function $e(n,u){let t=u?.injector||(Ie($e),I(ce)),{debounce:e=0,initialValue:i=void 0,transform:s=C=>C,compare:o=(C,T)=>C===T,forceType:r=void 0,returnPreviousValue:c=!0}=u||{},l=v(i),d=t.get(pe),w=x(()=>{let C=n()?.nativeElement;if(C instanceof HTMLInputElement||C instanceof HTMLTextAreaElement)return Ne(C)}),R=!1,P,A=null;return V(()=>{let C=w();if(!C)return l.set(c&&P?s(P):void 0);i!==void 0&&C.value===""?l.set(i):C.value!==""&&ne();let T=U=>{A!==null&&clearTimeout(A),A=setTimeout(()=>{A=null,ne()},e)};C.addEventListener("input",T),C.addEventListener("inputValueChanged",T),d.onDestroy(()=>{C.removeEventListener("input",T),C.removeEventListener("inputValueChanged",T),A!==null&&clearTimeout(A)})},{injector:t}),V(()=>{let C=w();if(!C)return;let T=l()??"",U=T==null?"":String(T);C.value!==U&&(P=U,C.value=U,C.dispatchEvent(new Event("input")))},{injector:t}),l;function ne(){if(!R){R=!0;try{let C=w();if(!C)return;let T=C.value,U=r?Ye(T,r):s(T);P=T,o(l(),U)||l.set(U)}finally{R=!1}}}function Ne(C){return Object.defineProperty(C,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").get.call(this)},set(T){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").set.call(this,T);let Xe=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:T}});return this.dispatchEvent(Xe),T}}),C}function Ye(C,T){switch(T){case"string":return C.toString();case"number":let U=Number(C);return isNaN(U)?void 0:U;case"boolean":return C.toLowerCase()==="true"?!0:C.toLowerCase()==="false"?!1:void 0;default:return C}}}function Qe(n,u){let t=I(ce),e=t.get(pe),i=v([]),s=null,o=null,r=(l,d)=>{o&&o.disconnect();let w=Array.from(l.nativeElement.querySelectorAll(d.join(",")));i.set(w),o=new MutationObserver(R=>{requestAnimationFrame(()=>{let P=Array.from(l.nativeElement.querySelectorAll(d.join(",")));i.set(P)})}),o.observe(l.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>c())};s=V(()=>{let l=typeof n=="function"&&n[Te]?n():n,d=typeof u=="function"?u():u;l&&d?.length>0?r(l,d):(i.set([]),o&&(o.disconnect(),o=null))},{injector:t});function c(){s&&s.destroy(),o&&o.disconnect()}return{signal:i.asReadonly(),destroy:c}}var sn=(()=>{class n{constructor(){this.#e=I(Re),this.above=g(!1),this.right=g(!1),this.openIndicator=g(!1),this.disabled=g(!1),this.customOptionElementSelectors=g(["button"]),this.keepClickedOptionActive=g(!1),this.closeOnClick=g(!0),this.isOpen=F(!1),this.closed=X(),this.searchable=g(!1),this.activeOptionIndex=v(-1),this.inputRef=j("input"),this.optionsRef=j("optionsRef"),this.options=Qe(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=x(()=>this.options.signal().filter(t=>!t.disabled)),this.inputValue=$e(this.inputRef),this.abortController=null,this.optionsEffect=V(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",i=>{let s=i.target,o=this.activeElements();if(!o.length){let c=this.optionsEl();this.activeElements.set(c),o=c}let r=o.findIndex(c=>c===s);r>-1&&(this.activeOptionIndex.set(r),t.focus())}),t.addEventListener("keydown",e=>{let i=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(i))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(i))):e.key==="Enter"?(e.preventDefault(),i>-1&&(this.activeElements()[i].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=v([]),this.lastInputValue="",this.inputValueEffect=V(()=>{if(!this.searchable())return;let e=(this.inputValue()??"").toLowerCase();if(this.#t(),!e||e==="")return;let i=this._lastElementList.length&&e.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=e;for(let s=0;s<i.length;s++){let o=i[s],r=o.textContent?.toLowerCase()||"",c=this.#i(r,e);o.value=c}i=i.filter(s=>s.value>0).sort((s,o)=>o.value-s.value);for(let s=0;s<i.length;s++)this.#e.setStyle(i[s],"order",s);this.activeElements.set(i),this._lastElementList=i}),this.activeOptionIndexEffect=V(()=>{let t=this.activeElements(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e;#i(t,e){if(!e)return 0;let i=0,s=-1,o=0,r=!0;for(let c=0;c<e.length;c++){let l=e[c];if(t.length>s+1&&t[s+1]===l)i+=c===0?100:150,s++,o++;else{let d=t.indexOf(l,s+1);if(c>0&&(r=!1),d===-1)return 0;i+=100,s=d,o++}}return r&&e.length===o&&(i+=1e3),i+=o*20,i}nextActiveIndex(t){let e=this.activeElements();if(!e.length){let s=this.optionsEl();this.activeElements.set(s),e=s}if(t===-1||t===e.length-1)return 0;let i=t+1;return e[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(t){let e=this.activeElements();if(!e.length){let s=this.optionsEl();this.activeElements.set(s),e=s}if(t===0||t===-1)return e.length-1;let i=t-1;return e[i].disabled?this.prevActiveIndex(i):i}close(t="closed",e){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active"))}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-menu"]],viewQuery:function(e,i){e&1&&(q(i.inputRef,ze,5),q(i.optionsRef,_t,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&M("disabled",i.disabled())("has-search",i.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:kt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let s=W();D(St),a(0,"spk-popover",3,0),ke("isOpenChange",function(r){return S(s),Se(i.isOpen,r)||(i.isOpen=r),k(r)}),O("closed",function(){return S(s),k(i.close("fromPopover"))}),a(2,"div",4),O("click",function(){return S(s),k(!i.disabled()&&i.isOpen.set(!0))}),f(3),b(4,yt,2,0,"spk-icon",5),p(),a(5,"div",6)(6,"spk-form-field",7),$(7,"input",8,1),p()(),a(9,"div",9,2),O("click",function(){return S(s),k(i.close("active"))}),f(11,1),p()()}e&2&&(_e("isOpen",i.isOpen),K("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ye(12,dt)),h(2),M("is-open",i.isOpen()),h(2),E(i.openIndicator()?4:-1),h(2),M("hidden",i.searchable()===!1),h(3),M("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ue,Oe,te],encapsulation:2,changeDetection:0})}}return n})(),Oi=(()=>{class n{constructor(){this.value=g(void 0)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(e,i){e&1&&$(0,"div",0),e&2&&B("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),on=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:H,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(D(),$(0,"div",0),f(1))},encapsulation:2,changeDetection:0})}}return n})(),rn=(()=>{class n{constructor(){this.#e=I(L),this.#i=null,this.#t=null,this.#n=0,this.alwaysShowThumb=g(!1),this.unit=g(""),this.value=F(this.#n),this.inputState=v({min:0,max:100,step:1}),this.valuePercentage=x(()=>{let{min:t,max:e}=this.inputState(),i=this.value()??t;if(isNaN(i))return 0;let s=e-t;if(s===0)return 0;let o=(i-t)/s*100;return Math.max(0,Math.min(100,o))}),this.trackFilledPercentage=x(()=>this.valuePercentage()),this.thumbPositionPercentage=x(()=>this.valuePercentage()),this.syncModelToInputEffect=V(()=>{let t=this.value();if(this.#t){let e=parseFloat(this.#t.value);(isNaN(e)||String(e)!==String(t))&&(this.#t.value=String(t))}})}#e;#i;#t;#n;get hasInputElement(){return!!this.#t}ngAfterViewInit(){this.#t=this.#e.nativeElement.querySelector('input[type="range"]'),this.#t?(this.#a(this.#t),this.#t.oninput=()=>{this.setNewInputValue(this.#t.value)},this.#t.addEventListener("inputValueChanged",t=>{this.setNewInputValue(t.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#s()):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(t){let e=parseFloat(t??"0");if(!isNaN(e)){let{min:i,max:s}=this.inputState();this.value.set(Math.max(i,Math.min(s,e)))}}trackEvent(t){if(!this.#t||this.#t.readOnly||this.#t.disabled){t.preventDefault(),t.stopPropagation();return}if(t.target===this.#t||t.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let i=t.currentTarget.getBoundingClientRect(),s=t.clientX-i.left,o=i.width,{min:r,max:c,step:l}=this.inputState(),d=c-r;if(o>0&&d!==0&&l>0){let R=(s/o*d+r-r)/l,P=r+Math.round(R)*l,A=this.#r(l);P=parseFloat(P.toFixed(A));let ne=Math.max(r,Math.min(c,P));this.value.set(ne)}}#o(t=!1){if(!this.#t)return;let e=parseFloat(this.#t.min??"0")??0,i=parseFloat(this.#t.max??"100")??100,s=this.#t.step,o=1;if(s&&s.toLowerCase()!=="any"){let c=parseFloat(s);!isNaN(c)&&c>0&&(o=c)}this.inputState.set({min:e,max:i,step:o});let r=parseFloat(this.#t.value??String(e))??e;if(t&&this.value()!==this.#n){let c=this.value(),l=Math.max(e,Math.min(i,c));r!==l&&(this.#t.value=String(l)),c!==l&&this.value.set(l)}else{let c=Math.max(e,Math.min(i,r));this.value()!==c&&this.value.set(c)}}#s(){if(!this.#t||typeof MutationObserver>"u")return;let t=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(e=>{let i=!1;for(let s of e)if(s.type==="attributes"&&t.includes(s.attributeName??"")){i=!0;break}i&&this.#o(!1)}),this.#i.observe(this.#t,{attributes:!0})}#r(t){if(isNaN(t)||Math.floor(t)===t)return 0;let i=t.toString().split(".")[1];return i?i.length:0}#a(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(s),e}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#t&&(this.#t.oninput=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&M("has-input",i.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:xt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(D(Dt),a(0,"div",0),f(1),p(),a(2,"div",1)(3,"div",2),_(4),p(),a(5,"div",3),O("click",function(o){return i.trackEvent(o)}),f(6,1),a(7,"div",4),$(8,"div",5),p(),a(9,"div",6)(10,"div",7)(11,"div",8),_(12),p()()()(),a(13,"div",9),_(14),p()()),e&2&&(h(4),se("",i.inputState().min,"",i.unit(),""),h(4),B("width",i.trackFilledPercentage(),"%"),h(),B("left",i.thumbPositionPercentage(),"%"),h(),M("always-show",i.alwaysShowThumb()),h(2),se("",i.value(),"",i.unit(),""),h(2),se("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),an=(()=>{class n{constructor(){this.#e=I(L),this.value=g(),this.label=g(),this.asFreeText=g(!1),this.placeholder=g(),this.readonly=F(!1),this.disabled=F(!1),this.lazySearch=g(!1),this.inlineSearch=g(!1),this.asText=g(!1),this.isClearable=g(!0),this.selectMultiple=g(!1),this.optionTemplate=g(null),this.selectedOptionTemplate=g(null),this.placeholderTemplate=g(null),this.isOpen=F(!1),this.isLoading=F(!1),this.options=F([]),this.selectedOptions=F([]),this.cleared=X(),this.inlineTemplate=Pe(he),this.optionsWrapRef=j.required("optionsWrap"),this.inputRefInput=v(null),this.#i=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new L(e.target)),this.#i.disconnect())}),this.inputValue=v(""),this.prevInputValue=v(null),this.focusedOptionIndex=v(-1),this._isClearable=x(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=x(()=>this.#e.nativeElement.classList.toString()),this.stretch=x(()=>this.selectClasses().includes("stretch")),this.placeholderText=x(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=x(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#s(i,e)):t}),this.filteredOptions=x(()=>{let t=this.options()||[],e=this.label(),i=this.value(),s=this.inlineSearch(),o=this.inputValue().toLowerCase(),r=this.#a(o);if(t.length<=0)return[];if(!s||o==="")return t;let l=t.filter(d=>{let w=e?(this.#s(d,e)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),R=((i?this.#s(d,i):d)??"").toString().toLowerCase(),P=r.test(w),A=r.test(R);return P||A}).map(d=>{let w=e?(this.#s(d,e)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),R=((i?this.#s(d,i):d)??"").toString().toLowerCase(),P=this.#t(w,o),A=this.#t(R,o);return{item:d,score:Math.max(P,A)}});return l.sort((d,w)=>w.score-d.score),l.map(d=>d.item)}),this.inputRefEl=x(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let s=i.target.value,o=this.inputValue();s!==o&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let s=i.detail.value,o=this.inputValue();if(s!==o){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#o()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=V(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.filteredOptions().length-1?0:s)}if(i.key==="ArrowUp"){i.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.filteredOptions().length-1:s)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=V(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=V(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=x(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=x(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=x(()=>this.inlineSearch()||this.lazySearch()),this.#n=V(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(s=>e?this.#s(s,e):s).join(",");this.inputValue.set(i)})}#e;#i;#t(t,e){if(!e)return 0;let i=0,s=-1,o=0,r=!0;for(let c=0;c<e.length;c++){let l=e[c];if(t.length>s+1&&t[s+1]===l)i+=c===0?100:150,s++,o++;else{let d=t.indexOf(l,s+1);if(c>0&&(r=!1),d===-1)return 0;i+=100,s=d,o++}}return r&&e.length===o&&(i+=1e3),i+=o*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new L(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new L(e));return}typeof MutationObserver<"u"&&this.#i.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),s=this.selectMultiple(),o=t.toString().split(",");if(o.length===0){this.selectedOptions.set([]);return}let r=s?o:[o[0]],c=e.filter(l=>{let d=i?this.#s(l,i)?.toString():l?.toString();return d&&r.includes(d)});this.selectedOptions.set(s?c:[c[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(s=>e?this.#s(s,e):s).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#s(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let s=this.selectMultiple(),o=this._isClearable(),r=this.value(),c=this.selectedOptionValues(),l=r?this.#s(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(d=>{let w=c.indexOf(l);if(w>-1){let R=[...d.slice(0,w),...d.slice(w+1)];return o||R.length>0?R:d}else return this.focusedOptionIndex.set(t),s?[...d,i]:[i]}),s?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),s&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],s=e?this.#s(i,e):i;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#o())}#o(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(s=>e?this.#s(s,e)===t:s===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#s(t,e){return e.split(".").reduce((i,s)=>i?.[s],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(s),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let s of e)i+=".*"+this.#l(s);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#i.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,s){e&1&&Le(s,i.inlineTemplate,he,5),e&2&&Q()},viewQuery:function(e,i){e&1&&q(i.optionsWrapRef,wt,5),e&2&&Q()},hostVars:2,hostBindings:function(e,i){e&2&&M("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:Ot,decls:32,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let s=W();D(bt),oe(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),ke("isOpenChange",function(r){return S(s),Se(i.isOpen,r)||(i.isOpen=r),k(r)}),O("closed",function(){return S(s),k(i.close())}),a(12,"spk-form-field",3),O("click",function(){return S(s),k(i.open())}),f(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),b(16,Tt,1,1)(17,Wt,2,0)(18,$t,2,1),f(19,1),f(20,2),p()(),b(21,Qt,2,0,"spk-icon",6)(22,Nt,1,0,"spk-spinner",7)(23,Yt,2,0,"spk-icon",6)(24,Xt,2,0,"spk-icon",6)(25,Gt,2,0,"spk-icon",6)(26,Kt,2,0,"spk-icon",6)(27,Jt,2,0,"spk-icon",6),p(),a(28,"div",8,1),ge(30,ni,4,6,"li",9,me),p()()}if(e&2){J(i.placeholderTemplate());let s=i.optionTemplate(),o=i.selectedOptionTemplate(),r=i.inlineTemplate();h(4);let c=J(i.selectedOptions()),l=i.inputState();h(2),J(o||s||r),h(),J(s||r),h();let d=J(!i.asText()&&i.selectMultiple());h();let w=J(i.isOpen()&&i.hasSearch()&&(d||i.inputValue().length>0));h(),_e("isOpen",i.isOpen),K("disableOpenByClick",!0)("options",ye(21,Et)),h(2),M("stretch",i.stretch())("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),h(2),M("show-search-text",w),h(),M("is-selected",l==="selected"),h(),E(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:c.length>0?17:w?-1:18),h(5),E(l==="closed"?21:l==="loading"?22:l==="open-searching"?23:l==="searching"?24:l==="selected"&&i._isClearable()?25:l==="selected"&&!i._isClearable()?26:27),h(9),ve(i.filteredOptions())}},dependencies:[We,Ue,Oe,te,Di,Ei,xi],encapsulation:2,changeDetection:0})}}return n})(),ln=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.#i=v(this.#e?.sidenavType),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=g(!1),this.isOpen=F(!1),this.type=g(void 0),this.class=x(()=>this.#i()?this.#i():this.#e?.sidenavType),this.dragImageElement=j.required("dragImageElement"),this.dragIsEnding=v(!1),this.dragIsOnScreen=v(!0),this.isDragging=v(!1),this.dragPositionX=v(0),this.dragActualPositionX=x(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=x(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=V(()=>{this.isDragging()&&document.body.classList.add("dragging")})}#e;#i;drop(t){t.stopPropagation(),this.#t(t.clientX)}#t(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#t(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#n(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#n(t)}#n(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#n(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#t(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&q(i.dragImageElement,si,5),e&2&&Q()},hostVars:8,hostBindings:function(e,i){e&2&&(Y(i.class()),M("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ri,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(D(oi),b(0,ai,2,0,"div",1)(1,li,1,0,"div",2),a(2,"div",3),f(3),p(),a(4,"div",4),b(5,ci,1,0,"div",5),a(6,"div",6),f(7,1),p(),a(8,"main"),f(9,2),p()()),e&2&&(E(i.type()==="overlay"?0:-1),h(),E(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),B("transform",i.draggingStyle()),h(),E(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var cn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-stepper"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})();var ee=1.5,pn=(()=>{class n{constructor(){this.#e=I(L),this.#i=I(ae,{optional:!0}),this.loading=g(!1),this.data=g([]),this.dataChange=X(),this.sortByColumn=F(null),this.thead=j("thead"),this.columns=Qe(this.thead,["TH"]),this.class=v(this.#i?.tableType??"default"),this.resizing=v(!1),this.sizeTrigger=v(!0),this.#t=null,this.#n=v(!1),this.scrollXState=v(-1),this.scrollYState=v(-1),this.canScrollX=v(!1),this.canScrollY=v(!1),this.columnSizes=x(()=>{this.sizeTrigger();let t=this.columns.signal();return t.reduce((e,i,s)=>{let o=i,r=s===t.length-1;return o.dataset.size?`${e} ${o.dataset.size}`:o.classList.contains("sticky")||o.classList.contains("sticky-end")?`${e} min-content`:r?`${e} 1fr`:`${e} 1fr`},"")}),this.e=V(()=>{let t=this.sortByColumn();if(t===null)return this.#n()||(this.#t=this.data(),this.#n.set(!0)),this.dataChange.emit(structuredClone(this.#t));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),s=this.data().sort((o,r)=>{let c=o[e],l=r[e],d=0;return typeof c=="number"&&typeof l=="number"&&(d=c-l),c instanceof Date&&l instanceof Date&&(d=c.getTime()-l.getTime()),typeof c=="string"&&typeof l=="string"&&(d=c.localeCompare(l,void 0,{sensitivity:"base"})),i?-d:d});this.dataChange.emit(s)})}#e;#i;#t;#n;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#o()}onResize(t){this.#o()}ngAfterViewInit(){queueMicrotask(()=>this.#o())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}#o(){let t=this.#e.nativeElement,e=-1,i=-1,s=t.scrollWidth>t.clientWidth+ee;if(s){let r=t.scrollLeft<=ee;t.scrollWidth-(t.scrollLeft+t.clientWidth)<ee?e=1:r||(e=0)}this.scrollXState.set(e),this.canScrollX.set(s);let o=t.scrollHeight>t.clientHeight+ee;if(o){let r=t.scrollTop<=ee;t.scrollHeight-(t.scrollTop+t.clientHeight)<ee?i=1:r||(i=0)}this.scrollYState.set(i),this.canScrollY.set(o)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&q(i.thead,pi,5),e&2&&Q()},hostVars:18,hostBindings:function(e,i){e&1&&O("scroll",function(){return i.onScroll()})("resize",function(o){return i.onResize(o)},!1,Ve),e&2&&(Y(i.class()),B("grid-template-columns",i.columnSizes()),M("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:ui,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(D(di),a(0,"thead",null,0),f(2),b(3,hi,1,0,"spk-progress-bar",1),p(),a(4,"tbody"),f(5,1),p(),b(6,fi,2,0,"div",2)),e&2&&(h(3),E(i.loading()?3:-1),h(3),E(i.loading()?-1:6))},dependencies:[Oi],encapsulation:2,changeDetection:0})}}return n})(),dn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tabs"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(D(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),un=(()=>{class n{constructor(){this.isActive=F(!1),this.disallowToggle=g(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&M("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:gi,decls:6,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"content"]],template:function(e,i){e&1&&(D(mi),a(0,"h3",0),O("click",function(){return i.disallowToggle()||i.toggle()}),f(1,0,null,vi,1,0),b(3,Ci,2,0,"spk-icon",1),p(),a(4,"div",2),f(5,1),p()),e&2&&(h(3),E(i.disallowToggle()?-1:3))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),hn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle"]],ngContentSelectors:H,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(D(),a(0,"div",0),$(1,"div",1),p(),f(2))},encapsulation:2,changeDetection:0})}}return n})(),fn=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=g(!1),this.above=g(!1),this.right=g(!1),this._above=v(this.above()),this._right=v(this.right()),this.message=g.required(),this.isOpen=F(!1),this.closed=X(),this.triggerRef=j.required("triggerRef"),this.tooltipRef=j.required("tooltipRef"),this.id=v("--"+be()),this.menuStyle=v(null),this.isCalculatingPosition=x(()=>{let t=this.tooltipRef()?.nativeElement;return this.isOpen()?(t?.showPopover(),!0):(t.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=V(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let e=this.abortController.signal;this.calculateMenuPosition(),this.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:e}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:e})}),this.scrollableStyles=["scroll","auto"]}#e;#i(t){let e=t.parentElement;for(;e;){if(this.scrollableStyles.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=t.left,s=t.bottom,o=i,r=s+this.#e,c=o+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(c);else{if(this.above()){let d=t.top-e.height-this.#e;d>=0&&(r=d)}else l&&(r=t.top-e.height-this.#e);if(this.right()){let d=t.right-e.width;d>=0&&(o=d)}else c&&(r=l?t.top+t.height-e.height:t.top,o=t.left-e.width-this.#e);this.menuStyle.set({left:o+"px",top:r+"px"})}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tooltip"]],viewQuery:function(e,i){e&1&&(q(i.triggerRef,qe,5),q(i.tooltipRef,_i,5)),e&2&&Q(2)},hostVars:6,hostBindings:function(e,i){e&2&&M("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:H,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(e,i){if(e&1){let s=W();D(),a(0,"div",2,0),O("mouseover",function(){return S(s),k(i.isOpen.set(!0))})("mouseout",function(){return S(s),k(i.isOpen.set(!1))}),f(2),p(),a(3,"div",3,1),_(5),p()}e&2&&(B("anchor-name",i.id()),h(3),fe(i.menuStyle()),B("position-anchor",i.id()),h(2),G(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var mn=(()=>{class n{constructor(){this.filesOver=v(!1),this.filesDropped=X()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=Fe({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&O("dragover",function(o){return i.onDragOver(o)})("dragleave",function(o){return i.onDragLeave(o)})("drop",function(o){return i.ondrop(o)}),e&2&&M("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{te as a,Xi as b,Gi as c,ki as d,Ki as e,Ji as f,yi as g,Zi as h,Di as i,xi as j,en as k,Oe as l,tn as m,nn as n,sn as o,Oi as p,on as q,rn as r,Ei as s,an as t,ln as u,cn as v,pn as w,dn as x,un as y,hn as z,fn as A,mn as B};
@@ -1 +1 @@
1
- import{g as k}from"./chunk-IDOYGPGZ.js";import{n as x}from"./chunk-DMDYUREZ.js";import"./chunk-6DH6O5YE.js";import"./chunk-ORDORLQT.js";import"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import{a as g}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as X}from"./chunk-7JUYF3HW.js";import"./chunk-7L42EO7J.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{a as I,b as G,c as W,d as h,e as y,f as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{q as w,v as K}from"./chunk-WX7L7V6J.js";import"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Bc as N,Gb as _,Hb as F,Nb as E,Qa as d,Y as c,ab as A,fb as $,kc as M,lc as T,mc as R,nb as r,pb as L,sb as O,ua as C,wb as i,xb as n,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var b=()=>["/restore-from-files/destination"],z=()=>["/restore-from-files/encryption"],B=()=>["/restore-from-files/select-files"],U=()=>["/restore-from-files/options"],j=e=>["/restore-draft",e,"select-files"],H=e=>["/restore-draft",e,"options"],V=e=>["/restore",e,"select-files"],q=e=>["/restore",e,"options"],J=e=>["/restore",e,"progress"];function Q(e,o){e&1&&(i(0,"div",9),_(1,0),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,1),a(5,"spk-radio"),F(),n(),i(6,"div",9),_(7,2),a(8,"spk-radio"),F(),n(),i(9,"div",9),_(10,3),a(11,"spk-radio"),F(),n()),e&2&&(r("routerLink",T(4,b)),d(3),r("routerLink",T(5,z)),d(3),r("routerLink",T(6,B)),d(3),r("routerLink",T(7,U)))}function Y(e,o){if(e&1&&(i(0,"div",9),_(1,4),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,5),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,j,t.backupId())),d(3),r("routerLink",R(4,H,t.backupId()))}}function Z(e,o){if(e&1&&(i(0,"div",9),_(1,6),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,7),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,V,t.backupId())),d(3),r("routerLink",R(4,q,t.backupId()))}}function ee(e,o){if(e&1&&(i(0,"div",9),_(1,8),a(2,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(1,J,t.backupId()))}}var D=class e{#t=c(G);#i=c(h);#e=c(k);#n=g(this.#t.params);#o=g(this.#t.url);#a=g(this.#t.children[0].url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;isProgressPage=C(!1);paramsChanged=N(()=>{let o=this.#a(),t=this.#n()?.id,s=!!this.#o()?.find(S=>S.path==="restore-draft"),p=!!this.#o()?.find(S=>S.path==="restore-from-files"),u=!!o?.find(S=>S.path==="progress");this.isProgressPage.set(u),this.#e.init(t,p,p||s)});ngOnInit(){this.#i.events.subscribe(o=>{if(o instanceof I){let t=o.urlAfterRedirects;this.isProgressPage.set(t.includes("progress"))}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=A({type:e,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(t,s){t&2&&L("full-width",s.isProgressPage())},features:[M([k,x])],decls:8,vars:2,consts:()=>{let o;o=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let p;p=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let u;u=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let S;S=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let f;f=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let P;P=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let m;return m=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Progress `,[o,t,s,p,u,S,f,P,m,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(a(0,"app-status-bar"),i(1,"spk-stepper"),$(2,Q,12,8)(3,Y,6,6)(4,Z,6,6)(5,ee,3,3,"div",9),n(),i(6,"section"),a(7,"router-outlet"),n()),t&2&&(d(2),O(s.isFileRestore()?2:s.isDraft()?3:4),d(3),O(s.isProgressPage()?5:-1))},dependencies:[K,w,X,W,y,v],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}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{D as default};
1
+ import{g as k}from"./chunk-PFWSXI4B.js";import{n as x}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import{a as g}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as X}from"./chunk-554T66WI.js";import"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{a as I,b as G,c as W,d as h,e as y,f as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{q as w,v as K}from"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Bc as N,Gb as _,Hb as F,Nb as E,Qa as d,Y as c,ab as A,fb as $,kc as M,lc as T,mc as R,nb as r,pb as L,sb as O,ua as C,wb as i,xb as n,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var b=()=>["/restore-from-files/destination"],z=()=>["/restore-from-files/encryption"],B=()=>["/restore-from-files/select-files"],U=()=>["/restore-from-files/options"],j=e=>["/restore-draft",e,"select-files"],H=e=>["/restore-draft",e,"options"],V=e=>["/restore",e,"select-files"],q=e=>["/restore",e,"options"],J=e=>["/restore",e,"progress"];function Q(e,o){e&1&&(i(0,"div",9),_(1,0),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,1),a(5,"spk-radio"),F(),n(),i(6,"div",9),_(7,2),a(8,"spk-radio"),F(),n(),i(9,"div",9),_(10,3),a(11,"spk-radio"),F(),n()),e&2&&(r("routerLink",T(4,b)),d(3),r("routerLink",T(5,z)),d(3),r("routerLink",T(6,B)),d(3),r("routerLink",T(7,U)))}function Y(e,o){if(e&1&&(i(0,"div",9),_(1,4),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,5),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,j,t.backupId())),d(3),r("routerLink",R(4,H,t.backupId()))}}function Z(e,o){if(e&1&&(i(0,"div",9),_(1,6),a(2,"spk-radio"),F(),n(),i(3,"div",9),_(4,7),a(5,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(2,V,t.backupId())),d(3),r("routerLink",R(4,q,t.backupId()))}}function ee(e,o){if(e&1&&(i(0,"div",9),_(1,8),a(2,"spk-radio"),F(),n()),e&2){let t=E();r("routerLink",R(1,J,t.backupId()))}}var D=class e{#t=c(G);#i=c(h);#e=c(k);#n=g(this.#t.params);#o=g(this.#t.url);#a=g(this.#t.children[0].url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;isProgressPage=C(!1);paramsChanged=N(()=>{let o=this.#a(),t=this.#n()?.id,s=!!this.#o()?.find(S=>S.path==="restore-draft"),p=!!this.#o()?.find(S=>S.path==="restore-from-files"),u=!!o?.find(S=>S.path==="progress");this.isProgressPage.set(u),this.#e.init(t,p,p||s)});ngOnInit(){this.#i.events.subscribe(o=>{if(o instanceof I){let t=o.urlAfterRedirects;this.isProgressPage.set(t.includes("progress"))}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=A({type:e,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(t,s){t&2&&L("full-width",s.isProgressPage())},features:[M([k,x])],decls:8,vars:2,consts:()=>{let o;o=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let p;p=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let u;u=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let S;S=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let f;f=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let P;P=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let m;return m=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Progress `,[o,t,s,p,u,S,f,P,m,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(a(0,"app-status-bar"),i(1,"spk-stepper"),$(2,Q,12,8)(3,Y,6,6)(4,Z,6,6)(5,ee,3,3,"div",9),n(),i(6,"section"),a(7,"router-outlet"),n()),t&2&&(d(2),O(s.isFileRestore()?2:s.isDraft()?3:4),d(3),O(s.isProgressPage()?5:-1))},dependencies:[K,w,X,W,y,v],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}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{D as default};