@duplicati/ngclient 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/spk-bold.woff2 +0 -0
- package/assets/spk.css +52 -1
- package/assets/spk.woff2 +0 -0
- package/{chunk-DVV65XF4.js → chunk-233ZLAAE.js} +1 -1
- package/{chunk-IWSFC3I6.js → chunk-2U3FDBUK.js} +1 -1
- package/chunk-4YLHRMHU.js +1 -0
- package/{chunk-VKHZOVLO.js → chunk-76NKH7M2.js} +1 -1
- package/{chunk-BLF5NVEW.js → chunk-7ZJVPVCQ.js} +1 -1
- package/{chunk-JZOCG4KQ.js → chunk-BM4SNLLS.js} +1 -1
- package/{chunk-UNJ66CNQ.js → chunk-CD2B55TH.js} +1 -1
- package/{chunk-G7YGQ54D.js → chunk-CZ3SCRNE.js} +1 -1
- package/{chunk-BRTUMDFG.js → chunk-EGT5S7A4.js} +1 -1
- package/{chunk-XKSLV5L6.js → chunk-FZNTP67Z.js} +1 -1
- package/{chunk-7QPDYG2R.js → chunk-GTXOAJP6.js} +1 -1
- package/{chunk-IKTCS2AI.js → chunk-HSEKUB7W.js} +1 -1
- package/{chunk-EW42J6OZ.js → chunk-HX66OULG.js} +1 -1
- package/chunk-IZCX3KB3.js +1 -0
- package/{chunk-KRXCULQR.js → chunk-JMQCQ5DN.js} +1 -1
- package/{chunk-5K2CQFVP.js → chunk-JZFEEATO.js} +1 -1
- package/{chunk-HZOYOR46.js → chunk-K5WD7D64.js} +1 -1
- package/{chunk-7P2RW65H.js → chunk-KAGR24YW.js} +1 -1
- package/{chunk-F4G2WAF6.js → chunk-LPGLGZ3U.js} +1 -1
- package/{chunk-RBT353UU.js → chunk-MWJ2FIZF.js} +1 -1
- package/{chunk-VFTEC7DW.js → chunk-NHJBFOCX.js} +1 -1
- package/{chunk-KHIKPOXK.js → chunk-NRGTIGVX.js} +1 -1
- package/{chunk-ONPMD5AY.js → chunk-QFULFMSU.js} +1 -1
- package/chunk-RABUX7PS.js +6 -0
- package/{chunk-ZYUKP5CS.js → chunk-S7IEXZZK.js} +1 -1
- package/{chunk-TRNWEHWA.js → chunk-TFFQHLQK.js} +1 -1
- package/{chunk-OEWX26UE.js → chunk-TQIMA3N7.js} +1 -1
- package/{chunk-O3XPW5NY.js → chunk-UBEY6W6N.js} +1 -1
- package/{chunk-ILPTEKIT.js → chunk-WFFJ2OJB.js} +1 -1
- package/{chunk-OYXHFCSL.js → chunk-XAAJBERP.js} +1 -1
- package/{chunk-Q4JQCY64.js → chunk-XCKJXWMS.js} +1 -1
- package/chunk-XMGHFJW7.js +1 -0
- package/{chunk-HDBZ3ISU.js → chunk-XS2FYREZ.js} +1 -1
- package/{chunk-NDQ5RFC6.js → chunk-YB5LG22R.js} +1 -1
- package/{chunk-3LITUWIH.js → chunk-YUZINGR7.js} +1 -1
- package/{chunk-HXGHAEWC.js → chunk-ZGTFPEDW.js} +1 -1
- package/{chunk-QI7DMSHZ.js → chunk-ZSCSUQR3.js} +1 -1
- package/{chunk-F7KC3CMY.js → chunk-ZVCXBMGJ.js} +1 -1
- package/index.html +2 -2
- package/{main-WZFPMKCC.js → main-2MESDK56.js} +1 -1
- package/package.json +1 -1
- package/styles-KC6U2UBP.css +1 -0
- package/chunk-3CRA7LUM.js +0 -1
- package/chunk-AGD6LHBQ.js +0 -1
- package/chunk-WF5PRSGZ.js +0 -6
- package/chunk-WX6WWOS5.js +0 -1
- package/styles-S3CXMNLR.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j}from"./chunk-KHIKPOXK.js";import{a as he}from"./chunk-BRTUMDFG.js";import{b as U}from"./chunk-MHZPUJQF.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-LFQXDL42.js";import{b as I}from"./chunk-TQE7OBBP.js";import{a as P,c as d}from"./chunk-ZRPJ3QZT.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-3CRA7LUM.js";import{pa as K}from"./chunk-JOBMLOGZ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-QDAWQNBQ.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
|
|
1
|
+
import{a as j}from"./chunk-NRGTIGVX.js";import{a as he}from"./chunk-EGT5S7A4.js";import{b as U}from"./chunk-MHZPUJQF.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-LFQXDL42.js";import{b as I}from"./chunk-TQE7OBBP.js";import{a as P,c as d}from"./chunk-ZRPJ3QZT.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-IZCX3KB3.js";import{pa as K}from"./chunk-JOBMLOGZ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-QDAWQNBQ.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-
|
|
1
|
+
import{e as a,f as b}from"./chunk-GTXOAJP6.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b,c as L,d as N,e as M,h as k,l as v,o as P,p as O,r as x}from"./chunk-LFQXDL42.js";import{c as S}from"./chunk-2K3CR66C.js";import"./chunk-TQE7OBBP.js";import{c as y}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as E,b as F,g as G,l as T}from"./chunk-
|
|
1
|
+
import{b,c as L,d as N,e as M,h as k,l as v,o as P,p as O,r as x}from"./chunk-LFQXDL42.js";import{c as S}from"./chunk-2K3CR66C.js";import"./chunk-TQE7OBBP.js";import{c as y}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as E,b as F,g as G,l as T}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as t,Db as i,E as c,Eb as p,Ra as m,Ub as w,Y as s,eb as g,hc as n,kb as f,tb as h,ua as l,vb as _,yb as C}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function A(r,e){r&1&&(t(0,"spk-alert",1),n(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new O,d=class r{#e=s(y);#t=s(S);failedLogin=l(!1);isLoading=l(!1);loginForm=u.group({user:u.control(""),pass:u.control("",L.required)});submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=g({type:r,selectors:[["app-login"]],decls:15,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],["type","warning"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,a){o&1&&(t(0,"form",0),w("submit",function(){return a.submit()}),f(1,A,2,0,"spk-alert",1),t(2,"div",2),p(3,"input",3),t(4,"spk-form-field")(5,"label",4),n(6," Password "),t(7,"a",5)(8,"spk-icon"),n(9,"question"),i()()(),p(10,"input",6),i(),t(11,"button",7),n(12," Login "),t(13,"spk-icon"),n(14,"arrow-right"),i()()()()),o&2&&(h("formGroup",a.loginForm),m(),C(a.failedLogin()?1:-1),m(10),_("loader",a.isLoading()))},dependencies:[x,k,b,N,M,v,P,T,E,G,F],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ia as De}from"./chunk-JOBMLOGZ.js";import{$a as P,Ab as G,Bb as K,Cb as r,Db as a,Eb as H,Gc as be,Hb as U,Ib as T,Mc as b,Oc as D,Qc as ue,Ra as h,S as se,Ta as ae,Ub as k,Va as Se,Vb as u,Wb as y,Xb as p,Y as M,Ya as V,Za as ke,_a as ce,da as f,dc as J,ea as m,eb as S,ec as F,fc as j,gb as ye,gc as xe,hc as v,ic as Oe,jc as N,kb as w,mc as Z,nc as ee,oa as re,oc as te,pa as W,pb as we,pc as de,qa as d,qc as $,ra as B,rc as R,ta as le,tb as q,tc as ie,ua as g,ub as A,uc as ne,vb as I,wb as pe,xb as Q,yb as O,zb as X}from"./chunk-QDAWQNBQ.js";import{a as L,b as z,c as Ce}from"./chunk-C6Q5SG76.js";var E=["*"],Pe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ae=["[icon]","[title]","*","[content]"];function He(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function je(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function Le(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning"),a())}function Be(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning-octagon"),a())}function We(n,c){n&1&&(r(0,"spk-icon",3),v(1,"check-circle"),a())}function qe(n,c){n&1&&(r(0,"spk-icon",3),v(1,"question"),a())}function Ne(n,c){if(n&1){let e=T();r(0,"spk-icon",7),k("click",function(){f(e);let i=u();return m(i.removeAlert())}),v(1,"plus"),a()}}var Qe=["dialogRef"];function $e(n,c){if(n&1){let e=T();r(0,"div",4),k("click",function(){f(e);let i=u();return m(i.isOpen.set(!1))}),a()}}var ze=["spk-button",""];var Ee=["triggerRef"],Ue=["popoverRef"],Ye=[[["","trigger",""]],"*"],Xe=["[trigger]","*"];var Ge=()=>({closeOnButton:!1,closeOnEsc:!0});var Me=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Ze=[[["label"]],[["input"]]],et=["label","input"],tt=["option"],it=["*",[["","menu",""]]],nt=["*","[menu]"];var ot=["optionsWrap"],Ve=()=>({closeOnButton:!1,closeOnEsc:!1}),fe=n=>({$implicit:n});function st(n,c){n&1&&U(0)}function rt(n,c){if(n&1&&w(0,st,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=R(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function lt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function at(n,c){if(n&1){let e=T();r(0,"spk-chip",12),w(1,rt,1,4,"ng-container")(2,lt,1,1),r(3,"spk-icon",13),k("click",function(i){f(e);let o=u().$index,s=u(3);return m(s.removeSelectedOptionByIndex(i,o))}),v(4,"x-bold"),a()()}if(n&2){let e=u(4),t=R(7);Q(e.selectClasses()),h(),O(t?1:2)}}function ct(n,c){n&1&&U(0)}function pt(n,c){if(n&1&&w(0,ct,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=R(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function dt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function ut(n,c){if(n&1&&w(0,pt,1,4,"ng-container")(1,dt,1,1),n&2){u(4);let e=R(7);O(e?0:1)}}function ht(n,c){if(n&1&&w(0,at,5,3,"spk-chip",11)(1,ut,2,1),n&2){let e=u(3);O(!e.asText()&&e.selectMultiple()?0:1)}}function ft(n,c){if(n&1&&G(0,ht,2,1,null,null,X),n&2){u(2);let e=R(4);K(e)}}function mt(n,c){if(n&1&&v(0),n&2){let e=u(2);N(" ",e.selectedLabels()," ")}}function gt(n,c){if(n&1&&w(0,ft,2,0)(1,mt,1,1),n&2){u();let e=R(1),t=R(3);O(e||t?0:1)}}function vt(n,c){n&1&&U(0)}function _t(n,c){if(n&1&&w(0,vt,1,0,"ng-container",15),n&2){u(2);let e=R(0);q("ngTemplateOutlet",e)}}function Ct(n,c){if(n&1&&v(0),n&2){let e,t=u(2);N(" ",(e=t.placeholder())!==null&&e!==void 0?e:""," ")}}function St(n,c){if(n&1&&w(0,_t,1,1,"ng-container")(1,Ct,1,1),n&2){u();let e=R(0);O(e?0:1)}}function kt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-down"),a())}function yt(n,c){n&1&&H(0,"spk-spinner",8)}function wt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"list-magnifying-glass"),a())}function xt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"magnifying-glass"),a())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",16),k("click",function(i){f(e);let o=u();return m(o.clear(i))}),v(1,"x-bold"),a()}}function bt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"check"),a())}function Dt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-up"),a())}function Tt(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=u().$index,t=u();Q(t.selectClasses()),I("active",t.isSelected(e))}}function Et(n,c){n&1&&U(0)}function Mt(n,c){if(n&1&&w(0,Et,1,0,"ng-container",14),n&2){let e=u().$implicit;u();let t=R(8);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function Vt(n,c){if(n&1&&v(0),n&2){let e=u().$implicit;N(" ",e," ")}}function It(n,c){if(n&1){let e=T();r(0,"li",17),k("click",function(){let i=f(e).$index,o=u();return m(o.selectOption(i))}),w(1,Tt,1,4,"spk-checkbox",18)(2,Mt,1,4,"ng-container")(3,Vt,1,1),a()}if(n&2){let e=c.$index,t=u(),i=R(8);I("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),h(),O(t.selectMultiple()?1:-1),h(),O(i?2:3)}}var Ft=["optionsRef"],Rt=["formFieldWrapper"],Pt=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],At=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),k("click",function(i){let o=f(e).$implicit,s=u(3);return m(s.toggleOption(o,i))}),v(1),r(2,"spk-icon"),v(3,"x-bold"),a()()}if(n&2){let e,t=c.$implicit,i=u(3);Q(i.chipClass()),h(),N(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function jt(n,c){if(n&1&&G(0,Ht,4,3,"spk-chip",11,X),n&2){let e=u(2);K(e.inputValue().split(","))}}function Lt(n,c){if(n&1&&(r(0,"div",6),w(1,jt,2,0),a()),n&2){let e=u();h(),O(e.inputValue().length>0?1:-1)}}function Bt(n,c){if(n&1&&(r(0,"div",6),v(1),a()),n&2){let e=u();h(),Oe(e._displayValue())}}function Wt(n,c){if(n&1){let e=T();r(0,"div",13),k("click",function(i){f(e);let o=u();return m(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),v(3,"x-bold"),a()()}}function qt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),v(3,"magnifying-glass"),a()())}function Nt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),v(3,"caret-down"),a()()),n&2){let e=u();I("open",e.isOpen())}}var Qt=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Ut(n,c){n&1&&H(0,"div",1,0)}function Yt(n,c){if(n&1){let e=T();r(0,"div",7),k("drop",function(i){f(e);let o=u();return m(o.drop(i))})("dragover",function(i){f(e);let o=u();return m(o.dragOver(i))})("dragenter",function(){f(e);let i=u();return m(i.dragEnter())})("dragleave",function(){f(e);let i=u();return m(i.dragLeave())}),a()}}function Xt(n,c){if(n&1){let e=T();r(0,"div",8),k("dragstart",function(i){f(e);let o=u();return m(o.dragStart(i))})("dragend",function(i){f(e);let o=u();return m(o.dragEnd(i))})("drag",function(i){f(e);let o=u();return m(o.drag(i))})("touchstart",function(i){f(e);let o=u();return m(o.touchStart(i))})("touchmove",function(i){f(e);let o=u();return m(o.touchMove(i))})("touchend",function(i){f(e);let o=u();return m(o.touchEnd(i))})("touchcancel",function(i){f(e);let o=u();return m(o.touchCancel(i))}),a()}}var Gt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Kt=["[table-header]","*","[table-no-rows]"];function Jt(n,c){n&1&&H(0,"spk-progress-bar",0)}function Zt(n,c){n&1&&(r(0,"div",1),p(1,2),a())}var ei=["tooltipRef"];var he=["bold","thin","light","fill"],oe=(()=>{class n{#e=M(B);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<he.length;t++)if(e.endsWith(he[t]))return he[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.currentClass)},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ti=(()=>{class n{constructor(){this._el=M(B),this.alertService=d(null),this.id=d(null),this.alertClasses=b(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ae,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(y(Pe),r(0,"div",1)(1,"div",2,0),p(3),a(),r(4,"div",2),de(5),w(6,He,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,Le,2,0,"spk-icon",3)(9,Be,2,0,"spk-icon",3)(10,We,2,0,"spk-icon",3)(11,qe,2,0,"spk-icon",3),a(),r(12,"div",4),p(13,1),p(14,2),a(),w(15,Ne,2,0,"spk-icon",5),r(16,"div",6),p(17,3),a()()),t&2){let o=xe(2);h(),A("display",o.children.length?"block":"none");let s=i.alertClasses();h(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),h(9),O(i.id()?15:-1)}},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})();function me(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ei=(()=>{class n{constructor(){this.alertHistory=g([]),this.alertHistoryIsOpen=g(!1),this.alertHistoryIsHidden=g(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=me();this.alertHistory.update(i=>[z(L({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>z(L({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>z(L({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>z(L({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ti={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ii=(()=>{class n{constructor(){this.dialogRef=V("dialogRef"),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=b(()=>L(L({},ti),this.options())),this.abortController=null,this.isOpenEffect=D(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&F(i.dialogRef,Qe,5),t&2&&j()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(y(),r(0,"dialog",1,0)(2,"div",2),p(3),a(),w(4,$e,1,0,"div",3),a()),t&2){let o,s,l,_;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(l=i.defaultOptionMerge().maxHeight)!==null&&l!==void 0?l:"")("height",(_=i.defaultOptionMerge().height)!==null&&_!==void 0?_:""),h(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=M(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#s(),_e=t||{},{data:s,closed:l}=_e,_=Ce(_e,["data","closed"]);this.compRef&&this.#i(),this.insertedCompRef=ue(e,{environmentInjector:i}),this.compRef=ue(ii,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let x=this.insertedCompRef.instance?.data,C=this.insertedCompRef.instance?.closed;if(s){if(le(x))this.insertedCompRef.setInput("data",s);else if(!le(x))throw new Error("data is not an input signal on the passed component")}C instanceof re&&(this.closedFieldSub=C.subscribe((...Re)=>{l?.(...Re),this.#i()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",_),this.compRef.instance.closed.subscribe(()=>ve());let Y=this;function ve(){C&&C instanceof re?C.emit(!1):l?.(void 0),Y.#i()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#i(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#i()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Vi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:ze,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ii=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(y(),r(0,"div",0)(1,"spk-icon",1),v(2,"check"),a(),r(3,"spk-icon",2),v(4,"minus"),a()(),p(5))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),Ie=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var si=["scroll","auto"],ri={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ge=(()=>{class n{constructor(){this.#e=M(be),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=d(!1),this.right=d(!1),this.markForCheck=d(null),this._above=g(this.above()),this._right=g(this.right()),this.disableOpenByClick=d(!1),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=b(()=>L(L({},ri),this.options())),this.triggerRef=V.required("triggerRef"),this.popoverRef=V.required("popoverRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.openAbort=null,this.openEffect=D(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#i(),i),window.addEventListener("resize",()=>this.#i(),i),this.#i()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=D(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(si.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#i(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#t,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(s=i,l=o+this.#t,x){let Y=e.top-t.height-this.#t;Y<0||(l=Y)}_&&(s=e.right-t.width,s<0&&(s=0));let C={left:s+"px",top:l+"px"};this.menuStyle.set(C)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,Ee,5),F(i.popoverRef,Ue,5)),t&2&&j(2)},hostVars:4,hostBindings:function(t,i){t&2&&I("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Xe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();y(Ye),r(0,"div",2,0),k("click",function(l){return f(o),m(i.toggleIsOpen(l))}),r(2,"div",3),p(3),a(),r(4,"button",4),v(5,"Open popover"),a()(),r(6,"div",5,1)(8,"div",6),k("click",function(l){return f(o),m(i.isOpen()&&i.eventClose(l))}),a(),p(9,1),a()}t&2&&(A("anchor-name",i.id()),h(6),pe(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[ni],encapsulation:2,changeDetection:0})}}return n})();var Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fe=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},l=function(){window.setTimeout(s,0)};var i=s,o=l;t.addEventListener("change",s),t.addEventListener("cut",l),t.addEventListener("paste",l),t.addEventListener("drop",l),t.addEventListener("keydown",l),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:Je,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(y(Ke),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),a(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),a(),r(11,"div",4)(12,"div",5),p(13,7),a(),r(14,"div",6),p(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})();var Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Pi=(()=>{class n{constructor(){this.above=d(!1),this.right=d(!1),this.keepClickedOptionActive=d(!1),this.isOpen=P(!1),this.closed=W(),this.activeOptionIndex=g(-1),this.options=ce("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=D(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,tt,4),t&2&&j()},hostBindings:function(t,i){t&1&&k("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:nt,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();y(it),r(0,"spk-popover",1,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close("fromPopover"))}),r(2,"div",2),k("click",function(){return f(o),m(i.isOpen.set(!0))}),p(3),a(),r(4,"div",3),k("click",function(){return f(o),m(i.close("active"))}),p(5,1),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ie(5,Ge)))},dependencies:[ge],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=d(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&A("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Ai=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(y(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ai=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{constructor(){this.#e=M(B),this.debugRef=d(null),this.options=d([]),this.label=d(),this.value=d(),this.placeholder=d(),this.inlineSearch=d(!1),this.lazySearch=d(!1),this.readonly=d(!1),this.isLoading=d(!1),this.isClearable=d(!1),this.asText=d(!1),this.selectMultiple=d(!1),this.optionTemplate=d(null),this.selectedOptionTemplate=d(null),this.placeholderTemplate=d(null),this.isValid=P(!1),this.selectedOptions=P([]),this.inlineTemplate=ke(ae),this.inputWrapRef=V.required("inputWrap"),this.optionsWrapRef=V.required("optionsWrap"),this.#t=g(null),this.isOpen=g(!1),this.selectedOptionIndices=g([]),this.focusedOptionIndex=g(-1),this.inputState=b(()=>this.selectedValues().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.prevInputValue=g(null),this.inputValue=g(""),this.inputValidityEffect=D(()=>{let e=this.inputValue(),t=this.options(),i=this.value();if(this.selectMultiple()){let l=e.split(",").map(_=>_.trim()).filter(_=>_!=="").every(_=>t.some(x=>{let C=i?this.#n(x,i):x;return _===C?.toString()}));this.isValid.set(l)}else{let s=t.some(l=>{let _=i?this.#n(l,i):l;return e===_?.toString()});this.isValid.set(s)}}),this.selectClasses=b(()=>this.#e.nativeElement.classList.toString()),this.#s=D(()=>{let e=this.#t();e&&(e.disabled=this.readonly())}),this.#i=b(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:i?t?e.filter(s=>(this.#n(s,t)??"").toString().toLowerCase().includes(o)):e.filter(s=>(s??"").toString().toLowerCase().includes(o)):e}),this.optionsSignal=b(()=>{let e=this.#i(),t=this.label(),i=e;return t&&(i=e.map(o=>this.#n(o,t))),i}),this.selectedLabels=b(()=>{let e=this.selectedOptions(),t=this.label();return t?e.map(i=>this.#n(i,t)).join(", "):e.join(", ")}),this.selectedValues=b(()=>{let e=this.selectedOptions(),t=this.value();return!t||e.length===0?e:e.map(i=>this.#n(i,t))}),this.selectedOptionIndicesEffect=D(()=>{let e=this.selectedValues(),t=this.#i(),i=this.value();if(this.selectMultiple())this.selectedOptionIndices.set(e.map(o=>t.findIndex(s=>(i?this.#n(s,i):s)===o)));else{let o=e[0],s=t.findIndex(l=>(i?this.#n(l,i):l)===o);this.selectedOptionIndices.set(s>-1?[s]:[])}}),this.selectedValueEffect=D(()=>{let e=this.selectedValues();this.#t()&&(this.selectMultiple()?this.#t().value=e.join(","):this.#t().value=e[0]?.toString()??"",this.#t().dispatchEvent(new Event("input")))}),this.#o=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e){let i=this.#e.nativeElement.querySelector("input");if(!i)return;i.autocomplete="off",i.addEventListener("input",()=>{this.inputValue.set(i.value)}),i.addEventListener("focus",()=>{this.readonly()||this.open()}),i.addEventListener("keydown",o=>{if((o.key==="Escape"||o.key==="Tab")&&this.close(),o.key==="Enter"&&this.selectOption(this.focusedOptionIndex()),o.key==="ArrowDown"){o.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.optionsSignal().length-1?0:s),this.#r()}if(o.key==="ArrowUp"){o.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.optionsSignal().length-1:s),this.#r()}if(!(this.lazySearch()||this.inlineSearch())){o.preventDefault();return}}),typeof i.value=="string"&&(this.selectMultiple()?this.selectOptionsByValue(i.value):this.selectOptionByValue(i.value)),this.#t.set(i),this.#o.disconnect();return}})}#e;#t;#s;#i;#o;ngOnInit(){typeof MutationObserver<"u"&&this.#o.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}#r(){setTimeout(()=>{this.optionsWrapRef().nativeElement.querySelector(".focused")?.scrollIntoView({block:"nearest",behavior:"smooth"})})}open(){if(this.isOpen.set(!0),!this.selectMultiple()){let e=this.selectedOptionIndices()[0];this.focusedOptionIndex.set(e!==void 0?e:0),this.#r()}(this.lazySearch()||this.inlineSearch())&&(this.prevInputValue.set(this.inputValue()),this.focusedOptionIndex.set(0),this.inputValue.set(""),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))))}selectOption(e){let t=this.#i()[e];if(!(this.isLoading()&&this.lazySearch()))if(this.prevInputValue.set(null),this.focusedOptionIndex.set(e),this.selectMultiple()){let i=this.selectedOptionIndices(),o=i.indexOf(e);o>-1?(i.splice(o,1),this.selectedOptionIndices.set([...i]),this.selectedOptions.set(i.map(s=>this.#i()[s]))):(this.selectedOptionIndices.set([...i,e]),this.selectedOptions.set([...this.selectedOptions(),t]))}else this.selectedOptions.set([t]),this.isOpen.set(!1)}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.set(this.selectedOptions().filter((i,o)=>o!==t)),this.selectedOptionIndices.set(this.selectedOptionIndices().filter((i,o)=>o!==t))}isSelected(e){return this.selectedOptionIndices().includes(e)}selectOptionByValue(e){let t=this.value(),i=this.options().findIndex(o=>t?this.#n(o,t)?.toString()===e:o?.toString()===e);i>-1&&this.selectOption(i)}selectOptionsByValue(e){let t=this.value();e.split(",").map(o=>o.trim()).filter(o=>o!=="").forEach(o=>{let s=this.options().findIndex(l=>t?this.#n(l,t)?.toString()===o:l?.toString()===o);s>-1&&this.selectOption(s)})}close(){this.isOpen.set(!1);let e=this.prevInputValue();(this.lazySearch()||this.inlineSearch())&&e!==null&&e!==void 0&&(this.selectMultiple()?this.selectOptionsByValue(e):this.selectOptionByValue(e))}ngOnDestroy(){typeof MutationObserver<"u"&&this.#o.disconnect()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null)}#n(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&J(o,i.inlineTemplate,ae,5),t&2&&j()},viewQuery:function(t,i){t&1&&(F(i.inputWrapRef,Me,5),F(i.optionsWrapRef,ot,5)),t&2&&j(2)},hostVars:2,hostBindings:function(t,i){t&2&&I("multiple",i.selectMultiple())},inputs:{debugRef:[1,"debugRef"],options:[1,"options"],label:[1,"label"],value:[1,"value"],placeholder:[1,"placeholder"],inlineSearch:[1,"inlineSearch"],lazySearch:[1,"lazySearch"],readonly:[1,"readonly"],isLoading:[1,"isLoading"],isClearable:[1,"isClearable"],asText:[1,"asText"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isValid:[1,"isValid"],selectedOptions:[1,"selectedOptions"]},outputs:{isValid:"isValidChange",selectedOptions:"selectedOptionsChange"},ngContentSelectors:et,decls:30,vars:20,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();y(Ze),de(0)(1)(2)(3)(4)(5)(6)(7)(8),r(9,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close())}),r(11,"spk-form-field",4),k("click",function(){return f(o),m(i.open())}),p(12,0,["ngProjectAs","label",5,["label"]]),r(13,"div",5,1)(15,"div",6),w(16,gt,2,1)(17,St,2,1),a(),p(18,1),a(),w(19,kt,2,0,"spk-icon",7)(20,yt,1,0,"spk-spinner",8)(21,wt,2,0,"spk-icon",7)(22,xt,2,0,"spk-icon",7)(23,Ot,2,0,"spk-icon",7)(24,bt,2,0,"spk-icon",7)(25,Dt,2,0,"spk-icon",7),a(),r(26,"div",9,2),G(28,It,4,6,"li",10,X),a()()}if(t&2){$(i.placeholderTemplate()),h();let o=$(i.optionTemplate()),s=i.selectedOptionTemplate();h(2);let l=$(i.inlineTemplate());h();let _=$(i.selectedOptions()),x=(i.inlineSearch()||i.lazySearch())&&i.isOpen()&&!i.isValid(),C=i.inputState();h(3),$(s||o||l),h(),$(o||l),h(),Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(19,Ve)),h(2),Q(i.readonly()?"readonly":""),I("autosize",i.selectMultiple()),h(2),I("show-search-text",x),h(2),I("is-selected",C==="selected"),h(),O(_.length>0?16:17),h(3),O(C==="closed"?19:C==="loading"?20:C==="open-searching"?21:C==="searching"?22:C==="selected"&&i.isClearable()?23:C==="selected"&&!i.isClearable()?24:25),h(9),K(i.optionsSignal())}},dependencies:[De,ge,Fe,oe,oi,ai,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=M(B),this.value=d(null),this.#t=D(()=>{this.#e.nativeElement.value=this.value()})}#e;#t;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ci=["primary","accent","warn","error","success"],ji=(()=>{class n{constructor(){this.#e=M(Se),this.#t=M(B),this.optionsRef=V("optionsRef"),this.options=ce(Te),this.formFieldWrapperRef=V.required("formFieldWrapper"),this.inputWrapRef=V.required("inputWrap"),this.inputValue=P(""),this.readonly=d(!1),this.isFreeText=d(!1),this.selectMultiple=d(!1),this.hideClearButton=d(!1),this.displayValue=d(""),this.displayFn=d(e=>`${e}`),this.above=d(!1),this.right=d(!1),this.change=W(),this.#s=g(!1),this.#i=g(null),this.#o=g(null),this.#r=g(!1),this.#n=g(-1),this.isOpen=g(!1),this._isOpen=g(!1),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>ci.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=D(()=>{this.#s();let e=this.#t.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#a()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=D(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=D(()=>{this.isOpen()&&this.#g()}),this.#h=D(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#l=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#t;#s;#i;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#l.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#i()?.blur(),this.#m()}open(e){e.preventDefault(),!this.isOpen()&&(this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#a())}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#a(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#l;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#l.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,Te,4),t&2&&j()},viewQuery:function(t,i){t&1&&(F(i.optionsRef,Ft,5),F(i.formFieldWrapperRef,Rt,5),F(i.inputWrapRef,Me,5)),t&2&&j(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:At,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();y(Pt),r(0,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close())}),r(2,"spk-form-field",4),k("click",function(l){return f(o),m(i.open(l))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),w(6,Lt,2,1,"div",6)(7,Bt,2,1,"div",6),p(8,1),a(),w(9,Wt,4,0,"div",7)(10,qt,4,0,"div",8)(11,Nt,4,2,"div",9),a(),r(12,"div",10,2),p(14,2),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(7,Ve)),h(2),Q(i.readonly()?"readonly":""),h(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),h(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Fe,oe,Ie,ge],encapsulation:2,changeDetection:0})}}return n})(),Li=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=d(!1),this.isOpen=P(!1),this.type=d(""),this.dragImageElement=V.required("dragImageElement"),this.dragIsEnding=g(!1),this.dragIsOnScreen=g(!0),this.isDragging=g(!1),this.dragPositionX=g(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=D(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&F(i.dragImageElement,Qt,5),t&2&&j()},hostVars:10,hostBindings:function(t,i){t&2&&I("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:zt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(y($t),w(0,Ut,2,0,"div",1)(1,Yt,1,0,"div",2),r(2,"div",3),p(3),a(),r(4,"div",4),w(5,Xt,1,0,"div",5),r(6,"div",6),p(7,1),a(),r(8,"main"),p(9,2),a()()),t&2&&(O(i.type()==="overlay"?0:-1),h(),O(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),A("transform",i.draggingStyle()),h(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Bi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Wi=(()=>{class n{constructor(){this.tableColumns=d([]),this.loading=d(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=d([]),this.dataChange=W(),this.#e=null,this.#t=g(!1),this.sortByColumn=P(null),this.e=D(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,l)=>{let _=s[t],x=l[t],C=0;return typeof _=="number"&&typeof x=="number"&&(C=_-x),_ instanceof Date&&x instanceof Date&&(C=_.getTime()-x.getTime()),typeof _=="string"&&typeof x=="string"&&(C=_.localeCompare(x,void 0,{sensitivity:"base"})),i?-C:C});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&A("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Kt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(y(Gt),r(0,"thead"),p(1),w(2,Jt,1,0,"spk-progress-bar",0),a(),r(3,"tbody"),p(4,1),a(),w(5,Zt,2,0,"div",1)),t&2&&(h(2),O(i.loading()?2:-1),h(3),O(i.loading()?-1:5))},dependencies:[li],encapsulation:2,changeDetection:0})}}return n})(),qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(y(),r(0,"div",0),H(1,"div",1),a(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=d(!1),this.above=d(!1),this.right=d(!1),this._above=g(this.above()),this._right=g(this.right()),this.message=d.required(),this.isOpen=P(!1),this.closed=W(),this.triggerRef=V.required("triggerRef"),this.tooltipRef=V.required("tooltipRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=D(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#e,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(l=C)}else x&&(l=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else _&&(l=x?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:l+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,Ee,5),F(i.tooltipRef,ei,5)),t&2&&j(2)},hostVars:6,hostBindings:function(t,i){t&2&&I("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();y(),r(0,"div",2,0),k("mouseover",function(){return f(o),m(i.isOpen.set(!0))})("mouseout",function(){return f(o),m(i.isOpen.set(!1))}),p(2),a(),r(3,"div",3,1),v(5),a()}t&2&&(A("anchor-name",i.id()),h(3),pe(i.menuStyle()),A("position-anchor",i.id()),h(2),N(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{constructor(){this.filesOver=g(!1),this.filesDropped=W()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ye({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&k("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&I("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{oe as a,Ti as b,Ei as c,ii as d,Mi as e,Vi as f,ni as g,Ii as h,oi as i,Ie as j,Fi as k,Fe as l,Ri as m,Pi as n,li as o,Ai as p,Hi as q,Te as r,ji as s,Li as t,Bi as u,Wi as v,qi as w,Ni as x,Qi as y,$i as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c,d as A,e as d}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{w as O}from"./chunk-
|
|
1
|
+
import{b as c,d as A,e as d}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{w as O}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as e,Db as t,Eb as T,Qb as o,eb as g}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var l=class a{static \u0275fac=function(n){return new(n||a)};static \u0275cmp=g({type:a,selectors:[["app-about"]],decls:13,vars:0,consts:()=>{let i;i=$localize`General`;let n;n=$localize`Changelog`;let r;r=$localize`Libraries`;let s;s=$localize`System info`;let u;return u=$localize`Logs`,[i,n,r,s,u,[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"]]},template:function(n,r){n&1&&(e(0,"spk-tabs",5)(1,"button",6),o(2,0),t(),e(3,"button",7),o(4,1),t(),e(5,"button",8),o(6,2),t(),e(7,"button",9),o(8,3),t(),e(9,"button",10),o(10,4),t()(),e(11,"section"),T(12,"router-outlet"),t())},dependencies:[O,c,A,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as a,n as b}from"./chunk-
|
|
1
|
+
import{m as a,n as b}from"./chunk-RABUX7PS.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-PTG2C2YJ.js";import"./chunk-TQE7OBBP.js";import{a as w,m as D}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-PTG2C2YJ.js";import"./chunk-TQE7OBBP.js";import{a as w,m as D}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import{ia as A}from"./chunk-JOBMLOGZ.js";import{Ab as I,Ac as F,Bb as M,Cb as c,Db as r,Hb as u,Ib as v,Mc as $,Qb as P,Ra as l,Ub as k,Vb as s,Y as y,da as O,ea as x,eb as T,gc as C,hc as p,ic as E,kb as a,tb as d,ua as m,ub as h,uc as _,vb as f,vc as N,yb as g}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var L=(e,t)=>t.id,V=e=>({children:e,level:0}),R=e=>({$implicit:e}),j=(e,t)=>({children:e,level:t});function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,j,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,L),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,V,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as G}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as L}from"./chunk-TQE7OBBP.js";import{d as E}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,Y as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,tb as u,tc as g,uc as v,yb as F,zb as N}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as oe}from"./chunk-MHZPUJQF.js";import{a as G}from"./chunk-ZOMDTRAX.js";import{a as L,b as K,c as S,d as U,e as z,h as j,l as V,o as q,p as H,r as Q}from"./chunk-LFQXDL42.js";import{b as v}from"./chunk-TQE7OBBP.js";import{a as b,c as w,d as B}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as W,f as J,g as Y,l as Z,x as ee}from"./chunk-
|
|
1
|
+
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as oe}from"./chunk-MHZPUJQF.js";import{a as G}from"./chunk-ZOMDTRAX.js";import{a as L,b as K,c as S,d as U,e as z,h as j,l as V,o as q,p as H,r as Q}from"./chunk-LFQXDL42.js";import{b as v}from"./chunk-TQE7OBBP.js";import{a as b,c as w,d as B}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as W,f as J,g as Y,l as Z,x as ee}from"./chunk-IZCX3KB3.js";import{c as h}from"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as r,Db as n,E,Eb as a,M,Mc as O,Ob as l,Pb as c,Qb as f,Ra as s,Ub as P,Y as _,eb as I,hc as k,kb as x,kc as y,tb as C,tc as X,ua as g,vb as T,yb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var ne=()=>["/"];function ie(d,e){d&1&&(r(0,"spk-form-field")(1,"label",17),f(2,6),n(),a(3,"input",18),n(),r(4,"spk-form-field")(5,"label",19),f(6,7),n(),a(7,"input",20),n())}var u=new H,N=class d{#o=_(v);#e=_(b);#t=_(w);#n=_(h);#i=_(G);isExporting=g(!1);exportType=g("file");exportedCmd=g(null);exportForm=u.group({exportPasswords:u.control(!0),encryption:u.control(!1,[S.required,te()]),password:u.control("",[R(e=>e?.value.encryption,[S.required])]),repeatPassword:u.control("",[R(e=>e?.value.encryption,[S.required])])});exportFormSignal=oe(this.exportForm.valueChanges);encryptionFieldSignal=O(()=>this.exportFormSignal()?.encryption??!1);activeBackup=O(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#o.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(M(e=>{let i=t=>{let o=Object.entries(t);return o?"?"+o.map(([F,m])=>`${F}=${m}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${i({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),E(()=>this.isExporting.set(!1))).subscribe({next:e=>{let t=this.activeBackup()?.Backup?.Name??"Backup",o=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${t}.${o}`),this.#t.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#o.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(E(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,i){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.href=t,o.download=i,o.click(),window.URL.revokeObjectURL(t)}static \u0275fac=function(i){return new(i||d)};static \u0275cmp=I({type:d,selectors:[["app-export"]],decls:27,vars:12,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;i=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let o;o=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let F;F=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let m;m=$localize` Encrypt file ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let A;A=$localize`Password`;let $;return $=$localize`Repeat password`,[e,i,t,o,F,m,A,$,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]]},template:function(i,t){if(i&1&&(r(0,"header")(1,"h3"),k(2," Export backup configuration "),r(3,"div",8)(4,"button",9),l(5,0),a(6,"spk-icon"),c(),n(),r(7,"button",10),P("click",function(){return t.submit()}),l(8,1),a(9,"spk-icon"),c(),n()()(),r(10,"p"),k(11),n()(),r(12,"form",11)(13,"spk-button-group")(14,"button",12),P("click",function(){return t.exportType.set("cmd")}),l(15,2),a(16,"spk-icon"),c(),n(),r(17,"button",12),P("click",function(){return t.exportType.set("file")}),l(18,3),a(19,"spk-icon"),c(),n()(),r(20,"spk-toggle",13),l(21,4),a(22,"input",14),c(),n(),r(23,"spk-toggle",15),l(24,5),a(25,"input",16),c(),n(),x(26,ie,8,0),n()),i&2){let o;s(4),C("routerLink",X(11,ne)),s(3),T("loading",t.isExporting()),s(4),y("#",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.ID,": ",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.Name,""),s(),C("formGroup",t.exportForm),s(2),T("active",t.exportType()==="cmd"),s(3),T("active",t.exportType()==="file"),s(9),D(t.encryptionFieldSignal()?26:-1)}},dependencies:[Q,j,K,L,U,z,V,q,B,J,ee,W,Z,Y],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae}from"./chunk-MHZPUJQF.js";import{a as te}from"./chunk-
|
|
1
|
+
import{b as ae}from"./chunk-MHZPUJQF.js";import{a as te}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as j}from"./chunk-ZOMDTRAX.js";import{b as H,d as J,g as Q,q as Y}from"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as W}from"./chunk-TQE7OBBP.js";import{a as z,d as q}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as Z,g as x,l as ee}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{C as g,Cb as i,Db as a,E as u,Eb as l,M as k,Mc as C,Ob as r,Oc as h,Pb as p,Qb as T,Ra as s,Rb as L,Sb as U,Ub as A,Y as D,eb as y,hc as E,kb as v,mc as w,nc as X,oc as V,p as O,tb as F,ua as c,vb as P,xb as G,yb as K}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),E(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),E(1,"warning"),a())}var m=class S{#a=D(z);#i=D(j);#e=D(W);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=C(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=C(()=>this.lastValidatedPath()===this.backupFilePath());backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:15,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[Y,H,J,Q,te,x,ee,Z,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ke}from"./chunk-OEWX26UE.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as Me}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as Se}from"./chunk-TQE7OBBP.js";import{d as R}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as H,g as b,h as Ee,j as ge,k as Fe,n as Ce,o as Te}from"./chunk-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as ce,Bb as re,Cb as o,Db as i,Eb as r,Fb as F,Gb as C,Ib as pe,Ob as s,Pb as u,Qb as p,Ra as c,Rb as se,Sb as ue,Ub as P,Vb as d,Y as I,da as k,ea as O,eb as ie,hc as S,jc as N,kb as g,qb as _e,rb as ae,tb as E,tc as D,uc as T,vb as A,xc as $,yb as m,yc as f,zb as le,zc as de}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var Oe=()=>[R,b,H,ge,Fe,Ce,import("./chunk-4OE5GJEY.js").then(e=>e.DatePipe),import("./chunk-TL325ZMY.js").then(e=>e.DurationFormatPipe),import("./chunk-XLU5TCBE.js").then(e=>e.BytesPipe)],me=()=>["/add-backup"],Pe=()=>["/restore"],Ne=e=>["/backup",e],$e=e=>["/restore",e],fe=e=>["/backup",e,"export"],Ie=e=>["/backup",e,"database"],Ae=e=>["/backup",e,"commandline"],De=e=>["/backup",e,"log"];function Re(e,_){if(e&1&&(S(0," - "),F(1),p(2,21),C(),S(3),$(4,"durationFormat")),e&2){let t=d().$implicit;c(3),N(" ",f(4,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDuration)," ")}}function He(e,_){e&1&&(F(0),p(1,22),C())}function be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.SourceFilesSize)," ")}}function xe(e,_){e&1&&(F(0),p(1,23),C())}function Be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.TargetFilesSize)," ")}}function Le(e,_){e&1&&(F(0),p(1,24),C())}function ye(e,_){if(e&1&&(o(0,"spk-chip",37),p(1,25),i()),e&2){let t=d().$implicit;c(),se(t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount),ue(1)}}function Ge(e,_){e&1&&(o(0,"spk-chip",38),p(1,26),i())}function he(e,_){if(e&1){let t=pe();o(0,"div",36)(1,"div",31)(2,"h3"),S(3),o(4,"spk-icon"),S(5,"database"),i()(),o(6,"p")(7,"span"),p(8,8),i(),S(9),$(10,"date"),g(11,Re,5,3)(12,He,2,0,"ng-container"),i(),o(13,"p")(14,"span"),p(15,9),i(),g(16,be,2,3)(17,xe,2,0,"ng-container"),i(),o(18,"p")(19,"span"),p(20,10),i(),g(21,Be,2,3)(22,Le,2,0,"ng-container"),i()(),g(23,ye,2,1,"spk-chip",37)(24,Ge,2,0,"spk-chip",38),o(25,"div",39)(26,"button",40),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.startBackup(l.Backup==null?null:l.Backup.ID))}),s(27,11),r(28,"spk-icon"),u(),i(),o(29,"button",41)(30,"spk-icon"),S(31,"pencil-simple"),i()(),o(32,"spk-menu",42)(33,"button",32)(34,"spk-icon"),S(35,"dots-three-vertical"),i()(),F(36,43),o(37,"h3",44),S(38,"Operations"),i(),o(39,"button",45,0),s(41,12),r(42,"spk-icon"),u(),i(),o(43,"button",45,0),s(45,13),r(46,"spk-icon"),u(),i(),o(47,"button",46,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.deleteBackup(l.Backup==null?null:l.Backup.ID))}),s(49,14),r(50,"spk-icon"),u(),i(),r(51,"spk-divider"),o(52,"h3",44),S(53,"Advanced"),i(),o(54,"button",45,0),s(56,15),r(57,"spk-icon"),u(),i(),o(58,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(60,16),r(61,"spk-icon"),u(),i(),o(62,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(64,17),r(65,"spk-icon"),u(),i(),o(66,"button",45,0),s(68,18),r(69,"spk-icon"),u(),i(),r(70,"spk-divider"),o(71,"h3",44),S(72,"Reporting"),i(),o(73,"button",45,0),s(75,19),r(76,"spk-icon"),u(),i(),o(77,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(79,20),r(80,"spk-icon"),u(),i(),C(),i()()()}if(e&2){let t,n=_.$implicit,l=d(3);c(3),N(" ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:l.MISSING_BACKUP_NAME," "),c(6),N(" ",de(10,17,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,"short")," "),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?11:12),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?16:17),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?21:22),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?23:24),c(3),A("loader",l.startingBackup()),c(3),E("routerLink",T(20,Ne,n.Backup==null?null:n.Backup.ID)),c(3),E("right",!0),c(7),E("routerLink",T(22,$e,n.Backup==null?null:n.Backup.ID)),c(4),E("routerLink",T(24,fe,n.Backup==null?null:n.Backup.ID)),c(4),A("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(26,Ie,n.Backup==null?null:n.Backup.ID)),c(12),E("routerLink",T(28,Ae,n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(30,De,n.Backup==null?null:n.Backup.ID))}}function ve(e,_){if(e&1&&ce(0,he,81,32,"div",36,le),e&2){let t=d(2);re(t.backups())}}function Xe(e,_){e&1&&(F(0),p(1,27),C())}function we(e,_){if(e&1&&g(0,ve,2,0)(1,Xe,2,0,"ng-container"),e&2){let t=d();m(t.backups().length?0:1)}}function ze(e,_){e&1&&(o(0,"div",48),r(1,"spk-progress-bar",49),o(2,"div",31)(3,"h3"),p(4,28),i()()())}var x=class e{#e=I(Me);#n=I(Se);MISSING_BACKUP_NAME=$localize`Backup name missing`;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(_){this.#e.startBackup(_)}deleteBackup(_){window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(_)}verifyFiles(_){this.#n.postApiV1BackupByIdVerify({id:_}).subscribe()}compressBackup(_){this.#n.postApiV1BackupByIdCompact({id:_}).subscribe()}createErrorReport(_){this.#n.postApiV1BackupByIdCreatereport({id:_}).subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ie({type:e,selectors:[["app-home"]],decls:31,vars:5,consts:()=>{let _;_=$localize`Backups`;let t;t=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let M;M=$localize`Restores allow you to restore your data from the cloud.`;let B;B=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let L;L=$localize`My backups`;let y;y=$localize`Last successful backup:`;let G;G=$localize`Source:`;let h;h=$localize`Destination:`;let v;v=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let X;X=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let w;w=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let z;z=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let K;K=$localize`${"\uFFFD#57\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let V;V=$localize`${"\uFFFD#61\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#61\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let j;j=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let q;q=$localize`${"\uFFFD#69\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#69\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let U;U=$localize`${"\uFFFD#76\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#76\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let W;W=$localize`${"\uFFFD#80\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#80\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let J;J=$localize`took`;let Q;Q=$localize`N/A`;let Y;Y=$localize`N/A`;let Z;Z=$localize`N/A`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ne;ne=$localize`No version yet`;let te;te=$localize`No backups founds`;let oe;return oe=$localize`Loading backups...`,[["option",""],_,t,n,l,M,B,L,y,G,h,v,X,w,z,K,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["menu",""],["title",""],["type","button",3,"routerLink"],[3,"click"],["type","button",3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(r(0,"app-status-bar"),o(1,"section")(2,"header")(3,"spk-card",29),r(4,"img",30),o(5,"div",31)(6,"h3"),p(7,1),i(),o(8,"p"),p(9,2),i()(),o(10,"button",32),s(11,3),r(12,"spk-icon"),u(),i()(),o(13,"spk-card",29),r(14,"img",33),o(15,"div",31)(16,"h3"),p(17,4),i(),o(18,"p"),p(19,5),i()(),o(20,"button",32),s(21,6),r(22,"spk-icon"),u(),i()()(),o(23,"div",34)(24,"h2"),p(25,7),i(),o(26,"div",35),g(27,we,2,1)(28,ze,5,0),_e(29,27,Oe,null,28),i()()()),t&2&&(c(3),E("routerLink",D(3,me)),c(10),E("routerLink",D(4,Pe)),c(16),ae(!n.backupsLoading()))},dependencies:[R,ke,Ee,b,H,Te],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{x as default};
|
|
1
|
+
import{a as ke}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as Me}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as Se}from"./chunk-TQE7OBBP.js";import{d as R}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as H,g as b,h as Ee,j as ge,k as Fe,n as Ce,o as Te}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as ce,Bb as re,Cb as o,Db as i,Eb as r,Fb as F,Gb as C,Ib as pe,Ob as s,Pb as u,Qb as p,Ra as c,Rb as se,Sb as ue,Ub as P,Vb as d,Y as I,da as k,ea as O,eb as ie,hc as S,jc as N,kb as g,qb as _e,rb as ae,tb as E,tc as D,uc as T,vb as A,xc as $,yb as m,yc as f,zb as le,zc as de}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var Oe=()=>[R,b,H,ge,Fe,Ce,import("./chunk-4OE5GJEY.js").then(e=>e.DatePipe),import("./chunk-TL325ZMY.js").then(e=>e.DurationFormatPipe),import("./chunk-XLU5TCBE.js").then(e=>e.BytesPipe)],me=()=>["/add-backup"],Pe=()=>["/restore"],Ne=e=>["/backup",e],$e=e=>["/restore",e],fe=e=>["/backup",e,"export"],Ie=e=>["/backup",e,"database"],Ae=e=>["/backup",e,"commandline"],De=e=>["/backup",e,"log"];function Re(e,_){if(e&1&&(S(0," - "),F(1),p(2,21),C(),S(3),$(4,"durationFormat")),e&2){let t=d().$implicit;c(3),N(" ",f(4,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDuration)," ")}}function He(e,_){e&1&&(F(0),p(1,22),C())}function be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.SourceFilesSize)," ")}}function xe(e,_){e&1&&(F(0),p(1,23),C())}function Be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.TargetFilesSize)," ")}}function Le(e,_){e&1&&(F(0),p(1,24),C())}function ye(e,_){if(e&1&&(o(0,"spk-chip",37),p(1,25),i()),e&2){let t=d().$implicit;c(),se(t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount),ue(1)}}function Ge(e,_){e&1&&(o(0,"spk-chip",38),p(1,26),i())}function he(e,_){if(e&1){let t=pe();o(0,"div",36)(1,"div",31)(2,"h3"),S(3),o(4,"spk-icon"),S(5,"database"),i()(),o(6,"p")(7,"span"),p(8,8),i(),S(9),$(10,"date"),g(11,Re,5,3)(12,He,2,0,"ng-container"),i(),o(13,"p")(14,"span"),p(15,9),i(),g(16,be,2,3)(17,xe,2,0,"ng-container"),i(),o(18,"p")(19,"span"),p(20,10),i(),g(21,Be,2,3)(22,Le,2,0,"ng-container"),i()(),g(23,ye,2,1,"spk-chip",37)(24,Ge,2,0,"spk-chip",38),o(25,"div",39)(26,"button",40),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.startBackup(l.Backup==null?null:l.Backup.ID))}),s(27,11),r(28,"spk-icon"),u(),i(),o(29,"button",41)(30,"spk-icon"),S(31,"pencil-simple"),i()(),o(32,"spk-menu",42)(33,"button",32)(34,"spk-icon"),S(35,"dots-three-vertical"),i()(),F(36,43),o(37,"h3",44),S(38,"Operations"),i(),o(39,"button",45,0),s(41,12),r(42,"spk-icon"),u(),i(),o(43,"button",45,0),s(45,13),r(46,"spk-icon"),u(),i(),o(47,"button",46,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.deleteBackup(l.Backup==null?null:l.Backup.ID))}),s(49,14),r(50,"spk-icon"),u(),i(),r(51,"spk-divider"),o(52,"h3",44),S(53,"Advanced"),i(),o(54,"button",45,0),s(56,15),r(57,"spk-icon"),u(),i(),o(58,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(60,16),r(61,"spk-icon"),u(),i(),o(62,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(64,17),r(65,"spk-icon"),u(),i(),o(66,"button",45,0),s(68,18),r(69,"spk-icon"),u(),i(),r(70,"spk-divider"),o(71,"h3",44),S(72,"Reporting"),i(),o(73,"button",45,0),s(75,19),r(76,"spk-icon"),u(),i(),o(77,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(79,20),r(80,"spk-icon"),u(),i(),C(),i()()()}if(e&2){let t,n=_.$implicit,l=d(3);c(3),N(" ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:l.MISSING_BACKUP_NAME," "),c(6),N(" ",de(10,17,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,"short")," "),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?11:12),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?16:17),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?21:22),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?23:24),c(3),A("loader",l.startingBackup()),c(3),E("routerLink",T(20,Ne,n.Backup==null?null:n.Backup.ID)),c(3),E("right",!0),c(7),E("routerLink",T(22,$e,n.Backup==null?null:n.Backup.ID)),c(4),E("routerLink",T(24,fe,n.Backup==null?null:n.Backup.ID)),c(4),A("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(26,Ie,n.Backup==null?null:n.Backup.ID)),c(12),E("routerLink",T(28,Ae,n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(30,De,n.Backup==null?null:n.Backup.ID))}}function ve(e,_){if(e&1&&ce(0,he,81,32,"div",36,le),e&2){let t=d(2);re(t.backups())}}function Xe(e,_){e&1&&(F(0),p(1,27),C())}function we(e,_){if(e&1&&g(0,ve,2,0)(1,Xe,2,0,"ng-container"),e&2){let t=d();m(t.backups().length?0:1)}}function ze(e,_){e&1&&(o(0,"div",48),r(1,"spk-progress-bar",49),o(2,"div",31)(3,"h3"),p(4,28),i()()())}var x=class e{#e=I(Me);#n=I(Se);MISSING_BACKUP_NAME=$localize`Backup name missing`;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(_){this.#e.startBackup(_)}deleteBackup(_){window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(_)}verifyFiles(_){this.#n.postApiV1BackupByIdVerify({id:_}).subscribe()}compressBackup(_){this.#n.postApiV1BackupByIdCompact({id:_}).subscribe()}createErrorReport(_){this.#n.postApiV1BackupByIdCreatereport({id:_}).subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ie({type:e,selectors:[["app-home"]],decls:31,vars:5,consts:()=>{let _;_=$localize`Backups`;let t;t=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let M;M=$localize`Restores allow you to restore your data from the cloud.`;let B;B=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let L;L=$localize`My backups`;let y;y=$localize`Last successful backup:`;let G;G=$localize`Source:`;let h;h=$localize`Destination:`;let v;v=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let X;X=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let w;w=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let z;z=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let K;K=$localize`${"\uFFFD#57\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let V;V=$localize`${"\uFFFD#61\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#61\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let j;j=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let q;q=$localize`${"\uFFFD#69\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#69\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let U;U=$localize`${"\uFFFD#76\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#76\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let W;W=$localize`${"\uFFFD#80\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#80\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let J;J=$localize`took`;let Q;Q=$localize`N/A`;let Y;Y=$localize`N/A`;let Z;Z=$localize`N/A`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ne;ne=$localize`No version yet`;let te;te=$localize`No backups founds`;let oe;return oe=$localize`Loading backups...`,[["option",""],_,t,n,l,M,B,L,y,G,h,v,X,w,z,K,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["menu",""],["title",""],["type","button",3,"routerLink"],[3,"click"],["type","button",3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(r(0,"app-status-bar"),o(1,"section")(2,"header")(3,"spk-card",29),r(4,"img",30),o(5,"div",31)(6,"h3"),p(7,1),i(),o(8,"p"),p(9,2),i()(),o(10,"button",32),s(11,3),r(12,"spk-icon"),u(),i()(),o(13,"spk-card",29),r(14,"img",33),o(15,"div",31)(16,"h3"),p(17,4),i(),o(18,"p"),p(19,5),i()(),o(20,"button",32),s(21,6),r(22,"spk-icon"),u(),i()()(),o(23,"div",34)(24,"h2"),p(25,7),i(),o(26,"div",35),g(27,we,2,1)(28,ze,5,0),_e(29,27,Oe,null,28),i()()()),t&2&&(c(3),E("routerLink",D(3,me)),c(10),E("routerLink",D(4,Pe)),c(16),ae(!n.backupsLoading()))},dependencies:[R,ke,Ee,b,H,Te],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ce}from"./chunk-PTG2C2YJ.js";import{q as de}from"./chunk-LFQXDL42.js";import{b as ae}from"./chunk-TQE7OBBP.js";import{a as pe,f as ue,l as he,m as _e,o as fe,x as ge}from"./chunk-3CRA7LUM.js";import{ia as le}from"./chunk-JOBMLOGZ.js";import{Ab as J,Ac as se,Bb as Y,Cb as p,Db as h,E as B,Eb as Z,Hb as G,Ib as k,Mc as W,Oc as w,Qb as R,Ra as g,Rb as ee,Sb as te,Ub as y,Vb as u,Wb as ne,Xb as I,Y as D,Ya as H,da as F,ea as N,eb as K,ec as q,fc as ie,gc as X,hc as M,jc as re,kb as v,pa as V,qa as C,tb as j,ua as x,ub as U,uc as L,v as z,vb as E,vc as oe,yb as b}from"./chunk-QDAWQNBQ.js";import{a as A,b as $}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=(o,t)=>t.id,Se=o=>({children:o,level:0}),me=o=>({$implicit:o}),Oe=(o,t)=>({children:o,level:t});function Fe(o,t){if(o&1){let e=k();p(0,"spk-button-group")(1,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("browse"))}),R(2,4),h(),p(3,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("path"))}),R(4,5),h()()}if(o&2){let e=u();g(),E("active",e.pathDiscoveryMethod()==="browse"),g(2),E("active",e.pathDiscoveryMethod()==="path")}}function Ne(o,t){o&1&&Z(0,"spk-progress-bar",9)}function ye(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-down"),h(),p(2,"spk-icon",16),M(3,"folder-open"),h())}function we(o,t){o&1&&(p(0,"spk-icon"),M(1,"file"),h())}function ke(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-right"),h(),p(2,"spk-icon",16),M(3,"folder"),h())}function Re(o,t){if(o&1&&v(0,ye,4,0)(1,we,2,0,"spk-icon")(2,ke,4,0),o&2){let e=u(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(o,t){o&1&&(p(0,"spk-icon",16),M(1,"desktop-tower"),h())}function Le(o,t){o&1&&G(0)}function We(o,t){if(o&1&&v(0,Le,1,0,"ng-container",10),o&2){let e=u(2).$implicit,n=u().$implicit;u();let s=X(7);j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(5,me,oe(2,Oe,e.children,n.level+1)))}}function Ae(o,t){if(o&1){let e=k();p(0,"div",14,3),y("click",function(){F(e);let s=u().$implicit,i=u(2);return N(i.toggleNode(s.id,s))}),p(2,"div",15),v(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),h(),p(5,"div",17),y("click",function(s){F(e);let i=u().$implicit,r=u(2);return N(r.toggleSelectedNode(s,i))}),M(6),h()(),v(7,We,1,7,"ng-container")}if(o&2){let e=u().$implicit,n=u(2);E("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),g(2),E("file",e.cls==="file"),g(),b(e.id!=="/"?3:4),g(3),re(" ",e.text," "),g(),b(e.children.length>0?7:-1)}}function $e(o,t){if(o&1&&v(0,Ae,8,15),o&2){let e=t.$implicit,n=u(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Be(o,t){if(o&1&&(p(0,"spk-list"),J(1,$e,1,1,null,null,Me),h()),o&2){let e=t.$implicit;U("padding-left",e.level*.25,"rem"),g(),Y(e.children)}}function De(o,t){o&1&&G(0)}function Ve(o,t){if(o&1){let e=k();p(0,"spk-toggle",19),y("click",function(){F(e);let s=u();return N(s._showHiddenNodes.set(!s._showHiddenNodes()))}),R(1,6),h()}if(o&2){let e=u();E("active",e._showHiddenNodes()),g(),ee(e.showFiles()?"files":"folders"),te(1)}}var Ce=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Ce||{}),Q=class o{#t=D(ae);#o=D(ce);multiSelect=C(!1);disabled=C(!1);showFiles=C(!1);selectFiles=C(!1);accepts=C(null);startingPath=C(null);rootPath=C(void 0);backupSettings=C(null);pathRefreshTrigger=C(!1);showHiddenNodes=C(!1);hideShortcuts=C(!1);includes=V();excludes=V();_showHiddenNodes=x(!1);treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=x("browse");isLoading=x(!1);currentPath=x("/");#e=x(null);treeSearchQuery=x("");treeNodes=x([]);filterGroups=this.#o.filterGroups();isByBackupSettings=W(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Ce;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let _=n[a].slice(1);if(_.startsWith("{")&&_.endsWith("}")){let f=_.slice(1,-1),d=this.filterGroups?.FilterGroups[f];if(d&&d.length){let T=d.map(P=>`-${P}`);n.splice(a,1,...T)}}}let s=this.searchableTreeNodes(),i=new Map,r=this.rootPath(),m=this.accepts(),l=r?{id:r,resolvedpath:r,text:r,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};m&&(l.accepted=!0),i.set("/",l);for(let a of s){let _=a.id.replace(r??"","").split("/").filter(Boolean),f="",d=l;for(let T of _){if(f+="/"+T,!i.has(f)){let P=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),S={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:P,parentPath:f,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":f,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};m&&(S.accepted=this.matchAccepts(m,S)),i.set(f,S),d.children.push(S)}d=i.get(f)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let i=0,r=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),m=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(r.length===0)return i;for(let l=0;l<r.length;l++){let a=r[l];if(e?.startsWith(a)){i=1;break}}if(m.length===0)return i;for(let l=0;l<m.length;l++){let a=m[l],c=a.slice(1),_=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){i=_==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){i=_==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),T=this.translateCSharpRegex(d);if(new RegExp(`${T}`).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,i,r)=>`(${r})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=w(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=w(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(i=>s.endsWith(i)):!1}currentPathEffect=w(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=w(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#p(t)):this.#r(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(r=>r!==""&&r!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):s.some(r=>r.startsWith(i))?this.currentPath.set(s.filter(r=>r!==i).join("\0")):this.currentPath.set([...s,i].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#r(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(r=>r.startsWith("-")).map(r=>r.slice(1,-1)),n=t.split("\0").filter(r=>!r.startsWith("-")).filter(Boolean),s=n.map(r=>r.split("/").filter(Boolean)),i=[this.rootPath()??"/"];s.forEach(r=>{r.forEach((m,l)=>{let a=r.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;i.includes(c)||i.push(c)})}),this.isLoading.set(!0),z([...i.map(r=>this.#i(r))]).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:r=>{this.treeNodes.update(m=>{let l=r.flatMap(c=>c.map(_=>{let f=_.id,d=f&&f.split("/").filter(Boolean).slice(0,-1).join("/"),P="/"+(f&&f.split("/").filter(Boolean).join("/")),S=n.findIndex(O=>this.multiSelect()?P.startsWith(O):P===O)>-1,Ee=n.findIndex(O=>O===f)>-1,Pe=e.findIndex(O=>O===P)>-1;return $(A({},_),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:S&&!Pe||Ee})})),a=[...new Map([...m,...l].map(c=>[c.resolvedpath??c.id,c])).values()];return this.#l(),a})}})}#r(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(r=>r!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let r=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return $(A({},l),{cls:a,parentPath:e})}),m=[...new Map([...i,...r].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?m.filter(l=>!l.id.startsWith("%")):m})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=K({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(q(n.treeContainerRef,ve,5),q(n.formRef,Te,5)),e&2&&ie(2)},hostVars:2,hostBindings:function(e,n){e&2&&E("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(ne(xe),v(0,Fe,5,4,"spk-button-group"),p(1,"div",7),I(2,0,["ngProjectAs","label",5,["label"]]),p(3,"div",8,0),v(5,Ne,1,0,"spk-progress-bar",9)(6,Be,3,2,"ng-template",null,1,se)(8,De,1,0,"ng-container",10),h(),v(9,Ve,2,3,"spk-toggle",11),h(),p(10,"div",12,2)(12,"spk-form-field"),I(13,1,["ngProjectAs","label",5,["label"]]),I(14,2,["ngProjectAs","input",5,["input"]]),h()()),e&2){let s=X(7);b(n.multiSelect()?-1:0),g(),E("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),E("visualize-accepted",n.accepts()),g(2),b(n.isLoading()?5:-1),g(3),j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(13,me,L(11,Se,n.treeStructure()))),g(),b(n.accepts()?-1:9),g(),E("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ue,ge,pe,he,_e,fe,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-level-20)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{Q as a};
|
|
1
|
+
import{a as ce}from"./chunk-PTG2C2YJ.js";import{q as de}from"./chunk-LFQXDL42.js";import{b as ae}from"./chunk-TQE7OBBP.js";import{a as pe,f as ue,l as he,m as _e,o as fe,x as ge}from"./chunk-IZCX3KB3.js";import{ia as le}from"./chunk-JOBMLOGZ.js";import{Ab as J,Ac as se,Bb as Y,Cb as p,Db as h,E as B,Eb as Z,Hb as G,Ib as k,Mc as W,Oc as w,Qb as R,Ra as g,Rb as ee,Sb as te,Ub as y,Vb as u,Wb as ne,Xb as I,Y as D,Ya as H,da as F,ea as N,eb as K,ec as q,fc as ie,gc as X,hc as M,jc as re,kb as v,pa as V,qa as C,tb as j,ua as x,ub as U,uc as L,v as z,vb as E,vc as oe,yb as b}from"./chunk-QDAWQNBQ.js";import{a as A,b as $}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=(o,t)=>t.id,Se=o=>({children:o,level:0}),me=o=>({$implicit:o}),Oe=(o,t)=>({children:o,level:t});function Fe(o,t){if(o&1){let e=k();p(0,"spk-button-group")(1,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("browse"))}),R(2,4),h(),p(3,"button",13),y("click",function(){F(e);let s=u();return N(s.pathDiscoveryMethod.set("path"))}),R(4,5),h()()}if(o&2){let e=u();g(),E("active",e.pathDiscoveryMethod()==="browse"),g(2),E("active",e.pathDiscoveryMethod()==="path")}}function Ne(o,t){o&1&&Z(0,"spk-progress-bar",9)}function ye(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-down"),h(),p(2,"spk-icon",16),M(3,"folder-open"),h())}function we(o,t){o&1&&(p(0,"spk-icon"),M(1,"file"),h())}function ke(o,t){o&1&&(p(0,"spk-icon",18),M(1,"caret-right"),h(),p(2,"spk-icon",16),M(3,"folder"),h())}function Re(o,t){if(o&1&&v(0,ye,4,0)(1,we,2,0,"spk-icon")(2,ke,4,0),o&2){let e=u(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(o,t){o&1&&(p(0,"spk-icon",16),M(1,"desktop-tower"),h())}function Le(o,t){o&1&&G(0)}function We(o,t){if(o&1&&v(0,Le,1,0,"ng-container",10),o&2){let e=u(2).$implicit,n=u().$implicit;u();let s=X(7);j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(5,me,oe(2,Oe,e.children,n.level+1)))}}function Ae(o,t){if(o&1){let e=k();p(0,"div",14,3),y("click",function(){F(e);let s=u().$implicit,i=u(2);return N(i.toggleNode(s.id,s))}),p(2,"div",15),v(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),h(),p(5,"div",17),y("click",function(s){F(e);let i=u().$implicit,r=u(2);return N(r.toggleSelectedNode(s,i))}),M(6),h()(),v(7,We,1,7,"ng-container")}if(o&2){let e=u().$implicit,n=u(2);E("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),g(2),E("file",e.cls==="file"),g(),b(e.id!=="/"?3:4),g(3),re(" ",e.text," "),g(),b(e.children.length>0?7:-1)}}function $e(o,t){if(o&1&&v(0,Ae,8,15),o&2){let e=t.$implicit,n=u(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Be(o,t){if(o&1&&(p(0,"spk-list"),J(1,$e,1,1,null,null,Me),h()),o&2){let e=t.$implicit;U("padding-left",e.level*.25,"rem"),g(),Y(e.children)}}function De(o,t){o&1&&G(0)}function Ve(o,t){if(o&1){let e=k();p(0,"spk-toggle",19),y("click",function(){F(e);let s=u();return N(s._showHiddenNodes.set(!s._showHiddenNodes()))}),R(1,6),h()}if(o&2){let e=u();E("active",e._showHiddenNodes()),g(),ee(e.showFiles()?"files":"folders"),te(1)}}var Ce=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Ce||{}),Q=class o{#t=D(ae);#o=D(ce);multiSelect=C(!1);disabled=C(!1);showFiles=C(!1);selectFiles=C(!1);accepts=C(null);startingPath=C(null);rootPath=C(void 0);backupSettings=C(null);pathRefreshTrigger=C(!1);showHiddenNodes=C(!1);hideShortcuts=C(!1);includes=V();excludes=V();_showHiddenNodes=x(!1);treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=x("browse");isLoading=x(!1);currentPath=x("/");#e=x(null);treeSearchQuery=x("");treeNodes=x([]);filterGroups=this.#o.filterGroups();isByBackupSettings=W(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Ce;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let _=n[a].slice(1);if(_.startsWith("{")&&_.endsWith("}")){let f=_.slice(1,-1),d=this.filterGroups?.FilterGroups[f];if(d&&d.length){let T=d.map(P=>`-${P}`);n.splice(a,1,...T)}}}let s=this.searchableTreeNodes(),i=new Map,r=this.rootPath(),m=this.accepts(),l=r?{id:r,resolvedpath:r,text:r,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};m&&(l.accepted=!0),i.set("/",l);for(let a of s){let _=a.id.replace(r??"","").split("/").filter(Boolean),f="",d=l;for(let T of _){if(f+="/"+T,!i.has(f)){let P=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),S={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:P,parentPath:f,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":f,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};m&&(S.accepted=this.matchAccepts(m,S)),i.set(f,S),d.children.push(S)}d=i.get(f)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let i=0,r=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),m=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(r.length===0)return i;for(let l=0;l<r.length;l++){let a=r[l];if(e?.startsWith(a)){i=1;break}}if(m.length===0)return i;for(let l=0;l<m.length;l++){let a=m[l],c=a.slice(1),_=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){i=_==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){i=_==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),T=this.translateCSharpRegex(d);if(new RegExp(`${T}`).test(e)){i=_==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){i=_==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,i,r)=>`(${r})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=w(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=w(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(i=>s.endsWith(i)):!1}currentPathEffect=w(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=w(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#p(t)):this.#r(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(r=>r!==""&&r!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):s.some(r=>r.startsWith(i))?this.currentPath.set(s.filter(r=>r!==i).join("\0")):this.currentPath.set([...s,i].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#r(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(r=>r.startsWith("-")).map(r=>r.slice(1,-1)),n=t.split("\0").filter(r=>!r.startsWith("-")).filter(Boolean),s=n.map(r=>r.split("/").filter(Boolean)),i=[this.rootPath()??"/"];s.forEach(r=>{r.forEach((m,l)=>{let a=r.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;i.includes(c)||i.push(c)})}),this.isLoading.set(!0),z([...i.map(r=>this.#i(r))]).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:r=>{this.treeNodes.update(m=>{let l=r.flatMap(c=>c.map(_=>{let f=_.id,d=f&&f.split("/").filter(Boolean).slice(0,-1).join("/"),P="/"+(f&&f.split("/").filter(Boolean).join("/")),S=n.findIndex(O=>this.multiSelect()?P.startsWith(O):P===O)>-1,Ee=n.findIndex(O=>O===f)>-1,Pe=e.findIndex(O=>O===P)>-1;return $(A({},_),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:S&&!Pe||Ee})})),a=[...new Map([...m,...l].map(c=>[c.resolvedpath??c.id,c])).values()];return this.#l(),a})}})}#r(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(r=>r!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let r=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return $(A({},l),{cls:a,parentPath:e})}),m=[...new Map([...i,...r].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?m.filter(l=>!l.id.startsWith("%")):m})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=K({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(q(n.treeContainerRef,ve,5),q(n.formRef,Te,5)),e&2&&ie(2)},hostVars:2,hostBindings:function(e,n){e&2&&E("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(ne(xe),v(0,Fe,5,4,"spk-button-group"),p(1,"div",7),I(2,0,["ngProjectAs","label",5,["label"]]),p(3,"div",8,0),v(5,Ne,1,0,"spk-progress-bar",9)(6,Be,3,2,"ng-template",null,1,se)(8,De,1,0,"ng-container",10),h(),v(9,Ve,2,3,"spk-toggle",11),h(),p(10,"div",12,2)(12,"spk-form-field"),I(13,1,["ngProjectAs","label",5,["label"]]),I(14,2,["ngProjectAs","input",5,["input"]]),h()()),e&2){let s=X(7);b(n.multiSelect()?-1:0),g(),E("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),E("visualize-accepted",n.accepts()),g(2),b(n.isLoading()?5:-1),g(3),j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(13,me,L(11,Se,n.treeStructure()))),g(),b(n.accepts()?-1:9),g(),E("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ue,ge,pe,he,_e,fe,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-level-20)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as g}from"./chunk-
|
|
1
|
+
import{o as g}from"./chunk-RABUX7PS.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import{a as I}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as $}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as O}from"./chunk-TQE7OBBP.js";import{a as P,b as h,d as E,e as B}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{o as M,p as b,u as N}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{C as m,Cb as s,Db as p,Eb as n,Ob as d,Oc as A,Pb as c,Ra as r,Y as l,eb as f,kb as C,sc as R,tb as u,vc as _,yb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l($);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,b,N,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
|