@duplicati/ngclient 0.0.89 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-6CW3SAXM.js → chunk-22L4HUH2.js} +1 -1
- package/{chunk-5OX72VKG.js → chunk-25A34CYL.js} +1 -1
- package/{chunk-CKQFBLHP.js → chunk-26LLZBVS.js} +1 -1
- package/{chunk-L2LZKY4R.js → chunk-2M6FJFB6.js} +1 -1
- package/{chunk-BRWHKZV2.js → chunk-2MAHQYCM.js} +1 -1
- package/{chunk-3BNXVXL5.js → chunk-2NG6SV5P.js} +1 -1
- package/{chunk-WJQN3BOF.js → chunk-3CWO2EV5.js} +1 -1
- package/{chunk-C2JCNHTZ.js → chunk-3NUWESLC.js} +1 -1
- package/chunk-4KZHTKCL.js +1 -0
- package/{chunk-2UJP6WUU.js → chunk-4P5T2IWL.js} +1 -1
- package/chunk-4PFQQN3O.js +1 -0
- package/{chunk-ZSSQBIRK.js → chunk-5ONOZUNN.js} +1 -1
- package/chunk-5Q53HYKJ.js +1 -0
- package/{chunk-MTCSELIF.js → chunk-6F4OBQBG.js} +1 -1
- package/chunk-6OZGFFIP.js +1 -0
- package/{chunk-S3L5VJJF.js → chunk-6U5GJZOT.js} +1 -1
- package/{chunk-JCIUBQIN.js → chunk-75HPCEOB.js} +1 -1
- package/{chunk-W3VTD2H4.js → chunk-B27FY76R.js} +1 -1
- package/{chunk-W4YAOQRI.js → chunk-BE77QZG7.js} +1 -1
- package/{chunk-XTSJURO6.js → chunk-C4YENYVT.js} +1 -1
- package/{chunk-FCQHE46G.js → chunk-C7Y6Y3WG.js} +1 -1
- package/{chunk-4RXMJUN5.js → chunk-CKZXQWC5.js} +1 -1
- package/{chunk-7AHZCQM7.js → chunk-CN7UNEKW.js} +1 -1
- package/{chunk-453FQ4EQ.js → chunk-D3OXH7DI.js} +1 -1
- package/{chunk-DPNFOEAN.js → chunk-D72NDSPE.js} +1 -1
- package/{chunk-KDCTRSPO.js → chunk-DXNCMAOT.js} +1 -1
- package/chunk-EEWVYRVF.js +1 -0
- package/chunk-EMAOG2GJ.js +1 -0
- package/{chunk-5JYSV4UD.js → chunk-EOR3XP2C.js} +1 -1
- package/{chunk-UIOTKB6J.js → chunk-F7TB6D2I.js} +1 -1
- package/chunk-FN6RH4GQ.js +1 -0
- package/{chunk-EAGORY3U.js → chunk-HMXWO2I6.js} +1 -1
- package/{chunk-DKICGIGJ.js → chunk-HRMKDPOR.js} +1 -1
- package/chunk-I56L7YBT.js +1 -0
- package/{chunk-VP3M4CWS.js → chunk-IVVTGUD5.js} +1 -1
- package/{chunk-AUVMOLMG.js → chunk-IWMMFNSQ.js} +1 -1
- package/{chunk-DPPV7DVK.js → chunk-JD2VZ7AT.js} +1 -1
- package/{chunk-T7LDHEC3.js → chunk-JFCXB676.js} +1 -1
- package/{chunk-2D7EACVA.js → chunk-KB62MNQB.js} +1 -1
- package/chunk-KYG6FTJ2.js +1 -0
- package/chunk-LMY6LL5X.js +1 -0
- package/{chunk-DJZUZAH5.js → chunk-LPLSYMNB.js} +1 -1
- package/chunk-LZVNJE27.js +1 -0
- package/chunk-MJGXEFQX.js +1 -0
- package/chunk-NKKQQ2IJ.js +1 -0
- package/chunk-NVYCQ7OZ.js +1 -0
- package/chunk-NXZI7EZX.js +1 -0
- package/{chunk-2FAACUDI.js → chunk-NZKQ6LJU.js} +1 -1
- package/chunk-OHOVQQRF.js +1 -0
- package/{chunk-WYTHNCNI.js → chunk-OXZWBTVI.js} +1 -1
- package/{chunk-JFC5Z7YL.js → chunk-PBOQC224.js} +1 -1
- package/{chunk-G76GVTZW.js → chunk-Q2S4M24F.js} +1 -1
- package/{chunk-MMNUKDWS.js → chunk-RBEE6F5X.js} +1 -1
- package/{chunk-LRB2TMMB.js → chunk-SGHSOU7H.js} +1 -1
- package/{chunk-ZSKZUTTA.js → chunk-T7ELKIG2.js} +1 -1
- package/{chunk-K3LOA2DX.js → chunk-VC6R3EOF.js} +1 -1
- package/{chunk-76MZP6D5.js → chunk-VLSYAFUD.js} +1 -1
- package/{chunk-EMLPXGRD.js → chunk-W5OXRGDR.js} +1 -1
- package/{chunk-ZEMCELQ7.js → chunk-XBBAIEMP.js} +1 -1
- package/{chunk-SJBPW65N.js → chunk-YZZJK6RY.js} +1 -1
- package/{chunk-UPW4CQ72.js → chunk-Z3ALFDJZ.js} +1 -1
- package/{chunk-ZHFVGIIO.js → chunk-Z4NXKIA6.js} +1 -1
- package/{chunk-H5V5U4VH.js → chunk-ZKQDPG6E.js} +1 -1
- package/index.html +2 -2
- package/main-5NXOH73T.js +1 -0
- package/package.json +1 -1
- package/{styles-OABXKND4.css → styles-NSI7VPDK.css} +1 -1
- package/chunk-6BPJFTZW.js +0 -1
- package/chunk-B6FHJOT5.js +0 -1
- package/chunk-C4CQLUE6.js +0 -1
- package/chunk-CLJTLGUH.js +0 -1
- package/chunk-DJWDNTTP.js +0 -1
- package/chunk-LAGOXMVK.js +0 -1
- package/chunk-LBJYPZA5.js +0 -1
- package/chunk-LVA7V7CT.js +0 -1
- package/chunk-N7DO2BHU.js +0 -1
- package/chunk-ODIN2IGP.js +0 -1
- package/chunk-PEA355CX.js +0 -1
- package/chunk-RS7BKRUH.js +0 -1
- package/chunk-U7UIU734.js +0 -1
- package/chunk-ZI4ZJIB3.js +0 -1
- package/chunk-ZIKYV2TR.js +0 -1
- package/chunk-ZZPLRWQP.js +0 -1
- package/main-NR6TAXFB.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a,f as b}from"./chunk-JD2VZ7AT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ke}from"./chunk-MMNUKDWS.js";import{a as he,b as se}from"./chunk-ODIN2IGP.js";import{a as pe}from"./chunk-5JYSV4UD.js";import{a as be}from"./chunk-DKICGIGJ.js";import"./chunk-WJQN3BOF.js";import{a as le}from"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import{a as ve}from"./chunk-W3VTD2H4.js";import"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{b as ae}from"./chunk-UIOTKB6J.js";import{a as Ie,d as ke}from"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as z,g as _e,j as ye,k as xe,o as re,v as Be}from"./chunk-ZI4ZJIB3.js";import"./chunk-W4YAOQRI.js";import{pa as w,sa as oe}from"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as t,Bb as c,Cb as A,Db as P,Fb as K,Jc as fe,Lb as N,Mb as M,Nb as _,Ob as s,Pa as o,Pb as d,Qb as U,Rb as y,Sb as m,W as R,ba as D,ca as $,cb as b,ec as F,fc as x,gc as S,hb as C,ic as Re,mc as De,nc as $e,o as B,oa as ie,oc as X,qb as h,sa as G,sb as f,uc as u,vb as E,vc as g,wb as I,wc as T,xb as k,yb as v,zb as i}from"./chunk-ZSSQBIRK.js";import{a as te}from"./chunk-C6Q5SG76.js";function we(n,a){n&1&&c(0,"spk-progress-bar",31)}function ze(n,a){n&1&&c(0,"div",34)}function Ve(n,a){n&1&&c(0,"div",35)}function We(n,a){n&1&&c(0,"div",36)}function je(n,a){if(n&1&&F(0),n&2){let e=m().$implicit;S(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function qe(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,15),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47)(7,"p"),_(8,16),u(9,"date"),t(),i(10,"p"),_(11,17),u(12,"date"),t(),i(13,"p"),_(14,18),u(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),c(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),F(26,"file-archive"),t(),F(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),F(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),u(34,"date"),t(),i(35,"p"),_(36,23),u(37,"date"),t(),i(38,"p"),_(39,24),u(40,"durationFormat"),t(),c(41,"spk-divider"),i(42,"p"),_(43,25),u(44,"bytes"),t(),i(45,"p"),_(46,26),u(47,"bytes"),t(),i(48,"p"),_(49,27),u(50,"bytes"),t(),c(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=m(2).$implicit;o(9),s(T(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),s(T(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),s(g(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),s(T(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),s(T(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),s(g(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(g(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(g(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(g(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function Je(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,30),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47),k(7,Je,3,3,"code",null,I),t()()),n&2){let e=m(2).$implicit;o(5),s(e.data.VerificationsActualLength),d(2),o(2),v(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),F(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),A(2,42),i(3,"h3"),_(4,0),t(),P(),A(5,43),i(6,"p"),_(7,1),u(8,"date"),t(),i(9,"p"),_(10,2),u(11,"date"),t(),i(12,"p"),_(13,3),u(14,"durationFormat"),t(),P(),t(),i(15,"app-toggle-card",41),A(16,42),i(17,"h3"),_(18,4),t(),P(),A(19,43),i(20,"p"),_(21,5),u(22,"bytes"),t(),i(23,"p"),_(24,6),u(25,"bytes"),t(),i(26,"p"),_(27,7),u(28,"bytes"),t(),i(29,"p"),_(30,8),u(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),P(),t(),i(38,"div",44),c(39,"spk-divider"),C(40,qe,56,39)(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),N(44,12),c(45,"spk-icon"),i(46,"div",46),c(47,"spk-icon",39),t(),M(),t(),i(48,"div",47),k(49,Qe,3,3,"code",null,I),t()(),i(51,"details",45)(52,"summary"),N(53,13),c(54,"spk-icon"),i(55,"div",46),c(56,"spk-icon",39),t(),M(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),k(59,Ze,3,3,"code",null,I),t()(),c(61,"spk-divider"),i(62,"details")(63,"summary"),N(64,14),c(65,"spk-icon"),i(66,"div",46),c(67,"spk-icon",39),t(),M(),t(),i(68,"code")(69,"button",48),F(70,"Copy"),t(),F(71),u(72,"json"),t()()()()),n&2){let e=m().$implicit;o(),h("disallowToggle",!0),o(7),s(T(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),s(T(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),s(g(14,28,e.data==null?null:e.data.Duration)),d(13),o(),h("disallowToggle",!0),o(7),s(e.data==null?null:e.data.ExaminedFiles)(g(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),s(e.data==null?null:e.data.OpenedFiles)(g(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),s(e.data==null?null:e.data.AddedFiles)(g(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),s(e.data==null?null:e.data.ModifiedFiles)(g(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),s(e.data==null?null:e.data.DeletedFiles),d(33),o(2),s(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),s(e.data==null?null:e.data.FilesWithError),d(37),o(3),E((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),E((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),s(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),v(e.data==null?null:e.data.Warnings),o(7),s(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),E((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),v(e.data==null?null:e.data.Errors),o(12),S(" ",g(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=K();i(0,"article",32)(1,"header",33),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),F(6),u(7,"date"),t(),i(8,"p"),F(9),C(10,je,1,1),t(),c(11,"div",37),i(12,"div",38)(13,"spk-icon",39),F(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=m();o(2),E(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),x(T(7,7,e.timestamp,"medium")),o(3),S(" ",e.data==null?null:e.data.MainOperation," "),o(),E(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?15:-1)}}var de=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(B(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let r;r=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let L;L=$localize`Source files`;let V;V=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let W;W=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,O=U(O);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=U(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=U(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=U(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Se;Se=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=U(ne),[a,e,l,r,L,V,W,j,q,J,H,Q,O,Y,Z,ee,Fe,ge,Ee,me,Ce,Oe,Le,Te,Ae,Pe,Se,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),k(1,nn,16,10,"article",32,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[Ke,xe,re,_e,z,le,w,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&c(0,"spk-progress-bar",0)}function on(n,a){if(n&1&&(i(0,"section",5)(1,"code"),F(2),u(3,"json"),t()()),n&2){let e=m().$implicit;o(2),x(g(3,1,e.data))}}function an(n,a){if(n&1){let e=K();i(0,"article",1)(1,"header",2),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),i(2,"h3"),F(3),u(4,"date"),t(),i(5,"div",3)(6,"spk-icon",4),F(7,"caret-down"),t()()(),C(8,on,4,3,"section",5),t()}if(n&2){let e=a.$implicit,l=m();o(3),Re("",T(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?8:-1)}}var ue=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(B(e=>e.map((l,r)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",0),k(1,an,9,9,"article",1,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[oe,re,z,w],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function ln(n,a){if(n&1&&(F(0," - "),A(1),_(2,6),P(),F(3),u(4,"durationFormat")),n&2){m(2);let e=X(6);o(3),S(" ",g(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function _n(n,a){n&1&&(A(0),_(1,7),P())}function rn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function pn(n,a){n&1&&(A(0),_(1,8),P())}function sn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function dn(n,a){n&1&&(A(0),_(1,9),P())}function un(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){m(2);let e=X(6);o(),s(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function cn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function Fn(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),F(3),i(4,"spk-icon"),F(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),F(9),u(10,"date"),C(11,ln,5,3)(12,_n,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,rn,2,3)(17,pn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,sn,2,3)(22,dn,2,0,"ng-container"),t()(),C(23,un,2,1,"spk-chip",19)(24,cn,2,0,"spk-chip",20),t()),n&2){let e,l=m(),r=X(6);o(3),S(" ",(e=r.Backup==null?null:r.Backup.Name)!==null&&e!==void 0?e:l.MISSING_BACKUP_NAME," "),o(6),S(" ",T(10,6,r.Backup==null||r.Backup.Metadata==null?null:r.Backup.Metadata.LastBackupDate,"short")," "),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.LastBackupDuration?11:12),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.SourceFilesSize?16:17),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.TargetFilesSize?21:22),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.BackupListCount?23:24)}}function gn(n,a){if(n&1&&c(0,"app-general-log",17),n&2){let e=m();h("backupId",e.backupId())}}function En(n,a){if(n&1&&c(0,"app-remote-log",17),n&2){let e=m();h("backupId",e.backupId())}}var ce=class n{#e=R(Ie);#n=R(ve);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=G("general");backupId=he(this.#e.params.pipe(B(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let r;r=$localize`Last successful backup:`;let L;L=$localize`Source:`;let V;V=$localize`Destination:`;let W;W=$localize`took`;let j;j=$localize`N/A`;let q;q=$localize`N/A`;let J;J=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,r,L,V,W,j,q,J,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let r=K();c(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),N(4,0),c(5,"spk-icon"),M(),t()(),De(6),C(7,Fn,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),y("click",function(){return D(r),$(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),y("click",function(){return D(r),$(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,gn,1,1,"app-general-log",17)(14,En,1,1,"app-remote-log",17),t()}if(e&2){o(6);let r=$e(l.backup());o(),E(r?7:-1),o(2),f("active",l.activeTab()==="general"),o(2),f("active",l.activeTab()==="destination"),o(2),E(l.activeTab()==="general"?13:-1),o(),E(l.activeTab()==="destination"?14:-1)}},dependencies:[Be,de,ue,ke,le,pe,w,be,z,_e,ye],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}"],changeDetection:0})};export{ce as default};
|
|
1
|
+
import{a as Ke}from"./chunk-RBEE6F5X.js";import{a as he,b as se}from"./chunk-I56L7YBT.js";import{a as pe}from"./chunk-EOR3XP2C.js";import{a as be}from"./chunk-HRMKDPOR.js";import"./chunk-3CWO2EV5.js";import{a as le}from"./chunk-3NUWESLC.js";import"./chunk-IWMMFNSQ.js";import{a as ve}from"./chunk-B27FY76R.js";import"./chunk-25A34CYL.js";import"./chunk-EEWVYRVF.js";import{b as ae}from"./chunk-F7TB6D2I.js";import{a as Ie,d as ke}from"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as z,g as _e,j as ye,k as xe,o as re,v as Be}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import{pa as w,sa as oe}from"./chunk-OXZWBTVI.js";import"./chunk-KB62MNQB.js";import{Ab as i,Bb as t,Cb as c,Db as A,Eb as P,Gb as K,Kc as fe,Mb as N,Nb as M,Ob as _,Pb as s,Qa as o,Qb as d,Rb as U,Sb as y,Tb as m,X as R,ca as D,da as $,db as b,fc as F,gc as x,hc as S,ib as C,jc as Re,nc as De,oc as $e,p as B,pa as ie,pc as X,rb as h,ta as G,tb as f,vc as u,wb as E,wc as g,xb as I,xc as T,yb as k,zb as v}from"./chunk-5ONOZUNN.js";import{a as te}from"./chunk-C6Q5SG76.js";function we(n,a){n&1&&c(0,"spk-progress-bar",31)}function ze(n,a){n&1&&c(0,"div",34)}function Ve(n,a){n&1&&c(0,"div",35)}function We(n,a){n&1&&c(0,"div",36)}function je(n,a){if(n&1&&F(0),n&2){let e=m().$implicit;S(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function qe(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,15),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47)(7,"p"),_(8,16),u(9,"date"),t(),i(10,"p"),_(11,17),u(12,"date"),t(),i(13,"p"),_(14,18),u(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),c(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),F(26,"file-archive"),t(),F(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),F(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),u(34,"date"),t(),i(35,"p"),_(36,23),u(37,"date"),t(),i(38,"p"),_(39,24),u(40,"durationFormat"),t(),c(41,"spk-divider"),i(42,"p"),_(43,25),u(44,"bytes"),t(),i(45,"p"),_(46,26),u(47,"bytes"),t(),i(48,"p"),_(49,27),u(50,"bytes"),t(),c(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=m(2).$implicit;o(9),s(T(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),s(T(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),s(g(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),s(T(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),s(T(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),s(g(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(g(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(g(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(g(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function Je(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,30),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47),k(7,Je,3,3,"code",null,I),t()()),n&2){let e=m(2).$implicit;o(5),s(e.data.VerificationsActualLength),d(2),o(2),v(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),F(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),A(2,42),i(3,"h3"),_(4,0),t(),P(),A(5,43),i(6,"p"),_(7,1),u(8,"date"),t(),i(9,"p"),_(10,2),u(11,"date"),t(),i(12,"p"),_(13,3),u(14,"durationFormat"),t(),P(),t(),i(15,"app-toggle-card",41),A(16,42),i(17,"h3"),_(18,4),t(),P(),A(19,43),i(20,"p"),_(21,5),u(22,"bytes"),t(),i(23,"p"),_(24,6),u(25,"bytes"),t(),i(26,"p"),_(27,7),u(28,"bytes"),t(),i(29,"p"),_(30,8),u(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),P(),t(),i(38,"div",44),c(39,"spk-divider"),C(40,qe,56,39)(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),N(44,12),c(45,"spk-icon"),i(46,"div",46),c(47,"spk-icon",39),t(),M(),t(),i(48,"div",47),k(49,Qe,3,3,"code",null,I),t()(),i(51,"details",45)(52,"summary"),N(53,13),c(54,"spk-icon"),i(55,"div",46),c(56,"spk-icon",39),t(),M(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),k(59,Ze,3,3,"code",null,I),t()(),c(61,"spk-divider"),i(62,"details")(63,"summary"),N(64,14),c(65,"spk-icon"),i(66,"div",46),c(67,"spk-icon",39),t(),M(),t(),i(68,"code")(69,"button",48),F(70,"Copy"),t(),F(71),u(72,"json"),t()()()()),n&2){let e=m().$implicit;o(),h("disallowToggle",!0),o(7),s(T(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),s(T(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),s(g(14,28,e.data==null?null:e.data.Duration)),d(13),o(),h("disallowToggle",!0),o(7),s(e.data==null?null:e.data.ExaminedFiles)(g(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),s(e.data==null?null:e.data.OpenedFiles)(g(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),s(e.data==null?null:e.data.AddedFiles)(g(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),s(e.data==null?null:e.data.ModifiedFiles)(g(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),s(e.data==null?null:e.data.DeletedFiles),d(33),o(2),s(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),s(e.data==null?null:e.data.FilesWithError),d(37),o(3),E((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),E((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),s(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),v(e.data==null?null:e.data.Warnings),o(7),s(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),E((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),v(e.data==null?null:e.data.Errors),o(12),S(" ",g(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=K();i(0,"article",32)(1,"header",33),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),F(6),u(7,"date"),t(),i(8,"p"),F(9),C(10,je,1,1),t(),c(11,"div",37),i(12,"div",38)(13,"spk-icon",39),F(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=m();o(2),E(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),x(T(7,7,e.timestamp,"medium")),o(3),S(" ",e.data==null?null:e.data.MainOperation," "),o(),E(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?15:-1)}}var de=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(B(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let r;r=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let L;L=$localize`Source files`;let V;V=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let W;W=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,O=U(O);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=U(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=U(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=U(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Se;Se=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=U(ne),[a,e,l,r,L,V,W,j,q,J,H,Q,O,Y,Z,ee,Fe,ge,Ee,me,Ce,Oe,Le,Te,Ae,Pe,Se,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),k(1,nn,16,10,"article",32,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[Ke,xe,re,_e,z,le,w,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&c(0,"spk-progress-bar",0)}function on(n,a){if(n&1&&(i(0,"section",5)(1,"code"),F(2),u(3,"json"),t()()),n&2){let e=m().$implicit;o(2),x(g(3,1,e.data))}}function an(n,a){if(n&1){let e=K();i(0,"article",1)(1,"header",2),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),i(2,"h3"),F(3),u(4,"date"),t(),i(5,"div",3)(6,"spk-icon",4),F(7,"caret-down"),t()()(),C(8,on,4,3,"section",5),t()}if(n&2){let e=a.$implicit,l=m();o(3),Re("",T(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?8:-1)}}var ue=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(B(e=>e.map((l,r)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",0),k(1,an,9,9,"article",1,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[oe,re,z,w],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function ln(n,a){if(n&1&&(F(0," - "),A(1),_(2,6),P(),F(3),u(4,"durationFormat")),n&2){m(2);let e=X(6);o(3),S(" ",g(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function _n(n,a){n&1&&(A(0),_(1,7),P())}function rn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function pn(n,a){n&1&&(A(0),_(1,8),P())}function sn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function dn(n,a){n&1&&(A(0),_(1,9),P())}function un(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){m(2);let e=X(6);o(),s(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function cn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function Fn(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),F(3),i(4,"spk-icon"),F(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),F(9),u(10,"date"),C(11,ln,5,3)(12,_n,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,rn,2,3)(17,pn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,sn,2,3)(22,dn,2,0,"ng-container"),t()(),C(23,un,2,1,"spk-chip",19)(24,cn,2,0,"spk-chip",20),t()),n&2){let e,l=m(),r=X(6);o(3),S(" ",(e=r.Backup==null?null:r.Backup.Name)!==null&&e!==void 0?e:l.MISSING_BACKUP_NAME," "),o(6),S(" ",T(10,6,r.Backup==null||r.Backup.Metadata==null?null:r.Backup.Metadata.LastBackupDate,"short")," "),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.LastBackupDuration?11:12),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.SourceFilesSize?16:17),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.TargetFilesSize?21:22),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.BackupListCount?23:24)}}function gn(n,a){if(n&1&&c(0,"app-general-log",17),n&2){let e=m();h("backupId",e.backupId())}}function En(n,a){if(n&1&&c(0,"app-remote-log",17),n&2){let e=m();h("backupId",e.backupId())}}var ce=class n{#e=R(Ie);#n=R(ve);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=G("general");backupId=he(this.#e.params.pipe(B(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let r;r=$localize`Last successful backup:`;let L;L=$localize`Source:`;let V;V=$localize`Destination:`;let W;W=$localize`took`;let j;j=$localize`N/A`;let q;q=$localize`N/A`;let J;J=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,r,L,V,W,j,q,J,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let r=K();c(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),N(4,0),c(5,"spk-icon"),M(),t()(),De(6),C(7,Fn,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),y("click",function(){return D(r),$(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),y("click",function(){return D(r),$(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,gn,1,1,"app-general-log",17)(14,En,1,1,"app-remote-log",17),t()}if(e&2){o(6);let r=$e(l.backup());o(),E(r?7:-1),o(2),f("active",l.activeTab()==="general"),o(2),f("active",l.activeTab()==="destination"),o(2),E(l.activeTab()==="general"?13:-1),o(),E(l.activeTab()==="destination"?14:-1)}},dependencies:[Be,de,ue,ke,le,pe,w,be,z,_e,ye],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}"],changeDetection:0})};export{ce as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-JD2VZ7AT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as K}from"./chunk-XTSJURO6.js";import{a as ye}from"./chunk-UPW4CQ72.js";import{a as Ve}from"./chunk-MMNUKDWS.js";import"./chunk-DNHLTHLR.js";import{a as U}from"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import{a as we}from"./chunk-DKICGIGJ.js";import"./chunk-WJQN3BOF.js";import"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import"./chunk-W3VTD2H4.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,l as Fe,m as ge,n as Ne,p as Te,q as Se,s as Me}from"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{a as pe,b as _e}from"./chunk-UIOTKB6J.js";import{a as le,c as re,d as me}from"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as Ee,g as xe,k as ke,l as De,n as Oe,o as Ae,r as Ie,w as $e,x as Pe}from"./chunk-ZI4ZJIB3.js";import"./chunk-W4YAOQRI.js";import{ia as ae}from"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as o,Bb as s,Cb as O,Db as A,Eb as J,Fb as x,Lb as I,Lc as oe,Mb as $,Nb as S,Ob as G,Pa as a,Pb as R,Qb as Q,Rb as k,Sb as m,Vb as N,W as D,Wb as Y,Xb as d,ba as M,ca as E,cb as W,dc as L,ec as p,gc as F,hb as c,pc as ee,qb as _,qc as te,rc as ne,sa as B,sb as Z,sc as ie,vb as C,wb as V,xb as v,xc as b,yb as h,zb as l}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";var ve=()=>[],he=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Le=n=>({$implicit:n});function be(n,i){n&1&&s(0,"spk-progress-bar",18)}function Be(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",47),o()),n&2){let e=i.$implicit,t=i.$index;a(),Y("id","filter-",t,""),_("formControl",e)}}function Ge(n,i){if(n&1){let e=x();I(0,14,1),l(1,"button",48,1),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.addNewOption(r))}),o(),$()}if(n&2){let e=i.$implicit;a(),G(e.name),R(0)}}function Re(n,i){n&1&&J(0)}function Ue(n,i){if(n&1&&c(0,Re,1,0,"ng-container",49),n&2){let e=i.$implicit,t=i.$index;m();let r=L(54);_("ngTemplateOutlet",r)("ngTemplateOutletContext",ne(5,Le,ie(2,he,t,e)))}}function Ke(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function ze(n,i){if(n&1&&(l(0,"app-file-tree",52)(1,"label",57),p(2),c(3,Ke,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Xe(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function qe(n,i){if(n&1&&(l(0,"app-file-tree",53)(1,"label",57),p(2),c(3,Xe,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function He(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function je(n,i){n&1&&(l(0,"spk-icon",60),p(1,"link"),o())}function We(n,i){n&1&&(l(0,"spk-icon",60),p(1,"textbox"),o())}function Ze(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,He,3,1,"spk-tooltip",58),o(),s(4,"input",59),c(5,je,2,0,"spk-icon",60)(6,We,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function Je(n,i){if(n&1){let e=x();l(0,"span",64),k("click",function(){M(e);let r=m(2).$implicit,f=m(2);return E(f.oauthStartTokenCreation(r.formViewType))}),p(1,"AuthID"),o()}}function Qe(n,i){n&1&&(l(0,"spk-icon",60),p(1,"password"),o())}function Ye(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye "),o()}}function et(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye-slash "),o()}}function tt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),o(),s(3,"input",61),c(4,Je,2,0,"span",62)(5,Qe,2,0,"spk-icon",60)(6,Ye,2,0,"spk-icon",63)(7,et,2,0,"spk-icon",63),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),_("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function nt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function it(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ot(n,i){if(n&1&&(l(0,"spk-select",66)(1,"label",57),p(2),c(3,nt,3,1,"spk-tooltip",58),o(),s(4,"input",59),o(),c(5,it,1,1,"ng-template",null,2,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("inlineSearch",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),d("id","destination-",r.formGroupName,"-",r.index,""),N("formControlName",r.formView.name)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"div",54)(1,"label",57),p(2),c(3,at,3,1,"spk-tooltip",58),o(),l(4,"div",67)(5,"spk-form-field"),s(6,"input",68),l(7,"spk-icon",60),p(8,"resize"),o()(),l(9,"spk-select",69),s(10,"input",39),o()()()),n&2){let e,t=m().$implicit,r=m(2);_("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(3),_("options",r.sizeOptions())("inlineSearch",!0)}}function rt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function mt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,rt,3,1,"spk-tooltip",58),o(),s(4,"input",70),l(5,"spk-icon",60),p(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function pt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function _t(n,i){if(n&1&&(l(0,"spk-toggle",55)(1,"label",57),p(2),c(3,pt,3,1,"spk-tooltip",58),o(),s(4,"input",71),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ct(n,i){if(n&1&&(l(0,"spk-select",72)(1,"label",57),p(2),c(3,st,3,1,"spk-tooltip",58),o(),s(4,"input",73),o(),c(5,dt,1,1,"ng-template",null,3,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("selectMultiple",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),N("formControlName",r.formView.name)}}function ut(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function Ct(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,ut,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ft(n,i){if(n&1){let e=x();l(0,"div",50),O(1,51),c(2,ze,5,14,"app-file-tree",52)(3,qe,5,10,"app-file-tree",53)(4,Ze,7,10,"spk-form-field")(5,tt,8,11,"spk-form-field")(6,ot,7,12)(7,lt,11,11,"div",54)(8,mt,7,9,"spk-form-field")(9,_t,5,9,"spk-toggle",55)(10,ct,7,9)(11,Ct,5,9,"spk-form-field"),A(),l(12,"button",56),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.removeFormView(r.formView,0))}),l(13,"spk-icon"),p(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),_("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Ft(n,i){if(n&1){let e=x();l(0,"form",19)(1,"spk-select",20)(2,"label",21),S(3,5),o(),s(4,"input",22),o(),l(5,"spk-form-field")(6,"label",23),S(7,6),o(),s(8,"textarea",24),o(),l(9,"spk-form-field")(10,"label",25),S(11,7),o(),s(12,"textarea",26),o()(),l(13,"spk-divider"),S(14,8),o(),l(15,"form",19)(16,"spk-form-field")(17,"label",27),S(18,9),o(),s(19,"input",28),o(),l(20,"spk-form-field")(21,"label",29),S(22,10),o(),s(23,"input",30),o(),l(24,"app-toggle-card",31),O(25,32),S(26,11),A(),O(27,33),v(28,Be,2,3,"spk-form-field",null,V),A(),o()(),l(30,"form",19)(31,"div",34)(32,"div",35)(33,"spk-form-field")(34,"label",36),S(35,12),o(),s(36,"input",37),o(),l(37,"spk-select",38),s(38,"input",39),o()(),l(39,"p"),I(40,13),s(41,"a",40),$(),o()(),l(42,"app-toggle-card",31),O(43,32),I(44,14),l(45,"spk-menu",41)(46,"button",42),s(47,"spk-icon"),o(),O(48,43),v(49,Ge,3,1,"button",44,V),A(),o(),$(),A(),v(51,Ue,1,7,"ng-container",null,V),o(),c(53,ft,15,2,"ng-template",null,0,b),l(55,"div",45)(56,"button",46),k("click",function(){M(e);let r=m();return E(r.submit())}),I(57,15),s(58,"spk-icon"),$(),o()()()}if(n&2){let e,t=m();_("formGroup",t.baseCmdForm),a(),_("options",(e=t.commandOptions())!==null&&e!==void 0?e:te(13,ve))("inlineSearch",!0),a(14),_("formGroup",t.standardFields),a(9),_("disallowToggle",!0),a(4),h(t.standardFields.controls.filters.controls),a(2),_("formGroup",t.optionsForm),a(7),_("options",t.sizeOptions())("inlineSearch",!0),a(5),_("disallowToggle",!0),a(3),_("searchable",!0),a(4),h(t.nonSelectedOptions()),a(2),h(t.selectedOptions()),a(5),Z("loader",t.isSubmitting()),a(2),G(t.baseCmdForm.value.command),R(57)}}var T=new Se,gt=["Bytes","KB","MB","GB","TB","PB"],z=class n{#e=D(K);#t=D(_e);#n=D(re);#i=D(le);#o=D(pe);#a=U(this.#i.params);commandOptions=U(this.#o.getApiV1Commandline());sizeOptions=B(gt);isSubmitting=B(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",r=i.arguments?.split(`
|
|
1
|
+
import{o as K}from"./chunk-C4YENYVT.js";import{a as ye}from"./chunk-Z3ALFDJZ.js";import{a as Ve}from"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import{a as U}from"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-2MAHQYCM.js";import{a as we}from"./chunk-HRMKDPOR.js";import"./chunk-3CWO2EV5.js";import"./chunk-3NUWESLC.js";import"./chunk-IWMMFNSQ.js";import"./chunk-B27FY76R.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,l as Fe,m as ge,n as Ne,p as Te,q as Se,s as Me}from"./chunk-25A34CYL.js";import"./chunk-EEWVYRVF.js";import{a as pe,b as _e}from"./chunk-F7TB6D2I.js";import{a as le,c as re,d as me}from"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as Ee,g as xe,k as ke,l as De,n as Oe,o as Ae,r as Ie,w as $e,x as Pe}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import{ia as ae}from"./chunk-OXZWBTVI.js";import"./chunk-KB62MNQB.js";import{Ab as l,Bb as o,Cb as s,Db as O,Eb as A,Fb as J,Gb as x,Mb as I,Mc as oe,Nb as $,Ob as S,Pb as G,Qa as a,Qb as R,Rb as Q,Sb as k,Tb as m,Wb as N,X as D,Xb as Y,Yb as d,ca as M,da as E,db as W,ec as L,fc as p,hc as F,ib as c,qc as ee,rb as _,rc as te,sc as ne,ta as B,tb as Z,tc as ie,wb as C,xb as V,yb as v,yc as b,zb as h}from"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";var ve=()=>[],he=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Le=n=>({$implicit:n});function be(n,i){n&1&&s(0,"spk-progress-bar",18)}function Be(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",47),o()),n&2){let e=i.$implicit,t=i.$index;a(),Y("id","filter-",t,""),_("formControl",e)}}function Ge(n,i){if(n&1){let e=x();I(0,14,1),l(1,"button",48,1),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.addNewOption(r))}),o(),$()}if(n&2){let e=i.$implicit;a(),G(e.name),R(0)}}function Re(n,i){n&1&&J(0)}function Ue(n,i){if(n&1&&c(0,Re,1,0,"ng-container",49),n&2){let e=i.$implicit,t=i.$index;m();let r=L(54);_("ngTemplateOutlet",r)("ngTemplateOutletContext",ne(5,Le,ie(2,he,t,e)))}}function Ke(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function ze(n,i){if(n&1&&(l(0,"app-file-tree",52)(1,"label",57),p(2),c(3,Ke,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Xe(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function qe(n,i){if(n&1&&(l(0,"app-file-tree",53)(1,"label",57),p(2),c(3,Xe,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function He(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function je(n,i){n&1&&(l(0,"spk-icon",60),p(1,"link"),o())}function We(n,i){n&1&&(l(0,"spk-icon",60),p(1,"textbox"),o())}function Ze(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,He,3,1,"spk-tooltip",58),o(),s(4,"input",59),c(5,je,2,0,"spk-icon",60)(6,We,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function Je(n,i){if(n&1){let e=x();l(0,"span",64),k("click",function(){M(e);let r=m(2).$implicit,f=m(2);return E(f.oauthStartTokenCreation(r.formViewType))}),p(1,"AuthID"),o()}}function Qe(n,i){n&1&&(l(0,"spk-icon",60),p(1,"password"),o())}function Ye(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye "),o()}}function et(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye-slash "),o()}}function tt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),o(),s(3,"input",61),c(4,Je,2,0,"span",62)(5,Qe,2,0,"spk-icon",60)(6,Ye,2,0,"spk-icon",63)(7,et,2,0,"spk-icon",63),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),_("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function nt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function it(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ot(n,i){if(n&1&&(l(0,"spk-select",66)(1,"label",57),p(2),c(3,nt,3,1,"spk-tooltip",58),o(),s(4,"input",59),o(),c(5,it,1,1,"ng-template",null,2,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("inlineSearch",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),d("id","destination-",r.formGroupName,"-",r.index,""),N("formControlName",r.formView.name)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"div",54)(1,"label",57),p(2),c(3,at,3,1,"spk-tooltip",58),o(),l(4,"div",67)(5,"spk-form-field"),s(6,"input",68),l(7,"spk-icon",60),p(8,"resize"),o()(),l(9,"spk-select",69),s(10,"input",39),o()()()),n&2){let e,t=m().$implicit,r=m(2);_("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(3),_("options",r.sizeOptions())("inlineSearch",!0)}}function rt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function mt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,rt,3,1,"spk-tooltip",58),o(),s(4,"input",70),l(5,"spk-icon",60),p(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function pt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function _t(n,i){if(n&1&&(l(0,"spk-toggle",55)(1,"label",57),p(2),c(3,pt,3,1,"spk-tooltip",58),o(),s(4,"input",71),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ct(n,i){if(n&1&&(l(0,"spk-select",72)(1,"label",57),p(2),c(3,st,3,1,"spk-tooltip",58),o(),s(4,"input",73),o(),c(5,dt,1,1,"ng-template",null,3,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("selectMultiple",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),N("formControlName",r.formView.name)}}function ut(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function Ct(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,ut,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ft(n,i){if(n&1){let e=x();l(0,"div",50),O(1,51),c(2,ze,5,14,"app-file-tree",52)(3,qe,5,10,"app-file-tree",53)(4,Ze,7,10,"spk-form-field")(5,tt,8,11,"spk-form-field")(6,ot,7,12)(7,lt,11,11,"div",54)(8,mt,7,9,"spk-form-field")(9,_t,5,9,"spk-toggle",55)(10,ct,7,9)(11,Ct,5,9,"spk-form-field"),A(),l(12,"button",56),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.removeFormView(r.formView,0))}),l(13,"spk-icon"),p(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),_("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Ft(n,i){if(n&1){let e=x();l(0,"form",19)(1,"spk-select",20)(2,"label",21),S(3,5),o(),s(4,"input",22),o(),l(5,"spk-form-field")(6,"label",23),S(7,6),o(),s(8,"textarea",24),o(),l(9,"spk-form-field")(10,"label",25),S(11,7),o(),s(12,"textarea",26),o()(),l(13,"spk-divider"),S(14,8),o(),l(15,"form",19)(16,"spk-form-field")(17,"label",27),S(18,9),o(),s(19,"input",28),o(),l(20,"spk-form-field")(21,"label",29),S(22,10),o(),s(23,"input",30),o(),l(24,"app-toggle-card",31),O(25,32),S(26,11),A(),O(27,33),v(28,Be,2,3,"spk-form-field",null,V),A(),o()(),l(30,"form",19)(31,"div",34)(32,"div",35)(33,"spk-form-field")(34,"label",36),S(35,12),o(),s(36,"input",37),o(),l(37,"spk-select",38),s(38,"input",39),o()(),l(39,"p"),I(40,13),s(41,"a",40),$(),o()(),l(42,"app-toggle-card",31),O(43,32),I(44,14),l(45,"spk-menu",41)(46,"button",42),s(47,"spk-icon"),o(),O(48,43),v(49,Ge,3,1,"button",44,V),A(),o(),$(),A(),v(51,Ue,1,7,"ng-container",null,V),o(),c(53,ft,15,2,"ng-template",null,0,b),l(55,"div",45)(56,"button",46),k("click",function(){M(e);let r=m();return E(r.submit())}),I(57,15),s(58,"spk-icon"),$(),o()()()}if(n&2){let e,t=m();_("formGroup",t.baseCmdForm),a(),_("options",(e=t.commandOptions())!==null&&e!==void 0?e:te(13,ve))("inlineSearch",!0),a(14),_("formGroup",t.standardFields),a(9),_("disallowToggle",!0),a(4),h(t.standardFields.controls.filters.controls),a(2),_("formGroup",t.optionsForm),a(7),_("options",t.sizeOptions())("inlineSearch",!0),a(5),_("disallowToggle",!0),a(3),_("searchable",!0),a(4),h(t.nonSelectedOptions()),a(2),h(t.selectedOptions()),a(5),Z("loader",t.isSubmitting()),a(2),G(t.baseCmdForm.value.command),R(57)}}var T=new Se,gt=["Bytes","KB","MB","GB","TB","PB"],z=class n{#e=D(K);#t=D(_e);#n=D(re);#i=D(le);#o=D(pe);#a=U(this.#i.params);commandOptions=U(this.#o.getApiV1Commandline());sizeOptions=B(gt);isSubmitting=B(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",r=i.arguments?.split(`
|
|
2
2
|
`)??[],f=this.standardFields.value,P=f.filters??[],w=[i.command,t,...r,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...P.filter(u=>u).map(u=>u.startsWith("-")?`--exclude=${u?.slice(1)}`:`--include=${u}`),...this.#e.mapFormsToSettings().map(u=>u.Name.startsWith("--")?`${u.Name}=${u.Value}`:`--${u.Name}=${u.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:w}).subscribe(u=>{u.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",u.ID])})}mapBaseCmdToForm(i){let e=i.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:i.Sources?.join(`
|
|
3
3
|
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){this.#e.addOptionToFormGroup(i)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=W({type:n,selectors:[["app-commandline"]],features:[ee([K])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let t;t=$localize`Command`;let r;r=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let P;P=$localize`Advanced options`;let w;w=$localize`Backup ID`;let u;u=$localize`Backup Name`;let X;X=$localize`Filters`;let q;q=$localize`Remote volume size`;let H;H=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#41\uFFFD"}:START_LINK:Read more${"\uFFFD/#41\uFFFD"}:CLOSE_LINK:`;let y;y=$localize` Advanced options ${"\uFFFD#45\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#46\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#48\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_MENU:`,y=Q(y);let j;return j=$localize`${"\uFFFD#58\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#58\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,r,f,P,w,u,X,q,H,y,j,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["placeholder",e,3,"options","inlineSearch"],["type","text","formControlName","unit"],["href","#",1,"spk-primary"],[3,"searchable"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],[3,"options","inlineSearch"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(e,t){e&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",16)(3,"button",17),I(4,4),s(5,"spk-icon"),$(),o()(),c(6,be,1,0,"spk-progress-bar",18)(7,Ft,59,14),o()),e&2&&(a(6),C(t.finishedLoading()?7:6))},dependencies:[we,ye,Ve,Me,Ce,de,fe,se,ce,ue,Fe,ge,Te,Ne,ae,me,De,Oe,xe,$e,ke,Pe,Ie,Ae,Ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b,d as $,e as h,h as G,m as P,p as B,q as v,s as L}from"./chunk-
|
|
1
|
+
import{b,d as $,e as h,h as G,m as P,p as B,q as v,s as L}from"./chunk-25A34CYL.js";import{b as I}from"./chunk-F7TB6D2I.js";import{c as y,d as A}from"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as w,c as V,g as x,l as X,y as U}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import{Ab as i,Bb as r,Cb as _,D as g,L as T,Mb as C,Nb as O,Ob as f,Qa as F,Rb as N,Sb as m,X as u,db as R,fc as M,ib as S,rb as c,rc as k,ta as p,tb as D,wb as E}from"./chunk-5ONOZUNN.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(I);#o=u(y);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=>{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,A,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 o}from"./chunk-
|
|
1
|
+
import{b as o}from"./chunk-F7TB6D2I.js";import{C as a,D as i,N as r,R as u,X as n,ta as s}from"./chunk-5ONOZUNN.js";var l=class p{#s=n(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),k=e&&c-e<15*60*1e3;!1||!t&&k&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=u({token:p,factory:p.\u0275fac,providedIn:"root"})};export{l as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ga as ye,X as pe,e as fe}from"./chunk-
|
|
1
|
+
import{Ga as ye,X as pe,e as fe}from"./chunk-OXZWBTVI.js";import{$ as le,D as oe,L as ie,O as A,R as O,U as E,W as v,X as m,Y as ae,_ as ce,d as J,ja as de,k as re,l as V,la as he,p as x,w as te,xa as ue,z as se}from"./chunk-5ONOZUNN.js";import{a as ne}from"./chunk-C6Q5SG76.js";var L=class{},U=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 W=class{encodeKey(e){return me(e)}encodeValue(e){return me(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function De(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 ke=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(r){return encodeURIComponent(r).replace(ke,(e,n)=>xe[n]??e)}function S(r){return`${r}`}var R=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new W,e.fromString){if(e.fromObject)throw new A(2805,!1);this.map=De(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(S):[S(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(S(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(S(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 q=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 _e(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ge(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Te(r){return typeof Blob<"u"&&r instanceof Blob}function Ee(r){return typeof FormData<"u"&&r instanceof FormData}function Fe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var _="Content-Type",z="Accept",Q="X-Request-URL",be="text/plain",Pe="application/json",Ne=`${Pe}, ${be}, */*`,F=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(_e(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 q,!this.params)this.params=new R,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"||ge(this.body)||Te(this.body)||Ee(this.body)||Fe(this.body)?this.body:this.body instanceof R?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||Ee(this.body)?null:Te(this.body)?this.body.type||null:ge(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe: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((P,h)=>P.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((P,h)=>P.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}},C=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})}},B=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})}},w=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}},Ae=200,Le=204;function $(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 Ue=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof F)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof R?f=s.params:f=new R({fromObject:s.params})),i=new F(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=V(i).pipe(se(a=>this.handler.handle(a)));if(n instanceof F||s.observe==="events")return o;let d=o.pipe(te(a=>a instanceof B));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new A(2806,!1);return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new A(2807,!1);return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new A(2808,!1);return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new A(2809,!1)}}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 R().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,$(s,t))}post(n,t,s={}){return this.request("POST",n,$(s,t))}put(n,t,s={}){return this.request("PUT",n,$(s,t))}static \u0275fac=function(t){return new(t||r)(v(L))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),je=/^\)\]\}',?\n/;function ve(r){if(r.url)return r.url;let e=Q.toLocaleLowerCase();return r.headers.get(e)}var Me=new E(""),G=(()=>{class r{fetchImpl=m(K,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(he);handle(n){return new J(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(Y,i=>t.error(new w({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,ne({signal:t},i)));Be(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new w({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=ve(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new C({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,M,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:N,value:k}=await c.read();if(N)break;if(I.push(k),l+=k.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let ee=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:M});u?u.run(ee):ee()}}});let D=this.concatChunks(I,l);try{let N=o.headers.get(_)??"";y=this.parseBody(n,D,N)}catch(N){s.error(new w({error:N,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ve(o)??n.urlWithParams}));return}}p===0&&(p=y?Ae:0),p>=200&&p<300?(s.next(new B({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new w({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(je,"");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(z)||(t[z]=Ne),!n.headers.has(_)){let i=n.detectContentTypeHeader();i!==null&&(t[_]=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})(),K=class{};function Y(){}function Be(r){r.then(Y,Y)}function Se(r,e){return e(r)}function ze(r,e,n){return(t,s)=>le(n,()=>e(t,i=>r(i,s)))}var Z=new E(""),Ce=new E(""),Xe=new E("",{providedIn:"root",factory:()=>!0});var we=(()=>{class r extends L{backend;injector;chain=null;pendingTasks=m(de);contributeToStability=m(Xe);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(Z),...this.injector.get(Ce,[])]));this.chain=t.reduceRight((s,i)=>ze(s,i,this.injector),Se)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(oe(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(v(U),v(ce))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var Je=/^\)\]\}',?\n/,Ve=RegExp(`^${Q}:`,"m");function $e(r){return"responseURL"in r&&r.responseURL?r.responseURL:Ve.test(r.getAllResponseHeaders())?r.getResponseHeader(Q):null}var Re=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?re(t.\u0275loadImpl()):V(null)).pipe(ie(()=>new J(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(z)||o.setRequestHeader(z,Ne),!n.headers.has(_)){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader(_,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=$e(o)||n.url;return a=new C({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:M}=f(),u=null;l!==Le&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ae:0);let D=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(Je,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=N,D&&(D=!1,u={error:k,text:u})}}D?(i.next(new B({body:u,headers:c,status:l,statusText:T,url:M||void 0})),i.complete()):i.error(new w({error:u,headers:c,status:l,statusText:T,url:M||void 0}))},y=c=>{let{url:l}=f(),T=new w({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},P=!1,h=c=>{P||(i.next(f()),P=!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)(v(ye))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Oe=new E(""),Ge="XSRF-TOKEN",We=new E("",{providedIn:"root",factory:()=>Ge}),qe="X-XSRF-TOKEN",Ke=new E("",{providedIn:"root",factory:()=>qe}),X=class{},Ye=(()=>{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=pe(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(v(fe),v(ue),v(We))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Qe(r,e){let n=r.url.toLowerCase();if(!m(Oe)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(X).getToken(),s=m(Ke);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var H=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}(H||{});function Ie(r,e){return{\u0275kind:r,\u0275providers:e}}function wn(...r){let e=[Ue,Re,we,{provide:L,useExisting:we},{provide:U,useFactory:()=>m(Me,{optional:!0})??m(Re)},{provide:Z,useValue:Qe,multi:!0},{provide:Oe,useValue:!0},{provide:X,useClass:Ye}];for(let n of r)e.push(...n.\u0275providers);return ae(e)}function Rn(r){return Ie(H.Interceptors,r.map(e=>({provide:Z,useValue:e,multi:!0})))}function bn(){return Ie(H.Fetch,[G,{provide:Me,useExisting:G},{provide:U,useExisting:G}])}export{g as a,B as b,Ue as c,wn as d,Rn as e,bn as f};
|