@duplicati/ngclient 0.0.81 → 0.0.82
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-2ILIMQUZ.js +1 -0
- package/{chunk-YUZINGR7.js → chunk-4NAKJMN4.js} +1 -1
- package/{chunk-EGT5S7A4.js → chunk-5UTMYMNZ.js} +1 -1
- package/{chunk-NHJBFOCX.js → chunk-6B27Y6JF.js} +1 -1
- package/chunk-6GXQ3OS3.js +1 -0
- package/{chunk-TFFQHLQK.js → chunk-6OAOHI5B.js} +1 -1
- package/{chunk-ZGTFPEDW.js → chunk-7FJJUDJ2.js} +1 -1
- package/{chunk-LPGLGZ3U.js → chunk-A3ZJDFD7.js} +1 -1
- package/{chunk-FZNTP67Z.js → chunk-ASP3TXLK.js} +1 -1
- package/{chunk-RABUX7PS.js → chunk-B3BR2XEK.js} +1 -1
- package/{chunk-76NKH7M2.js → chunk-BOZ57J4G.js} +1 -1
- package/{chunk-CZ3SCRNE.js → chunk-CEAE6DN3.js} +1 -1
- package/{chunk-7ZJVPVCQ.js → chunk-DGAZIN5K.js} +1 -1
- package/{chunk-BM4SNLLS.js → chunk-EGYSCZVC.js} +1 -1
- package/{chunk-JMQCQ5DN.js → chunk-EZZHN2WE.js} +1 -1
- package/{chunk-KAGR24YW.js → chunk-F2275265.js} +1 -1
- package/{chunk-CD2B55TH.js → chunk-FEV25ZWF.js} +1 -1
- package/{chunk-QFULFMSU.js → chunk-HCUGVK4R.js} +1 -1
- package/{chunk-WFFJ2OJB.js → chunk-HODSVG43.js} +1 -1
- package/{chunk-MWJ2FIZF.js → chunk-J2TD53K6.js} +1 -1
- package/{chunk-IZCX3KB3.js → chunk-JRAP2EKJ.js} +1 -1
- package/{chunk-K5WD7D64.js → chunk-JUHZJXZP.js} +1 -1
- package/{chunk-ZVCXBMGJ.js → chunk-KFOSQK3Z.js} +1 -1
- package/{chunk-S7IEXZZK.js → chunk-LPKATCNH.js} +1 -1
- package/{chunk-233ZLAAE.js → chunk-LY3JVR5S.js} +1 -1
- package/{chunk-2U3FDBUK.js → chunk-MI3YJO7L.js} +1 -1
- package/{chunk-C46BOI6T.js → chunk-NB6C6AWO.js} +1 -1
- package/{chunk-XCKJXWMS.js → chunk-PNBAXH5O.js} +1 -1
- package/{chunk-UBEY6W6N.js → chunk-R4OTX3ML.js} +1 -1
- package/{chunk-HX66OULG.js → chunk-RUM7HWLC.js} +1 -1
- package/{chunk-HSEKUB7W.js → chunk-UA3FQ7TU.js} +1 -1
- package/{chunk-YB5LG22R.js → chunk-UG4CSTXY.js} +1 -1
- package/{chunk-TQIMA3N7.js → chunk-UYV5TDBS.js} +1 -1
- package/{chunk-GTXOAJP6.js → chunk-V4FTPFKP.js} +1 -1
- package/{chunk-JZFEEATO.js → chunk-WKQNR623.js} +1 -1
- package/{chunk-ZSCSUQR3.js → chunk-X5LYBLNB.js} +1 -1
- package/{chunk-NRGTIGVX.js → chunk-XJ5AEEQO.js} +1 -1
- package/{chunk-XS2FYREZ.js → chunk-YRKXBPEN.js} +1 -1
- package/index.html +2 -2
- package/{main-WVQESNLR.js → main-5RB7QQSV.js} +1 -1
- package/package.json +1 -1
- package/styles-2QJQOKUX.css +1 -0
- package/chunk-4YLHRMHU.js +0 -1
- package/chunk-XMGHFJW7.js +0 -1
- package/styles-KC6U2UBP.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Xt}from"./chunk-GTXOAJP6.js";import{a as Wt,b as zt,o as Z}from"./chunk-RABUX7PS.js";import{a as Ht}from"./chunk-NRGTIGVX.js";import{a as Kt}from"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import{a as U}from"./chunk-XFRVNXF6.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-LFQXDL42.js";import{b as Ct}from"./chunk-TQE7OBBP.js";import{a as ut,c as Tt}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-IZCX3KB3.js";import{c as dt}from"./chunk-6SIZVSDW.js";import{ia as Ft}from"./chunk-JOBMLOGZ.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,E as tt,Eb as u,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Ra as o,Rb as q,Sb as j,Tb as H,Ub as g,Vb as s,Y as w,Ya as nt,Yb as y,da as C,ea as f,eb as it,ec as ot,fc as at,gc as G,hc as p,ia as et,ic as V,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,ua as h,uc as B,vb as X,wc as L,yb as d,zb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
1
|
+
import{g as Xt}from"./chunk-V4FTPFKP.js";import{a as Wt,b as zt,o as Z}from"./chunk-B3BR2XEK.js";import{a as Ht}from"./chunk-XJ5AEEQO.js";import{a as Kt}from"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import{a as U}from"./chunk-XFRVNXF6.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-LFQXDL42.js";import{b as Ct}from"./chunk-TQE7OBBP.js";import{a as ut,c as Tt}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-JRAP2EKJ.js";import{c as dt}from"./chunk-6SIZVSDW.js";import{ia as Ft}from"./chunk-JOBMLOGZ.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,E as tt,Eb as u,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Ra as o,Rb as q,Sb as j,Tb as H,Ub as g,Vb as s,Y as w,Ya as nt,Yb as y,da as C,ea as f,eb as it,ec as ot,fc as at,gc as G,hc as p,ia as et,ic as V,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,ua as h,uc as B,vb as X,wc as L,yb as d,zb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
2
|
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
3
|
The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(_.startsWith("incorrect-host-key:")){let m=_.split('incorrect-host-key:"')[1].split('",')[0],k=_.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
4
|
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as K}from"./chunk-MHZPUJQF.js";import{b as X}from"./chunk-TQE7OBBP.js";import{a as z,d as J,g as q}from"./chunk-
|
|
1
|
+
import{b as K}from"./chunk-MHZPUJQF.js";import{b as X}from"./chunk-TQE7OBBP.js";import{a as z,d as J,g as q}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Ab as P,Bb as R,Cb as i,Db as a,Eb as g,Ib as u,Ob as A,Oc as W,Pa as E,Pb as D,Qb as y,Ra as l,Ub as S,Vb as f,Y as v,Yb as w,da as d,ea as _,eb as h,hc as c,ic as C,jc as I,kb as k,kc as N,mc as $,nc as B,oc as V,p as T,pc as U,tb as F,tc as G,ua as m,yb as x,zb as M}from"./chunk-QDAWQNBQ.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
|
|
2
2
|
`),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),P(2,Q,13,5,"div",2,M),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),S("click",function(){return d(o),_(n.dialogLicense.set(null))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),R(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as a,l as b}from"./chunk-
|
|
1
|
+
import{k as a,l as b}from"./chunk-B3BR2XEK.js";import"./chunk-XJ5AEEQO.js";import"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as A}from"./chunk-MHZPUJQF.js";import{b as S}from"./chunk-TQE7OBBP.js";import{c as M}from"./chunk-NVTD7IP4.js";import{o as P}from"./chunk-
|
|
1
|
+
import{b as A}from"./chunk-MHZPUJQF.js";import{b as S}from"./chunk-TQE7OBBP.js";import{c as M}from"./chunk-NVTD7IP4.js";import{o as P}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as i,Db as r,E as p,Eb as _,Qb as C,Ra as c,Y as o,eb as g,hc as u,ic as E,kb as d,p as l,ua as m,yb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c,d as A,e as d}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{w as O}from"./chunk-
|
|
1
|
+
import{b as c,d as A,e as d}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{w as O}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as e,Db as t,Eb as T,Qb as o,eb as g}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var l=class a{static \u0275fac=function(n){return new(n||a)};static \u0275cmp=g({type:a,selectors:[["app-about"]],decls:13,vars:0,consts:()=>{let i;i=$localize`General`;let n;n=$localize`Changelog`;let r;r=$localize`Libraries`;let s;s=$localize`System info`;let u;return u=$localize`Logs`,[i,n,r,s,u,[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"]]},template:function(n,r){n&1&&(e(0,"spk-tabs",5)(1,"button",6),o(2,0),t(),e(3,"button",7),o(4,1),t(),e(5,"button",8),o(6,2),t(),e(7,"button",9),o(8,3),t(),e(9,"button",10),o(10,4),t()(),e(11,"section"),T(12,"router-outlet"),t())},dependencies:[O,c,A,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as G}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as L}from"./chunk-TQE7OBBP.js";import{d as E}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,Y as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,tb as u,tc as g,uc as v,yb as F,zb as N}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-
|
|
1
|
+
import{c as a,d as b}from"./chunk-V4FTPFKP.js";import"./chunk-XJ5AEEQO.js";import"./chunk-5UTMYMNZ.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as g}from"./chunk-
|
|
1
|
+
import{o as g}from"./chunk-B3BR2XEK.js";import"./chunk-XJ5AEEQO.js";import"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import{a as I}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as $}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as O}from"./chunk-TQE7OBBP.js";import{a as P,b as h,d as E,e as B}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{o as M,p as b,u as N}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{C as m,Cb as s,Db as p,Eb as n,Ob as d,Oc as A,Pb as c,Ra as r,Y as l,eb as f,kb as C,sc as R,tb as u,vc as _,yb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l($);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,b,N,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as a,g as b,h as c}from"./chunk-
|
|
1
|
+
import{f as a,g as b,h as c}from"./chunk-B3BR2XEK.js";import"./chunk-XJ5AEEQO.js";import"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae}from"./chunk-MHZPUJQF.js";import{a as te}from"./chunk-
|
|
1
|
+
import{b as ae}from"./chunk-MHZPUJQF.js";import{a as te}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as j}from"./chunk-ZOMDTRAX.js";import{b as H,d as J,g as Q,q as Y}from"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as W}from"./chunk-TQE7OBBP.js";import{a as z,d as q}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as Z,g as x,l as ee}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{C as g,Cb as i,Db as a,E as u,Eb as l,M as k,Mc as C,Ob as r,Oc as h,Pb as p,Qb as T,Ra as s,Rb as L,Sb as U,Ub as A,Y as D,eb as y,hc as E,kb as v,mc as w,nc as X,oc as V,p as O,tb as F,ua as c,vb as P,xb as G,yb as K}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),E(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),E(1,"warning"),a())}var m=class S{#a=D(z);#i=D(j);#e=D(W);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=C(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=C(()=>this.lastValidatedPath()===this.backupFilePath());backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:15,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[Y,H,J,Q,te,x,ee,Z,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ia as De}from"./chunk-JOBMLOGZ.js";import{$a as P,Ab as G,Bb as K,Cb as r,Db as a,Eb as H,Gc as be,Hb as U,Ib as T,Mc as b,Oc as D,Qc as ue,Ra as h,S as se,Ta as ae,Ub as k,Va as Se,Vb as u,Wb as y,Xb as p,Y as M,Ya as V,Za as ke,_a as ce,da as f,dc as J,ea as m,eb as S,ec as F,fc as j,gb as ye,gc as xe,hc as v,ic as Oe,jc as N,kb as w,mc as Z,nc as ee,oa as re,oc as te,pa as W,pb as we,pc as de,qa as d,qc as $,ra as B,rc as R,ta as le,tb as q,tc as ie,ua as g,ub as A,uc as ne,vb as I,wb as pe,xb as Q,yb as O,zb as X}from"./chunk-QDAWQNBQ.js";import{a as L,b as z,c as Ce}from"./chunk-C6Q5SG76.js";var E=["*"],Pe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ae=["[icon]","[title]","*","[content]"];function He(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function je(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function Le(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning"),a())}function Be(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning-octagon"),a())}function We(n,c){n&1&&(r(0,"spk-icon",3),v(1,"check-circle"),a())}function qe(n,c){n&1&&(r(0,"spk-icon",3),v(1,"question"),a())}function Ne(n,c){if(n&1){let e=T();r(0,"spk-icon",7),k("click",function(){f(e);let i=u();return m(i.removeAlert())}),v(1,"plus"),a()}}var Qe=["dialogRef"];function $e(n,c){if(n&1){let e=T();r(0,"div",4),k("click",function(){f(e);let i=u();return m(i.isOpen.set(!1))}),a()}}var ze=["spk-button",""];var Ee=["triggerRef"],Ue=["popoverRef"],Ye=[[["","trigger",""]],"*"],Xe=["[trigger]","*"];var Ge=()=>({closeOnButton:!1,closeOnEsc:!0});var Me=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Ze=[[["label"]],[["input"]]],et=["label","input"],tt=["option"],it=["*",[["","menu",""]]],nt=["*","[menu]"];var ot=["optionsWrap"],Ve=()=>({closeOnButton:!1,closeOnEsc:!1}),fe=n=>({$implicit:n});function st(n,c){n&1&&U(0)}function rt(n,c){if(n&1&&w(0,st,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=R(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function lt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function at(n,c){if(n&1){let e=T();r(0,"spk-chip",12),w(1,rt,1,4,"ng-container")(2,lt,1,1),r(3,"spk-icon",13),k("click",function(i){f(e);let o=u().$index,s=u(3);return m(s.removeSelectedOptionByIndex(i,o))}),v(4,"x-bold"),a()()}if(n&2){let e=u(4),t=R(7);Q(e.selectClasses()),h(),O(t?1:2)}}function ct(n,c){n&1&&U(0)}function pt(n,c){if(n&1&&w(0,ct,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=R(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function dt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function ut(n,c){if(n&1&&w(0,pt,1,4,"ng-container")(1,dt,1,1),n&2){u(4);let e=R(7);O(e?0:1)}}function ht(n,c){if(n&1&&w(0,at,5,3,"spk-chip",11)(1,ut,2,1),n&2){let e=u(3);O(!e.asText()&&e.selectMultiple()?0:1)}}function ft(n,c){if(n&1&&G(0,ht,2,1,null,null,X),n&2){u(2);let e=R(4);K(e)}}function mt(n,c){if(n&1&&v(0),n&2){let e=u(2);N(" ",e.selectedLabels()," ")}}function gt(n,c){if(n&1&&w(0,ft,2,0)(1,mt,1,1),n&2){u();let e=R(1),t=R(3);O(e||t?0:1)}}function vt(n,c){n&1&&U(0)}function _t(n,c){if(n&1&&w(0,vt,1,0,"ng-container",15),n&2){u(2);let e=R(0);q("ngTemplateOutlet",e)}}function Ct(n,c){if(n&1&&v(0),n&2){let e,t=u(2);N(" ",(e=t.placeholder())!==null&&e!==void 0?e:""," ")}}function St(n,c){if(n&1&&w(0,_t,1,1,"ng-container")(1,Ct,1,1),n&2){u();let e=R(0);O(e?0:1)}}function kt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-down"),a())}function yt(n,c){n&1&&H(0,"spk-spinner",8)}function wt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"list-magnifying-glass"),a())}function xt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"magnifying-glass"),a())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",16),k("click",function(i){f(e);let o=u();return m(o.clear(i))}),v(1,"x-bold"),a()}}function bt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"check"),a())}function Dt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-up"),a())}function Tt(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=u().$index,t=u();Q(t.selectClasses()),I("active",t.isSelected(e))}}function Et(n,c){n&1&&U(0)}function Mt(n,c){if(n&1&&w(0,Et,1,0,"ng-container",14),n&2){let e=u().$implicit;u();let t=R(8);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function Vt(n,c){if(n&1&&v(0),n&2){let e=u().$implicit;N(" ",e," ")}}function It(n,c){if(n&1){let e=T();r(0,"li",17),k("click",function(){let i=f(e).$index,o=u();return m(o.selectOption(i))}),w(1,Tt,1,4,"spk-checkbox",18)(2,Mt,1,4,"ng-container")(3,Vt,1,1),a()}if(n&2){let e=c.$index,t=u(),i=R(8);I("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),h(),O(t.selectMultiple()?1:-1),h(),O(i?2:3)}}var Ft=["optionsRef"],Rt=["formFieldWrapper"],Pt=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],At=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),k("click",function(i){let o=f(e).$implicit,s=u(3);return m(s.toggleOption(o,i))}),v(1),r(2,"spk-icon"),v(3,"x-bold"),a()()}if(n&2){let e,t=c.$implicit,i=u(3);Q(i.chipClass()),h(),N(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function jt(n,c){if(n&1&&G(0,Ht,4,3,"spk-chip",11,X),n&2){let e=u(2);K(e.inputValue().split(","))}}function Lt(n,c){if(n&1&&(r(0,"div",6),w(1,jt,2,0),a()),n&2){let e=u();h(),O(e.inputValue().length>0?1:-1)}}function Bt(n,c){if(n&1&&(r(0,"div",6),v(1),a()),n&2){let e=u();h(),Oe(e._displayValue())}}function Wt(n,c){if(n&1){let e=T();r(0,"div",13),k("click",function(i){f(e);let o=u();return m(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),v(3,"x-bold"),a()()}}function qt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),v(3,"magnifying-glass"),a()())}function Nt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),v(3,"caret-down"),a()()),n&2){let e=u();I("open",e.isOpen())}}var Qt=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Ut(n,c){n&1&&H(0,"div",1,0)}function Yt(n,c){if(n&1){let e=T();r(0,"div",7),k("drop",function(i){f(e);let o=u();return m(o.drop(i))})("dragover",function(i){f(e);let o=u();return m(o.dragOver(i))})("dragenter",function(){f(e);let i=u();return m(i.dragEnter())})("dragleave",function(){f(e);let i=u();return m(i.dragLeave())}),a()}}function Xt(n,c){if(n&1){let e=T();r(0,"div",8),k("dragstart",function(i){f(e);let o=u();return m(o.dragStart(i))})("dragend",function(i){f(e);let o=u();return m(o.dragEnd(i))})("drag",function(i){f(e);let o=u();return m(o.drag(i))})("touchstart",function(i){f(e);let o=u();return m(o.touchStart(i))})("touchmove",function(i){f(e);let o=u();return m(o.touchMove(i))})("touchend",function(i){f(e);let o=u();return m(o.touchEnd(i))})("touchcancel",function(i){f(e);let o=u();return m(o.touchCancel(i))}),a()}}var Gt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Kt=["[table-header]","*","[table-no-rows]"];function Jt(n,c){n&1&&H(0,"spk-progress-bar",0)}function Zt(n,c){n&1&&(r(0,"div",1),p(1,2),a())}var ei=["tooltipRef"];var he=["bold","thin","light","fill"],oe=(()=>{class n{#e=M(B);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<he.length;t++)if(e.endsWith(he[t]))return he[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.currentClass)},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ti=(()=>{class n{constructor(){this._el=M(B),this.alertService=d(null),this.id=d(null),this.alertClasses=b(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ae,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(y(Pe),r(0,"div",1)(1,"div",2,0),p(3),a(),r(4,"div",2),de(5),w(6,He,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,Le,2,0,"spk-icon",3)(9,Be,2,0,"spk-icon",3)(10,We,2,0,"spk-icon",3)(11,qe,2,0,"spk-icon",3),a(),r(12,"div",4),p(13,1),p(14,2),a(),w(15,Ne,2,0,"spk-icon",5),r(16,"div",6),p(17,3),a()()),t&2){let o=xe(2);h(),A("display",o.children.length?"block":"none");let s=i.alertClasses();h(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),h(9),O(i.id()?15:-1)}},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})();function me(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ei=(()=>{class n{constructor(){this.alertHistory=g([]),this.alertHistoryIsOpen=g(!1),this.alertHistoryIsHidden=g(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=me();this.alertHistory.update(i=>[z(L({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>z(L({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>z(L({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>z(L({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ti={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ii=(()=>{class n{constructor(){this.dialogRef=V("dialogRef"),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=b(()=>L(L({},ti),this.options())),this.abortController=null,this.isOpenEffect=D(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&F(i.dialogRef,Qe,5),t&2&&j()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(y(),r(0,"dialog",1,0)(2,"div",2),p(3),a(),w(4,$e,1,0,"div",3),a()),t&2){let o,s,l,_;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(l=i.defaultOptionMerge().maxHeight)!==null&&l!==void 0?l:"")("height",(_=i.defaultOptionMerge().height)!==null&&_!==void 0?_:""),h(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=M(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#s(),_e=t||{},{data:s,closed:l}=_e,_=Ce(_e,["data","closed"]);this.compRef&&this.#i(),this.insertedCompRef=ue(e,{environmentInjector:i}),this.compRef=ue(ii,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let x=this.insertedCompRef.instance?.data,C=this.insertedCompRef.instance?.closed;if(s){if(le(x))this.insertedCompRef.setInput("data",s);else if(!le(x))throw new Error("data is not an input signal on the passed component")}C instanceof re&&(this.closedFieldSub=C.subscribe((...Re)=>{l?.(...Re),this.#i()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",_),this.compRef.instance.closed.subscribe(()=>ve());let Y=this;function ve(){C&&C instanceof re?C.emit(!1):l?.(void 0),Y.#i()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#i(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#i()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Vi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:ze,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ii=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(y(),r(0,"div",0)(1,"spk-icon",1),v(2,"check"),a(),r(3,"spk-icon",2),v(4,"minus"),a()(),p(5))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),Ie=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var si=["scroll","auto"],ri={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ge=(()=>{class n{constructor(){this.#e=M(be),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=d(!1),this.right=d(!1),this.markForCheck=d(null),this._above=g(this.above()),this._right=g(this.right()),this.disableOpenByClick=d(!1),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=b(()=>L(L({},ri),this.options())),this.triggerRef=V.required("triggerRef"),this.popoverRef=V.required("popoverRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.openAbort=null,this.openEffect=D(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#i(),i),window.addEventListener("resize",()=>this.#i(),i),this.#i()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=D(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(si.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#i(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#t,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(s=i,l=o+this.#t,x){let Y=e.top-t.height-this.#t;Y<0||(l=Y)}_&&(s=e.right-t.width,s<0&&(s=0));let C={left:s+"px",top:l+"px"};this.menuStyle.set(C)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,Ee,5),F(i.popoverRef,Ue,5)),t&2&&j(2)},hostVars:4,hostBindings:function(t,i){t&2&&I("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Xe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();y(Ye),r(0,"div",2,0),k("click",function(l){return f(o),m(i.toggleIsOpen(l))}),r(2,"div",3),p(3),a(),r(4,"button",4),v(5,"Open popover"),a()(),r(6,"div",5,1)(8,"div",6),k("click",function(l){return f(o),m(i.isOpen()&&i.eventClose(l))}),a(),p(9,1),a()}t&2&&(A("anchor-name",i.id()),h(6),pe(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[ni],encapsulation:2,changeDetection:0})}}return n})();var Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fe=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},l=function(){window.setTimeout(s,0)};var i=s,o=l;t.addEventListener("change",s),t.addEventListener("cut",l),t.addEventListener("paste",l),t.addEventListener("drop",l),t.addEventListener("keydown",l),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:Je,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(y(Ke),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),a(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),a(),r(11,"div",4)(12,"div",5),p(13,7),a(),r(14,"div",6),p(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})();var Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Pi=(()=>{class n{constructor(){this.above=d(!1),this.right=d(!1),this.keepClickedOptionActive=d(!1),this.isOpen=P(!1),this.closed=W(),this.activeOptionIndex=g(-1),this.options=ce("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=D(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,tt,4),t&2&&j()},hostBindings:function(t,i){t&1&&k("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:nt,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();y(it),r(0,"spk-popover",1,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close("fromPopover"))}),r(2,"div",2),k("click",function(){return f(o),m(i.isOpen.set(!0))}),p(3),a(),r(4,"div",3),k("click",function(){return f(o),m(i.close("active"))}),p(5,1),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ie(5,Ge)))},dependencies:[ge],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=d(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&A("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Ai=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(y(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ai=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{constructor(){this.#e=M(B),this.debugRef=d(null),this.options=d([]),this.label=d(),this.value=d(),this.placeholder=d(),this.inlineSearch=d(!1),this.lazySearch=d(!1),this.readonly=d(!1),this.isLoading=d(!1),this.isClearable=d(!1),this.asText=d(!1),this.selectMultiple=d(!1),this.optionTemplate=d(null),this.selectedOptionTemplate=d(null),this.placeholderTemplate=d(null),this.isValid=P(!1),this.selectedOptions=P([]),this.inlineTemplate=ke(ae),this.inputWrapRef=V.required("inputWrap"),this.optionsWrapRef=V.required("optionsWrap"),this.#t=g(null),this.isOpen=g(!1),this.selectedOptionIndices=g([]),this.focusedOptionIndex=g(-1),this.inputState=b(()=>this.selectedValues().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.prevInputValue=g(null),this.inputValue=g(""),this.inputValidityEffect=D(()=>{let e=this.inputValue(),t=this.options(),i=this.value();if(this.selectMultiple()){let l=e.split(",").map(_=>_.trim()).filter(_=>_!=="").every(_=>t.some(x=>{let C=i?this.#n(x,i):x;return _===C?.toString()}));this.isValid.set(l)}else{let s=t.some(l=>{let _=i?this.#n(l,i):l;return e===_?.toString()});this.isValid.set(s)}}),this.selectClasses=b(()=>this.#e.nativeElement.classList.toString()),this.#s=D(()=>{let e=this.#t();e&&(e.disabled=this.readonly())}),this.#i=b(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:i?t?e.filter(s=>(this.#n(s,t)??"").toString().toLowerCase().includes(o)):e.filter(s=>(s??"").toString().toLowerCase().includes(o)):e}),this.optionsSignal=b(()=>{let e=this.#i(),t=this.label(),i=e;return t&&(i=e.map(o=>this.#n(o,t))),i}),this.selectedLabels=b(()=>{let e=this.selectedOptions(),t=this.label();return t?e.map(i=>this.#n(i,t)).join(", "):e.join(", ")}),this.selectedValues=b(()=>{let e=this.selectedOptions(),t=this.value();return!t||e.length===0?e:e.map(i=>this.#n(i,t))}),this.selectedOptionIndicesEffect=D(()=>{let e=this.selectedValues(),t=this.#i(),i=this.value();if(this.selectMultiple())this.selectedOptionIndices.set(e.map(o=>t.findIndex(s=>(i?this.#n(s,i):s)===o)));else{let o=e[0],s=t.findIndex(l=>(i?this.#n(l,i):l)===o);this.selectedOptionIndices.set(s>-1?[s]:[])}}),this.selectedValueEffect=D(()=>{let e=this.selectedValues();this.#t()&&(this.selectMultiple()?this.#t().value=e.join(","):this.#t().value=e[0]?.toString()??"",this.#t().dispatchEvent(new Event("input")))}),this.#o=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e){let i=this.#e.nativeElement.querySelector("input");if(!i)return;i.autocomplete="off",i.addEventListener("input",()=>{this.inputValue.set(i.value)}),i.addEventListener("focus",()=>{this.readonly()||this.open()}),i.addEventListener("keydown",o=>{if((o.key==="Escape"||o.key==="Tab")&&this.close(),o.key==="Enter"&&this.selectOption(this.focusedOptionIndex()),o.key==="ArrowDown"){o.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.optionsSignal().length-1?0:s),this.#r()}if(o.key==="ArrowUp"){o.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.optionsSignal().length-1:s),this.#r()}if(!(this.lazySearch()||this.inlineSearch())){o.preventDefault();return}}),typeof i.value=="string"&&(this.selectMultiple()?this.selectOptionsByValue(i.value):this.selectOptionByValue(i.value)),this.#t.set(i),this.#o.disconnect();return}})}#e;#t;#s;#i;#o;ngOnInit(){typeof MutationObserver<"u"&&this.#o.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}#r(){setTimeout(()=>{this.optionsWrapRef().nativeElement.querySelector(".focused")?.scrollIntoView({block:"nearest",behavior:"smooth"})})}open(){if(this.isOpen.set(!0),!this.selectMultiple()){let e=this.selectedOptionIndices()[0];this.focusedOptionIndex.set(e!==void 0?e:0),this.#r()}(this.lazySearch()||this.inlineSearch())&&(this.prevInputValue.set(this.inputValue()),this.focusedOptionIndex.set(0),this.inputValue.set(""),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))))}selectOption(e){let t=this.#i()[e];if(!(this.isLoading()&&this.lazySearch()))if(this.prevInputValue.set(null),this.focusedOptionIndex.set(e),this.selectMultiple()){let i=this.selectedOptionIndices(),o=i.indexOf(e);o>-1?(i.splice(o,1),this.selectedOptionIndices.set([...i]),this.selectedOptions.set(i.map(s=>this.#i()[s]))):(this.selectedOptionIndices.set([...i,e]),this.selectedOptions.set([...this.selectedOptions(),t]))}else this.selectedOptions.set([t]),this.isOpen.set(!1)}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.set(this.selectedOptions().filter((i,o)=>o!==t)),this.selectedOptionIndices.set(this.selectedOptionIndices().filter((i,o)=>o!==t))}isSelected(e){return this.selectedOptionIndices().includes(e)}selectOptionByValue(e){let t=this.value(),i=this.options().findIndex(o=>t?this.#n(o,t)?.toString()===e:o?.toString()===e);i>-1&&this.selectOption(i)}selectOptionsByValue(e){let t=this.value();e.split(",").map(o=>o.trim()).filter(o=>o!=="").forEach(o=>{let s=this.options().findIndex(l=>t?this.#n(l,t)?.toString()===o:l?.toString()===o);s>-1&&this.selectOption(s)})}close(){this.isOpen.set(!1);let e=this.prevInputValue();(this.lazySearch()||this.inlineSearch())&&e!==null&&e!==void 0&&(this.selectMultiple()?this.selectOptionsByValue(e):this.selectOptionByValue(e))}ngOnDestroy(){typeof MutationObserver<"u"&&this.#o.disconnect()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null)}#n(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&J(o,i.inlineTemplate,ae,5),t&2&&j()},viewQuery:function(t,i){t&1&&(F(i.inputWrapRef,Me,5),F(i.optionsWrapRef,ot,5)),t&2&&j(2)},hostVars:2,hostBindings:function(t,i){t&2&&I("multiple",i.selectMultiple())},inputs:{debugRef:[1,"debugRef"],options:[1,"options"],label:[1,"label"],value:[1,"value"],placeholder:[1,"placeholder"],inlineSearch:[1,"inlineSearch"],lazySearch:[1,"lazySearch"],readonly:[1,"readonly"],isLoading:[1,"isLoading"],isClearable:[1,"isClearable"],asText:[1,"asText"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isValid:[1,"isValid"],selectedOptions:[1,"selectedOptions"]},outputs:{isValid:"isValidChange",selectedOptions:"selectedOptionsChange"},ngContentSelectors:et,decls:30,vars:20,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();y(Ze),de(0)(1)(2)(3)(4)(5)(6)(7)(8),r(9,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close())}),r(11,"spk-form-field",4),k("click",function(){return f(o),m(i.open())}),p(12,0,["ngProjectAs","label",5,["label"]]),r(13,"div",5,1)(15,"div",6),w(16,gt,2,1)(17,St,2,1),a(),p(18,1),a(),w(19,kt,2,0,"spk-icon",7)(20,yt,1,0,"spk-spinner",8)(21,wt,2,0,"spk-icon",7)(22,xt,2,0,"spk-icon",7)(23,Ot,2,0,"spk-icon",7)(24,bt,2,0,"spk-icon",7)(25,Dt,2,0,"spk-icon",7),a(),r(26,"div",9,2),G(28,It,4,6,"li",10,X),a()()}if(t&2){$(i.placeholderTemplate()),h();let o=$(i.optionTemplate()),s=i.selectedOptionTemplate();h(2);let l=$(i.inlineTemplate());h();let _=$(i.selectedOptions()),x=(i.inlineSearch()||i.lazySearch())&&i.isOpen()&&!i.isValid(),C=i.inputState();h(3),$(s||o||l),h(),$(o||l),h(),Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(19,Ve)),h(2),Q(i.readonly()?"readonly":""),I("autosize",i.selectMultiple()),h(2),I("show-search-text",x),h(2),I("is-selected",C==="selected"),h(),O(_.length>0?16:17),h(3),O(C==="closed"?19:C==="loading"?20:C==="open-searching"?21:C==="searching"?22:C==="selected"&&i.isClearable()?23:C==="selected"&&!i.isClearable()?24:25),h(9),K(i.optionsSignal())}},dependencies:[De,ge,Fe,oe,oi,ai,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=M(B),this.value=d(null),this.#t=D(()=>{this.#e.nativeElement.value=this.value()})}#e;#t;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ci=["primary","accent","warn","error","success"],ji=(()=>{class n{constructor(){this.#e=M(Se),this.#t=M(B),this.optionsRef=V("optionsRef"),this.options=ce(Te),this.formFieldWrapperRef=V.required("formFieldWrapper"),this.inputWrapRef=V.required("inputWrap"),this.inputValue=P(""),this.readonly=d(!1),this.isFreeText=d(!1),this.selectMultiple=d(!1),this.hideClearButton=d(!1),this.displayValue=d(""),this.displayFn=d(e=>`${e}`),this.above=d(!1),this.right=d(!1),this.change=W(),this.#s=g(!1),this.#i=g(null),this.#o=g(null),this.#r=g(!1),this.#n=g(-1),this.isOpen=g(!1),this._isOpen=g(!1),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>ci.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=D(()=>{this.#s();let e=this.#t.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#a()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=D(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=D(()=>{this.isOpen()&&this.#g()}),this.#h=D(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#l=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#t;#s;#i;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#l.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#i()?.blur(),this.#m()}open(e){e.preventDefault(),!this.isOpen()&&(this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#a())}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#a(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#l;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#l.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,Te,4),t&2&&j()},viewQuery:function(t,i){t&1&&(F(i.optionsRef,Ft,5),F(i.formFieldWrapperRef,Rt,5),F(i.inputWrapRef,Me,5)),t&2&&j(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:At,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();y(Pt),r(0,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),k("closed",function(){return f(o),m(i.close())}),r(2,"spk-form-field",4),k("click",function(l){return f(o),m(i.open(l))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),w(6,Lt,2,1,"div",6)(7,Bt,2,1,"div",6),p(8,1),a(),w(9,Wt,4,0,"div",7)(10,qt,4,0,"div",8)(11,Nt,4,2,"div",9),a(),r(12,"div",10,2),p(14,2),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(7,Ve)),h(2),Q(i.readonly()?"readonly":""),h(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),h(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Fe,oe,Ie,ge],encapsulation:2,changeDetection:0})}}return n})(),Li=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=d(!1),this.isOpen=P(!1),this.type=d(""),this.dragImageElement=V.required("dragImageElement"),this.dragIsEnding=g(!1),this.dragIsOnScreen=g(!0),this.isDragging=g(!1),this.dragPositionX=g(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=D(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&F(i.dragImageElement,Qt,5),t&2&&j()},hostVars:10,hostBindings:function(t,i){t&2&&I("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:zt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(y($t),w(0,Ut,2,0,"div",1)(1,Yt,1,0,"div",2),r(2,"div",3),p(3),a(),r(4,"div",4),w(5,Xt,1,0,"div",5),r(6,"div",6),p(7,1),a(),r(8,"main"),p(9,2),a()()),t&2&&(O(i.type()==="overlay"?0:-1),h(),O(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),A("transform",i.draggingStyle()),h(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Bi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Wi=(()=>{class n{constructor(){this.tableColumns=d([]),this.loading=d(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=d([]),this.dataChange=W(),this.#e=null,this.#t=g(!1),this.sortByColumn=P(null),this.e=D(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,l)=>{let _=s[t],x=l[t],C=0;return typeof _=="number"&&typeof x=="number"&&(C=_-x),_ instanceof Date&&x instanceof Date&&(C=_.getTime()-x.getTime()),typeof _=="string"&&typeof x=="string"&&(C=_.localeCompare(x,void 0,{sensitivity:"base"})),i?-C:C});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&A("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Kt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(y(Gt),r(0,"thead"),p(1),w(2,Jt,1,0,"spk-progress-bar",0),a(),r(3,"tbody"),p(4,1),a(),w(5,Zt,2,0,"div",1)),t&2&&(h(2),O(i.loading()?2:-1),h(3),O(i.loading()?-1:5))},dependencies:[li],encapsulation:2,changeDetection:0})}}return n})(),qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(y(),r(0,"div",0),H(1,"div",1),a(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=d(!1),this.above=d(!1),this.right=d(!1),this._above=g(this.above()),this._right=g(this.right()),this.message=d.required(),this.isOpen=P(!1),this.closed=W(),this.triggerRef=V.required("triggerRef"),this.tooltipRef=V.required("tooltipRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=D(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#e,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(l=C)}else x&&(l=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else _&&(l=x?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:l+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,Ee,5),F(i.tooltipRef,ei,5)),t&2&&j(2)},hostVars:6,hostBindings:function(t,i){t&2&&I("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();y(),r(0,"div",2,0),k("mouseover",function(){return f(o),m(i.isOpen.set(!0))})("mouseout",function(){return f(o),m(i.isOpen.set(!1))}),p(2),a(),r(3,"div",3,1),v(5),a()}t&2&&(A("anchor-name",i.id()),h(3),pe(i.menuStyle()),A("position-anchor",i.id()),h(2),N(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{constructor(){this.filesOver=g(!1),this.filesDropped=W()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ye({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&k("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&I("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{oe as a,Ti as b,Ei as c,ii as d,Mi as e,Vi as f,ni as g,Ii as h,oi as i,Ie as j,Fi as k,Fe as l,Ri as m,Pi as n,li as o,Ai as p,Hi as q,Te as r,ji as s,Li as t,Bi as u,Wi as v,qi as w,Ni as x,Qi as y,$i as z};
|
|
1
|
+
import{ia as be}from"./chunk-JOBMLOGZ.js";import{$a as P,Ab as G,Bb as K,Cb as r,Db as l,Eb as H,Gc as Oe,Hb as z,Ib as T,Mc as O,Oc as b,Qc as ue,Ra as h,S as se,Ta as le,Ub as k,Va as Se,Vb as u,Wb as y,Xb as p,Y as M,Ya as I,Za as ke,_a as ce,da as f,dc as J,ea as m,eb as S,ec as R,fc as j,gb as ye,gc as De,hc as v,ic as xe,jc as N,kb as w,mc as Z,nc as ee,oa as re,oc as te,pa as W,pb as we,pc as de,qa as d,qc as U,ra as B,rc as F,ta as ae,tb as q,tc as ie,ua as g,ub as A,uc as ne,vb as V,wb as pe,xb as Q,yb as x,zb as X}from"./chunk-QDAWQNBQ.js";import{a as L,b as $,c as Ce}from"./chunk-C6Q5SG76.js";var E=["*"],Pe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ae=["[icon]","[title]","*","[content]"];function He(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),l())}function je(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),l())}function Le(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning"),l())}function Be(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning-octagon"),l())}function We(n,c){n&1&&(r(0,"spk-icon",3),v(1,"check-circle"),l())}function qe(n,c){n&1&&(r(0,"spk-icon",3),v(1,"question"),l())}function Ne(n,c){if(n&1){let e=T();r(0,"spk-icon",7),k("click",function(){f(e);let i=u();return m(i.removeAlert())}),v(1,"plus"),l()}}var Qe=["dialogRef"];function Ue(n,c){if(n&1){let e=T();r(0,"div",4),k("click",function(){f(e);let i=u();return m(i.isOpen.set(!1))}),l()}}var $e=["spk-button",""];var Ee=["triggerRef"],ze=["popoverRef"],Ye=[[["","trigger",""]],"*"],Xe=["[trigger]","*"];var Ge=()=>({closeOnButton:!1,closeOnEsc:!0});var Me=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Ze=[[["label"]],[["input"]]],et=["label","input"],tt=["option"],it=["*",[["","menu",""]]],nt=["*","[menu]"];var ot=["optionsWrap"],Ie=()=>({closeOnButton:!1,closeOnEsc:!1}),fe=n=>({$implicit:n});function st(n,c){n&1&&z(0)}function rt(n,c){if(n&1&&w(0,st,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=F(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function at(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function lt(n,c){if(n&1){let e=T();r(0,"spk-chip",12),w(1,rt,1,4,"ng-container")(2,at,1,1),r(3,"spk-icon",13),k("click",function(i){f(e);let o=u().$index,s=u(3);return m(s.removeSelectedOptionByIndex(i,o))}),v(4,"x-bold"),l()()}if(n&2){let e=u(4),t=F(7);Q(e.selectClasses()),h(),x(t?1:2)}}function ct(n,c){n&1&&z(0)}function pt(n,c){if(n&1&&w(0,ct,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=F(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function dt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function ut(n,c){if(n&1&&w(0,pt,1,4,"ng-container")(1,dt,1,1),n&2){u(4);let e=F(7);x(e?0:1)}}function ht(n,c){if(n&1&&w(0,lt,5,3,"spk-chip",11)(1,ut,2,1),n&2){let e=u(3);x(!e.asText()&&e.selectMultiple()?0:1)}}function ft(n,c){if(n&1&&G(0,ht,2,1,null,null,X),n&2){u(2);let e=F(4);K(e)}}function mt(n,c){if(n&1&&v(0),n&2){let e=u(2);N(" ",e.selectedLabels()," ")}}function gt(n,c){if(n&1&&w(0,ft,2,0)(1,mt,1,1),n&2){u();let e=F(1),t=F(3);x(e||t?0:1)}}function vt(n,c){n&1&&z(0)}function _t(n,c){if(n&1&&w(0,vt,1,0,"ng-container",15),n&2){u(2);let e=F(0);q("ngTemplateOutlet",e)}}function Ct(n,c){if(n&1&&v(0),n&2){let e,t=u(2);N(" ",(e=t.placeholder())!==null&&e!==void 0?e:""," ")}}function St(n,c){if(n&1&&w(0,_t,1,1,"ng-container")(1,Ct,1,1),n&2){u();let e=F(0);x(e?0:1)}}function kt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-down"),l())}function yt(n,c){n&1&&H(0,"spk-spinner",8)}function wt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"list-magnifying-glass"),l())}function Dt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"magnifying-glass"),l())}function xt(n,c){if(n&1){let e=T();r(0,"spk-icon",16),k("click",function(i){f(e);let o=u();return m(o.clear(i))}),v(1,"x-bold"),l()}}function Ot(n,c){n&1&&(r(0,"spk-icon",7),v(1,"check"),l())}function bt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-up"),l())}function Tt(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=u().$index,t=u();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Et(n,c){n&1&&z(0)}function Mt(n,c){if(n&1&&w(0,Et,1,0,"ng-container",14),n&2){let e=u().$implicit;u();let t=F(8);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,fe,e))}}function It(n,c){if(n&1&&v(0),n&2){let e=u().$implicit;N(" ",e," ")}}function Vt(n,c){if(n&1){let e=T();r(0,"li",17),k("click",function(){let i=f(e).$index,o=u();return m(o.selectOption(i))}),w(1,Tt,1,4,"spk-checkbox",18)(2,Mt,1,4,"ng-container")(3,It,1,1),l()}if(n&2){let e=c.$index,t=u(),i=F(8);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),h(),x(t.selectMultiple()?1:-1),h(),x(i?2:3)}}var Rt=["optionsRef"],Ft=["formFieldWrapper"],Pt=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],At=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),k("click",function(i){let o=f(e).$implicit,s=u(3);return m(s.toggleOption(o,i))}),v(1),r(2,"spk-icon"),v(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=u(3);Q(i.chipClass()),h(),N(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function jt(n,c){if(n&1&&G(0,Ht,4,3,"spk-chip",11,X),n&2){let e=u(2);K(e.inputValue().split(","))}}function Lt(n,c){if(n&1&&(r(0,"div",6),w(1,jt,2,0),l()),n&2){let e=u();h(),x(e.inputValue().length>0?1:-1)}}function Bt(n,c){if(n&1&&(r(0,"div",6),v(1),l()),n&2){let e=u();h(),xe(e._displayValue())}}function Wt(n,c){if(n&1){let e=T();r(0,"div",13),k("click",function(i){f(e);let o=u();return m(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),v(3,"x-bold"),l()()}}function qt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),v(3,"magnifying-glass"),l()())}function Nt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),v(3,"caret-down"),l()()),n&2){let e=u();V("open",e.isOpen())}}var Qt=["dragImageElement"],Ut=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],$t=["[sidenav]","[sidenav-closed-topbar]","*"];function zt(n,c){n&1&&H(0,"div",1,0)}function Yt(n,c){if(n&1){let e=T();r(0,"div",7),k("drop",function(i){f(e);let o=u();return m(o.drop(i))})("dragover",function(i){f(e);let o=u();return m(o.dragOver(i))})("dragenter",function(){f(e);let i=u();return m(i.dragEnter())})("dragleave",function(){f(e);let i=u();return m(i.dragLeave())}),l()}}function Xt(n,c){if(n&1){let e=T();r(0,"div",8),k("dragstart",function(i){f(e);let o=u();return m(o.dragStart(i))})("dragend",function(i){f(e);let o=u();return m(o.dragEnd(i))})("drag",function(i){f(e);let o=u();return m(o.drag(i))})("touchstart",function(i){f(e);let o=u();return m(o.touchStart(i))})("touchmove",function(i){f(e);let o=u();return m(o.touchMove(i))})("touchend",function(i){f(e);let o=u();return m(o.touchEnd(i))})("touchcancel",function(i){f(e);let o=u();return m(o.touchCancel(i))}),l()}}var Gt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Kt=["[table-header]","*","[table-no-rows]"];function Jt(n,c){n&1&&H(0,"spk-progress-bar",0)}function Zt(n,c){n&1&&(r(0,"div",1),p(1,2),l())}var ei=["tooltipRef"];var he=["bold","thin","light","fill"],oe=(()=>{class n{#e=M(B);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<he.length;t++)if(e.endsWith(he[t]))return he[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.currentClass)},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{constructor(){this._el=M(B),this.alertService=d(null),this.id=d(null),this.alertClasses=O(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ae,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(y(Pe),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),de(5),w(6,He,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,Le,2,0,"spk-icon",3)(9,Be,2,0,"spk-icon",3)(10,We,2,0,"spk-icon",3)(11,qe,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),w(15,Ne,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),t&2){let o=De(2);h(),A("display",o.children.length?"block":"none");let s=i.alertClasses();h(5),x(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),h(9),x(i.id()?15:-1)}},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})();function me(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Mi=(()=>{class n{constructor(){this.alertHistory=g([]),this.alertHistoryIsOpen=g(!1),this.alertHistoryIsHidden=g(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=me();this.alertHistory.update(i=>[$(L({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>$(L({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>$(L({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>$(L({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ti={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ii=(()=>{class n{constructor(){this.dialogRef=I("dialogRef"),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=O(()=>L(L({},ti),this.options())),this.abortController=null,this.isOpenEffect=b(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&R(i.dialogRef,Qe,5),t&2&&j()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(y(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),w(4,Ue,1,0,"div",3),l()),t&2){let o,s,a,_;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(a=i.defaultOptionMerge().maxHeight)!==null&&a!==void 0?a:"")("height",(_=i.defaultOptionMerge().height)!==null&&_!==void 0?_:""),h(4),x(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Ii=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=M(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#s(),_e=t||{},{data:s,closed:a}=_e,_=Ce(_e,["data","closed"]);this.compRef&&this.#i(),this.insertedCompRef=ue(e,{environmentInjector:i}),this.compRef=ue(ii,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let D=this.insertedCompRef.instance?.data,C=this.insertedCompRef.instance?.closed;if(s){if(ae(D))this.insertedCompRef.setInput("data",s);else if(!ae(D))throw new Error("data is not an input signal on the passed component")}C instanceof re&&(this.closedFieldSub=C.subscribe((...Fe)=>{a?.(...Fe),this.#i()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",_),this.compRef.instance.closed.subscribe(()=>ve());let Y=this;function ve(){C&&C instanceof re?C.emit(!1):a?.(void 0),Y.#i()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#i(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#i()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Vi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:$e,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(y(),r(0,"div",0)(1,"spk-icon",1),v(2,"check"),l(),r(3,"spk-icon",2),v(4,"minus"),l()(),p(5))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var si=["scroll","auto"],ri={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ge=(()=>{class n{constructor(){this.#e=M(Oe),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=d(!1),this.right=d(!1),this.markForCheck=d(null),this._above=g(this.above()),this._right=g(this.right()),this.disableOpenByClick=d(!1),this.isOpen=P(!1),this.options=d(),this.closed=W(),this.defaultOptionMerge=O(()=>L(L({},ri),this.options())),this.triggerRef=I.required("triggerRef"),this.popoverRef=I.required("popoverRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.openAbort=null,this.openEffect=b(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#i(),i),window.addEventListener("resize",()=>this.#i(),i),this.#i()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(si.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#i(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#t,_=s+t.width>window.innerWidth,D=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(_);else{if(s=i,a=o+this.#t,D){let Y=e.top-t.height-this.#t;Y<0||(a=Y)}_&&(s=e.right-t.width,s<0&&(s=0));let C={left:s+"px",top:a+"px"};this.menuStyle.set(C)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(R(i.triggerRef,Ee,5),R(i.popoverRef,ze,5)),t&2&&j(2)},hostVars:4,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Xe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();y(Ye),r(0,"div",2,0),k("click",function(a){return f(o),m(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),v(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),k("click",function(a){return f(o),m(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}t&2&&(A("anchor-name",i.id()),h(6),pe(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[ni],encapsulation:2,changeDetection:0})}}return n})();var Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Re=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){window.setTimeout(s,0)};var i=s,o=a;t.addEventListener("change",s),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:Je,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(y(Ke),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),l(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),l(),r(11,"div",4)(12,"div",5),p(13,7),l(),r(14,"div",6),p(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var Pi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ai=(()=>{class n{constructor(){this.above=d(!1),this.right=d(!1),this.keepClickedOptionActive=d(!1),this.isOpen=P(!1),this.closed=W(),this.activeOptionIndex=g(-1),this.options=ce("option"),this.optionsEl=O(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=b(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,tt,4),t&2&&j()},hostBindings:function(t,i){t&1&&k("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:nt,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();y(it),r(0,"spk-popover",1,0),te("isOpenChange",function(a){return f(o),ee(i.isOpen,a)||(i.isOpen=a),m(a)}),k("closed",function(){return f(o),m(i.close("fromPopover"))}),r(2,"div",2),k("click",function(){return f(o),m(i.isOpen.set(!0))}),p(3),l(),r(4,"div",3),k("click",function(){return f(o),m(i.close("active"))}),p(5,1),l()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ie(5,Ge)))},dependencies:[ge],encapsulation:2,changeDetection:0})}}return n})(),ai=(()=>{class n{constructor(){this.value=d(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&A("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{#e=M(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&k("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(y(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var li=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.#e=M(B),this.debugRef=d(null),this.options=d([]),this.label=d(),this.value=d(),this.placeholder=d(),this.inlineSearch=d(!1),this.lazySearch=d(!1),this.readonly=d(!1),this.isLoading=d(!1),this.isClearable=d(!1),this.asText=d(!1),this.selectMultiple=d(!1),this.optionTemplate=d(null),this.selectedOptionTemplate=d(null),this.placeholderTemplate=d(null),this.isValid=P(!1),this.selectedOptions=P([]),this.inlineTemplate=ke(le),this.inputWrapRef=I.required("inputWrap"),this.optionsWrapRef=I.required("optionsWrap"),this.#t=g(null),this.isOpen=g(!1),this.selectedOptionIndices=g([]),this.focusedOptionIndex=g(-1),this.inputState=O(()=>this.selectedValues().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.prevInputValue=g(null),this.inputValue=g(""),this.inputValidityEffect=b(()=>{let e=this.inputValue(),t=this.options(),i=this.value();if(this.selectMultiple()){let a=e.split(",").map(_=>_.trim()).filter(_=>_!=="").every(_=>t.some(D=>{let C=i?this.#n(D,i):D;return _===C?.toString()}));this.isValid.set(a)}else{let s=t.some(a=>{let _=i?this.#n(a,i):a;return e===_?.toString()});this.isValid.set(s)}}),this.selectClasses=O(()=>this.#e.nativeElement.classList.toString()),this.#s=b(()=>{let e=this.#t();e&&(e.disabled=this.readonly())}),this.#i=O(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:i?t?e.filter(s=>(this.#n(s,t)??"").toString().toLowerCase().includes(o)):e.filter(s=>(s??"").toString().toLowerCase().includes(o)):e}),this.optionsSignal=O(()=>{let e=this.#i(),t=this.label(),i=e;return t&&(i=e.map(o=>this.#n(o,t))),i}),this.selectedLabels=O(()=>{let e=this.selectedOptions(),t=this.label();return t?e.map(i=>this.#n(i,t)).join(", "):e.join(", ")}),this.selectedValues=O(()=>{let e=this.selectedOptions(),t=this.value();return!t||e.length===0?e:e.map(i=>this.#n(i,t))}),this.selectedOptionIndicesEffect=b(()=>{let e=this.selectedValues(),t=this.#i(),i=this.value();if(this.selectMultiple())this.selectedOptionIndices.set(e.map(o=>t.findIndex(s=>(i?this.#n(s,i):s)===o)));else{let o=e[0],s=t.findIndex(a=>(i?this.#n(a,i):a)===o);this.selectedOptionIndices.set(s>-1?[s]:[])}}),this.selectedValueEffect=b(()=>{let e=this.selectedValues();this.#t()&&(this.selectMultiple()?this.#t().value=e.join(","):this.#t().value=e[0]?.toString()??"",this.#t().dispatchEvent(new Event("input")))}),this.#o=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e){let i=this.#e.nativeElement.querySelector("input");if(!i)return;i.autocomplete="off",i.addEventListener("input",()=>{this.inputValue.set(i.value)}),i.addEventListener("focus",()=>{this.readonly()||this.open()}),i.addEventListener("keydown",o=>{if((o.key==="Escape"||o.key==="Tab")&&this.close(),o.key==="Enter"&&this.selectOption(this.focusedOptionIndex()),o.key==="ArrowDown"){o.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.optionsSignal().length-1?0:s),this.#r()}if(o.key==="ArrowUp"){o.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.optionsSignal().length-1:s),this.#r()}if(!(this.lazySearch()||this.inlineSearch())){o.preventDefault();return}}),typeof i.value=="string"&&(this.selectMultiple()?this.selectOptionsByValue(i.value):this.selectOptionByValue(i.value)),this.#t.set(i),this.#o.disconnect();return}})}#e;#t;#s;#i;#o;ngOnInit(){typeof MutationObserver<"u"&&this.#o.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}#r(){setTimeout(()=>{this.optionsWrapRef().nativeElement.querySelector(".focused")?.scrollIntoView({block:"nearest",behavior:"smooth"})})}open(){if(this.isOpen.set(!0),!this.selectMultiple()){let e=this.selectedOptionIndices()[0];this.focusedOptionIndex.set(e!==void 0?e:0),this.#r()}(this.lazySearch()||this.inlineSearch())&&(this.prevInputValue.set(this.inputValue()),this.focusedOptionIndex.set(0),this.inputValue.set(""),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))))}selectOption(e){let t=this.#i()[e];if(!(this.isLoading()&&this.lazySearch()))if(this.prevInputValue.set(null),this.focusedOptionIndex.set(e),this.selectMultiple()){let i=this.selectedOptionIndices(),o=i.indexOf(e);o>-1?(i.splice(o,1),this.selectedOptionIndices.set([...i]),this.selectedOptions.set(i.map(s=>this.#i()[s]))):(this.selectedOptionIndices.set([...i,e]),this.selectedOptions.set([...this.selectedOptions(),t]))}else this.selectedOptions.set([t]),this.isOpen.set(!1)}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.set(this.selectedOptions().filter((i,o)=>o!==t)),this.selectedOptionIndices.set(this.selectedOptionIndices().filter((i,o)=>o!==t))}isSelected(e){return this.selectedOptionIndices().includes(e)}selectOptionByValue(e){let t=this.value(),i=this.options().findIndex(o=>t?this.#n(o,t)?.toString()===e:o?.toString()===e);i>-1&&this.selectOption(i)}selectOptionsByValue(e){let t=this.value();e.split(",").map(o=>o.trim()).filter(o=>o!=="").forEach(o=>{let s=this.options().findIndex(a=>t?this.#n(a,t)?.toString()===o:a?.toString()===o);s>-1&&this.selectOption(s)})}close(){this.isOpen.set(!1);let e=this.prevInputValue();(this.lazySearch()||this.inlineSearch())&&e!==null&&e!==void 0&&(this.selectMultiple()?this.selectOptionsByValue(e):this.selectOptionByValue(e))}ngOnDestroy(){typeof MutationObserver<"u"&&this.#o.disconnect()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null)}#n(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&J(o,i.inlineTemplate,le,5),t&2&&j()},viewQuery:function(t,i){t&1&&(R(i.inputWrapRef,Me,5),R(i.optionsWrapRef,ot,5)),t&2&&j(2)},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{debugRef:[1,"debugRef"],options:[1,"options"],label:[1,"label"],value:[1,"value"],placeholder:[1,"placeholder"],inlineSearch:[1,"inlineSearch"],lazySearch:[1,"lazySearch"],readonly:[1,"readonly"],isLoading:[1,"isLoading"],isClearable:[1,"isClearable"],asText:[1,"asText"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isValid:[1,"isValid"],selectedOptions:[1,"selectedOptions"]},outputs:{isValid:"isValidChange",selectedOptions:"selectedOptionsChange"},ngContentSelectors:et,decls:30,vars:20,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();y(Ze),de(0)(1)(2)(3)(4)(5)(6)(7)(8),r(9,"spk-popover",3,0),te("isOpenChange",function(a){return f(o),ee(i.isOpen,a)||(i.isOpen=a),m(a)}),k("closed",function(){return f(o),m(i.close())}),r(11,"spk-form-field",4),k("click",function(){return f(o),m(i.open())}),p(12,0,["ngProjectAs","label",5,["label"]]),r(13,"div",5,1)(15,"div",6),w(16,gt,2,1)(17,St,2,1),l(),p(18,1),l(),w(19,kt,2,0,"spk-icon",7)(20,yt,1,0,"spk-spinner",8)(21,wt,2,0,"spk-icon",7)(22,Dt,2,0,"spk-icon",7)(23,xt,2,0,"spk-icon",7)(24,Ot,2,0,"spk-icon",7)(25,bt,2,0,"spk-icon",7),l(),r(26,"div",9,2),G(28,Vt,4,6,"li",10,X),l()()}if(t&2){U(i.placeholderTemplate()),h();let o=U(i.optionTemplate()),s=i.selectedOptionTemplate();h(2);let a=U(i.inlineTemplate());h();let _=U(i.selectedOptions()),D=(i.inlineSearch()||i.lazySearch())&&i.isOpen()&&!i.isValid(),C=i.inputState();h(3),U(s||o||a),h(),U(o||a),h(),Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(19,Ie)),h(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),h(2),V("show-search-text",D),h(2),V("is-selected",C==="selected"),h(),x(_.length>0?16:17),h(3),x(C==="closed"?19:C==="loading"?20:C==="open-searching"?21:C==="searching"?22:C==="selected"&&i.isClearable()?23:C==="selected"&&!i.isClearable()?24:25),h(9),K(i.optionsSignal())}},dependencies:[be,ge,Re,oe,oi,li,Ve],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=M(B),this.value=d(null),this.#t=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#t;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ci=["primary","accent","warn","error","success"],Li=(()=>{class n{constructor(){this.#e=M(Se),this.#t=M(B),this.optionsRef=I("optionsRef"),this.options=ce(Te),this.formFieldWrapperRef=I.required("formFieldWrapper"),this.inputWrapRef=I.required("inputWrap"),this.inputValue=P(""),this.readonly=d(!1),this.isFreeText=d(!1),this.selectMultiple=d(!1),this.hideClearButton=d(!1),this.displayValue=d(""),this.displayFn=d(e=>`${e}`),this.above=d(!1),this.right=d(!1),this.change=W(),this.#s=g(!1),this.#i=g(null),this.#o=g(null),this.#r=g(!1),this.#n=g(-1),this.isOpen=g(!1),this._isOpen=g(!1),this.isSearchInput=O(()=>this.#i()?.type==="search"),this.chipClass=O(()=>Array.from(this.#t.nativeElement.classList).filter(e=>ci.includes(e)).join(" ")),this._displayValue=O(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=O(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=b(()=>{this.#s();let e=this.#t.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#l()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=b(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=b(()=>{this.isOpen()&&this.#g()}),this.#h=b(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#a=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#t;#s;#i;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#a.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#i()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#l()}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#l(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#a;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#a.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,Te,4),t&2&&j()},viewQuery:function(t,i){t&1&&(R(i.optionsRef,Rt,5),R(i.formFieldWrapperRef,Ft,5),R(i.inputWrapRef,Me,5)),t&2&&j(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:At,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();y(Pt),r(0,"spk-popover",3,0),te("isOpenChange",function(a){return f(o),ee(i.isOpen,a)||(i.isOpen=a),m(a)}),k("closed",function(){return f(o),m(i.close())}),r(2,"spk-form-field",4),k("click",function(a){return f(o),m(i.open(a))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),w(6,Lt,2,1,"div",6)(7,Bt,2,1,"div",6),p(8,1),l(),w(9,Wt,4,0,"div",7)(10,qt,4,0,"div",8)(11,Nt,4,2,"div",9),l(),r(12,"div",10,2),p(14,2),l()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(7,Ie)),h(2),Q(i.readonly()?"readonly":""),h(4),x(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),h(3),x((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Re,oe,Ve,ge],encapsulation:2,changeDetection:0})}}return n})(),Bi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=d(!1),this.isOpen=P(!1),this.type=d(""),this.dragImageElement=I.required("dragImageElement"),this.dragIsEnding=g(!1),this.dragIsOnScreen=g(!0),this.isDragging=g(!1),this.dragPositionX=g(0),this.dragActualPositionX=O(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=O(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=b(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&R(i.dragImageElement,Qt,5),t&2&&j()},hostVars:10,hostBindings:function(t,i){t&2&&V("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:$t,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(y(Ut),w(0,zt,2,0,"div",1)(1,Yt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),w(5,Xt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),t&2&&(x(i.type()==="overlay"?0:-1),h(),x(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),A("transform",i.draggingStyle()),h(),x(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Wi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var qi=(()=>{class n{constructor(){this.tableColumns=d([]),this.loading=d(!1),this.columnSizes=O(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=d([]),this.dataChange=W(),this.#e=null,this.#t=g(!1),this.sortByColumn=P(null),this.e=b(()=>{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,a)=>{let _=s[t],D=a[t],C=0;return typeof _=="number"&&typeof D=="number"&&(C=_-D),_ instanceof Date&&D instanceof Date&&(C=_.getTime()-D.getTime()),typeof _=="string"&&typeof D=="string"&&(C=_.localeCompare(D,void 0,{sensitivity:"base"})),i?-C:C});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&A("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Kt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(y(Gt),r(0,"thead"),p(1),w(2,Jt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),p(4,1),l(),w(5,Zt,2,0,"div",1)),t&2&&(h(2),x(i.loading()?2:-1),h(3),x(i.loading()?-1:5))},dependencies:[ai],encapsulation:2,changeDetection:0})}}return n})(),Ni=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(y(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(y(),r(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),Ui=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=d(!1),this.above=d(!1),this.right=d(!1),this._above=g(this.above()),this._right=g(this.right()),this.message=d.required(),this.isOpen=P(!1),this.closed=W(),this.triggerRef=I.required("triggerRef"),this.tooltipRef=I.required("tooltipRef"),this.id=g("--"+me()),this.menuStyle=g(null),this.isCalculatingPosition=O(()=>{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=b(()=>{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,a=o+this.#e,_=s+t.width>window.innerWidth,D=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(_);else{if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(a=C)}else D&&(a=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else _&&(a=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:a+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(R(i.triggerRef,Ee,5),R(i.tooltipRef,ei,5)),t&2&&j(2)},hostVars:6,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();y(),r(0,"div",2,0),k("mouseover",function(){return f(o),m(i.isOpen.set(!0))})("mouseout",function(){return f(o),m(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),v(5),l()}t&2&&(A("anchor-name",i.id()),h(3),pe(i.menuStyle()),A("position-anchor",i.id()),h(2),N(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{constructor(){this.filesOver=g(!1),this.filesDropped=W()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ye({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&k("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{oe as a,Ei as b,Mi as c,ii as d,Ii as e,Vi as f,ni as g,Ri as h,oi as i,Ve as j,Fi as k,Re as l,Pi as m,Ai as n,ai as o,Hi as p,ji as q,Te as r,Li as s,Bi as t,Wi as u,qi as v,Ni as w,Qi as x,Ui as y,$i as z};
|