@duplicati/ngclient 0.0.124 → 0.0.130
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.woff2 +0 -0
- package/{chunk-SIHNMW2E.js → chunk-4PFSFVY6.js} +1 -1
- package/{chunk-SPAJFGWZ.js → chunk-5FTLFTEB.js} +1 -1
- package/{chunk-ONV552SH.js → chunk-5LL2GNEZ.js} +1 -1
- package/{chunk-ERHGJIOQ.js → chunk-5S46PDX2.js} +1 -1
- package/chunk-74DADXEI.js +1 -0
- package/chunk-77O3NTSI.js +1 -0
- package/chunk-7XUQAQXF.js +1 -0
- package/chunk-A2ITER5E.js +1 -0
- package/{chunk-M5RL4LRX.js → chunk-A6RETV76.js} +1 -1
- package/chunk-AACOYUOE.js +1 -0
- package/chunk-AIKD43P2.js +1 -0
- package/chunk-AOXPIWSW.js +1 -0
- package/chunk-APVPH7MJ.js +1 -0
- package/chunk-B37C3RGG.js +1 -0
- package/{chunk-URJQR7VG.js → chunk-BI4O7WRG.js} +1 -1
- package/chunk-BMMOMXWX.js +6 -0
- package/chunk-BRR5YAJ3.js +1 -0
- package/chunk-BUZTB5NB.js +1 -0
- package/chunk-BZCM226U.js +1 -0
- package/chunk-C44Q3YIF.js +1 -0
- package/{chunk-PSVKQSIF.js → chunk-CTTB3CC2.js} +1 -1
- package/chunk-CZATLVNN.js +1 -0
- package/chunk-DSS4UZWD.js +1 -0
- package/chunk-DUQHFE6L.js +1 -0
- package/chunk-DWAT342U.js +1 -0
- package/chunk-FEYAUW6J.js +1 -0
- package/{chunk-43BIRTPL.js → chunk-GQCUCL25.js} +1 -1
- package/{chunk-ESAGJOZZ.js → chunk-H5MGVT7B.js} +1 -1
- package/{chunk-VZBWK3XF.js → chunk-HAATVFD4.js} +1 -1
- package/chunk-HBYWSSYK.js +1 -0
- package/{chunk-EPDVUHOD.js → chunk-HTTPTGMU.js} +1 -1
- package/chunk-HZQEM2P7.js +1 -0
- package/chunk-IQTQJ64J.js +2 -0
- package/{chunk-65ZYAFPI.js → chunk-JMQGVDAK.js} +1 -1
- package/chunk-LWIINXS7.js +1 -0
- package/chunk-LZXYGCPQ.js +1 -0
- package/{chunk-6EWRKJSC.js → chunk-M7A6IY7W.js} +1 -1
- package/chunk-MES3HY3J.js +1 -0
- package/{chunk-5C7A7QU6.js → chunk-MNE4XQ7S.js} +1 -1
- package/{chunk-V7XW25LT.js → chunk-MZZJNTYI.js} +1 -1
- package/chunk-NZXQIYE5.js +4 -0
- package/chunk-PFZ7N6QO.js +1 -0
- package/chunk-PG4O7JZ2.js +1 -0
- package/{chunk-S5G6POQS.js → chunk-QLHQ5NDE.js} +1 -1
- package/chunk-QNXSBZTY.js +1 -0
- package/chunk-QQAATZNB.js +1 -0
- package/chunk-SF5ML7OT.js +1 -0
- package/chunk-T3WJQ544.js +1 -0
- package/{chunk-4DR45FFH.js → chunk-VAR5LIG7.js} +1 -1
- package/chunk-VN4TP2ED.js +1 -0
- package/chunk-WBCTOQOO.js +1 -0
- package/chunk-X4XF46C3.js +1 -0
- package/chunk-ZQ4ACNVT.js +3 -0
- package/chunk-ZWC5VRTB.js +1 -0
- package/{chunk-TH7CWIA2.js → chunk-ZY4E4VC3.js} +1 -1
- package/index.html +2 -2
- package/locale/messages.cs.json +4 -2
- package/locale/messages.da.json +5 -2
- package/locale/messages.de.json +48 -8
- package/locale/messages.en_GB.json +4 -2
- package/locale/messages.es.json +4 -2
- package/locale/messages.fi.json +7 -2
- package/locale/messages.fr.json +7 -2
- package/locale/messages.hu.json +6 -2
- package/locale/messages.it.json +32 -21
- package/locale/messages.ja_JP.json +8 -2
- package/locale/messages.nl_NL.json +53 -21
- package/locale/messages.pl.json +9 -2
- package/locale/messages.pt.json +8 -2
- package/locale/messages.pt_BR.json +10 -3
- package/locale/messages.ru.json +8 -2
- package/locale/messages.sr_RS.json +9 -2
- package/locale/messages.sv_SE.json +9 -2
- package/locale/messages.zh_CN.json +376 -48
- package/locale/messages.zh_TW.json +9 -2
- package/main-WENCV2S5.js +1 -0
- package/package.json +1 -1
- package/{styles-P2AEFLUS.css → styles-6RBLRF5E.css} +1 -1
- package/chunk-25II37TZ.js +0 -1
- package/chunk-2CXHZS6X.js +0 -1
- package/chunk-3UPH6V5C.js +0 -1
- package/chunk-65U4B3NQ.js +0 -2
- package/chunk-6DNRCK5D.js +0 -1
- package/chunk-6V7W7EKR.js +0 -1
- package/chunk-7733YRW4.js +0 -1
- package/chunk-7BATQNXR.js +0 -1
- package/chunk-7V4TPS4B.js +0 -1
- package/chunk-BTZEFBCF.js +0 -1
- package/chunk-CZDE5P4F.js +0 -1
- package/chunk-ED7PHXLX.js +0 -1
- package/chunk-FP6LM56A.js +0 -1
- package/chunk-FQ55IACT.js +0 -1
- package/chunk-FSKPPAVO.js +0 -1
- package/chunk-FWQNZX5S.js +0 -1
- package/chunk-J52HAQJB.js +0 -1
- package/chunk-KAFLAM3J.js +0 -1
- package/chunk-O7TLFEOP.js +0 -1
- package/chunk-OAWADV5X.js +0 -1
- package/chunk-PDODLSPH.js +0 -1
- package/chunk-QXUYK52Y.js +0 -1
- package/chunk-RODUXVVT.js +0 -1
- package/chunk-SX2OA5DO.js +0 -1
- package/chunk-T5WAKBP3.js +0 -1
- package/chunk-U4XTHU5I.js +0 -1
- package/chunk-UI4M5G5W.js +0 -1
- package/chunk-VPTXHYYV.js +0 -6
- package/chunk-VTTBYFSH.js +0 -1
- package/chunk-VYAA7G37.js +0 -1
- package/chunk-W66AXGSW.js +0 -1
- package/chunk-WOTGLW6Y.js +0 -4
- package/chunk-XATCN7MB.js +0 -1
- package/chunk-XHPURHO2.js +0 -1
- package/chunk-YUZKJZ22.js +0 -1
- package/chunk-YZDNOP4R.js +0 -1
- package/chunk-Z2TE5POZ.js +0 -1
- package/chunk-ZMLGDPCK.js +0 -3
- package/main-JBXUJPKQ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Q}from"./chunk-S75WBVE3.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-ABANCAM5.js";import{d as x}from"./chunk-B37C3RGG.js";import{d as N}from"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import{a as I,b as k,g as O,l as P}from"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import{$a as h,Db as o,Eb as i,F as c,Fb as a,Jb as S,Rc as M,Ua as m,Vb as v,Z as l,ea as g,fa as f,gb as _,gc as b,hc as E,jc as r,lb as w,ub as C,va as p,wb as y,zb as L}from"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-MZZJNTYI.js";import"./chunk-74DADXEI.js";import"./chunk-A6RETV76.js";import"./chunk-UEYPJIJG.js";import"./chunk-LUKUBN2Z.js";import"./chunk-LWIINXS7.js";import"./chunk-ABANCAM5.js";import"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-5S46PDX2.js";import"./chunk-XUPWJEL7.js";import"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,e as v,f as L,i as w,n as V,q as x,r as X,t as U}from"./chunk-ABANCAM5.js";import{d as A,e as I}from"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import{B,a as y,c as b,g as h,l as $}from"./chunk-
|
|
1
|
+
import{c as P,e as v,f as L,i as w,n as V,q as x,r as X,t as U}from"./chunk-ABANCAM5.js";import{d as A,e as I}from"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import{B,a as y,c as b,g as h,l as $}from"./chunk-H5MGVT7B.js";import{h as G}from"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import{Db as i,Eb as r,F as g,Fb as _,N as T,Pb as C,Qb as O,Rb as f,Ua as F,Ub as k,Vb as m,Z as u,gb as R,jc as N,lb as S,ub as c,va as p,vc as M,wb as D,zb as E}from"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";var j=()=>["/"];function z(l,e){l&1&&(i(0,"spk-form-field")(1,"label",11),f(2,2),r(),_(3,"input",12),r())}var a=new X,d=class l{#t=u(b);#e=u(G);#o=u(A);isRestoring=p(!1);isSecureFile=p(!1);importForm=a.group({config:a.control(""),cmdline:a.control(!1),importMetadata:a.control(!1),direct:a.control(!1),passphrase:a.control("")});selectedFile=p(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let n=new FileReader;this.isSecureFile.set(t.type!=="application/json"),n.onload=this.#n.bind(this),n.readAsArrayBuffer(t)}}#n(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,n="";for(let s=0;s<t;s++)n+=String.fromCharCode(o[s]);return btoa(n)}submit(){this.isRestoring.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(T(e=>{let t={Backup:e.data.Backup};return this.#e.postApiV1Backups({requestBody:t,temporary:!0})}),g(()=>this.isRestoring.set(!1))).subscribe({next:e=>{this.#o.navigate(["/restore-draft",e.ID])},error:e=>{this.#t.error(e.message)}})}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=R({type:l,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let e;e=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=k(e);let o;o=$localize`Select a configuration file`;let t;return t=$localize`Passphrase`,[e,o,t,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(i(0,"header")(1,"h3"),C(2,0),i(3,"div",3)(4,"button",4),_(5,"spk-icon"),r(),i(6,"button",5),m("click",function(){return t.submit()}),_(7,"spk-icon"),r()(),O(),r()(),i(8,"form",6)(9,"spk-form-field",7),m("fileDropped",function(s){return t.onFileDropped(s)}),i(10,"label",8),f(11,1),r(),i(12,"input",9),m("change",function(s){return t.onFileDropped(s)}),r(),i(13,"spk-icon",10),N(14,"upload"),r()(),S(15,z,4,0,"spk-form-field"),r()),o&2&&(F(4),c("routerLink",M(6,j)),F(2),D("loader",t.isRestoring()),c("disabled",t.isRestoring()),F(2),c("formGroup",t.importForm),F(7),E(t.isSecureFile()?15:-1))},dependencies:[U,w,P,v,L,V,x,I,B,$,y,h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as he}from"./chunk-T3WJQ544.js";import{a as Ke}from"./chunk-A6RETV76.js";import{a as be,b as se}from"./chunk-UEYPJIJG.js";import"./chunk-WBCTOQOO.js";import{a as Be}from"./chunk-SF5ML7OT.js";import"./chunk-HZQEM2P7.js";import"./chunk-LUKUBN2Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-LWIINXS7.js";import{a as re}from"./chunk-DLJSVAM2.js";import"./chunk-ABANCAM5.js";import"./chunk-B37C3RGG.js";import{b as Ie,e as ke}from"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import{a as W,g as ae,j as ye,k as xe,p as le,y as ve}from"./chunk-H5MGVT7B.js";import{h as _e}from"./chunk-N5FH4YAX.js";import"./chunk-GQGMGFDX.js";import{pa as V,sa as oe}from"./chunk-EBXJGPRA.js";import{a as pe}from"./chunk-OQPUBCLB.js";import"./chunk-QUOBR5MG.js";import{Ab as v,Ac as E,Bb as B,Bc as S,Cb as b,Db as i,Eb as t,Fb as p,Gb as P,Hb as G,Jb as h,Pb as L,Qb as A,Qc as fe,Rb as r,Sb as d,Tb as u,Ua as o,Ub as f,Vb as I,Wb as g,Z as x,ea as D,fa as R,gb as X,jc as F,kc as K,lb as C,lc as N,nc as De,r as U,rc as Re,sa as ie,sc as $e,tc as z,ub as w,va as M,wb as $,zb as m,zc as c}from"./chunk-4KE2I7OA.js";import{a as te}from"./chunk-7CGTOI24.js";function we(n,a){n&1&&p(0,"spk-progress-bar",31)}function ze(n,a){n&1&&p(0,"div",34)}function Ve(n,a){n&1&&p(0,"div",35)}function We(n,a){n&1&&p(0,"div",36)}function je(n,a){if(n&1&&F(0),n&2){let e=g().$implicit;N(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function qe(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,15),p(3,"spk-icon"),i(4,"div",46),p(5,"spk-icon",39),t(),A(),t(),i(6,"div",47)(7,"p"),r(8,16),c(9,"date"),t(),i(10,"p"),r(11,17),c(12,"date"),t(),i(13,"p"),r(14,18),c(15,"durationFormat"),t(),i(16,"p"),r(17,19),t(),p(18,"spk-divider"),i(19,"p"),r(20,20),t(),i(21,"p"),r(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),F(26,"file-archive"),t(),F(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),F(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),r(33,22),c(34,"date"),t(),i(35,"p"),r(36,23),c(37,"date"),t(),i(38,"p"),r(39,24),c(40,"durationFormat"),t(),p(41,"spk-divider"),i(42,"p"),r(43,25),c(44,"bytes"),t(),i(45,"p"),r(46,26),c(47,"bytes"),t(),i(48,"p"),r(49,27),c(50,"bytes"),t(),p(51,"spk-divider"),i(52,"p"),r(53,28),t(),i(54,"p"),r(55,29),t()()()),n&2){let e=g(2).$implicit;o(9),d(S(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),u(8),o(3),d(S(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),u(11),o(3),d(E(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),u(14),o(2),d(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),u(17),o(3),d(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),u(20),o(2),d(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),u(22),o(12),d(S(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),u(33),o(3),d(S(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),u(36),o(3),d(E(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),u(39),o(4),d(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(E(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),u(43),o(3),d(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(E(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),u(46),o(3),d(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(E(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),u(49),o(3),d(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),u(53),o(2),d(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),u(55)}}function Je(n,a){if(n&1&&(i(0,"code"),F(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,30),p(3,"spk-icon"),i(4,"div",46),p(5,"spk-icon",39),t(),A(),t(),i(6,"div",47),B(7,Je,3,3,"code",null,v),t()()),n&2){let e=g(2).$implicit;o(5),d(e.data.VerificationsActualLength),u(2),o(2),b(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),F(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),F(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),F(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),P(2,42),i(3,"h3"),r(4,0),t(),G(),P(5,43),i(6,"p"),r(7,1),c(8,"date"),t(),i(9,"p"),r(10,2),c(11,"date"),t(),i(12,"p"),r(13,3),c(14,"durationFormat"),t(),G(),t(),i(15,"app-toggle-card",41),P(16,42),i(17,"h3"),r(18,4),t(),G(),P(19,43),i(20,"p"),r(21,5),c(22,"bytes"),t(),i(23,"p"),r(24,6),c(25,"bytes"),t(),i(26,"p"),r(27,7),c(28,"bytes"),t(),i(29,"p"),r(30,8),c(31,"bytes"),t(),i(32,"p"),r(33,9),t(),i(34,"p"),r(35,10),t(),i(36,"p"),r(37,11),t(),G(),t(),i(38,"div",44),p(39,"spk-divider"),C(40,qe,56,39)(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),L(44,12),p(45,"spk-icon"),i(46,"div",46),p(47,"spk-icon",39),t(),A(),t(),i(48,"div",47),B(49,Qe,3,3,"code",null,v),t()(),i(51,"details",45)(52,"summary"),L(53,13),p(54,"spk-icon"),i(55,"div",46),p(56,"spk-icon",39),t(),A(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),B(59,Ze,3,3,"code",null,v),t()(),p(61,"spk-divider"),i(62,"details")(63,"summary"),L(64,14),p(65,"spk-icon"),i(66,"div",46),p(67,"spk-icon",39),t(),A(),t(),i(68,"code")(69,"button",48),F(70,"Copy"),t(),F(71),c(72,"json"),t()()()()),n&2){let e=g().$implicit;o(),w("disallowToggle",!0),o(7),d(S(8,22,e.data==null?null:e.data.BeginTime,"medium")),u(7),o(3),d(S(11,25,e.data==null?null:e.data.EndTime,"medium")),u(10),o(3),d(E(14,28,e.data==null?null:e.data.Duration)),u(13),o(),w("disallowToggle",!0),o(7),d(e.data==null?null:e.data.ExaminedFiles)(E(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),u(21),o(3),d(e.data==null?null:e.data.OpenedFiles)(E(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),u(24),o(3),d(e.data==null?null:e.data.AddedFiles)(E(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),u(27),o(3),d(e.data==null?null:e.data.ModifiedFiles)(E(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),u(30),o(2),d(e.data==null?null:e.data.DeletedFiles),u(33),o(2),d(e.data==null?null:e.data.TooLargeFiles),u(35),o(2),d(e.data==null?null:e.data.FilesWithError),u(37),o(3),m((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),m((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),d(e.data==null?null:e.data.WarningsActualLength),u(44),o(2),b(e.data==null?null:e.data.Warnings),o(7),d(e.data==null?null:e.data.ErrorsActualLength),u(53),o(2),m((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),b(e.data==null?null:e.data.Errors),o(12),N(" ",E(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=h();i(0,"article",32)(1,"header",33),I("click",function(){let _=D(e).$implicit,O=g();return R(O.toggleOpenEntry(_.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),F(6),c(7,"date"),t(),i(8,"p"),F(9),C(10,je,1,1),t(),p(11,"div",37),i(12,"div",38)(13,"spk-icon",39),F(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=g();o(2),m(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),K(S(7,7,e.timestamp,"medium")),o(3),N(" ",e.data==null?null:e.data.MainOperation," "),o(),m(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),$("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?15:-1)}}var de=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(U(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _;_=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`Source files`;let k;k=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let y;y=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let T;T=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,T=f(T);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=f(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=f(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=f(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Se;Se=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Pe;Pe=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=f(ne),[a,e,l,_,O,k,y,j,q,J,H,Q,T,Y,Z,ee,Fe,ge,Ee,me,Ce,Oe,Te,Le,Ae,Se,Pe,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),B(1,nn,16,10,"article",32,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[Ke,xe,le,ae,W,re,V,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&p(0,"spk-progress-bar",1)}function on(n,a){n&1&&(L(0,0,1),p(1,"spk-icon"),A())}function an(n,a){n&1&&(L(0,0,2),p(1,"spk-icon"),A())}function ln(n,a){if(n&1){let e=h();i(0,"section",6)(1,"button",7),I("click",function(){D(e);let _=g(),O=_.$implicit,k=_.$index,y=g();return R(y.copyToClipboard(O.data,k))}),L(2,0),C(3,on,2,0)(4,an,2,0),A(),t(),i(5,"code"),F(6),c(7,"json"),t()()}if(n&2){let e=g(),l=e.$implicit,_=e.$index,O=g();o(),$("success",O.copiedFromIndex()===_),o(2),m(O.copiedFromIndex()===_?3:4),o(3),K(E(7,4,l.data))}}function _n(n,a){if(n&1){let e=h();i(0,"article",2)(1,"header",3),I("click",function(){let _=D(e).$implicit,O=g();return R(O.toggleOpenEntry(_.id))}),i(2,"h3"),F(3),c(4,"date"),t(),i(5,"div",4)(6,"spk-icon",5),F(7,"caret-down"),t()()(),C(8,ln,8,6,"section",6),t()}if(n&2){let e=a.$implicit,l=g();o(3),De("",S(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),o(3),$("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?8:-1)}}var ue=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});copiedFromIndex=M(null);resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(U(e=>e.map((l,_)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}copyToClipboard(a,e){let l=JSON.stringify(a,null,2);navigator.clipboard.writeText(l),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null)},3e3)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;return a=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,a=f(a),[a,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["spk-button","",1,"small",3,"click"]]},template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",1),B(1,_n,9,9,"article",2,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[oe,le,W,V],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"],changeDetection:0})};function rn(n,a){if(n&1&&(F(0," - "),P(1),r(2,6),G(),F(3),c(4,"durationFormat")),n&2){g(2);let e=z(6);o(3),N(" ",E(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function sn(n,a){n&1&&(P(0),r(1,7),G())}function pn(n,a){if(n&1&&(F(0),c(1,"bytes")),n&2){g(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function dn(n,a){n&1&&(P(0),r(1,8),G())}function un(n,a){if(n&1&&(F(0),c(1,"bytes")),n&2){g(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function cn(n,a){n&1&&(P(0),r(1,9),G())}function Fn(n,a){if(n&1&&(i(0,"spk-chip",19),r(1,10),t()),n&2){g(2);let e=z(6);o(),d(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),u(1)}}function gn(n,a){n&1&&(i(0,"spk-chip",20),r(1,11),t())}function En(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),F(3),i(4,"spk-icon"),F(5,"database"),t()(),i(6,"p")(7,"span"),r(8,3),t(),F(9),c(10,"date"),C(11,rn,5,3)(12,sn,2,0,"ng-container"),t(),i(13,"p")(14,"span"),r(15,4),t(),C(16,pn,2,3)(17,dn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),r(20,5),t(),C(21,un,2,3)(22,cn,2,0,"ng-container"),t()(),C(23,Fn,2,1,"spk-chip",19)(24,gn,2,0,"spk-chip",20),t()),n&2){let e,l=g(),_=z(6);o(3),N(" ",(e=_.Backup==null?null:_.Backup.Name)!==null&&e!==void 0?e:l.MISSING_BACKUP_NAME," "),o(6),N(" ",S(10,6,_.Backup==null||_.Backup.Metadata==null?null:_.Backup.Metadata.LastBackupDate,"short")," "),o(2),m(!(_.Backup==null||_.Backup.Metadata==null)&&_.Backup.Metadata.LastBackupDuration?11:12),o(5),m(!(_.Backup==null||_.Backup.Metadata==null)&&_.Backup.Metadata.SourceFilesSize?16:17),o(5),m(!(_.Backup==null||_.Backup.Metadata==null)&&_.Backup.Metadata.TargetFilesSize?21:22),o(2),m(!(_.Backup==null||_.Backup.Metadata==null)&&_.Backup.Metadata.BackupListCount?23:24)}}function mn(n,a){if(n&1&&p(0,"app-general-log",17),n&2){let e=g();w("backupId",e.backupId())}}function Cn(n,a){if(n&1&&p(0,"app-remote-log",17),n&2){let e=g();w("backupId",e.backupId())}}var ce=class n{#e=x(Ie);#n=x(Be);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=M("general");backupId=be(this.#e.params.pipe(U(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let _;_=$localize`Last successful backup:`;let O;O=$localize`Source:`;let k;k=$localize`Destination:`;let y;y=$localize`took`;let j;j=$localize`N/A`;let q;q=$localize`N/A`;let J;J=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,_,O,k,y,j,q,J,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let _=h();p(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),L(4,0),p(5,"spk-icon"),A(),t()(),Re(6),C(7,En,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),I("click",function(){return D(_),R(l.activeTab.set("general"))}),r(10,1),t(),i(11,"button",16),I("click",function(){return D(_),R(l.activeTab.set("destination"))}),r(12,2),t()(),C(13,mn,1,1,"app-general-log",17)(14,Cn,1,1,"app-remote-log",17),t()}if(e&2){o(6);let _=$e(l.backup());o(),m(_?7:-1),o(2),$("active",l.activeTab()==="general"),o(2),$("active",l.activeTab()==="destination"),o(2),m(l.activeTab()==="general"?13:-1),o(),m(l.activeTab()==="destination"?14:-1)}},dependencies:[ve,de,ue,ke,re,pe,V,he,W,ae,ye],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.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-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"],changeDetection:0})};export{ce as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a,f as b}from"./chunk-MZZJNTYI.js";import"./chunk-74DADXEI.js";import"./chunk-A6RETV76.js";import"./chunk-UEYPJIJG.js";import"./chunk-LUKUBN2Z.js";import"./chunk-LWIINXS7.js";import"./chunk-ABANCAM5.js";import"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a,i as b}from"./chunk-BMMOMXWX.js";import"./chunk-GQCUCL25.js";import"./chunk-74DADXEI.js";import"./chunk-A6RETV76.js";import"./chunk-HIW2CN45.js";import"./chunk-4V45XF67.js";import"./chunk-UEYPJIJG.js";import"./chunk-LUKUBN2Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-LWIINXS7.js";import"./chunk-ABANCAM5.js";import"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-MZZJNTYI.js";import"./chunk-74DADXEI.js";import"./chunk-A6RETV76.js";import"./chunk-UEYPJIJG.js";import"./chunk-LUKUBN2Z.js";import"./chunk-LWIINXS7.js";import"./chunk-ABANCAM5.js";import"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import"./chunk-H5MGVT7B.js";import"./chunk-N5FH4YAX.js";import"./chunk-EBXJGPRA.js";import"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as cn}from"./chunk-T3WJQ544.js";import{c as Z,d as rn}from"./chunk-HIW2CN45.js";import"./chunk-UEYPJIJG.js";import{a as ln}from"./chunk-WBCTOQOO.js";import{a as an}from"./chunk-SF5ML7OT.js";import"./chunk-HZQEM2P7.js";import"./chunk-LUKUBN2Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-LWIINXS7.js";import"./chunk-DLJSVAM2.js";import"./chunk-ABANCAM5.js";import"./chunk-B37C3RGG.js";import{e as je}from"./chunk-WRKRV6RQ.js";import"./chunk-DYTQQHMA.js";import{a as Y,f as qe,g as Je,h as Qe,j as Ye,k as Ze,o as en,p as nn,w as tn,x as on}from"./chunk-H5MGVT7B.js";import{h as _n}from"./chunk-N5FH4YAX.js";import"./chunk-GQGMGFDX.js";import"./chunk-EBXJGPRA.js";import"./chunk-QUOBR5MG.js";import{Ab as z,Ac as B,Bb as V,Bc as G,Cb as K,Db as _,Dc as Q,Eb as o,F as X,Fb as d,Gb as M,Hb as m,Ib as D,Jb as x,Pb as s,Qb as u,Rb as p,Rc as We,Sb as y,Tb as L,Ua as r,Ub as j,Vb as f,Wb as F,Z as w,a as ve,b as W,ea as k,fa as P,gb as he,ic as U,jc as T,kc as ze,lb as g,lc as O,oc as Ve,pc as Ke,qc as Ue,rb as Xe,rc as q,sb as we,ub as S,va as R,vc as J,wb as H,wc as $,zb as E,zc as I}from"./chunk-4KE2I7OA.js";import"./chunk-7CGTOI24.js";function sn(...e){let i=R(...e);return Object.defineProperty(i,"value",{get:i.asReadonly(),set:i.set.bind(i)})}function un(e,i,n){let t=localStorage.getItem(i);t!=null&&(e=JSON.parse(t));let l=sn(e),c=l[ve];n?.equal&&(c.equal=n.equal);function N(C){C==null?localStorage.removeItem(i):localStorage.setItem(i,JSON.stringify(C))}return l.set=C=>{N(C),W(c,C)},l.update=C=>{let A=C(l());N(A),W(c,A)},l}var gn=()=>[import("./chunk-QMFHJSCY.js").then(e=>e.NgTemplateOutlet),Y,Ye,on,tn,import("./chunk-GUKBMCIX.js").then(e=>e.DurationFormatPipe),import("./chunk-6LCXRM3A.js").then(e=>e.BytesPipe),import("./chunk-U7YVVKGQ.js").then(e=>e.RelativeTimePipe)],dn=()=>["/add-backup"],Tn=()=>["/restore"],Fn=e=>({$implicit:e}),Sn=e=>["/backup",e],Cn=e=>["/restore",e],En=e=>["/backup",e,"export"],Mn=e=>["/backup",e,"delete"],mn=e=>["/backup",e,"database"],On=e=>["/backup",e,"commandline"],Nn=e=>["/backup",e,"log"];function kn(e,i){if(e&1){let n=x();_(0,"button",57),f("click",function(){let l=k(n).$implicit,c=F(2);return P(c.sortByColumn.set(l.value))}),p(1,15),o()}if(e&2){let n=i.$implicit,t=F(2);H("active",t.orderBy()===n.value),r(),y(n.label),L(1)}}function Pn(e,i){if(e&1&&(_(0,"spk-menu",58)(1,"button",59),s(2,14),d(3,"strong")(4,"spk-icon"),u(),o(),M(5,60),V(6,kn,2,3,"button",61,z),m(),o()),e&2){let n=F();r(4),y(n.orderBy()),L(2),r(2),K(n.sortOrderOptions())}}function fn(e,i){if(e&1&&(T(0),I(1,"durationFormat")),e&2){let n=F().$implicit,t=F(4);O(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration,t.timeType()==="actual")," ")}}function $n(e,i){e&1&&(M(0),p(1,21),m())}function Dn(e,i){if(e&1&&(T(0),I(1,"bytes")),e&2){let n=F().$implicit;O(" ",B(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceFilesSize)," ")}}function In(e,i){e&1&&(M(0),p(1,22),m())}function An(e,i){if(e&1&&(T(0),I(1,"bytes")),e&2){let n=F().$implicit;O(" ",B(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)," ")}}function Rn(e,i){e&1&&(M(0),p(1,23),m())}function Hn(e,i){e&1&&D(0)}function yn(e,i){if(e&1&&(_(0,"div",64)(1,"div",51)(2,"h3"),T(3),_(4,"spk-chip")(5,"spk-icon"),T(6),o(),T(7),o()(),_(8,"p")(9,"span"),p(10,16),o(),T(11),I(12,"relativeTime"),o(),_(13,"p")(14,"span"),p(15,17),o(),g(16,fn,2,4)(17,$n,2,0,"ng-container"),o(),_(18,"p")(19,"span"),p(20,18),o(),g(21,Dn,2,3)(22,In,2,0,"ng-container"),o(),_(23,"p")(24,"span"),p(25,19),o(),g(26,An,2,3)(27,Rn,2,0,"ng-container"),o()(),q(28),_(29,"spk-chip",65),p(30,20),o(),_(31,"div",55),g(32,Hn,1,0,"ng-container",66),o()()),e&2){let n,t=i.$implicit,l=F(4),c=U(51);r(3),O(" ",(n=t.Backup==null?null:t.Backup.Name)!==null&&n!==void 0?n:l.MISSING_BACKUP_NAME," "),r(3),ze(l.getBackendIcon(t.Backup==null?null:t.Backup.TargetURL)),r(),O(" ",l.getBackendType(t.Backup==null?null:t.Backup.TargetURL)," "),r(4),O(" ",G(12,11,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDate,l.timeType()==="actual")," "),r(5),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDuration?16:17),r(5),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.SourceFilesSize?21:22),r(5),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.TargetFilesSize?26:27);let N=l.getBackupVersionCount(t);r(4),y(N)(N),L(30),r(2),S("ngTemplateOutlet",c)("ngTemplateOutletContext",$(14,Fn,t))}}function Ln(e,i){if(e&1&&V(0,yn,33,16,"div",64,z),e&2){let n=F(3);K(n.backups())}}function xn(e,i){e&1&&(M(0),p(1,24),m())}function Bn(e,i){if(e&1&&(_(0,"div",62),g(1,Ln,2,0)(2,xn,2,0,"ng-container"),o()),e&2){let n=F(2);r(),E(n.backups().length?1:2)}}function Gn(e,i){e&1&&(s(0,25,1),D(1),u())}function bn(e,i){e&1&&(s(0,26,1),D(1),u())}function vn(e,i){e&1&&(s(0,27,1),D(1),u())}function hn(e,i){e&1&&(s(0,28,1),D(1),u())}function Xn(e,i){e&1&&(s(0,29,1),D(1),u())}function wn(e,i){e&1&&(s(0,30,1),D(1),u())}function zn(e,i){if(e&1&&(T(0),I(1,"relativeTime")),e&2){let n=F().$implicit,t=F(3);O(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,t.timeType()==="actual")," ")}}function Vn(e,i){e&1&&(M(0),p(1,34),m())}function Kn(e,i){if(e&1&&(T(0),I(1,"durationFormat")),e&2){let n=F().$implicit,t=F(3);O(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration,t.timeType()==="actual")," ")}}function Un(e,i){e&1&&(M(0),p(1,35),m())}function Wn(e,i){if(e&1&&(T(0),I(1,"bytes")),e&2){let n=F().$implicit;O(" ",B(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceFilesSize)," ")}}function jn(e,i){e&1&&(M(0),p(1,36),m())}function qn(e,i){if(e&1&&(T(0),I(1,"bytes")),e&2){let n=F().$implicit;O(" ",B(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)," ")}}function Jn(e,i){e&1&&(M(0),p(1,37),m())}function Qn(e,i){e&1&&D(0)}function Yn(e,i){if(e&1&&(_(0,"tr")(1,"td"),T(2),o(),_(3,"td"),T(4),o(),_(5,"td"),g(6,zn,2,4)(7,Vn,2,0,"ng-container"),o(),_(8,"td"),g(9,Kn,2,4)(10,Un,2,0,"ng-container"),o(),_(11,"td"),g(12,Wn,2,3)(13,jn,2,0,"ng-container"),o(),_(14,"td"),g(15,qn,2,3)(16,Jn,2,0,"ng-container"),o(),_(17,"td"),q(18),_(19,"span"),p(20,33),o()(),_(21,"td"),g(22,Qn,1,0,"ng-container",66),o()()),e&2){let n,t=i.$implicit,l=F(3),c=U(51);r(2),O(" ",(n=t.Backup==null?null:t.Backup.Name)!==null&&n!==void 0?n:l.MISSING_BACKUP_NAME," "),r(2),O(" ",l.getBackendType(t.Backup==null?null:t.Backup.TargetURL)," "),r(2),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDate?6:7),r(3),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDuration?9:10),r(3),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.SourceFilesSize?12:13),r(3),E(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.TargetFilesSize?15:16);let N=l.getBackupVersionCount(t);r(5),y(N)(N),L(20),r(2),S("ngTemplateOutlet",c)("ngTemplateOutletContext",$(10,Fn,t))}}function Zn(e,i){if(e&1){let n=x();_(0,"spk-table",67),Ue("sortByColumnChange",function(l){k(n);let c=F(2);return Ke(c.sortByColumn,l)||(c.sortByColumn=l),P(l)}),_(1,"tr",68)(2,"th",69),s(3,25),g(4,Gn,2,0,"ng-container",70),u(),o(),_(5,"th",71),s(6,26),g(7,bn,2,0,"ng-container",70),u(),o(),_(8,"th",72),s(9,27),g(10,vn,2,0,"ng-container",70),u(),o(),_(11,"th",73),s(12,28),g(13,hn,2,0,"ng-container",70),u(),o(),_(14,"th",74),s(15,29),g(16,Xn,2,0,"ng-container",70),u(),o(),_(17,"th",75),s(18,30),g(19,wn,2,0,"ng-container",70),u(),o(),_(20,"th"),p(21,31),o(),_(22,"th"),p(23,32),o()(),V(24,Yn,23,12,"tr",null,z),o()}if(e&2){let n=F(2),t=U(53);S("data",n.backups())("loading",n.backupsLoading()),Ve("sortByColumn",n.sortByColumn),r(4),S("ngTemplateOutlet",t),r(3),S("ngTemplateOutlet",t),r(3),S("ngTemplateOutlet",t),r(3),S("ngTemplateOutlet",t),r(3),S("ngTemplateOutlet",t),r(3),S("ngTemplateOutlet",t),r(5),K(n.backups())}}function et(e,i){if(e&1&&g(0,Bn,3,1,"div",62)(1,Zn,26,9,"spk-table",63),e&2){let n=F();E(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1)}}function nt(e,i){e&1&&(_(0,"div",76),d(1,"spk-progress-bar",77),_(2,"div",51)(3,"h3"),p(4,38),o()()())}function tt(e,i){e&1&&p(0,39,1)}function it(e,i){e&1&&(_(0,"spk-icon"),T(1,"check"),o())}function ot(e,i){e&1&&(_(0,"spk-icon"),T(1,"dots-three-vertical"),o())}function _t(e,i){if(e&1){let n=x();_(0,"button",78),f("click",function(){let l=k(n).$implicit,c=F();return P(c.startBackup(l.Backup==null?null:l.Backup.ID))}),s(1,39),d(2,"spk-icon"),g(3,tt,1,0),u(),o(),_(4,"button",79)(5,"spk-icon"),T(6,"pencil-simple"),o()(),_(7,"spk-menu",80)(8,"button",52),g(9,it,2,0,"spk-icon")(10,ot,2,0,"spk-icon"),o(),M(11,60),_(12,"h3",81),T(13,"Operations"),o(),_(14,"button",82),s(15,40),d(16,"spk-icon"),u(),o(),_(17,"button",82),s(18,41),d(19,"spk-icon"),u(),o(),_(20,"button",82),s(21,42),d(22,"spk-icon"),u(),o(),d(23,"spk-divider"),_(24,"h3",81),T(25,"Advanced"),o(),_(26,"button",82),s(27,43),d(28,"spk-icon"),u(),o(),_(29,"button",57),f("click",function(){let l=k(n).$implicit,c=F();return P(c.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(30,44),d(31,"spk-icon"),u(),o(),_(32,"button",57),f("click",function(){let l=k(n).$implicit,c=F();return P(c.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(33,45),d(34,"spk-icon"),u(),o(),_(35,"button",82),s(36,46),d(37,"spk-icon"),u(),o(),d(38,"spk-divider"),_(39,"h3",81),T(40,"Reporting"),o(),_(41,"button",82),s(42,47),d(43,"spk-icon"),u(),o(),_(44,"button",57),f("click",function(){let l=k(n).$implicit,c=F();return P(c.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(45,48),d(46,"spk-icon"),u(),o(),m(),o()}if(e&2){let n=i.$implicit,t=F();H("loader",t.startingBackup()===(n.Backup==null?null:n.Backup.ID)),r(3),E(t.viewMode()==="list"?3:-1),r(),S("routerLink",$(16,Sn,n.Backup==null?null:n.Backup.ID)),r(3),S("right",!0),r(),H("loader",t.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",t.successId()===(n.Backup==null?null:n.Backup.ID)),r(),E(t.successId()===(n.Backup==null?null:n.Backup.ID)?9:10),r(5),S("routerLink",$(18,Cn,n.Backup==null?null:n.Backup.ID)),r(3),S("routerLink",$(20,En,n.Backup==null?null:n.Backup.ID)),r(3),S("routerLink",$(22,Mn,n.Backup==null?null:n.Backup.ID)),r(6),S("routerLink",$(24,mn,n.Backup==null?null:n.Backup.ID)),r(9),S("routerLink",$(26,On,n.Backup==null?null:n.Backup.ID)),r(6),S("routerLink",$(28,Nn,n.Backup==null?null:n.Backup.ID))}}function at(e,i){e&1&&(_(0,"spk-icon",83),T(1,"funnel-simple"),o(),_(2,"spk-icon",84),T(3,"sort-ascending"),o(),_(4,"spk-icon",85),T(5,"sort-descending"),o())}var pn={file:{Display:$localize`Local`,Icon:null}},ee=class e{#n=w(_n);#t=w(ln);#e=w(an);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;viewMode=un("list","viewMode");sortByColumn=R(this.#e.orderBy());loadingId=R(null);successId=R(null);sortEffect=We(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#t.resumeDialogCheck(()=>this.#e.startBackup(i))}getBackendIcon(i){if(!i)return"";let n=i.split("://")[0],t=Z.find(c=>c.key===n);if(!t)return"database";let l=pn[t.key];return l?.Icon?l.Icon:"database"}getBackendType(i){if(!i)return"";let n=i.split("://")[0],t=Z.find(c=>c.key===n);if(!t)return"";let l=pn[t.key];if(l?.Display)return l.Display;if(t.key==="s3"){let c="http://null?"+i.split("?")[1],C=new URL(c).searchParams.get("s3-server-name")?.toLowerCase()??"";for(let[A,b]of Object.entries(rn))if(C.endsWith(A))return b}return t.displayName}getBackupVersionCount(i){return parseInt(i?.Backup?.Metadata?.BackupListCount??"",10)||0}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(X(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(X(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(X(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=he({type:e,selectors:[["app-home"]],decls:54,vars:11,consts:()=>{let i;i=$localize`Backups`;let n;n=$localize`Backups are stored in the cloud and can be restored at any time.`;let t;t=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let c;c=$localize`Restores allow you to restore your data from the cloud.`;let N;N=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let C;C=$localize`My backups`;let A;A=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:rows${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: List `;let b;b=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SPK_ICON:list${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SPK_ICON: Details `;let ne;ne=$localize` Time: ${"\uFFFD#38\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let te;te=$localize`Relative time`;let ie;ie=$localize`Actual time`;let oe;oe=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let _e;_e=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let ae;ae=$localize`Last successful backup:`;let le;le=$localize`Duration:`;let re;re=$localize`Source:`;let ce;ce=$localize`Destination:`;let v;v=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,v=j(v,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let se;se=$localize` ${v}:ICU@@6502601490918455200: `;let ue;ue=$localize`N/A`;let pe;pe=$localize`N/A`;let Fe;Fe=$localize`N/A`;let ge;ge=$localize`No backups founds`;let de;de=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Te;Te=$localize` Type ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Se;Se=$localize` Last successful backup ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ce;Ce=$localize` Duration ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ee;Ee=$localize` Source ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Me;Me=$localize` Destination ${"\uFFFD*19:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*19:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let me;me=$localize`Version`;let Oe;Oe=$localize`Actions`;let h;h=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,h=j(h,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ne;Ne=$localize` ${h}:ICU@@6502601490918455200: `;let ke;ke=$localize`N/A`;let Pe;Pe=$localize`N/A`;let fe;fe=$localize`N/A`;let $e;$e=$localize`N/A`;let De;De=$localize`Loading backups...`;let Ie;Ie=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Start ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:`;let Ae;Ae=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let Re;Re=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let He;He=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let ye;ye=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let Le;Le=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let xe;xe=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let Be;Be=$localize`${"\uFFFD#37\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#37\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let Ge;Ge=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let be;return be=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `,[["actions",""],["sortIcons",""],i,n,t,l,c,N,C,A,b,ne,te,ie,oe,_e,ae,le,re,ce,se,ue,pe,Fe,ge,de,Te,Se,Ce,Ee,Me,me,Oe,Ne,ke,Pe,fe,$e,De,Ie,Ae,Re,He,ye,Le,xe,Be,Ge,be,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small"],["type","button",3,"click"],[1,"table-overview"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"active"],[1,"backups"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backup"],[1,"simple","success"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["table-header",""],["spkSort","name"],[4,"ngTemplateOutlet"],["spkSort","type"],["spkSort","lastrun"],["spkSort","duration"],["spkSort","sourcesize"],["spkSort","destinationsize"],[1,"loading-list"],[1,"indeterminate","primary"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,t){if(n&1){let l=x();d(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",49),d(4,"img",50),_(5,"div",51)(6,"h3"),p(7,2),o(),_(8,"p"),p(9,3),o()(),_(10,"button",52),s(11,4),d(12,"spk-icon"),u(),o()(),_(13,"spk-card",49),d(14,"img",53),_(15,"div",51)(16,"h3"),p(17,5),o(),_(18,"p"),p(19,6),o()(),_(20,"button",52),s(21,7),d(22,"spk-icon"),u(),o()()(),_(23,"div",54)(24,"h2"),M(25),p(26,8),m(),_(27,"div",55)(28,"spk-button-group",56)(29,"button",57),f("click",function(){return k(l),P(t.viewMode.set("list"))}),s(30,9),d(31,"spk-icon"),u(),o(),_(32,"button",57),f("click",function(){return k(l),P(t.viewMode.set("details"))}),s(33,10),d(34,"spk-icon"),u(),o()(),_(35,"spk-menu",58)(36,"button",59),s(37,11),d(38,"strong")(39,"spk-icon"),u(),o(),M(40,60),_(41,"button",57),f("click",function(){return k(l),P(t.setTimeType("relative"))}),p(42,12),o(),_(43,"button",57),f("click",function(){return k(l),P(t.setTimeType("actual"))}),p(44,13),o(),m(),o(),g(45,Pn,8,1,"spk-menu",58),o()(),g(46,et,2,1)(47,nt,5,0),Xe(48,46,gn,null,47),o()(),g(50,_t,47,30,"ng-template",null,0,Q)(52,at,6,0,"ng-template",null,1,Q)}n&2&&(r(3),S("routerLink",J(9,dn)),r(10),S("routerLink",J(10,Tn)),r(16),H("active",t.viewMode()==="list"),r(3),H("active",t.viewMode()==="details"),r(7),y(t.timeType()),L(37),r(6),E(t.viewMode()==="list"?45:-1),r(3),we(!t.backupsLoading()))},dependencies:[je,cn,Qe,Je,Y,Ze,en,nn,qe],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.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-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.sortable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.sortable[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) spk-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] spk-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.sortable.sort-desc[_ngcontent-%COMP%] spk-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}"],changeDetection:0})};export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O,c as P,e as E,h as v,j as N,s as I}from"./chunk-ABANCAM5.js";import{l as y,o as X,t as Y}from"./chunk-
|
|
1
|
+
import{a as O,c as P,e as E,h as v,j as N,s as I}from"./chunk-ABANCAM5.js";import{l as y,o as X,t as Y}from"./chunk-H5MGVT7B.js";import{Ab as R,Bb as V,Cb as B,Db as u,Eb as a,Gb as L,Hb as x,Jb as W,Qc as c,Rb as F,Rc as h,Sb as A,Tb as D,Ua as s,Vb as j,Wb as M,Xb as T,Yb as d,ea as $,fa as k,gb as f,jc as G,lb as w,mc as U,oc as g,pc as _,qc as C,sa as m,tb as b,ub as p,uc as S,va as l,vb as z}from"./chunk-4KE2I7OA.js";var Q=[[["label"]],[["","prefix",""]],[["","suffix",""]]],ee=["label","[prefix]","[suffix]"];function te(i,e){if(i&1&&G(0),i&2){let t=e.$implicit,n=M();U("",t.label,"",n.hasPerSecond()?"/s":"","")}}var ne=[{value:"bytes",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],ie=["throttle-upload","throttle-download"],H=class i{customId=m();inputType=m();timespan=l(0);unit=l("MB");sizeOptions=l(ne);readonly=l(!1);hasPerSecond=c(()=>{let e=this.inputType();return e&&ie.includes(e)});onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});writeValue(e){if(e){let t=e.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);t?(this.timespan.set(parseInt(t[1],10)),this.unit.set(t[2].toUpperCase())):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:ee,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(t,n){t&1&&(T(Q),u(0,"div",0),d(1,0,["ngProjectAs","label",5,["label"]]),a(),u(2,"spk-form-field")(3,"input",1),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(4,1),d(5,2),a(),u(6,"spk-select",2)(7,"input",3),C("ngModelChange",function(o){return _(n.unit,o)||(n.unit=o),o}),a(),w(8,te,1,2,"ng-template"),a()),t&2&&(s(2),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),z("--miw",0),p("options",n.sizeOptions())("readonly",n.readonly())("isClearable",!1),s(),g("ngModel",n.unit))},dependencies:[Y,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var oe=[[["label"]],[["","prefix",""]],[["","suffix",""]]],se=["label","[prefix]","[suffix]"];function ae(i,e){if(i&1){let t=W();u(0,"button",7),j("click",function(){let r=$(t).$implicit,o=M();return k(o.updateUnit(r.value))}),F(1,1),a()}if(i&2){let t=e.$implicit;s(),A(t.label),D(1)}}var le=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],re=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],pe=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],K=class i{customId=m();inputType=m();timespan=l(0);#e="D";unit=l(this.#e);unitLabel=c(()=>{let e=this.timeOptions(),t=e.findIndex(n=>n.value===this.unit());return e[t]?.label??this.unit()});isShortTime=c(()=>{let e=this.inputType();return e&&pe.includes(e)});timeOptions=c(()=>this.isShortTime()?le:re);readonly=l(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});inputTypeEffect=h(()=>{let e=this.timeOptions(),t=this.isShortTime()?"s":"D";this.#e=t,this.unit.set(t)});updateUnit(e){this.unit.set(e)}writeValue(e){let t=this.isShortTime();if(e){let n=t?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,r=e.match(n);r?(this.timespan.set(parseInt(r[1],10)),this.unit.set(r[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:se,decls:11,vars:6,consts:()=>{let e;e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[e,t,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["spk-button","","type","button",1,"trigger"],["menu",""],["spk-button","","type","button",1,"small"],["spk-button","","type","button",1,"small",3,"click"]]},template:function(t,n){t&1&&(T(oe),d(0,0,["ngProjectAs","label",5,["label"]]),u(1,"spk-form-field")(2,"input",2),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(3,1),d(4,2),a(),u(5,"spk-menu",3)(6,"button",4),F(7,0),a(),L(8,5),V(9,ae,2,1,"button",6,R),x(),a()),t&2&&(s(),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),p("openIndicator",!0),s(2),A(n.unitLabel()),D(7),s(2),B(n.timeOptions()))},dependencies:[X,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{H as a,K as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ia as ze}from"./chunk-EBXJGPRA.js";import{$a as U,Ab as ge,Bb as ve,Cb as Ce,Db as a,Eb as c,Fb as q,Ib as ie,Jb as z,Jc as qe,Qc as D,Rc as R,T as pe,Ta as Pe,Tc as xe,Ua as m,Vb as E,W as Ie,Wa as oe,Wb as f,Xb as x,Ya as me,Yb as h,Z as b,_a as Ae,a as Me,aa as Re,ab as Fe,bb as A,ca as Ve,ea as k,fa as y,fc as Be,gb as S,gc as N,hc as Y,ib as se,ic as We,jc as _,ka as de,kc as _e,la as ue,lb as O,lc as K,mc as re,oc as Se,pc as ke,qa as he,qb as He,qc as ye,ra as X,rc as ae,sa as g,sc as J,ta as H,tb as Le,tc as B,ua as fe,ub as G,va as C,vb as j,vc as De,wb as I,wc as le,xb as je,yb as Q,zb as T}from"./chunk-4KE2I7OA.js";import{a as $,b as Z,c as Te}from"./chunk-7CGTOI24.js";var L=["*"],Ke=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Je=["[icon]","[title]","*","[content]"];function Ze(n,d){n&1&&(a(0,"spk-icon",3),_(1,"info"),c())}function et(n,d){n&1&&(a(0,"spk-icon",3),_(1,"info"),c())}function tt(n,d){n&1&&(a(0,"spk-icon",3),_(1,"warning"),c())}function it(n,d){n&1&&(a(0,"spk-icon",3),_(1,"warning-octagon"),c())}function nt(n,d){n&1&&(a(0,"spk-icon",3),_(1,"check-circle"),c())}function ot(n,d){n&1&&(a(0,"spk-icon",3),_(1,"question"),c())}function st(n,d){if(n&1){let t=z();a(0,"spk-icon",7),E("click",function(){k(t);let i=f();return y(i.removeAlert())}),_(1,"plus"),c()}}var rt=["dialogRef"];function at(n,d){if(n&1){let t=z();a(0,"div",4),E("click",function(){k(t);let i=f();return y(i.isOpen.set(!1))}),c()}}var lt=["spk-button",""];var ct=["triggerRef"],pt=["popoverRef"],dt=[[["","trigger",""]],"*"],ut=["[trigger]","*"];var ht=()=>({closeOnButton:!1,closeOnEsc:!0});var ft=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],mt=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Ue=["input"],gt=[[["label"]]],vt=["label"];function Ct(n,d){if(n&1&&(a(0,"div",3),_(1),c()),n&2){let t=f();m(),_e(t.files()[0].name)}}function _t(n,d){if(n&1&&(a(0,"div",3),_(1),c()),n&2){let t=f();m(),K("",t.files().length," files selected")}}function St(n,d){if(n&1&&(a(0,"div",4),_(1),c()),n&2){let t=f();m(),_e(t.filesOver()?t.overlayText():t.placeholder())}}var kt=["optionsRef"],yt=["*",[["","menu",""]]],Dt=["*","[menu]"];function xt(n,d){n&1&&(a(0,"spk-icon",5),_(1,"caret-down"),c())}var wt=[[["label"]],[["input","type","range"]]],bt=["label","input[type=range]"],Ot=["optionsWrap"],Et=[[["label"]],[["input"]],[["textarea"]]],Tt=["label","input","textarea"],Mt=()=>({closeOnButton:!1,closeOnEsc:!1}),be=n=>({$implicit:n});function It(n,d){if(n&1&&_(0),n&2){let t=f();K(" ",t.inputValue()," ")}}function Rt(n,d){n&1&&ie(0)}function Vt(n,d){if(n&1&&O(0,Rt,1,0,"ng-container",13),n&2){let t=f(3).$implicit;f(2);let e=B(6);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function Pt(n,d){if(n&1&&_(0),n&2){let t=f(3).$implicit,e=f(2);K(" ",e.getLabel(t)," ")}}function At(n,d){if(n&1){let t=z();a(0,"spk-chip",11),O(1,Vt,1,4,"ng-container")(2,Pt,1,1),a(3,"spk-icon",12),E("click",function(i){k(t);let o=f(2).$index,s=f(2);return y(s.removeSelectedOptionByIndex(i,o))}),_(4,"x-bold"),c()()}if(n&2){let t=f(4),e=B(6);Q(t.selectClasses()),m(),T(e?1:2)}}function Ft(n,d){n&1&&ie(0)}function Ht(n,d){if(n&1&&O(0,Ft,1,0,"ng-container",13),n&2){let t=f(4).$implicit;f(2);let e=B(6);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function Lt(n,d){if(n&1&&_(0),n&2){let t=f(4).$implicit,e=f(2);K(" ",e.getLabel(t)," ")}}function jt(n,d){if(n&1&&O(0,Ht,1,4,"ng-container")(1,Lt,1,1),n&2){f(5);let t=B(6);T(t?0:1)}}function Bt(n,d){if(n&1&&O(0,jt,2,1),n&2){f(4);let t=B(9);T(t?-1:0)}}function Wt(n,d){if(n&1&&O(0,At,5,3,"spk-chip",10)(1,Bt,1,1),n&2){f(3);let t=B(8);T(t?0:1)}}function qt(n,d){if(n&1&&O(0,Wt,2,1),n&2){let t=d.$implicit;T(t?0:-1)}}function zt(n,d){if(n&1&&ve(0,qt,1,1,null,null,ge),n&2){f();let t=B(4);Ce(t)}}function Ut(n,d){n&1&&ie(0)}function Nt(n,d){if(n&1&&O(0,Ut,1,0,"ng-container",14),n&2){f(2);let t=B(0);G("ngTemplateOutlet",t)}}function $t(n,d){if(n&1&&_(0),n&2){let t,e=f(2);K(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function Qt(n,d){if(n&1&&O(0,Nt,1,1,"ng-container")(1,$t,1,1),n&2){f();let t=B(0);T(t?0:1)}}function Yt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),c())}function Xt(n,d){n&1&&q(0,"spk-spinner",7)}function Gt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"list-magnifying-glass"),c())}function Kt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"magnifying-glass"),c())}function Jt(n,d){if(n&1){let t=z();a(0,"spk-icon",15),E("click",function(i){k(t);let o=f();return y(o.clear(i))}),_(1,"x-bold"),c()}}function Zt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),c())}function ei(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-up"),c())}function ti(n,d){if(n&1&&q(0,"spk-checkbox"),n&2){let t=f().$index,e=f();Q(e.selectClasses()),I("active",e.isSelected(t))}}function ii(n,d){n&1&&ie(0)}function ni(n,d){if(n&1&&O(0,ii,1,0,"ng-container",13),n&2){let t=f().$implicit;f();let e=B(7);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function oi(n,d){if(n&1&&_(0),n&2){let t=f().$implicit,e=f();K(" ",e.getLabel(t)," ")}}function si(n,d){if(n&1){let t=z();a(0,"li",16),E("click",function(){let i=k(t).$index,o=f();return y(o.toggleOptionByIndex(i))}),O(1,ti,1,4,"spk-checkbox",17)(2,ni,1,4,"ng-container")(3,oi,1,1),c()}if(n&2){let t=d.$index,e=f(),i=B(7);I("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),m(),T(e.selectMultiple()?1:-1),m(),T(i?2:3)}}var ri=["dragImageElement"],ai=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],li=["[sidenav]","[sidenav-closed-topbar]","*"];function ci(n,d){n&1&&q(0,"div",1,0)}function pi(n,d){if(n&1){let t=z();a(0,"div",7),E("drop",function(i){k(t);let o=f();return y(o.drop(i))})("dragover",function(i){k(t);let o=f();return y(o.dragOver(i))})("dragenter",function(){k(t);let i=f();return y(i.dragEnter())})("dragleave",function(){k(t);let i=f();return y(i.dragLeave())}),c()}}function di(n,d){if(n&1){let t=z();a(0,"div",8),E("dragstart",function(i){k(t);let o=f();return y(o.dragStart(i))})("dragend",function(i){k(t);let o=f();return y(o.dragEnd(i))})("drag",function(i){k(t);let o=f();return y(o.drag(i))})("touchstart",function(i){k(t);let o=f();return y(o.touchStart(i))})("touchmove",function(i){k(t);let o=f();return y(o.touchMove(i))})("touchend",function(i){k(t);let o=f();return y(o.touchEnd(i))})("touchcancel",function(i){k(t);let o=f();return y(o.touchCancel(i))}),c()}}var ui=["thead"],hi=[[["","table-header",""]],"*",[["","table-no-rows",""]]],fi=["[table-header]","*","[table-no-rows]"];function mi(n,d){n&1&&q(0,"spk-progress-bar",1)}function gi(n,d){n&1&&(a(0,"div",2),h(1,2),c())}var vi=[[["","title",""]],"*"],Ci=["[title]","*"];function _i(n,d){n&1&&_(0,"Title")}function Si(n,d){n&1&&(a(0,"spk-icon",1),_(1,"caret-down"),c())}var we=["bold","thin","light","fill"],te=(()=>{class n{#e=b(H);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<we.length;e++)if(t.endsWith(we[e]))return we[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&Q(i.currentClass)},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Ji=(()=>{class n{constructor(){this._el=b(H),this.alertService=g(null),this.id=g(null),this.alertClasses=D(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Je,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(x(Ke),a(0,"div",1)(1,"div",2,0),h(3),c(),a(4,"div",2),ae(5),O(6,Ze,2,0,"spk-icon",3)(7,et,2,0,"spk-icon",3)(8,tt,2,0,"spk-icon",3)(9,it,2,0,"spk-icon",3)(10,nt,2,0,"spk-icon",3)(11,ot,2,0,"spk-icon",3),c(),a(12,"div",4),h(13,1),h(14,2),c(),O(15,st,2,0,"spk-icon",5),a(16,"div",6),h(17,3),c()()),e&2){let o=We(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),T(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),T(i.id()?15:-1)}},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})();function Oe(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Zi=(()=>{class n{constructor(){this.alertHistory=C([]),this.alertHistoryIsOpen=C(!1),this.alertHistoryIsHidden=C(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=Oe();this.alertHistory.update(i=>[Z($({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>Z($({},o),{animateIn:o.id===e?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z($({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z($({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ce=new Ie("Sparkle UI Config"),ki={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},yi=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.dialogRef=U("dialogRef"),this.isOpen=A(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=D(()=>$(Z($({},ki),{class:this.#e?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=R(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}#e;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&N(i.dialogRef,rt,5),e&2&&Y()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:L,decls:6,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(x(),ae(0),a(1,"dialog",1,0)(3,"div",2),h(4),c(),O(5,at,1,0,"div",3),c()),e&2){let o,s,r,p,l=i.defaultOptionMerge();m(),Q(l.class),j("width",(o=l.width)!==null&&o!==void 0?o:"")("max-width",(s=l.maxWidth)!==null&&s!==void 0?s:"")("max-height",(r=l.maxHeight)!==null&&r!==void 0?r:"")("height",(p=l.height)!==null&&p!==void 0?p:""),m(4),T(i.defaultOptionMerge().closeOnOutsideClick?5:-1)}},encapsulation:2,changeDetection:0})}}return n})(),en=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=b(He),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(t,e){let i=this.#i.injector,o=this.#t(),P=e||{},{data:s,closed:r}=P,p=Te(P,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=xe(t,{environmentInjector:i}),this.compRef=xe(yi,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let l=this.insertedCompRef.instance?.data,u=this.insertedCompRef.instance?.closed;if(s){if(fe(l))this.insertedCompRef.setInput("data",s);else if(!fe(l))throw new Error("data is not an input signal on the passed component")}u instanceof he&&(this.closedFieldSub=u.subscribe((...F)=>{r?.(...F),this.#n()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",p),this.compRef.instance.closed.subscribe(()=>V());let w=this;function V(){u&&u instanceof he?u.emit(!1):r?.(void 0),w.#n()}return{component:this.insertedCompRef.instance,close:V}}#t(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),tn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Di=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:lt,ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),nn=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.class=C(this.#e?.cardType??"default")}#e;static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],hostVars:2,hostBindings:function(e,i){e&2&&Q(i.class())},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),xi=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:L,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(x(),a(0,"div",0)(1,"spk-icon",1),_(2,"check"),c(),a(3,"spk-icon",2),_(4,"minus"),c()(),h(5))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),wi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var bi=["scroll","auto"],Oi={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ne=(()=>{class n{constructor(){this.#e=b(qe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=g(!1),this.right=g(!1),this.markForCheck=g(null),this._above=C(this.above()),this._right=C(this.right()),this.disableOpenByClick=g(!1),this.isOpen=A(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=D(()=>$($({},Oi),this.options())),this.triggerRef=U.required("triggerRef"),this.popoverRef=U.required("popoverRef"),this.id=C("--"+Oe()),this.menuStyle=C(null),this.openAbort=null,this.openEffect=R(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=R(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#t(t){let e=t.parentElement;for(;e;){if(bi.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#i,p=s+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(p);else{if(s=i,r=o+this.#i,l){let w=t.top-e.height-this.#i;w<0||(r=w)}p&&(s=t.right-e.width,s<0&&(s=0));let u={left:s+"px",top:r+"px"};this.menuStyle.set(u)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&(N(i.triggerRef,ct,5),N(i.popoverRef,pt,5)),e&2&&Y(2)},hostVars:4,hostBindings:function(e,i){e&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:ut,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let o=z();x(dt),a(0,"div",2,0),E("click",function(r){return k(o),y(i.toggleIsOpen(r))}),a(2,"div",3),h(3),c(),a(4,"button",4),_(5,"Open popover"),c()(),a(6,"div",5,1)(8,"div",6),E("click",function(r){return k(o),y(i.isOpen()&&i.eventClose(r))}),c(),h(9,1),c()}e&2&&(j("anchor-name",i.id()),m(6),je(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[Di],encapsulation:2,changeDetection:0})}}return n})();var on=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Ee=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let s=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(s,0)};var i=s,o=r;e.addEventListener("change",s),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),s()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:mt,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(x(ft),h(0),a(1,"div",0)(2,"div",1),h(3,1),h(4,2),c(),h(5,3),h(6,4),a(7,"div",2),h(8,5),h(9,6),c()(),a(10,"div",3)(11,"div",4),h(12,7),c(),a(13,"div",5),h(14,8),c()())},encapsulation:2,changeDetection:0})}}return n})(),sn=(()=>{class n{constructor(){this._el=b(H),this.inputRef=U.required("input"),this.filesOver=C(!1),this.multiple=g(),this.accept=g(null),this.placeholder=A("Click or drag files here"),this.overlayText=g("Drop files here"),this.files=A([]),this.fileUploadClasses=D(()=>this._el.nativeElement.classList.toString()),this.inputEffect=R(()=>{let t=this.inputRef().nativeElement;t&&(t.placeholder&&this.placeholder.set(t.placeholder),t.addEventListener("dragover",e=>{e.preventDefault(),this.filesOver.set(!0)}),t.addEventListener("dragleave",e=>{e.preventDefault(),this.filesOver.set(!1)}),t.addEventListener("drop",e=>{e.preventDefault(),this.filesOver.set(!1);let i=e.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),t.files=i)}),t.addEventListener("change",e=>{e.preventDefault(),this.handleFileUpload(Array.from(e.target.files))}))})}handleFileUpload(t){this.multiple()?this.files.update(e=>[...e,...t]):this.files.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-file-upload"]],viewQuery:function(e,i){e&1&&N(i.inputRef,Ue,5),e&2&&Y()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:vt,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(e,i){e&1&&(x(gt),a(0,"spk-form-field"),h(1,0,["ngProjectAs","label",5,["label"]]),a(2,"div",2,0),O(4,Ct,2,1,"div",3)(5,_t,2,1,"div",3)(6,St,2,1,"div",4),q(7,"input",5,1)(9,"div",6),c(),a(10,"spk-icon",7),_(11,"upload-simple"),c()()),e&2&&(Q(i.fileUploadClasses()),m(4),T(i.files().length===1?4:i.files().length>1?5:6),m(3),Le("multiple",i.multiple())("accept",i.accept()),m(2),I("files-over",i.filesOver()))},dependencies:[Ee,te],encapsulation:2,changeDetection:0})}}return n})(),rn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function $e(n,d){let t=d?.injector||(Ve($e),b(de)),{debounce:e=0,initialValue:i=void 0,transform:o=v=>v,compare:s=(v,M)=>v===M,forceType:r=void 0,returnPreviousValue:p=!0}=d||{},l=C(i),u=t.get(ue),w=D(()=>{let v=n()?.nativeElement;if(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)return Ye(v)}),V=!1,P,F=null;return R(()=>{let v=w();if(!v)return l.set(p&&P?o(P):void 0);i!==void 0&&v.value===""?l.set(i):v.value!==""&&ne();let M=W=>{F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,ne()},e)};v.addEventListener("input",M),v.addEventListener("inputValueChanged",M),u.onDestroy(()=>{v.removeEventListener("input",M),v.removeEventListener("inputValueChanged",M),F!==null&&clearTimeout(F)})},{injector:t}),R(()=>{let v=w();if(!v)return;let M=l()??"",W=M==null?"":String(M);v.value!==W&&(P=W,v.value=W,v.dispatchEvent(new Event("input")))},{injector:t}),l;function ne(){if(!V){V=!0;try{let v=w();if(!v)return;let M=v.value,W=r?Xe(M,r):o(M);P=M,s(l(),W)||l.set(W)}finally{V=!1}}}function Ye(v){return Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(M){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,M);let Ge=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:M}});return this.dispatchEvent(Ge),M}}),v}function Xe(v,M){switch(M){case"string":return v.toString();case"number":let W=Number(v);return isNaN(W)?void 0:W;case"boolean":return v.toLowerCase()==="true"?!0:v.toLowerCase()==="false"?!1:void 0;default:return v}}}function Qe(n,d){let t=b(de),e=t.get(ue),i=C([]),o=null,s=null,r=(l,u)=>{s&&s.disconnect();let w=Array.from(l.nativeElement.querySelectorAll(u.join(",")));i.set(w),s=new MutationObserver(V=>{requestAnimationFrame(()=>{let P=Array.from(l.nativeElement.querySelectorAll(u.join(",")));i.set(P)})}),s.observe(l.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>p())};o=R(()=>{let l=typeof n=="function"&&n[Me]?n():n,u=typeof d=="function"?d():d;l&&u?.length>0?r(l,u):(i.set([]),s&&(s.disconnect(),s=null))},{injector:t});function p(){o&&o.destroy(),s&&s.disconnect()}return{signal:i.asReadonly(),destroy:p}}var an=(()=>{class n{constructor(){this.#e=b(me),this.above=g(!1),this.right=g(!1),this.openIndicator=g(!1),this.disabled=g(!1),this.customOptionElementSelectors=g(["button"]),this.keepClickedOptionActive=g(!1),this.closeOnClick=g(!0),this.isOpen=A(!1),this.closed=X(),this.searchable=g(!1),this.activeOptionIndex=C(-1),this.inputRef=U("input"),this.optionsRef=U("optionsRef"),this.options=Qe(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=D(()=>this.options.signal().filter(t=>!t.disabled)),this.inputValue=$e(this.inputRef),this.abortController=null,this.optionsEffect=R(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",i=>{let o=i.target,s=this.activeElements();if(!s.length){let p=this.optionsEl();this.activeElements.set(p),s=p}let r=s.findIndex(p=>p===o);r>-1&&(this.activeOptionIndex.set(r),t.focus())}),t.addEventListener("keydown",e=>{let i=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(i))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(i))):e.key==="Enter"?(e.preventDefault(),i>-1&&(this.activeElements()[i].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=C([]),this.lastInputValue="",this.inputValueEffect=R(()=>{if(!this.searchable())return;let e=(this.inputValue()??"").toLowerCase();if(this.#t(),!e||e==="")return;let i=this._lastElementList.length&&e.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=e;for(let o=0;o<i.length;o++){let s=i[o],r=s.textContent?.toLowerCase()||"",p=this.#i(r,e);s.value=p}i=i.filter(o=>o.value>0).sort((o,s)=>s.value-o.value);for(let o=0;o<i.length;o++)this.#e.setStyle(i[o],"order",o);this.activeElements.set(i),this._lastElementList=i}),this.activeOptionIndexEffect=R(()=>{let t=this.activeElements(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e;#i(t,e){if(!e)return 0;let i=0,o=-1,s=0,r=!0;for(let p=0;p<e.length;p++){let l=e[p];if(t.length>o+1&&t[o+1]===l)i+=p===0?100:150,o++,s++;else{let u=t.indexOf(l,o+1);if(p>0&&(r=!1),u===-1)return 0;i+=100,o=u,s++}}return r&&e.length===s&&(i+=1e3),i+=s*20,i}nextActiveIndex(t){let e=this.activeElements();if(!e.length){let o=this.optionsEl();this.activeElements.set(o),e=o}if(t===-1||t===e.length-1)return 0;let i=t+1;return e[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(t){let e=this.activeElements();if(!e.length){let o=this.optionsEl();this.activeElements.set(o),e=o}if(t===0||t===-1)return e.length-1;let i=t-1;return e[i].disabled?this.prevActiveIndex(i):i}close(t="closed",e){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active"))}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],viewQuery:function(e,i){e&1&&(N(i.inputRef,Ue,5),N(i.optionsRef,kt,5)),e&2&&Y(2)},hostVars:4,hostBindings:function(e,i){e&2&&I("disabled",i.disabled())("has-search",i.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Dt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let o=z();x(yt),a(0,"spk-popover",3,0),ye("isOpenChange",function(r){return k(o),ke(i.isOpen,r)||(i.isOpen=r),y(r)}),E("closed",function(){return k(o),y(i.close("fromPopover"))}),a(2,"div",4),E("click",function(){return k(o),y(!i.disabled()&&i.isOpen.set(!0))}),h(3),O(4,xt,2,0,"spk-icon",5),c(),a(5,"div",6)(6,"spk-form-field",7),q(7,"input",8,1),c()(),a(9,"div",9,2),E("click",function(){return k(o),y(i.close("active"))}),h(11,1),c()()}e&2&&(Se("isOpen",i.isOpen),G("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",De(12,ht)),m(2),I("is-open",i.isOpen()),m(2),T(i.openIndicator()?4:-1),m(2),I("hidden",i.searchable()===!1),m(3),I("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ne,Ee,te],encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{constructor(){this.value=g(void 0)}static{this.\u0275fac=function(e){return new(e||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(e,i){e&1&&q(0,"div",0),e&2&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),ln=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(x(),q(0,"div",0),h(1))},encapsulation:2,changeDetection:0})}}return n})(),cn=(()=>{class n{constructor(){this.#e=b(H),this.#i=null,this.#t=null,this.#n=0,this.alwaysShowThumb=g(!1),this.unit=g(""),this.value=A(this.#n),this.inputState=C({min:0,max:100,step:1}),this.valuePercentage=D(()=>{let{min:t,max:e}=this.inputState(),i=this.value()??t;if(isNaN(i))return 0;let o=e-t;if(o===0)return 0;let s=(i-t)/o*100;return Math.max(0,Math.min(100,s))}),this.trackFilledPercentage=D(()=>this.valuePercentage()),this.thumbPositionPercentage=D(()=>this.valuePercentage()),this.syncModelToInputEffect=R(()=>{let t=this.value();if(this.#t){let e=parseFloat(this.#t.value);(isNaN(e)||String(e)!==String(t))&&(this.#t.value=String(t))}})}#e;#i;#t;#n;get hasInputElement(){return!!this.#t}ngAfterViewInit(){this.#t=this.#e.nativeElement.querySelector('input[type="range"]'),this.#t?(this.#a(this.#t),this.#t.oninput=()=>{this.setNewInputValue(this.#t.value)},this.#t.addEventListener("inputValueChanged",t=>{this.setNewInputValue(t.detail.value)}),queueMicrotask(()=>this.#s(!0)),this.#o()):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(t){let e=parseFloat(t??"0");if(!isNaN(e)){let{min:i,max:o}=this.inputState();this.value.set(Math.max(i,Math.min(o,e)))}}trackEvent(t){if(!this.#t||this.#t.readOnly||this.#t.disabled){t.preventDefault(),t.stopPropagation();return}if(t.target===this.#t||t.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let i=t.currentTarget.getBoundingClientRect(),o=t.clientX-i.left,s=i.width,{min:r,max:p,step:l}=this.inputState(),u=p-r;if(s>0&&u!==0&&l>0){let V=(o/s*u+r-r)/l,P=r+Math.round(V)*l,F=this.#r(l);P=parseFloat(P.toFixed(F));let ne=Math.max(r,Math.min(p,P));this.value.set(ne)}}#s(t=!1){if(!this.#t)return;let e=parseFloat(this.#t.min??"0")??0,i=parseFloat(this.#t.max??"100")??100,o=this.#t.step,s=1;if(o&&o.toLowerCase()!=="any"){let p=parseFloat(o);!isNaN(p)&&p>0&&(s=p)}this.inputState.set({min:e,max:i,step:s});let r=parseFloat(this.#t.value??String(e))??e;if(t&&this.value()!==this.#n){let p=this.value(),l=Math.max(e,Math.min(i,p));r!==l&&(this.#t.value=String(l)),p!==l&&this.value.set(l)}else{let p=Math.max(e,Math.min(i,r));this.value()!==p&&this.value.set(p)}}#o(){if(!this.#t||typeof MutationObserver>"u")return;let t=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(e=>{let i=!1;for(let o of e)if(o.type==="attributes"&&t.includes(o.attributeName??"")){i=!0;break}i&&this.#s(!1)}),this.#i.observe(this.#t,{attributes:!0})}#r(t){if(isNaN(t)||Math.floor(t)===t)return 0;let i=t.toString().split(".")[1];return i?i.length:0}#a(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#t&&(this.#t.oninput=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&I("has-input",i.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:bt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(x(wt),a(0,"div",0),h(1),c(),a(2,"div",1)(3,"div",2),_(4),c(),a(5,"div",3),E("click",function(s){return i.trackEvent(s)}),h(6,1),a(7,"div",4),q(8,"div",5),c(),a(9,"div",6)(10,"div",7)(11,"div",8),_(12),c()()()(),a(13,"div",9),_(14),c()()),e&2&&(m(4),re("",i.inputState().min,"",i.unit(),""),m(4),j("width",i.trackFilledPercentage(),"%"),m(),j("left",i.thumbPositionPercentage(),"%"),m(),I("always-show",i.alwaysShowThumb()),m(2),re("",i.value(),"",i.unit(),""),m(2),re("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),Ti=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),pn=(()=>{class n{constructor(){this.#e=b(H),this.value=g(),this.label=g(),this.asFreeText=g(!1),this.placeholder=g(),this.readonly=A(!1),this.disabled=A(!1),this.lazySearch=g(!1),this.inlineSearch=g(!1),this.asText=g(!1),this.isClearable=g(!0),this.selectMultiple=g(!1),this.optionTemplate=g(null),this.selectedOptionTemplate=g(null),this.placeholderTemplate=g(null),this.isOpen=A(!1),this.isLoading=A(!1),this.options=A([]),this.selectedOptions=A([]),this.cleared=X(),this.inlineTemplate=Fe(oe),this.optionsWrapRef=U.required("optionsWrap"),this.inputRefInput=C(null),this.#i=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new H(e.target)),this.#i.disconnect())}),this.inputValue=C(""),this.prevInputValue=C(null),this.focusedOptionIndex=C(-1),this._isClearable=D(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=D(()=>this.#e.nativeElement.classList.toString()),this.stretch=D(()=>this.selectClasses().includes("stretch")),this.placeholderText=D(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=D(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#o(i,e)):t}),this.filteredOptions=D(()=>{let t=this.options()||[],e=this.label(),i=this.value(),o=this.inlineSearch(),s=this.inputValue().toLowerCase(),r=this.#a(s);if(t.length<=0)return[];if(!o||s==="")return t;let l=t.filter(u=>{let w=e?(this.#o(u,e)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),V=((i?this.#o(u,i):u)??"").toString().toLowerCase(),P=r.test(w),F=r.test(V);return P||F}).map(u=>{let w=e?(this.#o(u,e)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),V=((i?this.#o(u,i):u)??"").toString().toLowerCase(),P=this.#t(w,s),F=this.#t(V,s);return{item:u,score:Math.max(P,F)}});return l.sort((u,w)=>w.score-u.score),l.map(u=>u.item)}),this.inputRefEl=D(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let o=i.target.value,s=this.inputValue();o!==s&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(o),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let o=i.detail.value,s=this.inputValue();if(o!==s){if(o===""){this.clear();return}this.setSelectedOptionsFromValue(o),this.setInputValueFromSelectedOptions(),this.#s()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=R(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=R(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=R(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=D(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=D(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=D(()=>this.inlineSearch()||this.lazySearch()),this.#n=R(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(o=>e?this.#o(o,e):o).join(",");this.inputValue.set(i)})}#e;#i;#t(t,e){if(!e)return 0;let i=0,o=-1,s=0,r=!0;for(let p=0;p<e.length;p++){let l=e[p];if(t.length>o+1&&t[o+1]===l)i+=p===0?100:150,o++,s++;else{let u=t.indexOf(l,o+1);if(p>0&&(r=!1),u===-1)return 0;i+=100,o=u,s++}}return r&&e.length===s&&(i+=1e3),i+=s*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new H(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new H(e));return}typeof MutationObserver<"u"&&this.#i.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),o=this.selectMultiple(),s=t.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let r=o?s:[s[0]],p=e.filter(l=>{let u=i?this.#o(l,i)?.toString():l?.toString();return u&&r.includes(u)});this.selectedOptions.set(o?p:[p[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(o=>e?this.#o(o,e):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#o(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),r=this.value(),p=this.selectedOptionValues(),l=r?this.#o(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(u=>{let w=p.indexOf(l);if(w>-1){let V=[...u.slice(0,w),...u.slice(w+1)];return s||V.length>0?V:u}else return this.focusedOptionIndex.set(t),o?[...u,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],o=e?this.#o(i,e):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#s())}#s(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(o=>e?this.#o(o,e)===t:o===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#o(t,e){return e.split(".").reduce((i,o)=>i?.[o],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.#l(o);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#i.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,o){e&1&&Be(o,i.inlineTemplate,oe,5),e&2&&Y()},viewQuery:function(e,i){e&1&&N(i.optionsWrapRef,Ot,5),e&2&&Y()},hostVars:2,hostBindings:function(e,i){e&2&&I("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:Tt,decls:32,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let o=z();x(Et),ae(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),ye("isOpenChange",function(r){return k(o),ke(i.isOpen,r)||(i.isOpen=r),y(r)}),E("closed",function(){return k(o),y(i.close())}),a(12,"spk-form-field",3),E("click",function(){return k(o),y(i.open())}),h(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),O(16,It,1,1)(17,zt,2,0)(18,Qt,2,1),h(19,1),h(20,2),c()(),O(21,Yt,2,0,"spk-icon",6)(22,Xt,1,0,"spk-spinner",7)(23,Gt,2,0,"spk-icon",6)(24,Kt,2,0,"spk-icon",6)(25,Jt,2,0,"spk-icon",6)(26,Zt,2,0,"spk-icon",6)(27,ei,2,0,"spk-icon",6),c(),a(28,"div",8,1),ve(30,si,4,6,"li",9,ge),c()()}if(e&2){J(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),r=i.inlineTemplate();m(4);let p=J(i.selectedOptions()),l=i.inputState();m(2),J(s||o||r),m(),J(o||r),m();let u=J(!i.asText()&&i.selectMultiple());m();let w=J(i.isOpen()&&i.hasSearch()&&(u||i.inputValue().length>0));m(),Se("isOpen",i.isOpen),G("disableOpenByClick",!0)("options",De(21,Mt)),m(2),I("stretch",i.stretch())("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),m(2),I("show-search-text",w),m(),I("is-selected",l==="selected"),m(),T(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:p.length>0?17:w?-1:18),m(5),T(l==="closed"?21:l==="loading"?22:l==="open-searching"?23:l==="searching"?24:l==="selected"&&i._isClearable()?25:l==="selected"&&!i._isClearable()?26:27),m(9),Ce(i.filteredOptions())}},dependencies:[ze,Ne,Ee,te,xi,Ti,wi],encapsulation:2,changeDetection:0})}}return n})(),dn=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.#i=C(this.#e?.sidenavType),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=g(!1),this.isOpen=A(!1),this.type=g(void 0),this._type=D(()=>this.type()?this.type():this.#e?.sidenavType),this.dragImageElement=U.required("dragImageElement"),this.dragIsEnding=C(!1),this.dragIsOnScreen=C(!0),this.isDragging=C(!1),this.dragPositionX=C(0),this.dragActualPositionX=D(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=D(()=>this._type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=R(()=>{this.isDragging()&&document.body.classList.add("dragging")})}#e;#i;drop(t){t.stopPropagation(),this.#t(t.clientX)}#t(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#t(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#n(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#n(t)}#n(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#n(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#t(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&N(i.dragImageElement,ri,5),e&2&&Y()},hostVars:8,hostBindings:function(e,i){e&2&&(Q(i._type()),I("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:li,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(x(ai),O(0,ci,2,0,"div",1)(1,pi,1,0,"div",2),a(2,"div",3),h(3),c(),a(4,"div",4),O(5,di,1,0,"div",5),a(6,"div",6),h(7,1),c(),a(8,"main"),h(9,2),c()()),e&2&&(T(i.type()==="overlay"?0:-1),m(),T(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),T(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var un=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var hn=(()=>{class n{constructor(){this.#e=b(Mi),this.spkSort=g(),this.sortAsc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===e}),this.sortDesc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===`-${e}`})}#e;toggleSort(){let t=this.spkSort();t&&this.#e.toggleSort(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(e,i){e&1&&E("mousedown",function(){return i.toggleSort()}),e&2&&I("sort-asc",i.sortAsc())("sort-desc",i.sortDesc())},inputs:{spkSort:[1,"spkSort"]}})}}return n})();var ee=1.5,Mi=(()=>{class n{constructor(){this.#e=b(H),this.#i=b(ce,{optional:!0}),this.loading=g(!1),this.data=g([]),this.dataChange=X(),this.sortByColumn=A(null),this.thead=U("thead"),this.columns=Qe(this.thead,["TH"]),this.class=C(this.#i?.tableType??"default"),this.resizing=C(!1),this.sizeTrigger=C(!0),this.#t=null,this.#n=C(!1),this.scrollXState=C(-1),this.scrollYState=C(-1),this.canScrollX=C(!1),this.canScrollY=C(!1),this.columnSizes=D(()=>{this.sizeTrigger();let t=this.columns.signal();return t.reduce((e,i,o)=>{let s=i,r=o===t.length-1;return s.dataset.size?`${e} ${s.dataset.size}`:s.classList.contains("sticky")||s.classList.contains("sticky-end")?`${e} min-content`:r?`${e} 1fr`:`${e} 1fr`},"")}),this.e=R(()=>{let t=this.sortByColumn();if(t===null)return this.#n()||(this.#t=this.data(),this.#n.set(!0)),this.dataChange.emit(structuredClone(this.#t));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),o=this.data().sort((s,r)=>{let p=s[e],l=r[e],u=0;return typeof p=="number"&&typeof l=="number"&&(u=p-l),p instanceof Date&&l instanceof Date&&(u=p.getTime()-l.getTime()),typeof p=="string"&&typeof l=="string"&&(u=p.localeCompare(l,void 0,{sensitivity:"base"})),i?-u:u});this.dataChange.emit(o)})}#e;#i;#t;#n;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#s()}onResize(t){this.#s()}ngAfterViewInit(){queueMicrotask(()=>this.#s())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}#s(){let t=this.#e.nativeElement,e=-1,i=-1,o=t.scrollWidth>t.clientWidth+ee;if(o){let r=t.scrollLeft<=ee;t.scrollWidth-(t.scrollLeft+t.clientWidth)<ee?e=1:r||(e=0)}this.scrollXState.set(e),this.canScrollX.set(o);let s=t.scrollHeight>t.clientHeight+ee;if(s){let r=t.scrollTop<=ee;t.scrollHeight-(t.scrollTop+t.clientHeight)<ee?i=1:r||(i=0)}this.scrollYState.set(i),this.canScrollY.set(s)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&N(i.thead,ui,5),e&2&&Y()},hostVars:18,hostBindings:function(e,i){e&1&&E("scroll",function(){return i.onScroll()})("resize",function(s){return i.onResize(s)},!1,Pe),e&2&&(Q(i.class()),j("grid-template-columns",i.columnSizes()),I("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:fi,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(x(hi),a(0,"thead",null,0),h(2),O(3,mi,1,0,"spk-progress-bar",1),c(),a(4,"tbody"),h(5,1),c(),O(6,gi,2,0,"div",2)),e&2&&(m(3),T(i.loading()?3:-1),m(3),T(i.loading()?-1:6))},dependencies:[Ei],encapsulation:2,changeDetection:0})}}return n})(),fn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),mn=(()=>{class n{constructor(){this.isActive=A(!1),this.disallowToggle=g(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&I("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ci,decls:6,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"content"]],template:function(e,i){e&1&&(x(vi),a(0,"h3",0),E("click",function(){return i.disallowToggle()||i.toggle()}),h(1,0,null,_i,1,0),O(3,Si,2,0,"spk-icon",1),c(),a(4,"div",2),h(5,1),c()),e&2&&(m(3),T(i.disallowToggle()?-1:3))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),gn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:L,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(x(),a(0,"div",0),q(1,"div",1),c(),h(2))},encapsulation:2,changeDetection:0})}}return n})();var vn=(()=>{class n{constructor(){this.filesOver=C(!1),this.filesDropped=X()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&E("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),e&2&&I("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();var Ii=(()=>{class n{constructor(){this.positionAnchorName=g.required()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["sparkle-tooltip-wrapper"]],hostVars:2,hostBindings:function(e,i){e&2&&j("position-anchor",i.positionAnchorName())},inputs:{positionAnchorName:[1,"positionAnchorName"]},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(e,i){e&1&&(x(),a(0,"div",0),h(1),c())},encapsulation:2})}}return n})(),Cn=(()=>{class n{constructor(){this.spkTooltip=g.required(),this.#e=b(H),this.#i=b(Ae),this.#t=b(Re),this.#n=b(me),this.#s=null,this.#o=null,this.anchorName=C(`--${Oe()}`),this.manageWrapperEffect=R(()=>{let t=this.spkTooltip();if(this.cleanupTooltip(),t){let e;typeof t=="string"?e=[this.#n.createText(t)]:t instanceof oe?(this.#o=t.createEmbeddedView(null),this.#o.detectChanges(),e=this.#o.rootNodes):e=[],e.length>0&&(this.#s=this.#i.createComponent(Ii,{environmentInjector:this.#t,projectableNodes:[e]}),this.#s.setInput("positionAnchorName",this.anchorName()),this.#s.changeDetectorRef.detectChanges())}})}#e;#i;#t;#n;#s;#o;onClick(t){let e=this.#e.nativeElement;(e.hasAttribute("disabled")||e.hasAttribute("readonly"))&&(t.preventDefault(),t.stopPropagation())}cleanupTooltip(){this.#s&&(this.#s.destroy(),this.#s=null),this.#o&&(this.#o.destroy(),this.#o=null)}ngOnDestroy(){this.cleanupTooltip()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:2,hostBindings:function(e,i){e&1&&E("click",function(s){return i.onClick(s)}),e&2&&j("anchor-name",i.anchorName())},inputs:{spkTooltip:[1,"spkTooltip"]}})}}return n})();export{te as a,Ji as b,Zi as c,yi as d,en as e,tn as f,Di as g,nn as h,xi as i,wi as j,on as k,Ee as l,sn as m,rn as n,an as o,Ei as p,ln as q,cn as r,Ti as s,pn as t,dn as u,un as v,hn as w,Mi as x,fn as y,mn as z,gn as A,vn as B,Cn as C};
|
|
1
|
+
import{ia as ze}from"./chunk-EBXJGPRA.js";import{$a as U,Ab as ge,Bb as ve,Cb as Ce,Db as a,Eb as c,Fb as q,Ib as ie,Jb as z,Jc as qe,Qc as D,Rc as R,T as pe,Ta as Pe,Tc as xe,Ua as m,Vb as E,W as Ie,Wa as oe,Wb as f,Xb as x,Ya as me,Yb as h,Z as b,_a as Ae,a as Me,aa as Re,ab as Fe,bb as A,ca as Ve,ea as k,fa as y,fc as Be,gb as S,gc as N,hc as Y,ib as se,ic as We,jc as _,ka as de,kc as _e,la as ue,lb as O,lc as K,mc as re,oc as Se,pc as ke,qa as he,qb as He,qc as ye,ra as X,rc as ae,sa as g,sc as J,ta as H,tb as Le,tc as B,ua as fe,ub as G,va as C,vb as j,vc as De,wb as I,wc as le,xb as je,yb as Q,zb as T}from"./chunk-4KE2I7OA.js";import{a as $,b as Z,c as Te}from"./chunk-7CGTOI24.js";var L=["*"],Ke=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Je=["[icon]","[title]","*","[content]"];function Ze(n,d){n&1&&(a(0,"spk-icon",3),_(1,"info"),c())}function et(n,d){n&1&&(a(0,"spk-icon",3),_(1,"info"),c())}function tt(n,d){n&1&&(a(0,"spk-icon",3),_(1,"warning"),c())}function it(n,d){n&1&&(a(0,"spk-icon",3),_(1,"warning-octagon"),c())}function nt(n,d){n&1&&(a(0,"spk-icon",3),_(1,"check-circle"),c())}function ot(n,d){n&1&&(a(0,"spk-icon",3),_(1,"question"),c())}function st(n,d){if(n&1){let t=z();a(0,"spk-icon",7),E("click",function(){k(t);let i=f();return y(i.removeAlert())}),_(1,"plus"),c()}}var rt=["dialogRef"];function at(n,d){if(n&1){let t=z();a(0,"div",4),E("click",function(){k(t);let i=f();return y(i.isOpen.set(!1))}),c()}}var lt=["spk-button",""];var ct=["triggerRef"],pt=["popoverRef"],dt=[[["","trigger",""]],"*"],ut=["[trigger]","*"];var ht=()=>({closeOnButton:!1,closeOnEsc:!0});var ft=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],mt=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Ue=["input"],gt=[[["label"]]],vt=["label"];function Ct(n,d){if(n&1&&(a(0,"div",3),_(1),c()),n&2){let t=f();m(),_e(t.files()[0].name)}}function _t(n,d){if(n&1&&(a(0,"div",3),_(1),c()),n&2){let t=f();m(),K("",t.files().length," files selected")}}function St(n,d){if(n&1&&(a(0,"div",4),_(1),c()),n&2){let t=f();m(),_e(t.filesOver()?t.overlayText():t.placeholder())}}var kt=["optionsRef"],yt=["*",[["","menu",""]]],Dt=["*","[menu]"];function xt(n,d){n&1&&(a(0,"spk-icon",5),_(1,"caret-down"),c())}var wt=[[["label"]],[["input","type","range"]]],bt=["label","input[type=range]"],Ot=["optionsWrap"],Et=[[["label"]],[["input"]],[["textarea"]]],Tt=["label","input","textarea"],Mt=()=>({closeOnButton:!1,closeOnEsc:!1}),be=n=>({$implicit:n});function It(n,d){if(n&1&&_(0),n&2){let t=f();K(" ",t.inputValue()," ")}}function Rt(n,d){n&1&&ie(0)}function Vt(n,d){if(n&1&&O(0,Rt,1,0,"ng-container",13),n&2){let t=f(3).$implicit;f(2);let e=B(6);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function Pt(n,d){if(n&1&&_(0),n&2){let t=f(3).$implicit,e=f(2);K(" ",e.getLabel(t)," ")}}function At(n,d){if(n&1){let t=z();a(0,"spk-chip",11),O(1,Vt,1,4,"ng-container")(2,Pt,1,1),a(3,"spk-icon",12),E("click",function(i){k(t);let o=f(2).$index,s=f(2);return y(s.removeSelectedOptionByIndex(i,o))}),_(4,"x-bold"),c()()}if(n&2){let t=f(4),e=B(6);Q(t.selectClasses()),m(),T(e?1:2)}}function Ft(n,d){n&1&&ie(0)}function Ht(n,d){if(n&1&&O(0,Ft,1,0,"ng-container",13),n&2){let t=f(4).$implicit;f(2);let e=B(6);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function Lt(n,d){if(n&1&&_(0),n&2){let t=f(4).$implicit,e=f(2);K(" ",e.getLabel(t)," ")}}function jt(n,d){if(n&1&&O(0,Ht,1,4,"ng-container")(1,Lt,1,1),n&2){f(5);let t=B(6);T(t?0:1)}}function Bt(n,d){if(n&1&&O(0,jt,2,1),n&2){f(4);let t=B(9);T(t?-1:0)}}function Wt(n,d){if(n&1&&O(0,At,5,3,"spk-chip",10)(1,Bt,1,1),n&2){f(3);let t=B(8);T(t?0:1)}}function qt(n,d){if(n&1&&O(0,Wt,2,1),n&2){let t=d.$implicit;T(t?0:-1)}}function zt(n,d){if(n&1&&ve(0,qt,1,1,null,null,ge),n&2){f();let t=B(4);Ce(t)}}function Ut(n,d){n&1&&ie(0)}function Nt(n,d){if(n&1&&O(0,Ut,1,0,"ng-container",14),n&2){f(2);let t=B(0);G("ngTemplateOutlet",t)}}function $t(n,d){if(n&1&&_(0),n&2){let t,e=f(2);K(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function Qt(n,d){if(n&1&&O(0,Nt,1,1,"ng-container")(1,$t,1,1),n&2){f();let t=B(0);T(t?0:1)}}function Yt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),c())}function Xt(n,d){n&1&&q(0,"spk-spinner",7)}function Gt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"list-magnifying-glass"),c())}function Kt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"magnifying-glass"),c())}function Jt(n,d){if(n&1){let t=z();a(0,"spk-icon",15),E("click",function(i){k(t);let o=f();return y(o.clear(i))}),_(1,"x-bold"),c()}}function Zt(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),c())}function ei(n,d){n&1&&(a(0,"spk-icon",6),_(1,"caret-up"),c())}function ti(n,d){if(n&1&&q(0,"spk-checkbox"),n&2){let t=f().$index,e=f();Q(e.selectClasses()),I("active",e.isSelected(t))}}function ii(n,d){n&1&&ie(0)}function ni(n,d){if(n&1&&O(0,ii,1,0,"ng-container",13),n&2){let t=f().$implicit;f();let e=B(7);G("ngTemplateOutlet",e)("ngTemplateOutletContext",le(2,be,t))}}function oi(n,d){if(n&1&&_(0),n&2){let t=f().$implicit,e=f();K(" ",e.getLabel(t)," ")}}function si(n,d){if(n&1){let t=z();a(0,"li",16),E("click",function(){let i=k(t).$index,o=f();return y(o.toggleOptionByIndex(i))}),O(1,ti,1,4,"spk-checkbox",17)(2,ni,1,4,"ng-container")(3,oi,1,1),c()}if(n&2){let t=d.$index,e=f(),i=B(7);I("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),m(),T(e.selectMultiple()?1:-1),m(),T(i?2:3)}}var ri=["dragImageElement"],ai=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],li=["[sidenav]","[sidenav-closed-topbar]","*"];function ci(n,d){n&1&&q(0,"div",1,0)}function pi(n,d){if(n&1){let t=z();a(0,"div",7),E("drop",function(i){k(t);let o=f();return y(o.drop(i))})("dragover",function(i){k(t);let o=f();return y(o.dragOver(i))})("dragenter",function(){k(t);let i=f();return y(i.dragEnter())})("dragleave",function(){k(t);let i=f();return y(i.dragLeave())}),c()}}function di(n,d){if(n&1){let t=z();a(0,"div",8),E("dragstart",function(i){k(t);let o=f();return y(o.dragStart(i))})("dragend",function(i){k(t);let o=f();return y(o.dragEnd(i))})("drag",function(i){k(t);let o=f();return y(o.drag(i))})("touchstart",function(i){k(t);let o=f();return y(o.touchStart(i))})("touchmove",function(i){k(t);let o=f();return y(o.touchMove(i))})("touchend",function(i){k(t);let o=f();return y(o.touchEnd(i))})("touchcancel",function(i){k(t);let o=f();return y(o.touchCancel(i))}),c()}}var ui=["thead"],hi=[[["","table-header",""]],"*",[["","table-no-rows",""]]],fi=["[table-header]","*","[table-no-rows]"];function mi(n,d){n&1&&q(0,"spk-progress-bar",1)}function gi(n,d){n&1&&(a(0,"div",2),h(1,2),c())}var vi=[[["","title",""]],"*"],Ci=["[title]","*"];function _i(n,d){n&1&&_(0,"Title")}function Si(n,d){n&1&&(a(0,"spk-icon",1),_(1,"caret-down"),c())}var we=["bold","thin","light","fill"],te=(()=>{class n{#e=b(H);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<we.length;e++)if(t.endsWith(we[e]))return we[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&Q(i.currentClass)},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Ji=(()=>{class n{constructor(){this._el=b(H),this.alertService=g(null),this.id=g(null),this.alertClasses=D(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Je,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(x(Ke),a(0,"div",1)(1,"div",2,0),h(3),c(),a(4,"div",2),ae(5),O(6,Ze,2,0,"spk-icon",3)(7,et,2,0,"spk-icon",3)(8,tt,2,0,"spk-icon",3)(9,it,2,0,"spk-icon",3)(10,nt,2,0,"spk-icon",3)(11,ot,2,0,"spk-icon",3),c(),a(12,"div",4),h(13,1),h(14,2),c(),O(15,st,2,0,"spk-icon",5),a(16,"div",6),h(17,3),c()()),e&2){let o=We(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),T(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),T(i.id()?15:-1)}},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})();function Oe(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Zi=(()=>{class n{constructor(){this.alertHistory=C([]),this.alertHistoryIsOpen=C(!1),this.alertHistoryIsHidden=C(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=Oe();this.alertHistory.update(i=>[Z($({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>Z($({},o),{animateIn:o.id===e?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z($({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z($({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ce=new Ie("Sparkle UI Config"),ki={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},yi=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.dialogRef=U("dialogRef"),this.isOpen=A(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=D(()=>$(Z($({},ki),{class:this.#e?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=R(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}#e;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&N(i.dialogRef,rt,5),e&2&&Y()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:L,decls:6,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(x(),ae(0),a(1,"dialog",1,0)(3,"div",2),h(4),c(),O(5,at,1,0,"div",3),c()),e&2){let o,s,r,p,l=i.defaultOptionMerge();m(),Q(l.class),j("width",(o=l.width)!==null&&o!==void 0?o:"")("max-width",(s=l.maxWidth)!==null&&s!==void 0?s:"")("max-height",(r=l.maxHeight)!==null&&r!==void 0?r:"")("height",(p=l.height)!==null&&p!==void 0?p:""),m(4),T(i.defaultOptionMerge().closeOnOutsideClick?5:-1)}},encapsulation:2,changeDetection:0})}}return n})(),en=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=b(He),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(t,e){let i=this.#i.injector,o=this.#t(),P=e||{},{data:s,closed:r}=P,p=Te(P,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=xe(t,{environmentInjector:i}),this.compRef=xe(yi,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let l=this.insertedCompRef.instance?.data,u=this.insertedCompRef.instance?.closed;if(s){if(fe(l))this.insertedCompRef.setInput("data",s);else if(!fe(l))throw new Error("data is not an input signal on the passed component")}u instanceof he&&(this.closedFieldSub=u.subscribe((...F)=>{r?.(...F),this.#n()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",p),this.compRef.instance.closed.subscribe(()=>V());let w=this;function V(){u&&u instanceof he?u.emit(!1):r?.(void 0),w.#n()}return{component:this.insertedCompRef.instance,close:V}}#t(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),tn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Di=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:lt,ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),nn=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.class=C(this.#e?.cardType??"default")}#e;static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],hostVars:2,hostBindings:function(e,i){e&2&&Q(i.class())},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),xi=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:L,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(x(),a(0,"div",0)(1,"spk-icon",1),_(2,"check"),c(),a(3,"spk-icon",2),_(4,"minus"),c()(),h(5))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),wi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var bi=["scroll","auto"],Oi={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ne=(()=>{class n{constructor(){this.#e=b(qe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=g(!1),this.right=g(!1),this.markForCheck=g(null),this._above=C(this.above()),this._right=C(this.right()),this.disableOpenByClick=g(!1),this.isOpen=A(!1),this.options=g(),this.closed=X(),this.defaultOptionMerge=D(()=>$($({},Oi),this.options())),this.triggerRef=U.required("triggerRef"),this.popoverRef=U.required("popoverRef"),this.id=C("--"+Oe()),this.menuStyle=C(null),this.openAbort=null,this.openEffect=R(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=R(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#t(t){let e=t.parentElement;for(;e;){if(bi.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#i,p=s+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(p);else{if(s=i,r=o+this.#i,l){let w=t.top-e.height-this.#i;w<0||(r=w)}p&&(s=t.right-e.width,s<0&&(s=0));let u={left:s+"px",top:r+"px"};this.menuStyle.set(u)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&(N(i.triggerRef,ct,5),N(i.popoverRef,pt,5)),e&2&&Y(2)},hostVars:4,hostBindings:function(e,i){e&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:ut,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let o=z();x(dt),a(0,"div",2,0),E("click",function(r){return k(o),y(i.toggleIsOpen(r))}),a(2,"div",3),h(3),c(),a(4,"button",4),_(5,"Open popover"),c()(),a(6,"div",5,1)(8,"div",6),E("click",function(r){return k(o),y(i.isOpen()&&i.eventClose(r))}),c(),h(9,1),c()}e&2&&(j("anchor-name",i.id()),m(6),je(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[Di],encapsulation:2,changeDetection:0})}}return n})();var on=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Ee=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let s=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(s,0)};var i=s,o=r;e.addEventListener("change",s),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),s()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:mt,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(x(ft),h(0),a(1,"div",0)(2,"div",1),h(3,1),h(4,2),c(),h(5,3),h(6,4),a(7,"div",2),h(8,5),h(9,6),c()(),a(10,"div",3)(11,"div",4),h(12,7),c(),a(13,"div",5),h(14,8),c()())},encapsulation:2,changeDetection:0})}}return n})(),sn=(()=>{class n{constructor(){this._el=b(H),this.inputRef=U.required("input"),this.filesOver=C(!1),this.multiple=g(),this.accept=g(null),this.placeholder=A("Click or drag files here"),this.overlayText=g("Drop files here"),this.files=A([]),this.fileUploadClasses=D(()=>this._el.nativeElement.classList.toString()),this.inputEffect=R(()=>{let t=this.inputRef().nativeElement;t&&(t.placeholder&&this.placeholder.set(t.placeholder),t.addEventListener("dragover",e=>{e.preventDefault(),this.filesOver.set(!0)}),t.addEventListener("dragleave",e=>{e.preventDefault(),this.filesOver.set(!1)}),t.addEventListener("drop",e=>{e.preventDefault(),this.filesOver.set(!1);let i=e.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),t.files=i)}),t.addEventListener("change",e=>{e.preventDefault(),this.handleFileUpload(Array.from(e.target.files))}))})}handleFileUpload(t){this.multiple()?this.files.update(e=>[...e,...t]):this.files.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-file-upload"]],viewQuery:function(e,i){e&1&&N(i.inputRef,Ue,5),e&2&&Y()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:vt,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(e,i){e&1&&(x(gt),a(0,"spk-form-field"),h(1,0,["ngProjectAs","label",5,["label"]]),a(2,"div",2,0),O(4,Ct,2,1,"div",3)(5,_t,2,1,"div",3)(6,St,2,1,"div",4),q(7,"input",5,1)(9,"div",6),c(),a(10,"spk-icon",7),_(11,"upload-simple"),c()()),e&2&&(Q(i.fileUploadClasses()),m(4),T(i.files().length===1?4:i.files().length>1?5:6),m(3),Le("multiple",i.multiple())("accept",i.accept()),m(2),I("files-over",i.filesOver()))},dependencies:[Ee,te],encapsulation:2,changeDetection:0})}}return n})(),rn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function $e(n,d){let t=d?.injector||(Ve($e),b(de)),{debounce:e=0,initialValue:i=void 0,transform:o=v=>v,compare:s=(v,M)=>v===M,forceType:r=void 0,returnPreviousValue:p=!0}=d||{},l=C(i),u=t.get(ue),w=D(()=>{let v=n()?.nativeElement;if(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)return Ye(v)}),V=!1,P,F=null;return R(()=>{let v=w();if(!v)return l.set(p&&P?o(P):void 0);i!==void 0&&v.value===""?l.set(i):v.value!==""&&ne();let M=W=>{F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,ne()},e)};v.addEventListener("input",M),v.addEventListener("inputValueChanged",M),u.onDestroy(()=>{v.removeEventListener("input",M),v.removeEventListener("inputValueChanged",M),F!==null&&clearTimeout(F)})},{injector:t}),R(()=>{let v=w();if(!v)return;let M=l()??"",W=M==null?"":String(M);v.value!==W&&(P=W,v.value=W,v.dispatchEvent(new Event("input")))},{injector:t}),l;function ne(){if(!V){V=!0;try{let v=w();if(!v)return;let M=v.value,W=r?Xe(M,r):o(M);P=M,s(l(),W)||l.set(W)}finally{V=!1}}}function Ye(v){return Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(M){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,M);let Ge=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:M}});return this.dispatchEvent(Ge),M}}),v}function Xe(v,M){switch(M){case"string":return v.toString();case"number":let W=Number(v);return isNaN(W)?void 0:W;case"boolean":return v.toLowerCase()==="true"?!0:v.toLowerCase()==="false"?!1:void 0;default:return v}}}function Qe(n,d){let t=b(de),e=t.get(ue),i=C([]),o=null,s=null,r=(l,u)=>{s&&s.disconnect();let w=Array.from(l.nativeElement.querySelectorAll(u.join(",")));i.set(w),s=new MutationObserver(V=>{requestAnimationFrame(()=>{let P=Array.from(l.nativeElement.querySelectorAll(u.join(",")));i.set(P)})}),s.observe(l.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>p())};o=R(()=>{let l=typeof n=="function"&&n[Me]?n():n,u=typeof d=="function"?d():d;l&&u?.length>0?r(l,u):(i.set([]),s&&(s.disconnect(),s=null))},{injector:t});function p(){o&&o.destroy(),s&&s.disconnect()}return{signal:i.asReadonly(),destroy:p}}var an=(()=>{class n{constructor(){this.#e=b(me),this.above=g(!1),this.right=g(!1),this.openIndicator=g(!1),this.disabled=g(!1),this.customOptionElementSelectors=g(["button"]),this.keepClickedOptionActive=g(!1),this.closeOnClick=g(!0),this.isOpen=A(!1),this.closed=X(),this.searchable=g(!1),this.activeOptionIndex=C(-1),this.inputRef=U("input"),this.optionsRef=U("optionsRef"),this.options=Qe(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=D(()=>this.options.signal().filter(t=>!t.disabled)),this.inputValue=$e(this.inputRef),this.abortController=null,this.optionsEffect=R(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",i=>{let o=i.target,s=this.activeElements();if(!s.length){let p=this.optionsEl();this.activeElements.set(p),s=p}let r=s.findIndex(p=>p===o);r>-1&&(this.activeOptionIndex.set(r),t.focus())}),t.addEventListener("keydown",e=>{let i=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(i))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(i))):e.key==="Enter"?(e.preventDefault(),i>-1&&(this.activeElements()[i].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=C([]),this.lastInputValue="",this.inputValueEffect=R(()=>{if(!this.searchable())return;let e=(this.inputValue()??"").toLowerCase();if(this.#t(),!e||e==="")return;let i=this._lastElementList.length&&e.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=e;for(let o=0;o<i.length;o++){let s=i[o],r=s.textContent?.toLowerCase()||"",p=this.#i(r,e);s.value=p}i=i.filter(o=>o.value>0).sort((o,s)=>s.value-o.value);for(let o=0;o<i.length;o++)this.#e.setStyle(i[o],"order",o);this.activeElements.set(i),this._lastElementList=i}),this.activeOptionIndexEffect=R(()=>{let t=this.activeElements(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e;#i(t,e){if(!e)return 0;let i=0,o=-1,s=0,r=!0;for(let p=0;p<e.length;p++){let l=e[p];if(t.length>o+1&&t[o+1]===l)i+=p===0?100:150,o++,s++;else{let u=t.indexOf(l,o+1);if(p>0&&(r=!1),u===-1)return 0;i+=100,o=u,s++}}return r&&e.length===s&&(i+=1e3),i+=s*20,i}nextActiveIndex(t){let e=this.activeElements();if(!e.length){let o=this.optionsEl();this.activeElements.set(o),e=o}if(t===-1||t===e.length-1)return 0;let i=t+1;return e[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(t){let e=this.activeElements();if(!e.length){let o=this.optionsEl();this.activeElements.set(o),e=o}if(t===0||t===-1)return e.length-1;let i=t-1;return e[i].disabled?this.prevActiveIndex(i):i}close(t="closed",e){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active"))}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],viewQuery:function(e,i){e&1&&(N(i.inputRef,Ue,5),N(i.optionsRef,kt,5)),e&2&&Y(2)},hostVars:4,hostBindings:function(e,i){e&2&&I("disabled",i.disabled())("has-search",i.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Dt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let o=z();x(yt),a(0,"spk-popover",3,0),ye("isOpenChange",function(r){return k(o),ke(i.isOpen,r)||(i.isOpen=r),y(r)}),E("closed",function(){return k(o),y(i.close("fromPopover"))}),a(2,"div",4),E("click",function(){return k(o),y(!i.disabled()&&i.isOpen.set(!0))}),h(3),O(4,xt,2,0,"spk-icon",5),c(),a(5,"div",6)(6,"spk-form-field",7),q(7,"input",8,1),c()(),a(9,"div",9,2),E("click",function(){return k(o),y(i.close("active"))}),h(11,1),c()()}e&2&&(Se("isOpen",i.isOpen),G("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",De(12,ht)),m(2),I("is-open",i.isOpen()),m(2),T(i.openIndicator()?4:-1),m(2),I("hidden",i.searchable()===!1),m(3),I("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ne,Ee,te],encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{constructor(){this.value=g(void 0)}static{this.\u0275fac=function(e){return new(e||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(e,i){e&1&&q(0,"div",0),e&2&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),ln=(()=>{class n{#e=b(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&E("click",function(){return i.onClick()})},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(x(),q(0,"div",0),h(1))},encapsulation:2,changeDetection:0})}}return n})(),cn=(()=>{class n{constructor(){this.#e=b(H),this.#i=null,this.#t=null,this.#n=0,this.alwaysShowThumb=g(!1),this.unit=g(""),this.value=A(this.#n),this.inputState=C({min:0,max:100,step:1}),this.valuePercentage=D(()=>{let{min:t,max:e}=this.inputState(),i=this.value()??t;if(isNaN(i))return 0;let o=e-t;if(o===0)return 0;let s=(i-t)/o*100;return Math.max(0,Math.min(100,s))}),this.trackFilledPercentage=D(()=>this.valuePercentage()),this.thumbPositionPercentage=D(()=>this.valuePercentage()),this.syncModelToInputEffect=R(()=>{let t=this.value();if(this.#t){let e=parseFloat(this.#t.value);(isNaN(e)||String(e)!==String(t))&&(this.#t.value=String(t))}})}#e;#i;#t;#n;get hasInputElement(){return!!this.#t}ngAfterViewInit(){this.#t=this.#e.nativeElement.querySelector('input[type="range"]'),this.#t?(this.#a(this.#t),this.#t.oninput=()=>{this.setNewInputValue(this.#t.value)},this.#t.addEventListener("inputValueChanged",t=>{this.setNewInputValue(t.detail.value)}),queueMicrotask(()=>this.#s(!0)),this.#o()):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(t){let e=parseFloat(t??"0");if(!isNaN(e)){let{min:i,max:o}=this.inputState();this.value.set(Math.max(i,Math.min(o,e)))}}trackEvent(t){if(!this.#t||this.#t.readOnly||this.#t.disabled){t.preventDefault(),t.stopPropagation();return}if(t.target===this.#t||t.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let i=t.currentTarget.getBoundingClientRect(),o=t.clientX-i.left,s=i.width,{min:r,max:p,step:l}=this.inputState(),u=p-r;if(s>0&&u!==0&&l>0){let V=(o/s*u+r-r)/l,P=r+Math.round(V)*l,F=this.#r(l);P=parseFloat(P.toFixed(F));let ne=Math.max(r,Math.min(p,P));this.value.set(ne)}}#s(t=!1){if(!this.#t)return;let e=parseFloat(this.#t.min??"0")??0,i=parseFloat(this.#t.max??"100")??100,o=this.#t.step,s=1;if(o&&o.toLowerCase()!=="any"){let p=parseFloat(o);!isNaN(p)&&p>0&&(s=p)}this.inputState.set({min:e,max:i,step:s});let r=parseFloat(this.#t.value??String(e))??e;if(t&&this.value()!==this.#n){let p=this.value(),l=Math.max(e,Math.min(i,p));r!==l&&(this.#t.value=String(l)),p!==l&&this.value.set(l)}else{let p=Math.max(e,Math.min(i,r));this.value()!==p&&this.value.set(p)}}#o(){if(!this.#t||typeof MutationObserver>"u")return;let t=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(e=>{let i=!1;for(let o of e)if(o.type==="attributes"&&t.includes(o.attributeName??"")){i=!0;break}i&&this.#s(!1)}),this.#i.observe(this.#t,{attributes:!0})}#r(t){if(isNaN(t)||Math.floor(t)===t)return 0;let i=t.toString().split(".")[1];return i?i.length:0}#a(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#t&&(this.#t.oninput=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&I("has-input",i.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:bt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(x(wt),a(0,"div",0),h(1),c(),a(2,"div",1)(3,"div",2),_(4),c(),a(5,"div",3),E("click",function(s){return i.trackEvent(s)}),h(6,1),a(7,"div",4),q(8,"div",5),c(),a(9,"div",6)(10,"div",7)(11,"div",8),_(12),c()()()(),a(13,"div",9),_(14),c()()),e&2&&(m(4),re("",i.inputState().min,"",i.unit(),""),m(4),j("width",i.trackFilledPercentage(),"%"),m(),j("left",i.thumbPositionPercentage(),"%"),m(),I("always-show",i.alwaysShowThumb()),m(2),re("",i.value(),"",i.unit(),""),m(2),re("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),Ti=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),pn=(()=>{class n{constructor(){this.#e=b(H),this.value=g(),this.label=g(),this.asFreeText=g(!1),this.placeholder=g(),this.readonly=A(!1),this.disabled=A(!1),this.lazySearch=g(!1),this.inlineSearch=g(!1),this.asText=g(!1),this.isClearable=g(!0),this.selectMultiple=g(!1),this.optionTemplate=g(null),this.selectedOptionTemplate=g(null),this.placeholderTemplate=g(null),this.isOpen=A(!1),this.isLoading=A(!1),this.options=A([]),this.selectedOptions=A([]),this.cleared=X(),this.inlineTemplate=Fe(oe),this.optionsWrapRef=U.required("optionsWrap"),this.inputRefInput=C(null),this.#i=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new H(e.target)),this.#i.disconnect())}),this.inputValue=C(""),this.prevInputValue=C(null),this.focusedOptionIndex=C(-1),this._isClearable=D(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=D(()=>this.#e.nativeElement.classList.toString()),this.stretch=D(()=>this.selectClasses().includes("stretch")),this.placeholderText=D(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=D(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#o(i,e)):t}),this.filteredOptions=D(()=>{let t=this.options()||[],e=this.label(),i=this.value(),o=this.inlineSearch(),s=this.inputValue().toLowerCase(),r=this.#a(s);if(t.length<=0)return[];if(!o||s==="")return t;let l=t.filter(u=>{let w=e?(this.#o(u,e)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),V=((i?this.#o(u,i):u)??"").toString().toLowerCase(),P=r.test(w),F=r.test(V);return P||F}).map(u=>{let w=e?(this.#o(u,e)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),V=((i?this.#o(u,i):u)??"").toString().toLowerCase(),P=this.#t(w,s),F=this.#t(V,s);return{item:u,score:Math.max(P,F)}});return l.sort((u,w)=>w.score-u.score),l.map(u=>u.item)}),this.inputRefEl=D(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let o=i.target.value,s=this.inputValue();o!==s&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(o),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let o=i.detail.value,s=this.inputValue();if(o!==s){if(o===""){this.clear();return}this.setSelectedOptionsFromValue(o),this.setInputValueFromSelectedOptions(),this.#s()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=R(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=R(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=R(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=D(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=D(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=D(()=>this.inlineSearch()||this.lazySearch()),this.#n=R(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(o=>e?this.#o(o,e):o).join(",");this.inputValue.set(i)})}#e;#i;#t(t,e){if(!e)return 0;let i=0,o=-1,s=0,r=!0;for(let p=0;p<e.length;p++){let l=e[p];if(t.length>o+1&&t[o+1]===l)i+=p===0?100:150,o++,s++;else{let u=t.indexOf(l,o+1);if(p>0&&(r=!1),u===-1)return 0;i+=100,o=u,s++}}return r&&e.length===s&&(i+=1e3),i+=s*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new H(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new H(e));return}typeof MutationObserver<"u"&&this.#i.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),o=this.selectMultiple(),s=t.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let r=o?s:[s[0]],p=e.filter(l=>{let u=i?this.#o(l,i)?.toString():l?.toString();return u&&r.includes(u)});this.selectedOptions.set(o?p:[p[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(o=>e?this.#o(o,e):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#o(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),r=this.value(),p=this.selectedOptionValues(),l=r?this.#o(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(u=>{let w=p.indexOf(l);if(w>-1){let V=[...u.slice(0,w),...u.slice(w+1)];return s||V.length>0?V:u}else return this.focusedOptionIndex.set(t),o?[...u,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],o=e?this.#o(i,e):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#s())}#s(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(o=>e?this.#o(o,e)===t:o===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#o(t,e){return e.split(".").reduce((i,o)=>i?.[o],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.#l(o);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#i.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,o){e&1&&Be(o,i.inlineTemplate,oe,5),e&2&&Y()},viewQuery:function(e,i){e&1&&N(i.optionsWrapRef,Ot,5),e&2&&Y()},hostVars:2,hostBindings:function(e,i){e&2&&I("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:Tt,decls:32,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let o=z();x(Et),ae(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),ye("isOpenChange",function(r){return k(o),ke(i.isOpen,r)||(i.isOpen=r),y(r)}),E("closed",function(){return k(o),y(i.close())}),a(12,"spk-form-field",3),E("click",function(){return k(o),y(i.open())}),h(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),O(16,It,1,1)(17,zt,2,0)(18,Qt,2,1),h(19,1),h(20,2),c()(),O(21,Yt,2,0,"spk-icon",6)(22,Xt,1,0,"spk-spinner",7)(23,Gt,2,0,"spk-icon",6)(24,Kt,2,0,"spk-icon",6)(25,Jt,2,0,"spk-icon",6)(26,Zt,2,0,"spk-icon",6)(27,ei,2,0,"spk-icon",6),c(),a(28,"div",8,1),ve(30,si,4,6,"li",9,ge),c()()}if(e&2){J(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),r=i.inlineTemplate();m(4);let p=J(i.selectedOptions()),l=i.inputState();m(2),J(s||o||r),m(),J(o||r),m();let u=J(!i.asText()&&i.selectMultiple());m();let w=J(i.isOpen()&&i.hasSearch()&&(u||i.inputValue().length>0));m(),Se("isOpen",i.isOpen),G("disableOpenByClick",!0)("options",De(21,Mt)),m(2),I("stretch",i.stretch())("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),m(2),I("show-search-text",w),m(),I("is-selected",l==="selected"),m(),T(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:p.length>0?17:w?-1:18),m(5),T(l==="closed"?21:l==="loading"?22:l==="open-searching"?23:l==="searching"?24:l==="selected"&&i._isClearable()?25:l==="selected"&&!i._isClearable()?26:27),m(9),Ce(i.filteredOptions())}},dependencies:[ze,Ne,Ee,te,xi,Ti,wi],encapsulation:2,changeDetection:0})}}return n})(),dn=(()=>{class n{constructor(){this.#e=b(ce,{optional:!0}),this.#i=C(this.#e?.sidenavType),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=g(!1),this.isOpen=A(!1),this.type=g(void 0),this._type=D(()=>this.type()?this.type():this.#e?.sidenavType),this.dragImageElement=U.required("dragImageElement"),this.dragIsEnding=C(!1),this.dragIsOnScreen=C(!0),this.isDragging=C(!1),this.dragPositionX=C(0),this.dragActualPositionX=D(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=D(()=>this._type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=R(()=>{this.isDragging()&&document.body.classList.add("dragging")})}#e;#i;drop(t){t.stopPropagation(),this.#t(t.clientX)}#t(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#t(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#n(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#n(t)}#n(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#n(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#t(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&N(i.dragImageElement,ri,5),e&2&&Y()},hostVars:8,hostBindings:function(e,i){e&2&&(Q(i._type()),I("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:li,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(x(ai),O(0,ci,2,0,"div",1)(1,pi,1,0,"div",2),a(2,"div",3),h(3),c(),a(4,"div",4),O(5,di,1,0,"div",5),a(6,"div",6),h(7,1),c(),a(8,"main"),h(9,2),c()()),e&2&&(T(i.type()==="overlay"?0:-1),m(),T(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),T(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var un=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var hn=(()=>{class n{constructor(){this.#e=b(Mi),this.spkSort=g(),this.sortAsc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===e}),this.sortDesc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===`-${e}`})}#e;toggleSort(){let t=this.spkSort();t&&this.#e.toggleSort(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(e,i){e&1&&E("mousedown",function(){return i.toggleSort()}),e&2&&I("sort-asc",i.sortAsc())("sort-desc",i.sortDesc())},inputs:{spkSort:[1,"spkSort"]}})}}return n})();var ee=1.5,Mi=(()=>{class n{constructor(){this.#e=b(H),this.#i=b(ce,{optional:!0}),this.loading=g(!1),this.data=g([]),this.dataChange=X(),this.sortByColumn=A(null),this.thead=U("thead"),this.columns=Qe(this.thead,["TH"]),this.class=C(this.#i?.tableType??"default"),this.resizing=C(!1),this.sizeTrigger=C(!0),this.#t=null,this.#n=C(!1),this.scrollXState=C(-1),this.scrollYState=C(-1),this.canScrollX=C(!1),this.canScrollY=C(!1),this.columnSizes=D(()=>{this.sizeTrigger();let t=this.columns.signal();return t.reduce((e,i,o)=>{let s=i,r=o===t.length-1;return s.dataset.size?`${e} ${s.dataset.size}`:s.classList.contains("sticky")||s.classList.contains("sticky-end")?`${e} min-content`:r?`${e} 1fr`:`${e} 1fr`},"")}),this.e=R(()=>{let t=this.sortByColumn();if(t===null)return this.#n()||(this.#t=this.data(),this.#n.set(!0)),this.dataChange.emit(structuredClone(this.#t));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),o=this.data().sort((s,r)=>{let p=s[e],l=r[e],u=0;return typeof p=="number"&&typeof l=="number"&&(u=p-l),p instanceof Date&&l instanceof Date&&(u=p.getTime()-l.getTime()),typeof p=="string"&&typeof l=="string"&&(u=p.localeCompare(l,void 0,{sensitivity:"base"})),i?-u:u});this.dataChange.emit(o)})}#e;#i;#t;#n;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#s()}onResize(t){this.#s()}ngAfterViewInit(){queueMicrotask(()=>this.#s())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}#s(){let t=this.#e.nativeElement,e=-1,i=-1,o=t.scrollWidth>t.clientWidth+ee;if(o){let r=t.scrollLeft<=ee;t.scrollWidth-(t.scrollLeft+t.clientWidth)<ee?e=1:r||(e=0)}this.scrollXState.set(e),this.canScrollX.set(o);let s=t.scrollHeight>t.clientHeight+ee;if(s){let r=t.scrollTop<=ee;t.scrollHeight-(t.scrollTop+t.clientHeight)<ee?i=1:r||(i=0)}this.scrollYState.set(i),this.canScrollY.set(s)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&N(i.thead,ui,5),e&2&&Y()},hostVars:18,hostBindings:function(e,i){e&1&&E("scroll",function(){return i.onScroll()})("resize",function(s){return i.onResize(s)},!1,Pe),e&2&&(Q(i.class()),j("grid-template-columns",i.columnSizes()),I("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:fi,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(x(hi),a(0,"thead",null,0),h(2),O(3,mi,1,0,"spk-progress-bar",1),c(),a(4,"tbody"),h(5,1),c(),O(6,gi,2,0,"div",2)),e&2&&(m(3),T(i.loading()?3:-1),m(3),T(i.loading()?-1:6))},dependencies:[Ei],encapsulation:2,changeDetection:0})}}return n})(),fn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),mn=(()=>{class n{constructor(){this.isActive=A(!1),this.disallowToggle=g(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&I("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ci,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(e,i){e&1&&(x(vi),a(0,"h3",0),E("click",function(){return i.disallowToggle()||i.toggle()}),h(1,0,null,_i,1,0),O(3,Si,2,0,"spk-icon",1),c(),a(4,"div",2)(5,"div",3),h(6,1),c()()),e&2&&(m(3),T(i.disallowToggle()?-1:3))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),gn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:L,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(x(),a(0,"div",0),q(1,"div",1),c(),h(2))},encapsulation:2,changeDetection:0})}}return n})();var vn=(()=>{class n{constructor(){this.filesOver=C(!1),this.filesDropped=X()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&E("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),e&2&&I("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();var Ii=(()=>{class n{constructor(){this.positionAnchorName=g.required()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=S({type:n,selectors:[["sparkle-tooltip-wrapper"]],hostVars:2,hostBindings:function(e,i){e&2&&j("position-anchor",i.positionAnchorName())},inputs:{positionAnchorName:[1,"positionAnchorName"]},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(e,i){e&1&&(x(),a(0,"div",0),h(1),c())},encapsulation:2})}}return n})(),Cn=(()=>{class n{constructor(){this.spkTooltip=g.required(),this.#e=b(H),this.#i=b(Ae),this.#t=b(Re),this.#n=b(me),this.#s=null,this.#o=null,this.anchorName=C(`--${Oe()}`),this.manageWrapperEffect=R(()=>{let t=this.spkTooltip();if(this.cleanupTooltip(),t){let e;typeof t=="string"?e=[this.#n.createText(t)]:t instanceof oe?(this.#o=t.createEmbeddedView(null),this.#o.detectChanges(),e=this.#o.rootNodes):e=[],e.length>0&&(this.#s=this.#i.createComponent(Ii,{environmentInjector:this.#t,projectableNodes:[e]}),this.#s.setInput("positionAnchorName",this.anchorName()),this.#s.changeDetectorRef.detectChanges())}})}#e;#i;#t;#n;#s;#o;onClick(t){let e=this.#e.nativeElement;(e.hasAttribute("disabled")||e.hasAttribute("readonly"))&&(t.preventDefault(),t.stopPropagation())}cleanupTooltip(){this.#s&&(this.#s.destroy(),this.#s=null),this.#o&&(this.#o.destroy(),this.#o=null)}ngOnDestroy(){this.cleanupTooltip()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:2,hostBindings:function(e,i){e&1&&E("click",function(s){return i.onClick(s)}),e&2&&j("anchor-name",i.anchorName())},inputs:{spkTooltip:[1,"spkTooltip"]}})}}return n})();export{te as a,Ji as b,Zi as c,yi as d,en as e,tn as f,Di as g,nn as h,xi as i,wi as j,on as k,Ee as l,sn as m,rn as n,an as o,Ei as p,ln as q,cn as r,Ti as s,pn as t,dn as u,un as v,hn as w,Mi as x,fn as y,mn as z,gn as A,vn as B,Cn as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-B37C3RGG.js";import{Rc as r,T as s,Z as i,va as e}from"./chunk-4KE2I7OA.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-7CGTOI24.js";var o=[{path:"",loadComponent:()=>import("./chunk-MNE4XQ7S.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-IQTQJ64J.js")},{path:"live",loadComponent:()=>import("./chunk-C44Q3YIF.js")}]}],t=o;export{t as default};
|