@duplicati/ngclient 0.0.69 → 0.0.71

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 (81) hide show
  1. package/{chunk-ME7OGY7M.js → chunk-23B5YPI7.js} +1 -1
  2. package/{chunk-IZGVBNDM.js → chunk-36BW3HQ7.js} +1 -1
  3. package/{chunk-GZNEVVHC.js → chunk-36F7QFET.js} +1 -1
  4. package/chunk-3HBDM5MB.js +1 -0
  5. package/chunk-3JP7VYCB.js +1 -0
  6. package/{chunk-U2NGUTAO.js → chunk-3PWBJYXG.js} +1 -1
  7. package/{chunk-3CXGKNYN.js → chunk-4TAMR7KC.js} +1 -1
  8. package/{chunk-KMQU3ZBK.js → chunk-5LJPNDXN.js} +1 -1
  9. package/{chunk-H4ZYUOCD.js → chunk-6L2NUWJ4.js} +1 -1
  10. package/chunk-6PVIT55H.js +1 -0
  11. package/{chunk-M3TDZOXH.js → chunk-7DMP23AI.js} +1 -1
  12. package/{chunk-LREVYYY4.js → chunk-7DREMJ5Y.js} +1 -1
  13. package/chunk-AMAV7ILZ.js +1 -0
  14. package/{chunk-BSZZLSIX.js → chunk-AUVXHFRE.js} +1 -1
  15. package/{chunk-DOUFB6IZ.js → chunk-BTVE465Y.js} +1 -1
  16. package/chunk-BXR7Y6IT.js +1 -0
  17. package/{chunk-M27H5SJL.js → chunk-CGRSLVMY.js} +1 -1
  18. package/{chunk-CO7Y3BIG.js → chunk-CRJYNI4C.js} +1 -1
  19. package/chunk-CVXQ5N2E.js +1 -0
  20. package/{chunk-GRR3LTVK.js → chunk-D4IXAB67.js} +1 -1
  21. package/{chunk-ZTSITRHY.js → chunk-D64J3G73.js} +1 -1
  22. package/{chunk-GE3T3AG3.js → chunk-DGDWETHE.js} +1 -1
  23. package/chunk-DWP7VODJ.js +1 -0
  24. package/{chunk-CM2VLNFJ.js → chunk-EQ7SGBND.js} +1 -1
  25. package/{chunk-PIVMNQL6.js → chunk-EQGWBFEW.js} +1 -1
  26. package/{chunk-KBC4N47O.js → chunk-ETSKNH5A.js} +1 -1
  27. package/{chunk-CLWDOASW.js → chunk-FOOQLIND.js} +1 -1
  28. package/chunk-G6DEVOXB.js +1 -0
  29. package/{chunk-NJSJNACP.js → chunk-GKTIIZ72.js} +1 -1
  30. package/{chunk-O2MZ5CAQ.js → chunk-GOCS43XM.js} +1 -1
  31. package/{chunk-B6UDSTOM.js → chunk-HUO7ZRYL.js} +1 -1
  32. package/{chunk-7YT4Y7C3.js → chunk-IAP5TJ3R.js} +1 -1
  33. package/{chunk-IHYJHBCC.js → chunk-JBUDJVPQ.js} +1 -1
  34. package/{chunk-VRLSXAI3.js → chunk-JYGPM2H4.js} +1 -1
  35. package/chunk-KULPV2R6.js +1 -0
  36. package/{chunk-KYCK75MH.js → chunk-L6P5W22A.js} +1 -1
  37. package/{chunk-2HC23GJF.js → chunk-LD6OVCQQ.js} +1 -1
  38. package/chunk-LH5KGH4I.js +1 -0
  39. package/{chunk-OIRMDOOF.js → chunk-LLZCURV6.js} +1 -1
  40. package/{chunk-PD4M6YP7.js → chunk-MSZ6S4MV.js} +1 -1
  41. package/chunk-PCX4N4NW.js +1 -0
  42. package/{chunk-OROSSCXB.js → chunk-PHVHG2MW.js} +1 -1
  43. package/{chunk-FC7IHW5V.js → chunk-PV7MTP6N.js} +1 -1
  44. package/{chunk-MSK2MH2K.js → chunk-R2RIU25S.js} +1 -1
  45. package/{chunk-T5I4AY74.js → chunk-RACRCDGZ.js} +1 -1
  46. package/{chunk-ICAVTIBO.js → chunk-RIBFT4EC.js} +1 -1
  47. package/{chunk-L5E5U6M6.js → chunk-RJNJ6YSP.js} +1 -1
  48. package/{chunk-TSQCXGD7.js → chunk-SRYAKXQ4.js} +1 -1
  49. package/{chunk-VX3YYMRB.js → chunk-T74PBQWH.js} +1 -1
  50. package/{chunk-3ENWJFPQ.js → chunk-VO6WZ2FC.js} +1 -1
  51. package/{chunk-N3GBABZB.js → chunk-W2IUXLYE.js} +1 -1
  52. package/chunk-W5XUYWNW.js +1 -0
  53. package/chunk-WRCHPMPK.js +1 -0
  54. package/{chunk-F7726SNN.js → chunk-WZU5GEIZ.js} +1 -1
  55. package/{chunk-N7TLL5YI.js → chunk-XPKNYX4D.js} +1 -1
  56. package/{chunk-BUARZS4A.js → chunk-XVYQD36R.js} +1 -1
  57. package/{chunk-HARDXXQK.js → chunk-YVJTTACQ.js} +1 -1
  58. package/{chunk-3LFQ2CMA.js → chunk-Z4N6RKX7.js} +1 -1
  59. package/{chunk-O53NVQ2A.js → chunk-ZLU2WKOF.js} +1 -1
  60. package/{chunk-J76HBC5J.js → chunk-ZTEWFJB7.js} +1 -1
  61. package/{chunk-INMFVRL6.js → chunk-ZU4O6G7N.js} +1 -1
  62. package/chunk-ZUSCSJMD.js +1 -0
  63. package/chunk-ZYQXWAMY.js +7 -0
  64. package/index.html +1 -1
  65. package/{main-ZA53CUZQ.js → main-YB2PGXE3.js} +1 -1
  66. package/package.json +1 -1
  67. package/chunk-34MR2IQN.js +0 -1
  68. package/chunk-5NMYYKKU.js +0 -1
  69. package/chunk-76QDT3DT.js +0 -1
  70. package/chunk-B6F7BTCY.js +0 -1
  71. package/chunk-BA7KFJXF.js +0 -1
  72. package/chunk-G2NEYTH2.js +0 -1
  73. package/chunk-HVNIDQ3I.js +0 -1
  74. package/chunk-K6NJFA6G.js +0 -1
  75. package/chunk-LULH26OZ.js +0 -1
  76. package/chunk-OTS7WJON.js +0 -1
  77. package/chunk-PU2Q3GL6.js +0 -1
  78. package/chunk-VGQ6X3AL.js +0 -7
  79. package/chunk-VTEOBYNY.js +0 -1
  80. package/chunk-XA2AVFI2.js +0 -1
  81. package/chunk-YJYS7OZI.js +0 -1
