@duplicati/ngclient 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/{chunk-CRF5AN7X.js → chunk-2E5G54LG.js} +1 -1
  2. package/{chunk-3IEVUFHW.js → chunk-2VFGTKQ3.js} +1 -1
  3. package/{chunk-PWCYVE3X.js → chunk-3TOIJ5WO.js} +1 -1
  4. package/{chunk-VWW2CUXB.js → chunk-4MFVXV2P.js} +1 -1
  5. package/{chunk-FTPIALBZ.js → chunk-53HMBWP5.js} +1 -1
  6. package/chunk-6RDPRL5W.js +7 -0
  7. package/{chunk-5NGUXCQH.js → chunk-7ORKNESW.js} +1 -1
  8. package/{chunk-7JE7D2ZI.js → chunk-AALCXW7G.js} +1 -1
  9. package/{chunk-S57FCDO6.js → chunk-BDZSXP7I.js} +1 -1
  10. package/{chunk-DFGOAXZ2.js → chunk-COO43JXP.js} +1 -1
  11. package/{chunk-2WU6GJ2L.js → chunk-DUQTXUOP.js} +1 -1
  12. package/{chunk-5XF5JD57.js → chunk-FDJMCHX2.js} +1 -1
  13. package/{chunk-57EM3QNL.js → chunk-FL23VQIJ.js} +1 -1
  14. package/{chunk-6IDRMU4P.js → chunk-GE6ONX6N.js} +1 -1
  15. package/{chunk-PRRWBIUL.js → chunk-H4PL4MX5.js} +1 -1
  16. package/{chunk-MLIDBHU2.js → chunk-HEQYI7XZ.js} +1 -1
  17. package/chunk-HIVOGYJW.js +1 -0
  18. package/chunk-IDL47L54.js +1 -0
  19. package/chunk-IVCLLJMP.js +1 -0
  20. package/{chunk-UHDKSMMI.js → chunk-K3Y54FPO.js} +1 -1
  21. package/chunk-LDUHEMHJ.js +1 -0
  22. package/{chunk-4KO6DAFG.js → chunk-M6JAWID7.js} +1 -1
  23. package/chunk-MACZO675.js +1 -0
  24. package/{chunk-KQWAEJSA.js → chunk-MULBVD44.js} +1 -1
  25. package/{chunk-DTFSSXIP.js → chunk-N3IZHBC5.js} +1 -1
  26. package/{chunk-ITR23I5T.js → chunk-NJIDVAUK.js} +1 -1
  27. package/{chunk-P3FQ2AHT.js → chunk-NKKY2IML.js} +1 -1
  28. package/{chunk-SNV5NHOU.js → chunk-OL3XQXPO.js} +1 -1
  29. package/chunk-OOBDPKP5.js +1 -0
  30. package/{chunk-RNQMP76A.js → chunk-PT7ISA6M.js} +1 -1
  31. package/chunk-PV7FMVA7.js +1 -0
  32. package/{chunk-VKC5JNTF.js → chunk-QAOE722P.js} +1 -1
  33. package/{chunk-WWJLZQVS.js → chunk-QLL2CMCZ.js} +1 -1
  34. package/{chunk-GQI6XZIF.js → chunk-QXWUZ7QN.js} +1 -1
  35. package/{chunk-I5C7ICSO.js → chunk-R4XFPOM7.js} +1 -1
  36. package/{chunk-BREOPUVA.js → chunk-RB7TVPQZ.js} +1 -1
  37. package/{chunk-WRY3VN45.js → chunk-RENJEXE5.js} +1 -1
  38. package/{chunk-WARSRDZI.js → chunk-RFOUEAO7.js} +1 -1
  39. package/{chunk-6V6L7ZNP.js → chunk-SLC2RVWO.js} +1 -1
  40. package/{chunk-LESUULT7.js → chunk-TTHH64Z5.js} +1 -1
  41. package/chunk-UROUYC5A.js +1 -0
  42. package/{chunk-L5ZD3XGL.js → chunk-V2FTYSCJ.js} +1 -1
  43. package/{chunk-WW3OAVSF.js → chunk-VN5Y4LY2.js} +1 -1
  44. package/{chunk-B5E33CXC.js → chunk-WFFR6X5F.js} +1 -1
  45. package/{chunk-6ZKECEPL.js → chunk-WMMDCNQV.js} +1 -1
  46. package/{chunk-WKUHBDJS.js → chunk-X7IF472Q.js} +1 -1
  47. package/chunk-XYLW6QJG.js +1 -0
  48. package/{chunk-7SDO46CK.js → chunk-Y33NQYRN.js} +1 -1
  49. package/chunk-YBKFPTAU.js +1 -0
  50. package/chunk-ZJNMXPO2.js +1 -0
  51. package/index.html +3 -3
  52. package/locale/messages.de-DE.json +11 -0
  53. package/locale/messages.fr-FR.json +11 -0
  54. package/locale/messages.json +11 -0
  55. package/main-RUKECFB7.js +2 -0
  56. package/package.json +1 -1
  57. package/polyfills-DUGKNACR.js +1 -0
  58. package/{styles-67FI3DMG.css → styles-CLP6NP2M.css} +1 -1
  59. package/chunk-3LDFRXNZ.js +0 -1
  60. package/chunk-BP3UCGO5.js +0 -1
  61. package/chunk-CEFENMMO.js +0 -1
  62. package/chunk-EPBET4G4.js +0 -1
  63. package/chunk-G76L6TQ6.js +0 -1
  64. package/chunk-ILNG56CV.js +0 -7
  65. package/chunk-M3D5CWEA.js +0 -1
  66. package/chunk-PMQQNQUC.js +0 -1
  67. package/chunk-SJGIDZMQ.js +0 -1
  68. package/chunk-UAIXGIJV.js +0 -1
  69. package/main-U3DYJNKX.js +0 -1