@@ -1 +1 @@
1
- import{Ba as s,Ca as r}from"./chunk-BUARZS4A.js";import{U as l,_ as a,xa as o}from"./chunk-VGQ6X3AL.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{Ba as s,Ca as r}from"./chunk-XVYQD36R.js";import{U as l,_ as a,xa as o}from"./chunk-ZYQXWAMY.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -1 +1 @@
1
- import{b,d as $,e as h,h as G,l as P,o as B,p as v,r as L}from"./chunk-OROSSCXB.js";import{b as A}from"./chunk-O2MZ5CAQ.js";import{c as I,d as y}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as w,c as V,g as x,l as X,y as U}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as i,Db as r,Eb as _,G as g,O as T,Ob as C,Pb as O,Qb as f,Ra as F,Tb as N,Ub as m,Ya as p,_ as u,eb as R,hc as M,kb as S,rc as k,tb as c,vb as D,yb as E}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var j=()=>["/"];function z(l,e){l&1&&(i(0,"spk-form-field")(1,"label",11),f(2,2),r(),_(3,"input",12),r())}var a=new v,d=class l{#t=u(V);#e=u(A);#o=u(I);isRestoring=p(!1);isSecureFile=p(!1);importForm=a.group({config:a.control(""),cmdline:a.control(!1),importMetadata:a.control(!1),direct:a.control(!1),passphrase:a.control("")});selectedFile=p(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let n=new FileReader;this.isSecureFile.set(t.type!=="application/json"),n.onload=this.#n.bind(this),n.readAsArrayBuffer(t)}}#n(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,n="";for(let s=0;s<t;s++)n+=String.fromCharCode(o[s]);return btoa(n)}submit(){this.isRestoring.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(T(e=>this.#e.postApiV1Backups({requestBody:e.data,temporary:!0})),g(()=>this.isRestoring.set(!1))).subscribe({next:e=>{console.log("/restore-draft",e.ID),this.#o.navigate(["/restore-draft",e.ID])},error:e=>{this.#t.error(e.message)}})}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=R({type:l,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let e;e=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=N(e);let o;o=$localize`Select a configuration file`;let t;return t=$localize`Passphrase`,[e,o,t,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(i(0,"header")(1,"h3"),C(2,0),i(3,"div",3)(4,"button",4),_(5,"spk-icon"),r(),i(6,"button",5),m("click",function(){return t.submit()}),_(7,"spk-icon"),r()(),O(),r()(),i(8,"form",6)(9,"spk-form-field",7),m("fileDropped",function(s){return t.onFileDropped(s)}),i(10,"label",8),f(11,1),r(),i(12,"input",9),m("change",function(s){return t.onFileDropped(s)}),r(),i(13,"spk-icon",10),M(14,"upload"),r()(),S(15,z,4,0,"spk-form-field"),r()),o&2&&(F(4),c("routerLink",k(6,j)),F(2),D("loader",t.isRestoring()),c("disabled",t.isRestoring()),F(2),c("formGroup",t.importForm),F(7),E(t.isSecureFile()?15:-1))},dependencies:[L,G,b,$,h,P,B,y,U,X,w,x],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{d as default};
1
+ import{b,d as $,e as h,h as G,l as P,o as B,p as v,r as L}from"./chunk-PHVHG2MW.js";import{b as A}from"./chunk-GOCS43XM.js";import{c as I,d as y}from"./chunk-ZTEWFJB7.js";import"./chunk-R2RIU25S.js";import{a as w,c as V,g as x,l as X,y as U}from"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import{Cb as i,Db as r,Eb as _,G as g,O as T,Ob as C,Pb as O,Qb as f,Ra as F,Tb as N,Ub as m,Ya as p,_ as u,eb as R,hc as M,kb as S,tb as c,tc as k,vb as D,yb as E}from"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";var j=()=>["/"];function z(l,e){l&1&&(i(0,"spk-form-field")(1,"label",11),f(2,2),r(),_(3,"input",12),r())}var a=new v,d=class l{#t=u(V);#e=u(A);#o=u(I);isRestoring=p(!1);isSecureFile=p(!1);importForm=a.group({config:a.control(""),cmdline:a.control(!1),importMetadata:a.control(!1),direct:a.control(!1),passphrase:a.control("")});selectedFile=p(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let n=new FileReader;this.isSecureFile.set(t.type!=="application/json"),n.onload=this.#n.bind(this),n.readAsArrayBuffer(t)}}#n(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,n="";for(let s=0;s<t;s++)n+=String.fromCharCode(o[s]);return btoa(n)}submit(){this.isRestoring.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(T(e=>this.#e.postApiV1Backups({requestBody:e.data,temporary:!0})),g(()=>this.isRestoring.set(!1))).subscribe({next:e=>{console.log("/restore-draft",e.ID),this.#o.navigate(["/restore-draft",e.ID])},error:e=>{this.#t.error(e.message)}})}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=R({type:l,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let e;e=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=N(e);let o;o=$localize`Select a configuration file`;let t;return t=$localize`Passphrase`,[e,o,t,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(i(0,"header")(1,"h3"),C(2,0),i(3,"div",3)(4,"button",4),_(5,"spk-icon"),r(),i(6,"button",5),m("click",function(){return t.submit()}),_(7,"spk-icon"),r()(),O(),r()(),i(8,"form",6)(9,"spk-form-field",7),m("fileDropped",function(s){return t.onFileDropped(s)}),i(10,"label",8),f(11,1),r(),i(12,"input",9),m("change",function(s){return t.onFileDropped(s)}),r(),i(13,"spk-icon",10),M(14,"upload"),r()(),S(15,z,4,0,"spk-form-field"),r()),o&2&&(F(4),c("routerLink",k(6,j)),F(2),D("loader",t.isRestoring()),c("disabled",t.isRestoring()),F(2),c("formGroup",t.importForm),F(7),E(t.isSecureFile()?15:-1))},dependencies:[L,G,b,$,h,P,B,y,U,X,w,x],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{d as default};
@@ -1 +1 @@
1
- import{b as $}from"./chunk-N3GBABZB.js";import{a as R}from"./chunk-VRLSXAI3.js";import"./chunk-IZGVBNDM.js";import"./chunk-BSZZLSIX.js";import"./chunk-OIRMDOOF.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import"./chunk-T5I4AY74.js";import{b as k}from"./chunk-O2MZ5CAQ.js";import{a as A,d as N}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as B,g as O}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Kc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Ya as l,_ as m,eb as C,hc as E,jc as L,kb as p,yb as s,zb as f}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
1
+ import{b as $}from"./chunk-W2IUXLYE.js";import{a as R}from"./chunk-JYGPM2H4.js";import"./chunk-36BW3HQ7.js";import"./chunk-AUVXHFRE.js";import"./chunk-LLZCURV6.js";import"./chunk-DGDWETHE.js";import"./chunk-PHVHG2MW.js";import"./chunk-RACRCDGZ.js";import{b as k}from"./chunk-GOCS43XM.js";import{a as A,d as N}from"./chunk-ZTEWFJB7.js";import"./chunk-R2RIU25S.js";import{a as B,g as O}from"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import"./chunk-ZLU2WKOF.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Ya as l,_ as m,eb as C,hc as E,jc as L,kb as p,yb as s,zb as f}from"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
@@ -0,0 +1 @@
1
+ import{a as ce}from"./chunk-MSZ6S4MV.js";import{q as de}from"./chunk-PHVHG2MW.js";import{b as ae}from"./chunk-GOCS43XM.js";import{a as pe,f as ue,l as he,m as _e,o as fe,w as ge}from"./chunk-D64J3G73.js";import{ia as le}from"./chunk-XVYQD36R.js";import{Ab as J,Ac as se,Bb as Y,Cb as p,Db as h,Eb as Z,G as B,Hb as G,Ib as k,Mc as W,Oc as w,Qb as R,Ra as g,Rb as ee,Sb as te,Ub as y,Vb as u,Wb as ne,Xb as I,Ya as x,Za as H,_ as D,eb as K,ec as q,fa as F,fc as ie,ga as N,gc as X,hc as M,jc as re,kb as v,ra as V,sa as C,tb as j,ub as U,uc as L,vb as E,vc as oe,w as z,yb as b}from"./chunk-ZYQXWAMY.js";import{a as A,b as $}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=(o,t)=>t.id,Se=o=>({children:o,level:0}),me=o=>({$implicit:o}),Oe=(o,t)=>({children:o,level:t});function Fe(o,t){if(o&1){let e=k();p(0,"spk-button-group")(1,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("browse"))}),R(2,4),h(),p(3,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("path"))}),R(4,5),h()()}if(o&2){let e=u();g(),E("active",e.pathDiscoveryMethod()==="browse"),g(2),E("active",e.pathDiscoveryMethod()==="path")}}function Ne(o,t){o&1&&Z(0,"spk-progress-bar",9)}function ye(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-down"),h(),p(2,"spk-icon",16),M(3,"folder-open"),h())}function we(o,t){o&1&&(p(0,"spk-icon"),M(1,"file"),h())}function ke(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-right"),h(),p(2,"spk-icon",16),M(3,"folder"),h())}function Re(o,t){if(o&1&&v(0,ye,4,0)(1,we,2,0,"spk-icon")(2,ke,4,0),o&2){let e=u(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(o,t){o&1&&(p(0,"spk-icon",16),M(1,"desktop-tower"),h())}function Le(o,t){o&1&&G(0)}function We(o,t){if(o&1&&v(0,Le,1,0,"ng-container",10),o&2){let e=u(2).$implicit,n=u().$implicit;u();let s=X(7);j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(5,me,oe(2,Oe,e.children,n.level+1)))}}function Ae(o,t){if(o&1){let e=k();p(0,"div",14,3),y("click",function(){F(e);let s=u().$implicit,i=u(2);return N(i.toggleNode(s.id,s))}),p(2,"div",15),v(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),h(),p(5,"div",17),y("click",function(s){F(e);let i=u().$implicit,r=u(2);return N(r.toggleSelectedNode(s,i))}),M(6),h()(),v(7,We,1,7,"ng-container")}if(o&2){let e=u().$implicit,n=u(2);E("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),g(2),E("file",e.cls==="file"),g(),b(e.id!=="/"?3:4),g(3),re(" ",e.text," "),g(),b(e.children.length>0?7:-1)}}function $e(o,t){if(o&1&&v(0,Ae,8,15),o&2){let e=t.$implicit,n=u(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Be(o,t){if(o&1&&(p(0,"spk-list"),J(1,$e,1,1,null,null,Me),h()),o&2){let e=t.$implicit;U("padding-left",e.level*.25,"rem"),g(),Y(e.children)}}function De(o,t){o&1&&G(0)}function Ve(o,t){if(o&1){let e=k();p(0,"spk-toggle",19),y("click",function(){F(e);let s=u();return N(s._showHiddenNodes.set(!s._showHiddenNodes()))}),R(1,6),h()}if(o&2){let e=u();E("active",e._showHiddenNodes()),g(),ee(e.showFiles()?"files":"folders"),te(1)}}var Ce=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Ce||{}),Q=class o{#t=D(ae);#o=D(ce);multiSelect=C(!1);disabled=C(!1);showFiles=C(!1);selectFiles=C(!1);accepts=C(null);startingPath=C(null);rootPath=C(void 0);backupSettings=C(null);pathRefreshTrigger=C(!1);showHiddenNodes=C(!1);hideShortcuts=C(!1);includes=V();excludes=V();_showHiddenNodes=x(!1);treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=x("browse");isLoading=x(!1);currentPath=x("/");#e=x(null);treeSearchQuery=x("");treeNodes=x([]);filterGroups=this.#o.filterGroups();isByBackupSettings=W(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Ce;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let _=n[a].slice(1);if(_.startsWith("{")&&_.endsWith("}")){let f=_.slice(1,-1),d=this.filterGroups?.FilterGroups[f];if(d&&d.length){let T=d.map(P=>`-${P}`);n.splice(a,1,...T)}}}let s=this.searchableTreeNodes(),i=new Map,r=this.rootPath(),m=this.accepts(),l=r?{id:r,resolvedpath:r,text:r,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};m&&(l.accepted=!0),i.set("/",l);for(let a of s){let _=a.id.replace(r??"","").split("/").filter(Boolean),f="",d=l;for(let T of _){if(f+="/"+T,!i.has(f)){let P=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),S={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:P,parentPath:f,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":f,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};m&&(S.accepted=this.matchAccepts(m,S)),i.set(f,S),d.children.push(S)}d=i.get(f)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let i=0,r=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),m=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(r.length===0)return i;for(let l=0;l<r.length;l++){let a=r[l];if(e?.startsWith(a)){i=1;break}}if(m.length===0)return i;for(let l=0;l<m.length;l++){let a=m[l],c=a.slice(1),_=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){i=_==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){i=_==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),T=this.translateCSharpRegex(d);if(new RegExp(`${T}`).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,i,r)=>`(${r})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=w(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=w(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(i=>s.endsWith(i)):!1}currentPathEffect=w(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=w(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#p(t)):this.#r(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(r=>r!==""&&r!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):s.some(r=>r.startsWith(i))?this.currentPath.set(s.filter(r=>r!==i).join("\0")):this.currentPath.set([...s,i].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#r(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(r=>r.startsWith("-")).map(r=>r.slice(1,-1)),n=t.split("\0").filter(r=>!r.startsWith("-")).filter(Boolean),s=n.map(r=>r.split("/").filter(Boolean)),i=[this.rootPath()??"/"];s.forEach(r=>{r.forEach((m,l)=>{let a=r.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;i.includes(c)||i.push(c)})}),this.isLoading.set(!0),z([...i.map(r=>this.#i(r))]).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:r=>{this.treeNodes.update(m=>{let l=r.flatMap(c=>c.map(_=>{let f=_.id,d=f&&f.split("/").filter(Boolean).slice(0,-1).join("/"),P="/"+(f&&f.split("/").filter(Boolean).join("/")),S=n.findIndex(O=>this.multiSelect()?P.startsWith(O):P===O)>-1,Ee=n.findIndex(O=>O===f)>-1,Pe=e.findIndex(O=>O===P)>-1;return $(A({},_),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:S&&!Pe||Ee})})),a=[...new Map([...m,...l].map(c=>[c.resolvedpath??c.id,c])).values()];return this.#l(),a})}})}#r(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(r=>r!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let r=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return $(A({},l),{cls:a,parentPath:e})}),m=[...new Map([...i,...r].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?m.filter(l=>!l.id.startsWith("%")):m})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=K({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(q(n.treeContainerRef,ve,5),q(n.formRef,Te,5)),e&2&&ie(2)},hostVars:2,hostBindings:function(e,n){e&2&&E("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(ne(xe),v(0,Fe,5,4,"spk-button-group"),p(1,"div",7),I(2,0,["ngProjectAs","label",5,["label"]]),p(3,"div",8,0),v(5,Ne,1,0,"spk-progress-bar",9)(6,Be,3,2,"ng-template",null,1,se)(8,De,1,0,"ng-container",10),h(),v(9,Ve,2,3,"spk-toggle",11),h(),p(10,"div",12,2)(12,"spk-form-field"),I(13,1,["ngProjectAs","label",5,["label"]]),I(14,2,["ngProjectAs","input",5,["input"]]),h()()),e&2){let s=X(7);b(n.multiSelect()?-1:0),g(),E("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),E("visualize-accepted",n.accepts()),g(2),b(n.isLoading()?5:-1),g(3),j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(13,me,L(11,Se,n.treeStructure()))),g(),b(n.accepts()?-1:9),g(),E("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ue,ge,pe,he,_e,fe,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-level-20)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{Q as a};
@@ -1,2 +1,2 @@
1
- import{Ga as ue,X as he,e as de}from"./chunk-BUARZS4A.js";import{$ as se,A as ee,G as ne,O as re,R as te,U as O,X as N,Z as w,_ as m,ba as oe,ca as ie,d as S,k as Q,l as X,ma as ae,oa as ce,q as D,x as H,xa as le}from"./chunk-VGQ6X3AL.js";import{a as Z}from"./chunk-C6Q5SG76.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as ue,X as he,e as de}from"./chunk-XVYQD36R.js";import{$ as se,A as ee,G as ne,O as re,R as te,U as O,X as N,Z as w,_ as m,ba as oe,ca as ie,d as S,k as Q,l as X,ma as ae,oa as ce,q as D,x as H,xa as le}from"./chunk-ZYQXWAMY.js";import{a as Z}from"./chunk-C6Q5SG76.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var C=class{encodeKey(e){return fe(e)}encodeValue(e){return fe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Re(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var Pe=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fe(r){return encodeURIComponent(r).replace(Pe,(e,n)=>Ne[n]??e)}function _(r){return`${r}`}var v=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new C,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Re(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(_):[_(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(_(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(_(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ae(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function pe(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ye(r){return typeof Blob<"u"&&r instanceof Blob}function me(r){return typeof FormData<"u"&&r instanceof FormData}function Oe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var x=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(Ae(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new V,!this.params)this.params=new v,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||pe(this.body)||ye(this.body)||me(this.body)||Oe(this.body)?this.body:this.body instanceof v?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||me(this.body)?null:ye(this.body)?this.body.type||null:pe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((R,h)=>R.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((R,h)=>R.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},B=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},U=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},E=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ee=200,Ie=204;function J(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Me=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof x)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof v?f=s.params:f=new v({fromObject:s.params})),i=new x(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=X(i).pipe(ee(a=>this.handler.handle(a)));if(n instanceof x||s.observe==="events")return o;let d=o.pipe(H(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(D(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return d.pipe(D(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return d.pipe(D(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return d.pipe(D(a=>a.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new v().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,J(s,t))}post(n,t,s={}){return this.request("POST",n,J(s,t))}put(n,t,s={}){return this.request("PUT",n,J(s,t))}static \u0275fac=function(t){return new(t||r)(w(F))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ke=/^\)\]\}',?\n/,De="X-Request-URL";function ge(r){if(r.url)return r.url;let e=De.toLocaleLowerCase();return r.headers.get(e)}var $=(()=>{class r{fetchImpl=m(G,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ce);handle(n){return new S(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(W,i=>t.error(new E({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Z({signal:t},i)));xe(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new E({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ge(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new B({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,A,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:P,value:k}=await c.read();if(P)break;if(I.push(k),l+=k.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let Y=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:A});u?u.run(Y):Y()}}});let M=this.concatChunks(I,l);try{let P=o.headers.get("Content-Type")??"";y=this.parseBody(n,M,P)}catch(P){s.error(new E({error:P,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ge(o)??n.urlWithParams}));return}}p===0&&(p=y?Ee:0),p>=200&&p<300?(s.next(new U({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new E({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(ke,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),G=class{};function W(){}function xe(r){r.then(W,W)}function Fe(r,e){return e(r)}function Le(r,e,n){return(t,s)=>ie(n,()=>e(t,i=>r(i,s)))}var K=new N(""),je=new N(""),Ue=new N("",{providedIn:"root",factory:()=>!0});var Te=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=m(ae);contributeToStability=m(Ue);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(K),...this.injector.get(je,[])]));this.chain=t.reduceRight((s,i)=>Le(s,i,this.injector),Fe)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ne(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(w(L),w(oe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var _e=/^\)\]\}',?\n/;function Be(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var we=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new te(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Q(t.\u0275loadImpl()):X(null)).pipe(re(()=>new S(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=Be(o)||n.url;return a=new B({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:A}=f(),u=null;l!==Ie&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ee:0);let M=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let P=u;u=u.replace(_e,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=P,M&&(M=!1,u={error:k,text:u})}}M?(i.next(new U({body:u,headers:c,status:l,statusText:T,url:A||void 0})),i.complete()):i.error(new E({error:u,headers:c,status:l,statusText:T,url:A||void 0}))},y=c=>{let{url:l}=f(),T=new E({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},R=!1,h=c=>{R||(i.next(f()),R=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(w(ue))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ve=new N(""),ze="XSRF-TOKEN",Se=new N("",{providedIn:"root",factory:()=>ze}),Xe="X-XSRF-TOKEN",Je=new N("",{providedIn:"root",factory:()=>Xe}),z=class{},Ce=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=he(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(w(de),w(le),w(Se))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Ve(r,e){let n=r.url.toLowerCase();if(!m(ve)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(z).getToken(),s=m(Je);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var q=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(q||{});function be(r,e){return{\u0275kind:r,\u0275providers:e}}function pn(...r){let e=[Me,we,Te,{provide:F,useExisting:Te},{provide:L,useFactory:()=>m($,{optional:!0})??m(we)},{provide:K,useValue:Ve,multi:!0},{provide:ve,useValue:!0},{provide:z,useClass:Ce}];for(let n of r)e.push(...n.\u0275providers);return se(e)}function yn(r){return be(q.Interceptors,r.map(e=>({provide:K,useValue:e,multi:!0})))}function mn(){return be(q.Fetch,[$,{provide:L,useExisting:$}])}export{g as a,U as b,Me as c,pn as d,yn as e,mn as f};
@@ -1 +1 @@
1
- import{a as v,c as d}from"./chunk-NJSJNACP.js";import{O as R,U as u,Z as c,l as I,m as B,q as V,w as T,z as f}from"./chunk-VGQ6X3AL.js";import{a as b,b as D}from"./chunk-C6Q5SG76.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{G as a,x as b,C as c,q as d};
1
+ import{a as v,c as d}from"./chunk-GKTIIZ72.js";import{O as R,U as u,Z as c,l as I,m as B,q as V,w as T,z as f}from"./chunk-ZYQXWAMY.js";import{a as b,b as D}from"./chunk-C6Q5SG76.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{G as a,x as b,C as c,q as d};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-ZTSITRHY.js";import{$a as d,Cb as o,Db as n,Ra as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,sa as r,vb as f,yb as C}from"./chunk-VGQ6X3AL.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
1
+ import{a as u}from"./chunk-D64J3G73.js";import{$a as d,Cb as o,Db as n,Ra as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,sa as r,vb as f,yb as C}from"./chunk-ZYQXWAMY.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
@@ -1,4 +1,4 @@
1
- import{b as be}from"./chunk-N3GBABZB.js";import{b as de}from"./chunk-O2MZ5CAQ.js";import{c as ke}from"./chunk-MSK2MH2K.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as he,Db as pe,Eb as ue,Na as le,Qb as ge,Ra as oe,X as ie,_ as M,eb as ae,q as re,qc as fe,tb as ce}from"./chunk-VGQ6X3AL.js";import{a as m,b as z}from"./chunk-C6Q5SG76.js";function F(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=F();function $e(a){R=a}var E={exec:()=>null};function f(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(x.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Be=/^(?:[ \t]*(?:\n|$))+/,ve=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Me=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Se=/(?:[*+-]|\d{1,9}[.)])/,Re=f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Q=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ne=/^[^\n]+/,U=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Oe=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),De=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Se).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ze=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ze=f(Q).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ge=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ze).getRegex(),W={blockquote:Ge,code:ve,def:Oe,fences:Me,heading:qe,hr:v,html:Ze,lheading:Re,list:De,newline:Be,paragraph:ze,table:E,text:Ne},xe=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),He=z(m({},W),{table:xe,paragraph:f(Q).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()}),je=z(m({},W),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(Q).replace("hr",v).replace("heading",` *#{1,6} *[^
1
+ import{b as be}from"./chunk-W2IUXLYE.js";import{b as de}from"./chunk-GOCS43XM.js";import{c as ke}from"./chunk-R2RIU25S.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import{Cb as he,Db as pe,Eb as ue,Na as le,Qb as ge,Ra as oe,X as ie,_ as M,eb as ae,q as re,sc as fe,tb as ce}from"./chunk-ZYQXWAMY.js";import{a as m,b as z}from"./chunk-C6Q5SG76.js";function F(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=F();function $e(a){R=a}var E={exec:()=>null};function f(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(x.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Be=/^(?:[ \t]*(?:\n|$))+/,ve=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Me=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Se=/(?:[*+-]|\d{1,9}[.)])/,Re=f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Q=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ne=/^[^\n]+/,U=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Oe=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),De=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Se).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ze=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ze=f(Q).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ge=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ze).getRegex(),W={blockquote:Ge,code:ve,def:Oe,fences:Me,heading:qe,hr:v,html:Ze,lheading:Re,list:De,newline:Be,paragraph:ze,table:E,text:Ne},xe=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),He=z(m({},W),{table:xe,paragraph:f(Q).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()}),je=z(m({},W),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(Q).replace("hr",v).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Re).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),_e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ae=/^( {2,}|\\)\n(?!\s*$)/,Qe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,D=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,Ce=/[^\s\p{P}\p{S}]/u,Ue=f(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,V).getRegex(),Xe=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,We=f(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,D).getRegex(),Ve=f("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,V).replace(/punct/g,D).getRegex(),Je=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,V).replace(/punct/g,D).getRegex(),Ke=f(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),Ye=f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),et=f(X).replace("(?:-->|$)","-->").getRegex(),tt=f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",et).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),N=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,nt=f(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",N).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Pe=f(/^!?\[(label)\]\[(ref)\]/).replace("label",N).replace("ref",U).getRegex(),Le=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),st=f("reflink|nolink(?!\\()","g").replace("reflink",Pe).replace("nolink",Le).getRegex(),J={_backpedal:E,anyPunctuation:Ke,autolink:Ye,blockSkip:Xe,br:Ae,code:Fe,del:E,emStrongLDelim:We,emStrongRDelimAst:Ve,emStrongRDelimUnd:Je,escape:_e,link:nt,nolink:Le,punctuation:Ue,reflink:Pe,reflinkSearch:st,tag:tt,text:Qe,url:E},rt=z(m({},J),{link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",N).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N).getRegex()}),H=z(m({},J),{escape:f(_e).replace("])","~|])").getRegex(),url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),it=z(m({},H),{br:f(Ae).replace("{2,}","*").getRegex(),text:f(H.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),q={normal:W,gfm:He,pedantic:je},L={normal:J,gfm:H,breaks:it,pedantic:rt},lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},me=a=>lt[a];function $(a,e){if(e){if(x.escapeTest.test(a))return a.replace(x.escapeReplace,me)}else if(x.escapeTestNoEncode.test(a))return a.replace(x.escapeReplaceNoEncode,me);return a}function we(a){try{a=encodeURI(a).replace(x.percentDecode,"%")}catch{return null}return a}function ye(a,e){let t=a.replace(x.findPipe,(i,r,l)=>{let o=!1,c=r;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),n=t.split(x.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(x.slashPipe,"|");return n}function I(a,e,t){let n=a.length;if(n===0)return"";let s=0;for(;s<n;){let i=a.charAt(n-s-1);if(i===e&&!t)s++;else if(i!==e&&t)s++;else break}return a.slice(0,n-s)}function ot(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function Te(a,e,t,n,s){let i=e.href,r=e.title||null,l=a[1].replace(s.other.outputLinkReplace,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:i,title:r,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:i,title:r,text:l}}function at(a,e,t){let n=a.match(t.other.indentCodeCompensation);if(n===null)return e;let s=n[1];return e.split(`
3
3
  `).map(i=>{let r=i.match(t.other.beginningSpace);if(r===null)return i;let[l]=r;return l.length>=s.length?i.slice(s.length):i}).join(`