@@ -1 +1 @@
1
- import{$a as oe,$b as V,Ab as O,Bb as le,Cb as ae,Db as ce,Eb as r,Ec as b,Fb as l,Gb as P,Gc as E,Hc as Z,Kb as T,Qb as S,R as U,Ra as y,Rb as C,Sb as v,Tb as a,Wa as ne,X as F,Ya as N,Za as h,_a as M,_b as pe,ab as R,ac as H,bc as de,cc as k,dc as ue,ea as d,ec as X,fa as u,fb as g,gc as z,hb as se,hc as G,ic as K,lb as x,lc as J,pa as Q,qa as j,ra as p,rb as re,sa as B,vb as $,wb as I,xb as L,yb as Y,zb as q}from"./chunk-ILNG56CV.js";import{a as A,b as W,c as ie}from"./chunk-7CGTOI24.js";var w=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],_e=["[icon]","[title]","*","[content]"];function Se(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ye(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ke(n,_){n&1&&(r(0,"spk-icon",3),k(1,"check-circle"),l())}function De(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning-octagon"),l())}function be(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning"),l())}function we(n,_){n&1&&(r(0,"spk-icon",3),k(1,"question"),l())}function Oe(n,_){if(n&1){let e=T();r(0,"spk-icon",7),S("click",function(){d(e);let i=C();return u(i.removeAlert())}),k(1,"plus"),l()}}var Ee=["dialogRef"];function xe(n,_){if(n&1){let e=T();r(0,"div",4),S("click",function(){d(e);let i=C();return u(i.isOpen.set(!1))}),l()}}var Te=["spk-button",""],Me=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ie=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],he=["triggerRef"],Ve=["popoverRef"],Ae=[[["","trigger",""]],"*"],Fe=["[trigger]","*"];var Re=["inputWrap"];var Pe=()=>({closeOnButton:!1,closeOnEsc:!0});var je=["option"],He=["*",[["","menu",""]]],Be=["*","[menu]"];var Le=["optionsRef"],We=["formFieldWrapper"],qe=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Ue=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Qe=()=>({closeOnButton:!1,closeOnEsc:!1});function Ne(n,_){if(n&1){let e=T();r(0,"spk-chip",12),S("click",function(i){let o=d(e).$implicit,s=C(3);return u(s.toggleOption(o,i))}),k(1),r(2,"spk-icon"),k(3,"x-circle"),l()()}if(n&2){let e,t=_.$implicit,i=C(3);q(i.chipClass()),y(),X(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function $e(n,_){if(n&1&&ae(0,Ne,4,3,"spk-chip",11,le),n&2){let e=C(2);ce(e.inputValue().split(","))}}function Ye(n,_){if(n&1&&(r(0,"div",6),x(1,$e,2,0),l()),n&2){let e=C();y(),O(e.inputValue().length>0?1:-1)}}function Xe(n,_){if(n&1&&(r(0,"div",6),k(1),l()),n&2){let e=C();y(),ue(e._displayValue())}}function ze(n,_){if(n&1){let e=T();r(0,"div",13),S("click",function(i){d(e);let o=C();return u(o.deselect(i))}),a(1,3),r(2,"spk-icon",14),k(3,"x-circle"),l()()}}function Ge(n,_){n&1&&(r(0,"div",8),a(1,4),r(2,"spk-icon",14),k(3,"magnifying-glass"),l()())}function Ke(n,_){if(n&1&&(r(0,"div",15),a(1,5),r(2,"spk-icon",14),k(3,"caret-down"),l()()),n&2){let e=C();L("open",e.isOpen())}}var Je=["dragImageElement"],Ze=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],et=["[sidenav]","[sidenav-closed-topbar]","*"];function tt(n,_){n&1&&P(0,"div",1,0)}function it(n,_){if(n&1){let e=T();r(0,"div",7),S("drop",function(i){d(e);let o=C();return u(o.drop(i))})("dragover",function(i){d(e);let o=C();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=C();return u(i.dragEnter())})("dragleave",function(){d(e);let i=C();return u(i.dragLeave())}),l()}}function nt(n,_){if(n&1){let e=T();r(0,"div",8),S("dragstart",function(i){d(e);let o=C();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=C();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=C();return u(o.drag(i))})("touchstart",function(i){d(e);let o=C();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=C();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=C();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=C();return u(o.touchCancel(i))}),l()}}var ot=[[["","table-header",""]],"*",[["","table-no-rows",""]]],st=["[table-header]","*","[table-no-rows]"];function rt(n,_){n&1&&P(0,"spk-progress-bar",0)}function lt(n,_){n&1&&(r(0,"div",1),a(1,2),l())}var at=["tooltipRef"],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-icon"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ft=(()=>{class n{constructor(){this._el=F(B),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:_e,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(v(Ce),r(0,"div",1)(1,"div",2,0),a(3),l(),r(4,"div",2),x(5,Se,2,0,"spk-icon",3)(6,ye,2,0,"spk-icon",3)(7,ke,2,0,"spk-icon",3)(8,De,2,0,"spk-icon",3)(9,be,2,0,"spk-icon",3)(10,we,2,0,"spk-icon",3),l(),r(11,"div",4),a(12,1),a(13,2),l(),x(14,Oe,2,0,"spk-icon",5),r(15,"div",6),a(16,3),l()()),t&2){let o,s=de(2);y(),I("display",s.children.length?"block":"none"),y(4),O((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),y(9),O(i.id()?14:-1)}},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})();var Rt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[W(A({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>W(A({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ct={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},pt=(()=>{class n{constructor(){this.dialogRef=M("dialogRef"),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ct),this.options())),this.abortController=null,this.isOpenEffect=E(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&V(i.dialogRef,Ee,5),t&2&&H()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(v(),r(0,"dialog",1,0)(2,"div",2),a(3),l(),x(4,xe,1,0,"div",3),l()),t&2){let o,s,c,f;I("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(f=i.defaultOptionMerge().height)!==null&&f!==void 0?f:""),y(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=F(re),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#c(),te=t||{},{data:s,closed:c}=te,f=ie(te,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=Z(e,{environmentInjector:i}),this.compRef=Z(pt,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let D=this.insertedCompRef.instance?.data,m=this.insertedCompRef.instance?.closed;if(s){if(N(D))this.insertedCompRef.setInput("data",s);else if(!N(D))throw new Error("data is not an input signal on the passed component")}m instanceof Q&&(this.closedFieldSub=m.subscribe((...ve)=>{c?.(...ve),this.#r()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",f),this.compRef.instance.closed.subscribe(()=>ge());let me=this;function ge(){m&&m instanceof Q?m.emit(!1):c?.(void 0),me.#r()}return this.insertedCompRef.instance}#c(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),jt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-button-group"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),dt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["","spk-button",""]],attrs:Te,ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ht=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-card"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Bt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(v(),r(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),r(3,"spk-icon",2),k(4,"minus"),l()(),a(5))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),ut=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-chip"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),ht=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},f=function(){window.setTimeout(c,0)};var i=c,o=f;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",f),s.addEventListener("paste",f),s.addEventListener("drop",f),s.addEventListener("keydown",f),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:Ie,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(v(Me),a(0),r(1,"div",0)(2,"div",1),a(3,1),a(4,2),l(),P(5,"div",2),a(6,3),a(7,4),a(8,5),P(9,"div",3),a(10,6),l(),r(11,"div",4)(12,"div",5),a(13,7),l(),r(14,"div",6),a(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})(),ft={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ft),this.options())),this.triggerRef=M.required("triggerRef"),this.popoverRef=M.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=b(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.popoverRef,Ve,5)),t&2&&H(2)},hostVars:4,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Fe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();v(Ae),r(0,"div",2,0),S("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),a(3),l(),r(4,"button",4),k(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),S("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),l(),a(9,1),l()}t&2&&(I("anchor-name",i.id()),y(6),Y(i.menuStyle()),I("position-anchor",i.id()))},dependencies:[dt],encapsulation:2,changeDetection:0})}}return n})();var Lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-list"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Wt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=R(!1),this.closed=j(),this.activeOptionIndex=h(-1),this.options=oe("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=E(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,je,4),t&2&&H()},hostBindings:function(t,i){t&1&&S("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Be,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();v(He),r(0,"spk-popover",1,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),S("click",function(){return d(o),u(i.isOpen.set(!0))}),a(3),l(),r(4,"div",3),S("click",function(){return d(o),u(i.close("active"))}),a(5,1),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",J(5,Pe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),mt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&P(0,"div",0),t&2&&I("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),qt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(v(),P(0,"div",0),a(1))},encapsulation:2,changeDetection:0})}}return n})();var Ut=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),gt=["primary","accent","tertiary","warn","success"],Qt=(()=>{class n{constructor(){this.#e=F(ne),this.#t=F(B),this.#c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=M("optionsRef"),this.formFieldWrapperRef=M.required("formFieldWrapper"),this.inputWrapRef=M.required("inputWrap"),this.inputValue=R(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.#r=h(!1),this.#s=h(!1),this.#i=h(null),this.#l=h(null),this.#a=h(!1),this.#n=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=E(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)}),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.optionsEl=b(()=>this.optionsRef()?.nativeElement),this.#o=b(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>gt.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#l()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#l()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=E(()=>{this.#r();let e=this.#t.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#m=E(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#u()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=E(()=>{this.isOpen()&&this.#S()}),this.#v=E(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#p=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#t;#c;#r;#s;#i;#l;#a;#n;#h;#o;#f;#m;#g;#v;ngOnInit(){this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#u()),this.#a.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#a.set(!1),this.#l.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#l();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#a.set(!1),e||this.#i()?.blur(),this.#c.disconnect(),this.#_()}open(e){e.preventDefault(),!this.isOpen()&&(this.#c.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#a()&&!this.isFreeText()?(this.#l.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#a.set(!0),this.#C(),this.#d())}#C(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#_(){this.clickController&&this.clickController.abort()}#S(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#n()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#p.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,Le,5),V(i.formFieldWrapperRef,We,5),V(i.inputWrapRef,Re,5)),t&2&&H(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},ngContentSelectors:Ue,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();v(qe),r(0,"spk-popover",3,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),S("click",function(c){return d(o),u(i.open(c))}),a(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),x(6,Ye,2,1,"div",6)(7,Xe,2,1,"div",6),a(8,1),l(),x(9,ze,4,0,"div",7)(10,Ge,4,0,"div",8)(11,Ke,4,2,"div",9),l(),r(12,"div",10,2),a(14,2),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("options",J(7,Qe)),y(2),q(i.readonly()?"readonly":""),y(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),y(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[ht,ee,ut,fe],encapsulation:2,changeDetection:0})}}return n})(),Nt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=R(!1),this.type=p(""),this.dragImageElement=M.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=E(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,Je,5),t&2&&H()},hostVars:10,hostBindings:function(t,i){t&2&&L("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:et,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(v(Ze),x(0,tt,2,0,"div",1)(1,it,1,0,"div",2),r(2,"div",3),a(3),l(),r(4,"div",4),x(5,nt,1,0,"div",5),r(6,"div",6),a(7,1),l(),r(8,"main"),a(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),y(),O(i.type()==="overlay"&&i.isDragging()?1:-1),y(3),I("transform",i.draggingStyle()),y(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var $t=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-stepper"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var Yt=(()=>{class n{constructor(){this.tableColumns=p([]),this.loading=p(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=p([]),this.dataChange=j(),this.#e=null,this.#t=h(!1),this.sortByColumn=R(null),this.e=E(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,c)=>{let f=s[t],D=c[t],m=0;return typeof f=="number"&&typeof D=="number"&&(m=f-D),f instanceof Date&&D instanceof Date&&(m=f.getTime()-D.getTime()),typeof f=="string"&&typeof D=="string"&&(m=f.localeCompare(D,void 0,{sensitivity:"base"})),i?-m:m});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&I("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:st,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(v(ot),r(0,"thead"),a(1),x(2,rt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),a(4,1),l(),x(5,lt,2,0,"div",1)),t&2&&(y(2),O(i.loading()?2:-1),y(3),O(i.loading()?-1:5))},dependencies:[mt],encapsulation:2,changeDetection:0})}}return n})(),Xt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tabs"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var zt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-toggle"]],ngContentSelectors:w,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(v(),r(0,"div",0),P(1,"div",1),l(),a(2))},encapsulation:2,changeDetection:0})}}return n})(),Gt=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=R(!1),this.closed=j(),this.triggerRef=M.required("triggerRef"),this.tooltipRef=M.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.tooltipRef,at,5)),t&2&&H(2)},hostVars:6,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();v(),r(0,"div",2,0),S("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),a(2),l(),r(3,"div",3,1),k(5),l()}t&2&&(I("anchor-name",i.id()),y(3),Y(i.menuStyle()),I("position-anchor",i.id()),y(2),X(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Kt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=j()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&S("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&L("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ee as a,Ft as b,Rt as c,pt as d,Pt as e,jt as f,dt as g,Ht as h,Bt as i,ut as j,ht as k,Lt as l,Wt as m,mt as n,qt as o,Ut as p,Qt as q,Nt as r,$t as s,Yt as t,Xt as u,zt as v,Gt as w,Kt as x};
1
+ import{$a as oe,Ab as O,Bb as le,Cb as ae,Db as ce,Eb as r,Fb as l,Gb as P,Hc as b,Jc as E,Kb as T,Kc as Z,R as U,Ra as y,Tb as S,Ub as C,Vb as v,Wa as ne,Wb as a,X as F,Ya as N,Za as h,_a as M,ab as R,bc as pe,cc as V,dc as H,ea as d,ec as de,fa as u,fb as g,fc as k,gc as ue,hb as se,hc as X,jc as z,kc as G,lb as x,lc as K,oc as J,pa as Q,qa as j,ra as p,rb as re,sa as B,vb as $,wb as I,xb as L,yb as Y,zb as q}from"./chunk-6RDPRL5W.js";import{a as A,b as W,c as ie}from"./chunk-7CGTOI24.js";var w=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],_e=["[icon]","[title]","*","[content]"];function Se(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ye(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ke(n,_){n&1&&(r(0,"spk-icon",3),k(1,"check-circle"),l())}function De(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning-octagon"),l())}function be(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning"),l())}function we(n,_){n&1&&(r(0,"spk-icon",3),k(1,"question"),l())}function Oe(n,_){if(n&1){let e=T();r(0,"spk-icon",7),S("click",function(){d(e);let i=C();return u(i.removeAlert())}),k(1,"plus"),l()}}var Ee=["dialogRef"];function xe(n,_){if(n&1){let e=T();r(0,"div",4),S("click",function(){d(e);let i=C();return u(i.isOpen.set(!1))}),l()}}var Te=["spk-button",""],Me=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ie=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],he=["triggerRef"],Ve=["popoverRef"],Ae=[[["","trigger",""]],"*"],Fe=["[trigger]","*"];var Re=["inputWrap"];var Pe=()=>({closeOnButton:!1,closeOnEsc:!0});var je=["option"],He=["*",[["","menu",""]]],Be=["*","[menu]"];var Le=["optionsRef"],We=["formFieldWrapper"],qe=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Ue=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Qe=()=>({closeOnButton:!1,closeOnEsc:!1});function Ne(n,_){if(n&1){let e=T();r(0,"spk-chip",12),S("click",function(i){let o=d(e).$implicit,s=C(3);return u(s.toggleOption(o,i))}),k(1),r(2,"spk-icon"),k(3,"x-circle"),l()()}if(n&2){let e,t=_.$implicit,i=C(3);q(i.chipClass()),y(),X(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function $e(n,_){if(n&1&&ae(0,Ne,4,3,"spk-chip",11,le),n&2){let e=C(2);ce(e.inputValue().split(","))}}function Ye(n,_){if(n&1&&(r(0,"div",6),x(1,$e,2,0),l()),n&2){let e=C();y(),O(e.inputValue().length>0?1:-1)}}function Xe(n,_){if(n&1&&(r(0,"div",6),k(1),l()),n&2){let e=C();y(),ue(e._displayValue())}}function ze(n,_){if(n&1){let e=T();r(0,"div",13),S("click",function(i){d(e);let o=C();return u(o.deselect(i))}),a(1,3),r(2,"spk-icon",14),k(3,"x-circle"),l()()}}function Ge(n,_){n&1&&(r(0,"div",8),a(1,4),r(2,"spk-icon",14),k(3,"magnifying-glass"),l()())}function Ke(n,_){if(n&1&&(r(0,"div",15),a(1,5),r(2,"spk-icon",14),k(3,"caret-down"),l()()),n&2){let e=C();L("open",e.isOpen())}}var Je=["dragImageElement"],Ze=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],et=["[sidenav]","[sidenav-closed-topbar]","*"];function tt(n,_){n&1&&P(0,"div",1,0)}function it(n,_){if(n&1){let e=T();r(0,"div",7),S("drop",function(i){d(e);let o=C();return u(o.drop(i))})("dragover",function(i){d(e);let o=C();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=C();return u(i.dragEnter())})("dragleave",function(){d(e);let i=C();return u(i.dragLeave())}),l()}}function nt(n,_){if(n&1){let e=T();r(0,"div",8),S("dragstart",function(i){d(e);let o=C();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=C();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=C();return u(o.drag(i))})("touchstart",function(i){d(e);let o=C();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=C();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=C();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=C();return u(o.touchCancel(i))}),l()}}var ot=[[["","table-header",""]],"*",[["","table-no-rows",""]]],st=["[table-header]","*","[table-no-rows]"];function rt(n,_){n&1&&P(0,"spk-progress-bar",0)}function lt(n,_){n&1&&(r(0,"div",1),a(1,2),l())}var at=["tooltipRef"],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-icon"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ft=(()=>{class n{constructor(){this._el=F(B),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:_e,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(v(Ce),r(0,"div",1)(1,"div",2,0),a(3),l(),r(4,"div",2),x(5,Se,2,0,"spk-icon",3)(6,ye,2,0,"spk-icon",3)(7,ke,2,0,"spk-icon",3)(8,De,2,0,"spk-icon",3)(9,be,2,0,"spk-icon",3)(10,we,2,0,"spk-icon",3),l(),r(11,"div",4),a(12,1),a(13,2),l(),x(14,Oe,2,0,"spk-icon",5),r(15,"div",6),a(16,3),l()()),t&2){let o,s=de(2);y(),I("display",s.children.length?"block":"none"),y(4),O((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),y(9),O(i.id()?14:-1)}},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})();var Rt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[W(A({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>W(A({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ct={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},pt=(()=>{class n{constructor(){this.dialogRef=M("dialogRef"),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ct),this.options())),this.abortController=null,this.isOpenEffect=E(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&V(i.dialogRef,Ee,5),t&2&&H()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(v(),r(0,"dialog",1,0)(2,"div",2),a(3),l(),x(4,xe,1,0,"div",3),l()),t&2){let o,s,c,f;I("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(f=i.defaultOptionMerge().height)!==null&&f!==void 0?f:""),y(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=F(re),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#c(),te=t||{},{data:s,closed:c}=te,f=ie(te,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=Z(e,{environmentInjector:i}),this.compRef=Z(pt,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let D=this.insertedCompRef.instance?.data,m=this.insertedCompRef.instance?.closed;if(s){if(N(D))this.insertedCompRef.setInput("data",s);else if(!N(D))throw new Error("data is not an input signal on the passed component")}m instanceof Q&&(this.closedFieldSub=m.subscribe((...ve)=>{c?.(...ve),this.#r()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",f),this.compRef.instance.closed.subscribe(()=>ge());let me=this;function ge(){m&&m instanceof Q?m.emit(!1):c?.(void 0),me.#r()}return this.insertedCompRef.instance}#c(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),jt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-button-group"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),dt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["","spk-button",""]],attrs:Te,ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ht=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-card"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Bt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(v(),r(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),r(3,"spk-icon",2),k(4,"minus"),l()(),a(5))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),ut=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-chip"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),ht=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},f=function(){window.setTimeout(c,0)};var i=c,o=f;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",f),s.addEventListener("paste",f),s.addEventListener("drop",f),s.addEventListener("keydown",f),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:Ie,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(v(Me),a(0),r(1,"div",0)(2,"div",1),a(3,1),a(4,2),l(),P(5,"div",2),a(6,3),a(7,4),a(8,5),P(9,"div",3),a(10,6),l(),r(11,"div",4)(12,"div",5),a(13,7),l(),r(14,"div",6),a(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})(),ft={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ft),this.options())),this.triggerRef=M.required("triggerRef"),this.popoverRef=M.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=b(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.popoverRef,Ve,5)),t&2&&H(2)},hostVars:4,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Fe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();v(Ae),r(0,"div",2,0),S("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),a(3),l(),r(4,"button",4),k(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),S("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),l(),a(9,1),l()}t&2&&(I("anchor-name",i.id()),y(6),Y(i.menuStyle()),I("position-anchor",i.id()))},dependencies:[dt],encapsulation:2,changeDetection:0})}}return n})();var Lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-list"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Wt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=R(!1),this.closed=j(),this.activeOptionIndex=h(-1),this.options=oe("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=E(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,je,4),t&2&&H()},hostBindings:function(t,i){t&1&&S("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Be,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();v(He),r(0,"spk-popover",1,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),S("click",function(){return d(o),u(i.isOpen.set(!0))}),a(3),l(),r(4,"div",3),S("click",function(){return d(o),u(i.close("active"))}),a(5,1),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",J(5,Pe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),mt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&P(0,"div",0),t&2&&I("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),qt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(v(),P(0,"div",0),a(1))},encapsulation:2,changeDetection:0})}}return n})();var Ut=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),gt=["primary","accent","tertiary","warn","success"],Qt=(()=>{class n{constructor(){this.#e=F(ne),this.#t=F(B),this.#c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=M("optionsRef"),this.formFieldWrapperRef=M.required("formFieldWrapper"),this.inputWrapRef=M.required("inputWrap"),this.inputValue=R(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.#r=h(!1),this.#s=h(!1),this.#i=h(null),this.#l=h(null),this.#a=h(!1),this.#n=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=E(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)}),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.optionsEl=b(()=>this.optionsRef()?.nativeElement),this.#o=b(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>gt.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#l()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#l()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=E(()=>{this.#r();let e=this.#t.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#m=E(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#u()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=E(()=>{this.isOpen()&&this.#S()}),this.#v=E(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#p=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#t;#c;#r;#s;#i;#l;#a;#n;#h;#o;#f;#m;#g;#v;ngOnInit(){this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#u()),this.#a.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#a.set(!1),this.#l.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#l();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#a.set(!1),e||this.#i()?.blur(),this.#c.disconnect(),this.#_()}open(e){e.preventDefault(),!this.isOpen()&&(this.#c.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#a()&&!this.isFreeText()?(this.#l.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#a.set(!0),this.#C(),this.#d())}#C(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#_(){this.clickController&&this.clickController.abort()}#S(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#n()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#p.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,Le,5),V(i.formFieldWrapperRef,We,5),V(i.inputWrapRef,Re,5)),t&2&&H(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},ngContentSelectors:Ue,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();v(qe),r(0,"spk-popover",3,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),S("click",function(c){return d(o),u(i.open(c))}),a(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),x(6,Ye,2,1,"div",6)(7,Xe,2,1,"div",6),a(8,1),l(),x(9,ze,4,0,"div",7)(10,Ge,4,0,"div",8)(11,Ke,4,2,"div",9),l(),r(12,"div",10,2),a(14,2),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("options",J(7,Qe)),y(2),q(i.readonly()?"readonly":""),y(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),y(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[ht,ee,ut,fe],encapsulation:2,changeDetection:0})}}return n})(),Nt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=R(!1),this.type=p(""),this.dragImageElement=M.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=E(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,Je,5),t&2&&H()},hostVars:10,hostBindings:function(t,i){t&2&&L("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:et,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(v(Ze),x(0,tt,2,0,"div",1)(1,it,1,0,"div",2),r(2,"div",3),a(3),l(),r(4,"div",4),x(5,nt,1,0,"div",5),r(6,"div",6),a(7,1),l(),r(8,"main"),a(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),y(),O(i.type()==="overlay"&&i.isDragging()?1:-1),y(3),I("transform",i.draggingStyle()),y(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var $t=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-stepper"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var Yt=(()=>{class n{constructor(){this.tableColumns=p([]),this.loading=p(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=p([]),this.dataChange=j(),this.#e=null,this.#t=h(!1),this.sortByColumn=R(null),this.e=E(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,c)=>{let f=s[t],D=c[t],m=0;return typeof f=="number"&&typeof D=="number"&&(m=f-D),f instanceof Date&&D instanceof Date&&(m=f.getTime()-D.getTime()),typeof f=="string"&&typeof D=="string"&&(m=f.localeCompare(D,void 0,{sensitivity:"base"})),i?-m:m});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&I("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:st,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(v(ot),r(0,"thead"),a(1),x(2,rt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),a(4,1),l(),x(5,lt,2,0,"div",1)),t&2&&(y(2),O(i.loading()?2:-1),y(3),O(i.loading()?-1:5))},dependencies:[mt],encapsulation:2,changeDetection:0})}}return n})(),Xt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tabs"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var zt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-toggle"]],ngContentSelectors:w,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(v(),r(0,"div",0),P(1,"div",1),l(),a(2))},encapsulation:2,changeDetection:0})}}return n})(),Gt=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=R(!1),this.closed=j(),this.triggerRef=M.required("triggerRef"),this.tooltipRef=M.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.tooltipRef,at,5)),t&2&&H(2)},hostVars:6,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();v(),r(0,"div",2,0),S("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),a(2),l(),r(3,"div",3,1),k(5),l()}t&2&&(I("anchor-name",i.id()),y(3),Y(i.menuStyle()),I("position-anchor",i.id()),y(2),X(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Kt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=j()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&S("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&L("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ee as a,Ft as b,Rt as c,pt as d,Pt as e,jt as f,dt as g,Ht as h,Bt as i,ut as j,ht as k,Lt as l,Wt as m,mt as n,qt as o,Ut as p,Qt as q,Nt as r,$t as s,Yt as t,Xt as u,zt as v,Gt as w,Kt as x};
@@ -0,0 +1 @@
1
+ import{a,b,c}from"./chunk-R4XFPOM7.js";import"./chunk-FDJMCHX2.js";import"./chunk-DNHLTHLR.js";import"./chunk-PT7ISA6M.js";import"./chunk-WFFR6X5F.js";import"./chunk-2VFGTKQ3.js";import"./chunk-QAOE722P.js";import"./chunk-K3Y54FPO.js";import"./chunk-VN5Y4LY2.js";import"./chunk-DUQTXUOP.js";import"./chunk-RFOUEAO7.js";import"./chunk-FL23VQIJ.js";import"./chunk-6RDPRL5W.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -1 +1 @@
1
- import{Ba as s,Ca as r}from"./chunk-57EM3QNL.js";import{R as l,X as a,wa as o}from"./chunk-ILNG56CV.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{Ba as s,Ca as r}from"./chunk-FL23VQIJ.js";import{R as l,X as a,wa as o}from"./chunk-6RDPRL5W.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-R4XFPOM7.js";import"./chunk-FDJMCHX2.js";import"./chunk-DNHLTHLR.js";import"./chunk-PT7ISA6M.js";import"./chunk-WFFR6X5F.js";import"./chunk-2VFGTKQ3.js";import"./chunk-QAOE722P.js";import"./chunk-K3Y54FPO.js";import"./chunk-VN5Y4LY2.js";import"./chunk-DUQTXUOP.js";import"./chunk-RFOUEAO7.js";import"./chunk-FL23VQIJ.js";import"./chunk-6RDPRL5W.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};