4
4
  `)}var A=class{options;rules;lexer;constructor(e){this.options=e||R}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,`
@@ -1 +1 @@
1
- import{a}from"./chunk-PIVMNQL6.js";import{Mc as r,U as s,Ya as e,_ as i}from"./chunk-VGQ6X3AL.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
1
+ import{a}from"./chunk-EQGWBFEW.js";import{Oc as r,U as s,Ya as e,_ as i}from"./chunk-ZYQXWAMY.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
@@ -1 +1 @@
1
- import{a as ie}from"./chunk-IZGVBNDM.js";import{a as ne}from"./chunk-OIRMDOOF.js";import{b as oe,d as ae,g as se,i as le,q as b}from"./chunk-OROSSCXB.js";import{b as f}from"./chunk-O2MZ5CAQ.js";import{a as re,b as _e,e as pe,g as ue,i as L,l as ce,o as de,p as Se,q as Te,r as me}from"./chunk-ZTSITRHY.js";import{pa as te}from"./chunk-BUARZS4A.js";import{a as ge}from"./chunk-O53NVQ2A.js";import{Ab as P,Bb as N,Cb as l,Db as s,Eb as h,G as E,Ib as j,Kc as w,Ob as F,Pb as y,Qb as p,Ra as r,Tb as q,Ub as u,Vb as O,Ya as _,_ as c,eb as C,fa as K,ga as W,hb as V,hc as m,ic as $,jc as Z,kb as G,kc as J,lc as Y,mc as M,nc as D,oc as R,ra as k,tb as T,vb as d,vc as x,wc as Q,xc as ee,yb as U,zb as A}from"./chunk-VGQ6X3AL.js";var v=class o{#e=c(ge);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||o)};static \u0275pipe=V({name:"appRelativeTime",type:o,pure:!0})};function Pe(o,n){if(o&1){let t=j();l(0,"spk-radio",10),u("click",function(){let i=K(t).$implicit,a=O();return W(a.pauseOption.set(i.value))}),m(1),s()}if(o&2){let t=n.$implicit,e=O();d("active",e.pauseOption()===t.value),r(),Z(" ",t.label," ")}}var Ne=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],B=class o{#e=c(f);pauseOptions=_(Ne);closed=k();isSubmitting=_(!1);pauseTransfers=_(!1);pauseOption=_(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let a;return a=$localize` Update settings `,[n,t,e,i,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",5)(1,"h3"),p(2,0),s()(),l(3,"div",6)(4,"div",7),P(5,Pe,2,3,"spk-radio",8,A),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),s(),l(10,"spk-alert",11),p(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),s(),l(15,"button",14),u("click",function(){return e.submit()}),p(16,4),s()()),t&2&&(r(5),N(e.pauseOptions()),r(3),d("active",e.pauseTransfers()),r(7),d("loader",e.isSubmitting()))},dependencies:[b,Se,L,_e],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};function Me(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),r(),$(t)}}function De(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),r(),$(t)}}var Re=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],X={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ce=Object.entries(X).reduce((o,[n,t])=>(o[t]=n,o),{}),I=class o{#e=c(f);closed=k();isSubmitting=_(!1);sizeOptions=_(Re);maxUploadActive=_(!1);maxDownloadActive=_(!1);maxUpload=_(0);maxDownload=_(0);maxUploadUnit=_("MByte/s");maxDownloadUnit=_("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",a=e[1]??"",S=t[2]??"MB",g=e[2]??"MB",fe=i===""?10:parseInt(i),Ae=a===""?10:parseInt(a);console.log(i),this.maxUploadUnit.set(Ce[S]+"/s"),this.maxDownloadUnit.set(Ce[g]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(fe),this.maxDownload.set(Ae)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${X[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${X[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let S;return S=$localize` Update settings `,[n,t,e,i,a,S,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",6)(1,"h3"),p(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),s(),l(8,"spk-form-field")(9,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxUpload,a)||(e.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),R("ngModelChange",function(a){return D(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),s(),P(12,Me,2,2,"spk-option",14,A),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(16,2),s(),l(17,"spk-form-field")(18,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxDownload,a)||(e.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),R("ngModelChange",function(a){return D(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),s(),P(21,De,2,2,"spk-option",14,A),s()(),l(23,"p"),p(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return e.closed.emit(!1)}),p(27,4),s(),l(28,"button",17),u("click",function(){return e.submit()}),p(29,5),s()()),t&2&&(r(6),d("active",e.maxUploadActive()),r(3),M("ngModel",e.maxUpload),T("disabled",!e.maxUploadActive()),r(),T("hideClearButton",!0),r(),M("ngModel",e.maxUploadUnit),r(),N(e.sizeOptions()),r(3),d("active",e.maxDownloadActive()),r(3),M("ngModel",e.maxDownload),T("disabled",!e.maxDownloadActive()),r(),T("hideClearButton",!0),r(),M("ngModel",e.maxDownloadUnit),r(),N(e.sizeOptions()),r(7),d("loader",e.isSubmitting()))},dependencies:[b,oe,le,ae,se,me,Te,ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ie(o,n){if(o&1&&(l(0,"div"),m(1),s(),h(2,"spk-progress-bar",7)),o&2){let t=O();r(),J("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function ke(o,n){if(o&1&&(l(0,"div",4),m(1),x(2,"appRelativeTime"),x(3,"date"),s()),o&2){let t,e=O();r(),Y(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Q(2,3,e.nextBackup().time)," at ",ee(3,5,e.nextBackup().time,"shortTime")," ")}}function he(o,n){o&1&&(l(0,"div",4),p(1,1),s())}function Fe(o,n){o&1&&(F(0,0,1),h(1,"spk-icon"),y())}function ye(o,n){o&1&&(F(0,0,2),h(1,"spk-icon"),y())}var Oe=new Date,H=class o{#e=c(f);#t=c(ie);#n=c(pe);#i=c(ne);minsAgo=Oe.setMinutes(Oe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=w(()=>this.serverState()?.ProgramState==="Running");isResuming=_(!1);nextBackup=w(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(I,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(B,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(E(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=q(n);let t;return t=$localize`Loading...`,[n,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(l(0,"div",2)(1,"div",3),G(2,Ie,3,3)(3,ke,4,8,"div",4)(4,he,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return e.pauseResume()}),F(7,0),G(8,Fe,2,0)(9,ye,2,0),y(),s(),l(10,"button",6),u("click",function(){return e.openThrottleSettingsDialog()}),l(11,"spk-icon"),m(12,"speedometer"),s()()()()),t&2){let i;r(2),U((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:4),r(4),d("loader",e.isResuming()),r(2),U(e.isRunning()?8:9)}},dependencies:[de,v,te,re,ue],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{H as a};
1
+ import{a as ie}from"./chunk-36BW3HQ7.js";import{a as ne}from"./chunk-LLZCURV6.js";import{b as oe,d as ae,g as se,i as le,q as b}from"./chunk-PHVHG2MW.js";import{b as f}from"./chunk-GOCS43XM.js";import{a as re,b as _e,e as pe,g as ue,i as L,l as ce,o as de,p as Se,q as Te,r as me}from"./chunk-D64J3G73.js";import{pa as te}from"./chunk-XVYQD36R.js";import{a as ge}from"./chunk-ZLU2WKOF.js";import{Ab as P,Bb as N,Cb as l,Db as s,Eb as h,G as E,Ib as j,Mc as w,Ob as F,Pb as y,Qb as p,Ra as r,Tb as q,Ub as u,Vb as O,Ya as _,_ as c,eb as C,fa as K,ga as W,hb as V,hc as m,ic as $,jc as Z,kb as G,kc as J,lc as Y,mc as M,nc as D,oc as R,ra as k,tb as T,vb as d,xc as x,yb as U,yc as Q,zb as A,zc as ee}from"./chunk-ZYQXWAMY.js";var v=class o{#e=c(ge);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||o)};static \u0275pipe=V({name:"appRelativeTime",type:o,pure:!0})};function Pe(o,n){if(o&1){let t=j();l(0,"spk-radio",10),u("click",function(){let i=K(t).$implicit,a=O();return W(a.pauseOption.set(i.value))}),m(1),s()}if(o&2){let t=n.$implicit,e=O();d("active",e.pauseOption()===t.value),r(),Z(" ",t.label," ")}}var Ne=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],B=class o{#e=c(f);pauseOptions=_(Ne);closed=k();isSubmitting=_(!1);pauseTransfers=_(!1);pauseOption=_(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let a;return a=$localize` Update settings `,[n,t,e,i,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",5)(1,"h3"),p(2,0),s()(),l(3,"div",6)(4,"div",7),P(5,Pe,2,3,"spk-radio",8,A),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),s(),l(10,"spk-alert",11),p(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),s(),l(15,"button",14),u("click",function(){return e.submit()}),p(16,4),s()()),t&2&&(r(5),N(e.pauseOptions()),r(3),d("active",e.pauseTransfers()),r(7),d("loader",e.isSubmitting()))},dependencies:[b,Se,L,_e],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};function Me(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),r(),$(t)}}function De(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),r(),$(t)}}var Re=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],X={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ce=Object.entries(X).reduce((o,[n,t])=>(o[t]=n,o),{}),I=class o{#e=c(f);closed=k();isSubmitting=_(!1);sizeOptions=_(Re);maxUploadActive=_(!1);maxDownloadActive=_(!1);maxUpload=_(0);maxDownload=_(0);maxUploadUnit=_("MByte/s");maxDownloadUnit=_("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",a=e[1]??"",S=t[2]??"MB",g=e[2]??"MB",fe=i===""?10:parseInt(i),Ae=a===""?10:parseInt(a);console.log(i),this.maxUploadUnit.set(Ce[S]+"/s"),this.maxDownloadUnit.set(Ce[g]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(fe),this.maxDownload.set(Ae)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${X[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${X[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let S;return S=$localize` Update settings `,[n,t,e,i,a,S,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",6)(1,"h3"),p(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),s(),l(8,"spk-form-field")(9,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxUpload,a)||(e.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),R("ngModelChange",function(a){return D(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),s(),P(12,Me,2,2,"spk-option",14,A),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(16,2),s(),l(17,"spk-form-field")(18,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxDownload,a)||(e.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),R("ngModelChange",function(a){return D(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),s(),P(21,De,2,2,"spk-option",14,A),s()(),l(23,"p"),p(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return e.closed.emit(!1)}),p(27,4),s(),l(28,"button",17),u("click",function(){return e.submit()}),p(29,5),s()()),t&2&&(r(6),d("active",e.maxUploadActive()),r(3),M("ngModel",e.maxUpload),T("disabled",!e.maxUploadActive()),r(),T("hideClearButton",!0),r(),M("ngModel",e.maxUploadUnit),r(),N(e.sizeOptions()),r(3),d("active",e.maxDownloadActive()),r(3),M("ngModel",e.maxDownload),T("disabled",!e.maxDownloadActive()),r(),T("hideClearButton",!0),r(),M("ngModel",e.maxDownloadUnit),r(),N(e.sizeOptions()),r(7),d("loader",e.isSubmitting()))},dependencies:[b,oe,le,ae,se,me,Te,ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ie(o,n){if(o&1&&(l(0,"div"),m(1),s(),h(2,"spk-progress-bar",7)),o&2){let t=O();r(),J("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function ke(o,n){if(o&1&&(l(0,"div",4),m(1),x(2,"appRelativeTime"),x(3,"date"),s()),o&2){let t,e=O();r(),Y(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Q(2,3,e.nextBackup().time)," at ",ee(3,5,e.nextBackup().time,"shortTime")," ")}}function he(o,n){o&1&&(l(0,"div",4),p(1,1),s())}function Fe(o,n){o&1&&(F(0,0,1),h(1,"spk-icon"),y())}function ye(o,n){o&1&&(F(0,0,2),h(1,"spk-icon"),y())}var Oe=new Date,H=class o{#e=c(f);#t=c(ie);#n=c(pe);#i=c(ne);minsAgo=Oe.setMinutes(Oe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=w(()=>this.serverState()?.ProgramState==="Running");isResuming=_(!1);nextBackup=w(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(I,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(B,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(E(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=q(n);let t;return t=$localize`Loading...`,[n,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(l(0,"div",2)(1,"div",3),G(2,Ie,3,3)(3,ke,4,8,"div",4)(4,he,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return e.pauseResume()}),F(7,0),G(8,Fe,2,0)(9,ye,2,0),y(),s(),l(10,"button",6),u("click",function(){return e.openThrottleSettingsDialog()}),l(11,"spk-icon"),m(12,"speedometer"),s()()()()),t&2){let i;r(2),U((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:4),r(4),d("loader",e.isResuming()),r(2),U(e.isRunning()?8:9)}},dependencies:[de,v,te,re,ue],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{H as a};
@@ -0,0 +1 @@
1
+ import{c as a,d as b,e as c}from"./chunk-CRJYNI4C.js";import"./chunk-G6DEVOXB.js";import"./chunk-HUO7ZRYL.js";import"./chunk-DNHLTHLR.js";import"./chunk-W2IUXLYE.js";import"./chunk-MSZ6S4MV.js";import"./chunk-L6P5W22A.js";import"./chunk-PHVHG2MW.js";import"./chunk-GOCS43XM.js";import"./chunk-ZTEWFJB7.js";import"./chunk-R2RIU25S.js";import"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -1 +1 @@
1
- import{Cb as i,Db as o,Ib as u,Kc as b,Ra as n,Ub as x,Vb as l,eb as T,fa as f,ga as _,hc as r,ic as m,kb as C,ra as g,sa as D,yb as s}from"./chunk-VGQ6X3AL.js";import{a as p}from"./chunk-C6Q5SG76.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
1
+ import{Cb as i,Db as o,Ib as u,Mc as b,Ra as n,Ub as x,Vb as l,eb as T,fa as f,ga as _,hc as r,ic as m,kb as C,ra as g,sa as D,yb as s}from"./chunk-ZYQXWAMY.js";import{a as p}from"./chunk-C6Q5SG76.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
@@ -1,2 +1,2 @@
1
- import{b as B}from"./chunk-O2MZ5CAQ.js";import{a as D,u as U}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import{pa as R}from"./chunk-BUARZS4A.js";import{Ab as x,Bb as I,Cb as o,Db as a,Eb as u,G as S,Ib as v,Na as T,Qb as p,Ra as l,Ub as A,Vb as c,Ya as d,_ as O,eb as f,fa as M,ga as L,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ub as P,vb as h,vc as G,xc as w,yb as b,zb as N}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
1
+ import{b as B}from"./chunk-GOCS43XM.js";import{a as D,u as U}from"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import{pa as R}from"./chunk-XVYQD36R.js";import{Ab as x,Bb as I,Cb as o,Db as a,Eb as u,G as S,Ib as v,Na as T,Qb as p,Ra as l,Ub as A,Vb as c,Ya as d,_ as O,eb as f,fa as M,ga as L,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ub as P,vb as h,xc as G,yb as b,zb as N,zc as w}from"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
2
2
  `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
@@ -0,0 +1 @@
1
+ import{i as a,j as b}from"./chunk-CRJYNI4C.js";import"./chunk-G6DEVOXB.js";import"./chunk-HUO7ZRYL.js";import"./chunk-DNHLTHLR.js";import"./chunk-W2IUXLYE.js";import"./chunk-MSZ6S4MV.js";import"./chunk-L6P5W22A.js";import"./chunk-PHVHG2MW.js";import"./chunk-GOCS43XM.js";import"./chunk-ZTEWFJB7.js";import"./chunk-R2RIU25S.js";import"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
@@ -1 +1 @@
1
- import{a as I}from"./chunk-T5I4AY74.js";import{b as w}from"./chunk-O2MZ5CAQ.js";import{G as S,Kc as f,P as g,U as i,X as v,Ya as e,_ as r,g as a,l as u,z as m}from"./chunk-VGQ6X3AL.js";var b=class n{#o=e(null);#e=e(!1);#t=window.self!==window.top;relayIsEnabled=this.#e.asReadonly();config=this.#o.asReadonly();configLoaded=this.#t?new a:null;isLoading=e(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#s(),this.#t&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#n("connected"),window.addEventListener("message",t=>{if(t.data.startsWith("access:")){let o=t.data.replace("access:",""),s=JSON.parse(o);if(!s?.accessToken||!s?.clientId){this.#n("error:invalid-config"),this.#e.set(!1);return}if(typeof s.clientId!="string"){this.#n("error:invalid-config"),this.#e.set(!1);return}if(typeof s.accessToken!="string"){this.#n("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#o.set(s),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#n("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#n(t){window.parent.postMessage(t,"*")}#s(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(t){this.#o.set(t)}clearConfig(){this.#o.set(null)}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var y=new v("ENVIRONMENT");var l=class n{#o=r(w);#e=e("disconnected");#t=e(null);#n=e(-1);#s=e(0);#i=e(!1);#r=new a;connectionStatus=this.#e.asReadonly();serverState=this.#t.asReadonly();start(){this.#i.set(!0),this.#r=new a,this.#c()}stop(){this.#r.next(),this.#r.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#c(){this.#e.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#n(),longpoll:this.#n()>0,duration:"299s"}).pipe(g(this.#r),m(t=>(this.#l(t),u(null))),S(()=>{this.#h()})).subscribe(t=>{t&&this.#a(t)})}#a(t){this.#e.set("connected"),this.#t.set(t),this.#n.set(t.LastEventID||-1),this.#s.set(0)}#l(t){let o=this.#s()+1;this.#s.set(o),o>3&&this.#e.set("disconnected")}#h(){this.#i()&&this.#c()}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var h=class n{#o=r(I);#e=r(y);#t=null;#n=e("disconnected");#s=e(null);shouldConnect=e(!0);connectionStatus=this.#n.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 o=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(s=":8200");let C=window.location.hostname,N=`${o}//${C}${s}/notifications?token=${t}`;this.#n.set("connecting"),this.#t=new WebSocket(N),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#n.set("connected")},this.#t.onmessage=c=>{try{let d=JSON.parse(c.data);this.#s.set(d)}catch(d){console.error("Error parsing WebSocket message",d)}},this.#t.onclose=c=>{console.log("WebSocket connection closed",c),this.#n.set("disconnected"),this.shouldConnect()&&setTimeout(()=>this.#i(),5e3)},this.#t.onerror=c=>{console.error("WebSocket error",c),this.#n.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(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var k=class n{#o=r(h);#e=r(l);#t=e("websocket");connectionStatus=f(()=>this.#t()==="websocket"?this.#o.connectionStatus():this.#e.connectionStatus());serverState=f(()=>this.#t()==="websocket"?this.#o.serverState():this.#e.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#e.stop()):(this.#e.reconnectIfNeeded(),this.#o.stop()),this.#t.set(t)}getConnectionMethod(){return this.#t()}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};export{b as a,y as b,k as c};
1
+ import{a as I}from"./chunk-RACRCDGZ.js";import{b as w}from"./chunk-GOCS43XM.js";import{G as S,Mc as f,P as g,U as i,X as v,Ya as e,_ as r,g as a,l as u,z as m}from"./chunk-ZYQXWAMY.js";var b=class n{#o=e(null);#e=e(!1);#t=window.self!==window.top;relayIsEnabled=this.#e.asReadonly();config=this.#o.asReadonly();configLoaded=this.#t?new a:null;isLoading=e(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#s(),this.#t&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#n("connected"),window.addEventListener("message",t=>{if(t.data.startsWith("access:")){let o=t.data.replace("access:",""),s=JSON.parse(o);if(!s?.accessToken||!s?.clientId){this.#n("error:invalid-config"),this.#e.set(!1);return}if(typeof s.clientId!="string"){this.#n("error:invalid-config"),this.#e.set(!1);return}if(typeof s.accessToken!="string"){this.#n("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#o.set(s),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#n("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#n(t){window.parent.postMessage(t,"*")}#s(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(t){this.#o.set(t)}clearConfig(){this.#o.set(null)}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var y=new v("ENVIRONMENT");var l=class n{#o=r(w);#e=e("disconnected");#t=e(null);#n=e(-1);#s=e(0);#i=e(!1);#r=new a;connectionStatus=this.#e.asReadonly();serverState=this.#t.asReadonly();start(){this.#i.set(!0),this.#r=new a,this.#c()}stop(){this.#r.next(),this.#r.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#c(){this.#e.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#n(),longpoll:this.#n()>0,duration:"299s"}).pipe(g(this.#r),m(t=>(this.#l(t),u(null))),S(()=>{this.#h()})).subscribe(t=>{t&&this.#a(t)})}#a(t){this.#e.set("connected"),this.#t.set(t),this.#n.set(t.LastEventID||-1),this.#s.set(0)}#l(t){let o=this.#s()+1;this.#s.set(o),o>3&&this.#e.set("disconnected")}#h(){this.#i()&&this.#c()}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var h=class n{#o=r(I);#e=r(y);#t=null;#n=e("disconnected");#s=e(null);shouldConnect=e(!0);connectionStatus=this.#n.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 o=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(s=":8200");let C=window.location.hostname,N=`${o}//${C}${s}/notifications?token=${t}`;this.#n.set("connecting"),this.#t=new WebSocket(N),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#n.set("connected")},this.#t.onmessage=c=>{try{let d=JSON.parse(c.data);this.#s.set(d)}catch(d){console.error("Error parsing WebSocket message",d)}},this.#t.onclose=c=>{console.log("WebSocket connection closed",c),this.#n.set("disconnected"),this.shouldConnect()&&setTimeout(()=>this.#i(),5e3)},this.#t.onerror=c=>{console.error("WebSocket error",c),this.#n.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(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};var k=class n{#o=r(h);#e=r(l);#t=e("longpoll");connectionStatus=f(()=>this.#t()==="websocket"?this.#o.connectionStatus():this.#e.connectionStatus());serverState=f(()=>this.#t()==="websocket"?this.#o.serverState():this.#e.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#e.stop()):(this.#e.reconnectIfNeeded(),this.#o.stop()),this.#t.set(t)}getConnectionMethod(){return this.#t()}static \u0275fac=function(o){return new(o||n)};static \u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})};export{b as a,y as b,k as c};
@@ -1 +1 @@
1
- import{b as u}from"./chunk-O2MZ5CAQ.js";import{G as i,Kc as p,Q as l,U as n,Ya as s,_ as a}from"./chunk-VGQ6X3AL.js";var f=class r{#e=a(u);isLoaded=s(!1);systemInfo=s(null);filterGroups=s(null);backendModules=p(()=>this.systemInfo()?.BackendModules??[]);preload(t=!1){let e=this.#e.getApiV1Systeminfo().pipe(l(o=>{this.systemInfo.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}preloadFilterGroups(t=!1){let e=this.#e.getApiV1SysteminfoFiltergroups().pipe(l(o=>{this.filterGroups.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})};export{f as a};
1
+ import{b as u}from"./chunk-GOCS43XM.js";import{G as i,Mc as p,Q as l,U as n,Ya as s,_ as a}from"./chunk-ZYQXWAMY.js";var f=class r{#e=a(u);isLoaded=s(!1);systemInfo=s(null);filterGroups=s(null);backendModules=p(()=>this.systemInfo()?.BackendModules??[]);preload(t=!1){let e=this.#e.getApiV1Systeminfo().pipe(l(o=>{this.systemInfo.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}preloadFilterGroups(t=!1){let e=this.#e.getApiV1SysteminfoFiltergroups().pipe(l(o=>{this.filterGroups.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})};export{f as a};
@@ -0,0 +1 @@
1
+ import{k as a,l as b}from"./chunk-CRJYNI4C.js";import"./chunk-G6DEVOXB.js";import"./chunk-HUO7ZRYL.js";import"./chunk-DNHLTHLR.js";import"./chunk-W2IUXLYE.js";import"./chunk-MSZ6S4MV.js";import"./chunk-L6P5W22A.js";import"./chunk-PHVHG2MW.js";import"./chunk-GOCS43XM.js";import"./chunk-ZTEWFJB7.js";import"./chunk-R2RIU25S.js";import"./chunk-D64J3G73.js";import"./chunk-GKTIIZ72.js";import"./chunk-XVYQD36R.js";import"./chunk-ZYQXWAMY.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};